summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhang Qiang <qiang.z.zhang@intel.com>2012-05-18 19:55:31 +0800
committerZhang Qiang <qiang.z.zhang@intel.com>2012-05-19 14:07:30 +0800
commit78667400ed85a5f8edd1653aeb7aaf87ad7a1607 (patch)
tree945459c7bfb0123a182754083ebefeec1413600a
parent88af296ceaa8abccd284266a5d313f1e0f01ab85 (diff)
downloadxorg-x11-drv-intel-78667400ed85a5f8edd1653aeb7aaf87ad7a1607.tar.gz
xorg-x11-drv-intel-78667400ed85a5f8edd1653aeb7aaf87ad7a1607.tar.bz2
xorg-x11-drv-intel-78667400ed85a5f8edd1653aeb7aaf87ad7a1607.zip
Initial code release
-rw-r--r--AUTHORS63
-rw-r--r--COPYING165
-rw-r--r--ChangeLog31566
-rw-r--r--INSTALL291
-rw-r--r--Makefile.am34
-rw-r--r--Makefile.in799
-rw-r--r--NEWS928
-rw-r--r--README49
-rw-r--r--aclocal.m42489
-rwxr-xr-xbuild-aux/config.guess1502
-rwxr-xr-xbuild-aux/config.sub1714
-rwxr-xr-xbuild-aux/depcomp630
-rwxr-xr-xbuild-aux/install-sh520
-rwxr-xr-xbuild-aux/ltmain.sh8413
-rwxr-xr-xbuild-aux/missing376
-rwxr-xr-xcompile143
-rwxr-xr-xconfig.guess1533
-rw-r--r--config.h.in91
-rwxr-xr-xconfig.sub1693
-rwxr-xr-xconfigure14413
-rw-r--r--configure.ac184
-rwxr-xr-xdepcomp630
-rwxr-xr-xinstall-sh520
-rwxr-xr-xltmain.sh8413
-rw-r--r--m4/libtool.m47377
-rw-r--r--m4/ltoptions.m4368
-rw-r--r--m4/ltsugar.m4123
-rw-r--r--m4/ltversion.m423
-rw-r--r--m4/lt~obsolete.m492
-rw-r--r--man/Makefile.am37
-rw-r--r--man/Makefile.in477
-rw-r--r--man/intel.man416
-rwxr-xr-xmissing376
-rw-r--r--packaging/disable-page-flipping.patch30
-rw-r--r--packaging/xorg-x11-drv-intel.spec62
-rw-r--r--src/Makefile.am83
-rw-r--r--src/Makefile.in817
-rw-r--r--src/brw_defines.h874
-rw-r--r--src/brw_structs.h1595
-rw-r--r--src/common.h191
-rw-r--r--src/i830_3d.c225
-rw-r--r--src/i830_reg.h805
-rw-r--r--src/i830_render.c877
-rw-r--r--src/i915_3d.c110
-rw-r--r--src/i915_3d.h619
-rw-r--r--src/i915_reg.h844
-rw-r--r--src/i915_render.c1185
-rw-r--r--src/i915_video.c483
-rw-r--r--src/i965_reg.h340
-rw-r--r--src/i965_render.c2718
-rw-r--r--src/i965_video.c1886
-rw-r--r--src/intel.h699
-rw-r--r--src/intel_batchbuffer.c294
-rw-r--r--src/intel_batchbuffer.h227
-rw-r--r--src/intel_display.c1689
-rw-r--r--src/intel_dri.c1381
-rw-r--r--src/intel_driver.c1321
-rw-r--r--src/intel_driver.h240
-rw-r--r--src/intel_hwmc.c260
-rw-r--r--src/intel_hwmc.h75
-rw-r--r--src/intel_memory.c304
-rw-r--r--src/intel_module.c587
-rw-r--r--src/intel_shadow.c204
-rw-r--r--src/intel_uxa.c1299
-rw-r--r--src/intel_video.c1787
-rw-r--r--src/intel_video.h95
-rw-r--r--src/legacy/Makefile.am17
-rw-r--r--src/legacy/Makefile.in658
-rw-r--r--src/legacy/README6
-rw-r--r--src/legacy/i810/Makefile.am35
-rw-r--r--src/legacy/i810/Makefile.in711
-rw-r--r--src/legacy/i810/i810.h332
-rw-r--r--src/legacy/i810/i810_accel.c617
-rw-r--r--src/legacy/i810/i810_common.h321
-rw-r--r--src/legacy/i810/i810_cursor.c266
-rw-r--r--src/legacy/i810/i810_dga.c258
-rw-r--r--src/legacy/i810/i810_dri.c1414
-rw-r--r--src/legacy/i810/i810_dri.h131
-rw-r--r--src/legacy/i810/i810_driver.c2120
-rw-r--r--src/legacy/i810/i810_hwmc.c419
-rw-r--r--src/legacy/i810/i810_io.c133
-rw-r--r--src/legacy/i810/i810_memory.c428
-rw-r--r--src/legacy/i810/i810_reg.h3194
-rw-r--r--src/legacy/i810/i810_ring.h90
-rw-r--r--src/legacy/i810/i810_video.c1423
-rw-r--r--src/legacy/i810/i810_wmark.c313
-rw-r--r--src/legacy/i810/xvmc/I810XvMC.c4509
-rw-r--r--src/legacy/i810/xvmc/I810XvMC.h366
-rw-r--r--src/legacy/i810/xvmc/Makefile.am11
-rw-r--r--src/legacy/i810/xvmc/Makefile.in581
-rw-r--r--src/legacy/legacy.h3
-rw-r--r--src/render_program/Makefile.am121
-rw-r--r--src/render_program/Makefile.in517
-rw-r--r--src/render_program/exa_sf.g4a107
-rw-r--r--src/render_program/exa_sf.g4b15
-rw-r--r--src/render_program/exa_sf.g4b.gen515
-rw-r--r--src/render_program/exa_sf_mask.g4a107
-rw-r--r--src/render_program/exa_sf_mask.g4b15
-rw-r--r--src/render_program/exa_sf_mask.g4b.gen515
-rw-r--r--src/render_program/exa_wm.g4i156
-rw-r--r--src/render_program/exa_wm_affine.g4i44
-rw-r--r--src/render_program/exa_wm_ca.g4a38
-rw-r--r--src/render_program/exa_wm_ca.g4b4
-rw-r--r--src/render_program/exa_wm_ca.g4b.gen54
-rw-r--r--src/render_program/exa_wm_ca.g6a38
-rw-r--r--src/render_program/exa_wm_ca.g6b4
-rw-r--r--src/render_program/exa_wm_ca_srcalpha.g4a37
-rw-r--r--src/render_program/exa_wm_ca_srcalpha.g4b4
-rw-r--r--src/render_program/exa_wm_ca_srcalpha.g4b.gen54
-rw-r--r--src/render_program/exa_wm_ca_srcalpha.g6a37
-rw-r--r--src/render_program/exa_wm_ca_srcalpha.g6b4
-rw-r--r--src/render_program/exa_wm_mask_affine.g4a41
-rw-r--r--src/render_program/exa_wm_mask_affine.g4b8
-rw-r--r--src/render_program/exa_wm_mask_affine.g4b.gen58
-rw-r--r--src/render_program/exa_wm_mask_affine.g6a47
-rw-r--r--src/render_program/exa_wm_mask_affine.g6b4
-rw-r--r--src/render_program/exa_wm_mask_projective.g4a53
-rw-r--r--src/render_program/exa_wm_mask_projective.g4b16
-rw-r--r--src/render_program/exa_wm_mask_projective.g4b.gen516
-rw-r--r--src/render_program/exa_wm_mask_projective.g6a63
-rw-r--r--src/render_program/exa_wm_mask_projective.g6b12
-rw-r--r--src/render_program/exa_wm_mask_sample_a.g4a49
-rw-r--r--src/render_program/exa_wm_mask_sample_a.g4b3
-rw-r--r--src/render_program/exa_wm_mask_sample_a.g4b.gen53
-rw-r--r--src/render_program/exa_wm_mask_sample_a.g6a49
-rw-r--r--src/render_program/exa_wm_mask_sample_a.g6b3
-rw-r--r--src/render_program/exa_wm_mask_sample_argb.g4a49
-rw-r--r--src/render_program/exa_wm_mask_sample_argb.g4b3
-rw-r--r--src/render_program/exa_wm_mask_sample_argb.g4b.gen53
-rw-r--r--src/render_program/exa_wm_mask_sample_argb.g6a49
-rw-r--r--src/render_program/exa_wm_mask_sample_argb.g6b3
-rw-r--r--src/render_program/exa_wm_noca.g4a38
-rw-r--r--src/render_program/exa_wm_noca.g4b4
-rw-r--r--src/render_program/exa_wm_noca.g4b.gen54
-rw-r--r--src/render_program/exa_wm_noca.g6a38
-rw-r--r--src/render_program/exa_wm_noca.g6b4
-rw-r--r--src/render_program/exa_wm_projective.g4i51
-rw-r--r--src/render_program/exa_wm_src_affine.g4a45
-rw-r--r--src/render_program/exa_wm_src_affine.g4b8
-rw-r--r--src/render_program/exa_wm_src_affine.g4b.gen58
-rw-r--r--src/render_program/exa_wm_src_affine.g6a47
-rw-r--r--src/render_program/exa_wm_src_affine.g6b4
-rw-r--r--src/render_program/exa_wm_src_projective.g4a49
-rw-r--r--src/render_program/exa_wm_src_projective.g4b16
-rw-r--r--src/render_program/exa_wm_src_projective.g4b.gen516
-rw-r--r--src/render_program/exa_wm_src_projective.g6a63
-rw-r--r--src/render_program/exa_wm_src_projective.g6b12
-rw-r--r--src/render_program/exa_wm_src_sample_a.g4a48
-rw-r--r--src/render_program/exa_wm_src_sample_a.g4b3
-rw-r--r--src/render_program/exa_wm_src_sample_a.g4b.gen53
-rw-r--r--src/render_program/exa_wm_src_sample_a.g6a48
-rw-r--r--src/render_program/exa_wm_src_sample_a.g6b3
-rw-r--r--src/render_program/exa_wm_src_sample_argb.g4a48
-rw-r--r--src/render_program/exa_wm_src_sample_argb.g4b3
-rw-r--r--src/render_program/exa_wm_src_sample_argb.g4b.gen53
-rw-r--r--src/render_program/exa_wm_src_sample_argb.g6a48
-rw-r--r--src/render_program/exa_wm_src_sample_argb.g6b3
-rw-r--r--src/render_program/exa_wm_src_sample_planar.g4a66
-rw-r--r--src/render_program/exa_wm_src_sample_planar.g4b5
-rw-r--r--src/render_program/exa_wm_src_sample_planar.g4b.gen55
-rw-r--r--src/render_program/exa_wm_src_sample_planar.g6a66
-rw-r--r--src/render_program/exa_wm_src_sample_planar.g6b5
-rw-r--r--src/render_program/exa_wm_write.g4a74
-rw-r--r--src/render_program/exa_wm_write.g4b18
-rw-r--r--src/render_program/exa_wm_write.g4b.gen518
-rw-r--r--src/render_program/exa_wm_write.g6a77
-rw-r--r--src/render_program/exa_wm_write.g6b17
-rw-r--r--src/render_program/exa_wm_xy.g4a52
-rw-r--r--src/render_program/exa_wm_xy.g4b4
-rw-r--r--src/render_program/exa_wm_xy.g4b.gen54
-rw-r--r--src/render_program/exa_wm_yuv_rgb.g4a98
-rw-r--r--src/render_program/exa_wm_yuv_rgb.g4b12
-rw-r--r--src/render_program/exa_wm_yuv_rgb.g4b.gen512
-rw-r--r--src/render_program/exa_wm_yuv_rgb.g6a98
-rw-r--r--src/render_program/exa_wm_yuv_rgb.g6b12
-rw-r--r--src/xvmc/Makefile.am23
-rw-r--r--src/xvmc/Makefile.in752
-rw-r--r--src/xvmc/i915_program.h274
-rw-r--r--src/xvmc/i915_structs.h926
-rw-r--r--src/xvmc/i915_xvmc.c1225
-rw-r--r--src/xvmc/i915_xvmc.h83
-rw-r--r--src/xvmc/i965_xvmc.c882
-rw-r--r--src/xvmc/intel_batchbuffer.c139
-rw-r--r--src/xvmc/intel_batchbuffer.h58
-rw-r--r--src/xvmc/intel_xvmc.c1075
-rw-r--r--src/xvmc/intel_xvmc.h263
-rw-r--r--src/xvmc/intel_xvmc_dump.c158
-rw-r--r--src/xvmc/shader/Makefile.am1
-rw-r--r--src/xvmc/shader/Makefile.in597
-rw-r--r--src/xvmc/shader/mc/Makefile.am121
-rw-r--r--src/xvmc/shader/mc/Makefile.in517
-rw-r--r--src/xvmc/shader/mc/addidct.g4i152
-rw-r--r--src/xvmc/shader/mc/addidct_igd.g4i117
-rw-r--r--src/xvmc/shader/mc/block_clear.g4i140
-rw-r--r--src/xvmc/shader/mc/dual_prime.g4a223
-rw-r--r--src/xvmc/shader/mc/dual_prime.g4b2486
-rw-r--r--src/xvmc/shader/mc/dual_prime.g4b.gen52486
-rw-r--r--src/xvmc/shader/mc/dual_prime_igd.g4a223
-rw-r--r--src/xvmc/shader/mc/dual_prime_igd.g4b1234
-rw-r--r--src/xvmc/shader/mc/dual_prime_igd.g4b.gen51234
-rw-r--r--src/xvmc/shader/mc/field_backward.g4a124
-rw-r--r--src/xvmc/shader/mc/field_backward.g4b1341
-rw-r--r--src/xvmc/shader/mc/field_backward.g4b.gen51341
-rw-r--r--src/xvmc/shader/mc/field_backward_igd.g4a86
-rw-r--r--src/xvmc/shader/mc/field_backward_igd.g4b62
-rw-r--r--src/xvmc/shader/mc/field_backward_igd.g4b.gen562
-rw-r--r--src/xvmc/shader/mc/field_f_b.g4a223
-rw-r--r--src/xvmc/shader/mc/field_f_b.g4b2486
-rw-r--r--src/xvmc/shader/mc/field_f_b.g4b.gen52486
-rw-r--r--src/xvmc/shader/mc/field_f_b_igd.g4a159
-rw-r--r--src/xvmc/shader/mc/field_f_b_igd.g4b121
-rw-r--r--src/xvmc/shader/mc/field_f_b_igd.g4b.gen5121
-rw-r--r--src/xvmc/shader/mc/field_forward.g4a121
-rw-r--r--src/xvmc/shader/mc/field_forward.g4b1340
-rw-r--r--src/xvmc/shader/mc/field_forward.g4b.gen51340
-rw-r--r--src/xvmc/shader/mc/field_forward_igd.g4a86
-rw-r--r--src/xvmc/shader/mc/field_forward_igd.g4b62
-rw-r--r--src/xvmc/shader/mc/field_forward_igd.g4b.gen562
-rw-r--r--src/xvmc/shader/mc/frame_backward.g4a69
-rw-r--r--src/xvmc/shader/mc/frame_backward.g4b716
-rw-r--r--src/xvmc/shader/mc/frame_backward.g4b.gen5716
-rw-r--r--src/xvmc/shader/mc/frame_backward_igd.g4a50
-rw-r--r--src/xvmc/shader/mc/frame_backward_igd.g4b15
-rw-r--r--src/xvmc/shader/mc/frame_backward_igd.g4b.gen515
-rw-r--r--src/xvmc/shader/mc/frame_f_b.g4a131
-rw-r--r--src/xvmc/shader/mc/frame_f_b.g4b1257
-rw-r--r--src/xvmc/shader/mc/frame_f_b.g4b.gen51257
-rw-r--r--src/xvmc/shader/mc/frame_f_b_igd.g4a96
-rw-r--r--src/xvmc/shader/mc/frame_f_b_igd.g4b51
-rw-r--r--src/xvmc/shader/mc/frame_f_b_igd.g4b.gen551
-rw-r--r--src/xvmc/shader/mc/frame_forward.g4a65
-rw-r--r--src/xvmc/shader/mc/frame_forward.g4b715
-rw-r--r--src/xvmc/shader/mc/frame_forward.g4b.gen5715
-rw-r--r--src/xvmc/shader/mc/frame_forward_igd.g4a30
-rw-r--r--src/xvmc/shader/mc/frame_forward_igd.g4b15
-rw-r--r--src/xvmc/shader/mc/frame_forward_igd.g4b.gen515
-rw-r--r--src/xvmc/shader/mc/ipicture.g4a166
-rw-r--r--src/xvmc/shader/mc/ipicture.g4b125
-rw-r--r--src/xvmc/shader/mc/ipicture.g4b.gen5125
-rw-r--r--src/xvmc/shader/mc/ipicture_igd.g4a105
-rw-r--r--src/xvmc/shader/mc/ipicture_igd.g4b75
-rw-r--r--src/xvmc/shader/mc/ipicture_igd.g4b.gen575
-rw-r--r--src/xvmc/shader/mc/lib_igd.g4a133
-rw-r--r--src/xvmc/shader/mc/lib_igd.g4b558
-rw-r--r--src/xvmc/shader/mc/lib_igd.g4b.gen5558
-rw-r--r--src/xvmc/shader/mc/motion_field_uv.g4i46
-rw-r--r--src/xvmc/shader/mc/motion_field_uv_igd.g4i46
-rw-r--r--src/xvmc/shader/mc/motion_field_y.g4i45
-rw-r--r--src/xvmc/shader/mc/motion_field_y_igd.g4i45
-rw-r--r--src/xvmc/shader/mc/motion_frame_uv.g4i29
-rw-r--r--src/xvmc/shader/mc/motion_frame_uv_igd.g4i30
-rw-r--r--src/xvmc/shader/mc/motion_frame_y.g4i57
-rw-r--r--src/xvmc/shader/mc/motion_frame_y_igd.g4i58
-rw-r--r--src/xvmc/shader/mc/null.g4a57
-rw-r--r--src/xvmc/shader/mc/null.g4b17
-rw-r--r--src/xvmc/shader/mc/null.g4b.gen517
-rw-r--r--src/xvmc/shader/mc/read_field_x0y0_uv.g4i74
-rw-r--r--src/xvmc/shader/mc/read_field_x0y0_uv_igd.g4i30
-rw-r--r--src/xvmc/shader/mc/read_field_x0y0_y.g4i83
-rw-r--r--src/xvmc/shader/mc/read_field_x0y0_y_igd.g4i35
-rw-r--r--src/xvmc/shader/mc/read_field_x0y1_uv.g4i78
-rw-r--r--src/xvmc/shader/mc/read_field_x0y1_uv_igd.g4i42
-rw-r--r--src/xvmc/shader/mc/read_field_x0y1_y.g4i86
-rw-r--r--src/xvmc/shader/mc/read_field_x0y1_y_igd.g4i42
-rw-r--r--src/xvmc/shader/mc/read_field_x1y0_uv.g4i75
-rw-r--r--src/xvmc/shader/mc/read_field_x1y0_uv_igd.g4i33
-rw-r--r--src/xvmc/shader/mc/read_field_x1y0_y.g4i83
-rw-r--r--src/xvmc/shader/mc/read_field_x1y0_y_igd.g4i35
-rw-r--r--src/xvmc/shader/mc/read_field_x1y1_uv.g4i172
-rw-r--r--src/xvmc/shader/mc/read_field_x1y1_uv_igd.g4i66
-rw-r--r--src/xvmc/shader/mc/read_field_x1y1_y.g4i166
-rw-r--r--src/xvmc/shader/mc/read_field_x1y1_y_igd.g4i64
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y0_uv.g4i73
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y0_uv_igd.g4i28
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y0_y.g4i109
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y0_y_igd.g4i35
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y1_uv.g4i79
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y1_uv_igd.g4i44
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y1_y.g4i113
-rw-r--r--src/xvmc/shader/mc/read_frame_x0y1_y_igd.g4i49
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y0_uv.g4i75
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y0_uv_igd.g4i41
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y0_y.g4i110
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y0_y_igd.g4i43
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y1_uv.g4i159
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y1_uv_igd.g4i71
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y1_y.g4i264
-rw-r--r--src/xvmc/shader/mc/read_frame_x1y1_y_igd.g4i92
-rw-r--r--src/xvmc/shader/vld/Makefile.am74
-rw-r--r--src/xvmc/shader/vld/Makefile.in470
-rw-r--r--src/xvmc/shader/vld/addidct.g4i152
-rw-r--r--src/xvmc/shader/vld/do_iq_intra.g4i64
-rw-r--r--src/xvmc/shader/vld/do_iq_non_intra.g4i59
-rw-r--r--src/xvmc/shader/vld/field_backward.g4a126
-rw-r--r--src/xvmc/shader/vld/field_backward.g4b553
-rw-r--r--src/xvmc/shader/vld/field_backward.g4b.gen5553
-rw-r--r--src/xvmc/shader/vld/field_f_b.g4a213
-rw-r--r--src/xvmc/shader/vld/field_f_b.g4b1007
-rw-r--r--src/xvmc/shader/vld/field_f_b.g4b.gen51007
-rw-r--r--src/xvmc/shader/vld/field_forward.g4a130
-rw-r--r--src/xvmc/shader/vld/field_forward.g4b555
-rw-r--r--src/xvmc/shader/vld/field_forward.g4b.gen5555
-rw-r--r--src/xvmc/shader/vld/frame_backward.g4a61
-rw-r--r--src/xvmc/shader/vld/frame_backward.g4b369
-rw-r--r--src/xvmc/shader/vld/frame_backward.g4b.gen5369
-rw-r--r--src/xvmc/shader/vld/frame_f_b.g4a120
-rw-r--r--src/xvmc/shader/vld/frame_f_b.g4b675
-rw-r--r--src/xvmc/shader/vld/frame_f_b.g4b.gen5675
-rw-r--r--src/xvmc/shader/vld/frame_forward.g4a61
-rw-r--r--src/xvmc/shader/vld/frame_forward.g4b369
-rw-r--r--src/xvmc/shader/vld/frame_forward.g4b.gen5369
-rw-r--r--src/xvmc/shader/vld/idct.g4i147
-rw-r--r--src/xvmc/shader/vld/ipicture.g4a209
-rw-r--r--src/xvmc/shader/vld/ipicture.g4b313
-rw-r--r--src/xvmc/shader/vld/ipicture.g4b.gen5313
-rw-r--r--src/xvmc/shader/vld/iq_intra.g4i131
-rw-r--r--src/xvmc/shader/vld/iq_non_intra.g4i150
-rw-r--r--src/xvmc/shader/vld/lib.g4a190
-rw-r--r--src/xvmc/shader/vld/lib.g4b307
-rw-r--r--src/xvmc/shader/vld/lib.g4b.gen5307
-rw-r--r--src/xvmc/shader/vld/motion_field_uv.g4i46
-rw-r--r--src/xvmc/shader/vld/motion_field_y.g4i45
-rw-r--r--src/xvmc/shader/vld/motion_frame_uv.g4i45
-rw-r--r--src/xvmc/shader/vld/motion_frame_y.g4i57
-rw-r--r--src/xvmc/shader/vld/read_field_x0y0_uv.g4i50
-rw-r--r--src/xvmc/shader/vld/read_field_x0y0_y.g4i57
-rw-r--r--src/xvmc/shader/vld/read_field_x0y1_uv.g4i28
-rw-r--r--src/xvmc/shader/vld/read_field_x0y1_y.g4i60
-rw-r--r--src/xvmc/shader/vld/read_field_x1y0_uv.g4i24
-rw-r--r--src/xvmc/shader/vld/read_field_x1y0_y.g4i57
-rw-r--r--src/xvmc/shader/vld/read_field_x1y1_uv.g4i53
-rw-r--r--src/xvmc/shader/vld/read_field_x1y1_y.g4i87
-rw-r--r--src/xvmc/shader/vld/read_frame_x0y0_uv.g4i49
-rw-r--r--src/xvmc/shader/vld/read_frame_x0y0_y.g4i58
-rw-r--r--src/xvmc/shader/vld/read_frame_x0y1_uv.g4i56
-rw-r--r--src/xvmc/shader/vld/read_frame_x0y1_y.g4i61
-rw-r--r--src/xvmc/shader/vld/read_frame_x1y0_uv.g4i42
-rw-r--r--src/xvmc/shader/vld/read_frame_x1y0_y.g4i58
-rw-r--r--src/xvmc/shader/vld/read_frame_x1y1_uv.g4i74
-rw-r--r--src/xvmc/shader/vld/read_frame_x1y1_y.g4i112
-rw-r--r--src/xvmc/xvmc_vld.c1225
-rw-r--r--uxa/Makefile.am17
-rw-r--r--uxa/Makefile.in541
-rw-r--r--uxa/uxa-accel.c1309
-rw-r--r--uxa/uxa-glyphs.c1193
-rw-r--r--uxa/uxa-priv.h434
-rw-r--r--uxa/uxa-render.c2071
-rw-r--r--uxa/uxa-unaccel.c430
-rw-r--r--uxa/uxa.c603
-rw-r--r--uxa/uxa.h584
350 files changed, 190124 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..9f1a589
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,63 @@
+Authors of xf86-video-intel (since 2003-11-14 when revision-control
+history begins, sorted roughly by number of commits, descending):
+
+Eric Anholt
+Keith Packard
+Zhenyu Wang
+Jesse Barnes
+Alan Hourihane
+Carl Worth
+Dave Airlie
+Michel Dänzer
+Zou Nan Hai
+Kristian Høgsberg
+Adam Jackson
+Nian Wu
+Xian, Haihao
+Egbert Eich
+Kevin E Martin
+Alan Coopersmith
+Hong Liu
+Julien Cristau
+Ma Ling
+Bryce Harrington
+Daniel Stone
+Robert Lowery
+Kaleb Keithley
+Paulo Cesar Pereira de Andrade
+Eamon Walsh
+Matthieu Herrb
+Owain G. Ainsworth
+Søren Sandmann Pedersen
+Brice Goglin
+Ian Romanick
+Lukáš Hejtmánek
+Matthias Hopf
+Olivier Fourdan
+Robert Noland
+Rémi Cardona
+Shuang He
+Wu Fengguang
+and many others (with 1 or 2 commits)
+
+Other authors (from before revision-control history begins):
+
+Keith Whitwell
+Jonathan Bian
+Matthew J Sottek
+Jeff Hartmann
+Mark Vojkovich
+H. J. Lu
+David Dawes
+
+If the above list is missing anyone, please accept our apologies and
+let us know.
+
+The X.Org version of this driver is maintained by Intel Corporation:
+
+ http://www.intellinuxgraphics.org
+
+The X11R6 version of this driver originally came from XFree86 4.4 rc2.
+
+The XFree86 version of this driver was donated to The XFree86 Project
+by Precision Insight, Inc.; Cedar Park, TX; USA
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..ae75ef9
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,165 @@
+Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
+Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
+Copyright 2005 Tungsten Graphics, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Copyright (c) 2005 Jesse Barnes <jbarnes@virtuousgeek.org>
+Copyright © 2002 David Dawes
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Copyright © 2006 Intel Corporation
+Copyright © 2006,2010 Intel Corporation
+Copyright © 2007 Intel Corporation
+Copyright © 2008 Intel Corporation
+Copyright © 2009 Intel Corporation
+Copyright © 2007 Red Hat, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice (including the next
+paragraph) shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
+Copyright 2000 by Alan Hourihane, Sychdyn, North Wales, UK.
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation, and that the name of Alan Hourihane not be used in
+advertising or publicity pertaining to distribution of the software without
+specific, written prior permission. Alan Hourihane makes no representations
+about the suitability of this software for any purpose. It is provided
+"as is" without express or implied warranty.
+
+ALAN HOURIHANE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL ALAN HOURIHANE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
+Copyright 2000 Intel Corporation. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Copyright 2001 VA Linux Systems Inc., Fremont, California.
+Copyright © 2002 by David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+on the rights to use, copy, modify, merge, publish, distribute, sub
+license, and/or sell copies of the Software, and to permit persons to whom
+the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice (including the next
+paragraph) shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ATI, VA LINUX SYSTEMS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+Copyright © 1999 Keith Packard
+Copyright ® 2001 Keith Packard
+Copyright © 2000, 2008 Keith Packard
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that
+copyright notice and this permission notice appear in supporting
+documentation, and that the name of Keith Packard not be used in
+advertising or publicity pertaining to distribution of the software without
+specific, written prior permission. Keith Packard makes no
+representations about the suitability of this software for any purpose. It
+is provided "as is" without express or implied warranty.
+
+KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
+
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..ad435f1
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,31566 @@
+commit 0e425b30e12b11dbf51eea1d3366e3372f8b93af
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Apr 14 10:16:03 2011 +0100
+
+ configure,NEWS: 2.15.0 release
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 686018f283f1d131073ef5917213e6a8ac013f26
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Apr 12 08:23:04 2011 +0100
+
+ Turn relaxed-fencing off by default for older (pre-G33) chipsets
+
+ There are still too many unresolved bugs, typically GPU hangs, that are
+ related to using relaxed fencing (i.e. only allocating the minimal
+ amount of memory required for a buffer) on older hardware, so turn off
+ the feature by default for the release.
+
+ Reported-and-tested-by: Knut Petersen <Knut_Petersen@t-online.de>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36147
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 3d2b79098ccb3fed86be66f619f4ed338741d454
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 11 15:20:16 2011 +0100
+
+ dri: Rearrange code to compile against xorg-server-1.7
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4fa35dd5e13a58070220f787fc0678f1c679808d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 11 10:44:55 2011 +0100
+
+ NEWS: version bump for 2.14.903 snapshot
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 97e9557619e58ef769eb7cbf1a03fbd52be7f2ed
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Apr 8 13:38:48 2011 +0100
+
+ intel: Restore manual flush for old kernels
+
+ Daniel Vetter pointed out that the automagic flush by the kernel for the
+ busy-ioctl was only introduced upstream in 2.6.37. So we still need to
+ manually emit a flush on old kernels.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit fb40bf2b33a6d26f0e6a4e5798d10c905faa8aad
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Fri Apr 8 12:37:35 2011 +0200
+
+ Tell users to grab i915_error_state on gpu hangs
+
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 59ed6b05db99d7e5144f4f8499c67cee9b833673
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Apr 7 15:28:46 2011 +0100
+
+ Revert "i965: Convert to relative relocations for state"
+
+ This reverts commit d2106384be6f9df498392127c3ff64d0a2b17457.
+
+ Breaks compiz (but not mutter/gnome-shell) on gen6. Not sure if this is
+ not seem deep interaction issue with multiple clients sharing the GPU or
+ just with compiz, but for now we have to revert and suffer the inane
+ performance hit. It looks suspiciously like another deferred damage
+ issue...
+
+ Bugzilla: 51a27e88b073cff229fff4362cb6ac22835c4044
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 25521900df11bc71020ee80db2223f979bec5ec6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Apr 7 15:09:30 2011 +0100
+
+ gen6: Invalidate texture cache
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ad22003033eb502474ae538a97e3b42cf8f83880
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Apr 7 10:29:40 2011 +0100
+
+ i965: Avoid transform overheads for vertex emit where possible
+
+ Minor improvement as the bottlenecks lie elsewhere. But it was annoying me.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 007c2f86cbb386861a1f711786523657f92e12cb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Apr 7 09:53:34 2011 +0100
+
+ i965: Refactor to use constant sampler_state offsets
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8dc99b305a514dcd42c4260698e685a66dc95518
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 4 22:30:29 2011 +0100
+
+ i965: Reset vertex_id after every batch
+
+ So that we always remember to re-emit the initial vertex elements state.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5982ed4da12a964351029c6f786348a11e33dc81
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 4 19:32:43 2011 +0100
+
+ i965: Always update last_floats_per_vertex
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6f104189bb9439ab0e05f04d4be020813eb04bf9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 4 19:21:10 2011 +0100
+
+ Take advantage of the kernel flush for dirty bo in the busy ioctl
+
+ Rather than just creating and submitting a batch that simply contains a
+ flush in order to periodically ensure that rendering reaches the
+ scanout, we can simply ask the kernel whether the scanout is busy. The
+ kernel will then submit a flush on our behalf if it is dirty, which
+ takes advantage of the kernel's dirty state tracking.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 314439860e595c473d168c0cafb2b5b49b7fef30
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 4 17:20:04 2011 +0100
+
+ Remove unused function 'intel_bo_alloc_for_data'
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ced747cefb5e697e6caa65296dff728904f52b93
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 4 17:13:50 2011 +0100
+
+ Remove the unnecessary MI_FLUSH from the flush handler
+
+ The kernel will emit any required flushes between the dri client and the
+ ddx, and we do not rely on the MI_FLUSH here for scanout.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 79444291a39c42039192a5baa3a71d52300cf4ee
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 4 16:34:58 2011 +0100
+
+ i965: segregate each vertex element into its own buffer
+
+ Reduce the number of relocations emitted by only emitting one relocation
+ per vertex element per vertex buffer.
+
+ References: https://bugs.freedesktop.org/show_bug.cgi?id=35733
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d2106384be6f9df498392127c3ff64d0a2b17457
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 4 12:33:04 2011 +0100
+
+ i965: Convert to relative relocations for state
+
+ References: https://bugs.freedesktop.org/show_bug.cgi?id=35733
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 972569f6fd1e14519f46e9f50d2509faf1d0aa55
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Mar 25 10:46:14 2011 +0000
+
+ MI_LOAD_SCAN_LINES_INCL are inclusive and range [0, display height-1]
+
+ We have seen GPU hangs with:
+
+ batchbuffer at 0x0f9b4000:
+ 0x0f9b4000: 0x09000000: MI_LOAD_SCAN_LINES_INCL
+ 0x0f9b4004: 0x00000300: dword 1
+ 0x0f9b4008: 0x09000000: MI_LOAD_SCAN_LINES_INCL
+ 0x0f9b400c: 0x00000300: dword 1
+ 0x0f9b4010: 0x01820000: MI_WAIT_FOR_EVENT
+ 0x0f9b4014: HEAD 0x02000006: MI_FLUSH
+
+ on a 1366x768 display. That according to the specs an invalid command
+ for the pipe.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35576
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 537a836dd6db384d53b52eb457a7d257c440217f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Apr 1 07:10:25 2011 +0100
+
+ 946GZ is a 965G!
+
+ Sales & Marketing score another victory in confusing me.
+
+ Bugzila: https://bugs.freedesktop.org/show_bug.cgi?id=35854
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 630d77bf10ba6234bb9c04538636f7d8aa319aea
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 30 07:24:42 2011 +0100
+
+ Add a DRI2SwapEventPtr typedef for retro xservers
+
+ Because people are still trying to build upon our solid historical
+ foundations.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f660df2cb44b310740ed850037ff37891b671f28
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 29 18:02:24 2011 +0200
+
+ Cleanup gen2 tiling confusion
+
+ A tile on gen2 has a size of 2kb, stride of 128 bytes and 16 rows.
+
+ Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit a2c8442fcb29ef2d0df41518952a2d8df1671070
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Mar 29 11:38:45 2011 +0100
+
+ configure: version bump for 2.14.902 snapshot
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2f2680793952876c89796174bed53c824fe6d1cb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Mar 29 11:38:18 2011 +0100
+
+ NEWS: Entry for 2.14.902 snapshot
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7ccbec801e9ee32fc110db730dfec674a94dea21
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Mar 24 11:06:57 2011 -0700
+
+ Recover from i830_dri2_add_frame_event out-of-memory condition
+
+ If adding either the frame or client resources fails, we need to clean
+ up afterwards properly.
+
+ First, add_frame_event needs to internally clean up after itself by
+ undoing any partial execution. Second, the callers need to look at the
+ return value and free the swap/flip info structure when necessary.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ Reviewed-by: Julien Cristau <jcristau@debian.org>
+
+commit ec133abc4bd8caba15ed54e18621b816afb06981
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Mar 24 15:32:50 2011 +0000
+
+ Use the per-generation batch context switch for atomic sequences
+
+ A modest boost to throughput and reduction in CPU overhead from
+ not flushing the batch on every transition from BLT to RENDER.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 86f23f21ab57fcbc031bcd2b8f432a08ff4cc320
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Mar 23 17:07:49 2011 -0700
+
+ Skip client and drawable resource delete calls when deleting frame event
+
+ As the frame_event is about to be freed, there's no point in cleaning
+ up references to the drawable and client.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit e1ff5182304e00c0d392092069422cae7626cf8d
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Mar 9 17:00:41 2011 -0800
+
+ Handle drawable/client destruction in pending swaps/flips
+
+ A pending swap or flip holds references to drawables and clients which
+ become invalid when destroyed. Add suitable resources to the database
+ to track those lifetimes and clean up the pending data structure then.
+
+ Later, when the pending swap or flip occurs, handle a missing drawable
+ by just discarding the flip or swap. Handle a missing client by not
+ sending an event or reply.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit aa0328f342177e33f9c863531712eaa4577b5f2b
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Mar 9 16:23:22 2011 -0800
+
+ dri2: Make DRI2FrameEvent public and use instead of void *
+
+ Instead of using void * for all of the flip_info and swap_info
+ pointers, just make the underlying structure a public data type and
+ use that.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit ee740778f5d5355c04f6fc4564f598993b106d62
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 16 08:37:24 2011 +0000
+
+ i915/video: Clip indirect Xv output
+
+ In the case of a singular clip box and rendering onto the front buffer
+ larger than 2048, the clip extents were being ignored. Here we can
+ simply reduce the size of the indirect pixmap to the clip extents.
+
+ Reported-by: Michael Chang <mchang@novell.com>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35346
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 014fc7abb7b2cc2110e3ab9a0bd6f7cff2c64c05
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 9 17:10:50 2011 +0000
+
+ dri: Disable page-flip between a tiled buffer and a linear scanout
+
+ Keith Packard pointed out a loophole that could cause the DDX to end up
+ with a tiled scanout even if the user required a linear framebuffer;
+ that is by using page-flipping we could replace the scanout pixmap with
+ another of our choosing, and not necessarily tiled.
+
+ Close that loophole by only allowing an exchange of buffers between
+ identical tiling modes. For the common case, this is fine since they
+ will indeed be allocated with the same tiling. For the linear
+ framebuffer case with mesa using a tiled pixmap, we force it to blit
+ onto the scanout instead.
+
+ Reported-by: Keith Packard <keith.packard@intel.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 049ce4397ddf7fd088ce364cbb53cacf5133176f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 9 08:27:02 2011 +0000
+
+ Give each user of tiling separate xorg.conf options
+
+ So that you can indeed allocate a linear framebuffer if you so desire
+ without breaking mesa.
+
+ Adds:
+
+ Section "Driver"
+ Option "LinearFramebuffer" "False|True" # default false
+ EndSection
+
+ to xorg.conf
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0bb1a5f19e09dc553761ddd90bf6319eab94a597
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 9 08:26:44 2011 +0000
+
+ Update priv->stride after bo reallocation
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 34f9a3335f96b16ef9df6213eb0a586c94f8f05b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 2 17:46:19 2011 +0000
+
+ configure: Bump for 2.14.901 snapshot
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 057783937d7a42a766d0e45174c4c2dc0ffacd40
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 2 17:45:43 2011 +0000
+
+ NEWS: Add entry for 2.14.901 snapshot
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e889d3a709b55a0731ab098b17a3364b9bf39387
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Feb 27 10:51:50 2011 +0000
+
+ dri: Protect against destroying a foreign DRI drawable
+
+ I have no clue as to how such an alien drawable reached us, but we have
+ the evidence of a segfault to say it can happen.
+
+ Reported-by: Bernie Innocenti <bernie@codewiz.org>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34787
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d21d781466785c317131a8a57606925867265dc8
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Feb 22 18:31:44 2011 +0100
+
+ Fix relaxed tiling on gen2
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 9599fde65a0d8b7e7c85199346f7b620bdd8388d
+Author: Bryce Harrington <bryce@canonical.com>
+Date: Tue Feb 15 22:30:18 2011 -0800
+
+ Quell excessively verbose vblank counter failed error messages
+
+ Certain error situations can result in the following printed to
+ Xorg.0.log at a high enough rate to make log file size a problem.
+
+ (WW) intel(0): I830DRI2GetMSC:1062 get vblank counter failed: Invalid argument
+ (WW) intel(0): I830DRI2ScheduleWaitMSC:1118 get vblank counter failed: Invalid argument
+
+ Following in the tradition of commit 0ad6d6e1, limit the warnings to be
+ output 5 times, then quell the remainder.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34322
+ Ref.: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/710594
+
+ Signed-off-by: Bryce Harrington <bryce@canonical.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0ca595e9d533019b241666d29b421c7b36f9647a
+Author: Adam Jackson <ajax@redhat.com>
+Date: Thu Feb 17 15:26:35 2011 -0500
+
+ Fix IGD and IGDNG constants to be comprehensible
+
+ Since, with GPU-on-package, it's hard to talk about a model number for
+ a specific chipset like 855GM, just use the platform names.
+
+ Signed-off-by: Adam Jackson <ajax@redhat.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4c66b28870b050493ad96f7b0fe2d70d7ee539c7
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Feb 17 16:48:24 2011 +0000
+
+ uxa: Fallback if the temporary is too large
+
+ If the render operation requires a temporary source Picture and the
+ operation is large, larger than the maximum permitted bo, then we will
+ fail to allocate the bo. In this case, we need to fallback and perform
+ the operation on the CPU rather than dereference a NULL bo.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34399
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 23f9b14df7c102c1036134835dd5d1a508059858
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Feb 12 10:42:34 2011 +0000
+
+ i965: Remove broken maximum base addresses from video
+
+ WRONG.
+
+ The hardware was never limited to 0x1000000 and the kernel can quite
+ rightly place objects above that limit. Specifying such had no relation
+ to reality, so why did we do it? TWICE!
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=34017
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9184af921bc2f332fcb6c9b47001414378eab8e2
+Author: Javier Jardón <jjardon@gnome.org>
+Date: Wed Feb 9 00:36:37 2011 +0000
+
+ Update autotools configuration
+
+ Use new libtool syntax and silent-rules to silent
+ the build output a bit (linux-like)
+
+commit 6e721e098b9181e8e77e314f966729d28e705582
+Author: Bryce Harrington <bryce@canonical.com>
+Date: Fri Feb 4 00:15:13 2011 -0800
+
+ Check return value of uxa_acquire_solid() since it can return NULL
+
+ uxa_acquire_solid returns NULL under OOM. Thus the value of solid
+ must be checked before dereferencing it in the uxa_get_offscreen()
+ call.
+
+ Signed-off-by: Bryce Harrington <bryce@canonical.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit da990536eca09c6de74627541cd56ecfad925eda
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Feb 3 09:41:48 2011 +0000
+
+ uxa: Undo damage translation before appending
+
+ The region is used to paint onto the backing pixmap (and thus
+ translated) prior to being passed to the damage layer (wrt to the
+ drawable). So the local translation needs to be undone first.
+
+ Identified by Christopher James Halse Rogers.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33650
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ce1e0969058f8c70b624bc85bb8d6698a35794d3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jan 31 20:27:26 2011 +0000
+
+ Rename 'intel' backlight to match upstream name in 2.6.38
+
+ (Just waiting for libbacklight to bring sanity...)
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 80f59c8a4f51ccc27653a2de2dee2563b1e911f1
+Author: Cyril Brulebois <kibi@debian.org>
+Date: Mon Jan 31 06:22:39 2011 +0100
+
+ xvmc: Stop using uninitialized variable.
+
+ The actual code was removed in 5f64122551, where the get_surface_status
+ driver callback was dropped. Just return Success if there were no issues
+ with the parameter.
+
+ Get rid of the following with CFLAGS="-Wall -Werror":
+ | CC intel_xvmc.lo
+ | cc1: warnings being treated as errors
+ | intel_xvmc.c: In function ‘XvMCSyncSurface’:
+ | intel_xvmc.c:677: error: ‘ret’ may be used uninitialized in this function
+ | intel_xvmc.c:672: note: ‘ret’ was declared here
+
+ Signed-off-by: Cyril Brulebois <kibi@debian.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 86284abafbe1364f82509d2656c82ba11cdce6cc
+Author: Cyril Brulebois <kibi@debian.org>
+Date: Mon Jan 31 06:22:38 2011 +0100
+
+ xvmc: Silence gcc, adding a cast to work around signedness issues.
+
+ Both exported XvMCPutSlice/XvMCPutSlice2 functions have a prototype with a
+ parameter whose signedness differs from the one in the put_slice/put_slice2
+ functions they call. Make it unsigned through a cast.
+
+ Get rid of this accordingly with CFLAGS="-Wall -Werror":
+ | CC intel_xvmc.lo
+ | cc1: warnings being treated as errors
+ | intel_xvmc.c: In function ‘XvMCSyncSurface’:
+ | intel_xvmc.c:677: error: ‘ret’ may be used uninitialized in this function
+ | intel_xvmc.c:672: note: ‘ret’ was declared here
+
+ Signed-off-by: Cyril Brulebois <kibi@debian.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit fc2eb64d7a184770ccd708a5b2337a538ca2b9db
+Author: Cyril Brulebois <kibi@debian.org>
+Date: Mon Jan 31 09:59:04 2011 +0000
+
+ xvmc: Silence gcc, add parentheses around arithmetic.
+
+ Get rid of those accordingly with CFLAGS="-Wall -Werror":
+ | CC i915_xvmc.lo
+ | cc1: warnings being treated as errors
+ | i915_xvmc.c: In function ‘i915_mc_one_time_state_emit’:
+ | i915_xvmc.c:369: error: suggest parentheses around arithmetic in operand of ‘|’
+ | i915_xvmc.c:374: error: suggest parentheses around arithmetic in operand of ‘|’
+ | i915_xvmc.c:379: error: suggest parentheses around arithmetic in operand of ‘|’
+ | i915_xvmc.c: In function ‘i915_mc_load_indirect_render_emit’:
+ | i915_xvmc.c:708: error: suggest parentheses around arithmetic in operand of ‘|’
+ | i915_xvmc.c:713: error: suggest parentheses around arithmetic in operand of ‘|’
+
+ Signed-off-by: Cyril Brulebois <kibi@debian.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 1b9349bceb9172d9bf01638b2df10b9b79e883b4
+Author: Cyril Brulebois <kibi@debian.org>
+Date: Mon Jan 31 06:22:36 2011 +0100
+
+ xvmc: Silence gcc, add parentheses around assignment.
+
+ Get rid of the following with CFLAGS="-Wall -Werror":
+ | CC intel_xvmc_dump.lo
+ | cc1: warnings being treated as errors
+ | intel_xvmc_dump.c: In function ‘intel_xvmc_dump_open’:
+ | intel_xvmc_dump.c:41: error: suggest parentheses around assignment used as truth value
+
+ Signed-off-by: Cyril Brulebois <kibi@debian.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ae8877e30707cae586565b4deee4c7fd9ac7d3ed
+Author: Cyril Brulebois <kibi@debian.org>
+Date: Mon Jan 31 06:22:35 2011 +0100
+
+ xvmc: Get rid of unused variables.
+
+ Signed-off-by: Cyril Brulebois <kibi@debian.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8bd6a7149fcb5f9ed6580dc2aa0180874938a1ea
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Jan 29 12:04:09 2011 +0000
+
+ Enable conditional compilation of asserts
+
+ With '--disable-debug' we define NDEBUG and so disable the asserts, that
+ is we continue to default to compiling asserts into the code.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a5a1ab7bbc58ec884cd0b90fe7139f402291b92f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jan 28 17:20:06 2011 +0000
+
+ i915: Remove unused 'w' and 'h'
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2c9b3225d8c7b53e2d921705dbb069710abcea5d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jan 28 17:19:39 2011 +0000
+
+ i915: Remove unused 'num_floats' variable
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c6dc27562abbc8ca9e873ad502ca49ae010461d2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jan 24 20:25:27 2011 +0000
+
+ uxa: Only recreate the glyph cache on *generational* updates
+
+ The screen resources are recreated when the screen is rotated as well,
+ without being finalized. In this case, we do not need to reconstuct the
+ cache (or if we did, we would need to tear it down first).
+
+ Reported-by: Till Matthiesen <entropy@everymail.net>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33412
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5baa63c634990810a66c3150b4f2b76fcee2df38
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Jan 21 08:45:52 2011 +0800
+
+ Fix an error in 4c4ad555564a80311df1a4b762eb1e119c6d95fb.
+
+ See the original patch at https://bugs.freedesktop.org/show_bug.cgi?id=24767
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 3e28a0c0b43823d3104fe8fc50b5994b41fc0cc1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jan 20 15:07:26 2011 +0000
+
+ Create the UXA generational resources during screen create
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4c4ad555564a80311df1a4b762eb1e119c6d95fb
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Wed Jan 19 15:25:06 2011 +0000
+
+ Correct offset of planes within clipped window
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=24767
+ Reported-and-tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5a22bc999de8555f26c639eaffbe73b680746174
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 17 11:32:37 2011 -0800
+
+ Quiet compiler warning about is_affine_src same way we do is_affine_mask.
+
+commit 3a2a4b0784f0fc96a5457b18931471f15ad745fc
+Author: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
+Date: Mon Jan 17 17:38:23 2011 +0000
+
+ Fix textured video when destination is larger than screen
+
+ In our application, the screen is never rotated from the point of view
+ of the driver; instead, the compositor applies a suitable rotation as
+ it composites the display. This works fine on 945, but on 965, videos
+ are limited in height to the actual height of the screen.
+
+ Change various bits of code so that we use the width and height of the
+ destination pixmap instead of the width and height of the virtual
+ screen. This works correctly both for XVideo to offscreen storage
+ (CompositeRedirect) and for XVideo to the screen (no compositor).
+
+commit fd9235ebe03a01982238cdd6e8b55f613e14b6af
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 00:58:36 2010 +0000
+
+ Delete unused memory allocation flags.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 03248a798409ca4dd1caf5e25a3d5f5a80173260
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 00:57:01 2010 +0000
+
+ Cache the fixed crtc<->pipe relationship
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 00a2aee38dc5cbbd4907a593fa8d617f5a20292e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 00:50:33 2010 +0000
+
+ Remove unused I830Output
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a851879695c48e88d421b053a78f867d9902273f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 00:48:26 2010 +0000
+
+ Remove bitrotted, but fortunately unused, I830CrtcPrivate
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f8a5d7737e014e99943b947d088a4f9f1b465d46
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 00:37:47 2010 +0000
+
+ Delete some dead code
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 968151898b807b06953b2f4170ac02889f16c8dc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 00:18:25 2010 +0000
+
+ Remove unused GTT/Map sizes and addresses
+
+ These have been made obsolete by KMS and GEM.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 19b5817a54d4a17161340ada9bf20027644ff074
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 00:15:31 2010 +0000
+
+ Remove unused struct _intel_memory definition
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 40a7bde9140c0ae6412b8f916b1455d44e2af6cf
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jan 7 23:46:07 2011 +0000
+
+ configure: version bump for 2.14.0
+
+commit 8ecbba2aca657da3894eb77e856ac2d4e9efc0cc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jan 7 23:45:06 2011 +0000
+
+ NEWS: Release notes for 2.14.0
+
+commit 22d7b61791c382088a6c0df5dce3a15405d6c495
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jan 4 12:32:01 2011 +0000
+
+ i965: Fix off-by-one in assert
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a7c7a9108f76aa312f3d5efa466052b914c81484
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jan 4 10:53:30 2011 +0000
+
+ configure: version bump for 2.13.903 snapshot
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3fbecf34630c3588618900afdfbd9a4266856178
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jan 4 10:52:44 2011 +0000
+
+ NEWS: Add entry for 2.13.903
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 90538ecfff9c324d61419f451d41d26ab026f232
+Author: U. Artie Eoff <ullysses.a.eoff@intel.com>
+Date: Tue Dec 21 17:42:38 2010 -0700
+
+ configure: suggest upstream to find macros in case they're missing.
+
+ added upstream suggestion to error message in case xorg macros or
+ xserver macros are missing. removed package manager references in
+ suggestion since these are 'user' and/or 'distribution' preferences.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6d50f5a140dbefdf86eb25d18d08473aa7e42acc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jan 3 23:06:14 2011 +0000
+
+ If the crtc is not enabled, then it can't be on
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 145c42a101c3150fb1e2cae8a1780b26e8b56f42
+Author: Adam Jackson <ajax@redhat.com>
+Date: Mon Jan 3 17:52:27 2011 -0500
+
+ dri2: Fix interlace computation
+
+ scrn->currentMode is a hack for xf86vidmode and in general is wrong for
+ RANDRful drivers. Use the mode on the associated CRTC instead.
+
+ Signed-off-by: Adam Jackson <ajax@redhat.com>
+ [ickle: crtc->mode is a ModeRec not Ptr]
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b0d10ff04a24a951256a79710ba22b325b549ba4
+Author: Adam Jackson <ajax@redhat.com>
+Date: Mon Jan 3 17:52:26 2011 -0500
+
+ xv: Fix interlace computation
+
+ scrn->currentMode is a hack for xf86vidmode and in general is wrong for
+ RANDRful drivers. Use the mode on the associated CRTC instead.
+
+ Signed-off-by: Adam Jackson <ajax@redhat.com>
+ [ickle: crtc->mode is a ModeRec]
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0ad6d6e1a678de7d8c2d4cd7c734887e1deb2f9b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jan 3 16:52:07 2011 +0000
+
+ dri: Only issue a warning for an "impossible" flip return 5 times
+
+ As it appears that some kernels do indeed return the "wrong" value,
+ issuing a warning 60 times a second is a cruel and unusual punishment.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32680
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d729ef02f2955f7476df4c65403bc1f8e705b780
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jan 2 09:11:10 2011 +0000
+
+ dri: Don't wait upon a NULL current mode
+
+ There is a race condition between the dri swapbuffers code and
+ hotplugging whereby we might attempt to execute a wait upon a
+ non-existent output. This causes a NULL dereference and a loud crash.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32770
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 537fa55ed2449e91f3dd1e04abc720c6818d7227
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jan 2 09:06:28 2011 +0000
+
+ dri: Fix the use of the uninitialised bo for flink
+
+ Reported-by: Jeff Chua <jeff.chua.linux@gmail.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit dbc542b9d38ff9781efcdf1d5308e97f04499138
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 31 23:29:05 2010 +0000
+
+ dri: Protect against using dri with an non-gem pixmap
+
+ Reported-by: Jeff Chua <jeff.chua.linux@gmail.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 53fbc9f1760ee481cba1f6dceb9e7c97282a2976
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Dec 30 15:32:40 2010 +0000
+
+ Don't replace the scanout bo through PutImage
+
+ As the bo may be pinned for either use by the scanout or through sharing
+ with another application, under those circumstances we cannot replace
+ the bo itself but must force the blit for PutImage.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31367
+ Reported-and-tested-by: Bjørn Mork <bjorn@mork.no>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7667ad8432c032aec3a2aa004fc4dfc1877971b3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 24 09:42:29 2010 +0000
+
+ dri: Differentiate identical "get vblank failed" messages with line no
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 875d4828352c501ec5d0169735fb078807e76f2e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Dec 23 19:36:12 2010 +0000
+
+ i830: amalgamate consecutive composites into a single primitive
+
+ Improve aa10text on i845 from 218kglyphs/s to 234kglyphs/s
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 58d9912e447cf6e29b20747b5ed6ee595687ce8d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 22 13:50:53 2010 +0000
+
+ Remove the deprecated function 'XNFprintf'
+
+ As we know the maximum length of the string, we can replace our single
+ usage of XNFprintf with snprintf.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e8db77e019e19ace48592b2f6d96af6baa9a228e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 21 23:03:21 2010 +0000
+
+ Revert "Suggest where to find xorg-macros in case it's missing"
+
+ I failed my reading comprehension and didn't spot that the help strings
+ pointed to two separate downstream packages.
+
+ Thanks to Carl Worth for pointing out my mistake.
+
+ This reverts commit ebb7aca66785730737bc739624006e55d43dfe1b.
+
+commit ebb7aca66785730737bc739624006e55d43dfe1b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 21 22:23:24 2010 +0000
+
+ Suggest where to find xorg-macros in case it's missing
+
+ [Modified version of U. Artie Eoff's commit to remove the duplicated
+ string. The paraphrased commit message is repeated below for clarity.]
+
+ xorg-macros is often package under an unusual name, so provide some
+ clues as to what name to try on the user's distribution. Installing
+ build-deps would be just too easy...
+
+ Also include a check for the existence of the XORG_DRIVER_CHECK_EXT
+ macro, otherwise configure might continue in spite of the missing macro
+ and cause obtuse syntax errors.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 90576f95f35e528fa2c667df162c5dc7ec98975d
+Author: U. Artie Eoff <ullysses.a.eoff@intel.com>
+Date: Tue Dec 21 15:10:41 2010 -0700
+
+ configure: updated m4 macro check in configure.ac
+
+ Added m4 check for XORG_DRIVER_CHECK_EXT macro definition. Updated m4 fatal messages to give better hint on how to resolve error when xorg macros are missing. Previously, configure would continue in spite of the missing macros and the build would fail for syntax errors.
+
+commit 1ac2e04023f84dbf1f3db2ecad1cadd159aa614d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 20 10:55:11 2010 +0000
+
+ Undo: Disable BLT for i830 and 845G
+
+ Reported-by: György Balló <ballogy@freestart.hu>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32482
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6f21405454487adf7623cf22f0fdd9f127099afd
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 17 16:37:55 2010 +0000
+
+ G35 is gen4 and not gen3
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32478
+ Reported-and-tested-by: Michal Marek <mmarek@suse.cz>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5743c223877fbff710cdd5114cff6d3ee3108309
+Author: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+Date: Thu Dec 9 03:27:59 2010 +0100
+
+ Check consistency of pageflip completion vblank count.
+
+ Implements a consistency check on returned vblank
+ count values of pageflip completion. Impossible
+ values are detected, a x-warning is logged and
+ returned (msc,ust) values are marked invalid,
+ so clients could perform error handling. Such
+ a warning would indicate bugs in the pageflip
+ completion routine of future kms drivers or the
+ ddx and thereby aid driver debugging.
+
+ Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2177e6032146f4720f244e98f7c0d6df1b925784
+Author: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+Date: Thu Dec 9 03:12:35 2010 +0100
+
+ Fix reporting of pageflip completion events on multi-head.
+
+ When a drawable is page-flipped on multiple crtc's (fullscreen
+ drawable on mirror-mode or multi-head x-screen), only one pageflip
+ event is finally delivered, after the last participating crtc signals
+ flip completion, this to avoid visual corruption.
+
+ Old code returned vblank count and timestamps of flip completion
+ of this last crtc, instead of the values of the "master crtc", the
+ one that was used for initially scheduling/triggering the pagflip
+ via vblank events. (master = I830DRI2DrawablePipe(drawable))
+
+ This patch makes sure that the pageflip completion values of the
+ "master" crtc are returned, otherwise client applications will
+ get confused by the random (msc, ust) values returned by whichever
+ crtc was the last to complete its flip. Without this, the returned
+ values change randomly and jump forward and backward in time and
+ count.
+
+ Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 71af40a75fbdd1054b1111e8cbe67ad1f97e6613
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 10 15:55:09 2010 +0000
+
+ NEWS: 2.14, I meant the upcoming 2.14 release!
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 556331a22101d08babbd276236f74ffcc380171c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 10 15:28:37 2010 +0000
+
+ configure: version bump for 2.13.902
+
+ This is actually the first release candidate for 2.14.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e01ea4a45c1cf8953a6d5ff6c600d76dbbe4760d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 10 15:28:00 2010 +0000
+
+ NEWS: Add entry for the 2.13.902 snapshot
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8df6f0a6082ad762ec69be7789a961db0c74154a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 10 12:26:16 2010 +0000
+
+ configure: Bump required libdrm to 2.4.23
+
+ To pull in the required headers for BLT and relaxed fencing support.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9b967807c2d240488a715509649663aac3583532
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 7 20:45:16 2010 +0000
+
+ Revert "i965: The RenderCache flush after every glyph is required for compiz"
+
+ This reverts commit 03e8351179b1c25d219842ef3e01ee8e176f594f.
+
+ * sigh.
+
+ This was only meant to be a temporary debugging hack, not for public
+ consumption (or embarrassment).
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 27e33928f87ecb806d1f8c459d4a4ada76b0e30e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 7 20:42:24 2010 +0000
+
+ i965: Mark sure we mark reused render targets as dirty
+
+ ... or else we may forget to flush them again.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 03e8351179b1c25d219842ef3e01ee8e176f594f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 7 19:27:57 2010 +0000
+
+ i965: The RenderCache flush after every glyph is required for compiz
+
+ ... now who can explain why.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d90c8f4d0bb6b79ecdcaa82f87291169c18c64b9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 7 19:22:30 2010 +0000
+
+ i965: Invalidate pixmap binding location on reuse.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4a186a612376bdd6f86c026e8b8b442108868a0a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 7 16:56:57 2010 +0000
+
+ Always flush the batch before blocking for new X requests
+
+ This should prevent any lag when waiting upon user input, for example
+ whilst logging in with gdm.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 1ba983034b3a70fb541dc359189c020ee497c634
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 7 12:27:29 2010 +0000
+
+ uxa: Emit the damage after the render for the workaround in uxa_solid_rects
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 00c204a7b2df7a6b501db9b57603534a45ecafa9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 6 16:34:52 2010 +0000
+
+ snb: Only emit CC and DepthStencil bos once per batch
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 084ae43110240c582ae7cd6452966dd9f22350fa
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 6 15:57:19 2010 +0000
+
+ snb: Restore drawrect, we need the implicit flush
+
+ Something is wrong, we should be tracking when to invalidate the caches
+ as appropriate, yet I can not finding the missing flush to replace the
+ implicit one of DRAW_RECTANGLE.
+
+ Fixes cacomposite.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f3a47d7f235d18e4529e3898a48673c7c3cbd489
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 6 14:11:05 2010 +0000
+
+ snb: Cache pixmap binding locations
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4d48fed9aa0c3c7b84e74b4f72f298f580a8973c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 6 13:50:43 2010 +0000
+
+ snb: Cache state between composite ops
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a58e5a1bdf10be3b96ecaa3d5e3ee288eab1063f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 6 13:34:53 2010 +0000
+
+ snb: Emit more invariants only once
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e8f41c371024e2f3845c7652b22af8f5900200f2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Dec 5 21:37:23 2010 +0000
+
+ uxa: Prevent reading past the last byte on upload/download
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=29752
+ Reported-by: Sergey Samokhin <prikrutil@gmail.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c2fac6ca108734dd9566570b15f01cc476fa53dc
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Fri Nov 19 04:29:57 2010 +0100
+
+ Don't use hardware acceleration on Sandybridge rev 07 hardware or earlier.
+
+ This is known to lock up the GPU even with the workaround in place.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31773
+ Signed-off-by: Matthias Hopf <mhopf@suse.de>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8abade8a2139b500251488be5d6390f149666fb2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Dec 5 09:55:43 2010 +0000
+
+ display: Flush any pending batches before changing modes.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8450aba6c731b20e5cd7b55f1d747f00a6523291
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Dec 5 01:08:51 2010 +0000
+
+ i965: Also flush the vertex buffer when restarting the array.
+
+ As a corollary to filling one vertex array and beginning a new one is
+ remembering to emit the old one before overwriting...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f40f8bcf07bd7f496bfd3069eddfcbeb3d1bf8be
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Dec 5 00:26:22 2010 +0000
+
+ i965: Check for potential vertex array overflow every time
+
+ There was a reason why we need to check at the start of every composite
+ operation to see if we have enough space in the array to fit the
+ vertices, which I promptly forgot when moving the code around to make
+ it look pretty.
+
+ * sigh.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 55c5f1876e2329a938955967f5d45c814e50beb5
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 3 02:05:05 2010 +0000
+
+ Wait on the current buffer to complete when running synchronously.
+
+ And remove the vestigal wait upon changing crtc as this is more properly
+ done in the kernel.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3cc74044ce3546cc7dc2e918cbabbb41a77f4026
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Dec 2 12:07:44 2010 +0000
+
+ i965: Amalgamate surface binding tables
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a1fa0dbfdafea32139d4457d81b9d722df955eaf
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Dec 2 11:25:05 2010 +0000
+
+ i965: Upload an entire vbo in a single pwrite, rather than per-rectangle
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 23437fe6769322d48cc3d264660717475b5d0d74
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 3 01:16:16 2010 +0000
+
+ i965: Use reciprocal scale factors to avoid the divide per-vertex-element
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0bb135c40e5ac1bf7593ec1d68d2815cbf47aa25
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 23 22:27:38 2010 +0000
+
+ Disable BLT for i830 and 845G
+
+ This pair of chipsets seem broken beyond repair, specifically the
+ erratum that causes the wrong PTE entry to be invalidated, so disable
+ our incorrect attempts to use the BLT on those devices.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 33c08882c0d551afb28baef643279901dcc65fa9
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Nov 17 16:37:53 2010 +0800
+
+ Mark outputs as DPMSModeOn and restore backlight at mode set
+
+ The kernel always turns monitors on when doing mode setting, and so no
+ further DPMS action is required. Note this in the mode setting code by
+ marking the updated DPMS mode and restoring any saved backlight level.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit cc930a37612341a1f2457adb339523c215879d82
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 14 19:47:00 2010 +0000
+
+ uxa: Relax fencing some more for gen3
+
+ Allow fenced allocations even for small pixmaps if the kernel supports
+ relaxing fencing (where only the used pages are allocated).
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3c5b1399e29ef577b8b91655b5e1c215d1b6dfbb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 9 20:20:06 2010 +0000
+
+ i915: Disable maximum state addresses
+
+ As the kernel controls the relocation of state buffers, we should not
+ hard code the maximum permissible value for them.
+
+ Fixes an eventual hang with full-gtt.
+
+ Reported-by: Peter Clifton <pcjc2@cam.ac.uk>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 81d355a8dcdfe3d0924bb843bcc0e6546f695391
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 9 09:28:54 2010 +0000
+
+ uxa: Fix crash after allocation failure
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31487
+ Reported-by: Thomas Fjellstrom <tfjellstrom@shaw.ca>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 861ee17ae662ffec2269292f92da7833df508b1a
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Nov 5 12:55:02 2010 -0700
+
+ Update version number to 2.13.901
+
+ In preparation for a snapshot.
+
+commit aaa436b437839a80d340cc5ad598ec4b47ed2eff
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Nov 5 12:54:16 2010 -0700
+
+ NEWS: Add release notes for 2.13.901 snapshot.
+
+ An intermediate snapshot to capture recent developments.
+
+commit 6b66b45b1ff207b80b81973745f42a776448f764
+Merge: a44a63d 9f232ad
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Nov 5 12:51:55 2010 -0700
+
+ Merge commit '2.13.0'
+
+ This changes the version number and adds the 2.13.0 release notes,
+ (which were otherwise missing from the master branch).
+
+commit a44a63d2ff6c01c3dc61de6f736dd441ddd25e52
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Nov 5 09:58:45 2010 +0000
+
+ Wait for any pending rendering before switching modes.
+
+ A perennial problem we have is the accursed WAIT_FOR_EVENT hangs, which
+ occur when we switch the framebuffer before the WAIT_FOR_EVENT completes
+ and upsets the GPU.
+
+ We have tried more subtle approaches to detected these and fix them up in
+ the kernel, to no avail. What we need to do is to delay the framebuffer
+ flip until the WAIT completes, which is quite tricky in the kernel
+ without new ioctls and round-trips. Instead, apply the big hammer from
+ userspace and synchronise all rendering before changing the framebuffer.
+ I expect this not to cause noticeable latency on switching modes (far
+ less than the actual modeswitch) and should stop these hangs once and
+ for all.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31401 (...)
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 52b32436b9e14a3e13818f80102150ff5bc3c002
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Nov 3 19:42:26 2010 +0000
+
+ Downgrade tiling allocation failure to a warning
+
+ We emitted this message as an error even though we fallback and attempt
+ to allocate a non-tiled framebuffer before failing (with an appropriate
+ error message).
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 18839aaec505f8bbdb0690fe694162bf09a87d5c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Nov 3 18:14:29 2010 +0000
+
+ Fallback to shadow for Sandybridge if we don't have access to the BLT
+
+ If we attempt to emit BLT batches without kernel support, we just end up
+ with EINVAL and no rendering. Prevent this, and avoid uncached
+ rendering, by restoring the shadow fallback paths if there is no BLT
+ support.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8ff37667bf864b771d16a58fc5041cb48408b6a8
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Nov 2 10:36:03 2010 -0700
+
+ Remove the intermittent GEM_THROTTLE call.
+
+ This is a holdover from early GEM work when we weren't syncing on the
+ DRI client side. It would keep clients from getting too far ahead and
+ killing their interactivity, by bringing everyone to a halt when
+ anyone was too far ahead.
+
+ Now, GL clients throttle themselves to avoid the problem, and it turns
+ out that in the case that they don't (long rendering to buffers with
+ no swap), this actually reduces X Server interactivity: instead of
+ lagging of X rendering behind input, you get no response for seconds
+ at a time, then a burst of rendering, then nothing again.
+
+ Reported by ajax. Tested with moving a window while running
+ cairo-perf-trace on the GL backend (improvement) and X backend (no
+ significant change in responsiveness).
+
+commit 540c5742186c26c3aeccb7b5d3ff0f374722a20c
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Tue Nov 2 11:05:32 2010 +0800
+
+ render: use headerless render target write
+
+ It is weird that some rendercheck cases only work fine with headerless write.
+ Need to update intel-gen4asm to support headerless write
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 7a3109312e43ce4c2f600a65fe6bc821a8f0ebde
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Wed Oct 27 16:51:28 2010 +0800
+
+ render: acceleration for composite on Sandybridge
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 0ab2c05a291738ee763eb518c46e6dcfe29249a2
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Wed Oct 27 16:49:26 2010 +0800
+
+ render: fragments for composite on Sandybridge
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 21c86548dc2c80632c49ec6ec4da2935a0c99476
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Wed Oct 27 16:47:36 2010 +0800
+
+ render: fix send instruction used in sampling fragments
+
+ To prepare for composite on Sandybridge
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 8d008ca89d44aa10aeb032d631971aaebb388675
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Oct 25 15:39:39 2010 +0800
+
+ render: set the surface state base address
+
+ It is the same as commit 73d4c7d7
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit b5ae596a0746e5a37e86f5b0980f9265e0061142
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 1 11:11:09 2010 +0000
+
+ Flush BLT batches before starting an atomic RENDER batch
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 42363134bd38fb406d90cdb9e5b227836a793912
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Mon Nov 1 13:23:36 2010 +0800
+
+ Support BLT acceleration on gen6
+
+ Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5bed685f765671d63642b24e17abd70579c40ddf
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Mon Nov 1 13:23:35 2010 +0800
+
+ add BLT ring support
+
+ gen6+ platform has a BLT engine with seperate
+ command streamer to support BLT commands.
+
+ Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
+ [ickle: merge trivial conflict]
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6ec3ff134baeac33d9d5821695d5f80843a96c91
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Oct 15 11:21:09 2010 +0800
+
+ Xv: don't call intel_wait_for_scanline on Sandybridge
+
+ MI_LOAD_SCAN_LINE_INCL command is not available on sandybridge.
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 9e73cbd7eea61f2fe69692056ca446a4d95e17c2
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Oct 15 11:20:22 2010 +0800
+
+ Xv: enable TextureAdaptor for Sandybridge
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 3213849907bf1b1468872668d10764054c1034fe
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Wed Oct 27 09:54:05 2010 +0800
+
+ Xv: setup pipeline for Xv on Sandybridge
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 9e4dd27aa848acae1b74b77bbbc0a5bb9f6a502a
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Oct 21 16:10:14 2010 +0800
+
+ Xv: fragments for xv on Sandybridge.
+
+ Need to update intel-gen4asm to build these fragments
+
+ Signed--off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit e34b3f6ef5811d5e8d156dd6582df8f442e9792e
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Oct 21 13:15:45 2010 +0800
+
+ Xv: Send instruction doesn't use implied move when sampling YUV surface
+
+ The two fragments will be reused for sampling YUV surface
+ and send doesn't have implied move on Sandybridge
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 73d4c7d7b8efc920ac09885dcace5a536f93b70f
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Wed Oct 13 09:13:50 2010 +0800
+
+ Xv: set the surface state base address
+
+ To prepare for Xv on Sandybridge. It is easy to fill the binding
+ table without relocation and make sure that the pointer to binding
+ table only uses bits[15:0].
+
+ Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
+
+commit 5afc7472b155e8e940f12a38baf80c298dc3b364
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Oct 29 12:23:59 2010 +0100
+
+ intel: don't pass a dangling pointer to GET_PARAM
+
+ I fail at cut'n'paste.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6b3ce2e8701e7c3fcd30ca07fc13a2cdcf62560d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Oct 29 11:07:50 2010 +0100
+
+ uxa: Enable reduced fence sizes for i915
+
+ Depends on libdrm 362457715faacd3101929e5f0d8ae250d0ad09df (for
+ HAS_RELAXED_FENCING define).
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b066ddda31e40afa652ae51ffc35025ac3ef6f2a
+Author: Adam Jackson <ajax@redhat.com>
+Date: Sun Oct 3 14:42:56 2010 -0700
+
+ intel: Listen for hotplug uevents (V3)
+
+ This connects the kernel uevent indicating monitor hotplugging to the
+ RandR notification events so that X applications can be notified
+ automatically when monitors are connected or disconnected.
+
+ This also adds a configuration option to disable hotplug events.
+
+ V2: missed a #ifdef HAVE_UDEV around some udev-specific declarations
+
+ V3: document Hotplug option in man page
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit a1c54f69643671ce296c57d132852e9846cc41d3
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 18 13:28:44 2010 -0700
+
+ Fix violation of gen6 requirements for depthbuffer tiling.
+
+ In general, demoting of tiling of DRI2 buffers seems dubious, as we've
+ got various bits of functionality that won't all work together unless
+ buffers are tiled as expected. This just covers one instance of the
+ problem, caught by assertions in Mesa.
+
+ Fixes:
+ fbo-1d
+ fbo-d24s8.
+ glean/readPixSanity
+ glean/rgbTriStrip
+ glean/scissor
+
+commit 33133a1d38a4dce60d2e135663b545895fc85abc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Oct 17 09:21:06 2010 +0100
+
+ display: do not report failure for setting unrecognised properties
+
+ We need to accept any changes to properties not handled by ourselves -- we
+ can't validate the changes ourselves. Denying those changes breaks EDID
+ reporting, for example.
+
+ Reported-by: Elvis Pranskevichus <el@prans.net>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8507ef50ba08061ac158848a7c4c136e1755d87e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 13 09:45:59 2010 +0100
+
+ Fix driverName regression for i830 from 4083197a
+
+ Reported-by: Stefan Glasenhardt <stefan@glasen-hardt.de>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30808
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 15aab1ef982fb67eb2ea463089f070afd9a2cfe5
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 13 09:50:25 2010 +0100
+
+ Move EDID_COMPLETE_RAWDATA define to intel.h to avoid redifinition warning
+
+ The compiler was simply warning that we defined the name prior to
+ including the original definition, so reorder.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d2bc2212f8be746e697a65555d6d83bc66d9ce43
+Author: Stefan Dirsch <sndirsch@suse.de>
+Date: Fri Oct 8 17:48:38 2010 +0200
+
+ Make driver compile for 1.6 Xserver series again. Part deux.
+
+ Signed-off-by: Matthias Hopf <mhopf@suse.de>
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5472359d6860af655a3c286d30558540376c9fdb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Oct 8 15:23:13 2010 +0100
+
+ dri: Check for pixmap privates before dereferencing them
+
+ It is still possible for the pixmap allocator to return a software only
+ pixmap (i.e. without an associated GEM buffer or intel_pixmap), so check
+ before dereferencing.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30707
+ Reported-by: Matthias Hopf <mhopf@suse.de>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4083197a44d1a1a05d33654b3c7d6e96d7472fe7
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Oct 7 12:45:02 2010 +0100
+
+ Include a chipset generation number to clarify device specific paths.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 1444ea35706992a1f094fe029e6a7d9eec0f93c6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 6 12:36:30 2010 +0100
+
+ dri+shadow: Only tweak the acceleration of CopyRegion if using shadow.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f286891d1415fc607f0c1b574e6bce4b3759493e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 6 11:38:48 2010 +0100
+
+ dri: Reattach the fake pixmap for the shadow scanout to the drawable.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 23ee926bcd8ddd7a2785786efdf119e4fae75bfd
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 6 10:20:49 2010 +0100
+
+ uxa: Skip a pixmap lookup if there is no driver finish access function
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 707901bf98073fb56179a0b61c806f85ef8f413c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 6 08:47:20 2010 +0100
+
+ uxa: Re-enable acceleration.
+
+ A side-effect of discriminating offscreen based on the devPrivate.ptr
+ was that it broke uxa_finish_access and so after any fallback to s/w on
+ a Pixmap, it remained in software for the reminder of its life.
+
+ Introduce an explicit boolean to mark whether or not hardware
+ acceleration is enabled for a pixmap (with a GEM buffer).
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 54f545e0631a287f421ef6a6f20831624b212cf2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 6 08:50:13 2010 +0100
+
+ Revert "Clear pixmap->devPrivate.ptr [regression in 7c7294e]"
+
+ This reverts commit 48b4e224297fa807be0e2bc7a67bf7e94579e8de.
+
+ The better fix is to manually mark the pixmap when acceleration is and
+ is not permitted. Whilst the devPrivate.ptr are invalid upon creation,
+ it is not worth carring code that serves no purpose.
+
+commit d1925deedd70c6c4374e42de5aa44989fe328b58
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 6 00:17:03 2010 +0100
+
+ Clear pixmap->devPrivate.ptr [regression from 7c7294e]
+
+ ModifyPixmapHeader(pixdata = NULL) does not clear the
+ pixmap->devPrivate.ptr, instead the NULL value is interpreted as meaning
+ to keep the current value. (This is similar to the interpretation of the
+ other invalid values like depth=-1 which also mean not to change the
+ current property). However pixadata=NULL is indeed a valid value, and in
+ 7c7294e, devPrivate.ptr == NULL was used to differentiate a bo pixmap
+ from a system pixmap. Except that we never did clear the ptr as
+ intended, and so X would immediately crash.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4bf2182bf9ee64795e2bf524fedf7b6c36f3cd03
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Oct 5 09:59:04 2010 +0100
+
+ shadow: Use a cacheable shadow for all generations
+
+ Always avoid direct rendering to the uncached scanout buffer,
+ redirecting all 2D access to the shadow instead. Then for the couple of
+ platforms where either the BLT is not ready or cannot be trusted (i8xx)
+ perform the front buffer fixup using the uncached writes from the CPU.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b27a521214728052b8b10342aaacbaf1622b8e2c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Oct 4 20:31:44 2010 +0100
+
+ shadow: Enable shadow by default on SandyBridge
+
+ SandyBridge 2D support is far from complete, so instead of
+ permanently falling back and always using uncached GTT mapping for
+ rendering, use the shadow buffer instead.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3e641459f8997f45288cc3cb314e50f2b5a629fd
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Oct 4 20:31:01 2010 +0100
+
+ shadow: Disable BLT for SandyBridge
+
+ The blitting code is incorrect for SandyBridge so disable until
+ the BLT ring is ready.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7c7294ec00d6c3a454a17a1b9983d14d0655162c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Oct 4 11:56:27 2010 +0100
+
+ shadow+dri2: Allow dri2 to be independently enabled with shadow
+
+ To enable DRI we create GEM buffers for the client to render into with
+ hardware acceleration. In order to maintain coherency between any 2D
+ render operations with the independent 3D clients (this includes the
+ reading of 2D rasterisation by the direct rendering client, e.g.
+ compiz using texture_from_pixmap) we need to replace the shadow pixmap
+ with the GTT mapping. Therefore 2D rendering to a DRI buffer will be to
+ uncached memory and thus penalised -- but the direct rendering clients
+ will have full hardware acceleration.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 16a5d0ee3ca4d41af6a6876a8baf81e3f715781d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Oct 4 11:21:17 2010 +0100
+
+ shadow: Map the scanout directly on i8xx
+
+ Even with the minimal use of the BLT to copy from the GTT shadow to the
+ GTT scanout, i830 was still hanging. Just write to the scanout directly.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 516d235c5b3bd51e9533925140d95d3b4533129c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Oct 4 11:10:57 2010 +0100
+
+ Split shadow handling routines to their own file.
+
+ This is about to get messy, so separate out the shadow from the normal
+ code.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 455f2939a661764ebb8d1747d44e16a0a8937808
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Oct 2 13:32:58 2010 +0100
+
+ Do not claim the PCI device if !KMS
+
+ By returning FALSE whilst probing if we can't find a KMS driver, we
+ allow X to fallback to trying the VESA driver -- rather than failing.
+
+ The initial idea for this was by Julien Cristau.
+
+ Reported-by: Julien Cristau <jcristau@debian.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 97fea2fd0c36d78f4e940b124a7886c4a3f3dfc7
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Oct 2 10:05:59 2010 +0100
+
+ legacy/i810: Remove pVisualConfigs
+
+ Completely unused pulling in an undesired glxproto dependency.
+
+ Reported-by: Cyril Brulebois <kibi@debian.org>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30554
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8784c4f5a1524fb979b00c7ce7981cbc1dcf0ec0
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Oct 1 21:40:36 2010 +0100
+
+ video: Disable TextureAdaptor for Sandybridge
+
+ The acceleration code does not yet exist, so we try to use gen4 shaders
+ which hangs the chip and makes everybody upset. Disable it until such a
+ time as support is written for Sandybridge XVideo.
+
+ Reported-by: Matthias Hopf <mhopf@suse.de>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30500
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9f232ad67c72b7869dcd112207bc41dc01d7d104
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Sep 30 08:45:49 2010 -0700
+
+ Increment version to 2.13.0
+
+ For the new, major release.
+
+commit 99ec9bb0f1eaf2e5c04614957a51624a928526e5
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Sep 30 08:45:15 2010 -0700
+
+ Add release notes for the 2.13.0 release.
+
+ Which is functionalliy identical to 2.12.902.
+
+commit 345c963e443ec325f1ff530512a356ddb318ff70
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Thu Sep 30 10:58:49 2010 +0800
+
+ Always use tiling on Sandybridge
+
+ Sandybridge requires kind of buffer must be tiling, like depth.
+ And we would or have all tiling cases handled fine. So not allow
+ user to turn off tiling on Sandybridge+ may be fine.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit d4c013cb9d92d2959c9a98eca20e43ab14ae22e3
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Sep 28 20:49:52 2010 -0700
+
+ Increment version to 2.12.902
+
+ Just before making the 2.12.902 (2.13-rc2) snapshot.
+
+commit 35e7da7df0b286b5168a85d540cc9fdf55c1cae6
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Sep 28 20:49:10 2010 -0700
+
+ Add release notes for the 2.12.902 snapshot.
+
+ Summarizing the 5 recent changes to the driver.
+
+commit 5704955538f59a2b7a5eff67cc23953d2f27d523
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Sep 28 20:44:40 2010 -0700
+
+ Fix to depend on the (just-released) libdrm >= 2.4.22
+
+ With libdrm < 2.4.22, the compilation of xf86-video-intel would fail
+ due to an undefined DRM_MODE_CONNECTOR_eDP. We now ensure that a
+ sufficiently new libdrm is available before compiling.
+
+commit 40c9d180bf43af84ae05d88e993deedf76e263e6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Sep 26 23:09:04 2010 +0100
+
+ Retry framebuffer allocation if first attempt fails.
+
+ If we are tiled, we may fail the allocation due to an EIO and so not
+ being able to set tiling. Try again with an untiled request in this
+ case.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 537e73f3f935b917f2f5f9b51499cb29d65e3889
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Sep 24 17:37:41 2010 +0100
+
+ Disable dri2 after forcing fallbacks
+
+ If we force fallbacks, then we will only create pixmaps in system
+ memory, preventing DRI2 from passing valid bo names to the clients. In
+ this case, they will just fallback to swrast. If we disable DRI2 after
+ forcing fallbacks (e.g. regenerating after a GPU hang or explicitly
+ disabled with the shadow buffer) then it is simpler just to disable the
+ extension and allow mesa to use pure swrast.
+
+ Reported-by: Julien Cristau <jcristau@debian.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b84925b9c0842ba4dfa3481c09d3a80f84db4838
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Tue Aug 17 18:05:02 2010 +0200
+
+ Make driver compile for 1.6 Xserver series again.
+
+ Signed-off-by: Matthias Hopf <mhopf@suse.de>
+
+commit 99f8d68d3dbc54fdd7de4a6df546cfa89422a0c2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Sep 22 12:34:00 2010 +0100
+
+ display: Refactor is_panel()
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4ba27e1f2198fc10a1dd268ed9f137bac6e80086
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Sep 21 17:43:01 2010 -0700
+
+ Bump version to 2.12.901
+
+ Just prior to pushing out this new snapshot.
+
+commit 334265fa5ef18405bd8c897343fff49ad53f5fce
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Sep 21 17:42:21 2010 -0700
+
+ NEWS: Add notes for the 2.12.901 snapshot
+
+ (Otherwise known as rc1 for 2.13)
+
+commit bfba6d6148b938588ffbefdf04f4e71683c66dfd
+Author: Krzysztof Halasa <khc@pm.waw.pl>
+Date: Tue Sep 21 22:56:26 2010 +0100
+
+ Allow interlaced modes.
+
+ This may not the best method, but it should be a good base on which to
+ build...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f63c7df6866fed61551d39209b1a262e2a0c4b28
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Fri Sep 17 16:39:12 2010 +0800
+
+ Disable swap buffer wait on Sandybridge
+
+ MI_LOAD_SCAN_LINE_INCL command is not available on sandybridge.
+ I haven't got reply on any substitution for it, so turn it off for now.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 55b5fe888002258dd863d41977bfbfcf1a922179
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Sep 16 16:50:13 2010 +0100
+
+ Add alternate pci-id for B43
+
+ Confirmed by http://en.wikipedia.org/wiki/Intel_GMA
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30221
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 08c2caca48323d6d5701dcef3486f850619d7905
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Sep 12 12:34:51 2010 +0100
+
+ uxa: Apply source clipping to blits
+
+ Yes, this should be done in the higher layers. Yes, I have written code
+ to that. No, it is not ready, hence add the sanity check to the
+ SRC_COPY_BLT.
+
+ This isn't the first report that I've seen, but will be the last.
+
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30120
+ Reported-by: rezbit.hex@gmail.com
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ae160d7fbfc79e78dad8702efcc55d9c0c25ff67
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Sep 10 13:19:12 2010 +0100
+
+ shadow: Simply modify the Screen pixmap header
+
+ This is a slightly less risky strategy than having to remember to update
+ all pointers to the old Screen pixmap.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0515256490d5bcd55f85af83b84918d1bfe7f8f8
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Sep 10 00:08:58 2010 +0100
+
+ display: Free the EDID blob after we copy it to the output, not before.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2b96c18165d713cd6781dbf217ec33e11cc961bc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 25 12:56:43 2010 +0100
+
+ Enable a shadow buffer and disable GPU acceleration.
+
+ An attempt to workaround the incoherency in gen2 chipsets, we avoid
+ using dynamic reallocation as much as possible.
+
+ The first step is to disable allocation of pixmaps using GEM and simply
+ create them in system memory without a backing buffer object. This
+ forces all rendering to use S/W fallbacks.
+
+ The second step is to allocate a shadow front buffer and assign that to
+ the Screen pixmap. This ensure that the front buffer remains in the GTT
+ and pinned for scanout. The shadow buffer will be rendered to in the
+ normal fashion via the Screen pixmap, and be marked dirty. In the block
+ handler, the dirty shadow buffer is then blitted (using the GPU) over
+ the front buffer. This should completely avoid having to move pages
+ around in the GTT and avoid incurring the wrath of those early chipsets.
+ Secondly, performance should be reasonable as we avoid the ping-pong
+ caused by the small aperture and weak GPU forcing software fallbacks.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0fa4321a765126228170ecb9536f32c134886d51
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 7 13:56:16 2010 -0700
+
+ KMS: initialize backlight support for eDP panels too
+
+ Since being able to control the backlight is handy.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit f56c839f30ec39ea22bbf6a7fda4cefd7cbfbfc2
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 7 13:53:47 2010 -0700
+
+ KMS: rename LVDS fields to reflect actual usage
+
+ These are used for panels, not just LVDS connections, so name them as such.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 0d26d950fdada1f59dc6cb31fe2f03004825f773
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 7 13:46:58 2010 -0700
+
+ KMS: add fake EDID on eDP too
+
+ This gives us a few more standard modes on eDP panels with just a simple
+ fixed timing in the VBT, just like on older, LVDS attached panels.
+
+ Fixes FDO bug https://bugs.freedesktop.org/show_bug.cgi?id=30069.
+
+ Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Tested-by: Manoj Iyer <manoj.iyer@canonical.com>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 273d34fbc43e54a8539fbe7efc1dca66bbb4e6dc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Sep 7 12:57:04 2010 +0100
+
+ display: Query current level after finding max value.
+
+ The current backlight value is clamped to the valid range [0, max] and
+ so as we queried the value before setting the max, we forced the current
+ backlight to 0 and so set it to be zero on initialising the display.
+
+ Fixes:
+
+ Bug 30063 - start X will modify brightness value to zero
+ https://bugs.freedesktop.org/show_bug.cgi?id=30063
+
+ which is a regression due to 38f940dfea494d3093236f065392c431be06ae6e.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 53767cc0d0a58d36cd445da3a31c65b349eebbba
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Sep 7 14:17:05 2010 +0800
+
+ Add more sandybridge graphics device ids
+
+ New ids for GT2 and GT2+ on desktop and mobile sandybridge, and
+ server sandybridge device ids.
+
+commit 00f6af2c8ec899258ffab60dc2d9d80c4d9daec8
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Sep 4 18:45:11 2010 +0100
+
+ display: Set MONITOR_EDID_COMPLETE_RAWDATA for large EDIDs
+
+ Quoting Adam Jackson:
+
+ "But the X driver looks like
+ it never sets MONITOR_EDID_COMPLETE_RAWDATA, which means the X core
+ doesn't know that any sections beyond the first are present, so it won't
+ ever hand back more than 128 bytes to clients. Boo."
+
+ This patch is based on his.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 501e78b0095b00a635dc1dc182fc132f14f08f22
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Sep 4 12:37:39 2010 +0100
+
+ Force use of GTT and fence registers for mapping tiled objects
+
+ If the buffer object is tiled, we need to use the fence registers to
+ perform the appropriate untiling for CPU access. Ensure that we always
+ take this path for tiled objects, regardless of their size.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b7a8087fbc5cbd944f8345b8a098270c1f63ebab
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 25 15:44:20 2010 +0100
+
+ Revert "Leave adjustment of backlight to the driver."
+
+ This reverts commit 9c3e34703dcdc2155faeb2c1886930def19d9989.
+
+ This commit is not ready, as first the driver needs to handle all
+ controllers, especially those that ignore the BLC and require their own
+ interface. Fortunately, by moving that discovery into the kernel - where
+ it just means finding which ACPI device is attached to the video and has a
+ backlight interface - the userspace code should become much more sane,
+ and work even with multi-gpu, multi-lid systems.
+
+ But that is for tomorrow.
+
+commit 68a5ad497b557ab9e8bff301098ea78c84d385a2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 25 14:59:04 2010 +0100
+
+ uxa: Fallback if faced with large A1 glyphs.
+
+ Rather than assert, we should fixup the use of large A1 glyphs. However,
+ the simplest approach is to simply fallback to s/w.
+
+ Fixes:
+
+ Bug 29430 - [UXA] Crash due assert (uxa_pixmap_is_offscreen(src_pixmap));
+ https://bugs.freedesktop.org/show_bug.cgi?id=29430
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9c3e34703dcdc2155faeb2c1886930def19d9989
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Aug 22 21:27:45 2010 +0100
+
+ Leave adjustment of backlight to the driver.
+
+commit 104cd0554bde1d109a54db7a93700d5edfabd914
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Mon Aug 23 09:48:22 2010 +0800
+
+ Add sandybridge D0 support
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 271dda84be2f81b32dbe5947e64f5558a89e385e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Aug 22 19:57:24 2010 +0100
+
+ display: Use the native intel backlight controller
+
+ If the i915 driver exposes a native ACPI interface to modify the panel
+ backlight use it in preference to the generic interfaces. On multi-GPU
+ systems, the panel backlight is meant to be connected via the IGP and
+ this ensures that we always find the right interface.
+
+ Fixes:
+
+ Bug 29273 - XORG Intel driver chooses wrong acpi_video to control
+ brightness in multi-GPU system
+ https://bugs.freedesktop.org/show_bug.cgi?id=29273
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 42312bbd8c9cbadf0adc4556b76987857d105bd9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Aug 22 09:54:18 2010 +0100
+
+ Remove accel_pitch_alignment
+
+ This has to be 64 on all generations currently, so replace the variable
+ with a constant.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7f86e5b5da88201e5443e26619c35a1a9745cf68
+Author: Matt Turner <mattst88@gmail.com>
+Date: Sat Aug 21 17:32:25 2010 -0400
+
+ Replace ROUND_* macros with ALIGN.
+
+ Signed-off-by: Matt Turner <mattst88@gmail.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b611bced15c30f7bcd03106ce90668b684c1ada6
+Author: Matt Turner <mattst88@gmail.com>
+Date: Sat Aug 21 17:32:24 2010 -0400
+
+ Use ALIGN macro instead of open coding it.
+
+ Signed-off-by: Matt Turner <mattst88@gmail.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8b04b350a983b89eb2d741f55baa297a933ac6ea
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Aug 19 20:05:08 2010 +0100
+
+ Open-code DRICreatePCIBusID()
+
+ During -configure we would attempt to query the availablility of KMS
+ before the DRI module was loaded, thus we were unable to create a valid
+ bus identifier and so the query failed and we disowned the device.
+
+ Fixes:
+
+ Bug 29611 - Xorg -configure fails
+ https://bugs.freedesktop.org/show_bug.cgi?id=29611
+
+ Reported-by: Sergey Samokhin <prikrutil@gmail.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c882f6a22a862c1664c375e05e5e6fc4bdb04edb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 18 10:21:22 2010 +0100
+
+ Move registration of vsync fd from pre-init to screen-init
+
+ Marty Jack reported an issue he found where the page-flipping handler
+ was being lost on server reset. This results in the swap completion
+ notification being lost, with the sporadic hang of full screen
+ applications like Compiz, flash and even glxgears!
+
+ Fixes:
+
+ Bug 29584 - Server in compute loop
+ https://bugs.freedesktop.org/show_bug.cgi?id=29584
+
+ There are also several possibly related bugs with similar symptoms, i.e.
+ OpenGL applications hanging on missed swap notifications.
+
+ Reported-by: Marty Jack <martyj19@comcast.net>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Cc: Keith Packard <keithp@keithp.com>
+
+commit 19c48d3b3f33582baa87a9b3a9189e320e4cea45
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Aug 9 10:13:58 2010 +0100
+
+ display: outputs are enabled automatically by KMS
+
+ When an output is attached to a crtc and that crtc is enabled, the
+ output is automatically enabled so we can remove the redundant manual
+ dpms on.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6304cb048c745be81dae13f1d936996e04eaa530
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Aug 5 18:13:55 2010 +0100
+
+ display: Minor cleanup for adding extra LVDS modes
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 41ae9564350cba8ac9f040f22bad8740e08e14c4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Aug 5 18:13:30 2010 +0100
+
+ display: Refactor EDID attachment to output.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a8919ab2967a8425e1cdc04b73702ce534f6abf0
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Aug 5 09:59:22 2010 +0100
+
+ Revert "display: Cache whether we have probed for an EDID"
+
+ Dave Airlie advised that hotplug detection can be unreliable and that
+ mode caching, in general, should be done in the kernel in any case.
+
+ This reverts commit 622e600069ab0efd22586c7a71eecbd4baf21c40.
+
+commit 622e600069ab0efd22586c7a71eecbd4baf21c40
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 4 09:57:12 2010 +0100
+
+ display: Cache whether we have probed for an EDID
+
+ Remember for the detection cycle whether we have already probed for the
+ EDID -- as this can be slow.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a6a707ca13097b85b319283b3a174b1986056ab8
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 4 09:54:28 2010 +0100
+
+ display: Embed the lvds size into the connector
+
+ Remove one very common allocation.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6c7d105ccae32fba49a07a03b726cc3fe2de3d27
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 4 09:51:34 2010 +0100
+
+ display: Handle cursor error paths.
+
+ Check that the cursor was allocated before freeing.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 38f940dfea494d3093236f065392c431be06ae6e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 4 09:50:14 2010 +0100
+
+ display: Tidy backlight initialisation
+
+ Mostly whitespace and a single error-code fix.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2b7263b771d94401cb4ea6cbf4dc7a295eeda7c0
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Aug 4 09:46:01 2010 +0100
+
+ display: Check for buffer overrun in output name lookup.
+
+ The kernel may know about more types than we do, so protect ourselves
+ from reading from beyond the end of the string array.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 56629166915155628e70e6ec8052c0d220a8bb68
+Author: Dave Airlie <airlied@redhat.com>
+Date: Wed Aug 4 15:35:41 2010 +1000
+
+ intel: add output names for later additions to kernel
+
+commit fe7dee7fe1cf12665bc5ba3923cd1a8f74cbbe57
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Aug 1 14:15:09 2010 +0100
+
+ Remove the final references to the drmmode prefix
+
+ In particular fix the compile regression for intel_do_pageflip().
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4f8b279f32cfda0f3b8fa1542b3fe00051520012
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Aug 1 12:35:57 2010 +0100
+
+ intel_display: Miscellaneous tidy
+
+ A mixture of whitespace and closing of leaks on error paths.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit db7cd7b9f0ce8e435c121071eaadf8e6dcebf9e8
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Aug 1 11:25:42 2010 +0100
+
+ Rename drmmode_display to intel_display
+
+ And fixup all the drmmode_* functions to have an intel prefix and
+ categorise those into intel_mode, intel_crtc, intel_output and
+ intel_property so that the functions are a little more self-descriptive
+ and, more importantly, are consistent.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0be3e95c844247746742805830860ace9f546d99
+Author: Kristian Høgsberg <krh@bitplanet.net>
+Date: Fri Jul 30 09:39:58 2010 -0400
+
+ Remove explicit batchbuffer submit in DRI2 copyregion
+
+ Now that we submit from the flush callback chain, we know we'll always
+ submit before the client receives the reply or event that blocks it from
+ rendering the next frame.
+
+commit 69d65f9184006eac790efcff78a0e425160e95aa
+Author: Kristian Høgsberg <krh@bitplanet.net>
+Date: Thu Jul 29 18:31:48 2010 -0400
+
+ Submit batch buffers from flush callback chain
+
+ There are a few cases where the server will flush client output buffers
+ but our block handler only catches the most common (before going into select).
+ If the server flushes client buffers before we submit our batch buffer,
+ the client may receive a damage event for rendering that hasn't happened yet.
+
+ Instead, we can hook into the flush callback chain, which the server will
+ invoke just before flushing output. This lets us submit batch buffers
+ before sending out events, preserving ordering.
+
+ Fixes 28438: [bisected] incorrect character in gnome-terminal under compiz
+ https://bugs.freedesktop.org/show_bug.cgi?id=28438
+
+ Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
+
+commit b68d4fcab5d671946c187947f5d00aedff939852
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jul 28 13:41:41 2010 +0100
+
+ drmmode: Only treat a backlight as connected if it has a non-zero max
+
+ Optimistically might help
+ https://bugs.freedesktop.org/show_bug.cgi?id=29273
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 938ef4eaec0e406e198105d866f6d2a1be5e0ef8
+Author: Kristian Høgsberg <krh@bitplanet.net>
+Date: Wed Jul 28 07:57:42 2010 -0400
+
+ legacy: Remove long gone use of GlxSetVisualConfigs()
+
+ This removes the last dependeny on anything GL/GLX in the driver.
+
+commit fba6651a92af76d7a8d034e1acfdad5023cd311c
+Author: Kristian Høgsberg <krh@bitplanet.net>
+Date: Tue Jul 27 12:59:39 2010 -0400
+
+ Drop use of GL types in the driver
+
+ Still used in i810 for building the glx visuals.
+
+commit 34b9d45be6cb0c42f031677a0bda8a5013472ae8
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jul 27 09:10:04 2010 -0700
+
+ Revert "configure.ac: add xi and gl requirements"
+
+ This reverts commit d580fa82a1cf339d2d1fd1055d137c0b23cd04f3.
+
+ Oops, these should be server or other package dependencies, we don't
+ actually need them for xf86-video-intel.
+
+commit d580fa82a1cf339d2d1fd1055d137c0b23cd04f3
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jul 26 16:44:19 2010 -0700
+
+ configure.ac: add xi and gl requirements
+
+ Could probably be earlier versions, but having these here makes packaging
+ easier.
+
+commit f46a8dfce59013ce593c15f7166598d0fff9198f
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Jul 26 23:02:02 2010 +0200
+
+ video: kill do { ... } while (ret != -EINTR) loops
+
+ Chris Wilson likes to sprinkle these all over, but in this
+ case it's just misleading. libdrm already does this for us.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 1cb69b9a77b7afbb4358757556065e10a6b15ea8
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Jul 26 23:00:20 2010 +0200
+
+ video: kernel overlay needs triple buffering
+
+ The kernel overlay code does asynchronous overlay flips. So keep
+ onto two old buffers, for otherwise the rendering of the next
+ frame might overwrite the contents of the currently still displaying
+ one. With ~25fps videos and ~50 Hz screens that's rather unlikely,
+ still, fix it.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 68df6b2790891683ee2e58daaad34ef17ae344f5
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Fri Jul 23 17:39:37 2010 -0400
+
+ simplify Makefile as per-target compilation flags are not needed
+
+ Per-target compilation flags (libIntelXvMC_la_CFLAGS) are required
+ when multiple targets which require different compiler flags,
+ are build in the same makefile.
+
+ Automake issues a command with -c and -o flags which not all compilers
+ support. The object fles are prefixed with libIntelXvMC_la.
+ The macro AM_PROG_CC_C_O must then be used to provide this feature
+ on compilers that do not have it. If not, a warning is issued at make time.
+
+ This macros checks for compiler support and if missing, uses a "compile"
+ script it generates in the package root directory.
+
+ Currently the driver uses per-target flags but the macro is missing.
+ Rather than adding the macro, this patch stops using per-target flags
+ by using the AM_CFLAGS variable for all targets in the makefile, as
+ there is only one.
+
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 0ae30b6d1f4f6c2f2db9443f1027ea41849ad087
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Jul 21 16:49:04 2010 -0400
+
+ config: add comments for main statements
+
+commit b12b2219677d94933774955b50545efceff57279
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Jul 21 16:07:00 2010 -0400
+
+ config: replace deprecated use of AC_OUTPUT with AC_CONFIG_FILES
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 8b2d65da41461735b1138fdd6e0efc96419cd815
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Jul 21 14:37:41 2010 -0400
+
+ config: replace deprecated AC_HELP_STRING with AS_HELP_STRING
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 3feeef5294b1a2df05a25f4f4eb6400be6cc4ee1
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Jul 21 14:05:22 2010 -0400
+
+ config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERS
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 74a828e286c46473b8edf6de32c1989c052dd82c
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Jul 21 09:27:42 2010 -0400
+
+ config: complete AC_INIT m4 quoting
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 33ec66d7006e2a7e287fd77c53a31db49220591a
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Tue Jul 20 21:54:11 2010 -0400
+
+ config: remove unrequired AC_SUBST([DRI_CFLAGS])
+
+ This macro is called by PKG_CHECK_MODULES
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit b20b8ac937505310fbe68f07e42cafe4ba88da76
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Tue Jul 20 20:24:42 2010 -0400
+
+ config: remove unrequired AC_HEADER_STDC
+
+ Autoconf says:
+ "This macro is obsolescent, as current systems have conforming
+ header files. New programs need not use this macro".
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 9fe5169fffeee10b1262f160a15c11c283e2faa7
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Tue Jul 20 19:41:31 2010 -0400
+
+ config: remove AC_PROG_CC as it overrides AC_PROG_C_C99
+
+ XORG_STRICT_OPTION from XORG_DEFAULT_OPTIONS calls
+ AC_PROG_C_C99. This sets gcc with -std=gnu99.
+ If AC_PROG_CC macro is called afterwards, it resets CC to gcc.
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit e6b8811e5bb30e2cd4e35b1fe84d69f18a73ee0e
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Tue Jul 20 18:45:19 2010 -0400
+
+ config: update AC_PREREQ statement to 2.60
+
+ Unrelated to the previous patches, the new value simply reflects
+ the reality that the minimum level for autoconf to configure
+ all x.org modules is 2.60 dated June 2006.
+
+ ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 2d85efaa36791bd441f069b612ee86387353d1ed
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Tue Jul 20 16:15:29 2010 -0400
+
+ config: upgrade to util-macros 1.8 for additional man page support
+
+ Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS
+ The value of MAN_SUBST is the same for all X.Org packages.
+
+commit 142ffa287236adbc3c5f6ead46c63c4c541ace0c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jul 22 16:42:26 2010 +0100
+
+ video/i915: ValidateGC after setting clip.
+
+ Order is important. And ensure that the scratch GC is performing clip by
+ children.
+
+ Fixes:
+
+ Bug 29213 - video artifacts if used dualscreen mode
+ https://bugs.freedesktop.org/show_bug.cgi?id=29213
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c57840b272ba88fddf22484929608431879b0fab
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jul 21 09:06:06 2010 +0100
+
+ uxa: Check for failed pixmap allocation
+
+ Fixes:
+
+ Bug 29187 - crash in intel_drv
+ https://bugs.freedesktop.org/show_bug.cgi?id=29187
+
+ Backtrace:
+ 0: /usr/bin/X (xorg_backtrace+0x28) [0x466808]
+ 1: /usr/bin/X (0x400000+0x67c79) [0x467c79]
+ 2: /lib/libpthread.so.0 (0x7ff19b297000+0xef60) [0x7ff19b2a5f60]
+ 3: /usr/lib/xorg/modules/drivers/intel_drv.so (0x7ff197986000+0x34684) => uxa/uxa-render.c:841
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7a4bfaf42412f373bbc8ebe1536018dcacde7436
+Author: Dave Airlie <airlied@redhat.com>
+Date: Tue Jul 20 11:30:44 2010 +1000
+
+ intel: respect tiling disable.
+
+ For testing purposes its nice to know tiling isn't being used anywhere.
+
+ Signed-off-by: Dave Airlie <airlied@redhat.com>
+
+commit d48d584a822ae5adae64f6d5f09faa4ac9b8de73
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jul 15 14:37:59 2010 +0100
+
+ video: Free the buffers immediately after turning off.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 24bdfe0d5eb4e890e9c63bbb4617efaa0768ab7f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jul 15 13:54:04 2010 +0100
+
+ video: Reuse the old buffers.
+
+ After passing the new buffer to the kernel, the old buffer is unpinned
+ and becomes available for re-use. So keep hold of the old buffer and
+ swap after a PutImage. This greatly reduces the amount of CPU time
+ consumed by the kernel on behalf of the video overlay -- by only
+ allocating two buffers for an entire sequence, we avoid clflushing and
+ page allocation on every frame.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2267e5928bd90a6997970584462bd97df447e819
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jul 13 10:36:34 2010 +0100
+
+ Workaround a broken container_of define in list.h
+
+commit 798c3a5fc6e3d44c9b94e6bc4e72385a10939f52
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jul 13 10:30:33 2010 +0100
+
+ Teardown the bufmgr on shutdown as well.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b2e98227d11a60e90b3ea518f14962f2764ffa68
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jul 13 10:15:34 2010 +0100
+
+ Remove the duplicate drmmode prototypes.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5de1b74d64f807b59c730871d4cb171484db9780
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jul 13 09:34:53 2010 +0100
+
+ modes: There may be more than one crtc and output... DESTROY THEM ALL!
+
+ In order to cleanup all CRTCs and outputs on shutdown, we need to keep a
+ list of the individual structures and iterate over that list on
+ shutdown.
+
+ Also, the output and crtcs are configured just once and not for each
+ screen generation so move the shutdown to the termination and not on
+ CloseScreen. Oops.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3a7c25ff8ddd45c9d9eca5cc2228552847ca9e7d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jul 12 19:47:46 2010 +0100
+
+ video: Apply overlay stride errata for i830 and i845
+
+ Due to an erratum on these chipsets, the overlay stride must be a
+ multiple of 256 bytes.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 56e5816252afbc7dd555c308ca678fce7ee584cc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jul 12 17:26:37 2010 +0100
+
+ video: Copy DummyEncoding into each adapter.
+
+ As we use the static DummyEncoding and may attempt to modify it for each
+ adaptor (on each device), we should use copies instead.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e30f0338fbf894fa3fdab20f4f9a97495cd341da
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Jul 1 09:56:40 2010 -0400
+
+ Destroy screen pixmap on screen close.
+
+ This avoids a memory leak on server reset.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ [ickle: Added comments from Keith that explain the necessity of
+ destroying the pixmap ourselves and why chaining up in this instance is
+ not the correct approach.]
+ Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6e08b0f48f0d6ddaca963de6f4fd3b56f32512c6
+Author: Fernando Carrijo <fcarrijo@yahoo.com.br>
+Date: Thu Jul 1 07:15:22 2010 -0300
+
+ Purge macro NEED_EVENTS
+
+ Signed-off-by: Fernando Carrijo <fcarrijo@yahoo.com.br>
+ Acked-by: Tiago Vignatti <tiago.vignatti@nokia.com>
+ Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
+
+commit 5ce3f536b7169a1ee9eadf830e61bab230dd7239
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jul 9 14:06:43 2010 +0100
+
+ drmmode: Destroy the output on shutdown
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6ff369cd2602497ee11273b50f76d1a7bf25991d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jul 9 14:00:31 2010 +0100
+
+ drmmode: Destroy Crtc on screen shutdown
+
+ Should fix:
+
+ Bug 26946 - CRTC cursor BO leak in 2D
+ https://bugs.freedesktop.org/show_bug.cgi?id=26946
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6fba8c449f61341a98a5ae8d97effa6fd0610fd4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jul 9 12:12:13 2010 +0100
+
+ Add support for I854.
+
+ I spotted that the kernel knew of the I854, but the pci-id was never
+ added to the ddx.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 141e88c8730a099a6ca5eab1350c2e53a680cb0d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jul 9 12:11:07 2010 +0100
+
+ video: forgotten amendment to previous commit.
+
+ An extra sanity check to skip the wait if all clipped...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 272d1c14a39c32ade39b5a8b080a891f2b3d6e8e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jul 9 10:41:19 2010 +0100
+
+ video: apply the crtc box checks from dri.
+
+ The dri code is much more careful in ensuring that the scan lines that
+ is waits for are valid. Copy this code to video, with a bit of work this
+ can be refactored, and perhaps even teach dri how to handle rotated
+ front buffers.
+
+ References:
+
+ Bug 28964 - [i965gm] GPU infinite MI_WAIT_FOR_EVENT while watching video
+ in Totem
+ https://bugs.freedesktop.org/show_bug.cgi?id=28964
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 75850e824bd66b961b9ce21696d9090169f7b28f
+Author: Evan McClain <aeroevan@gmail.com>
+Date: Thu Feb 25 01:51:42 2010 -0500
+
+ Add mbp_backlight support.
+
+ Acked-by: Julien Cristau <jcristau@debian.org>
+
+commit a2aa4c23f65b03c389c2ba8eac0298dfb205e67d
+Author: Dave Airlie <airlied@redhat.com>
+Date: Mon Jul 5 14:02:42 2010 +1000
+
+ uxa: oops typo in previous commit
+
+commit feff2ec80eeeba5074d19efcddf4867adf639b4f
+Author: Dave Airlie <airlied@redhat.com>
+Date: Mon Jul 5 09:07:08 2010 +1000
+
+ uxa: don't compare planemask with FB_ALLONES.
+
+ planemask is an unsigned long initialised to ~0, on 64-bit this is not equal
+ to an (unsigned int)-1.
+
+ Use the macro provided to do this.
+
+ Signed-off-by: Dave Airlie <airlied@redhat.com>
+
+commit 7ad9c0bebf2c71db574e0302264859ce53cecd37
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Jul 2 12:39:27 2010 -0700
+
+ add cscope files to gitignore
+
+commit afcd41820d7481912b49093670e9d7a4a6a2338f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jul 1 22:14:03 2010 +0100
+
+ Reduce front buffer stride prior to rejection
+
+ If we reject the front buffer because it has too large a stride, repeat
+ the allocation using untiled for the cases where we can utilize laxer
+ hardware restrictions.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f8778b66a98d68e622cdf5b2d1fd959c4f7a2b2b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jul 1 21:58:43 2010 +0100
+
+ drmmode: Add missing newlines at the end of log messages.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 690fbd1a64c1e1fd07f7f8a5e39e05a33e4d0721
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jul 1 21:55:04 2010 +0100
+
+ drmmode: Use a copy of the converted mode on resize
+
+ Avoid a potential use-after-free of the copied mode string by reusing
+ the converted kernel mode on resize.
+
+ ==19897== Invalid read of size 8
+ ==19897== at 0x661C330: ??? (strcpy.S:1308)
+ ==19897== by 0x8618AE7: drmmode_set_mode_major (drmmode_display.c:293)
+ ==19897== by 0x8618E6F: drmmode_xf86crtc_resize (drmmode_display.c:1299)
+ ==19897== by 0x529A77: xf86RandR12ScreenSetSize (xf86RandR12.c:708)
+ ==19897== by 0x4BD528: ProcRRSetScreenSize (rrscreen.c:301)
+ ==19897== by 0x42B820: Dispatch (dispatch.c:432)
+ ==19897== by 0x4254C9: main (main.c:289)
+ ==19897== Address 0x72e91e0 is 0 bytes inside a block of size 9 free'd
+ ==19897== at 0x4C23DBC: free (vg_replace_malloc.c:325)
+ ==19897== by 0x48424F: xf86DeleteMode (xf86Mode.c:1921)
+ ==19897== by 0x4942B7: xf86ProbeOutputModes (xf86Crtc.c:1572)
+ ==19897== by 0x5290BB: xf86RandR12GetInfo12 (xf86RandR12.c:1551)
+ ==19897== by 0x5313AE: RRGetInfo (rrinfo.c:202)
+ ==19897== by 0x4BCCAA: rrGetScreenResources (rrscreen.c:337)
+ ==19897== by 0x42B820: Dispatch (dispatch.c:432)
+ ==19897== by 0x4254C9: main (main.c:289)
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 772f8236d50725f0b330508616b4f2a9a910662a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 30 13:58:05 2010 +0100
+
+ dri: Handle errors during GetBuffers() gracefully.
+
+ Unwind the array of Pixmaps already allocated and report failure for the
+ old dri GetBuffers() path.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 17884af4eda01c05e7429ed6a195f3e4ceeff892
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 28 17:44:45 2010 +0100
+
+ Repair the damage to 'make distcheck' after splitting out i810
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 28c0ca676c47e7e38fabdd9ef24a70bd26701f33
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jun 25 13:40:22 2010 +0100
+
+ Remove unused inclusion of <sys/mman.h>
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2306e675c48bc00a8ca1f4545bb88c97d6ef4fa6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jun 25 13:32:02 2010 +0100
+
+ configure: Remove check for unused function, mprotect
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6695296ca28da7c4f551b0e80a8d06b557d59a5e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Jun 25 13:31:11 2010 +0100
+
+ configure: Remove unused checks for xext
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5c663ce8442bd3b69c96e29061c57cc565fca91d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jun 20 15:01:16 2010 +0100
+
+ Rename common infrastructure to the intel namespace.
+
+ After splitting out the i810 driver into its own legacy directory, we
+ can identify the common routines not as i830 but as intel. This
+ clarifies the code which *is* i830 specific.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 797d173a9af12055ba2609293182b616dd673ef4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jun 20 12:52:10 2010 +0100
+
+ i810: Move into a legacy directory.
+
+ The driver is still built but is no longer under active development so
+ move it and supporting files to a new directory.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit cd61531a78b9a2cbdd6019199c43258f83e6e2ce
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jun 20 21:03:44 2010 +0100
+
+ Remove unused configure option: --enable-video-debug
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ca16e3133658504b68a6b5c83bb8712899016544
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Jun 24 14:07:15 2010 -0700
+
+ Update version to 2.12.0
+
+ For the imminent 2.12.0 release.
+
+commit 8caf1564a75d65636d9b7a4da03219bb302bb37b
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Jun 24 14:06:43 2010 -0700
+
+ NEWS: Add notes for the 2.12.0 release.
+
+ Let it ship!
+
+commit b58a6a39c1568800938eb0e3ebc7664683b61200
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 23 23:56:44 2010 +0100
+
+ uxa: Fallback to pixman if source is out-of-bounds
+
+ If the source is outside the drawable, then CopyArea will fail to
+ initialise the source correctly. The simplest fix in this case is to
+ fallback to pixman to generate the source texture.
+
+ Fixes:
+
+ Bug 28497 - Graphics corruption after opening a specific website
+ https://bugs.freedesktop.org/show_bug.cgi?id=28497
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6d33e578de4e23336ac69cc3c5d0935a65d4dda1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 23 21:28:50 2010 +0100
+
+ Limit maximum tiled stride to 8k and untiled to 32k.
+
+ Tiling on gen 2/3 hardware is only supported for pitches up to 8192
+ bytes, so above this limit the surface will be untiled and we will no
+ longer have to comply with the power-of-two pitch alignment. So
+ disabling tiling for these too wide surface should ~halve the memory
+ requirement for the full surface.
+
+ Also the absolute limit for the 2D blitter is 32,768 bytes. The
+ documentation says "up to 32,768 bytes" and my PineView box was
+ malfunction with a surface stride of 32,768 so set the limit to be
+ 32,767.
+
+ References:
+
+ Bug 28497 - Graphics corruption after opening a specific website
+ https://bugs.freedesktop.org/show_bug.cgi?id=28497
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5bf470bd38b1f6a7a540585186a54c9dbbca98f9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 21 22:28:58 2010 +0100
+
+ i965: Compile fix.
+
+ Oops, I spent more time discussing these flushing bugs than I spent
+ paying attention to what I was actually doing.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0203cf91b54ee8a7cea8560e559288ee9b6e8554
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 21 22:25:08 2010 +0100
+
+ Do not clear need_mi_flush within the batch.
+
+ This is a situation that should not be possible, need_mi_flush being
+ true but the list of pending flush pixmaps being clear. However, an
+ earlier bug in doing just that revealed this minor bug. So for
+ correctness, be careful not to clear need_mi_flush without emitting a
+ MI_FLUSH.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5107b6fa26ecfdbdd60b869a86765c9c484db3a2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 21 22:21:58 2010 +0100
+
+ i965: Mark the render target as dirty within composite_setup()
+
+ The key difference between i965 and earlier, is that the surfaces passed
+ to the samplers through an indirect table and so the batch and render
+ target was not being marked dirty by the relocation (since the
+ relocation only happens within prepare_composite() which may have been
+ in another batch.) Simply call intel_pixmap_mark_dirty() when binding
+ the sampler table into the batch to ensure that the dirty is tracked
+ appropriately.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit bebd64d82121d2b61893e1d0adebda03f4faea61
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 21 22:05:19 2010 +0100
+
+ Also submit any pending flush for *this* batch in the BlockHander.
+
+ We still need to submit an additional flush if we have further writes
+ since the last flush.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c4d200517755e6b0f48d6c6a6ba8dd0ddc883d8b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 21 21:57:21 2010 +0100
+
+ Only append the pixmap to the flushing list if we are writing to it.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c942585098ac84ae461821cbb8f52dedce7a0da1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 21 21:45:04 2010 +0100
+
+ Emit the flush after a potential draw from the BlockHandler.
+
+ As the batch submit may not trigger further drawing through flushing the
+ vertices, pass the requirement to emit the flush down to the submission
+ routine so that the flush can be appended after the final commands.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e8783869ad55d337601b6f6a51c02f6576c64f38
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jun 20 00:09:20 2010 +0100
+
+ uxa: Apply the source offsets to the pixmap source, not target.
+
+ A slight confusion in computing the correction image location resulted
+ in the application of the source offsets to the pixel location in the
+ target and not in the source as intended.
+
+ Fixes the visual corruption of the scrollbar in Chromium, and hopefully
+ the crash reported by Robert Hooker when starting gdm after plymouth.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4b7142baa0b3bf6f38843d06aadc579d8624cefc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Jun 19 12:30:23 2010 +0100
+
+ uxa: Enable SHM pixmaps
+
+ Now with streaming uploads and downloads for composite operations in
+ place, shared memory pixmaps are no longer that dire performance wise.
+ With careful use these can in fact be the most efficient means of
+ transfer between a wholly software renderer in the client and a backing
+ store. For instance, Chromium renders internally to an ARGB32 image
+ buffer and uses a shared pixmap to composite dirty regions into the
+ backing store. Thereby using the GPU to either perform the blit or the
+ format conversion. Enabling shared pixmaps, reduces our CPU overhead
+ whilst scrolling by a factor of 5 or so.
+
+ And this is achieved simply by deleting obsolete code!
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d748f8e6fcebdf5b5b00c90b6c3d519560ee2928
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jun 17 18:29:55 2010 +0100
+
+ uxa: Use accelerated get_image for copying to !offscreen
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 78ee25f005fac9e9cc85425aa3fca8c396d015ea
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jun 17 18:37:32 2010 +0100
+
+ uxa: Match depth 30 to format.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit af5c4fc96db56a14bf6347774d8e8f23b38c5967
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Jun 19 13:36:20 2010 +0100
+
+ uxa: Check for allocation failure.
+
+ Check for the NULL Picture prior to passing it to the backends for
+ inspection.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit be55066c6481b4c5e2cd39ef1c0f3be88cae0c93
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jun 17 14:23:21 2010 +0100
+
+ i830: Remove domain tracking from pixmaps.
+
+ The 4 integers can be reduced to a single boolean value, so do so.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c187da9a24e98cbdf86f0f0dfbdcd9025c8a4c76
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 16 13:16:28 2010 +0100
+
+ i830: GetImage acceleration.
+
+ The presumption is that we wish to keep the target hot, so
+ copy to a new bo and move that to the CPU in preference to
+ causing ping-pong of the original.
+
+ Also the gpu is much faster at detiling.
+
+ Before (PineView):
+ 400000 trep @ 0.1128 msec ( 8860.0/sec): GetImage 10x10 square
+ 18000 trep @ 1.3839 msec ( 723.0/sec): GetImage 100x100 square
+ 800 trep @ 30.0987 msec ( 33.2/sec): GetImage 500x500 square
+
+ After: (PineView)
+ 180000 trep @ 0.1478 msec ( 6770.0/sec): GetImage 10x10 square
+ 60000 trep @ 0.4545 msec ( 2200.0/sec): GetImage 100x100 square
+ 4000 trep @ 8.0739 msec ( 124.0/sec): GetImage 500x500 square
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0e0101758438debf98f989d815989b45e78cf5f6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 15 12:48:57 2010 +0100
+
+ i830: Tidy i830_uxa_put_image()
+
+ Use a single code path to upload the image data after selecting the
+ right bo, and take advantage of pwrite() when possible.
+
+ Fixes:
+
+ Bug 28569 - [i965] IGN's flash-based video player crashes X
+ https://bugs.freedesktop.org/show_bug.cgi?id=28569
+
+ Bug 28573 - [i965] Fullscreen flash and windowed SDL games fail to
+ update the screen
+ https://bugs.freedesktop.org/show_bug.cgi?id=28573
+
+ Reported-and-tested-by: Brian Rogers <brian@xyzw.org>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2ff7a2fc9d939554502e9adec89cae5597a9e82c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jun 17 13:56:30 2010 +0100
+
+ i915: Force the emission of BUF_INFO on every composite_setup
+
+ We should be able to eliminate these as the drawable remains unchanged.
+ However, the implicit flush of BUF_INFO fixes the rendering in KDE.
+ Alternatively, we need an MI_FLUSH | INHIBIT_RENDER_CACHE_FLUSH between
+ composites. (Note that it is not stale cache data causing the rendering
+ corruption and that a pipelined flush is not sufficient either.) Also,
+ having tried varies points at which to flush, the only place where the
+ flush is effective seems to be between composite operations - that is a
+ flush after 2D is not sufficient.
+
+ Reported-by: Vasily Khoruzhick <anarsoul@gmail.com>
+ Reported-by: Clemens Eisserer <linuxhippy@gmail.com>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a25573d5c47ebea34c076075e1993233d7db2b4f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 15 20:26:19 2010 +0100
+
+ drmmode: Use the tiled stride for the rotated pixmap.
+
+ After d41684d5459 we now allocate all framebuffers as tiled bo, and so
+ we must be careful to use the appropriate stride as returned from the
+ allocation, instead of assuming that it is just an aligned width.
+
+ Fixes:
+
+ Bug 28461 - screen rotation results in corrupted output.
+ https://bugs.freedesktop.org/show_bug.cgi?id=28461
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Reported-by: Till Matthiesen <entropy@everymail.net>
+
+commit 23ddcf45344936da2931a3bf25bd187a9ea28344
+Merge: 254bcc4 ffc6897
+Author: Julien Cristau <jcristau@debian.org>
+Date: Tue Jun 15 17:46:52 2010 +0100
+
+ Merge commit '2.11.901'
+
+commit 254bcc40fca6ed9aa0b71f2115c654667f16aec6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 15 10:24:40 2010 +0100
+
+ configure: Bump drm requirement to 2.4.21
+
+ We depend upon the recent introduction of drm_intel_bo_is_reusable().
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Reported-by: Julien Cristau <jcristau@debian.org>
+
+commit ffc689767fa56f2c7710e6f396441c3d8a24ea18
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 14 17:35:20 2010 -0700
+
+ Update version to 2.11.901
+
+ For the 2.12 RC1 snapshot we're making now.
+
+commit 68c8b3f12482489f2e2e8040fd6728f1a2b9e420
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 14 17:34:38 2010 -0700
+
+ NEWS: Add notes for 2.11.901
+
+ This is the 2.12 RC1 snapshot we're making now.
+
+commit 8899cd03e2e7ee673e8b3b2a9d2873839cdc1bf8
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Jun 10 15:38:54 2010 -0700
+
+ Fix to require libdrm 2.4.19 or newer.
+
+ This is necessary for the drm_intel_bo_emit_reloc_fence function which
+ did not exist in 2.4.16 which is all we were requiring earlier.
+
+commit 995a4b2b1d09c31672d9258a8ac732dcf9a8fe9f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 14 12:15:34 2010 +0100
+
+ i965: Sanity check ComponentAlpha status in prepare_composite
+
+ Fixes:
+
+ Bug 28446 - Garbled Font with Mathematica 7
+ https://bugs.freedesktop.org/show_bug.cgi?id=28446
+
+ Rewriting the glyphs to render to the destination directly and removing
+ the more expensive multiple invocations of CompositePicture per picture
+ was a great performance boost -- except that it needs special handling
+ in the backend in order to not fallback. Having done so for i915, I
+ neglected to ensure the sanity checking in i965_prepare_composite() was
+ sufficient. As it turns out, it was not and so we misrendered CA-glyphs
+ when rendering directly to the destination. This causes us to fallback
+ properly, but is a performance regression as we no longer try the 2-pass
+ magic helper before resorting to s/w. At the moment, I'd rather live
+ with the temporary regression and fix i965 to do the same magic as i915,
+ as it critical to fixing the severe performance issues currently
+ crippling i965, as I believe that this regression only affects the
+ minority of applications (incorrect, as it turns out, as the glyphs are
+ overlapping) rendering directly to the destination.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 84d65bace521ad80b9bede4ae9e3e2a8d0668b90
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 14 11:31:40 2010 +0100
+
+ Compile fix for alternate list.h from xserver-1.9
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 00a54eee8f29ced610ef9d65b077e64bc65655e9
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Sat Jun 12 20:24:10 2010 -0400
+
+ COPYING: replace stub file with actual Copyright notices.
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 94217ed5f5a3726db3fad6cac2132d99ed45c154
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Jun 12 17:21:44 2010 +0100
+
+ uxa: Always clip glyphs to destination.
+
+ Even if there is only a single clip rect, since the clip may be smaller
+ than the drawing rectangle on the destination we need to actually
+ compute the clipped glyph rectangle.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5a0a8a1cf6d9b0616d6a097e783f2aa318b45736
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Jun 10 22:56:34 2010 +0100
+
+ i830: Limit disabling acceleration following EIO to !i965
+
+ Following a conversation with Owain G. Ainsworth, it was decided that
+ the second best approach to handling a wedged GPU was to hope that the
+ kernel could successfully reset it, which currently is only possible for
+ i965 and later chipsets.
+
+ The best approach is of course to prevent such hangs from ever occurring
+ in the first place.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3bf4ca2cdc2493e209bbb9c597bfa17ed7fcf5dc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 9 12:02:21 2010 +0100
+
+ i830: Only emit the disabling GPU error message once.
+
+ But emit the warning about rendering corruption every time for the
+ transient errors like out-of-memory.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 35a12f029005d8f432755fb78f10c9d48ea2f347
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 9 11:47:37 2010 +0100
+
+ Fallback implementation for trapezoids for hung GPUs.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8c1a8d22978f143044cc3cd0ff2ade5736ee9d48
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 9 10:03:08 2010 +0100
+
+ Revert "xp:trapezoids"
+
+ This reverts commit f429fb9d872950705e11171d0e7407fb7673c786.
+
+ An experimental patch I forgot was on my main branch as I was bugfixing.
+ ARGH!
+
+commit 994aa1ef571ac2ab05f6588f9068d33b536c7a37
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 9 09:59:36 2010 +0100
+
+ uxa: Handle all-clipped out case with destination glyphs.
+
+ Fixes the crash reported in:
+
+ Bug 28446 - Garbled Font with Mathematica 7
+ https://bugs.freedesktop.org/show_bug.cgi?id=28446
+
+ pDst=0x3d663c0, src_x=0, src_y=0, xDst=142, yDst=112, nlist=0,
+ list=0x7fffea026580, glyphs=0x7fffea025d88, extents=0x0)
+ at uxa-glyphs.c:809
+ dx = 0
+ y1 = 101
+ x2 = 150
+ x1 = 142
+ dy = 0
+ y2 = 112
+ rects = 0x5491000
+ this_atlas = 0x2456d00
+ mask_y = 128
+ glyph = 0x35933a0
+ mask_x = 736
+ priv = 0x39309e0
+ screen = 0x8d2cc0
+ uxa_screen = 0x2443eb0
+ src_pixmap = 0x37c29e0
+ dst_pixmap = 0x45ddbf0
+ localSrc = 0x361a450
+ glyph_atlas = 0x2456d00
+ x = 142
+ y = 112
+ n = 18
+ nrect = -9975128
+ box = {x1 = 23152, y1 = -5630, x2 = 32767, y2 = 0}
+ __PRETTY_FUNCTION__ = "uxa_glyphs_to_dst"
+
+ Though the meat of that bug regarding the incorrect remains unsolved.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f429fb9d872950705e11171d0e7407fb7673c786
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 8 10:24:51 2010 +0100
+
+ xp:trapezoids
+
+commit 0776a42b70f2de7b7d7d8804046c79442da1cb8a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 8 10:43:24 2010 +0100
+
+ implicit-flush
+
+commit d41684d54592cf93554a4d6534e7ea74562b1798
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jun 7 11:18:09 2010 -0700
+
+ Allocate rotate shadow buffers using the usual framebuffer allocator.
+
+ This means we can get tiling on them, which should significantly boost
+ performance, and also allow for FBC.
+
+commit b5c9de10ba3a811f312e622b97ee5e601bd3b74f
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Jun 6 23:41:23 2010 -0700
+
+ Allocate a correctly sized framebuffer when tiling by using libdrm's support.
+
+ When I made libdrm stop overallocating so much memory for the purpose
+ of bo caching, things started scribbling on the bottom of my
+ frontbuffer (and vice versa, leading to GPU hangs). We had the usual
+ mistake of size = tiled_pitch * height instead of size = tiled_pitch *
+ tile_aligned_height.
+
+commit e6acbc763229fd5b5b2cc1d65136404d02ac4655
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 7 18:04:51 2010 +0100
+
+ uxa: Setup acceleration functions prior to the damage layer
+
+ We need to install the acceleration functions so that they are wrapped
+ by the Damage layer. This fixes the corruption under a compositing WM
+ introduced in commit 8700673157fdd3a87ad5150f2f30823261fec519.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Reported-and-tested-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
+
+commit 1788b16eb26580624dd3df96ed84f68d40e78ed7
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 7 15:31:47 2010 +0100
+
+ i915: Fix typo from previous commit.
+
+ A trivial change, I thought, having tested it before rebasing, unworthy
+ even of a perfunctory compile test. How wrong I was.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d9bc36ae03e3c56ab165d24fe4bdc6688fd62b6d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 7 15:28:18 2010 +0100
+
+ i915: Remove screen size limit from video setup.
+
+ The i915 textured video routine know how to handle drawing on an output
+ larger than the 3D pipe, so allow them to do so.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6555ef5fd16c9e4fe733caf9e831f29f97462278
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 7 13:16:34 2010 +0100
+
+ i915: Replace structure passing with macros for shader generation.
+
+ gcc is horribly bad at collapsing the constants:
+
+ text data bss dec hex filename
+ 282336 8720 256 291312 471f0 intel_drv.so.old
+ 269280 8720 256 278256 43ef0 intel_drv.so
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d56ea7a852d7090360fe080acec268de55ee908d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 7 00:20:35 2010 +0100
+
+ Use the direct dixGevPrivate() API when available
+
+ This is quicker and smaller than the old indirect function call to
+ dixLookupPrivate().
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8700673157fdd3a87ad5150f2f30823261fec519
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jun 7 00:16:18 2010 +0100
+
+ Adapt glyphs for changes in devPrivates API
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 42ddc39430a10513c49a415ddf1a0dc5fa52089e
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Apr 30 13:33:54 2010 -0700
+
+ Adapt to DevPrivate API changes
+
+ This allows the driver to be built against either the old or new
+ DevPrivate API.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 2c1fda08e889cad07acb452230da06f9c383d21c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jun 4 16:04:37 2010 -0700
+
+ Use libc instead of deprecated libc wrappers for malloc/calloc/free.
+
+commit b586624d4f2908d2a998ba87fe0ae31c10f46b91
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jun 6 17:11:40 2010 +0100
+
+ uxa: Force fallback for copies.
+
+ All but uxa_copy_window() perform the preliminary checks for whether
+ acceleration is available. The simplest method for adding the fallback
+ for uxa_copy_window() seems to be to add it in the core copy function,
+ so be it.
+
+ This allows X to survive a little longer once we encounter a GPU hang.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6db1e5231b7a0e79611f771d4efea686f7849e04
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jun 2 20:43:49 2010 +0100
+
+ dri: Protect against NULL dereference following GPU hang.
+
+ References:
+
+ Bug 28361 - "glresize" causes server segfault with single buffering.
+ https://bugs.freedesktop.org/show_bug.cgi?id=28361
+
+ [ 14528.767] (EE) intel(0): Failed to submit batch buffer, expect rendering corruption or even a frozen display: Input/output error.
+ [ 14528.767] (EE) intel(0): Disabling acceleration.
+ [ 14528.788] Backtrace:
+ [ 14528.858] 0: /usr/bin/X (xorg_backtrace+0x28) [0x491818]
+ [ 14528.858] 1: /usr/bin/X (0x400000+0x65ca9) [0x465ca9]
+ [ 14528.858] 2: /lib/libpthread.so.0 (0x7f9df2dc9000+0xedf0) [0x7f9df2dd7df0]
+ [ 14528.858] 3: /usr/local/lib/libdrm_intel.so.1 (drm_intel_bo_flink+0x0) [0x7f9defd60c60]
+ [ 14528.858] 4: /usr/local/lib/xorg/modules/drivers/intel_drv.so (0x7f9deff6a000+0x2fdfd) [0x7f9deff99dfd]
+ [ 14528.858] 5: /usr/lib/xorg/modules/extensions/libdri2.so (0x7f9df01b8000+0x19e7) [0x7f9df01b99e7]
+ [ 14528.858] 6: /usr/lib/xorg/modules/extensions/libdri2.so (0x7f9df01b8000+0x1fdb) [0x7f9df01b9fdb]
+ [ 14528.858] 7: /usr/lib/xorg/modules/extensions/libdri2.so (DRI2GetBuffersWithFormat+0x10) [0x7f9df01ba250]
+ [ 14528.858] 8: /usr/lib/xorg/modules/extensions/libdri2.so (0x7f9df01b8000+0x3834) [0x7f9df01bb834]
+ [ 14528.858] 9: /usr/bin/X (0x400000+0x2fc2c) [0x42fc2c]
+ [ 14528.858] 10: /usr/bin/X (0x400000+0x24da5) [0x424da5]
+ [ 14528.858] 11: /lib/libc.so.6 (__libc_start_main+0xe6) [0x7f9df1d60a26]
+ [ 14528.858] 12: /usr/bin/X (0x400000+0x24959) [0x424959]
+ [ 14528.858] Segmentation fault at address 0x20
+ [ 14528.858] Fatal server error:
+ [ 14528.858] Caught signal 11 (Segmentation fault). Server aborting
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2989f51caf3134460c2551de597e7e54fe74ee92
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 1 23:08:02 2010 +0100
+
+ i830: Remove unused coord-adjust.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit dc402334f4e9b0de624bc89cd77eae4ec7cf1708
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 1 23:03:19 2010 +0100
+
+ i915: Centre sampling.
+
+ Use centre sampling of textures to match pixman, and remove numerous
+ off-by-one and visual artefacts when rendering. The classic example for
+ this is cairo/text/xcomposite-projection where the edge of the rotated
+ rectangle is jaggy due to the incorrect sample position.
+
+ Fixes:
+
+ Bug 16917 - [i915] Blur on y-axis also when only x-axis is scaled
+ billiear
+ https://bugs.freedesktop.org/show_bug.cgi?id=16917
+
+ And about 15 tests from the Cairo test suite.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f74b3f82bab11463a0f4de9f614fc6aa1492ef24
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jun 1 22:31:35 2010 +0100
+
+ i915; Avoid the implicit flush on changing BUF_INFO
+
+ 3DSTATE_BUF_INFO is an implicit flush of the piepline, so avoid emitting
+ that and associated state unless the destination pixmap has actually
+ changed. This is a win of around 3-5% for cairo-perf-trace, notably for
+ firefox.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f2272402035574c206a0e3383c55373c440fd928
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jun 1 13:46:15 2010 -0700
+
+ DRI2: fix new buffer exchange check
+
+ Chris's new buffer exchange check is a good one, but we don't want to
+ hit the immediate blit fallback path if it fails. We still want to
+ schedule a blit for sometime in the future, and we need to use it
+ wherever an exchange might occur (like the secondary flip check or the
+ currently disabled CanExchange check).
+
+ Fixes https://bugs.freedesktop.org/show_bug.cgi?id=28252.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit a386a003e7b0ff7100434dccd51fedd822454a6c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 31 22:18:43 2010 +0100
+
+ uxa: Spans, try again to get the early break correct.
+
+ Trigger happy bug fixing. The sign *was* right, the endpoint was wrong.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 1672ee0421a99b745d65d72a3818de01d8100b6b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 31 22:08:43 2010 +0100
+
+ uxa: Sign reversal on early break from spans passing the YXband
+
+ Introduced with e5c971e7639095d38da3518a5dc404b708d45cfb.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit cd38b705be84901a38380dc2a1b90889b553d565
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 31 17:23:36 2010 +0100
+
+ Disable acceleration if we detect a hardware error.
+
+ This is wildly optimistic, but it should work in a surprising number of
+ error situations and some output in those cases will be hopefully be
+ better than none...
+
+ If we submit a batchbuffer and the kernel reports the GPU is hung (which
+ will be caused by an earlier execbuffer, and so the kernel should have
+ had enough time to determine whether or not it could reset the GPU) then
+ disable any further attempt to accelerate gfx and force fallbacks to map
+ the buffers and use the CPU. We cannot normally map any more buffers if
+ the GPU is hung, so only those already mapped prior to the hang can be
+ written to, or those allocated in system memory. However, we can expect
+ that the framebuffer is already mapped, and so have a reasonable
+ expectation to continue to see the display update.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5fff430046db2030f89e49beb66c6476dc3fcd4c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 29 17:35:00 2010 +0100
+
+ uxa: Mega-Glyphs!
+
+ Rewrite glyph rendering to avoid the intermediate buffer, accumulating
+ the glyph rectangles directly in the backend composite routines. And
+ modify the glyph cache routines to fully utilise the allocated size of
+ the tiled buffer on older hardware. To do this we alias all glyph sizes
+ into the same texture using a technique suggested by Keith Packard.
+
+ PineView:
+ 885/856-> 1150/1110 kglyph/s (aa/rgb)
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d31abccd41c417338aac7c681e8bc6bd187b1843
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 31 12:14:23 2010 +0100
+
+ i915: Support textured video on an extended desktop.
+
+ Handle rendering textured video onto an extended desktop (>2048) by
+ using a temporary pixmap. Note that we still cannot handle rendering to
+ a greater than 2048 destination region, for that we will need to tile.
+ Hmm, time to request a 2560x1600, 10bpc monitor...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2cfd5bc134f0dd86ea714594d61f6d5eb29019ce
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 29 17:55:19 2010 +0100
+
+ dri: Compilation fix.
+
+ 17:53 < arekm> ickle: i830_dri.c:630:28: error: ‘DrawableRec’ has no member named ‘bpp’
+ 17:53 < arekm> ickle: i830_dri.c:630:57: error: ‘DrawableRec’ has no member named ‘bpp’
+
+ * sigh. I need to fix this machine to have the right version of the
+ * headers.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e2615cdeef078dbd2e834b68c437f098a92b941d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 29 16:37:12 2010 +0100
+
+ dri: Only flip if the front and back pixmaps match.
+
+ An unredirected window (thanks Michel for the reminder) is backed by the
+ Screen pixmap, and so uses a reference of that as its front buffer. The
+ back buffer is a pixmap appropriately sized for the drawable. When the
+ application requests to swap its buffers, obviously we cannot simply
+ exchange the front and back buffer as they do not match, but need to copy
+ the appropriate region from the back to the front.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8b2039187fc23f5e9dddf4081f8b1ab6f4c01416
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 29 12:14:55 2010 +0100
+
+ Revert "dri: Use size from backing pixmap when creating buffers."
+
+ This reverts commit 44d45d3fa56f121ce89ffe5b28beb48be01a95df.
+
+ Michel Dänzer pointed out the flaw in using the pixmap size instead of
+ the drawable size:
+
+ Using the backing pixmap dimensions for this is not desirable. In
+ particular, it means that the DRI2 buffers of non-redirected windows
+ always have the same size as the screen. But even for redirected windows
+ it wastes some graphics memory with a re-parenting window manager, that
+ is if it doesn't break in various ways due to the top left corner of the
+ DRI2 buffers no longer corresponding to the top left corner of the window.
+
+commit 44d45d3fa56f121ce89ffe5b28beb48be01a95df
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 29 10:39:28 2010 +0100
+
+ dri: Use size from backing pixmap when creating buffers.
+
+ This avoid using the garbage values stored in the Screen drawable,
+ instead of the true values which are only maintained in its backing
+ pixmap. The consequence of using the wrong size was to hand a 1x1
+ pixmap to metacity/mutter and have it believe it was a full screen
+ drawable; GPU hangs ensued if using page flipping.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 90c74a43149ec72bef64fb7e64b812294bda69a5
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 28 21:49:38 2010 +0100
+
+ i915: Don't re-emit vertex size unless it has changed.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a94ae175d6a69243a4465de0be0a8a3368e0ab28
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri May 28 12:40:02 2010 -0700
+
+ uxa: Fix prepare_solid being called without check_solid first.
+
+ Fixes GPU hang on gen6.
+
+commit 66c90158e45e890c6f655195c6707d216c7ac4c5
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 28 17:13:30 2010 +0100
+
+ uxa: Skip the redundant miComputeCompositeRects() when adding to the mask
+
+ As we are in full control of the destination (the temporary glyph mask)
+ and the source (the glyph cache) we know that there are no clip regions
+ on either and so can skip computing the composite rectangles. (We trust
+ the device clipping to prevent compositing outside the target.)
+
+ x11perf on PineView:
+ 701/686 -> 881/856 kglyphs/s [aa/rgb]
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5b2254838eb89bf77eeb893c73eecb8c737822f4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 28 12:47:26 2010 +0100
+
+ uxa: Make the glyph caches' fixed size explicit.
+
+ Until we actual resize the glyph cache dynamically, make it obvious to
+ the reader and the compiler that the size is fixed.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 11581dda99cb2e4ae78fc73be4b02185b3be58ed
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 28 11:38:05 2010 +0100
+
+ uxa: Use a glyph private rather than a hash table.
+
+ Store the cache position directly on the glyph using a devPrivate rather
+ than an through auxiliary hash table.
+
+ x11perf on PineView:
+ 650/638 kglyphs/s -> 701/686 kglyphs/s [aa/rgb]
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 73111cf2a212ee5cc2e03af1c600867df0c55b39
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 21:05:27 2010 +0100
+
+ Decouple non-reusuable pixmaps from batch lists on unref.
+
+ ==7596== Invalid write of size 4
+ ==7596== at 0x491ACA8: intel_batch_teardown (i830_batchbuffer.c:118)
+ ==7596== by 0x491C9D6: I830CloseScreen (i830_driver.c:1419)
+ ==7596== by 0x8103A9C: RRCloseScreen (randr.c:105)
+ ==7596== by 0x80DE794: xf86CrtcCloseScreen (xf86Crtc.c:759)
+ ==7596== by 0x80BEBA3: DGACloseScreen (xf86DGA.c:268)
+ ==7596== by 0x80D044B: DPMSClose (xf86DPMS.c:134)
+ ==7596== by 0x488B050: XvCloseScreen (xvmain.c:320)
+ ==7596== by 0x81841B1: VidModeClose (xf86VidMode.c:110)
+ ==7596== by 0x80EB12F: CursorCloseScreen (cursor.c:191)
+ ==7596== by 0x810CA17: AnimCurCloseScreen (animcur.c:108)
+ ==7596== by 0x816937E: compCloseScreen (compinit.c:86)
+ ==7596== by 0x48D39B9: glxCloseScreen (glxscreens.c:221)
+ ==7596== Address 0x49c1a50 is 24 bytes inside a block of size 52 free'd
+ ==7596== at 0x4024866: free (vg_replace_malloc.c:325)
+ ==7596== by 0x80B023C: Xfree (utils.c:1096)
+ ==7596== by 0x4927CFD: i830_set_pixmap_bo (i830_uxa.c:647)
+ ==7596== by 0x491C9B4: I830CloseScreen (i830_driver.c:1413)
+ ==7596== by 0x8103A9C: RRCloseScreen (randr.c:105)
+ ==7596== by 0x80DE794: xf86CrtcCloseScreen (xf86Crtc.c:759)
+ ==7596== by 0x80BEBA3: DGACloseScreen (xf86DGA.c:268)
+ ==7596== by 0x80D044B: DPMSClose (xf86DPMS.c:134)
+ ==7596== by 0x488B050: XvCloseScreen (xvmain.c:320)
+ ==7596== by 0x81841B1: VidModeClose (xf86VidMode.c:110)
+ ==7596== by 0x80EB12F: CursorCloseScreen (cursor.c:191)
+ ==7596== by 0x810CA17: AnimCurCloseScreen (animcur.c:108)
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a6fb6aa5f9c1c81b8b81b9d1138a526ffbbd5ad3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 20:31:45 2010 +0100
+
+ Add vertex bo to the list of buffers to be torn down.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5dce69002dd48dd6dce4f0e7ad9ecf2c4c17cfe4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 20:26:42 2010 +0100
+
+ i965: Remove ATOMIC_BATCH.
+
+ This paranoid check is deceased; pining for the fjords.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 06ebb55d308defbf8e01e30e4f994c2dd1071c40
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun May 23 20:33:47 2010 -0700
+
+ Add a workaround for Ironlake errata relating to disabling the clipper.
+
+commit 158a158dad26b6888dd2ebaf13e6020894475fcb
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun May 23 20:28:24 2010 -0700
+
+ Add a workaround for Ironlake errata regarding blits and other engines.
+
+commit 3461f8f4bc2a49fd41c408d225c592623404be91
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Apr 18 19:14:13 2010 -0700
+
+ Remove remaining REG_DUMPER build stuff.
+
+commit 03bbb4c896ef3cd275312b413a2c85d9f499c032
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 10:16:36 2010 +0100
+
+ uxa: Perform manual damage for CompositeRects
+
+ [xserver-1.8] The damage layer doesn't wrap CompositeRects, so we need to
+ manually append the damaged region ourselves. This works for
+ miCompsiteRects since that translates the call into multiple invocations
+ of either PolyFillRectangle or Composite, which themselves cause damage.
+
+ Fixes:
+
+ Bug 28120 - Tint2's tooltip borders end up at 0,0 and do not disappear
+ https://bugs.freedesktop.org/show_bug.cgi?id=28120
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b9ada52a3081f54e0ed094ac31188bb240866f81
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 10:14:52 2010 +0100
+
+ uxa: Force the alpha value to 0xffff when treating Over as Src
+
+ Since we have at most 8 bits of alpha, we treat >= 0xff00 as opaque.
+ However, being paranoid we should set the alpha value to 0xfff in case
+ something unexpected happens when converting from the xRenderColor to
+ the pixel value.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3055d40164590147d35b5e7059ebe5f5858c85fa
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 10:12:57 2010 +0100
+
+ uxa: Use Composite rather than solid blitter for PolyRect
+
+ Due to the relocation overhead, using a single composite with many
+ rectangles outperforms many solid blits.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ec2437f958ec4f5ac5222b37cba4cd403b5c8855
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 10:12:18 2010 +0100
+
+ uxa: Add PICT format mapping for depth 4 pixmaps.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 309bd3a29943ef7502d40c67be49c19a59b6d1a2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 26 10:11:32 2010 +0100
+
+ i830: Skip an empty fill.
+
+ In the extremely unlikely event that the higher layer erroneous gave us
+ an empty fill, skip it.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b645ec83e0d86f2247b8338ceab60b9502516e70
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 25 09:49:20 2010 +0100
+
+ uxa: Apply the drawable offset to the solid rects
+
+ Fixes:
+
+ Bug 28120 - Tint2's tooltip borders end up at 0,0 and do not disappear
+ https://bugs.freedesktop.org/show_bug.cgi?id=28120
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9d8ac271404ff219c3d40ae8f829e8b76ac7c359
+Merge: 509df27 ea07535
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 21 11:01:30 2010 +0100
+
+ Merge branch 'glyphs'
+
+ Tweak glyphs to improve x11perf on i915 by about 33%.
+ PineView, aa10text: 460 -> 617 kglyphs/s.
+ PineView, rgb10text: 434 -> 610 kglyphs/s.
+
+ Speedups
+ ========
+ xcb poppler 18.636 -> 13.958: 1.34x speedup
+ xlib firefox-talos-gfx 71.905 -> 56.232: 1.28x speedup
+ xcb firefox-talos-gfx 72.882 -> 57.969: 1.26x speedup
+ xlib gnome-terminal-vim 38.126 -> 34.472: 1.11x speedup
+ xcb gnome-terminal-vim 35.164 -> 32.573: 1.08x speedup
+ xlib poppler 19.634 -> 18.246: 1.08x speedup
+
+ Note the lack of significant improvement for firefox-planet-gnome.
+
+commit ea07535240dafc4c6ef55b4b7a2eeaa595febe86
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 21 14:33:18 2010 +0100
+
+ i915: Emit CA over using OutReverse + Add passes
+
+ On PineView:
+ 578/621 -> 610/617 kglyphs/sec [rgb/aa]
+
+commit 80a9e64f50aeda6004e3aba1fbfdda50bb1f1c82
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 21 09:55:55 2010 +0100
+
+ uxa: Use temporary dest when target is too large for compositor
+
+ If the destination cannot fit into the 3D pipeline when we need to
+ composite, we fallback to doing the operation on the CPU. This is very
+ slow, and quite easy to trigger on i915 by plugging in an external
+ display.
+
+ An alternative is to extract the extents of the operation from the
+ destination using the blitter which can usually handle much larger
+ operations. This gives us a temporary target that can fit into the 3D
+ pipeline and thus be accelerated, before copying back into the larger
+ real destination.
+
+ For x11perf this boosts glyph rendering on PineView, from 38kglyphs/s to
+ 480kglyphs/s. Just a little shy of the native performance of 601kglyphs/s
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 91f560034fc2695680d1208a78fc56d814b0da79
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu May 20 10:26:59 2010 +0100
+
+ uxa: Composite glyphs directly onto dst when possible.
+
+ Without using a mask and compositing directly onto the destination,
+ takes us from 580 kglyphs/s to 850 kglyphs/s on i945 [x11perf -aa10text].
+
+ However, the extra intersection check almost entirely cancels out the
+ speed up and we discover that the glyphs in x11perf are always
+ overlapping. Nothing is ever easy.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e3ece83f577d3664962edeec6ab5bdc41c5d77cf
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 19 16:52:11 2010 +0100
+
+ i915: compute normalized texcoords using a scale factor.
+
+ 500 -> 580kglyphs/s on i945.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c2abf8d659b8b161a4f9df100b614ee3c8f8e458
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 19 16:18:40 2010 +0100
+
+ uxa: translate the region in line for composites
+
+ When compositing, we need to convert the box into a rect and so the
+ advantages of using REGION_TRANSLATE are lost.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2adf823b80b7b1f6df1bf3422a1219e93321a8fb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 19 15:02:58 2010 +0100
+
+ i915: Add special case primitive emitters for glyphs.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f64ab9e0d97dd9c654b4ae1924e62ef6813d9bb0
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 19 14:50:12 2010 +0100
+
+ i915: Move vertices into a vertex buffer object.
+
+ In theory this should allow us to pack far more operations into a single
+ batch buffer, and reduce our overheads.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2b050f330f78d02e7f476e55be29d760271ac61c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 19 10:57:46 2010 +0100
+
+ Use pwrite to upload the batch buffer
+
+ By using pwrite() instead of dri_bo_map() we can write to the batch buffer
+ through the GTT and not be forced to map it back into the CPU domain and
+ out again, eliminating a double clflush.
+
+ Measing x11perf text performance on PineView:
+
+ Before:
+ 16000000 trep @ 0.0020 msec (511000.0/sec): Char in 80-char aa line (Charter 10)
+ 16000000 trep @ 0.0021 msec (480000.0/sec): Char in 80-char rgb line (Charter 10)
+ After:
+ 16000000 trep @ 0.0019 msec (532000.0/sec): Char in 80-char aa line (Charter 10)
+ 16000000 trep @ 0.0020 msec (496000.0/sec): Char in 80-char rgb line (Charter 10)
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit dcef703a7cdcf360f12312a338361697acffc3e9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 19 09:30:02 2010 +0100
+
+ Kill paranoid assertions on every write into the batchbuffer.
+
+ On my PineView box these represent ~5% overhead on x11perf text:
+
+ Before:
+ 16000000 trep @ 0.0020 msec (495000.0/sec): Char in 80-char aa line (Charter 10)
+ 12000000 trep @ 0.0022 msec (461000.0/sec): Char in 80-char rgb line (Charter 10)
+
+ After:
+ 16000000 trep @ 0.0020 msec (511000.0/sec): Char in 80-char aa line (Charter 10)
+ 16000000 trep @ 0.0021 msec (480000.0/sec): Char in 80-char rgb line (Charter 10)
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit bc41f84e01f18548b05c670e1fd0d641adc28d0f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 18 23:54:13 2010 +0100
+
+ i915: Emit composite primitive with specialised functions.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4a3476ea094e84887fefb558e0bba023fee34151
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 18 23:25:59 2010 +0100
+
+ i915: amalgamate composite into a single primitive list
+
+ Combine all the calls to composite between prepare_composite and
+ done_composite into a single primitive list, rather than a primitive
+ call per composite().
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e5c971e7639095d38da3518a5dc404b708d45cfb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 18 22:16:17 2010 +0100
+
+ uxa: Spans! OMG!
+
+ Use composite rather than solid blits in order to bring performance on
+ a par with the CPU when using GEM and relocations.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 509df27c7401e96d3062890da73f6af6629adef4
+Author: Kristian Høgsberg <krh@bitplanet.net>
+Date: Tue May 18 10:01:52 2010 -0400
+
+ dri: Clean up DRI2 API #ifdefs a bit
+
+ Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
+
+commit 5e04a81369dfc76bbc1ebbd4db00c23e71eb9e1c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 17 15:16:25 2010 +0100
+
+ i830: Remove vestigal debugging ALWAYS_FLUSH and ALWAYS_SYNC
+
+ These are now debugging options exposed in Xorg.conf, and now unused int
+ the source code.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 723cc45b2707aa160eac6d5b56a20e19cc42c8a3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 17 15:14:55 2010 +0100
+
+ dri: Check error code from GetScratchGC()
+
+ It may fail so be prepared, and do use the right drawable!
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2c00297bc3b4969f28e2eb19bce36ece50ce4ccb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun May 16 19:15:37 2010 +0100
+
+ uxa: Replace solid planemask [0xffffffff] with FB_ALLONES
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2c69709d8afa6e9c0990efc463df0061536585e1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun May 16 18:41:52 2010 +0100
+
+ i830: Encode surface bpp into format
+
+ References:
+
+ Bug 28135 - [855GM] Slowdown/High CPU-Usage after Git-Commit
+ 926fbc7d90ac1d0d49d154f136f9c9ed613c98c2
+ https://bugs.freedesktop.org/show_bug.cgi?id=28135
+
+ The simple answer is that I had assumed that 0 was a reserved value.
+ However, without the bbp encoded into the format 0 was used for a8r8g8b8
+ and r5g6b5, which are very common formats!
+
+ The other possibility for the slowdown is that gtkperf is using of the
+ now verboten xrgb formats -- but would in fact be valid if the source
+ covers the clip and we could fixup the alpha value in the fixed function
+ combine.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 21b5fd427f5ed6c99276349a7ae128eea580dd72
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun May 16 13:51:41 2010 +0100
+
+ uxa: Tidy uxa_solid_rects()
+
+ Move the operator reduction after a few fallbacks, closer to its use.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 61835701fd411d3bb550ceee3365e30639e46861
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun May 16 13:26:07 2010 +0100
+
+ uxa: Patterns are acquired at 0,0
+
+ Set the correct offset for the gradients patterns after rendering to a
+ local Picture.
+
+ Fixes cairo/test/huge-radial and friends
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 89f43f69a9c854fb2b82538a8938002675ca19e4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 18:34:54 2010 +0100
+
+ uxa: Force an alpha channel when rendering source fallbacks
+
+ As the source may not cover the extents, we need to represent those
+ areas as transparent in the fallback picture, ergo we need an alpha
+ channel. We could be smarter and force a format conversion when
+ necessary, and we could let the backend choose the most appropriate
+ format.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 524fd2dd0da8f69d4c3f5aebe3a345fe34af609d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 18:23:21 2010 +0100
+
+ uxa: Apply clip for solid rectangles.
+
+ References:
+
+ Bug 28120 - Tint2's tooltip borders end up at 0,0 and do not disappear
+ https://bugs.freedesktop.org/show_bug.cgi?id=28120
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 58b089febceca1e915607bb723ee658aaa9dbed3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 09:11:46 2010 +0100
+
+ uxa: Avoid using blits when with PictFilterConvolution
+
+ References:
+
+ Bug 28098 Compiz renders shadows wrong, garbage line of pixels along left
+ and top edge of windows
+ https://bugs.freedesktop.org/show_bug.cgi?id=28098
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ef95899f5b21453daeabf81a3015b22456d21fec
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 09:02:07 2010 +0100
+
+ uxa: Check the w-scaling component is 1 for an translation matrix
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9c3da71349bcfeabae08f1572cf602c357bf7641
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 01:05:24 2010 +0100
+
+ i830: Remove xrgb conversion to argb, no longer required.
+
+ All textures are now properly declared so that the alpha swizzling
+ occurs in the sampler or not at all. The downside is that for quite a
+ few composite operations we have to fallback to software on older
+ hardware. There is scope for more performing the alpha expansion in
+ shaders or combiners when we know the picture covers the clip - which is
+ almost all of the time for normal operations especially those
+ constructed by Cairo.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 926fbc7d90ac1d0d49d154f136f9c9ed613c98c2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 01:01:20 2010 +0100
+
+ i830: Remove incorrectly mapped tex formats.
+
+ We no longer workaround the lack of alpha expansion for xrgb textures as
+ this interferes with EXTEND_NONE, though we could if we know the source
+ covers the clip...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 95654cffa8643f61f153218f27e800df75b9bdee
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 00:50:42 2010 +0100
+
+ uxa: Fix order of conditionals to only run fill_region for SRC or opaque
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f67b45965b527699794ee21174809c5d71c03f22
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 00:50:20 2010 +0100
+
+ uxa: Expand the range of compatible formats to cover all bpp.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 82d07fdf10cac2211af74ebf7d519daacd7084c0
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 00:49:39 2010 +0100
+
+ uxa: Only use 1x1R as a solid with an opaque format or SRC
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3bca186a7ead84d4f0e71dfd83847ef77a4e390b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 00:48:31 2010 +0100
+
+ uxa: Call check_solid before running the solid blitter.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 213816c30b5ca6146e26ded85b2aa31ca16ca9bf
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 15 00:47:55 2010 +0100
+
+ i915: Load texture into directly into OC when possible.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 737de9a779d05fe6fb1efe1904fda2cc452ff137
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 23:48:27 2010 +0100
+
+ uxa: Disable compatible src xrgb and dst argb
+
+ I'm seeing garbage alpha for rendercheck blend:
+
+ x8r8g8b8a 10x10 SRC ar8g8b8a
+
+ so disable blitting until I work out if we can fast-path it.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 271240fd477b11885947da32868bc77151681559
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 23:38:02 2010 +0100
+
+ i915: Remove a couple of unsupported 16bpp no-alpha tex formats
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a7c318d21c9035f6cab48c16e734b9ecb6f4b238
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 23:30:21 2010 +0100
+
+ uxa: Parse BGRA pixel formats.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f7bbcc492a05f0801c64ee884798cf1a7ebb71c2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 23:29:13 2010 +0100
+
+ Split the prepare blitter functions into check + prepare.
+
+ Allow us to check whether we can handle the operation using the blitter
+ prior to doing any work.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4be8d7eb89e61ffb2ceb19f1f84260e581187692
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 21:13:21 2010 +0100
+
+ i915: Don't force alpha=1 for RGB drawables in the shader.
+
+ I was blindly fixing rendercheck without thinking. We need to force the
+ alpha value to be in the blend unit and not before -- otherwise we
+ generate the incorrect result whilst blending. D'oh.
+
+commit b9a5e36f957e42eaf0387ad15f2298d3e9538b05
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 20:52:48 2010 +0100
+
+ uxa: enable solid rects for backends that require pixmaps
+
+ Convert the color into a (cached) pixmap if the backend cannot handle
+ the SolidFill natively.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a21297d7cc5945704d8cbd28ad0a2a3f6096fa47
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 17:51:42 2010 +0100
+
+ drm: Remove pin(); unpin() sync
+
+ GEM handles serialisation of the new front buffer with respect to page
+ flipping and rendering and reports back when the flip is complete.
+ Adding a sync point here is then redundant.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7ee73d2c6f373f3d6829cb1876b1940db62be452
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 17:51:20 2010 +0100
+
+ drm: Remove unused old_front parameter from drmmode_do_pageflip.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 030d56279bf14d9ddd42d8fdbeaa66ef3f557b4d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 16:53:40 2010 +0100
+
+ drm: don't overwrite the old intel->front_buffer
+
+ It's now handled in the common ExchangeBuffers() path.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5bd022739511104e4978bdfd2f4a1f60b9206723
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 15:47:09 2010 +0100
+
+ i830: Teardown batch entries on reset.
+
+ By not cleaning up the batch entries when resetting the X server, we left
+ the pointers in an inconsistent state and caused X to crash.
+
+commit 0d2392d44aae95d6b571d98f7ec323cf672a687f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri May 14 10:32:12 2010 +0100
+
+ dri: Hold reference to buffers across swap
+
+ As we schedule swaps for some time in the future and may process a
+ detachment prior to receiving the vblank notification from the kernel,
+ we need to hold a reference to the buffers for our swap event handler.
+
+ Fixes:
+ Bug 28080 - "glresize" causes X server segfault with indirect rendering.
+ https://bugs.freedesktop.org/show_bug.cgi?id=28080
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8de09a0707ee1be1b919b979843711728618ef27
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu May 13 17:15:28 2010 +0100
+
+ uxa: Convert 1x1R back to solid_fill
+
+ In the change to prevent blitting between incompatible sources, we also
+ prevented 1x1R pixmaps from being used for solid fills. Reorder the
+ sequence of conditions to enable this fast path again.
+
+commit 92e9cf8af784b13c28030e38b15c8decf29e6a32
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu May 13 15:12:51 2010 +0100
+
+ uxa: Only use solid_fill for SRC.
+
+commit d1bd14e8b6754ba9f797642e1b33bf689e19417b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu May 13 15:11:16 2010 +0100
+
+ uxa: Replace source for CLEAR with a transparent solid
+
+ This means that we will hit the faster try_solid_fill path instead.
+
+commit cdab72c405434ecbf7a79e402ff2d65d6a728179
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu May 13 15:12:32 2010 +0100
+
+ uxa: Fallback early if compositing with alphaMaps
+
+commit 25811dc7b7d1ad3fb01c31197d1ae1fe5b498975
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu May 13 15:09:28 2010 +0100
+
+ i915: Force output alpha to 1. if dst has no alpha channel.
+
+ Ensure that garbage is not stored in the unused alpha channel so that
+ we can rely on it being currently initialiased when used as a source or
+ returning via GetImage.
+
+ Partial fix for rendercheck -t blend
+
+commit 0e726b85ca6013ae9dc51391aaa309203352b61e
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu May 13 09:41:39 2010 +0100
+
+ i915: Add a2r10g10b10 format and friends
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9f54107f866a25cf670f81f7c52b8c108728c6a5
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 14:55:16 2010 +0100
+
+ dri2: Handle reference counting across page flipping
+
+ 1. Instead of swapping bos, swap the entire private structure.
+
+ 2. If we update the pixmap bo for the Screen, make sure we update the
+ reference inside intel->front_buffer so that xrandr still functions.
+
+ Fixes:
+
+ Bug 27922 - i965: Rapidly resizing OpenGL window causes GPU to hang.
+ https://bugs.freedesktop.org/show_bug.cgi?id=27922
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6c27f6e4f76b97df71094acf25083b2922966b42
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 12 12:01:46 2010 +0100
+
+ uxa: Avoid glyph ping-pong with !offscreen destination
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d5383c2073e181b9ec352461c05d6202ad37f9d6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 12 10:53:14 2010 +0100
+
+ uxa: Avoid ping-pong with !offscreen destination and traps
+
+ If we are destined to target an !offscreen drawable, then uploading the
+ trapezoid mask to a bo is the last thing we actually want to do...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 00664b8f9d3da8d0d6aa53471ed3a8a8f6391660
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 12 12:41:51 2010 +0100
+
+ uxa: Fallback when compositing to a !offscreen destination
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0c6372a77fd8c051534c1b420a02a8737aa1dd01
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 12 09:57:27 2010 +0100
+
+ i830: Prevent allocation of bo larger than half the aperture
+
+ We need to prevent overcommitting the aperture, and in particular if we
+ allocate a buffer larger than available space we will fail to mmap it in
+ and rendering will fail. Trying to allocate multiple large buffers in
+ the aperture, often the case when falling back, causes thrashes and
+ eviction of useful buffers. So from the outset simply do not allocate a
+ bo if the the required size is more than half the available aperture
+ space.
+
+ Fixes allocation failure in ocitymap.trace for instance.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 244b7cbfffdcda4761948eaa37ed2a30ca81f107
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 12 09:18:30 2010 +0100
+
+ uxa: Use accelerated PutImage for uploading pixman images.
+
+ Short-circuits the current use of PutImage from CopyArea, bypassing all
+ the temporary allocations.
+
+commit cb887cfc670bf63993bd313ff33927afb8198eae
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Mar 26 09:59:51 2010 +0000
+
+ uxa: solid rects
+
+ The cost of performing relocations outweigh the advantages of using the
+ blitter for solids with lots of rectangles.
+
+ References:
+
+ Bug 22127 - [UXA] 50% performance regression for XRenderFillRectangles
+ https://bugs.freedesktop.org/show_bug.cgi?id=22127
+
+ By using the 3D pipeline we improve our performance by around 4x on
+ i945, measured by the jxbench microbenchmark, and a factor of 10x by
+ short-cutting to the 3D pipeline for blended rectangles.
+
+ Before, on a i945GME:
+ 19982.412060 Ops/s; rects (!); 15x15
+ 9599.131693 Ops/s; rects (!); 75x75
+ 3803.654743 Ops/s; rects (!); 250x250
+ 6836.743772 Ops/s; rects blended; 15x15
+ 1443.750000 Ops/s; rects blended; 75x75
+ 495.335821 Ops/s; rects blended; 250x250
+ 23247.933884 Ops/s; rects composition (!); 15x15
+ 10993.073048 Ops/s; rects composition (!); 75x75
+ 3595.905172 Ops/s; rects composition (!); 250x250
+
+ After:
+ 87271.145975 Ops/s; rects (!); 15x15
+ 32347.744361 Ops/s; rects (!); 75x75
+ 5884.177215 Ops/s; rects (!); 250x250
+ 73500.000000 Ops/s; rects blended; 15x15
+ 33580.882353 Ops/s; rects blended; 75x75
+ 5858.811749 Ops/s; rects blended; 250x250
+ 25582.317073 Ops/s; rects composition (!); 15x15
+ 6664.728682 Ops/s; rects composition (!); 75x75
+ 14965.909091 Ops/s; rects composition (!); 250x250 [suspicious]
+
+ This has no impact on Cairo, but I have a suspicion from watching xtrace
+ that Qt likes to blit thousands of 1x1 rectangles with the same colour.
+ However, we are still around 2-3x slower than the reported figures for
+ EXA!
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c8e10f7791fecf0fed7ad606db062d87d8ff263c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed May 12 12:41:00 2010 +0100
+
+ debug: Add names for operators
+
+ Most useful for confirming my worst fears: unwarranted use of
+ OutReverse + Add.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6ea8ce640fbc7e5054b521a6f70b303945d0e849
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 19:35:59 2010 +0100
+
+ xvmc: Build fix with -pedantic
+
+ Fixes:
+
+ Bug 27352 - RPMLINT error causes build breakage
+ https://bugs.freedesktop.org/show_bug.cgi?id=27352
+
+ Reported-by: Johannes Obermayr <johannesobermayr@gmx.de>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e1b7e8bf1d475b3d00adcb96e6002c20c9e70d1c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 15:50:23 2010 +0100
+
+ drmmode: Reorder i830_set_pixmap_bo() so that the correct stride is used.
+
+ The pitch needs to be set on the pixmap prior to the private
+ intel_pixmap structure being created so that it can record the correct
+ value from the pixmap.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit dfbaf9aab80cf33d47148f087fa747eacd508b05
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 14:54:15 2010 +0100
+
+ i830: Never create a bo for depth=1 pixmaps.
+
+ As we can not accelerate these either as a destination or a source,
+ don't bother allocating a buffer object for them.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5b7efe375ae951ffcdb2c81e2ad8a2ed86ffbdf2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 14:53:29 2010 +0100
+
+ i830: Use set_pixmap_bo() instead of open-coding.
+
+ The advantage is that this enables in-flight reuse of the old pixmap if
+ possible.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ad8af95dd35921118f45d6cff355c80cf0906ff0
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 14:52:54 2010 +0100
+
+ i830: Do not cache in-flight non-reusable buffers.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f1048e14d5ef34970cb717e2a37d1c6bb4ea3a34
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 11:39:46 2010 +0100
+
+ i965: Add texformats mapping for additional pixman formats
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a35afd4a2df8bab543700d874274228eddccae5b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue May 11 11:26:33 2010 +0100
+
+ uxa: Recheck texture after acquiring pattern.
+
+ As the first step to handling unsupported texture formats, double check
+ that the converted pattern can be used as a texture by the card.
+
+ Fixes: rendercheck -t repeat
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d745cab6c45b9fce5e46eacbdd04ceae911fddbb
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 10 22:58:49 2010 -0700
+
+ Must call ValidateGC in i830_uxa_put_image for scratch GC
+
+ Always need to call ValidateGC or the scratch GC will not get the
+ right composite clip.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 3eded4202ea00d42edf5edad831484ebc6c0c826
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 10 23:38:17 2010 +0100
+
+ i915: Fix pixmap based masks.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 1ecd89be039b642affb2f9933f4341d186cb4dea
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 10 23:33:52 2010 +0100
+
+ uxa: Protect against valid SourcePict in uxa_acquire_mask()
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a8761585ef0b37736d302299d6b03e0957ad3e16
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 10 19:38:24 2010 +0100
+
+ i830: Minor cleanup
+
+ Remove some extraneous prototypes and unused variables.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9e9b0d85da801f1f95c7bc7e99566fe7056f5813
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 10 18:37:02 2010 +0100
+
+ i830: Update stride when swapping bo for PutImage
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0d4dd00aeafdd625ffe902e26e666b63a0842adc
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 10 12:10:09 2010 +0100
+
+ uxa,i915: Handle SourcePict through uxa_composite()
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 21c1c3c7f6eb2b5070d2153b15a8fb1afe938bbb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 10 10:19:28 2010 +0100
+
+ i915: Use 1x1R pixmap for solid drawables
+
+ x11perf has a regression
+ https://bugs.freedesktop.org/show_bug.cgi?id=25068
+
+ caused by
+
+ commit e581ceb7381e29ecc1a172597d258824f6a1d2d3
+ i915: Use the color channels to pass along solid sources and masks.
+
+ Do not convert 1x1R pixmaps into a solid color as the readback from the
+ bo negates all the performances advantages of using a smaller vertex
+ buffer and fewer samplers.
+
+ Before (PineView):
+ aa=66800 glyph/s, rgb=28800 glyphs/s
+
+ Now:
+ aa=96800 glyphs/s, rgb=48500 glyphs/s
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f52b6e832292c02c0010b19882e38e1097beeda0
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon May 10 09:39:44 2010 +0100
+
+ uxa: Rearrange checking and preparing of composite textures.
+
+ x11perf regression caused by 2D driver
+ https://bugs.freedesktop.org/show_bug.cgi?id=28047
+
+ caused by
+
+ commit a7b800513fcc94e063dfd68d2f63b6bab7fae47d
+ uxa: Extract sub-region from in-memory buffers.
+
+ The issue is that as we extract the region prior to checking whether the
+ composite can in fact be accelerated, we perform expensive surplus
+ operations. This is particularly noticeable for ComponentAlpha text,
+ such as rgb10text. The solution here is to rearrange the
+ check_composite() prior to acquiring the sources, and only extracting
+ the subregion if the render path can not actually handle the texture.
+
+ Performance (on PineView):
+ a7b800513^: aa=68600 glyphs/s, rgb=29900 glyphs/s
+ a7b800513: aa=65700 glyphs/s, rgb=13200 glyphs/s
+ now: aa=66800 glyph/s, rgb=28800 glyphs/s
+
+ The residual lossage seems to be from the extra function call and
+ dixPrivate lookups. Hmm. More warning is the extremely low performance,
+ however the results are consistent so the improvement looks real...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 848ab66384508c3ad3e5fb4884e4527f3ebd3bde
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat May 8 18:36:55 2010 +0100
+
+ uxa: Transform composites with a simple translation into a blit
+
+ We can also convert a composite with an integer translation into a
+ blit, so long as the sample extents remains within the source.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a7b800513fcc94e063dfd68d2f63b6bab7fae47d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Apr 14 21:14:34 2010 +0100
+
+ uxa: Extract sub-region from in-memory buffers.
+
+ If the buffer is too large or not suitable for a GPU operation, we
+ currently fallback and perform the composite on the CPU. An alternative
+ is too extract the small region out of the source (as usually the
+ sample extents are much smaller than the actual surface size) and try
+ the composite with the new surface.
+
+ The effect is particularly noticeable on pathological websites that use
+ very large background images. For example, http://www.woodtv.com/ uses a
+ 1299x15000 pattern that is obscured by another opaque pattern.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8562b7bc6740eef2602af76b8685388efd2d4d37
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Apr 27 10:27:44 2010 +0100
+
+ i830: prepare the uxa pixmap for fbCopyArea.
+
+ Complete the prepare access for the PutImage fallback via fbCopyArea(),
+ by remembering to set the private pointer to the GTT mapping.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9a5cd65b593ea82e56e0c403f7ddcc2420a64dc3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 26 09:07:07 2010 +0100
+
+ i830: if pixman_blt() fails fallback to fbCopyArea()
+
+ On older versions of pixman, pixman_blt() can return false if the images
+ are <= 8bpp. If we are being called from CopyArea, then we cannot return
+ FALSE here as that will trigger an infinite recursion. Instead we must
+ manually perform the fallback using fbCopyArea().
+
+ Reported-by: Peter Clifton <pcjc2@cam.ac.uk>
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 86d349aa7b0a596fbb9530e896c19349405bf3ba
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 26 09:12:54 2010 +0100
+
+ i830: tidy in flight bo reuse.
+
+ A left-over cleanup patch for c374c94. *sigh*
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 72fd7d191c33c8d0b75b06ab0717d7ca0d4e019a
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Apr 19 21:56:57 2010 +0200
+
+ Fix "make dist"
+
+ This is some fallout from my xvmc cleanup.
+
+ Original-Patch-by: Rico Tzschichholz <ricotz@t-online.de>
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 9494f4e91f8c8c7a0f8d61c6883c9bfceb2cec46
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Fri Apr 16 22:24:01 2010 +0200
+
+ i810: adjust the pitch for DRI rendering
+
+ Current code forgot to adjust the pitch of the frontbuffer.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=16729
+
+commit c374c94e41d6e7d677334171e3255778d77cbe18
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 31 11:50:27 2010 +0100
+
+ uxa: Reuse in-flight bo
+
+ When we need to allocate a new bo for use as a gpu target, first check
+ if we can reuse a pixmap that has already been relocated into the
+ aperture as a temporary target, for instance a glyph mask or a clip mask.
+
+ Before:
+ backend test min(s) median(s) stddev.
+ xlib firefox-planet-gnome 50.568 50.873 0.30%
+ xcb firefox-planet-gnome 49.686 53.003 3.92%
+ xlib evolution 40.115 40.131 0.86%
+ xcb evolution 28.241 28.285 0.18%
+
+ After:
+ backend test min(s) median(s) stddev.
+ xlib firefox-planet-gnome 47.759 48.233 0.80%
+ xcb firefox-planet-gnome 48.611 48.657 0.87%
+ xlib evolution 38.954 38.991 0.05%
+ xcb evolution 26.561 26.654 0.19%
+
+ And even more dramatic improvements when using a font size larger than
+ the maximum size of the glyph cache:
+ xcb firefox-36-20090611: 1.79x speedup
+ xlib firefox-36-20090611: 1.74x speedup
+ xcb firefox-36-20090609: 1.62x speedup
+ xlib firefox-36-20090609: 1.59x speedup
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 96aa7a236ac0605324a94f7b7d10413cb219f071
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Apr 14 15:04:53 2010 +0100
+
+ i830: Allocate bo's for glyphs larger than 32x32.
+
+ As we only use the glyph cache for small glyphs, those large than 32x32
+ will first be copied to a bo and used as a mask in a composite
+ operation. We can avoid the allocation and upload per use by allocating
+ a bo for the over-sized glyph from the start. As the glyph is large
+ anyway, the excess memory allocation is less significant.
+
+ Using normal font sizes, firefox shows no change - as expected. However,
+ using the 36 font size traces, we see around a 10% improvement on g45.
+
+ Before:
+ xcb firefox-36-20090609 127.333 127.897 0.22%
+ xcb firefox-36-20090611 87.456 88.624 0.66%
+ xcb firefox-20090601 19.522 20.194 1.69%
+ xlib firefox-36-20090609 201.054 201.780 0.18%
+ xlib firefox-36-20090611 133.468 133.717 0.09%
+ xlib firefox-20090601 23.740 23.975 0.49%
+
+ With large glyphs in bo:
+ xcb firefox-36-20090609 117.256 118.254 0.42%
+ xcb firefox-36-20090611 79.462 79.962 0.31%
+ xcb firefox-20090601 19.658 20.024 0.92%
+ xlib firefox-36-20090609 185.645 188.202 0.68%
+ xlib firefox-36-20090611 123.592 124.940 0.54%
+ xlib firefox-20090601 23.917 24.098 0.38%
+
+ Thanks to Owain G. Ainsworth for the suggestion!
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2d17bd50af367bead84985c22fdd43d264a5f072
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Apr 14 14:54:34 2010 +0100
+
+ Revert "Revert "uxa: Try using put_image when copying from a memory buffer.""
+
+ This reverts commit 6d50553e8f70d8f2142efdfd6c90bc27a599d0bc.
+
+ Now we have taught the fallback path not to infinitely recurse,
+ re-enable the accelerated path for ShmPutImage and friends.
+
+commit 1cc2c2c44ac72460cf1c4e6bdc13c612235809c9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Apr 14 11:18:25 2010 +0100
+
+ i830: Use pixman_blt directly for performing the in-memory copy
+
+ In order to avoid an infinite recursion after enabling CopyArea to use
+ the put_image acceleration to either stream a blit or to copy in-place,
+ we cannot call CopyArea from put_image for the fallback path. Instead,
+ we can simply call pixman_blt directly, which coincidentally is a tiny
+ bit faster.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 324a2810da3fbae35637ba9080f31f9383db0868
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Apr 13 08:39:43 2010 +0200
+
+ i830 render: check aperture space requirements
+
+ No point not doing this.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 804263c10df2fedb2f0debab6cdfaa6a89184a42
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Sun Apr 11 12:56:24 2010 +0200
+
+ render: tell the kernel explicitly when fences are needed
+
+ This slighlty improves xrender performance on fence reg starved
+ i8xx hw.
+
+ I've also changed a few function calls to the new names from the
+ compat ones while looking at the code.
+
+ The i915 textured video path is not converted because atm the xv
+ code does not use tiled surfaces.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit a619a7831228dc52f0fef7d92c92f701e5aeaa94
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Apr 8 18:49:01 2010 +0200
+
+ i915 render: use tiling bits where possible
+
+ This is in preparation to explicit fence allocation with execbuf2.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 55cd36046e61e8d51b5cb754a81cdb54e3eab166
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Apr 8 14:48:35 2010 +0200
+
+ i830 render: use tiling bits where possible
+
+ This is in preparation to explicit fence allocation with execbuf2.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 6d50553e8f70d8f2142efdfd6c90bc27a599d0bc
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 12 13:44:31 2010 -0700
+
+ Revert "uxa: Try using put_image when copying from a memory buffer."
+
+ This reverts commit 27195d7dba0f3ff08b92f3fd916cdf5113cbef58.
+ put_image often calls copy_area. Which calls put_image. Exhausting of
+ the stack follows.
+
+commit 28024f6c5f351ce4cb3434998d5dbfbeded7c606
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Apr 12 13:44:01 2010 +0100
+
+ Revert "uxa: Add fallback warnings for PutImage."
+
+ This reverts commit 299b0338d0811192dc4f8eae5d79453e9882c5d1.
+ A debugging patch, it was never intended to go into master
+
+commit 27195d7dba0f3ff08b92f3fd916cdf5113cbef58
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 31 20:30:27 2010 +0100
+
+ uxa: Try using put_image when copying from a memory buffer.
+
+ Often, for example in the fallback for ShmPutImage, we will attempt to
+ use uxa_copy_area() copying to a normal pixmap from a memory buffer.
+ This triggers a fallback, and maps the destination pixmap back into the
+ GTT. The accelerated put_image path will attempt to stream a blit to the
+ destination pixmap if it is currently active, avoiding the stall.
+
+commit 385563417d10b5e8a005bed6ae4de9a8fac1b407
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Mar 30 21:10:50 2010 +0100
+
+ Review i830_pad_drawable_width()
+
+ We appear to have a confusion of stride in terms of pixels, pitch in
+ terms of bytes and the actual width of the surface.
+ i830_pad_drawable_width() appears to be operating aligning *pixels* to a
+ 64 pixel boundary and has never used the chars-per-pixel causing
+ considerable confusion in its callers. Remove the parameter and ensure
+ that the callers are expecting a value in pixels returned, multiplying
+ by cpp where necessary to get the pitch.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 299b0338d0811192dc4f8eae5d79453e9882c5d1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Mar 25 13:43:26 2010 +0000
+
+ uxa: Add fallback warnings for PutImage.
+
+commit 80f52482c7cde000a76b91fe3d8b6c16baf2141f
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Apr 8 22:30:33 2010 +0200
+
+ XvMC: fix memory overflow
+
+ Caught by a malloc library assert.
+
+ Note to self: Don't just copy&paste codelines around :(
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Buzilla: https://bugs.freedesktop.org/show_bug.cgi?id=27540
+ Tested-by: Nick Bowler <nbowler@draconx.ca>
+ Tested-by: Calvin Walton <calvin.walton@gmail.com>
+
+commit 3d7723526b181686d62f09f81fba3ccdbf7d2b1a
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Apr 8 22:21:01 2010 +0200
+
+ Xv: fixup overlay stride confusion
+
+ For some reason I've made a mess out of the overlay stride constrains.
+ Fix it up.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Tested-by: Calvin Walton <calvin.walton@gmail.com>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=27453
+
+commit bdf0ee509c26ab35e60f3ed02549efa435be032f
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Apr 8 13:29:04 2010 +0200
+
+ i965 Xv: fix chroma pitch
+
+ In my recent fix for the chroma pitch for i915 xvmc I've forgotten about
+ i965 class hw. For videos with a non-even sized stride (measured in dwords)
+ the chroma pitch was internally incosistent and one dword off.
+
+ Fix this by using pitch2 for the chroma pitch in i965 textured video like
+ everywhere else.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=27417
+ Tested-by: Nick Bowler <nbowler@draconx.ca>
+ Tested-by: Sven Arvidsson <sa@whiz.se>
+
+commit f6cb28e909c8685474e69e8bd8600f146d3a74e9
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Mar 11 15:37:54 2010 +0100
+
+ libXvMC: rip out debug stuff
+
+ Almost totatlly unused, but surely totally useless.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 676028ec0cbd4fadded92feefc8371e075abcc12
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 19:23:06 2010 +0100
+
+ libXvMC: unify CreateSurface
+
+ Simply store the desired bo size in intel_xvmc_context and initialize
+ it in the driver's create_context function.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 3f590a4577f554313e7577205e471757a39129b6
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 19:04:51 2010 +0100
+
+ libXvMC i915: kill unused context private fields
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 8a31dacb067f813a5b0eafc16d265434e48ec5fc
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 18:59:29 2010 +0100
+
+ libXvMC: derive driver context from struct intel_xvmc_context
+
+ ... by putting struct intel_xvmc_surface at the beginning. Also kill
+ the common context handling code and simply keep a pointer in the
+ surface private to the context.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 16e5edde4d97e1818e0dbfbc165bd8199f697336
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 16:51:10 2010 +0100
+
+ libXvMC: unify DestroySurface
+
+ Surface bo's can be freed by the common code, then there's nothing
+ driver specific left.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 5f64122551f2d8d41d745351b2e4e68208aa6084
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 16:25:57 2010 +0100
+
+ libXvMC: drop get_surface_status driver callback
+
+ It's unused. Also drop all related generic code that tries to do
+ clever stuff with this callback. These are all remnants from a
+ pre-gem world.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 6c44ce9e127e531224bac825da7918800a3e6a1a
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 16:20:03 2010 +0100
+
+ libXvMC i915: s/i915XvMCSurface/struct intel_xvmc_surface/
+
+ The private surface struct now adds nothing. Drop it.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 583ec1f2f7ed32bb42c98baa1ca0fc3735b69b11
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 15:55:44 2010 +0100
+
+ libXvMC i915: rip out unneeded surface fields
+
+ All of these are also stored in the context. Also kill the context
+ reference counting. Doesn't serve a purpose besides occupying a
+ pointer to the context in the private surface struct.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit c9aaaed829731cda22d057d6ac6424c587770973
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 15:27:02 2010 +0100
+
+ libXvMC: unify PutSurface
+
+ Now that the drm bo is in the common structure, do the PutImage
+ handling in common code, too.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 4edff6c972311df2370a8323e346eeabd49ced35
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 15:13:41 2010 +0100
+
+ libXvMC: move drm_intel_bo to common intel_xvmc_surface
+
+ i965 lost the last field in it's private surface struct. Kill it
+ and any associated headers.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 9eeabf876d1f70f5525bbac438414557dd2d4335
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 15:00:58 2010 +0100
+
+ libXvMC: derive driver surfaces from struct intel_xvmc_surface
+
+ ... by putting struct intel_xvmc_surface at the beginning. This
+ will allow to consolidate surface and bo handling.
+
+ Also kill some now dead code used to handle the common surface
+ structure.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit a0058369bbdfb49f8df5ee1e50671115927d3565
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Mar 10 14:31:40 2010 +0100
+
+ XvMC: kill intel_xvmc_command
+
+ We only passed around and actually used the gem handle. Don't
+ need a struct for one field alone ...
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 79fe4caafd21f6ca262901eac4a66ce5a4eaf548
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 9 16:20:33 2010 +0100
+
+ XvMC: dynamically allocate adaptor
+
+ And kill all the static structures. This way it's clearer what's
+ common and what's specific. And the code is shorter too.
+
+ Also clean up src/i830_hwmc.c - kill the nonstandard surface types
+ for i915 and the associated code.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 00b63ecb192b7eafea9482bf5c5c5d442ce2c6fc
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 9 15:29:15 2010 +0100
+
+ XvMC: directly set driver type in context creation
+
+ Instead of threading it through a global variable.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 411cdcb6fcb60085191cf712aba1e0977f145256
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 9 15:23:02 2010 +0100
+
+ XvMC: init driver in one function call
+
+ No point splitting this up. Gets rid of two #ifdef INTEL_XVMC blocks
+ in i830_video.c.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit b666e3e29f22894f43a8e9f7f3d1b950d431c42d
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 9 14:56:44 2010 +0100
+
+ XvMC: move i965 specific stuff to common context
+
+ Like for the i915. With this create_context is now also shared.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit e0068b1e63bc914940dbeb52de46657fcf5da1ea
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 9 14:44:53 2010 +0100
+
+ XvMC: move i915 specific stuff to common context
+
+ Doing the same with the i965 code will allow us to share the
+ create_context function.
+
+ src/i915_hwmc.h is now almost empty. Move the last #defines to
+ src/xvmv/i915_xvmc.c where they are actually used and delete the
+ file.
+
+ Also rename the ddx context struct to something sane.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 8cab7b84da6d06c20ad9dbbcd8f3f3d971b438e7
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 9 14:02:23 2010 +0100
+
+ XvMC: unify destroy context function
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 323464b8e2669423df573a18fd1137cb3cad6700
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 8 23:46:25 2010 +0100
+
+ XvMC: clean up i830_hwmc.c
+
+ - Drop unnecessary macros
+ - Denote i965 specific stuff
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit cfa907adf800e91a3c1f4698ac701b9b83fa600b
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 8 23:41:56 2010 +0100
+
+ XvMC: unify surface functions
+
+ Like for the subpicture stuff, share the "do-nothing" functions ...
+ And fix function name spelling, too.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 036cd4bb82131c08b79f596667f00b19a0c8ab79
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 8 17:33:18 2010 +0100
+
+ i965 XvMC: don't create any surface state in the ddx
+
+ Like for i915. Also drop that now totally superflous limit on the
+ available surfaces.
+
+ Move the surface struct into the userspace library header now that
+ the ddx doesn't use it anymore.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 69218cc1b51acfee91b471bb973a4419b79cdd85
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 8 17:05:25 2010 +0100
+
+ XvMC: unify subpicture functions
+
+ The XvMC driver api in the server is insane. Even for optional stuff
+ like subpicture support it doesn't check for NULL-pointers. So we
+ have to retain some dummy functions.
+
+ Wonder how many copies of these things exist on fdo ...
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 5d104e9c5cd5cd2d34c9035dd38794fa9b5578f3
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 8 17:03:36 2010 +0100
+
+ XvMC: unify PutImage handling
+
+ Both xvmc are handing in the bo in the exact same way. So move the code
+ to src/i830_video.c and kill this great oeuvre of spaghetti-code.
+
+ The xvmc driver ini and fini also lost their last use, kill them, too.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit ebc0ffba79cc4bd564a8bd97327f24a1d15b3d1a
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 8 16:36:24 2010 +0100
+
+ XvMC: merge *_hwmc.c into i830_hwmc.c
+
+ After unifying i915 and i965, not much will be left of these files.
+ Therefore merge them to make the following changes easier.
+
+ This creates some warnings about some redefined macros, but when this
+ is all cleaned up they'll all be gone.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 8199f8f191f8385ef3a228e0ec014a8bbd44002b
+Author: Daniel Vetter <daniel@fliege.ffwll.ch>
+Date: Sun Mar 7 23:17:49 2010 +0100
+
+ i915 XvMC: kill more subpict support remnants
+
+ This things just won't die!
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 29ba8a84f7cf5c29a5f38688a1ac0ccf41d8e4ec
+Author: Daniel Vetter <daniel@fliege.ffwll.ch>
+Date: Sun Mar 7 23:16:28 2010 +0100
+
+ XvMC: everyone's using execbuffer!
+
+ XvMC was switched over from batchbuffers a few years ago ...
+
+ Signed-off-by: Daniel Vetter <daniel@fliege.ffwll.ch>
+
+commit 440b4d207b730112169827d0b90b46596659b504
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Mar 29 11:20:20 2010 -0700
+
+ Increase version to 2.11.0
+
+ In preparation for release.
+
+commit 1119c4523889ddedecf1722f0e9a2e4a7ad326b2
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Mar 29 11:19:31 2010 -0700
+
+ NEWS: Add release notes for the 2.11.0 release.
+
+ Hurrah! We made it.
+
+commit df3b26847914557eb3c9c70732d91169b1936d77
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Mar 26 10:44:55 2010 -0700
+
+ DRI2: release our private front buffer ref when buffer swapping
+
+ Pauli pointed out that we take a ref on the front buffer when exchanging
+ but forget to release it. The ref is necessary since the set functions
+ will drop refs as necessary, but once we set the front buffer to point
+ at the back pixmap, we ned to release our private ref again, or we'll
+ leak buffers.
+
+ Reported-by: Pauli Nieminen <suokkos@gmail.com>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 362a49e71fc41541b6dc121660d98e29da4b14e8
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Thu Mar 25 10:07:41 2010 -0400
+
+ uxa make: remove unused XORG_INCS and DIX_CFLAGS variables
+
+ Most likely copied from xserver makefile.
+
+ Acked-by: Dan Nicholson <dbn.lists@gmail.com>
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 0d1ac4da5288a621d0493cb109fcd1e040e6c5a7
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Mar 25 09:12:09 2010 +0000
+
+ uxa: Perform the xrgb -> argb conversion not inplace
+
+ After reports of segmentation faults caused by
+ d6b7f96fde1add92fd11f5a75869ae6fc688bf77 and vmware, the most obvious
+ cause would be illegally writing to the src data when performing the alpha
+ fill inline. So force the image upload to go via a fresh buffer whenever
+ we need to modify the incoming data.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Reported-and-tested-by: Jeff Chua <jeff.chua.linux@gmail.com>
+
+commit 0c47195ca805881e3fbd5b9224be5c930feeeb8c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 24 17:37:39 2010 +0000
+
+ i830: Clip solid fills to surface.
+
+ There is a reasonable surfeit of evidence to support this error,
+ for instance: http://bugs.freedesktop.org/attachment.cgi?id=34417
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5537079c29a56133446f1874d24d9e6516825edb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 24 14:59:20 2010 +0000
+
+ uxa: After filling the alpha channel xrgb src is compatible with argb dst.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 90a971c60769781f53827b469a9be3aab14cf71c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 24 14:50:45 2010 +0000
+
+ uxa: Only reduce a composite to a BLT if it is wholly contained
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2eec53d0b9232970fe3d03ce6c8940ebeea44bee
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Mar 23 17:28:22 2010 +0000
+
+ uxa: Default to using TILING_X for pixmaps.
+
+ On memory constrained hardware, tiling is vital for good performance as
+ it minimizes cache misses. The downside is that for older hardware
+ (which often suffers from the lack of bandwidth) requires the use of
+ fences for many operations, which are in short supply and so may cause
+ shorter batchbuffers. However our batch buffers are typically short and
+ so this is unlikely to be a concern and not affect the performance wins.
+
+ A quick bit of testing suggests the effect is inconclusive on
+ firefox/i945:
+ linear tiled
+ xcb 205.470 206.219
+ xcb-render-0.0 404.704 388.413
+ xlib 166.410 170.805
+
+ A secondary effect of the patch is to workaround a G31 specific hang
+ when attempting to use linear 2048x2048 surfaces. Bonus!
+
+ Fixes:
+ Bug 25375 - Performance issue using texture from pixmap (tfp) glx extension on 945
+ http://bugs.freedesktop.org/show_bug.cgi?id=25375
+
+ Bug 27100 - GPU Hung copying a 2048x1152 pixmap
+ http://bugs.freedesktop.org/show_bug.cgi?id=27100
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Tested-by: John <jvinla@gmail.com>
+
+commit 9c037f61a490c96f9095f7ff3fecbf41f5efe9f7
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Mar 22 15:23:04 2010 -0700
+
+ Update version to 2.10.903
+
+ For today's snapshot.
+
+commit 11142cffe4bc81e1ce465ea725fcaef024130082
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Mar 22 15:22:28 2010 -0700
+
+ NEWS: Add notes for 2.10.903
+
+ For today's snapshot.
+
+commit f206816154fd44e61b0bdeaab1aa4c5359c3b70a
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Mar 22 14:14:46 2010 -0700
+
+ man: Update list of available 'sclaing mode' property values.
+
+ Include the names from the current kernel driver along with accurate
+ descriptions of each. Indicate how to use the values with:
+
+ xrandr --output output --set property value
+
+ and point the user to "xrandr --prop" for an accurate list of
+ currently available values.
+
+ Closes bug:
+
+ xf86-video-intel manpage needs update for KMS xrandr properties
+ http://bugs.freedesktop.org/show_bug.cgi?id=25606
+
+commit d1dfab6b1649214177435629d8e85239dbe44d89
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Wed Mar 17 15:13:51 2010 +0100
+
+ Clear drmmode_output->mode_output in drmmode_output_destroy().
+
+commit 10cd04a84bcb6313903fc23b2d7791658ebc6b8e
+Author: Li Peng <peng.li@linux.intel.com>
+Date: Sat Mar 20 00:21:48 2010 +0800
+
+ Initialize flip_count before using it
+
+ Otherwise it would be a random value and drmmode_page_flip_handler()
+ won't have a chance to call I830DRI2FlipEventHandler() and indicate
+ a full page flip is complete.
+
+ Signed-off-by: Li Peng <peng.li@intel.com>
+
+commit 3d4b3f257fbbb69c6f236d9803abe54a90d7d434
+Author: Dave Airlie <airlied@redhat.com>
+Date: Thu Mar 18 12:48:39 2010 +1000
+
+ intel: free bus id in error path after printing it out.
+
+ the error message prints out a freed string, spotted during
+ code reappropriation to radeon driver.
+
+ Signed-off-by: Dave Airlie <airlied@redhat.com>
+
+commit 31d5f84bb4416ef92abd97264d52cdab7a184687
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Mar 17 09:11:05 2010 +0000
+
+ i915: Correct preamble for emit_composite
+
+ Fixes:
+ http://bugs.freedesktop.org/show_bug.cgi?id=27123
+
+ Fatal server error:
+ i915_emit_composite_setup: ADVANCE_BATCH: under-used allocation 100/104
+
+ Introduced with commit d6b7f96fde1add92fd11f5a75869ae6fc688bf77.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit d6b7f96fde1add92fd11f5a75869ae6fc688bf77
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Mar 6 15:49:04 2010 +0000
+
+ Fill alpha on xrgb images.
+
+ Do not try to fixup the alpha in the ff/shaders as this has the
+ side-effect of overriding the alpha value of the border color, causing
+ images to be padded with black rather than transparent. This can
+ generate large and obnoxious visual artefacts.
+
+ Fixes:
+
+ Bug 17933 - x8r8g8b8 doesn't sample alpha=0 outside surface bounds
+ http://bugs.freedesktop.org/show_bug.cgi?id=17933
+
+ and many related cairo test suite failures.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 910fd171a00227025abc8bcc286a740f5bae895b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Mar 5 14:32:13 2010 +0000
+
+ i830: Remove coord-adjust for nearest centre-sampling.
+
+ Fixes a number of cairo test suite failures.
+
+ Also affects:
+ Bug 16917 - Blur on y-axis also when only x-axis is scaled bilinear
+ http://bugs.freedesktop.org/show_bug.cgi?id=16917
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 753914acc31947df8e9f2fa3b9c39de745098709
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Mar 15 17:32:57 2010 -0700
+
+ Bump version to 2.10.902
+
+ For the imminent 2.10.902 snapshot release.
+
+commit 185196cb010cb8426ca929a9dc3f028ec9b383db
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Mar 15 17:32:20 2010 -0700
+
+ NEWS: Add notes for the 2.10.902 snapshot.
+
+ Which I'm about to push out.
+
+commit 318aa9ed799197810e2039dbe3ec51559dcc888c
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 8 23:22:53 2010 +0100
+
+ i915 XvMC: fixup colors
+
+ My cleanup accidently created a inconsistency in the YUV plane ordering.
+ I think we can safely assume that I'm colorblind ;)
+
+ As Carl Worth rightly pointed out, this change deserves a more elaborate
+ explanation:
+
+ For Xv planar formats, the three planes are stored consecutively in
+ memory, ordered Y U V. Now for some totally odd reason (= none at all),
+ i915 xvmc stored it in Y V U order. Right after the release of 2.10, with
+ commit "Xv: consolidate xmvc passthrough handling" I've inadvertently
+ broken xvmc support (which started this whole odyssey into xvmc). When
+ fixing stuff up, I neglected this special plane ordering and simply
+ assumed it to be the same as Xv and dropped that special case for i915 in
+ src/i830_video.c. This patch completes the change to standard YUV plane
+ ordering by making the corresponding change in src/xvmc/i915_xvmc.c.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 68629b63740fb6e62c258b8a46669e77660fa4e4
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Mar 8 15:42:39 2010 -0800
+
+ DRI2: make WaitMSC error handling more consistent with ScheduleSwap
+
+ Just make it mirror ScheduleSwap: complete the wait on any error
+ condition so as not to crash the client if the kernel is misbehaving.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 6df74e61afb7831ebf3fbab8782f46ddccbe262b
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Mar 8 15:33:20 2010 -0800
+
+ DRI2: truncate OML values to 32 bits
+
+ We can only handle 32 bit values unless we totally virtualize the count,
+ since the kernel only handles 32 bits itself. Rather than adding all
+ that overhead, just tolerate the occasional missed event everytime the
+ counter runs over.
+
+ Reported-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit c66d57080dc034aa7877f47612065e388bbc38a2
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Mar 8 15:26:24 2010 -0800
+
+ DRI2: more WaitMSC fixes
+
+ A couple more niggles: make sure we return a target_msc that at least
+ matches the current count; this is a little more friendly to clients
+ that missed an event. Also check for >= when calculating the remainder
+ so we'll catch the *next* vblank event when the calculation is
+ satisfied, rather than the current one as might happen at times.
+
+ Reported-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 7845c6ade82085488192bd76729d92fb7b534cc0
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Mar 8 15:19:14 2010 -0800
+
+ DRI2: fixup stray curly brace
+
+ Got left in the wrong column after the last cleanup.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 9656d329e4df28cfe138b657d04e5136bc794ce2
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 8 14:34:04 2010 -0800
+
+ Put back the pitch alignment for new framebuffers.
+
+ I confused a dead assignment with dead code, because one of the args
+ to the function was an outvalue. Fixes corruption under compiz.
+
+ Bug #26814.
+
+commit b71ca26a026a356763c51c763bcdd8024fc4a783
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Mar 8 11:27:42 2010 -0800
+
+ DRI2: fixup ScheduleWaitMSC similarly to ScheduleSwap
+
+ My merge of Mario's patch for this was botched. Fix it up so that OML
+ waits work correctly, and remove a bogus warning from ScheduleSwap.
+
+ Reported-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 06b54e089eb21736e6d4f6462bbfca987be0c5cc
+Author: Matt Turner <mattst88@gmail.com>
+Date: Sun Mar 7 14:27:27 2010 -0500
+
+ Don't check for Xinerama.
+
+ It doesn't seem to be used anywhere, so don't require it.
+
+ CC: Eric Anholt <eric@anholt.net>
+ CC: Jesse Barnes <jbarnes@virtuousgeek.org>
+ Signed-off-by: Matt Turner <mattst88@gmail.com>
+
+commit 8ece6cf5afa1bb0d8d9328696422f42f3c3adbd6
+Author: Robert Hooker <sarvatt@ubuntu.com>
+Date: Sat Mar 6 14:09:12 2010 -0500
+
+ Fix build against xserver 1.6 branch.
+
+ Signed-off-by: Robert Hooker <sarvatt@ubuntu.com>
+ Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 1cd556420277f103c47ade422f3ec8f8efb2d282
+Author: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+Date: Fri Mar 5 12:32:18 2010 -0800
+
+ DRI2: handle target_msc, divisor and remainder properly in DRI2ScheduleSwap
+
+ The current code in I830DRI2ScheduleSwap() only schedules the correct
+ vblank events for the case divisor == 0, i.e., the simple
+ glXSwapBuffers() case.
+
+ In a glXSwapBuffersMscOML() request, divisor can be > 0, which would go
+ wrong.
+
+ This modified code should handle target_msc, divisor, remainder and the
+ different cases defined in the OML_sync_control extension correctly for
+ the divisor > 0 case.
+
+ It also tries to make sure that the effective framecount of swap
+ satisfies all constraints, taking the 1 frame delay in pageflipping mode
+ and possible delays in blitting/exchange mode due to
+ DRM_VBLANK_NEXTONMISS into account.
+
+ The swap_interval logic in the X-Servers DRI2SwapBuffers() call expects
+ the returned swap_target from the DDX to be reasonably accurate,
+ otherwise implementation of swap_interval for the glXSwapBuffers() as
+ defined in the SGI_swap_interval extension may become unreliable.
+
+ For non-pageflipped mode, the returned swap_target is always correct due
+ to the adjustments done by drmWaitVBlank(), as DRM_VBLANK_NEXTONMISS is
+ set.
+
+ In pageflipped mode, DRM_VBLANK_NEXTONMISS can't be used without severe
+ impact on performance, so the code in I830DRI2ScheduleSwap() must make
+ manual adjustments to the returned vbl.reply.sequence number.
+
+ This patch adds the needed adjustments.
+
+ Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+
+commit 13119ffc034a3e9d6c76339d4fedc62bb3b41257
+Author: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+Date: Fri Mar 5 11:33:45 2010 -0800
+
+ DRI2: make MSC waits handle specific target_mscs and divisor/remainders
+
+ Previous code only handled divisor == 0 case correctly. This should
+ honor a given target_msc for the divisor > 0 case and handle the
+ (msc % divisor) == remainder constraint correctly.
+
+ Signed-off-by: Mario Kleiner <mario.kleiner@tuebingen.mpg.de>
+
+commit b6e0b92f398823629ba8a1ea8f5e62fbf959e725
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Mar 4 10:07:26 2010 -0800
+
+ DRI2: handle offscreen drawables better at swap time
+
+ If a drawable isn't visible due to DPMS or redirection, we'll just blit
+ it rather than schedule a swap event. However, we didn't reset the
+ target_msc, so the swap target we receive from the server could get out
+ of sync with the vblank count of the drawable's display. So at DPMS on
+ time, the swap target would be the last good vblank count plus some
+ large number (since the swaps won't have been throttled).
+
+ Solve this by zeroing out the swap target like we should when we fall
+ back to a blit. Also make the kernel error cases more friendly by
+ making them fall back to blits too.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 54ac4e2df987b72529a523ffbde357bec27e3658
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Mar 4 21:34:52 2010 +0000
+
+ Rate limit batch buffer error.
+
+ Once we hit this error it's unlikely that we're coming back - so don't
+ flood the logs with redundant information.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 066d9b64ee243e0d255d7e12c2134951eef4ade7
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Mar 4 20:50:20 2010 +0100
+
+ i915 XvMC: kill dead code
+
+ This kills one wip remnant from my i830_memory cleanup and the last
+ remainings of the subpicture support.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 7b7c724da97f358f5d2d4d4dae75cfc85bde2c62
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 10:29:09 2010 -0800
+
+ Remove remaining fbOffset setting.
+
+ In the long long ago, fbOffset was used for DGA. The server now has
+ only one reference to fbOffset, a leftover setting of it in fbdevhw.
+ We can safely ignore it now, which is good since we weren't updating
+ it in other places where the front buffer offset could change.
+
+commit 15026d64d3c0d8ad96e0a73fcae3103d1c41fd46
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 10:28:09 2010 -0800
+
+ Remove a piece of fbOffset cruft from non-DRM support.
+
+commit e8e615289213ba1704e402b923c51ce9d196f06f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 10:27:51 2010 -0800
+
+ Remove i830_allocate_2d_memory() now that it only called one function.
+
+commit e37b562083aa3293e0c009171724a3f122d8a32d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 10:23:12 2010 -0800
+
+ Init CRTC cursors with CRTC setup instead of i830_memory.
+
+commit a36bdaba6136054ae7c67943ca0215cfd177bc5b
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 09:47:10 2010 -0800
+
+ Remove intel_sync() at teardown time.
+
+ The kernel's still running after we're gone. This didn't matter.
+
+commit 4ada6d7a856a941b834871ff8a7c5505ff26ae23
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 09:32:42 2010 -0800
+
+ Remove 3D state clobber on EnterVT, and always clobber at batch start.
+
+ We know that it's clobbered at each batchbuffer, anyway. And even if
+ this server isn't running DRI2, it can still be clobbered at batch
+ start in the KMS world.
+
+commit d92d42303e5ca9f4208ed97823ad8f691121370f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 09:31:56 2010 -0800
+
+ Remove pre-2.6.29 error message handling since we require KMS.
+
+commit faecd155c49229499e29815eb6e79662ed33ddd5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 4 09:31:15 2010 -0800
+
+ Move batch and 965 render state setup/teardown to screen init/close.
+
+ Whether we're VT switched or not shouldn't impact rendering.
+
+commit 74e2b69a317cc728b00e675c18d2976987407aec
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Mar 4 09:51:03 2010 -0800
+
+ i915_hwmc: Remove dead code.
+
+ Daniel recently identified this code as unneeded (with an #if 0).
+ Here we take the next step and remove it entirely.
+
+commit 1cc35a8ba403ad95b67caff46b803db1edea5ad3
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Mar 4 09:46:33 2010 -0800
+
+ uxa: Fix type mismatch to avoid compiler warning.
+
+ The code was using uint32_t where an XID (currently an unsigned long)
+ was specified in the prototype. Use XID to avoid both the warning and
+ any potential problem.
+
+commit 1d6537ec57535183638c62e3099bc79786c682ca
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Mar 4 09:39:28 2010 -0800
+
+ i830_video: Remove unused variable.
+
+ Certainly just a little leftover from the recent rewrites.
+
+commit 57c0043b9a519da5c9af29019ef632716782bda2
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:33 2010 +0100
+
+ Xv: fixup relocation in i965_video.c
+
+ The previous code made no sense, (multiplying an offset by 4 is
+ meaningless). It could have onlt worked with the offset being
+ fortuitously 0.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit e606be463f6359fd017791a8d4d85059831a5d41
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:28 2010 +0100
+
+ i830_memory: rip out the remainings of the old allocator
+
+ Yeah!
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 371be65fb74789250dbb1e332e46416d931da321
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:27 2010 +0100
+
+ XvMC: kill the pinned batchbuffer in the ddx code
+
+ It's been unused for quite a while.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit d5a20c81ab76129a1e0bcefecd9c4a10b5040af4
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:26 2010 +0100
+
+ i915 XvMC: kill pinned surface buffer in the ddx code
+
+ Like with the per context stuff, also drop the now artificial limit
+ on surfaces. Again, with that gone, a lot of code can be deleted.
+
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit e6eb257ad32b393fb67c506943d8ece98b9a8061
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:25 2010 +0100
+
+ i915 XvMC: kill pinned per-context buffers in the ddx code
+
+ There's now not a reason anymore to limit the number of active contexts.
+ So kill this accounting, too.
+
+ With that all gone, per-context state in the ddx is nil, so rip out
+ all associated code.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 47ae1181f6cfd2ab64cd5c8535289fdaa2a9fd9c
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:24 2010 +0100
+
+ i915 XvMC: don't stall the cpu anymore
+
+ Proper bo management ensures that the cpu doesn't step on buffers
+ used by the gpu. Drop the now unnecessary synchronization.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 9bba123c5f0f081562306c152e70221fc5041a3b
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:23 2010 +0100
+
+ i915 XvMC: drop superflous MI_FLUSH
+
+ Cache coherency is now fully under the control of gem.
+
+ For lack of hw documentation, I had to find out the correct cache
+ placements by trial and error:
+
+ Backward and forward surfaces: I915_GEM_DOMAIN_RENDER
+ Correlation data: I915_GEM_DOMAIN_SAMPLER
+
+ Changing any of them leads to visual corruptions, so I think these
+ are the correct ones.
+
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit b11623f20e303ae1d90d4a6bf0d5d73970b4e9bf
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:22 2010 +0100
+
+ i915 XvMC: switch surfaces to drm_intel_bo
+
+ Now the last user of the fixed buffers provided by the ddx is gone!
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit b7f79bfd40db3ed17d7a79750d007b57d7ed157a
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:21 2010 +0100
+
+ i915 XvMC: switch corrdata buffer to drm_intel_bo
+
+ It works!
+
+ v2: Correlation data needs to be in the render cache!
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 62846d88d41f1bbbd16a6e700ca611656fa20f61
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:20 2010 +0100
+
+ i915 XvMC: switch msb to drm_intel_bo
+
+ Like for the static indirect state buffer.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit d27955c697e1768559957da8d61087644befd285
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:19 2010 +0100
+
+ i915 XvMC: switch sis to drm_intel_bo
+
+ I've decided to allocate a new buffer for every render command, to
+ prevent stalling for the gpu. libdrm bo reuse should take care of
+ not wasting memory in case the buffer is not busy.
+
+ Also always emit the full state, it's not worth it to complicate
+ the code over a few stores to wc memory.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 3203c66fbf04c55adba760e97c9fa1feb9e55f8d
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:18 2010 +0100
+
+ i915 XvMC: switch load_indirect_render_emit to batchbuffer macros
+
+ Like with one_time_state_emit, this preps for relocatable bo's.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit d30decae6a9db585f2d2589ae2c3d9e1f9acd33d
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:17 2010 +0100
+
+ i915 XvMC: switch psc to drm_intel_bo
+
+ Like with the sampler state buffer.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit b543c355f4fdcb64deb198765d9b8b86f7c234c2
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:16 2010 +0100
+
+ i915 XvMC: switch psp to drm_intel_bo
+
+ Like with the sampler state buffer.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 18c364084ce5495ffdfea38c17c1297d555c6c54
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:15 2010 +0100
+
+ i915 XvMC: switch ssb to drm_intel_bo
+
+ This also starts to kill the last remnants of the support for
+ physical addresses for the indirect state buffers. With gem this
+ would need kernel support (in the form of a new reloc type in
+ execbuf2).
+
+ This does not change the ABI between ddx and client libIntelXvMC.
+ I've decided to do this in one swoop when all the buffer rework is
+ done.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit fc9e44f01910eb9fd43def9b2ac531b0742d8b4e
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:14 2010 +0100
+
+ i915 XvMC: kill last_flip and last_render
+
+ Seems to be a remnant from i810 XvMC support. last_flip is always 0,
+ so serves no real purpose anymore. Kill it and the associated code.
+
+ With last_flip gone, last_render also lost its purpose. Kill it, too.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 04aa38a639fefcd00acb485f36ab18c2083ed1bb
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:13 2010 +0100
+
+ i915 XvMC: switch one_time_state_emit to batchbuffer macros
+
+ This is in preparation for real relocatable drm_bo's instead
+ of memory at a fixed address. By switching to the batchbuffer
+ macros (like i965 xvmc) we can use the nice OUT_RELOC macro.
+
+ Also align the code more with coding-style elsewhere, i.e. bitops
+ instead of bitfield structures. The bitfield structures are
+ quite a mess to work with the batchbuffer macros, so they were
+ getting in the way, anyway.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 24d787335a0c319b8d9243ea1f2726575cf73b2b
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:12 2010 +0100
+
+ XvMC: kill dead code in i915_xvmc.c
+
+ WIP code that hasn't changed for over two years is unlikely to
+ suddenly start progressing. Drop it. After all, git can easily
+ resurect it in cases it's needed.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 13266b152ae35ed54984844e3282cbdf20dc2e32
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 21:53:11 2010 +0100
+
+ XvMC: kill i830_memory in 965 class xvmc
+
+ Yes, this breaks binary compat of the struct passed around between
+ X ddx and the client libXvMC. But we always ship both, so they should
+ not get out of sync.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit d39d822cf887a861b37cee92c0b59533370ded2f
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:44 2010 +0100
+
+ i830_memory: hide as much of the old memory allocator as possible
+
+ The only user left of this stuff is the xvmc support.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 65267d4bfbf19942beab72858333c6ee3c719223
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:43 2010 +0100
+
+ i830_memory: switch frontbuffer to drm_intel_bo
+
+ Yet another user of i830_memory gone for good.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 06f147dc04629a8a1534703be570e7f25e41cdd9
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:42 2010 +0100
+
+ i830_memory: switch cursors to drm_intel_bo
+
+ Minus one user of i830_memory, some more to go.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 23d12e3b088f38d25e83d6501d553d98be442d49
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:41 2010 +0100
+
+ i830_memory: kill field "pitch"
+
+ Totally unused.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 2fb8feeb56fae364380ffd91749eeb69fb461cff
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:40 2010 +0100
+
+ i830_memory: rip out field "size"
+
+ Use the one in the drm bo instead.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 4d4d763b3d96e2cac99a0b7b03ad9bcaf4465c61
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:39 2010 +0100
+
+ i830_memory: kill field "tiling_mode"
+
+ Totally unused.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit d0800d098739d5e8ea94be9c5ed2f7a8a86c06dc
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:38 2010 +0100
+
+ i830_memory: no memory allocations without a bo!
+
+ Kill the corresponding !bo path in i830_free_memory.
+
+ Also kill another remnant of the pre-kms era in the same file, while I
+ was looking at the code.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 086c0e25cac1d3dd0a37def8b5cb82c1c6279edf
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:37 2010 +0100
+
+ i830_memory: rename i830_bind_all_memory to reflect code reality
+
+ It doesn't bind anything anymore, but does a few random things.
+ Give it a hopefully vague enough name to cover all cases ;)
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 2a989aa057cee74154419fd0a4911ba1e95582cf
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:36 2010 +0100
+
+ i830_memory: rip out the old video memory allocator
+
+ Besides the debug stuff the went away in the previous patch,
+ this stuff was totally unused ...
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit bf83b9a10254966cb73b24e08954154d4296dac3
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:35 2010 +0100
+
+ i830_memory: kill i830_desribe_allocations
+
+ Totally useless debug function from the pre-gem era. No point
+ to occasionally spam Xorg.log with a bogus "No memory allocations"
+ message.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit ff8a1e1cf728eeae848f6284bb4272193dfa918b
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:34 2010 +0100
+
+ i830_memory: rip out field "offset"
+
+ Use the one in the drm bo instead.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit e18ffceb142a9e18968900dd526a2d50fab72900
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Mar 2 09:22:32 2010 +0100
+
+ i830_memory: rip out field "end"
+
+ It's a left-over from the non-gem era and no longer used at all.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+
+commit 5018fd3097d77a5f31af4cb27e39daa37557b64e
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 1 22:57:40 2010 +0100
+
+ libIntelXvMC: kill ums leftovers
+
+ On i965 class hw, kernel_exec_fencing was 1 always, anyway. And on
+ i945, this patch kills a memory leak (dunno how, but it does).
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit cb06aa32d433f54affe87da2cf964f0308d3c258
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 1 22:57:39 2010 +0100
+
+ Xv: fixup XvMC on i915
+
+ I've accidentally broken i915 xvmc due to alignment constrains that
+ break my assumption that Y-pitch == UV-pitch*2. Fix this up by consistenly
+ using dstPitch2 for the Y-pitch. This also unifies the dst pitch
+ computation slightly, now that the i915 xvmc special case is gone.
+
+ Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=25949
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+ (Minor edit to support compilation without INTEL_XVMC defined by
+ Carl Worth <cworth@cworth.org>)
+
+commit 80f2a1f3b5e477a12899ea2251aebcfa62689943
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Mar 1 22:57:38 2010 +0100
+
+ Xv: fixup YUV plane offset for xvmc case
+
+ In my previous cleanup I've inadvertedly dropped the offset adjustment
+ code for the xvmc passthrough case. Fix this up.
+
+ Also reimplement that ugly hack I've accidently killed to keep i915 class
+ xvmc a tad bit longer on life support.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Tested-by: xunx.fang@intel.com
+
+commit a0ee9c3d9c72962c8d513ec8c43dd4a21e316947
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Feb 26 17:05:45 2010 -0800
+
+ Update version number to 2.10.901
+
+ In order to make a new snapshot.
+
+commit 63b8e890a134e5fc8242b655115491a3905ad0ff
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Feb 26 17:05:06 2010 -0800
+
+ NEWS: Add notes for the 2.10.901 snapshot.
+
+ From skimming the git lot since 2.10.0.
+
+commit d5409303128f5c9ba940ab564ff407a82eabc597
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Feb 26 16:12:50 2010 -0800
+
+ Remove dead code: fill_detailed_lvds_block
+
+ All callers of this function were recently removed, so it can join
+ them in the bit bucket.
+
+commit 7d0e6ff4dadcf243b1006ce6f85bd06c5f4e4908
+Author: Adam Jackson <ajax@redhat.com>
+Date: Wed Dec 2 12:05:52 2009 -0500
+
+ kms: Fix LVDS mode list construction.
+
+ Rather than mangle the EDID block and hope the server does the right
+ thing, just build a sensible mode list up front. Do this for LVDS where
+ there is no EDID or where it does not claim to be continuous-frequency
+ (since in the latter case, the server will add reasonable modes for us).
+
+ Signed-off-by: Adam Jackson <ajax@redhat.com>
+
+commit 1730af4437530ab7f6fe6ca74b16efb4a843b3ae
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Feb 25 17:12:49 2010 -0800
+
+ NEWS: Fix typo (we just released 2.10 *not* 1.10)
+
+ Sigh. Every version number that must be typed manually will eventually
+ be typed incorrectly at some release. (I think that's Owne Taylor's
+ Law)
+
+commit 529bf185fbcb9f7705b315a5106054ee25c1c77f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Feb 24 17:54:13 2010 -0800
+
+ In frame event handling, track drawable id instead of drawable pointer.
+
+ Windows aren't refcounted, so if the event came in after the window
+ was destroyed, we'd dereference garbage and segfault.
+
+commit 633c7033170b0e9b468dbee444b94922f6c30940
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Feb 24 17:40:30 2010 -0800
+
+ Fix up a bunch of inconsistent 4-space indentation in i830_dri.c
+
+commit 9291828a569a01ed4a6ef71f530b93f8a54c84aa
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jan 15 12:51:50 2010 -0800
+
+ Add new mobile Sandybridge PCI IDs.
+
+commit 3c71f98b9e5262675e61fafb317d0c35e62a873f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 22 16:55:02 2009 -0700
+
+ Add initial defines and probing for Sandybridge
+
+commit c2c670ef18755cf5c878edf8a6b7d1617f54fe73
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:54:48 2010 -0500
+
+ Remove more DRI1 dead code.
+
+commit b320449f75adf912e06832dacc0b861ce26353bd
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:44:11 2010 -0500
+
+ Remove dead i830_ring.h.
+
+commit 6d48b26098691d772a8de001c89a05b2442ef3b5
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:27:55 2010 -0500
+
+ Remove dead i830_display.h.
+
+commit 4126f73051aa73defcf342c81aa0fc9062f83f90
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:25:47 2010 -0500
+
+ Remove dead i830_bios.h.
+
+commit ca173c1eaf0e28f7fa138b1965f5e768b3add895
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:24:00 2010 -0500
+
+ Remove the last tool now that it's been moved to gpu_tools.
+
+commit 6da7cda5830817b0c977ed4767a9432748f12b09
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:21:47 2010 -0500
+
+ Remove swf_dumper. We have intel_mmio_read in gpu_tools to do this.
+
+commit 71c613c8475909e58fc491131bf9c10f4b047b16
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:20:33 2010 -0500
+
+ Remove bios_reader now that it's moved to gpu_tools.
+
+commit 7ada4eb3836f58a72f1c5b6b8139030fab9b7d63
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:18:23 2010 -0500
+
+ Remove intel_hotplug tool now that it won't work with KMS.
+
+ We'd want to put something like it in sysfs or something if we wanted
+ this tool to exist again.
+
+commit 3284aacfe095f6260eee5ed126685d0638626a29
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:14:12 2010 -0500
+
+ Remove dead i830_bios.c.
+
+ Things that used it are now either in the kernel or stashed off in
+ gpu_tools.
+
+commit 761d386a940081688b9b599c7a5b0270abfc5138
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:13:25 2010 -0500
+
+ Remove intel_gtt and intel_lid now that they're in gpu_tools.
+
+commit 6199af00cb47df6347ecd72ff7f6c86a564cec57
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:06:18 2010 -0500
+
+ Remove xprintf.c from the old "I can't believe it's not an X Server" tools.
+
+commit cba8e3136a100ba274f48c78df5b23fa8960fa16
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:04:51 2010 -0500
+
+ Remove intel_statuspage, now that we have /debug/dri/0/i915_gem_hws
+
+commit 40f5f72e30003993bfe298cd634d4f3f56148d4a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:01:30 2010 -0500
+
+ Remove dead main.c from reg_dumper/
+
+commit 0c5e4a65f5d0f8d41c6bcb4c6978054f40064494
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 12:00:56 2010 -0500
+
+ Delete the audio dumping tool now that it lives in gpu_tools.
+
+commit 6bdab841766c8d9febaa23cb01a7bbc9edfae471
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 11:21:40 2010 -0500
+
+ uxa: Skip adjusting mask coordinates when no mask is present.
+
+ Quiets clang warnings about garbage variable usage.
+
+commit a86869e6c3131b83a2ad529bc313270a9f45f5bd
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 08:15:30 2010 -0800
+
+ Fix an unused variable warning for !INTEL_XVMC.
+
+commit ec5deb2bcbf828c3c47488eb77461c26cab38ed6
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 08:11:00 2010 -0800
+
+ Remove dead assignments noticed by clang.
+
+commit a4180eabfa00c256494ed09aa336a17605c49a8a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 08:10:17 2010 -0800
+
+ Remove stale junk in VideoRam setup, noticed by clang.
+
+commit 03657d4a698e0a25ab3863a15ad4c8b9d64dbb9a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 19 08:03:44 2010 -0800
+
+ Remove dead UMS CRTC resize code.
+
+commit 1c3aaad09d6ef207fba748ad4ef4575a26ab2e5c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Feb 17 17:48:32 2010 +0000
+
+ dri2: Silence the compiler for an unused function with proto < 4
+
+ Move the unused function into the #if DRI2INFOREC_VERSION >= 4 block.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 00e7312dc45e54cd4547a943897a524639cb0b38
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Feb 11 09:46:12 2010 -0800
+
+ DRI2: handle full height blits without tearing in CopyRegion
+
+ On 965 and up, if we detect a full height blit, we should just wait for
+ vblank, rather than try to do a scanline wait for the whole display.
+
+ On pre-965, doing a scanline wait followed by a blit works, but in the
+ full height case we need to give the blitter time to start up, so we
+ wait until the bottom line of the blit minus 2 padding scanlines to
+ accommodate.
+
+ Fixes FDO bug #22475.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit f0d760bfd71e2b2b40d2b250cd84b4626492ba47
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Feb 10 11:24:46 2010 -0800
+
+ Disable bo reuse on shadow framebuffer
+
+ This keeps us from trying to set tiling on it while pinned, which also
+ keeps us from trying to unpin it in the kernel, causing an error.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 41784e15d39c29af5a87fe8d0982bd1b0be3562d
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Fri Jan 29 15:54:16 2010 -0500
+
+ config: remove dead LINUXDOC macro usage
+
+ This module does not generate LINUXDOC documentation.
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 6610bcbac51c9ac970128012f0d4566d8cfba000
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Feb 5 17:18:50 2010 -0800
+
+ DRI2: only use version 4 APIs if kernel support exists
+
+ Check for page flipping support before enabling flip and vblank event
+ support needed for the new DRI2 APIs.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 1a76fa5574e8e8f88ac3518a4e4494e1af301dc1
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Jan 29 23:28:46 2010 -0800
+
+ Initialize DRI2 info rec version 4 list of driver names
+
+ With DRI2 supporting multiple subsystems, the video driver must
+ initialize the list of driver names instead of just passing the single
+ driver name used by Mesa. Without this, the X server will fail to
+ initialize DRI2 as the numDrivers field in this structure will be
+ uninitialized.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 918151a7955c26174db80b775205f6ffb4f44ab6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Jan 27 20:33:08 2010 +0000
+
+ uxa: Fix compatible_formats() for OVER
+
+ In separating the boolean logic out into a separate function, dc6522dd,
+ I reversed the sense of one particular test:
+
+ src->format == dst->format
+
+ The OVER optimisation is only valid if the src and dst formats match,
+ but not always.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 197cb08a2d54cabbfe97454d7db85cfe1f5f27ba
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jan 25 15:15:04 2010 +0000
+
+ Extract pixel value for all formats to avoid hitting fallbacks.
+
+ On failing to extract the pixel value for an alpha-only solid we
+ actually triggered a fallback. Since this path is commonly hitting
+ whilst fading in images, for example cairo_paint_with_alpha(), the
+ fallback was detected during the Moblin boot sequence where it was
+ adding a second to the overall boot time.
+
+ See
+ fallback intel: Moblin startup is hitting a composite fallback, costing
+ a ton of performance
+ https://bugs.freedesktop.org/show_bug.cgi?id=26189
+
+ Based on the initial patch by Arjan van de Van.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5f93d019dc6311dd16b6792ffb60dbfc45ef3d08
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Jan 25 15:47:11 2010 +0000
+
+ uxa: Adjust uxa_get_color_for_pixmap to match prototype
+
+ The prototype says this function returns a Bool and not just an int, so
+ be pedantic and return TRUE/FALSE.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit dc6522dd491831f3843606e3ed57cc01fe2c804c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jan 24 09:37:23 2010 +0000
+
+ uxa: Protect against a potential NULL src->Drawable reference
+
+ One of the convoluted if branches dereferenced Drawable when it is
+ potentially NULL. Avoid this by explicitly handling the NULL Drawable
+ cases earlier, and enabling solid fills for solid sources.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 31bbd7f919f4f1f545dd49861c15e60561c075cb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jan 24 09:04:16 2010 +0000
+
+ uxa/uxa-render: Always remove useless repeats during composite.
+
+ I added a jump if there was no src or mask Drawable, but we do actually
+ need to check for useless src repeats even if we have a source-only
+ mask.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 326fe00df4160fbc3513ddbedfec90bdb2d7101b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Jan 24 09:02:05 2010 +0000
+
+ uxa: Increase amount of composite fallback verbage
+
+ The fallback log for http://bugs.freedesktop.org/show_bug.cgi?id=26189
+ does not actually state the reason why we actually fallback. This is
+ possibly because we need to fallback for reasons other than the
+ operation cannot be performed in hardware -- such as using an alpha map
+ or the screen is swapped out, so add this information to the fallback
+ log.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 93cd943d41c646c794b8cb5a960d8f0805e15395
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jan 15 12:53:47 2010 -0800
+
+ intel: Use the compositing-aware colorkey filler instead of homebrew fail.
+
+ Of course, it's still fail since you can't correctly composite
+ colorkey overlay, but at least this doesn't spam colorkey to the root
+ window.
+
+ Tested-by: Daniel Vetter <daniel@ffwll.ch>
+
+commit 6e61de896b42cffe1af6b0384cb69265d3d121a1
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Fri Jan 15 15:51:28 2010 -0800
+
+ Update Sun license notices to current X.Org standard form
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
+
+commit 96f45c66eed2631eba98ae416c3afdf540fa5c34
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Jan 13 13:20:43 2010 -0500
+
+ DRI2: if the swap condition is satisfied, complete it immediately
+
+ If we get to the point where we check the divisor/remainder equation and
+ it's satisfied, we should complete the swap immediately.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 51c75906329a4727e37c8d1f64f257ea9602caa2
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri May 1 14:52:26 2009 -0700
+
+ DRI2: support new DRI2 APIs
+
+ The new interfaces allow for improved buffer swap, and support for the
+ SGI_swap_control, SGI_video_sync and OML_sync_control GLX extensions.
+
+ The Intel implementation allows page flipping to occur for swaps that
+ are full screen and not rotated.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 4902f546be19e3d5bb47f6c75e2199dc4856c0f4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Dec 13 10:44:12 2009 +0000
+
+ i965: Ensure that URB_FENCE is aligned to 64-bytes
+
+ The PRM (Vol 1, p32) specifies that the URB_FENCE command must not cross
+ a cache-line boundary (64-bytes) in order to workaround a silicon issue.
+ Ensure that it does not by inserting an alignment point before the atomic
+ section.
+
+ This is a slightly too large hammer, but the easiest method to work with
+ the current BEGIN_BATCH/ADVANCE_BATCH protections.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 83626aba357ffb4dd7931daaf163c1dd1d08f9d3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 21:39:41 2009 +0000
+
+ uxa-glyphs: Enable TILING_X on glyph caches.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 50e07da8094c8c8c593b6eb8c41fc42444851d04
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Dec 13 09:35:36 2009 +0000
+
+ i830: Do not use vtSema when chosing mapping type.
+
+ The mapping type to use is determined by the tiling of the underlying
+ object, not by whether or not not we control the vt. This was a
+ left-over wart that was intended to mean that we had GEM and so could
+ use GTT mappings.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7a2b7cfab5cdef277f0feb838683422d9fcb0db3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Dec 13 09:33:45 2009 +0000
+
+ Consolidate determining maximum sizes for use with GEM
+
+ Add a small wrapper function so that the callsites need only call the
+ single function when checking the available aperture size for
+ determining the maximum viable size for operations. This will allow us
+ to easily extend this set in the future by only needing to adding the
+ check to a single location.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 229d23fb18d696fb7ad476ce335be14ec9811bd3
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 1 14:32:34 2009 +0100
+
+ Xv: don't enable XVMC port on unsupported configs
+
+ This just makes it _really_ clear, what's supported. No other changes.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit ce7ba18f577cc9aedddaff303dbc9662a276b4cf
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 1 14:32:33 2009 +0100
+
+ Xv: consolidate xmvc passthrough handling
+
+ It's now all in I830PutImageTextured. Also kill some leftovers
+ from XVMC-on-overlay support and ums-XVMC-on-i915 support. Plus
+ a small comment as a reminder for where to add i915 xvmc support
+ back in.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 1ac7c94083a3266e2d5dd932709118436074dd00
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 1 14:32:32 2009 +0100
+
+ Xv: hide ugly semantics in i830_clip_video_helper
+
+ I'm still curious as to why fixed-point semantics are necessary
+ for this generic XV helper function that's been causing all this.
+ Can modern X really run on hw without floating-point support?
+
+ Anyway, the ugliness is now all nicely under the carpet (in
+ i830_clip_video_helper).
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 31f13fa8a0d4cd28067de37d0d31d23e8200d0ff
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 1 14:32:31 2009 +0100
+
+ Xv: move users of x1, x2, y1, y2 to PutImage
+
+ After this there are no other external users of these strange variables,
+ so we can nicely hide them somewhere in the next changeset.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit ce6526b9b4df304ccd83a0a02a95621300dbaed3
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 1 14:32:30 2009 +0100
+
+ Xv: kill unnecessary parameters for hw PutImage functions
+
+ This is the first part of my small crusade to rip out x1, x2, y1, y2
+ from I830PutImage*. These variables have strange semantics (they
+ change from simple integers to fixed-point values somewhere in
+ the middle) and don't really seem to be what we actually need.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit cf74caaa91667457bba3583b216dfc157d09f39e
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 1 14:32:29 2009 +0100
+
+ Xv: kill an unnecessary if
+
+ We always pass a non-null pointer for crtc_ret, no point to check
+ for this.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit d8353c737b5b8077f499461b1e6c78f09544d226
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 1 14:32:28 2009 +0100
+
+ Xv: split up I830PutImage into textured and !textured case
+
+ This wasn't making much sense anymore, and further cleanups will
+ make this even more apparent. This change just makes two copies of
+ I830PutImage and kills the not-applicable if-clauses in both
+ versions.
+
+ There is one small functional change in here: The textured video
+ path doesn't munch around with adaptor_priv->videoStatus anymore,
+ which is only used by the overlay. This could prevent the overlay
+ from being switched off if someone would use textured video at the
+ same time.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 091035146463bf1aa6674bff6947d04fc620c18f
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jan 4 14:20:11 2010 -0800
+
+ configure.ac: Bump version to 2.10.0.
+
+ In preparation for the 2.10.0 release.
+
+commit 01f7d0307b3f5f085e383ff85026757de9cda359
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jan 4 14:19:17 2010 -0800
+
+ NEWS: Add final release notes for the 2.10.0 release.
+
+ Mentioning that it's functionally identical to our most recent release
+ candidate.
+
+commit e966bca3a9143cff37beb54359bea13c9f693b44
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Dec 29 21:49:49 2009 -0800
+
+ Take note for Pineview support in README and manpage
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 6137791e9f1a4778afabbbc06de3da68648ae258
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jan 4 14:08:24 2010 -0800
+
+ man page: Remove section describing BACKLIGHT_CONTROL property.
+
+ This apparently no longer exists in a KMS world, so remove it from the
+ documentation.
+
+commit 7f36a439249cc2101d8985de5e95af652e5b984b
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jan 4 14:07:24 2010 -0800
+
+ man page: Rename PANEL_FITTING to "scaling mode".
+
+ The old UMS name was PANEL_FITTING while the new KMS name is "scaling mode".
+
+ Fixes bug #25606.
+
+commit a6fb71e6e26fb31f4cd10fad2d3a87d9114a649a
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jan 4 14:05:27 2010 -0800
+
+ man page: Add additional indentation for some output configuration options.
+
+ The BACKLIGHT_CONTROL and PANEL_FITTING options appear in a list, and
+ then each contain a sub-list of sub-options. Use indentation to make
+ this structure more apparent to the reader.
+
+commit 25a6c8dfae240143309b14cc32ebac6008c3a378
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Tue Dec 15 21:46:48 2009 -0500
+
+ configure.ac: use backticks rather than $() for cmd subs
+
+ Use "$PKG_CONFIG" rather than hard coded "pkg-config"
+
+ Acked-by: Dan Nicholson <dbn.lists@gmail.com>
+ Acked-by: Daniel Stone <daniel@fooishbar.org>
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 2c142e421e859406b5aff16ba18624150269fc06
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Dec 10 15:25:44 2009 -0800
+
+ Update version to 2.9.99.902.
+
+ For the second release-candidate snapshot in preparation for 2.10.
+
+commit 8ecf70ea553083cbc26928dc3973c8f6f8b3d9d0
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Dec 10 15:17:57 2009 -0800
+
+ NEWS: Add notes for 2.9.99.902 (and preliminary notes for 2.10)
+
+ This comes from my cursory glance over the commit log from 2.9.1
+ to master.
+
+commit 88b2209a7526a7c7f3b3a2d491d48bd0d5d56e04
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Dec 10 14:52:46 2009 -0800
+
+ Document the DebugFlushBatches, DebugFlushCaches, and DebugWait options.
+
+ These were added in 3c0815abf28744e215bea286e71d935cd486955a . The
+ documentation added here comes straight from that commit message.
+
+commit 8d6faf7dc546bda64e11bf6dea7f3c997f07f887
+Author: Tobias Doerffel <tobias.doerffel@gmail.com>
+Date: Wed Dec 9 09:57:20 2009 +0100
+
+ Fix compiler warning in i830_copy_video_data() if XvMC is disabled
+
+ The variable "intel" is unused when building i830_video.c without XvMC
+ support which results in a compiler warning:
+
+ i830_video.c: In function 'i830_copy_video_data':
+ i830_video.c:1443: warning: unused variable `intel'
+
+ Trivial fix via #ifdef.
+
+commit bd81734465912d79d6320a6fb021ce43d258b906
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Dec 8 15:27:41 2009 +0100
+
+ Xv: enable drmmode overlay
+
+ Now that libdrm 2.4.16 is released (and already required) we can
+ unconditionally enable this.
+
+ Please add something like this to the release-notes/NEWS file:
+
+ * Overlay support for kernel modesetting. This needs at least kernel
+ v2.6.33 to work. A backport to 2.6.32 is available at:
+
+ http://gitorious.org/daniel-s-linux-stuff/linux-kernel/commits/intel-kms-overlay-for-2.6.32
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 37f631d669c165c4fb56ccd7a6fc0a432f453b52
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Thu Dec 10 08:50:16 2009 +0000
+
+ Revert "uxa-glyphs: Enable TILING_X on glyph caches."
+
+ This reverts commit 3f11bbec420080151406c203af292e55177e77d1.
+
+ For unknown reasons, enabling tiling for the glyph cache is causing
+ glyph corruption both across suspend and resume and VT switching, on a
+ wide range of chipsets (reports include both i8xx and gm45)
+
+ This strongly suggests that we are handling tiling, or updates to tiled
+ buffers, incorrectly across i915_gem_idle(). However, until we can find
+ the root cause, we want to fix this regression before the next stable
+ release, so simply revert this patch. :(
+
+ Fixes:
+ [Bug 25406] fonts garbled after resuming from suspend since 6729b508
+ http://bugs.freedesktop.org/show_bug.cgi?id=25406
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 093bb9ebe69760975a3fcf2322db950312e6c2d7
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 8 23:45:28 2009 +0000
+
+ i965: Only use the affine kernels if both src and mask are affine
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0cf04ea4d736f7d7848f33b772d88a0f1b6678b1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 8 23:44:45 2009 +0000
+
+ i965: Set src_filter before testing.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 417ad2712edcbca635eb5eeff0d11cdb16c069ed
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 8 23:43:57 2009 +0000
+
+ Assert that we only call OUT_BATCH() inside a BATCH
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 47416b1eea09b238a997636d35998d71e0d18161
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 8 13:47:07 2009 +0000
+
+ i965: Maximum number of vertices per composite is 24, not 18
+
+ Beware the potential buffer overflow.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c1afc831c8fe4cbececee7dfa23506a6746c2425
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 7 21:27:56 2009 +0000
+
+ uxa: Cache solid fills.
+
+ Maintain a small cache of pixmaps to hold SolidFill pictures. Currently
+ we create a pixmap the size of the damaged region and fill that using
+ pixman before downloading it to the GPU and compositing. Needless to say
+ this is extremely expensive compared to simply emitting the solid
+ colour. To mitigate this cost, we maintain a small cache of 1x1R
+ pictures which is recognised by the driver as being a solid, but at the
+ very least is maintained as a GPU ready pixmap.
+
+ This gives a good boost to cairo-xcb (which uses solid fills) on a gm45:
+
+ Before:
+ gnome-terminal-vim: 41.9s
+ After:
+ gnome-terminal-vim: 31.7s
+
+ Compare with using a cache of 1x1R pixmaps in cairo-xcb:
+ gnome-terminal-vim: 31.6s
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit cd475bad23c02130d11c49882c11261c9f0d4ef1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Dec 7 11:09:14 2009 +0000
+
+ batch: Ensure we send a MI_FLUSH in the block handler for TFP
+
+ This should restore the previous level of synchronisation between
+ textures and pixmaps, but *does not* guarantee that a texture will be
+ flushed before use. tfp should be fixed so that the ddx can submit the
+ batch if required to flush the pixmap.
+
+ A side-effect of this patch is to rename intel_batch_flush() to
+ intel_batch_submit() to reduce the confusion of executing a batch buffer
+ with that of emitting a MI_FLUSH.
+
+ Should fix the remaining rendering corruption involving tfp [inc compiz]:
+
+ Bug 25431 [i915 bisected] piglit/texturing_tfp regressed
+ http://bugs.freedesktop.org/show_bug.cgi?id=25431
+
+ Bug 25481 Wrong cursor format and cursor blink rate with compiz enabled
+ http://bugs.freedesktop.org/show_bug.cgi?id=25481
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 415aab474edd1425034981306718afd8506445f1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Dec 4 09:02:36 2009 +0000
+
+ intel: And remember to flush the batch...
+
+ In commit 98e11210
+
+ Remove flush parameter from intel_batch_flush()
+
+ Maxi spotted that I had broken screen updating. It appears in my haste
+ to eliminate the extra parameter I removed a call to intel_batch_flush()
+ when throttling, i.e. when pushing the updates to the screen before
+ idling.
+
+ Should fix:
+
+ Bug 25409 [bisected] rendering corruption since a938673e
+ https://bugs.freedesktop.org/show_bug.cgi?id=25409
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8438372dcc9d15c7b708332cfcb3a1c16a2c5cf2
+Author: Kristian Høgsberg <krh@bitplanet.net>
+Date: Thu Dec 3 14:39:43 2009 -0500
+
+ Require libdrm 2.4.16
+
+ Needed for drmGetDeviceNameFromFd().
+
+commit c439207ec0cc16d7d9f523598fcdebf7cec893e2
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Dec 2 14:43:17 2009 -0800
+
+ Update man page to reflect currently available options
+
+ Many have been removed or are obsolete now that UMS is gone. And some
+ are only available on i810/i815 or i830+, so move them to the
+ appropriate section.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit a938673ee84d51ef655c37dfa7bbc5c35334cd28
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 20:51:53 2009 +0000
+
+ batch: Downgrade batch submission from a FatalError.
+
+ If we wedge the GPU then we will return -EIO for the current batch and
+ then attempt to reset the GPU. Meanwhile the X server detects the error,
+ throws a FatalError and to all intents and purposes appears to crash to
+ the user - whereas before it often just appeared to momentarily freeze.
+ Of course, on older hardware the server remains frozen until we can find
+ a way to reset those GPUs at runtime.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 98e11210367c950e3f932419d2a4722cf971885d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 20:48:37 2009 +0000
+
+ Remove flush parameter from intel_batch_flush()
+
+ There is only a single caller that wishes to forcibly append a flush
+ into the batch: intel_sync(). So move the logic there.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 57336c26f1fb90d43851ddcf78539585b67d86d9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 20:42:41 2009 +0000
+
+ Rename I830Sync() to intel_sync()
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 370157f4932cf9067ba81c8bd5a311aff610882b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 20:28:49 2009 +0000
+
+ batch: Avoid flushing a NULL batch
+
+ During shutdown from a FatalError during batchbuffer submission, it is
+ possible for the batch_ptr to be NULL, so we must be careful not to
+ append a flush on this error path.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ad68881b670aabf8dbfd3b954e8796f91260579d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 14:14:39 2009 +0000
+
+ uxa_check_composite: Minor whitespace.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 49d2ccab2a82083110fe796636f3f91ba8c31237
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 14:13:43 2009 +0000
+
+ uxa_prepare_access() don't force a flush.
+
+ Only the kernel knows whether the mapping requires a flush, so do not
+ preempt it.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b68d3646f1fdfe012c16741958c7a62136a9b5aa
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 14:12:19 2009 +0000
+
+ Review use of errno after libdrm call
+
+ Since drm may not actually set the appropriate errno after a failure, we
+ must use the return code instead when determining the cause of failure.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0ff4d42a42b9e537b083343ee7dcc41cb41ae7cf
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Dec 2 12:12:07 2009 +0000
+
+ uxa: Review uxa_prepare_access() to remove potential nesting
+
+ Around a call to uxa_put_image() it is possible to mix both accelerated
+ and fallback paths, with the fallback code making the presumed
+ optimisation of only trying to call uxa_prepare_access() once. This
+ fails if the accelerated path also uses prepare/finish access on the
+ same drawable and then later fallback to the fallback path. This can
+ happen currently if an error is reported whilst attempting to accelerate
+ PutImage.
+
+ #0 memcpy () at ../sysdeps/x86_64/memcpy.S:162
+ #1 0x00007ffff43ce4bd in fbBlt (srcLine=<value optimized out>, srcStride=40, srcX=<value optimized out>, dstLine=0xffffffffffffffff, dstStride=64, dstX=0, width=<value optimized out>, height=8, alu=3, pm=4294967295, bpp=8, reverse=0, upsidedown=0) at fbblt.c:93
+ #2 0x00007ffff43ce740 in fbBltStip (src=0xffffffffffffffff, srcStride=156555204, srcX=34, dst=0xfffffffc, dstStride=64, dstX=40, width=304, height=8, alu=3, pm=4294967295, bpp=8) at fbblt.c:944
+ #3 0x00007ffff4c32c53 in uxa_do_put_image (pDrawable=0x246aa410, pGC=0x2c0a4f0, depth=8, x=0, y=0, w=38, h=8, leftPad=0, format=2, bits=0x954d7c4 "") at uxa-accel.c:196 #4 uxa_do_shm_put_image (pDrawable=0x246aa410, pGC=0x2c0a4f0, depth=8, x=0, y=0, w=38, h=8, leftPad=0, format=2, bits=0x954d7c4 "") at uxa-accel.c:223
+ #5 uxa_put_image (pDrawable=0x246aa410, pGC=0x2c0a4f0, depth=8, x=0, y=0, w=38, h=8, leftPad=0, format=2, bits=0x954d7c4 "") at uxa-accel.c:289
+ #6 0x00000000004d574f in damagePutImage (pDrawable=0x246aa410, pGC=0x2c0a4f0, depth=8, x=0, y=0, w=38, h=8, leftPad=0, format=2, pImage=0x954d7c4 "") at damage.c:905
+ #7 0x00000000004287db in ProcPutImage (client=0x47ca72d0) at dispatch.c:2073
+ #8 0x000000000042bd94 in Dispatch () at dispatch.c:445
+ #9 0x000000000042513a in main (argc=4, argv=0x7fffffffe2a8, envp=<value optimized out>) at main.c:285
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 6be26cae8379f973d9ca27e0d5371d16618e4f7b
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 1 16:13:25 2009 +0000
+
+ i830: Simplify prepare_access / finish_access
+
+ Reduce the 3 conditions into the 2 distinct cases. This has the
+ secondary benefit of also distinguishing between the reported errors.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 637f003b047e426901cab6b1fe3a0924bcb9a38a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Dec 1 13:20:20 2009 +0000
+
+ uxa: Don't treat prepare_access as a flush synchronisation point.
+
+ The kernel will only emit a flush iff the buffer is currently owned by
+ the GPU. Instead of presuming that the kernel must emit a flush, it is
+ safer to assume that it does not and so cannot mapping the buffer on to
+ the CPU as a synchronisation point. The most obvious counter-example is
+ when we map the same buffer twice without using it in a batch.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit cd5a9568ce0a541f030c27cdae529fe18e5f0437
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Nov 30 20:17:04 2009 -0800
+
+ Add i830_bios.h and i830_display.h to EXTRA_DIST.
+
+ These files have been dropped from the generated tar file since the
+ removal of UMS support. However, the bios_reader code still includes
+ these, so "make distcheck" fails unless these are distributed.
+
+ There's probably a cleaner fix possible, but this at least fixes the
+ build so that the snapshot can be pushed out.
+
+commit 5bdac72a5c3f68ab6d9f7f2f1dfa6e5b78f04e57
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Nov 30 20:16:19 2009 -0800
+
+ NEWS: Note that the driver now has a hard dependency on KMS.
+
+ Since the UMS code has all been removed.
+
+commit 813a910d7e4cc1c3deec0dcb1b536f8af337993a
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Nov 30 19:48:05 2009 -0800
+
+ configure.ac: Bump version to 2.9.99.901.
+
+ In preparation for a new snapshot.
+
+commit b62c72913a85895a60268a49eed1c136f63f160d
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Nov 30 19:46:59 2009 -0800
+
+ NEWS: Add generic notes for the 2.9.99.901 snapshot.
+
+ We plan to collect real release notes before the 2.10.0 release.
+
+commit 00aa4f7a45a318af5b651f9f3928e9da4443233a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 20:50:31 2009 +0000
+
+ uxa: Limit maximum size of tiled objects
+
+ On older chipsets (i.e. pre-i965) tiling is very restrictive and imposes
+ severe size and alignment constraints. Combine that with relatively
+ small apertures and it is very easy to create a batch buffer that
+ cannot be mapped into the aperture (but would otherwise fit based purely
+ on total object size). To prevent this we need to not use tiling for large
+ buffers (the very same buffers where tiling would be of most benefit!).
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8dd1c9eca02fb8da0c51f6fa4a38eb5e5ff41855
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Sun Nov 22 17:13:02 2009 -0500
+
+ video-intel: remove i2c_vid.h from src/Makefile.am
+
+ make dist failed due to missing i2c_vid.h
+ Commit b9b159c49854d8d9d2207946bb583537bb0d48d6 Remove UMS support.
+ The above commit did not remove this header file from the makefile.
+
+ Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
+
+commit 6729b508c44bfca0b0dbef238a8732adbed6d4c9
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 16:52:10 2009 +0000
+
+ uxa: Initialise lists for private pixmap structure.
+
+ When updating a buffer object for the framebuffer, we may need to
+ allocate a fresh pixmap private structure, for example if the pixmap is
+ replaced due to resize. When doing so it is then imperative to
+ initialise the circularly linked lists correctly.
+
+ Should fix the fault:
+ #0 i830_set_pixmap_bo (pixmap=0x24ab380, bo=0x24ab780) at i830_uxa.c:524
+ #1 0x00007f8615c629fd in drmmode_xf86crtc_resize (scrn=0x247a320, width=1280, height=800) at drmmode_display.c:1345
+ #2 0x000000000051246c in xf86RandR12ScreenSetSize (pScreen=0x24824f0, width=<value optimized out>, height=<value optimized
+ out>, mmWidth=<value optimized out>, mmHeight=<value optimized out>) at xf86RandR12.c:709
+ #3 0x0000000000512aa8 in xf86RandR12CreateScreenResources (pScreen=<value optimized out>) at xf86RandR12.c:839
+ #4 0x0000000000514ec0 in xf86CrtcCreateScreenResources (screen=0x24824f0) at xf86Crtc.c:727
+ #5 0x0000000000424fb3 in main (argc=<value optimized out>, argv=<value optimized out>, envp=<value optimized out>) at main.c:215
+ as reported by 'buscher'.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 85fe41126e83b35954dc2066eb103e0555e207a4
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 15:57:42 2009 +0000
+
+ uxa: Remove cache flush for copy
+
+ As the copy uses the 2D blitter, it uses the render cache so the source
+ should not require flushing if it has previously been used as a
+ destination.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2d434eed09936328a52cb942450a95aedc3eac63
+Author: Kristian Høgsberg <krh@bitplanet.net>
+Date: Mon Nov 30 10:27:42 2009 -0500
+
+ Use new drmGetDeviceNameFromFd() for mapping to drm device name
+
+ Should have been in libdrm to begin with.
+
+commit cfcabc45140d19bfbfa4737c0a11cdbb042d11eb
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 13:58:30 2009 +0000
+
+ i915: Disable centre-point sampling.
+
+ I still have no idea how this is triggering failures, but it is. So
+ revert until the problem is solved.
+
+ Should fix once again:
+
+ Bug 23803 [bisected i915] gnome characters disappear
+ http://bugs.freedesktop.org/show_bug.cgi?id=23803
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8f8b6bd03d275379918777eaf7f63c0157b7ed9d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 14:03:40 2009 +0000
+
+ i915: Whitespace
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 47916ea9d351f0ce6dc34713d6c164b0032f9830
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 13:58:06 2009 +0000
+
+ debug: Enable dumping of batchbuffer [compile-time only]
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit b118a52cd1a006321571967bd5f6c2a9e674de3a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 11:03:32 2009 +0000
+
+ i915: Remove routing of alpha channel to green.
+
+ This modification is redundant since the routing is done in the blend
+ unit anyway.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5e04ded2bce4c135b57d391f5f4e24e030103e61
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 10:57:04 2009 +0000
+
+ i915: Fix missing texture offset for mask.
+
+ In commit e581ceb, I modified the shader generation to accommodate mixed
+ textures and solids but missed applying the new computed sampler for the
+ mask.
+
+ References:
+
+ Bug 23803 [bisected i915] gnome characters disappear
+ http://bugs.freedesktop.org/show_bug.cgi?id=23803
+
+ Bug 25031 rendering and color corruption since 14109abf
+ http://bugs.freedesktop.org/show_bug.cgi?id=25031
+
+ Bug 25047 [945GM bisected] rendercheck/repeat/triangles regressed
+ http://bugs.freedesktop.org/show_bug.cgi?id=25047
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a8ea20100de5be45699e71eb6ba67bef546ad0cd
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 10:13:18 2009 +0000
+
+ debug: Don't always flush the batch when emitting a debugging flush
+
+ I incorrectly changed the logic in 285f286 and caused the batch to
+ always be flushed when debugging, instead of merely inserting a MI_FLUSH
+ between operations.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit c10850c63f9f88fbf08135bc4dcef1e5a2c71ee6
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Nov 30 09:07:57 2009 +0000
+
+ overlay: Fix build after 646b4a9483
+
+ The compile cleanup was not without fault... Apparently I don't have
+ XVMC enabled anymore and so missed that this variable is actually used.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3f11bbec420080151406c203af292e55177e77d1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 21:39:41 2009 +0000
+
+ uxa-glyphs: Enable TILING_X on glyph caches.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 19d8c0cf50e98909c533ebfce3a0dd3f72b755c1
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 21:16:49 2009 +0000
+
+ uxa: PutImage acceleration
+
+ Avoid waiting on dirty buffer object by streaming the upload to a fresh,
+ non-GPU hot buffer and blitting to the destination.
+
+ This should help to redress the regression reported in bug 18075:
+
+ [UXA] XPutImage performance regression
+ https://bugs.freedesktop.org/show_bug.cgi?id=18075
+
+ Using the particular synthetic benchmark in question on a g45:
+
+ Before:
+ 9542.910448 Ops/s; put composition (!); 15x15
+ 5623.271889 Ops/s; put composition (!); 75x75
+ 1685.520362 Ops/s; put composition (!); 250x250
+
+ After:
+ 40173.865300 Ops/s; put composition (!); 15x15
+ 28670.280612 Ops/s; put composition (!); 75x75
+ 4794.368601 Ops/s; put composition (!); 250x250
+
+ which while not stellar performance is at least an improvement. As
+ anticipated this has little impact on the non-fallback RENDER paths, for
+ instance the current cairo-xlib backend is unaffected by this change.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit f7540f06090753cba1190aa9e8cdea05a9512077
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 21:12:07 2009 +0000
+
+ Only flush batch during prepare access if it may modify the pixmap.
+
+ As we track when a pixmap is active inside a batch buffer, we can avoid
+ unnecessary flushes of the batch when mapping a pixmap back to the CPU.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9a2c18fb92659d57741bfdcacbe4f69aab361532
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 21:07:45 2009 +0000
+
+ batch: Emit a 'pipelined' flush when using a dirty source.
+
+ Ensure that the render caches and texture caches are appropriately
+ flushed when switching a pixmap from a target to a source.
+
+ This should fix bug 24315,
+ [855GM] Rendering corruption in text (usually)
+ https://bugs.freedesktop.org/show_bug.cgi?id=24315
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 285f286597df5af13ac3f3d366f2fc9d0468dafa
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 22:42:03 2009 +0000
+
+ batch: Track pixmap domains.
+
+ In order to detect when we require cache flushes we need to track which
+ domains the pixmap currently belongs to. So to do so we create a device
+ private structure to hold the extra information and hook it up.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2c3aee2b570dadd9270a08d8ff675d07ac405e33
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 20:53:35 2009 +0000
+
+ uxa-glyphs: Stream uploads via temporary bo
+
+ Avoid mapping the glyph cache back to the cpu by allocating temporary
+ buffer objects to store the glyph pixmap and blit to the cache.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 646b4a9483c01509a7324cc05eaadb72bc940c6d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Nov 29 10:53:36 2009 +0000
+
+ Cleanup a few compiler warnings.
+
+ Simple warnings for unused variables and C99-style declarations.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 917f9bb2435ba36bb99ef4d4f7b380d7f265e862
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Mon Nov 23 09:25:05 2009 -0500
+
+ Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILES
+
+ Now that the INSTALL file is generated.
+ Allows running make maintainer-clean.
+
+commit eda2bb26783f7e9ef1ae659265930308378206e1
+Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+Date: Fri Nov 20 01:52:05 2009 +0100
+
+ Makefile.am: Add missing .g4i to be included in the tar file.
+
+ Apparently Debian packages were having to manually add these files
+ back in. Distribute them in the first place like we meant to.
+
+commit c5e86453c3ae3709933779a9dd609bbaebe21e8e
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Oct 28 14:41:41 2009 -0400
+
+ INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
+
+ Automake 'foreign' option is specified in configure.ac.
+ Remove from Makefile.am
+
+commit 12c4a22dd0b4de92a9c3d9e0baab029292f118f0
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Wed Oct 28 14:09:09 2009 -0400
+
+ INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206
+
+ Add missing INSTALL file. Use standard GNU file on building tarball
+ README may have been updated
+ Remove AUTHORS file as it is empty and no content available yet.
+ Remove NEWS file as it is empty and no content available yet.
+
+commit ad4030932490f848c8ac21ba5a7a8d734994ed15
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Mon Oct 26 12:54:21 2009 -0400
+
+ Several driver modules do not have a ChangeLog target in Makefile.am #23814
+
+ The git generated ChangeLog replaces the hand written one.
+ Update configure.ac to xorg-macros level 1.3.
+ Use XORG_DEFAULT_OPTIONS which replaces four XORG_* macros
+ Update Makefile.am to add ChangeLog target if missing
+ Remove ChangeLog from EXTRA_DIST or *CLEAN variables
+ This is a pre-req for the INSTALL_CMD
+
+commit bb994ce018ae6c3e3c5548ae7439cfc5e9aa4554
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Thu Oct 22 13:02:04 2009 -0400
+
+ .gitignore: use common defaults with custom section # 24239
+
+ Using common defaults will reduce errors and maintenance.
+ Only the very small or inexistent custom section need periodic maintenance
+ when the structure of the component changes. Do not edit defaults.
+
+commit 67bbda0bddae3e0d39bc8deb7378f467aedfd0e3
+Author: Gaetan Nadon <memsize@videotron.ca>
+Date: Thu Oct 22 12:34:17 2009 -0400
+
+ .gitignore: use common defaults with custom section # 24239
+
+ Using common defaults will reduce errors and maintenance.
+ Only the very small or inexistent custom section need periodic maintenance
+ when the structure of the component changes. Do not edit defaults.
+
+commit c180baf43b8a0e407448018f3a7e42491cf974ae
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Nov 13 19:35:23 2009 +0000
+
+ i915: Derive the correct target color from the pixmap by checking its format
+
+ Particularly noting to route alpha to the green channel when blending
+ with a8 destinations.
+
+ Fixes:
+
+ rendercheck/repeat/triangles regressed
+ http://bugs.freedesktop.org/show_bug.cgi?id=25047
+
+ introduced with commit 14109a.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e9064eacb0ad8867e320597453facbb3c376522c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Nov 13 18:35:44 2009 +0000
+
+ uxa: Do not remove repeat from solids for 1x1 composites.
+
+ Or else we hit the buggy 1x1 source path and trigger:
+
+ rendercheck/mcoords regressed
+ http://bugs.freedesktop.org/show_bug.cgi?id=25046
+
+ caused by the recent commit e581ceb.
+
+commit 14109abf285866ad4cd99d0cd16b0954a0a73a62
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 10 11:17:23 2009 +0000
+
+ i915: Fix texture sampling coordinates.
+
+ RENDER specifies that texels should sampled from the pixel centre. This
+ corrects a number of failures in the cairo test suite and a few
+ off-by-one bug reports.
+
+ Grey border around images
+ https://bugs.freedesktop.org/show_bug.cgi?id=21523
+
+ Note that the earlier attempt to fix this was subverted by the buggy use
+ of 1x1R textures for solid sources -- which caused the majority of text
+ to disappear.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit e581ceb7381e29ecc1a172597d258824f6a1d2d3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 10 11:14:23 2009 +0000
+
+ i915: Use the color channels to pass along solid sources and masks.
+
+ Instead of allocating and utilising the texture samplers for 1x1R
+ solid sources and masks we can simply use the default diffuse and
+ specular colour channels and adjust the fragment shader appropriately.
+ The big advantage is the reduction in size of batches which should give
+ a good boost to glyph performance, irrespective of the additional boost
+ from using simpler shaders.
+
+ However, the motivating factor behind the switch is that our use of 1x1
+ textures turns out to be buggy...
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 33cabbfca6acb5149e26f87a538a7cb79f00cad2
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 10 11:09:52 2009 +0000
+
+ i915: Check for overflow before overflowing.
+
+ As the immediate victim of the overflow would be to overwrite the maximum
+ permissible value, the test was optimistic.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 67af5a99253b1295f8dc09b28863eb7dc8b59e1d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 10 11:05:20 2009 +0000
+
+ Check that batch buffers are atomic.
+
+ Since batch buffers are rarely emitted by themselves but as part of a
+ sequence of state and vertices, the whole sequence is emitted atomically.
+
+ Here we just enforce that batches are marked as being part of an atomic
+ sequence as appropriate.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 998d6b3d8c549086fbc8a9f0e309694b23398d8d
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Nov 10 11:00:43 2009 +0000
+
+ uxa: Force alpha bits to fill remaining bits
+
+ In the case of x8r8g8b8 and similar where the alpha channel is ignored,
+ but should be interpreted as being 1, then it is convenient if those bits
+ are set appropriately in the colour. In order to do so for these formats,
+ where PIXMAN_FORMAT_A() returns 0 we need to compute the alpha channel
+ width as the remaining bits instead.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit dbb68168dc909ab2ec1d935322c3fd8581e666f1
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 5 15:40:20 2009 -0800
+
+ Revert "configure: make --disable-dri work even if the server supports DRI"
+
+ This reverts commit a851139c2141f6da370186148f2836e18b2acf83.
+ It broke the build, and I don't see why we should be supporting this
+ anyway.
+
+ Conflicts:
+
+ configure.ac
+ src/Makefile.am
+
+commit 4c8e783d84d2c14c8a1638b6a12307c0164d3e31
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 21 13:30:38 2009 -0700
+
+ Fix "Remove flow-control macros for fallbacks in the 2D driver."
+
+ I guess this is the sort of failure due to rebase-happiness that makes
+ Linus yell at us for rebasing.
+
+commit d0e08fe611681fcc840d1b9ee8d49acdf50f7e58
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Mon Oct 26 13:15:24 2009 +0000
+
+ Kill some more #defines only needed for User-Modesetting
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 8ff2a6496413e6b12fad9352f4bd9b6736bda56c
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 21 13:30:38 2009 -0700
+
+ Remove flow-control macros for fallbacks in the 2D driver.
+
+ It's poor style, and has confused new developers.
+
+commit c87585229b36790f883b9b8954ed061e00624df6
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Nov 5 13:33:55 2009 -0800
+
+ Increase stride limit for IGDNG
+
+ It can go up to 32k. Upping this lets me use my 2560x1600 and 1920x1200
+ monitors in an extended desktop configuration.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit cbcfb711747e3637f20145aed00ac3d6256d0d1d
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Wed Oct 28 13:12:46 2009 +0100
+
+ configure: drop some more cruft
+
+ DEBUGFLAGS wasn't used anywhere and the configure switch is useless.
+ "CFLAGS=-g ./configure" does the same thing and actually works.
+
+ PKG_CHECK_MODULES already calls AC_SUBST, no need to do it twice.
+
+ Signed-off-by: Rémi Cardona <remi@gentoo.org>
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3c0a43b24cc7540cc139beca0ec2e4c202ff5593
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Wed Oct 28 13:01:32 2009 +0100
+
+ configure: use CWARNFLAGS from xorg-macros.m4
+
+ Signed-off-by: Rémi Cardona <remi@gentoo.org>
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit a851139c2141f6da370186148f2836e18b2acf83
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Wed Oct 28 12:37:38 2009 +0100
+
+ configure: make --disable-dri work even if the server supports DRI
+
+ XF86DRI is defined by the SDK so not defining it here just breaks the
+ build. Define HAVE_DRI instead to avoid collisions.
+
+ Note: DRI2 is still enabled/disabled entirely by SDK defines.
+
+ Signed-off-by: Rémi Cardona <remi@gentoo.org>
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 07e0b2cff6107d6c86096c7da4e31b0c976794d5
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Wed Oct 28 11:45:55 2009 +0100
+
+ configure: group system header checks at the top
+
+ Signed-off-by: Rémi Cardona <remi@gentoo.org>
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 0401a4c3143c5b94875cb4c66c94a0d247c32da5
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Wed Oct 28 11:42:41 2009 +0100
+
+ configure: check for libdrm and libpciaccess earlier
+
+ Signed-off-by: Rémi Cardona <remi@gentoo.org>
+ Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 10946118dd3a63f1375a1bfde0b2f0542a93c1c2
+Author: Albert Damen <albrt@gmx.net>
+Date: Sun Oct 25 18:02:07 2009 +0100
+
+ Fix crash in uxa_acquire_pattern when pDst is NULL
+
+ This avoids a crash when an XRenderComposite call is made with a
+ -1 value for width/height, (which apparently compiz's gtk-window-
+ decorator likes to do). Fixes bug:
+
+ X crashes in uxa_acquire_pattern when logging in (gdm)
+ http://bugs.freedesktop.org/show_bug.cgi?id=24724
+
+ Signed-off-by: Albert Damen <albrt@gmx.net>
+ Reviewed-by: Carl Worth <cworth@cworth.org>
+
+commit 751e0a3e4576bbf4bffa56bbd6d4de28f10db98e
+Author: Thomas Arnhold <thomas@arnhold.org>
+Date: Mon Oct 19 11:35:30 2009 -0700
+
+ Fix 64-bit compiler warnings in intel_xvmc_dump_render().
+
+ Bug #24396.
+
+commit 3e8f2eae3a586aa29be4858698e666e0ec778cea
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 15 13:48:56 2009 -0700
+
+ XVMC: Use XCB DRI2 instead of cargo-culting our own copy of Xlib stuff. (v2)
+
+ v2: Incorporate comments from Jamey on device name handling and extension
+ detection.
+
+commit 38ab403d7a1c461c8ac65a056bee2dd5c7f2f58e
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 15 11:39:32 2009 -0700
+
+ Enable XVMC by default on gen4.
+
+commit f171069608bf174d920921fa102b8619794ed272
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Mon Sep 28 18:35:57 2009 +0800
+
+ i965 XvMC cleanup
+
+ Remove bo pin for surface buffer access, and remove access
+ attempt for possible unmapped framebuffer. Using xv buffer
+ pointer to pass current xvmc surface bo handler, which is
+ assigned to src image bo and handle that the same way as in Xv.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+ [anholt: Fixed up for conflict against the XV rework. Not tested, because
+ both mplayer and xine segfault with XVMC currently.]
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit aaedeffe00d9414bb03723dbc30b4938a07ce5fa
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Oct 14 18:09:08 2009 +0200
+
+ Xv overlay: fix planar YUV copy for right rotated crtcs
+
+ While copying and rotating the buffer, array access was out of bounds when
+ rotated to the right (RR_Rotate_270). My buffer handling changes probably
+ made this bug much more likely to actually result in a SIGSEGV.
+
+ I've checked the logs and the bug exists since rotation has been supported,
+ i.e. this looks like a candidate for cherry-picking for all supported
+ releases.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 703e3326bb41528cc57c0d25003707df209fc714
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Oct 14 15:56:55 2009 +0200
+
+ Xv overlay: further cleanups
+
+ Kill some unnecessary stuff. Small code changes, but no functional ones.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 1c2aedfce9e6a7561347e873d125b6889dee7941
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Oct 14 15:56:54 2009 +0200
+
+ Xv: fixup the disabled drmmode overlay code
+
+ This code didn't survive the global renaming of vars to saner names.
+ Fix it up.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 909990f40a437cbd7026a10e32af1ea120f4c2a7
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Wed Oct 14 15:56:53 2009 +0200
+
+ Xv overlay: remove some more dead stuff from ums overlay support
+
+ Mostly unused definitions and variables, but also some strange ums
+ debug code. Also kill some now obsolete comments.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 86bc23ab5da34137c82250395c68aa92ecd88a24
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 14 12:04:40 2009 +0100
+
+ debug: Enable cache flushing after every operation
+
+ If DEBUG_FLUSH_CACHES is enabled then emit a MI_FLUSH after every
+ rendering operation. This is intended to 'fix' cases where we are
+ missing a required flush in the middle of a sequence of operations, such
+ as switching between 2D to 3D and render to sampler.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 3c0815abf28744e215bea286e71d935cd486955a
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 14 11:29:21 2009 +0100
+
+ conf: Add debugging flush options
+
+ Make the following options available via xorg.conf:
+ Section "Driver"
+ Option "DebugFlushBatches" "1" # Flush the batch buffer after every
+ # single operation;
+
+ Option "DebugFlushCaches" "1" # Include a MI_FLUSH at the end of every
+ # batch buffer to force data to be
+ # flushed out of cache and into memory
+ # before the completion of the batch.
+
+ Option "DebugWait" "1" # Wait for the completion of every batch buffer
+ # before continuing, i.e. perform synchronous
+ # rendering.
+ EndSection
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2f134b84445d2d0bfe3d81276bc7f6648df062ee
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Wed Sep 30 07:31:57 2009 +0000
+
+ Return failure when the enum-type output property values are not found
+
+ Failure to do so causes xrandr to report incorrect property values.
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit fcc2ee48b866b81c79315ff10189b56fc201539d
+Author: Albert Damen <albrt@gmx.net>
+Date: Wed Oct 7 21:55:42 2009 +0200
+
+ Drop frontbuffer from crtc in I830CloseScreen
+
+ By dropping the frontbuffer from the crtc, the new frontbuffer
+ can be properly added to the crtc when the xserver is reset.
+
+ Signed-off-by: Albert Damen <albrt@gmx.net>
+
+commit 8a77877f9c2c6a8a1308bc1a3be9e7ad88bc7f49
+Author: Dave Airlie <airlied@redhat.com>
+Date: Fri Oct 9 14:16:06 2009 +1000
+
+ drmmode: with 1.7 server, set mode major doesn't get gamma setup.
+
+ Noticed this on Fedora, where 1.7 server does gamma via the randr
+ codepaths however kms doesn't have this call which happens in the
+ non set_mode_major path.
+
+ probably should be backported to released drivers.
+
+ Signed-off-by: Dave Airlie <airlied@redhat.com>
+
+commit d8c7678ddadce89ca7fc0edd1b4d9ed3d959e687
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Oct 12 14:02:12 2009 -0700
+
+ DRI2 compat build fix: it's drawable->pScreen not drawable->screen
+
+ Fallout from the conversion; DRI2 compat path was broken.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit b37ac9d317ae537d993922976f87072040b04d04
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Oct 12 14:31:06 2009 +0100
+
+ uxa: Refactor create Picture for pixman format
+
+ Pull the common methods for creating a Picture given a pixman format
+ into its own method, and tidy the surrounding code. The benefit is that
+ we can now composite directly to the Picture and so save an intermediate
+ copy when creating patterns for gradients.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 7e8f32d0a7279dce1976f87612833d9092554cfe
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Oct 12 14:33:08 2009 +0100
+
+ uxa: Free the ScratchPixmapHeader after its associated Picture
+
+ Fixes: http://bugs.freedesktop.org/show_bug.cgi?id=24459
+ Intel Driver > 2.8: Cairo rendering bug, triggered in QtCurve GTK engine
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 1556c62e0336ea2fef866722ee44d2d188e318f3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 8 17:34:13 2009 -0700
+
+ Replace dolt and shave with relying on current autotools.
+
+commit 8b2d2ff0d026eea445a071102a62d782f3bbec78
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 7 16:12:25 2009 -0700
+
+ Clean up more i830_memory.c madness.
+
+ It was cooking up insane alignment values for buffers that new libdrm was
+ justifiably complaining about, but it turns out we don't need the alignment
+ values anywhere because the only case they're needed, they're computed
+ entirely by the kernel. Also, the XVMC code was passing a completely unused
+ flag in.
+
+commit d525a0e993a59e118ab1e8519b3d73465f8f0169
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 19:05:24 2009 -0700
+
+ Rename pScreen to screen.
+
+commit b6262dcd2754f7e87f27979dcad145133ee3b945
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 19:00:41 2009 -0700
+
+ Rename pGC to gc.
+
+commit fdcfeb822d15cbfe6fccceab002b75458dca3264
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:57:22 2009 -0700
+
+ Rename pDraw to plain old drawable.
+
+commit 7bbf4ac7137ed0e4ec0a75806a396c12f102e779
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:50:54 2009 -0700
+
+ Rename the xv pPriv to adaptor_priv to reflect whose private it is.
+
+commit f309d475241260cf60567100511d5f7c6c487a29
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:38:53 2009 -0700
+
+ Call pPixmaps plain old pixmaps.
+
+commit da0f6616ad63f1581cf91a98104e5287aa44e7ce
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:37:05 2009 -0700
+
+ de-pCamelHungarian the Render pictures and pixmaps.
+
+commit 050a141b7bc94b459061615124b7686a9c331e01
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:30:57 2009 -0700
+
+ Share several render fields between render implementations.
+
+ Also, start settling on the cairo naming for things: source, mask, and dest.
+
+commit af27a3a0a5645c6f41f583611bd0f2559dc7cb2f
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:24:50 2009 -0700
+
+ Rename the xf86 screen private from pScrn to scrn.
+
+commit cc5d3ba3c331c3b1becf2d19277b24144bf34cfa
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:02:38 2009 -0700
+
+ Rename the screen private from I830Ptr pI830 to intel_screen_private *intel.
+
+ This is the beginning of the campaign to remove some of the absurd use of
+ Hungarian in the driver. Not that I don't like Hungarian, but I don't need
+ to know that pI830 is a pPointer.
+
+commit 03e8e64f8669263e3cecb79ea57d5a26c0eaee3f
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Oct 7 22:15:37 2009 +0100
+
+ Complete the removal of UMS build support
+
+ Eric missed removing the now dead references to the deleted subdirectories
+ in configure.ac with commit b9b159c
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 5e44a0fa4209523bee56f513a2029869f96a710a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 18:08:51 2009 -0700
+
+ Remove more dead UMS code.
+
+commit 6a716a25abc84f1c7f766fd3bfa1c2aac91e6ae7
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 17:58:32 2009 -0700
+
+ Remove the reg_dumper code, now that it's been moved to intel_gpu_tools.
+
+commit e9aff787a55d684e3b9c6d5ea8ac2926be952280
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 17:53:59 2009 -0700
+
+ Remove the stepping debug app, replaced by version in intel_gpu_tools.
+
+commit 71b9cdaa86bb9d3deb44f32f47771c33898253c2
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 17:53:21 2009 -0700
+
+ Trim down the hotplug debug app.
+
+commit e95eb483e210def0814bc61fc36d672145da7dff
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 17:51:09 2009 -0700
+
+ Remove intel_idle, replaced by intel_gpu_top in intel_gpu_tools.
+
+commit 8ae0e44e42db645abe6d385f561260d2ae4a1960
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 6 16:30:08 2009 -0700
+
+ Move to kernel coding style.
+
+ We've talked about doing this since the start of the project, putting it off
+ until "some convenient time". Just after removing a third of the driver seems
+ like a convenient time, when backporting's probably not happening much anyway.
+
+commit b9b159c49854d8d9d2207946bb583537bb0d48d6
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 30 16:29:53 2009 -0700
+
+ Remove UMS support.
+
+ At this point, the only remaining feature regressions should be the lack of
+ overlay support (about to land), and the need to update the XVMC code to work
+ in the presence of KMS.
+
+ Acked-by: Keith Packard <keithp@keithp.com> (in principle)
+ Acked-by: Carl Worth <cworth@cworth.org> (in principle)
+
+commit d26f4c493721dbb2e2cbf4efcf8d37228d1b1f3b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 5 13:31:31 2009 -0700
+
+ Remove UMS overlay support.
+
+ The replacement code is now landed, and the rest of UMS is about to disappear.
+
+commit 33c488e83676d26e69145ea615f75ca52768f400
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 5 10:38:05 2009 -0700
+
+ Remove error state dumping code.
+
+ This is replaced by intel_gpu_dump, and would no longer be used once UMS is
+ gone.
+
+commit 2370af32fe31bed8e5715639023635bdb3b83b1b
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:47 2009 +0200
+
+ Implement drmmode overlay
+
+ This does not restore the overlay on EnterVT/disable it on LeaveVT.
+ Does not look like this is necessary.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ [anholt: Hacked in avoiding the actual kernel calls with
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 99230864050ea2f26c2412c4c87c50947fc3cbe1
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:46 2009 +0200
+
+ Xv: introduce an overlay hal
+
+ This is the last preparatory step for overlay support with drmmode.
+ Safe two (specially marked) function calls in the setup code, all
+ hw accessing code goes now through these three new functions with
+ the ums_overlay prefix.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit bb04e184fdc55325a362ebf291e16a7c112a5f1d
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:45 2009 +0200
+
+ Xv: rework overlay buffer management
+
+ The basic idea is to only pin the buffer into the gtt when
+ the overlay hw is actually using it. This results in a few changes:
+
+ - Unify data copied/buffer handling with textured video. Now offsets
+ are always buffer relative and we just use drm_bo_map to access a
+ buffer.
+ - Implement double buffering using two bo's. This is necessary because
+ we can't pin the same buffer to the gtt and map it as normal memory.
+ - Kill XV_DOUBLE_BUFFER. With the above changes, overlay video is always
+ doubel buffered.
+
+ There is still the XvMC passthrough case, which makes the code slightly
+ ugly. Unfortunately we can't get at the bo behind this buffer.
+
+ Changes since the last review-round:
+ - Don't overallocate by a factor of 2.
+ - Prevent possible use-after-free issue.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 60462eb5b5c1931beecc1ed2d32f91090f64174c
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:44 2009 +0200
+
+ Xv: create xvmc_passthrough helper
+
+ This way all thes strange special cases make much more sense.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 71276dff9415322f75792a46c1a1cc0b900588b9
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:43 2009 +0200
+
+ Xv: scrap overlay offscreen pixmap support
+
+ The code looks like it's been bitrotting since being copied over
+ from the i810 driver. Furthermore painting rgb pixmaps with the overlay
+ engine is in these days of modern compositing X an absolute no-go. And
+ textured video doesn't support it neither, so its likely never ever
+ used by applications.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 99afdf985fa9f763fda4bc49ccd8111960a4ae0f
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:42 2009 +0200
+
+ Xv: small cleanups in I830PutImage
+
+ - scrap unused variable overlay
+ - scrap an superflous if and attach the code to the preceeding else
+ - tiny layout fix.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit d598456f1fe013c250530730c57ad720d38cde3a
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:41 2009 +0200
+
+ Xv I830PutImage splitup: extract i830_wait_for scanline
+
+ Also scrap the unecessary variable sync in I830PutImage and the
+ accompanying obfuscated logic.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 2ba03fa78197d1cb10d6401ad02cfe9edd2623b3
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:40 2009 +0200
+
+ Xv I830PutImage splitup: extract i830_copy_video_data
+
+ Just moves the code and passes back allocation failures.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 81fc74cc4ce81b9be8b9ba3bcacf1284c47ce80c
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:39 2009 +0200
+
+ Xv I830PutImage splitup: extract i830_setup_video_buffer
+
+ Just move the code and pass back allocation failures.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 0bf4cc5130482ee0f3924f34e37fa5fc988119b3
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:38 2009 +0200
+
+ Xv I830PutImage splitup: extract i830_dst_pitch_and_size
+
+ Just moves the code.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit c20ef591931b5efc5745d00c06f296c89cf32745
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:37 2009 +0200
+
+ Xv: kill destId in I830PutImage
+
+ It's only used to remember that XvMC has ỲV12 as output. is_planar_fourcc
+ already takes care of that in all necessary cases.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 5ce944994d57176d0ddf6f6d7c7779fdfcf39cb8
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:36 2009 +0200
+
+ Xv: kill hw double buffering logic
+
+ The idea for the hw double buffering support is to program two fixed
+ buffers and then only switch buffers in the OCMD register. But the driver
+ as-is always programs the new buffer address (in both register sets
+ when double buffered). Therefore we gain nothing by using this hw
+ capability. Scrap the software support for it.
+
+ When double buffered, we now allocate just a buffer of size 2*size and
+ switch between the two parts purely in software.
+
+ To make reviewing this easier, I'll shortly explain the differences of how
+ double-buffering (i.e. tear-free video) is achieved before and after this
+ change:
+
+ - When double buffer, allocate a buffer twice the size (unchanged).
+ - Depending upon the currently shown buffer-half, copy the new frame into
+ the other buffer-half. In the old code this is done by using the right
+ set of buffer offsets, either *Buf0Offset or *Buf1Offset. The new code
+ simply programs the offset for the right buffer-half into the single set
+ of offsets. The end-result is unchanged.
+
+ Now the big difference in hw-programming:
+
+ Old: Programm new buffer offset into both sets of _hw_ buffer offset
+ registers. Depending upon the current _sw_ buffer, select the _hw_ buffer
+ and program this into the OCMD register. This just complicates matters
+ unnecessarly.
+
+ New: Just always use the hw buffer 0.
+
+ And then it's again the same story in both old and new code:
+
+ - Execute an overlay flip (MI_OVERLAY_FLIP) to read in the contents of the
+ hw registers into the shadow hw registers (which are actually being used
+ by the overlay, not the ones we write stuff into). This is synchronized
+ with the respective crtc vblank by the hw.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 232418d72ee967a81e39481b9f2ee379cb685458
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:35 2009 +0200
+
+ Xv: use is_planar_fourcc helper some more
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 219b14310efe49aff5d3d9023d2ba440c9f702c1
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:34 2009 +0200
+
+ Xv: introduce planar memcpy helper
+
+ Reduced 3 copies of the same code to one.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit b90171f16652d1145fb80a63919f76a804a94cef
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:33 2009 +0200
+
+ Xv: rename i830_display_video to i830_display_overlay
+
+ This function only programs the overlay and is never called for textured
+ video. Make this obvious.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 857e40a6e00db72401717da3ed79edbf65db31d4
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:32 2009 +0200
+
+ Xv i830_display_video splitup: extract i830_overlay_cmd
+
+ This slightly moves around (and simplifies) the OSTRIDE reg programming,
+ too.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 50d70e644ea0574752d0fe160ce8d873653c913b
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Aug 11 16:06:31 2009 +0200
+
+ Xv i830_display_video splitup: extract i830_calc_src_regs
+
+ Also introduce an is_planar_fourcc helper. I'll use that one later.
+
+ In i830_display_video this changeset moves the XVMC case (previously
+ obscured as the default case) around. I've figured this default case
+ does not make sense, here's why:
+
+ XvMC is everywhere else handled as a planar format (e.g. in the register
+ programming a few lines down). Furthermore the id variable gets mapped
+ to FOURCC_YV12 if IS_I915(pI830) is true in I830PutImage. There's a
+ second caller in the offscreen overlay support code. But I think that
+ code is bitrotten and not reliable as an information source.
+
+ So we have a different behaviour only for id=FOURCC_XVMC and i965 class
+ hw (i830 class doesn't have xvmc). I've crawled through various
+ sources/intel documentations. Finally in the textured video implemention
+ for i965 class hw (src/i965_video.c) I've found a switch statement that
+ puts XVMC into the same case as I420 and YV12. So also in i965 class hw
+ xvmc uses a planar format.
+
+ In conclusion I claim that this code was bogus and XvMC on i965 class hw
+ over Xv overlay was most likely broken.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 2841a4cd8c6c64fdf4b2203ab73b57b38a50f651
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Sep 28 20:03:11 2009 -0700
+
+ Increment version to 2.9.0
+
+ And add a reminder to RELEASING that the incremented version number
+ needs to be committed, (since I forgot to do this with 2.8.99.902).
+
+commit a790aff4fef7d0c86b7b9c0da4afdc9c0aba6636
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Sep 28 20:02:28 2009 -0700
+
+ NEWS: Add notes for the 2.9.0 release.
+
+ Just renamed notes as from 2.8.99.902.
+
+commit a92bbcc94904684e7709b3ddaad82bc04607af26
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Sep 22 17:08:23 2009 -0700
+
+ Increment version to 2.8.99.902
+
+commit ae00a0923717caec6d0dad94527da26397bd12ce
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Sep 22 15:14:38 2009 -0700
+
+ NEWS: Add notes for 2.8.99.902
+
+commit 7e7db7ac530b5282b0841585959597b54fcc633b
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Mon Aug 17 19:24:03 2009 +0200
+
+ Add new backlight driver "samsung".
+
+commit 7ae1d0dde6cef3437b67dbc21384cb179616a6c0
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Mon Aug 31 13:51:01 2009 +0800
+
+ Skip setting tv format property if output crtc is NULL
+
+ When TV is not connected and X start, after plugging TV cable again,
+ system will crash because output crtc is NULL. This patch will return,
+ do not handle crtc immediately, meanwhile set value will be effective
+ until user really enable output by xrandr command.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 02fe9be695f7e209944bd0f7b67950f93619feee
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Tue Sep 22 10:58:38 2009 +0800
+
+ Check whether the DVI-I/D is connected or disconnected based on EDID
+
+ When the monitor is digital type for SDVO-DVI D, there should exist the EDID. If
+ there is no EDID, it should be detected as disconnected.
+
+ Signe-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 762e406d138ac80854b6a23b1078b52f6581f0d8
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Sep 22 01:34:37 2009 +0100
+
+ Revert "8xx: Fallback for any non-affine transformation."
+
+ This reverts commit 505025053d66d415e1c23ac858b9238fa8541d37.
+
+ In theory, the non-affine paths work -- at least for the stated test case,
+ so re-enable them and avoid the slow work-around.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 2cc1f3cb6034dddd65b3781b0cde7dff4ac1e803
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Sep 19 17:30:57 2009 -0700
+
+ i8xx: Format projective texture coordinates correctly.
+
+ Projective texture coordinates must be delivered as TEXCOORDFMT_3D
+ using TEXCOORDTYPE_HOMOGENOUS. This meant selecting the correct type
+ in i830_texture_setup, the correct format in i830_emit_composite_state
+ and sending only 3 coordinates in i830_emit_composite_primitive.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ [ickle: tweaked to fix up a couple of use-before-initialised]
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 00e8de212b46a243f243b437b7eb866315ab89b3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Mon Sep 21 22:14:21 2009 +0100
+
+ Check the correct Picture for error during creation.
+
+commit bd817e2d733dfdb1140874b06595ccd1ef39159b
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Sep 21 17:21:17 2009 -0700
+
+ Split i915/i830 composite_emit_primitive into two functions.
+
+ The i915 and i830 take similar but different data when emitting the
+ primitives, instead of trying to share code here, just split this
+ apart and avoid potentially breaking things later on.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 5e80297d088e8cdbf66d765f7d252dab66c8df86
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Sep 18 21:05:23 2009 -0700
+
+ Remove DGA support from the driver.
+
+ The xf86DiDGA code required that the scanout buffer always be
+ mappable, stay be at a fixed address in the aperture and have a
+ constant size. With frame buffer resizing, the latter two are no
+ longer true, and with KMS, we'd really prefer to not allow the former.
+
+ The only option available to the driver is to completely disable DGA
+ as the modes code has internal calls to the xf86DiDGA code when
+ fetching new modes from the hardware.
+
+ A fix for the DiDGA code will be added to the X server which will
+ automatically initialize DGA for mode switching and input, but not
+ frame buffer access, and not require any driver cooperation.
+
+ Thus, the correct solution is for the driver to not call xf86DiDGAInit
+ at all. For old servers, this eliminates a potential catastrophic
+ problem where random memory is written by the X server. New servers
+ will get the DIX-based behaviour automatically.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 4758311842a16600287c8f9f77ce0af1a31b9264
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Sep 18 20:59:52 2009 -0700
+
+ Remove vestigial internal rotation which broke KMS DGA/VidMode modesetting.
+
+ Pre-2.0, the driver supported rotation internally, rather than relying
+ on the X server rotation support. The last piece of this dealt with
+ rotating the mouse coordinates and also tried to preserve rotation
+ across DGA/VidModeExtension modesetting requests.
+
+ That latter bit of code broke under KMS as the rotation value was
+ never initialized, and when set to zero would create an invalid
+ configuration. This would confuse xrandr which would bail before
+ making any changes, leaving the user without a way to recover.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 505025053d66d415e1c23ac858b9238fa8541d37
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Sep 21 13:50:09 2009 -0700
+
+ 8xx: Fallback for any non-affine transformation.
+
+ There are definitely bugs in the 8xx code dealing with non-affine
+ transformations. Disable that code for now to get things working.
+
+ Fixes bug #22947 ([855GM, xf86-video-intel-2.8.0] "Freeze" when RENDER extension is being used)
+
+commit b4d29452b929a3ef224d3625e4bc66b787c5edb7
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Mon Sep 21 15:28:09 2009 +0800
+
+ More dumps for Arrandale LVDS
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 57fc09cef28bad2e3e8455b93ef2927118f8a3a3
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sun Sep 20 01:02:39 2009 +0100
+
+ Avoid fallbacks for a1 src/mask
+
+ Carl Worth did the hard work in identifying that the regression in
+ cairo between X.org 1.6 and 1.7 was caused by cairo sending an a1
+ mask to the server in 1.7 whereas in 1.6 cairo used local fallbacks
+ (as the source was using RepeatPad, which triggers cairo's
+ 'buggy_pad_reflect' fallback for X.org 1.6). This was causing the driver
+ to do a fallback to handle the a1 mask instead, which due to the GPU
+ pipeline stall is much more expensive than the equivalent fallback in
+ cairo.
+
+ Reference:
+ cairo's performance downgrades 4X with server master than server-1.6.
+ https://bugs.freedesktop.org/show_bug.cgi?id=23184
+
+ The fix is a relatively simple extension of the current
+ uxa_picture_from_pixman_image() to use CompositePicture() instead of
+ CopyArea() when we need to convert to a new format.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 33f98e4056706f4c30bb4327677ac49e82058231
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Sep 17 18:16:02 2009 -0700
+
+ Don't destroy bufmgr at CloseScreen time
+
+ Under KMS, the bufmgr is not initialized at InitOutput time and so it
+ won't be re-initialized during server regen. Thus we must leave the
+ bufmgr running during regen and cannot destroy it in CloseScreen.
+
+ Under UMS, each place the bufmgr is initialized, it checks to see if
+ it has already happened. Hence, we can safely leave the bufmgr running
+ across server regen for UMS too.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit ee9ad853574e3ee1a210db6207b84ecd466e08ee
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Sep 17 17:57:40 2009 -0700
+
+ Make sure DRM output properties are freed after we're done with them.
+
+ drmmode_output_get_modes was fetching output properties but only
+ freeing some of them.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit b8c5c996e888485c3a16d645c8490592534a7882
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 15 19:45:47 2009 -0700
+
+ Eliminate cursor flicker
+
+ We can update the cursor without hiding and showing it. In fact, doing the
+ hide/show causes noticable flicker when running in KMS mode.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit c2abfa8e54acab61250dba1e435760e3b1499c8c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Sep 4 17:10:25 2009 +0100
+
+ Avoid fallbacks for compositing gradient patterns
+
+ Currently when asked to composite using a gradient source or mask, we
+ fallback to using fbComposite(). This has the side-effect of causing a
+ readback on the destination surface, stalling the GPU pipeline. Instead,
+ like uxa_trapezoids(), we can use pixman to fill a scratch pixmap and then
+ copy that to an offscreen pixmap for use with uxa_composite().
+
+ Speedups on i915:
+ firefox-talos-svg: 710378.14 -> 549262.96: 1.29x speedup
+
+ No slowdowns.
+
+ Thanks to Søeren Sandmann Pedersen for spotting the missing
+ ValidatePicture().
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit efbcf29dd1a1ca058b7a2a93f0685102c06c9369
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Sep 9 09:32:48 2009 -0700
+
+ Update version to 2.8.99.901 for snapshot.
+
+commit 54fa27fcd97a6735d8eb6073f5ec7d0d40a7327f
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Sep 9 09:27:01 2009 -0700
+
+ NEWS: Add notes for the 2.8.99.901 snapshot
+
+commit 1a77ca74bc829e019a06fe9ad559f013054c27ff
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Wed Sep 9 12:09:05 2009 +0100
+
+ i915: Restore nearest sampling
+
+ My recent commit [94fc93] to use the pixel centre for sampling with the i830
+ broke the i915. This restores the previous sampling coordinates for the
+ i915 whilst preserving the correct coordinates for i830.
+
+ Fixes: gnome characters disappear
+ http://bugs.freedesktop.org/show_bug.cgi?id=23803
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ce10b5b6fca086eb4af45c1db28352e06ee4ce0b
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Sep 8 00:56:34 2009 +0800
+
+ Add B43 chipset support
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 94fc93d4e2b88565dca17f72903d8991213c9ee8
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Sep 5 09:35:10 2009 +0100
+
+ i830/i915: Set the sample position to the pixel center.
+
+ And in particular we apply the nearest sample bias separately for
+ src/mask.
+
+ Fixes cairo/test:
+ device-offset-scale
+ finer-grained-fallbacks
+ mask-transformed-{similar,image}
+ meta-surface-pattern
+ pixman-rotate
+ surface-pattern-big-scale-down
+ text-transform
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit ced0cc8bb28106c18473777bb184872786325e99
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Sep 5 09:05:36 2009 +0100
+
+ i830: Update comments
+
+ i830_composite() is no longer shared with i915 but
+ i830_emit_composite_primitive() is.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 8863706e25a73f68993d946e2f1c1040bae0f9c5
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Sep 5 09:03:56 2009 +0100
+
+ i830: Trim composite setup
+
+ Remove a couple of redundant NOOPs from the setup and correct the required
+ space checking for atomic batch operation.
+
+commit a9b12111f9787950ad6b8f295a70a872c5933c93
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Sat Sep 5 00:57:39 2009 +0100
+
+ i830: remove padding NOOPs from composite
+
+ Bumps aa10text up from 249k to 260k!
+
+ These NOOPs have existed uncommented since
+ 04d1584737fd0d14e99608a97281fd7b1549ae0e.
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 9c1bf6d01ca307b7a9b91e181ad7f341862e5e1c
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Fri Sep 4 23:31:44 2009 +0100
+
+ i830: do not use stale mask transform
+
+ Not only were incorrectly falling back if we had non-affine
+ transformations, but we made the decision based on a stale transformation
+ matrix.
+
+ Related bug 22877:
+ batch_start_atomic horribly breaks performance after a while
+ https://bugs.freedesktop.org/show_bug.cgi?id=22877
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+ Tested-by: Maximilian Grothusmann <maxi@own-hero.net>
+
+commit e903b3ebad29d943c05ff550940034c3a43e0235
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Thu Sep 3 16:34:08 2009 +0200
+
+ Don't set backlight level if going on->on.
+
+ Otherwise changed backlight will be reset upon DPMS switch off, because first
+ this function is called with DPMSModeOn.
+
+commit 91f26937c1a3a4f33da86aa6b62ab9b288a54e15
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Tue Aug 18 18:44:38 2009 +0200
+
+ Use "Backlight" as backlight brightness property.
+
+ BACKLIGHT is now deprecated, though still usable.
+
+commit dbc8944ee9e6755ab11dfc7375c3394f531a49ce
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Tue Aug 18 18:34:45 2009 +0200
+
+ Add get_property support.
+
+ So far only BACKLIGHT is changed.
+
+commit c18fc7955dc2aec878dd3bea1d51aaecf3f08858
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Tue Aug 18 18:05:45 2009 +0200
+
+ Don't ignore backlight level change to the same level.
+
+ If set externally to a different level, this would result in a no-op.
+ OTOH if the display is switched off (DPMS) you do not want the change to take
+ place immediately, but rather to be saved and set later when the display is
+ active again.
+
+commit fe7693c94a396b9d17bb66a000178750a432ce3a
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Wed Sep 2 22:57:33 2009 +0800
+
+ Make DGA optional
+
+ As DGA is optional in xserver, we should check this too instead
+ of always trying to init DGA.
+
+ Found when update xserver to 6fffcd5825454a7fe58ffbcfb219f007cf38e731,
+ but not update xf86dgaproto, which caused X fails to start.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 5812531e08147576de776b2dd64e7f94c08eb851
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Jul 31 11:20:23 2009 -0700
+
+ debug: i830_valid_command: Return invalid for subopcodes with no name
+
+ Previously the code would always return the count, before ever looking
+ into the _3d_cmds table to see if there was actually a valid command.
+
+ Thanks to Alan Coopersmith who reported that the code was confusing
+ parfait:
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=21666
+
+commit 7c48c21b22bf5862c5a35bda1635753cc5a7197c
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Aug 27 09:47:12 2009 +0800
+
+ set correct value for indirect access check bound
+
+commit 6361c3b9af39265df9222b1f3b6fb9c4197087c1
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Aug 25 19:23:27 2009 -0700
+
+ Fix SHM functions to work with server after 1.6.0
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 2786a66719a6dbb735eb7c551c412475c30ffa51
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Aug 25 18:35:54 2009 -0700
+
+ KMS: allocate one bo per crtc for cursor
+
+ The KMS API doesn't provide for sharing a single bo for multiple
+ cursor images, so allocate one bo for each crtc to hold the cursor
+ image. KMS also only supports ARGB cursors, so don't bother to
+ allocate buffers for two color cursors.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit e51126c57132492c664f86981c55b166dbb54c79
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Aug 25 18:34:25 2009 -0700
+
+ Add cursor registers to debug dump output.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 5fa8d04d9c86f343802c05bd3e11c6e733f01b63
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Aug 25 18:33:04 2009 -0700
+
+ Reload cursors as needed when setting new modes.
+
+ Cursor images may need rotation, or positions updated when new modes
+ are set. The server provides a convenience function,
+ xf86_reload_cursors for precisely this purpose. Just call it after the
+ new mode is set.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 1fc3f467ab3edd405adc569ac7f629077e6ffb9d
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 25 09:46:10 2009 -0700
+
+ Add KMS only build flag
+
+ Rather than refactoring all our init code only to have it go away when
+ we remove UMS, this patch adds a build time flag to allow the driver to
+ assume KMS support.
+
+ With this flag active, the driver will not request that I/O or MEM be
+ enabled at probe time, which can allow the server (if other drivers also
+ cooperate) to run as a non-root user.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 5dccd1be3ab80b642ef2022446f5bdc1656ed943
+Author: Wu Fengguang <fengguang.wu@intel.com>
+Date: Fri Aug 21 14:57:11 2009 +0800
+
+ Add HDMI audio registers
+
+ Dump some of the audio registers at server startup time.
+
+ (II) intel(0): AUD_CONFIG: 0x00000004
+ (II) intel(0): AUD_HDMIW_STATUS: 0x00000000
+ (II) intel(0): AUD_CONV_CHCNT: 0x00000000
+ (II) intel(0): VIDEO_DIP_CTL: 0x20000600
+ (II) intel(0): AUD_PINW_CNTR: 0x00000040
+ (II) intel(0): AUD_CNTL_ST: 0x00002000
+ (II) intel(0): AUD_PIN_CAP: 0x00000094
+ (II) intel(0): AUD_PINW_CAP: 0x004073bd
+ (II) intel(0): AUD_PINW_UNSOLRESP: 0x80000008
+ (II) intel(0): AUD_OUT_DIG_CNVT: 0x00000001
+ (II) intel(0): AUD_OUT_CWCAP: 0x00006211
+ (II) intel(0): AUD_GRP_CAP: 0x00000004
+
+ Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
+
+commit 38e97d2366738e83e76c72353b65edb13a9d2c7f
+Author: Wu Fengguang <fengguang.wu@intel.com>
+Date: Fri Aug 21 11:31:13 2009 +0800
+
+ Add intel_audio reg dumping program
+
+ It can dump HDMI audio registers for G45.
+
+ Signed-off-by: "Wang, Zhenyu Z" <zhenyu.z.wang@intel.com>
+ Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
+
+commit 6955fc7a74edf6034a292c31a304577c35e925e6
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Thu Aug 20 16:48:58 2009 -0400
+
+ kms: Don't use fb offset when using shadow buffer
+
+commit 465a4ab416b2e5ad53b96702720331a44fffa2fe
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 12 19:29:31 2009 -0700
+
+ Align the height of untiled pixmaps to 2 lines as well.
+
+ The 965 docs note, and it's probably the case on 915 as well, that the
+ 2x2 subspans are read as a unit, even if the bottom row isn't used. If
+ the address in that bottom row extended beyond the end of the GTT, a
+ fault could occur.
+
+ Thanks to Chris Wilson for pointing out the problem.
+
+commit a3962e6f74ddd954ae1390d150a347745d7bdb24
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 18 10:56:50 2009 -0700
+
+ Print block length of backlight table
+
+ For debugging VBIOS dumps
+
+commit 320f21669900f99a7daf8f2294f37be9ad71d05f
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Aug 17 15:19:41 2009 -0700
+
+ Dump LVDS backlight info from bios_reader
+
+ Add LVDS backlight and power VBT structures and dump from the BIOS reader.
+
+commit a50916530426a662f5ed262892080b860a445da3
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Mon Aug 17 15:53:15 2009 +0200
+
+ Add BACKLIGHT property support in KMS case.
+
+commit 376397c21eb9a7e4ea79d349af41da81c1af861f
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Aug 18 10:01:12 2009 +0800
+
+ Fix VGA plane disabling
+
+ Only apply on G4X with SR01 bit5 workaround for VGA plane disable, and
+ restore behavior back for other chips to make sure other modes got disabled
+ too.
+
+ For bug #17235, #19715, #21064, #23178
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 926c7e7d30458078f8185d4e0b9b32b40102b3d5
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Thu Aug 13 13:59:55 2009 +0200
+
+ Add HP Mini 5101 to quirks list.
+
+commit 713820197755ea53003b36a920922c3c525eeeea
+Author: Adam Jackson <ajax@redhat.com>
+Date: Tue Aug 11 14:50:03 2009 -0400
+
+ Fix the chip names printed in the log to be less obnoxious.
+
+ Names taken from pci.ids. Pineview appears to be a platform not a GMCH,
+ so use the G/GM convention to distinguish.
+
+commit e8f0763d405a8152c74c28792c52fe12c1d41dd5
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 7 18:24:44 2009 -0700
+
+ Fix math in the tiling alignment fix.
+
+commit 222b52ef16895823fbf3a0fc0be4eb23b930ed1b
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 7 18:05:29 2009 -0700
+
+ Align tiled pixmap height so we don't address beyond the end of our buffers.
+
+commit 62494407e529cfa68529b7267155a12d75418f21
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Thu Aug 6 13:52:54 2009 +0800
+
+ Fix typo in bios_reader for invalid pointer cast
+
+ Fixed locally for af45482a52999b52bf41468c458808e30c100e35, but pushed
+ wrong commit.
+
+commit 79b6851148574419389ac8055b0c31b8bdac3ab3
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 5 12:45:16 2009 -0700
+
+ Fix sampler indexes on i965 planar video.
+
+ We only set up one sampler, because all of our sampling is the same. By
+ using a non-zero index for the other two samplers, we'd dereference (likely)
+ zeroed data, resulting in using NEAREST filtering. This was a regression in
+ 40671132cb3732728703c6444f4577467fa9223f which incidentally switched from
+ having 6 samplers to 1.
+
+ Bug #22895, #19856
+
+commit f4e4c1a8544e264c5a1da02f4e7990a1beecf71e
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Aug 5 15:00:37 2009 +0800
+
+ It seems that indirect data upper bound check in STATE_BASE_ADDRESS
+ is not acting like what bspec told on 965gm.
+ G45+ follow bspec, but we have to set it to a large value for 965gm.
+
+commit af45482a52999b52bf41468c458808e30c100e35
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Fri Jul 24 10:44:20 2009 +0800
+
+ Calculate the DVO relative offset in LVDS data entry to get the DVO timing
+
+ Now the DVO timing in LVDS data entry is obtained by using the
+ following step:
+ a. get the entry size for every LVDS panel data
+ b. Get the LVDS fp entry for the preferred panel type
+ c. get the DVO timing by using entry->dvo_timing
+
+ In our driver the entry->dvo_timing is related with the size of
+ lvds_fp_timing. For example: the size is 46.
+
+ But it seems that the size of lvds_fp_timing varies on the differnt
+ platform. In such case we will get the incorrect DVO timing because of
+ the incorrect DVO offset in LVDS panel data entry.
+
+ Calculate the DVO timing offset in LVDS data entry to get the DVO timing
+ a. get the DVO timing offset in the LVDS fp data entry by using the
+ pointer definition in LVDS data ptr
+ b. get the LVDS data entry
+ c. get the DVO timing by adding the DVO timing offset to data entry
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=22787
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 50e2a6734de43a135aa91cd6e6fb5147e15ce315
+Author: Dave Airlie <airlied@redhat.com>
+Date: Tue Jul 28 18:26:25 2009 +1000
+
+ intel: drop RES_SHARED_VGA not needed anymore
+
+commit f3387310f312a4a9e1d691974834c3d290c2fa32
+Author: Dave Airlie <airlied@redhat.com>
+Date: Tue Jul 28 18:27:10 2009 +1000
+
+ xserver: fix up for stable build
+
+ reported by Arkadiusz Miskiewicz <arekm@maven.pl>
+
+commit 9bc0096f9de4b85ca6d6a5db109e49c4364bcee7
+Author: Dave Airlie <airlied@redhat.com>
+Date: Tue Jul 28 13:55:39 2009 +1000
+
+ intel: since driver depends on newer server don't need to wrap this
+
+ drop resource/RAC interactions
+
+commit 9a3b568d62a0b48f4a42ea5377740b2df1af432a
+Author: Dave Airlie <airlied@redhat.com>
+Date: Tue Jul 28 13:32:30 2009 +1000
+
+ intel: update for resources/RAC API removal
+
+commit 3418c6c16b108e45f67f3c868d28932266f7a0bc
+Author: Krzysztof Halasa <khc@pm.waw.pl>
+Date: Tue Jul 28 10:47:44 2009 +0800
+
+ h/v bias in 3DSTATE_DEST_BUFFER_VARIABLES is 4-bits wide
+
+ Fixes bug #22370
+
+commit 378445738494663f2ee1615598d4c77b870745af
+Author: Dave Airlie <airlied@redhat.com>
+Date: Tue Jul 28 10:10:13 2009 +1000
+
+ intel: remove unneeded includes
+
+ none of these need the resource includes
+
+commit 8084f76d86f048ca5b82da089fffa9665dbbcdd5
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Jul 26 13:14:05 2009 -0700
+
+ Allow DRM mode setting to include transformations
+
+ This removes the explicit transform disabling code in drm_set_mode_major.
+ Without a fixed X server, transforms will still be broken, but even a fixed
+ X server can't work around this driver bug.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 9a45ace207199eb40e95dc6d2670b3096e66ecd9
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Jul 23 11:09:53 2009 +0800
+
+ XvMC: enable XvMC/XvMC-VLD on IGDNG
+
+commit 043b4a866ab51acffc52d2d71db3475007747571
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Jul 23 11:07:13 2009 +0800
+
+ add compiled shader programs for XvMC/XvMC-VLD on IGDNG
+
+commit 7684adaa370e8b0bd22e6e7dd1d5fa05f6142bab
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Jul 23 10:57:22 2009 +0800
+
+ Check the version of intel-gen4asm tool in configure.ac
+
+commit 7dc95b4f1dfecbeb7e9f4a0c35fda32d020be8fe
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Jul 24 10:39:05 2009 +0800
+
+ XvMC: pin XvMC buffers under KMS.
+
+ Under KMS, the buffer allocated by i830_allocate_memory
+ isn't pinned anymore. However currently 915 XvMC needs
+ static offsets.
+
+ Fixes bug #22872
+
+commit 12c5aeca7a3db92d3522d00f5daf338d522e2176
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 16 13:34:09 2009 -0700
+
+ 8xx render: Add limited support for a8 dests.
+
+ This improves aa10text performance from 74k to 569k on my 855 laptop.
+ This also causes my 865 to hang on aa10text like it does on rgb10text,
+ thanks to actually hitting render accel.
+
+commit 6b7728491c3b771bcba2c7ffd75330c0a0b37f44
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jul 15 16:38:07 2009 -0700
+
+ Only align DRI2 tiled pixmaps to the DRI2 tiled pixmap alignment requirement.
+
+ This should save significant amounts of memory for glyph and other small
+ pixmap storage.
+
+ Bug #21387
+
+commit 22f7cbc32b70a89d55c79bbea39fb10c50a310ec
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 9 23:56:22 2009 -0700
+
+ uxa: Tell the driver when we're just going to immediately map the pixmap.
+
+ This lets the driver allocate a nice idle buffer object instead of a
+ busy one, reducing runtime of firefox-20090601 on my G45 from 50.7 (+/- .41%)
+ to 48.4 (+/- 1.1%).
+
+commit 5ef3db45e059df136162584d00d4b0b511456a33
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 9 19:24:38 2009 -0700
+
+ uxa: Skip fill of temporary alpha picture that just gets copied over.
+
+ This was needed when we were doing the mask computations in this pixmap,
+ but now they're done in a temporary and then uploaded later.
+
+ This reduces runtime of firefox-20090601 from 52.6 (+/- .96%) to 50.7
+ (+/- .41%) seconds on my G45.
+
+commit 6f3fc6b20f3daedab02e31f49678d4d2ff0fa7a3
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Jul 21 12:32:10 2009 -0700
+
+ drmmode_output_get_modes: Replace existing EDID property blob with new one
+
+ This synchronizes the X EDID data with the kernel EDID data each time the
+ kernel data may have changed. Otherwise, X ends up stuck with the first EDID
+ data it sees, failing to accomodate to different monitors.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 840a787a191b31ece5068e10daed04bee70bb1a2
+Merge: 0a4c4c5 5d50a94
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 20 23:00:06 2009 -0700
+
+ Merge branch '2.8'
+
+commit 5d50a949b3c5d0ad2bc4cf48ab25da1f707a4f6f
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 20 22:59:37 2009 -0700
+
+ Increment version number to 2.8.0 for release.
+
+commit b12220bd81f3a0509a3746dac3258e53f3879b23
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 20 22:59:02 2009 -0700
+
+ NEWS: Add notes for 2.8.0 release
+
+ Many thanks to Gordon for his notes from http://intellinuxgraphics.org/2009Q2.html
+
+commit 0a4c4c5fe8ebad2dd13f5770bd90a194eebb2890
+Author: Peter Hutterer <peter.hutterer@who-t.net>
+Date: Thu Jul 16 11:40:15 2009 +1000
+
+ Update to xextproto 7.1 support.
+
+ DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers
+ need to include dpmsconst.h if xextproto 7.1 is available.
+
+ SHM is now shm.h instead of shmstr. Requires definition of ShmFuncs that's
+ not exported by the server.
+
+ Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
+
+commit 57c7cbade9556e7b21867e61353f0928fd553616
+Author: Owain Ainsworth <zerooa@googlemail.com>
+Date: Thu Jul 16 20:38:43 2009 +0100
+
+ accessing a pixmap if prepare_access fails is verboten.
+
+ Don't do it, treat this the same as every other prepare access call in uxa.
+
+ Reviewed-by: Keith Packard <keithp@keithp.com>
+ Signed-off-by: Owain Ainsworth <zerooa@googlemail.com>
+
+commit bb3007384298cb57625ec0b3868dff9b23568f3e
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 16 12:56:07 2009 -0700
+
+ Really fix i915 render. Fail at commit --amend.
+
+commit 8dd7ccf37e2de6d80b556e6d18af244cefc1e417
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 16 11:40:51 2009 -0700
+
+ Fix 915-class Render after the 8xx-class Render fix.
+
+ The two shared i830_composite.c, so giving i830 atomic batch support
+ triggered anger about starting i830's atomic area while in i915's atomic
+ area. Instead, split the emit-a-primitive stuff from the state emission.
+
+commit a1e6abb5ca89d699144d10fdc4309b3b78f2f7a9
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jul 15 14:15:10 2009 -0700
+
+ Use batch_start_atomic to fix batchbuffer wrapping problems with 8xx render.
+
+ Bug #22483.
+
+commit e386e7b14b139f15205e14b173e8222bf38d9e18
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Jul 15 09:43:04 2009 -0700
+
+ Reset framebuffer offset when rebinding aperture (22760).
+
+ scrn->fbOffset may be changed when binding objects to the aperture during
+ server initialization or VT enter. This was accidentally removed when the
+ NoAlloc option was eliminated.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit b74bf3f9a65af9e72921d4e9028d9d4d023f8bc6
+Author: Barry Scott <barry.scott@onelan.co.uk>
+Date: Mon Jul 13 16:34:20 2009 -0700
+
+ Fix XV scan line calculation when rotated.
+
+commit 82905c7c0b871a97ec435a765c2ca407903ba595
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 13 05:29:49 2009 -0700
+
+ Increment version to 2.7.99.902
+
+commit 925bc6cbd430a00928fac2ef58724dd37c3bc349
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 13 05:27:40 2009 -0700
+
+ RELEASING: Fix typo in instructions
+
+commit 67c0afc7b7446a7b98aa7c65043ddba4c7c72b82
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 13 05:27:06 2009 -0700
+
+ NEWS: Add notes for 2.7.99.902
+
+commit 34c674dd45879b8ba8395b93b16c8a9e7b848f1f
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Jul 11 22:53:42 2009 -0700
+
+ Remove vestiges of NoAccel options from i830_driver.c
+
+ The enum and OptionInfoRec weren't removed in the initial patch
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 33d6e7a2355dfb8ad324c4fa28ce61c7e051b435
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Jul 11 22:53:11 2009 -0700
+
+ intel.man: Mark NoAccel option as i810/i815 only
+
+ The NoAccel option is not valid for other chips.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit ed8a9a94e1a670ca35311c9ed83d0c479530d41a
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Jul 10 17:13:14 2009 -0700
+
+ i830_uxa_prepare_access: Flush and wait for idle for non-bo pixmaps
+
+ Without kernel support and explicit knowledge about where in the ring the
+ last rendering operation for a specific pixmap was, we must synchronize with
+ any outstanding rendering before accessing a pixmap which does not have a
+ buffer object.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit cb19ac207b784d814f6f389110fd1b21a0f34e8b
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Jul 10 14:01:02 2009 -0700
+
+ KMS: Keep screen pixmap devPrivate.ptr NULL during init and resize
+
+ The frame buffer only has a valid address between prepare_access and
+ finish_access calls, so remove all other attempts to compute an address from
+ the driver.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 704b88dd50a7e7e3f362264b86d0401bee8603aa
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Jul 8 13:06:47 2009 -0700
+
+ i830_bind_memory: Under UMS: Bind GEM bos with dri_bo_pin, else through the GART
+
+ We only need to get static offsets for objects when not running KMS,
+ otherwise the kernel will manage those as needed for us.
+
+ Binding objects is done in one of two ways. For GEM buffer objects, we use
+ dri_bo_pin. For GART allocated memory, we bind that to the GART.
+
+commit 7b273732f70e91df8b41d5c48e1379271557dd8e
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Jul 8 11:53:13 2009 -0700
+
+ Allocate GTT space for GEM only under UMS
+
+ GEM requires GTT space to map objects. Under KMS, the kernel driver has
+ already provided all available GTT space to GEM, so the X server need not do
+ anything.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 56bfee8705f5d7d965227013b205dbc4c93e220c
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Jul 10 14:49:20 2009 -0700
+
+ Always set screen pixmap data pointer at init and resize times
+
+ For non-DRM environments, the screen pixmap will be GART allocated memory
+ and not a libdrm buffer object and so uxa will only use devPrivate.ptr to
+ find the associated memory. Make sure devPrivate.ptr is set each time the
+ framebuffer is allocated so that uxa will be able to draw to it.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 98087a0b966d5dc69faf72719153a2c878ba3de1
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Jul 8 11:47:25 2009 -0700
+
+ Make xorg.conf DRI option work under KMS. Fix name of I830AccelMethodInit
+
+ KMS mode does not call I830AccelMethodInit as that does the user
+ modesetting initialization (yes, it was misnamed), but that means that the DRI option
+ was ignored. Create a new i830_check_dri_option function to do the option
+ detection, then remove that from I830AccelMethodInit, which is renamed
+ i830_user_modesetting_init to reflect what it actually does.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit d655a3ff423e69c19a5dc07140cbf3caaa32cb86
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Jul 8 18:06:40 2009 -0700
+
+ Remove NoAccel support
+
+ This removes yet another 'debugging' option that hasn't seen real use in a
+ long time, and wasn't supported under KMS in any case.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 4e4b947f0b13f4a62606ccfd5729d5eb26ca0e92
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 9 15:52:16 2009 -0700
+
+ Remove bad comment about 3DSTATE_DRAWING_RECTANGLE size.
+
+commit 9155cfca75a207bce0fad945f32f0cb33eab8c4e
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 9 14:16:07 2009 -0700
+
+ Fix lols in trying to figure out whether this is a 64-bit build.
+
+ Noticed by: Michel Dänzer <michel@daenzer.net>
+
+commit 40e7c9505265823786cf730214db84812a5e494e
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jul 6 11:54:50 2009 -0700
+
+ Refuse to allocate giant BOs on 32-bit systems.
+
+ The overcommit of address space combined with these buffers hitting SW
+ fallbacks all the time means that we're probably better off telling the
+ application "no" instead of likely silently failing later.
+
+ Bug #22601.
+
+commit 6337cd23e692cae789d07f429442c425c18e1d4f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jul 1 15:54:38 2009 -0700
+
+ Initialize the other argument to drmSetInterfaceVersion.
+
+ The kernel ignores it if dd_major is -1, anyway.
+
+commit 216d939858abc924f2e32c95518f937f29ea018e
+Author: ling.ma@intel.com <ling.ma@intel.com>
+Date: Tue Jul 7 14:26:02 2009 +0800
+
+ enable sdvo lvds scaling function
+
+ Currently we implemented basic sdvo lvds function,
+ But except for sdvo lvds fixed mode, we can not switch
+ to other modes, otherwise display get black. The patch
+ intends to work for all modes whose HDisplay and VDisplay
+ are lower than fixed mode.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 0402f4f331148084552bd3963dbcb3fb900be8ea
+Author: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
+Date: Thu Jun 18 12:33:47 2009 +0100
+
+ Raise XV limit to 2048x2048 to match hardware limits.
+
+ The bigrequests limit isn't present in current X servers (tested using
+ textured video on a 965 with both image and window at 2048x2048 on a
+ 1920x1200 display, and image at 2048x2048, window at 1024x1024).
+
+ Remove the artificial limit, enabling full-screen HD video when
+ rotated.
+
+commit a66357832388ba9db21a4b3bf8311d9d1f1ab308
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Jul 7 14:13:57 2009 -0700
+
+ non-DRI FB resize failed to assign the screen pixmap devPrivate.ptr (22328)
+
+ When not using DRI, the screen pixmap is not in a bo, and so the usual
+ enable/disable access functions don't adjust the pixmap devPrivate field,
+ leaving it to the frame buffer allocation code to assign this correctly.
+
+ During mode setting and fb resizing, FB access is disabled, and the
+ screen pixmap devPrivate is stashed away by xf86EnableDisableFBAccess,
+ to be restored when FB access is turned back on. This means that we have to
+ set the pixmap devPrivate.ptr (in case xf86EnableDisableFBAccess doesn't
+ do this), along with storing the address in the scrn->pixmapPrivate field.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit c889b34e432198d5410a068eff3089ff5314ac27
+Author: Chris Wilson <chris@chris-wilson.co.uk>
+Date: Tue Jul 7 18:05:01 2009 +0100
+
+ Check for a valid I830Ptr before closing master.
+
+ After failing to become DRM master, the X server dies attempting to close
+ the master fd during free:
+
+ (EE) intel(0): [drm] failed to set drm interface version.
+ (EE) intel(0): Failed to become DRM master.
+ (EE) intel(0): failed to get resources: Bad file descriptor
+ (EE) intel(0): Kernel modesetting setup failed
+
+ Backtrace:
+ 0: X(xorg_backtrace+0x3b) [0x8133a3b]
+ 1: X(xf86SigHandler+0x55) [0x80c7945]
+ 2: [0xb805d400]
+ 3: /usr/lib/xorg/modules/drivers//intel_drv.so [0xb7b4bfcc]
+ 4: X(xf86DeleteScreen+0x6b) [0x80d465b]
+ 5: X(InitOutput+0x548) [0x80b0158]
+ 6: X(main+0x1cb) [0x807220b]
+ 7: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d107a5]
+ 8: X [0x8071881]
+ Saw signal 11. Server aborting.
+ ddxSigGiveUp: Closing log
+ ddxSigGiveUp: re-raising 11
+ Segmentation fault
+
+ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 705042f497b7b3843c2dcc5c160fb8dfeac1472a
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Jul 6 13:49:31 2009 -0700
+
+ Handle DRI2INFOREC version 3
+
+ This DRI2 version does not support the old CreateBuffers/DestroyBuffers
+ interface anymore.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 2ebc7d32e47b5edd5b776c39f936ed4e053caac2
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Jul 2 13:13:14 2009 -0700
+
+ Update to multi-API DRI2 interface
+
+ The DRI2 interface was changed to support both old and new drivers in an
+ API/ABI compatible fashion. This change syncs the intel driver with the new
+ version of the DRI2 API.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit f6f79eb629184366b1355743d601129a526da90c
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Mon Jul 6 11:01:31 2009 +0200
+
+ remove unused shader program
+
+ This file is not even referenced by any Makefile.am
+
+ Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 7e722ada533777c5e9ddf44bb4d770bacf8e13bf
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Mon Jul 6 16:25:13 2009 +0800
+
+ Disable FBC on IGDNG
+
+ Don't make FBC count for memory allocation.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 74227141923a2f5049592219ab80e8733062a5d9
+Author: Barry Scott <barry.scott@onelan.co.uk>
+Date: Tue Jun 23 14:14:50 2009 +0100
+
+ Fix segv for clipped movie window
+
+ When playing a movie that is clipped on its left and right edges the Xorg
+ server will SEGV sometimes. This is because the intel driver ignores the
+ clipping info when it copies the planes out of the XV data.
+
+ The check for the optimised copy was wrong to ignore the width required.
+ Which leads to too much data being copied by the memcpy. It the source buffer
+ happens to end exactly on a page boundary the server will SEGV.
+
+ As we reviewed the code we checked the calculation of src1, src2 and src3.
+ The patch includes additional comments to make it clear what the elements of
+ the calculation are.
+
+ This bug exists in git head and we also see it in 2.4.1.
+
+ Barry
+
+ Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
+
+commit c1755599db1d9a20954b84ccc07afd892bb6ac9e
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Jul 2 13:04:51 2009 -0700
+
+ Clear the bo on the rotate scratch pixmap
+
+ Since the scratch pixmap header will be re-used after allocation, we
+ need to clear its bo attachment when we stop using it, otherwise a later
+ user will use a bogus bo.
+
+ Reviewed-by: Keith Packard <keithp@keithp.com>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 324b4686204feb3a7370eeecaff8ba44635f73ca
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Jul 2 14:15:37 2009 +0200
+
+ Xv i830_display_video splitup: extract i830_update_scaling_factors
+
+ Just moved the code, no other changes.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit c2410addbfb99fcd7069591d9f387c35ed760522
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Jul 2 14:15:36 2009 +0200
+
+ Xv i830_display_video splitup: extract i830_update_polyphase_coeffs
+
+ To slightly clean up the implementation of i830_update_polyphase_coeffs,
+ introduce the two small helper functions i830_limit_coeff and
+ i830_store coeffs_in_overlay_regs.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+ Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
+
+commit 795c11c49cf10525f02127a3629d35378d802fa7
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Thu Jul 2 14:15:34 2009 +0200
+
+ Xv i830_display_video splitup: extract i830_update_dst_box_to_crtc_coords
+
+ Just moved the code ouf of line.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 4100abdf5d208bbcbb4ceabad0572c04221443c9
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Jun 30 13:12:45 2009 +0200
+
+ Xv: kill !textured condition
+
+ This is in the overlay path and therefore always true.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit b0df0fe91e2b800ed096f369850aa1af4be2f157
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Jun 30 13:12:44 2009 +0200
+
+ Xv overlay: implement GAMMA5 errata
+
+ - also ensure that the most significant byte is zero
+ - while I was looking at the code, add the Overlay suffix to
+ SetPortAttribute like in the textured case.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 5ef4d3cde1335350d82469ebbaed1b547a59552c
+Author: Daniel Vetter <daniel.vetter@ffwll.ch>
+Date: Tue Jun 30 13:12:43 2009 +0200
+
+ Xv: kill unneeded indirection
+
+ overlay and textured video have the exact same QueryImageAttributes
+ function.
+
+ Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+
+commit 1e4784bf26e3c154f5673f7b5add3ef7af3b1474
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jun 30 19:52:36 2009 -0700
+
+ uxa: Fix segfault on source-only picture usage with FallbackDebug.
+
+ Bug #22107.
+
+commit 7e79fc8aa93df4df37c25cf37ee0ec6c7caca1d9
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Jun 30 15:40:34 2009 +0800
+
+ Fix 945GM VT switch in UMS
+
+ Bug #19578. We should set private intel_crtc state according
+ to current, as fail to do so pipe A needs active won't be taken
+ care of. Also make sure pipe swap operation always set during
+ VT switch.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 50392ac8234d643c8a99e1753bdb196c0062a891
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon May 18 13:53:33 2009 +0800
+
+ Load fbcon too if kernel mode setting is checked on
+
+ If i915 module has already been loaded and kms check is true,
+ it would be nice to load fbcon module too.
+
+ Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
+
+commit 058ad9e6ab4a00ff66046d94c2129056011ebee9
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jun 30 16:02:19 2009 -0700
+
+ Don't try to pin buffers in KMS mode
+
+ The only things we try to pin in KMS mode are the cursor objects and
+ front buffer, and those are taken care of by the kernel anyway, so we
+ shouldn't even bother trying to pin them (well, not entirely true,
+ XvMC tries to pin as well, but it needs work w/KMS anyway).
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit cec9fc6f6cffce186606f39982d0d78ff7c63bbf
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jun 30 12:27:59 2009 -0700
+
+ Make KMS set_resource function return TRUE
+
+ This is what's expected by the server, and allows the EDID for example
+ to be exported in the KMS case.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 53e248af4365232416d2143a791a07c6751f8319
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jun 30 12:00:28 2009 -0700
+
+ Use DVO timing block instead of fp_timing when parsing LFP data
+
+ The KMS side was correct, but the UMS patch was broken. We need to use
+ the DVO timing block of the LFP data to get the timing, not the
+ fp_timing block.
+
+ Fixes fdo bug #22529.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 362883c2f9a3442f7678e6e815f41b21baaa3f53
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jun 29 16:26:15 2009 -0700
+
+ Add a few error messages for DRM initialization
+
+ Makes it easier to see where things go wrong.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit afac333bef4a0ac934f0e4d933dc5053d81ca88c
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Jun 30 11:10:52 2009 +0800
+
+ Remove unused packed yuv sampler shader programs
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 150c9adebc0b502f19c970783f411928e5a5c3b1
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Jun 30 10:42:41 2009 +0800
+
+ Xv: fix domain usage for binding table on i965+ chips
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 7770958e42d60966d95702e75c704e20ae2d90dd
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Tue Jun 30 10:41:26 2009 +0800
+
+ Add XV support on IGDNG
+
+ This brings necessary change for IGDNG for texture video support
+ from 2D render code.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit f806fe7d675b966680a63406167ce37e4f8a1ae8
+Author: Xiang Haihao <haihao.xiang@intel.com>
+Date: Thu Jun 25 15:39:32 2009 +0800
+
+ Enable 2D composite on IGDNG
+
+ This patch enables 2D composite on IGDNG. IGDNG requires
+ new compiled shader programs for Gen5 and some command changes.
+ The most notable is the layout of vertex element has changed,
+ but we tried to keep it as origin to not change shader programs.
+ Also vertex buffer state requires end address of vertex buffer
+ instead of origin max index.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 9fb34012f667e37f480085696ef9c2632d6eb7e1
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Thu Jun 25 15:30:04 2009 +0800
+
+ Add new compiled shader program for IGDNG
+
+ Also check intel-gen4asm tool here for new -g option, which is
+ required to compile new programs.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 488acc4595bb7f40130afcb8bcb05656ff3ae82c
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Thu Jun 25 14:05:40 2009 +0800
+
+ Move shader programs under its own subdirectory
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 170cae0c8d58fc141de1d8a2f17a4328d39c1263
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jun 29 12:55:43 2009 -0700
+
+ Only get the VBIOS in non-KMS mode
+
+ In KMS mode, the kernel takes care of this for us, so don't bother.
+
+commit 6511c082459789cf279e7a4528775a1c821ad8cc
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jun 29 12:53:51 2009 -0700
+
+ Output error info if we fail to get DRM resources
+
+ Useful for debugging.
+
+commit 00eb73286c3512a362dce00efdeae740772d0dcd
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jun 29 09:12:28 2009 -0700
+
+ Use swapbuffers_wait control
+
+ Commit 1eec83a203c48822400742a1fb184b2cb52c62f7, which added the new
+ SwapbuffersWait option, didn't actually include the code which used it. So
+ add a test to DRI2's CopyRegion call, only emitting the scanline wait
+ command if the swapbuffers_wait option is set.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit f53b3239dbc0ed723774e386e07ac9d8ce96bb89
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Thu Jun 25 10:22:23 2009 +0800
+
+ Disable XvMC on 915G/GM in KMS
+
+ These chips require physical address for XvMC surface, which
+ is not available in KMS case. Instead of crashing X, disable it now.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit f0270bbb47baed78a0ff6189ae20d3ac322ec02b
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Jun 24 14:42:08 2009 -0700
+
+ Fix i830_crtc_on to only check outputs associated with the given CRTC
+
+ Otherwise we may end up returning a false positive if some other output & crtc
+ are on, but not the one in question, again leading to hangs.
+
+ Reported-by: Eric Anholt <eric@anholt.net>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 5d80e24b5fc6d6028028da6ded35389c08bfce29
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Jun 24 13:12:25 2009 -0700
+
+ Treat disabled CRTCs as "not covering" for scanline wait purposes
+
+ Now that swapbuffers does a scanline wait to avoid tearing, it's
+ important to take into account the CRTC status to avoid hangs. If we
+ do a scanline wait when the CRTC is off (due to DPMS for example) we'll
+ hang the GPU. So add some code to check the CRTC DPMS status to the
+ i830_covering_crtc function, returning NULL if none of the covering
+ CRTCs are actually active. KMS vs UMS logic is hidden in new i830*
+ functions, cleaning up both DRI2 & video paths a bit.
+
+ Fixes fdo bug #22383.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 6d025e679a99778496576af9a6a6fa8c043ae811
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Tue Jun 23 09:53:14 2009 -0700
+
+ Harden i830 render in case check_composite didn't throw out bad formats.
+
+ Fixes a warning in a static analysis program, and the code's a little
+ clearer.
+
+ Bug #21667
+
+commit 1eec83a203c48822400742a1fb184b2cb52c62f7
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jun 23 15:05:03 2009 -0700
+
+ Add option to control swapbuffers behavior
+
+ Until we get triple buffering, we'll want this so users can avoid taking a
+ performance hit on apps that render slower than the refresh rate.
+
+ Fixes fdo bug #22234.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit bfeeac6de096256fca82244338bb45d53ee53cbc
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Tue Jun 23 11:31:37 2009 +0800
+
+ i915 xvmc, fix fd.o bug #22103
+
+commit 15af8ea6ab6998bbab9f4eeda227565c409da229
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jun 22 11:11:06 2009 -0700
+
+ Fix LFP data block fetch
+
+ Apparently the proper way to do this is to use the LFP data pointer block to figure out the LFP data block entry size, then use that plus the panel index to calculate an offset into the LFP data block array.
+
+ Fixes fdo bug #19450.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 534e73ad4f234a04755917f2bf17ba821c27eb52
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Thu Jun 18 09:46:32 2009 +0800
+
+ Don't change the blank/sync width when calculating scaled modes
+
+ Don't the change the blank/vsync width while doing LVDS scaled modes.
+ And use the border instead of border minus one.
+
+ At the same time, make sure the horizontal border and hsync are even for
+ the LVDS that works in dual-channel mode. So both horizontal border and hsync
+ start are also changed to be even, even for the LVDS in single-channel
+ mode.
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=20951
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit b5cd2130f97591f4a387db1b98c940c30bc6404c
+Author: ling.ma@intel.com <ling.ma@intel.com>
+Date: Tue Jun 16 16:52:25 2009 +0800
+
+ TV: Set correct voltage level override values
+
+ We detect TV connect status by setting DAC voltage level override
+ values as 0.7 voltage for DAC_A/B/C. The corresponding 2-bits shold be 0x2,
+ In order correctly to set last bit as 0, at first we must clean it.
+
+ It fixed freedesktop.org bug #21204
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit a6cdcd9fee0164f79075063fd163d142a55fcbc5
+Author: ling.ma@intel.com <ling.ma@intel.com>
+Date: Tue Jun 16 16:47:52 2009 +0800
+
+ Set hot plug interrupt to detect HDMI output
+
+ We detect HDMI output connection status by writing to HOT Plug Interrupt
+ Detect Enable bit in PORT_HOTPLUG_EN. The behavior will generate an specified
+ interrupt, which is caught by audio driver, but during one detection driver
+ set all Detect Enable bits of HDMIB, HDMIC and HDMID, which generate wrong
+ interrupt signals for current output, according to the signals audio driver
+ misunderstand device status. The patch intends to handle corresponding output
+ precisely.
+
+ It fixed fredesktop bug #21371
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 6b93afc564a5e74b0eaaa46c95f557449951b3b9
+Author: Bryce Harrington <bryce@bryceharrington.org>
+Date: Wed May 27 03:40:52 2009 -0700
+
+ add pipe a force quirk for Dell mini
+
+ Add quirk to solve issue with black screen and hang occuring after closing the
+ lid with attached external monitor, on Dell Mini.
+
+ Fixes fdo bug #21960.
+
+ Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
+
+commit eb09014ce10428bbcab04e155186382975545f0a
+Author: Li Peng <peng.li@intel.com>
+Date: Tue Jun 16 15:29:57 2009 -0700
+
+ don't wait for vblank on rotated displays
+
+ We may hang or wait for the wrong line if the display is rotated, so just skip
+ the wait in that case.
+
+ Fixes fdo bug #22196.
+
+commit 6c56521bdc0443c0656271caaa795feb13bc1d6b
+Author: Bryce Harrington <bryce@bryceharrington.org>
+Date: Wed May 27 05:18:53 2009 -0700
+
+ pipe-a quirk for thinkpad x30
+
+ Fixes freeze when closing lid on ThinkPad X30.
+
+ Fixes FDO bug # 21976.
+
+ Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
+
+commit 246cec965958e94babf5377e6f221522b05fb458
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Wed Jun 10 11:17:28 2009 +0800
+
+ Fix EDID for LVDS output device to add the default modes
+
+ Fix the EDID for the LVDS output device to add the default modes.This is
+ similar to what we have done in UMS mode.
+ a. When there exists the EDID, either find the DS_RANGES block or replace
+ a DS_VENDOR block, smashing it into a DS_RANGES block with open refresh
+ to match all the defaults modes.
+ b. When there is no EDID, we will construct a bogus EDID and add a DS_RANGES
+ block with the open refresh to match all the default modes.
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=20801
+ http://bugs.freedesktop.org/show_bug.cgi?id=21094
+ http://bugs.freedesktop.org/show_bug.cgi?id=21346
+ http://bugs.freedesktop.org/show_bug.cgi?id=21417
+ http://bugs.freedesktop.org/show_bug.cgi?id=21671
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 5d1dc7677004d445a7a781decd8c1ef9747c14fb
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Wed Jun 10 11:17:27 2009 +0800
+
+ Get the LVDS panel limit and check whether the given modeline is valid
+
+ When the connector type is LVDS, it will traverse the mode list returned by
+ KMS kernel to get the LVDS panel limit. Then it will use the panel limit to
+ check whether the given modeline is valid. If the given modeline exceeds
+ the LVDS panel limit, it will be invalid.
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=20801
+ http://bugs.freedesktop.org/show_bug.cgi?id=21094
+ http://bugs.freedesktop.org/show_bug.cgi?id=21346
+ http://bugs.freedesktop.org/show_bug.cgi?id=21417
+ http://bugs.freedesktop.org/show_bug.cgi?id=21671
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 115e28639fbf6a1eba636dafac02fadd83036c75
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Wed Jun 10 11:17:26 2009 +0800
+
+ Add the private data for the LVDS connector
+
+ Add the private data when the connector type is LVDS.
+ We can use the private_data to store the LVDS panel limit.
+ For example: Hdisplay, Vdisplay.
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=20801
+ http://bugs.freedesktop.org/show_bug.cgi?id=21094
+ http://bugs.freedesktop.org/show_bug.cgi?id=21346
+ http://bugs.freedesktop.org/show_bug.cgi?id=21417
+ http://bugs.freedesktop.org/show_bug.cgi?id=21671
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 3da549f5b350dd42516e5cb3576f7fefe012d95e
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Wed Jun 10 11:37:03 2009 +0800
+
+ GFX: Initialize the SDVO device based on the valid slave address
+
+ When the slave address is found for the SDVO port, the SDVO device will
+ be initialzied.
+ When the slave address is not found for the SDVO port, it will return
+ the slave address by using the following flowchart:
+ a. If the SDVO device info is found for another SDVO port, it will return
+ the slave address that is not used. For example: if 0x70 is used, then 0x72
+ is returned.
+ b. If no SDVO device info is found for another SDVO port, it will return
+ 0x70 for SDVOB and 0x72 for SDVOC.
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=20429
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 51b87b9913ba164d4d5de79e558233915b37a0a5
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Wed Jun 10 11:37:02 2009 +0800
+
+ parse general definition block to get the SDVO device info
+
+ The general definition block contains the child device tables, which include
+ the child device info. For example: device slave address, device dvo port,
+ device type.
+ We will get the info of SDVO device by parsing the general definition blocks.
+ Only when a valid slave address is found, it is regarded as the SDVO device.
+ And the info of DVO port and slave address is recorded.
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=20429
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit 6ba148bbd78783f59eed3d898638c39b950dcd89
+Author: Zhao Yakui <yakui.zhao@intel.com>
+Date: Wed Jun 10 11:37:01 2009 +0800
+
+ Dynamically get the number of child device in general definition block
+
+ The size of general definition block varies on different platform/machines.
+ In such case the number of child device is also different.
+ And it will be better to get the number of child device in general definition
+ block dynamically.
+
+ The number of child device can be calculated by the following formula:
+ (block_size - block_header_size) /
+ sizeof( struct child_device_config)
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=20429
+
+ Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
+
+commit cdbf84f20295c8a78624318aa6fdfff3f5c8ce27
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Jun 11 13:57:09 2009 -0700
+
+ intel_batch_init: test have_gem, not directRenderingType
+
+ Under KMS, directRenderingType will get set to DRI_NONE during driver
+ initialization. When the first batch buffer is allocated, as
+ directRenderingType is DRI_NONE, the GEM bufmgr would get trashed as
+ intel_batch_init called a fake-bufmgr specific function.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 6d062e9e9fc4ac92a5dc2941b4ed0251a1dc6e11
+Author: Julien Cristau <jcristau@debian.org>
+Date: Thu Jun 11 17:15:04 2009 +0200
+
+ Fix xvmc build
+
+ If we don't find xext.pc, disable xvmc instead of failing configure
+ Also add dependencies on xfixes and dri2proto (src/xvmc/dri2.h includes
+ <X11/extensions/Xfixes.h> and <X11/extensions/dri2tokens.h>).
+
+commit 9d3c3b056c1d4da6ef7afd3f71a5994fad810632
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Jun 10 15:30:45 2009 -0700
+
+ Increment version to 2.7.99.901
+
+ This is the first release candidate for 2.8.0
+
+commit e2622045155f5aa79bacbec8f81c1231194f3033
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Jun 10 15:30:09 2009 -0700
+
+ NEWS: Summarize new developments for 2.7.99.901
+
+commit e5bfa2702a31566fa94fa75f7289d7cbe9825420
+Author: Lukasz Kurylo <Lukasz.Kurylo@gmail.com>
+Date: Wed Jun 10 07:55:31 2009 -0700
+
+ DRI2 copyregion: don't wait for scanlines that won't happen
+
+ In some configurations, it's possible to wait for a scanline outside of
+ a given CRTC range. Make sure that can't happen to fix multihead cases
+ with dead space.
+
+ Fixes fdo bug #22203.
+
+ Signed-off-by: Lukasz Kurylo <Lukasz.Kurylo@gmail.com>
+
+commit cda5561716891484aa6f1c4a234be8d88f17f659
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Jun 10 16:43:30 2009 +0800
+
+ add missing files for previous commit
+
+commit 6d500be3cdecd7617dc6119b58ae273eea478af7
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Jun 10 15:53:24 2009 +0800
+
+ enable MC on g45 for player without vld patch
+
+commit 88da9b48737229b305da4423e9aa43a09ccdcfac
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Wed Jun 10 10:45:51 2009 +0800
+
+ Add new chipset register dumps
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 0d56ef94be0592aec9aa83e4a5e4ff13348640c2
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Fri Jun 5 12:59:07 2009 +0800
+
+ Disable composite on new chipset for now
+
+ This depends on updated intel-gen4asm be ready for new chip.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 440ccc44f51d3a5d6f46c28cfcc576cad155fbbc
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Fri Jun 5 12:56:04 2009 +0800
+
+ Add new register definitions
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 0d8a9e2c6f58115b9b8449de52e795699ed032af
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Fri Jun 5 12:51:51 2009 +0800
+
+ Update intel_gtt utility for new chipset GTT check
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit fb524caa3e2f1f516717669642bb4b2244f9e7e4
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Mon Jun 8 10:22:14 2009 +0800
+
+ Remove fixed MMIO size
+
+ Use pci resource size instead, which will get the correct MMIO range.
+ New chipset uses obviously larger MMIO range.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit 4f40b33ef4b069b18a6a18406da83a23ca6e1127
+Author: Zhenyu Wang <zhenyuw@linux.intel.com>
+Date: Fri Jun 5 11:57:57 2009 +0800
+
+ Add new chipsets PCI ids
+
+ Desktop and mobile version of new chipsets are added.
+ Also do memory config like Intel 4 series chipset.
+
+ Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
+
+commit accdbd23676d812d2345f86d8e3ee62f108841ff
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri May 29 15:34:20 2009 -0700
+
+ UXA: Rasterize trapezoids to system memory, not a pixmap
+
+ Since we're only doing software rasterization right now, anyway, it
+ makes more sense to just rasterize to system memory and then upload
+ to a pixmap once complete. This avoids expensive read-modify-write
+ cycles.
+
+ This results in a 2.4x speedup for a real-world test case that's
+ heavy on trapezoids, which is swfdec running on the following file:
+
+ http://michalevy.com/wp-content/uploads/Giant%20Steps%202007.swf
+
+ Many thanks to Chris Wilson for his cairo-traces repository and
+ cairo-perf-trace tool which makes it so easy to measure things
+ like this.
+
+commit b5e32c9cf896a0b93d193d797a8e83b4aa4691fb
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri May 1 13:51:39 2009 -0700
+
+ Rename i830_exa.c to i830_uxa.c
+
+ It was just confusing otherwise, (since the EXA code has all been
+ removed now).
+
+commit ee539e58c3bf39766c560d625f6e4158d419e64e
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Mon Jun 8 21:14:14 2009 -0400
+
+ Fall back to fb pixmaps for backing glyph pictures
+
+ GEM pads pixmaps to 512 byte stride and backs them with a kernel side
+ buffer objects. We typically don't render out of glyph pictures, so
+ we're incurring a lot of overhead per glyph by allocating a GEM pixmap
+ per glyph. By looking at the usage hint, we can fall back to
+ fbCreatePixmap for pixmaps backing glyph pictures, which gives us
+ a nice tight malloced pixmap. The fast path for text rendering is
+ compositing from the glyph cache pixmap to the destination, which
+ shouldn't be significantly affected.
+
+ Quick bit of testing:
+ (firefox-20090601)
+ xlib-rgba-before 384512.49: 1.01x
+ xlib-rgba-after 389633.94: 1.00x
+ The difference being within the margin of error for the benchmark.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+ Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
+
+commit 4698b3bd79452ae2066a3d195cf58dd5e30c93f3
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Jun 5 10:43:50 2009 +0800
+
+ xvmc: don't include xf86dri.h
+
+commit 4d9f3a21ab9b2737fe7a5a088c2da1b0c2be7f04
+Merge: b8e360b 52054b6
+Author: root <root@hdmi.sh.intel.com>
+Date: Thu Jun 4 10:27:41 2009 +0800
+
+ Merge branch 'xvmc-vld'
+
+commit b8e360bf2b77d28559d15a7c0f9c766848eb6ced
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 3 10:12:25 2009 +0000
+
+ Fix segfault in DRI2 vblank syncing if the region isn't onscreen.
+
+ Also, fix some weirdness in the checking for whether the target was the
+ screen.
+
+commit 5901a67fc85ac80fabfa98b78202a388445275c3
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 3 10:00:50 2009 +0000
+
+ Fix some drawable abuse in i830_dri.c
+
+ We were casting pixmaps to drawables even if they weren't pixmaps. They did
+ happen to work out since we only used the drawable record out of them.
+
+commit 5e48146777921b693c828af9566a77422cc4f85f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 3 09:57:10 2009 +0000
+
+ Replace some pixmap-related idioms with inline functions to do so.
+
+commit ea0b00e675281b2914450992501566122f9affe0
+Author: Ma Ling <ling.ma@intel.com>
+Date: Mon Jun 1 17:13:53 2009 +0800
+
+ Provide mode line from VBT to xorg.
+
+ If sdvo get modes function can't find modes from EDID,
+ transmit sdvo lvds modes from VBT to xorg.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 9e7ee50bea5f65003f1d70cc06d8c1ace1282548
+Author: Ma Ling <ling.ma@intel.com>
+Date: Mon Jun 1 17:13:22 2009 +0800
+
+ Fetch mode line from VBT, then keep it.
+
+ Parse SDVO LVDS option section, then according to panel type
+ fetch fixed mode line from SDVO LVDS DTDS section .
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 88f766be008008d76c150e3ac16f09d4ecbb6d53
+Author: Ma Ling <ling.ma@intel.com>
+Date: Fri May 15 15:22:11 2009 +0800
+
+ Wait doubled regis to be stable for load pipe detection
+
+ We have two approaches for VGA detections: hot plug detection for 945G onwards
+ and load pipe detection for Pre-945G. load pipe detection will get one free
+ pipe ,and set border color as red and blue, then check CRT status by
+ swf register. Because pipe registers in hires mode are double buffered,
+ once set force border bit in pipeconf register, we have to wait for
+ a vblank until it is effective, otherwise result is unstable.
+
+ It fixed freedesktop bug #20463
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 6a635be5ea2b2df9d6b9a8006325244394038474
+Author: Ma Ling <ling.ma@intel.com>
+Date: Fri May 15 14:01:18 2009 +0800
+
+ Set activation periods as 64 cdclk sync up with KMS
+
+ We use force CRT detect trigger bit(1 << 3) to detect VGA in hot plug mode,
+ which triggers a CRT hotplug/unplug detection cycle independent of the
+ interrupt enable bit(1 << 9), so keep bit 9.
+ And although spec says CRT_HOTPLUG_ACTIVATION_PERIOD_64(1 << 8) is only useful
+ for mobile platform, it is also required to detect vga on G4x platform correctly.
+ Tested the patch on G45/G43/Q45 platforms with no regressions
+
+ It fixed freedesktop.org bug #21120 and part of bug #21210.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit ec2fde7c8250fdc30984f16c8a1d3587d70b0144
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jun 2 16:42:56 2009 +0100
+
+ Sync DRI2 CopyRegion to vertical retrace
+
+ Akin to the Xv code, wait for the scanline to be outside the range to be
+ copied by the DRI2 CopyRegion hook.
+
+ Fixes fdo bug #20664.
+
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 704771f1c595df481d244a6f074e9f5620d4a720
+Author: Adam Jackson <ajax@redhat.com>
+Date: Thu May 28 15:03:45 2009 -0400
+
+ Remove useless loader symbol lists.
+
+commit 8e942b70cb9a784b3f1311affd6fc74c4bcf68bb
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu May 21 13:12:52 2009 -0700
+
+ Revert "Rely on BO pixmaps being present in acceleration paths."
+
+ This reverts commit 4653a7db622ad54a3182d93c81331765d930db34.
+
+ Eric was getting a little too ambitious about our brave, new world.
+ We do still want the driver to work with old, non-GEM kernels
+ after all.
+
+commit 1a039f4371bec455cad43f0fb7b329f2ee09a974
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 27 17:45:02 2009 -0700
+
+ Fold GEM detection into DRM master open.
+
+ We don't have anything to do with the DRM unless it's GEM-enabled, unless
+ we were to support GEM-but-not-DRI2, which doesn't seem useful.
+
+ Compilation fixes by Carl Worth <cworth@cworth.org>
+
+commit a04a51c9bb6066454e0fda3c7897f97dab436358
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 27 17:29:36 2009 -0700
+
+ Open the DRM and keep the handle throughout server startup to finish.
+
+ This will let us configure the server from start to finish with the
+ most pertinent information available (KMS vs UMS, DRI2 vs non-DRI). Also,
+ we now close the DRI2 fd at terminate, which we didn't before.
+
+ This duplicates some code from DRI1 for getting a master FD like I'd done in
+ DRI2, but given that we weren't loading DRI1 ourselves, this is also a
+ bogosity cleanup, and avoids allocating the extra DRI1 private.
+
+commit c3bf8b980134a2761701e4bc18235695a1cb07a4
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu May 21 11:05:01 2009 -0700
+
+ Fix backwards logic on whether to sync to vblank or not.
+
+ Thanks to Michel Dänzer for catching it.
+
+commit ad2128825ba28551cfef203da017151e2eac32ef
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed May 20 12:32:10 2009 -0400
+
+ Only return FALSE when dri_bo_map() fails
+
+ Small typo in the previous commit.
+
+commit 09beee378cecd1079e7a9fa6eee8f084d680d37e
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon May 18 18:01:05 2009 -0700
+
+ Don't do GTT maps on objects bigger than half the available aperture size.
+
+ The basic problem is that software fallbacks will do single instructions that
+ copy from one GTT-mapped BO into another GTT-mapped BO. If we can't get both
+ of them bound simultanously, we fault one in, retry the instruction, fault the
+ other in (kicking out #1), retry the instruction, fault #1 back in
+ (kicking out #2), etc.
+
+ Note that we'll still get into a nasty spot if you do a composite operation
+ with a mask where all 3 are big-but-less-than-half-available-aperture, where
+ you'll thrash. It at least means you'll make progress, though, since each
+ instruction will only be operating on two BOs at at time, and the situation
+ seems unlikely.
+
+ Bug #20152 (3/3)
+
+commit 52054b6a4c1ca5117c9750361f71aedd91220c39
+Author: Li Shao Hua <shaohua.li@intel.com>
+Date: Tue May 19 16:27:32 2009 +0800
+
+ switch XvMC to gem
+
+commit 34660fd2df5d61b77ed7041d32ac29053fc94f5a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri May 15 23:21:05 2009 -0700
+
+ Only sync XV to vblank when drawing to the frontbuffer.
+
+ This fixes emitting syncs to random pipes with boxes bigger than that
+ pipe's vertical, leading to GPU hangs.
+
+ Bug #21738
+
+commit b622860429e00d6ab4407980232659c283a8fe8d
+Author: Xiang Hai hao <haihao.xiang@intel.com>
+Date: Mon May 18 17:12:30 2009 +0800
+
+ DRI2 for XvMC
+
+commit 50c10ededba15dd0c118f1b65756362061491090
+Merge: 13c730e 87332a7
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Mon May 18 17:11:28 2009 +0800
+
+ Merge branch 'master' into xvmc-vld
+
+commit 87332a7cc16af82aa47e07fbf90da3635b071dbf
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 11 13:52:00 2009 -0700
+
+ Use drm_intel_bo_disable_reuse API to flag scanout and cursor buffers
+
+ Buffers referenced by the kernel for scanout or cursor display should not be
+ reused by the driver. Use the new drm API to disable reuse of these buffers.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit ebe05200df381c0e6ee636f0f83440bfedea9bcb
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri May 15 08:50:17 2009 -0700
+
+ Add --enable-debug flag to configure
+
+ Defaults to enabled.
+
+commit 04772b6c09a88f0483c2a7efc48029967c77b9bc
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu May 14 16:57:11 2009 -0700
+
+ If DRM can't figure out which pipe to sync on, then don't sync at all.
+
+ Syncing to the wrong pipe can wedge the hardware if the exclusion area is
+ larger than the vtotal
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 128c1c3b7d57b157604788f82bf9fd389839068f
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 29 14:43:56 2009 -0700
+
+ Use libdrm to lookup pipe for tear-free sync of XV
+
+ Previously, the code was trying to examine a driver_private field,
+ but those fields are only set by the userland-modesetting code so
+ would fail in the case of KMS. This fixes bug #21076:
+
+ [945GME] [KMS] XV_SYNC_TO_VBLANK does not prevent tearing of xv video
+ https://bugs.freedesktop.org/show_bug.cgi?id=21076
+
+commit 2572fcc6196aff7a2f1095d211fd85d8668647ca
+Author: Wu Fengguang <fengguang.wu@intel.com>
+Date: Thu Apr 30 19:51:26 2009 +0800
+
+ README: kill an evil dot
+
+ To make copy and paste a more pleasure.
+
+ Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit b9462516d18bc57be5f33f57adb6c3e8beede5ff
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 12 18:53:27 2009 -0700
+
+ Remove dead "avail" variable from XAA stuff.
+
+commit 1c68bc376a9cb3c0a010c8e28f69a776755c8f64
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed May 13 13:19:53 2009 -0700
+
+ Add new have_gem flag
+
+ Prior to this patch, code that wanted to check whether GEM was present
+ would look at pI830->memory_manager. This turned out to be occasionally
+ problematic in the KMS case, since memory_manager didn't always get set
+ correctly. So add a new pI830->have_gem flag to make things clear in
+ the various code paths, and set it after GEM initializes or when KMS is
+ detected.
+
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+ Tested-by: Magnus Kessler <Magnus.Kessler@gmx.net>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 52367847087206b92f18c40d356d36ab9ee89d39
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu May 7 14:58:02 2009 -0700
+
+ Load i915 and fbcon when checking for KMS
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit ff7494b4c4b1bd8bb6f169402a9edbe9780787bb
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu May 7 14:58:01 2009 -0700
+
+ Add DP link and GMCH M and N registers
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit e54a23bff068416ccbdb75d538dc7dcd40a6c95c
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu May 7 16:35:19 2009 -0700
+
+ Fallback when VT inactive
+
+ While the VT is inactive, pI830->batch_bo will be NULL, so use that as a
+ simple check for when to not use the accelerator. The alternative is to
+ ignore VT switch and just keep drawing, which would also be fine.
+
+ Bug #21468.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ [anholt: Removed extra return FALSE -- I830FALLBACK does that.]
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 660bd745c21c56e330d844fe4c8eaae862a77483
+Author: Wu Fengguang <fengguang.wu@intel.com>
+Date: Thu Apr 30 18:42:18 2009 +0800
+
+ Remove the offset parameter from i830_allocator_init()
+
+ offset is redundant. i830_allocator_init() is only called
+ in one place with offset=0.
+
+ Acked-by: Magnus Kessler <Magnus.Kessler@gmx.net>
+ Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit b1f5cc3349f6811ff4d8dc64cc291788d6726372
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue May 12 11:45:03 2009 -0700
+
+ RELEASING: Better instructions for where to send announcements
+
+ The xorg-announce list doesn't need to hear about development
+ snapshots and release candidates. The intel-gfx list is good for
+ that.
+
+commit f16ee218845ec48940ea457b921d34896d80a807
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Sun May 10 16:25:24 2009 -0700
+
+ Fix "Unkown" typo in two FatalError messages
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
+
+commit 8d27247829fe4f55691ce68f9f4b14810fb34b32
+Author: Stijn van Drongelen <tinctorius@gmail.com>
+Date: Tue May 5 16:37:06 2009 +0200
+
+ Fix typo in (unused) INTEL_BIOS_32 macro
+
+ Debian bug#527062 <http://bugs.debian.org/527062>
+
+ [jcristau: fix same typo in bios_reader.c]
+ Signed-off-by: Julien Cristau <jcristau@debian.org>
+
+commit a8a771a853478e5f45f71d0eff3c4d55bf24d0ad
+Author: Arkadiusz Miśkiewicz <arekm@maven.pl>
+Date: Wed Apr 29 00:21:18 2009 +0200
+
+ Restore CFLAGS after tests.
+
+ Reverts single line of broken commit e5133a94dc78411eaef324131ea8056aeb81779e.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 8255cca2c9092f7ecb798944aa8f03fa3efcfa6c
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 18:34:43 2009 -0700
+
+ Split i915 textured video commands to fit into batch buffers.
+
+ i915 textured video commands are quite long, but must be contained in the
+ same batch buffer as the 3D setup commands. When the number of clip rects
+ for the video becomes too large for the associated commands to fit in the
+ same batch buffer, this change breaks the sequence into pieces, ensuring
+ that each batch contains the necessary setup sequence.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit e5e0fb846bda3e1757b89e50d5244d28457b9fe3
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 12:26:04 2009 -0700
+
+ Call down to lower CloseScreen before shutting down DRM allocator
+
+ Lower level functions will destroy objects that are managed by the DRM
+ allocator, so make sure those are done before the allocator shuts down.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit cfb98f3da936907945f48dad4c2345930f7beb60
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 12:23:32 2009 -0700
+
+ Revert "Leave allocator running until lower-level CloseScreens are done"
+
+ Uh, oops -- the FD used to talk to the kernel is closed before the
+ allocator_fini function is called now.
+
+ This reverts commit 1872869e6ffcc8e6cab820c508fe5404d7e8ff9c.
+
+commit 11a853bd8e5d907fe7f5bd907453bcdac9032861
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 11:51:13 2009 -0700
+
+ Hold reference to video binding table until all rects are painted.
+
+ The optimization of unreferencing the binding table when the relocation is
+ posted causes the object to be dereferenced for each box in the clip list,
+ causing general chaos in the buffer manager. It's easier to just hold a
+ reference to the object until all of the boxes are painted and then drop it.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit ed492131c13715b73c14d328d0668120acb58b40
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 11:50:17 2009 -0700
+
+ 3D_STATE_VERTEX_BUFFERS takes four 32-bit values, not three.
+
+ The spec says this command takes an extra (mbz) 32-bit value, so let's
+ provide it with one.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 66d1536a2ecc7a3d44da4c0dbe6c85aaa4e05791
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 11:48:51 2009 -0700
+
+ Don't bother to enable VF statistics during 965 video playback
+
+ This was used while bringing up the driver to debug vertext fetches.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 1872869e6ffcc8e6cab820c508fe5404d7e8ff9c
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 11:46:51 2009 -0700
+
+ Leave allocator running until lower-level CloseScreens are done
+
+ The lower level close screen functions will free allocated objects, causing
+ a crash if the allocator isn't still available.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 1142353b487c155a31011923fbd08ec67e60f505
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri May 1 11:44:13 2009 -0700
+
+ intel_batch_start_atomic: fix size passed to intel_batch_require_space (*4)
+
+ intel_batch_start_atomic takes an argument in 32-bit units, and so it must
+ multiply that by 4 before passing it to intel_batch_require_space, which
+ takes an argument in bytes.
+
+ We should figure out what units we want to use and use the same everywhere...
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 8232177a005127a0001af4b14c3beb766958ef11
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Apr 30 15:30:05 2009 -0700
+
+ Allow cursors to roam past 2048x2048 limit.
+
+ There's no reason to clip cursor positions to an artificial limit; the
+ hardware cursor limits always mirror the hardware display limits.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 417f3784b7fae8de3559c7607a2de60661a6a448
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Apr 28 20:42:22 2009 -0700
+
+ Add doltlibtool to DISTCLEANFILES
+
+ Otherwise make distcheck fails.
+
+commit bc9a688476f02233450eb05dfb40acbf337d679b
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Apr 28 20:37:13 2009 -0700
+
+ NEWS: Add notes for 2.7.99.1 snapshot
+
+commit a90cab43209bba52d35b953f3d686a19c154fc43
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Apr 28 13:12:55 2009 -0400
+
+ Remove a handful of pointless comments
+
+ CVS keywords, comments about how the source was once reformatted,
+ and the ad-hoc changelog comment in in i830_driver.c
+
+commit c231b41f3f3eb3ba9c8436d5fd93a30704ed437c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 21 15:55:01 2009 -0700
+
+ Remove checks for xf86RotateFreeShadow, introduced in server 1.4.
+
+commit e5133a94dc78411eaef324131ea8056aeb81779e
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 21 15:49:01 2009 -0700
+
+ unifdef LIBPCIACCESS and XSERVER_LIBPCIACCESS.
+
+ Depending on new server means these are always present.
+
+commit 4653a7db622ad54a3182d93c81331765d930db34
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 22:05:54 2009 -0700
+
+ Rely on BO pixmaps being present in acceleration paths.
+
+commit 1784efc1f0c74edda8c78fb1b0cdd989f0a088ad
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 18:25:59 2009 -0700
+
+ Remove XF86DRM_MODE.
+
+ We now depend on server 1.6 and current libdrm, so no need to ifdef it.
+
+commit d82ea4372fb74654eb0f37d996977003473846ed
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 13:20:03 2009 -0700
+
+ Replace I830Sync's irq emit/wait code with bufmgr use.
+
+ This pre-GEM code was all sorts of broken -- see intel_bufmgr_fake.c for
+ the hoops that must be jumped to use that kernel interface successfully.
+ Yet we continued to use it even with KMS/DRI2/UXA, which may account for
+ some hangs.
+
+commit 612c1f1f1859ce0cef41049d79cc473657d48612
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 16:16:48 2009 -0700
+
+ Remove I830_XV ifdef.
+
+ The developers of the driver don't ever run or test without XV. Don't do it.
+
+commit af6892f2b873dd508994d8bbf3d67e719b535e35
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 16:07:05 2009 -0700
+
+ Replace i830WaitSync with just I830Sync(), as nearly all callers had it wrong.
+
+ People were trying to BEGIN_BATCH()/ADVANCE_BATCH() then i830WaitSync on the
+ results, which wouldn't necessarily wait and lead to various painful bugs,
+ since only EXA called MarkSync and only for certain rendering operations.
+
+commit 393abc15b76804580bfee0760ddbd1fb77e66c02
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 15:58:35 2009 -0700
+
+ Now that video destination pixmaps are always in BOs, no more MarkSync.
+
+commit dc71573292c215f49716f4dc1ebc416c6b172995
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Apr 17 15:13:34 2009 -0700
+
+ Remove can_resize, which is now always true (except when a bug interfered)
+
+commit 96df22740b2cdc4f82a4a36c0f77663105d9337e
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Apr 17 15:11:12 2009 -0700
+
+ unifdef I830_USE_UXA.
+
+ We only have on acceleration architecture now, and you can always build it
+ if you're building the driver.
+
+commit fa81ae1637bfd7b73b43355b78c88a9b84c0393c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Apr 17 14:01:47 2009 -0700
+
+ Remove EXA support.
+
+ UXA has completely replaced EXA at this point. UXA is the same rendering
+ core as EXA, but relying on kernel memory management or a fake bufmgr instead
+ of trying to manage memory in the X Server.
+
+commit 1b10745a2528622a32271f64c35fcdb7b7154d11
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jan 23 08:39:59 2009 -0800
+
+ Remove XAA support.
+
+ While EXA/UXA aren't completely good replacements (see bugzilla for
+ performance and stability problems), we are pretty sure at this point that
+ it's the right way to go and that having multiple acceleration architectures
+ is getting in the way of producing a stable codebase.
+
+commit 30c226eeb35f034c3ddb881e77454051dc210298
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 22 17:54:49 2009 -0800
+
+ Remove DRI1 support.
+
+ This was blocked on wide distribution of X Server 1.6 (now in the current or
+ next version of major distributions) and solutions for a couple of significant
+ architectural problems (vblank sync and frontbuffer rendering, which we now
+ have code or good plans for).
+
+ This includes disabling XVMC which is DRI1-only currently.
+
+commit 47591334a183881704a121ae06ebc2fadebe6f73
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Apr 17 13:54:47 2009 -0700
+
+ Remove pre-server-1.5 support.
+
+commit 3187c7698b93f1d0e07798e9c42ca2877d55e055
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 27 14:50:54 2009 -0700
+
+ Fix assert at startup with DRI initialiation failure.
+
+ In this path, we'd make it to allocator_init -> init_bufmgr without
+ GEM and without FbBase being initialized, leading to assertion failure
+ to catch this mistake.
+
+ Comedy ensued when trying to move just the MapMem up, leading to the rest
+ of the commit. Some day (like tomorrow after I rebase intel-cleanup) I'll
+ clean this path up.
+
+ Tested with 2 X Servers on 2.6.28 (one gets DRI2, one fails successfully),
+ 2 UMS X Servers on 2.6.30rc2 (each gets DRI2), and 2 KMS X Servers on
+ 2.6.30rc2 (success all around).
+
+commit fbaf13c93511547c563129527797fbef8628652e
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 27 16:05:50 2009 -0700
+
+ Don't clear the framebuffer if it isn't currently bound.
+
+ This segfault can be triggered in non-KMS memory init before the EnterVT,
+ and will happen anyway at EnterVT time.
+
+commit ab878118b9fb46c437a02f824d29f4a206e7fd80
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 27 16:00:05 2009 -0700
+
+ Don't initialize DRI2 if the fd we get is not master-capable.
+
+commit 385ac2197b64574f30620a203e675d8da0e1472f
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 27 15:28:21 2009 -0700
+
+ Fix drmSetMaster/DropMaster error messages.
+
+commit 5b05a589efb23b2fc09b06e4271174d922b1ab02
+Author: Pierre Willenbrock <pierre@pirsoft.de>
+Date: Sat Apr 25 22:58:20 2009 +0200
+
+ format == 0 means "use default" in I830DRI2CreateBuffer
+
+ Reviewed-by: Ian Romanick <idr@freedesktop.org>
+
+commit e55d943126cdd3eac7dfec5f40e794f89dbf038b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 27 11:18:07 2009 -0700
+
+ Don't try to do anything for I830Sync when VT switched.
+
+ Fixes a crash with fake bufmgr and UXA.
+
+commit 9748aa5594a8357754c06dd82108b131260b1a71
+Author: Shuang He <shuang.he@intel.com>
+Date: Sat Apr 18 11:48:08 2009 +0800
+
+ Free front buffer bo when X exit
+
+ It's needed when KMS or DRI2 is enabled, or there will be memory leak.
+ Also fixes a segfault at startup with fake bufmgr.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit b8ca146b060e6f76bf048f1f6cf6ee89d38d015e
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Fri Apr 24 16:03:27 2009 -0700
+
+ Fix UXA to build with Sun compilers (use __func__ instead of __FUNCTION__)
+
+ Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
+
+commit 5d6f4f6eb7a4dcbe1ce5a134d882e56f958ed2ba
+Author: Ian Romanick <ian.d.romanick@intel.com>
+Date: Fri Apr 24 12:28:13 2009 -0700
+
+ DRI2: If the SDK supports it, use the DRI2GetBuffersWithFormat interfaces
+
+ If DRI2INFOREC_VERSION is defined in the server's dri2.h and has a
+ value greater than 1, compile to use the CreateBuffer and
+ DestroyBuffer interfaces. The format parameter parameter to
+ CreateBuffer is assumed to be the bits-per-pixel of the buffer.
+
+ Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
+ Reviewed-by: Kristian Høgsberg <krh@redhat.com>
+
+commit 106e4b44c5af6552cbd079c4ec34def9dcfb168a
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Apr 24 10:55:09 2009 +0800
+
+ SDVO: switch bus once for i2c transfer
+
+ Before sdvo try to get edid by i2c bus, it must do switch control bus to ddc active state from sdvo only state.
+ However if current state has been ddc active state, redundant switch operation in our driver will cause error-
+ "Unable to write to SDVOCTRL_E for SDVOB Slave 0x70". The patch will do switch control bus only one time during
+ whole edid transmission.
+
+ It has fixed bug #19937
+
+ Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
+ Tested-by: Ma Ling <ling.ma@intel.com>
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 8f64837e56b2de0fb8a9100d1a844fd3f18d751c
+Author: Shaohua Li <shaohua.li@intel.com>
+Date: Mon Feb 23 15:19:25 2009 +0800
+
+ Disable FBC on IGD for UMS
+
+ It appears the new chip doesn't support FBC currently.
+
+ Signed-off-by: Shaohua Li<shaohua.li@intel.com>
+ Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
+
+commit 7b01aa5cc41620da5bb48f391ff98d9e82572e52
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Apr 22 09:03:21 2009 -0700
+
+ Revert "fix overflow warning on videoRam"
+
+ This reverts commit 08ebde4715b87867184d42b60762cd774e151f5c, which was
+ apparently untested and broke KMS.
+
+commit ceb3a2eaf9090d67e4dfcbed188125108ceab78d
+Author: Zdenek Kabelac <zdenek.kabelac@gmail.com>
+Date: Tue Apr 21 18:58:23 2009 -0700
+
+ Remember allocated offscreenImages memory for freeing it in CloseScreen()
+
+ Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
+ [anholt: renamed the member to match the variable name]
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 701c6bef14b5d464847cc42c5ccb66fdeb157f1a
+Author: Zdenek Kabelac <zdenek.kabelac@gmail.com>
+Date: Tue Apr 21 18:53:07 2009 -0700
+
+ free allocated name inside sdvo_destroy
+
+ Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit fe71217ca86eb7ae8081bf3e26d30f2002d27691
+Author: Zdenek Kabelac <zdenek.kabelac@gmail.com>
+Date: Tue Apr 21 18:51:02 2009 -0700
+
+ Unreference allocated bos in i965 render error paths
+
+ Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit b8b6ca830b1fd6956c76a5417462ca55174cb881
+Author: Zdenek Kabelac <zdenek.kabelac@gmail.com>
+Date: Tue Apr 21 18:47:03 2009 -0700
+
+ Fix leak of some 965 render state on VT switch.
+
+ Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
+ [anholt: fixed up unneeded != NULL checks]
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit d7ca870e1ce251d42e3689a8e1e7d080ab1325fb
+Author: Albert Damen <albrt@gmx.net>
+Date: Sun Apr 5 16:36:35 2009 +0200
+
+ Fix crash with XV with large virtual display
+
+ If a virtual display with width > 2048 is used, the first time
+ an XV buffer is needed will result in a BadAlloc error message,
+ but the next time X would crash.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 04ed92e3db8d9fcf2a1089ed433ab67bf0969655
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 21 15:17:31 2009 -0700
+
+ Remove dead xoffset/yoffset from pre-randr.
+
+commit ab2c988767aec854d3c1702bee1e5a06bd00870c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 21 14:53:45 2009 -0700
+
+ Remove dead monitor detect debugger.
+
+ watch xrandr works fine.
+
+commit 928a37041defcca6f57f9452ba62e67524cb4510
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 15:46:11 2009 -0700
+
+ Replace a bunch of #ifdef debug flushing/syncing with a single function.
+
+ This removes it from a callsite where it would have just resulted in a
+ fatalerror.
+
+commit 1fc93ee184ceefaea9528bb46ae82884c44d9b36
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 14:42:31 2009 -0700
+
+ Staticize a bunch of functions and variables in the driver.
+
+ This cleans up findstatic.pl output for the i830+ code, which resulted in
+ removing some code. The only odd part of this commit is the
+ if (0) i830_sdvo_dump() in i830_sdvo.c -- it tells the compiler that the code
+ is used, without using it since we want the code around while debugging.
+ It's also in a likely place to ask for the dump, so I think it's OK.
+
+commit b2d7928f195f6439ecd140e6280b958b8a1f534b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 14:48:59 2009 -0700
+
+ Use a static inline to replace if (0) to an unused stub function.
+
+commit 093f51646b2f2301c907e14d0ad4b1f80ff60a16
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 14:36:52 2009 -0700
+
+ Remove unused i830_output_type_names
+
+commit c774ef282bfb0c594479bbab3527fe5fda2a8559
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 20 14:29:17 2009 -0700
+
+ Remove dead mono cursor load code.
+
+commit 75c531b9652b3919ddbf51f8eec804e6bdbb2331
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Apr 17 14:03:39 2009 -0700
+
+ Rename EXA rendering functions to UXA, since we're keeping them post-EXA.
+
+commit 40dbba5cf710a6e392afca73965aa48fa3953d1f
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Apr 17 15:15:27 2009 -0700
+
+ Remove some dead i830.h struct members.
+
+commit 84f69081abaeef8b05cafb64d3102eb2abdf9a8e
+Author: Julien Cristau <jcristau@debian.org>
+Date: Thu Apr 16 14:27:15 2009 +0200
+
+ Require xserver 1.3
+
+ I don't think anyone tests this against an old server anymore.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 08ebde4715b87867184d42b60762cd774e151f5c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Apr 20 09:43:09 2009 +0800
+
+ fix overflow warning on videoRam
+
+ Note that pScrn->videoRam is an 'int'.
+
+ i830_driver.c: In function ‘I830ScreenInit’:
+ i830_driver.c:3019: warning: overflow in implicit constant conversion
+
+ Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
+
+commit 5a07ab502fe1e58e7e37fe554fb42d8d2c8c53ec
+Author: Ian Romanick <ian.d.romanick@intel.com>
+Date: Fri Apr 17 20:59:04 2009 -0700
+
+ DRI2: Respect the src and dst parameters of CopyRegion.
+
+ Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
+
+commit 2e3b95ed0197971e81ab7509245c899e96859d5b
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 18:54:19 2009 -0700
+
+ Increment version to 2.7.99.1
+
+ This is the number we want for any development snapshots along
+ what will eventually become 2.8.0. (Once we get to 'release
+ candidates' we'll bump this up to 2.7.99.901.)
+
+commit c9e174b31ae3b9a138ae696d563420a841062f57
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 18:52:38 2009 -0700
+
+ RELEASING: Note that --with-xserver-source is needed for make distcheck
+
+ I was always forgetting this without this reminder.
+
+commit 73c3be1aa033e8c5c7ee777eb2fd43c19668fa86
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 18:18:14 2009 -0700
+
+ README: Fix typos in chipset list, and point to how_to_report_bug web page
+
+ Thanks to Gordon Jin for these suggestions.
+
+commit c51dddb724a79a75491369a4c3e8b7b26231e7ac
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 18:07:17 2009 -0700
+
+ AUTHORS: Add Robert Lowery to the authors file
+
+ Rob got missed from my first scan since one commit lists his name as
+ just 'Rob' and 3 commits don't attribute him as author:
+
+ 83d304c61ad5fdc58b0a9309dbd1e5a3f6cd9b01
+ 7552d80e367fe38bbc594fe94abd649917fe54d5
+ 6eecef4fed8a21dfdabef42eb69fd150b96167b2
+
+commit 4b5edde5da4b3e955eb2d77004de81e47bec7f69
+Author: Robert Lowery <rlowery@exemail.com.au>
+Date: Wed Apr 15 18:03:31 2009 -0700
+
+ Fix typo in comment
+
+ Thanks to Robert Lowery for the sharp eyes on this one.
+
+commit 3fd5a1ecd1d5140ae07ccc279298bcadd515e97f
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 16:44:11 2009 -0700
+
+ RELEASING: Update instructions to reflect some minor process improvements
+
+ We've added a NEWS file now, so that needs to be updated for each release.
+
+ We're also now using tag names of just <version> rather than
+ xf86-video-intel-<version>.
+
+commit e1cace16a6130dcdd93965d2329a349d49200fa6
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 16:33:12 2009 -0700
+
+ NEWS: Add note about broken PAT code in some kernels
+
+ Hoping to cut off some false bug reports here.
+
+commit 9ffd1951d1f2fd2f53273d04ea29de050f07af55
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 16:14:44 2009 -0700
+
+ Add AUTHORS and NEWS to EXTRA_DIST
+
+ These new files don't do us much good if we don't distribute them in
+ our releases.
+
+commit e4cd9de2933ada3e2a4b43552729ae3a370128bf
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 16:14:03 2009 -0700
+
+ Add a NEWS files with release-notes for 2.7.0
+
+ It will be nice to have release-notes under revision control, as well
+ being able to document issues in an obviously time-sensitive file,
+ (as opposed to README where we were documenting some of this previously).
+
+commit 506c810f8f3db89048dda9777902f142ffeb86aa
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 16:10:52 2009 -0700
+
+ Clarify that the default acceleration is UXA if KMS is available.
+
+ Stale documentation considered harmful of course.
+
+commit b9716b836cb2b4569c90b81f344932ac668dc5bf
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 15:39:06 2009 -0700
+
+ Add a new AUTHORS file
+
+ This is a sorted list of everyone with more than 2 commits in the git
+ revision history. We also list some historical authors mentioned in the
+ man page, (with code presumably pre-dating the beginning of revision
+ history).
+
+commit 8deb3a3709a9aaa549be404566715a01246354d9
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Apr 15 15:38:11 2009 -0700
+
+ README: Remove almost all time-sensitive information
+
+ This was all very stale, and is better convered in intel.man. We replace
+ this with a list of pointers to where to get current information, (man
+ page, web site, and mailing list).
+
+commit 9b615a52671aacf34666f90ecfff98651ce6afe2
+Author: Li Peng <peng.li@intel.com>
+Date: Fri Apr 10 14:39:35 2009 +0800
+
+ Turn on front buffer tiling in KMS.
+
+ This code disabled front buffer tiling in KMS. Turn it on since kernel
+ handles all tiling now, this improves performance of x11perf -aa10text
+ from 97k to 286k on my 945GME.
+
+ Should help with #20761, if not totally fix it.
+
+ Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+ Signed-off-by: Li Peng <peng.li@intel.com>
+
+commit 053432991c812146f6e7c6f13c6ace55385c825f
+Author: Ma Ling <ling.ma@intel.com>
+Date: Mon Apr 13 14:27:35 2009 +0800
+
+ update manpage for BROADCAST_RGB property
+
+commit 62ba7211fe9b6aada125ebfe34cf7161e817ad6b
+Author: Ma Ling <ling.ma@intel.com>
+Date: Mon Apr 13 14:24:57 2009 +0800
+
+ set broadcast RGB mode for integrated HDMI output.
+
+commit 69388953ce889080d5f014123d89bf3eb45f3d8d
+Author: Ma Ling <ling.ma@intel.com>
+Date: Mon Apr 13 14:23:06 2009 +0800
+
+ set broadcast RGB mode for HDMI and TMDS from SDVOX output
+
+ Almost all digital TVs accept broadcast RGB values from 16 to 235 for each channel,
+ otherwise for those uncompensated videos, when RGB values are set from 0 to 255,
+ they will shows black and whiter clamping, which seriously degrades picture quality.
+ The patch will enable the broadcast RGB mode for hdtv according to user's setting.
+ It fixed bug #14486
+
+commit 6d345c49f693cc5cffaa00b94559d2afcb3a0864
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Apr 10 14:07:14 2009 -0700
+
+ Add a RELEASING file documenting the release process
+
+ Thanks to Jesse Barnes for the original recipe.
+
+commit 7e516b6d24d8c0c6549a9a60fcf487e3a1615020
+Author: Jesse Barnes <jbarnes@jbarnes-acer.(none)>
+Date: Wed Apr 8 16:38:08 2009 -0700
+
+ Silence warning in i830_dmi_store_field
+
+ Just add a dummy ret variable to shut up gcc.
+
+commit 620e97bbd6a811ad69b8ac94df1fe2c9edf65549
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Apr 8 15:49:00 2009 -0700
+
+ Don't enable kernel execbuf fencing w/EXA
+
+ If we enable kernel execbuf fence register management, it's best if the
+ kernel manages all fence registers. This works fine if the accel
+ method is managing pixmaps or doesn't use offscreen pixmaps. However
+ with EXA, pixmap accesses are done relative to the framebuffer BAR
+ mapping (pI830->FbBase) and the Screen pixmap address. So if we try to
+ set the screen pixmap to point at a GTT mapped (and therefore properly
+ fenced) address, later calls to intel_get_pixmap_offset() will call
+ into EXA, which will use the pseudo-random pixmap addr and the EXA
+ offscreen base addr (which is really just FbBase) to calculate the
+ offset. This will fail. So disable kernel fence reg management in the
+ EXA case (this is easier than adding proper EXA pixmap management to
+ xf86-video-intel, and makes more sense since we'll be removing EXA soon
+ anyway).
+
+ Fixes FDO #21027.
+
+ Also happens to fix FDO #21029 (as tested by Carl Worth <cworth@cworth.org).
+
+commit 0a0731c11d10392cdc55ecc04e4e3575c8b3fe57
+Author: Shuang He <shuang.he@intel.com>
+Date: Tue Apr 7 12:31:07 2009 -0700
+
+ Fix value for MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW
+
+ Since the change to scan-line based video sync, (rather than vblank-
+ based), we've only been getting tear-free video on one of the two
+ pipes. This fixes that bug by using the correct constant for waiting
+ on PIPEA.
+
+commit 940c2aad4d174b6609bdc49f8c99a4bc37926516
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Apr 6 14:36:33 2009 -0700
+
+ Don't clip video to CRTC in the case of textured video
+
+ Since we're not limited by a single overlay plane on a single pipe,
+ we want to not clip at all, (so that the correct video appears on
+ both pipes).
+
+ This fixes bug #20980 which shows a video spanning two pipes
+ being rendered incorrectly.
+
+commit 63b4b5efac936c674dedad8125a8dbac4f000908
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Apr 7 10:53:08 2009 +0800
+
+ quirk LVDS on ibase MB890 855GM board
+
+ fix bug #19529
+
+commit 5d9d9a2e466474a0508a15b294a91507ccb3ccc1
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Apr 6 14:02:08 2009 -0700
+
+ Fix new video sync-to-blank code for multi-head
+
+ We need to account for a non-zero Y offset for the CRTC. Without
+ this, we don't sync to the correct region, so tearing becomes
+ visible again.
+
+commit 3d4ee3cac1d63dfdf7b54c8ba577f3b77637499f
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Apr 6 11:31:20 2009 -0700
+
+ Remove support for 'auto'(-1) value of XV_SYNC_TO_VBLANK
+
+ We previously had a heurstic here where we would only sync to vblank
+ for windows that covered more than 25% of the screen. We don't need
+ this anymore since the new approach to sync, (WAIT_FOR_SCANLINE_WINDOW),
+ is not excessively costly for small windows.
+
+commit bc3312fd7c03d09a231dfebfe390fe668ad15d1e
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Apr 6 11:16:40 2009 -0700
+
+ Use WAIT_FOR_SCAN_LINE instead of WAIT_FOR_VBLANK
+
+ Either way, the goal is tear-free video playing. But waiting for
+ a scan-line window not only has the advantage of being cheaper
+ for small windows, but also avoids hanging the GPU in the case
+ of the pipe getting turned off, (by screensaver, for example),
+ while a batch is waiting for a VBLANK that will never occur.
+
+ This fixes that GPU hang.
+
+commit 6cd914ef315036ce8e91c7b6492994353e8ed2d8
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Apr 3 11:15:18 2009 -0700
+
+ Fix offset in begin_gtt_access case
+
+ Don't use bo->virtual in the begin_gtt_access case, use the framebuffer
+ mapping and bo offset instead.
+
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 13c730e003e805e19deee0996b2af30f69e54c4d
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Apr 1 15:12:55 2009 +0800
+
+ fix
+ 1.multiple instance
+ 2.memory leak
+
+commit fad714c40078d22fff82dc0692a344f66ddf9680
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Apr 1 10:11:35 2009 +0800
+
+ SDVO: fix output flag dumping for unknown type
+
+ Found by Hugo Jacques <hugo.jacques@verint.com>
+
+commit 00de1757dd5776962bdd4c8968181878c2ebf4c9
+Author: Hugo Jacques <hugo.jacques@verint.com>
+Date: Wed Apr 1 10:10:05 2009 +0800
+
+ SDVO: add composite TV out support
+
+commit 087f72e1f5d7d11b8795ba80a842874f5a9bb01d
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Mar 31 07:50:10 2009 -0700
+
+ Match GTT unmap with map in KMS rotation case
+
+ Missed this when the GTT unmap call was added. If we don't do this we
+ trigger an assertion in libdrm, since the buffer has never been mapped
+ normally.
+
+ Fixes bug #20943.
+
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 4f046af760b92c07f59664359453933fb5358e3d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Mar 31 13:49:44 2009 +0800
+
+ Disable LVDS detect methods
+
+ Both methods ACPI lid and SWF bit have issues in LVDS detect from
+ wider testing. Fallback to origin code.
+
+commit e964d4e53af3a47de6d09c884be1cc0044d03bea
+Author: Albert Damen <albrt@gmx.net>
+Date: Mon Mar 30 11:38:02 2009 -0700
+
+ Non-GEM allocations incorrectly force TILE_NONE (bug 20797)
+
+ With -intel 2.6.3 performance was very bad when using a non gem enabled kernel
+ (2.6.27) and EXA. For example sauerbraten ran with 4 fps and screensaver GLBlur
+ with 1 fps. With -intel 2.6.1 performance was good using the same kernel.
+
+ Git bisecting led me to commit f1ed73c1ef3e3daa9f695194dcc813167cbcb53d (in 2.6
+ branch) "Make i830_allocate_memory take tiling parameters" as first bad commit.
+
+ Using gdb I found tiling was set exactly the same in 2.6.3 as in 2.6.1, so that
+ was good (TILE_XMAJOR for front, back and depth buffers).
+ Looking further I found the line mem->tiling = TILE_NONE; (line 961 in
+ src/i830_memory.c) at the end of i830_allocate_memory suspicious, as
+ mem->tiling now already gets set via i830_allocate_aperture and some buffers do
+ have tiling. Removing that line indeed fixed the performance issue. Now
+ sauerbraten runs with 30+ fps and GLBlur runs smoothly.
+
+commit 51cf8a453c2bc2e8604bfc41a649e971c1ba5026
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Mar 30 11:27:56 2009 -0700
+
+ Require libdrm 2.4.6 for GTT unmap support
+
+ Need the new functions available.
+
+commit 8dabcc40747bfd478f296728741240241698f165
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Mar 30 09:53:40 2009 -0700
+
+ Tiling fixes, third set
+
+ Hopefully this concludes the fixes necessary to deal with the various
+ combinations of kernel and user level tiling. We have several cases to
+ handle:
+ 1) KMS (kernel handles all tiling)
+ 2) UMS w/memory management + kexec fencing (kernel handles all tiling)
+ 3) UMS w/memory mangement but no kexec fencing (userland handles tiling)
+ 4) UMS w/o memory management (userland handles tiling)
+
+ For cases (1) & (2) we can use GTT mapping, which will give us good
+ performance and take care of allocating fence registers as needed. It's
+ important *not* to have userland set up fence regs in this case, since
+ the kernel will be using all of them.
+
+ For case (3), we use the begin/end GTT map functions provided by libdrm,
+ in combination with pinning and fence register setup in i830_memory.c to
+ deal with tiled surfaces. This also gives us good performance and
+ correctness.
+
+ For case (4) we use the old style virtual mapping + offset for dealing
+ with surfaces; note that UXA doesn't seem to work in this configuration
+ regardless of these fixes.
+
+ Fixes bug #20803.
+
+ Reviewed-by: Eric Anholt <eric@anholt.net>
+ Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
+
+commit 375b2e40fcb17e94538a75392950e2533c1bb031
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Mar 25 11:13:52 2009 +0800
+
+ Disable LVDS config parsing from VBT for now
+
+ As wider tests showed that this doesn't work for all VBIOS, so
+ disable it for now and reenable it after we get reliable method.
+
+commit defa6971c6b639ab72d9d4c85c4607d5f852b2b0
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Mar 26 15:24:29 2009 +0800
+
+ enable UV half pixel
+
+commit 69c84f2c8204771b68f40ed64e64657237b54546
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 26 13:52:05 2009 +0800
+
+ gitignore intel_lid
+
+commit fe96e517699e37cc990a14dfb48b9611a02254ed
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 26 10:54:02 2009 +0800
+
+ xvmc: add missed vld g4i sources in Makefile and fix distcheck
+
+ Don't miss the vld shader programs for dist.
+
+commit 91886f82a1155ca24eb895f77678ea1edfccf9fe
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 26 10:51:05 2009 +0800
+
+ xvmc: move 965 mc media programs to shader/mc directory
+
+ Also include some missed g4i files in Makefile.am, fix shader build.
+
+commit ebcb64fdc8a45105f529d5e15c335514ecaf1a05
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Mar 25 16:11:33 2009 +0800
+
+ XvMC VLD extension support for G4X
+
+commit e6af995b24767815ab30364385768867e80605c2
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Mar 23 19:19:58 2009 +0800
+
+ KMS: hook up output properties for randr
+
+ This gets output properties from kernel, then hook them up
+ for randr. So we can control output properties through randr
+ like in UMS.
+
+ Signed-off-by: Zhenyu Wang <zhenyu.z.wang@intel.com>
+
+commit b5b377806422c9538fa9f846819ad253c1a50846
+Author: Ma, Ling <ling.ma@intel.com>
+Date: Wed Mar 25 14:39:46 2009 +0800
+
+ disable center mode for 965GM and G4X platform
+
+ When disabling VGA mode, usually we don't need to touch VGA center mode.
+ However because of hardware reason, for Cresline, Cantiga & Eaglelake platform,
+ we have to disable center mode as well. The patch fixed bug- TV Out strobing regression,
+ reported by Robert Lowery in intel-gfx@lists.freedesktop.org mailing list.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 74d0713e002a9781ed00fdd10eb6f75907ae796c
+Author: Kalev Lember <kalev@smartlink.ee>
+Date: Fri Mar 20 02:21:41 2009 +0200
+
+ Fix VT switch with XV overlay video enabled.
+
+ drm_intel_bo_unpin() was called with NULL argument.
+
+ Signed-off-by: Kalev Lember <kalev@smartlink.ee>
+
+commit b345b4e6adf00f8b2626e5c2563fc159e2295cc5
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Fri Nov 14 13:55:52 2008 +0100
+
+ clean up man page generation and remove all traces of the i810 driver
+
+ The i810 compatibility symlink has been broken since libpciaccess, so just
+ let it die.
+
+commit 48b91e066878db63a1558e4cd3e6d12ff9c49197
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Mar 20 12:33:22 2009 -0700
+
+ Don't manage fences part two
+
+ Don't try to clear fences that were never installed. Missed this bit in
+ the last fix for #20265.
+
+commit 28319d60aa2d793c209043c1ce2d38b14c66a4be
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Mar 20 13:14:15 2009 +0800
+
+ Add a lid status test program "intel_lid"
+
+commit 636d252f3b1eac687f7b11952e949c383cb86ed4
+Author: Jesse Barnes <jbarnes@nietzche.localdomain>
+Date: Thu Mar 19 13:25:29 2009 -0700
+
+ Don't install fences if the kernel is managing them
+
+ If execbuffer is setting up fences, it also means that the kernel is
+ managing them at pin time, so installing one in the 2D driver in that
+ case is an error. The fence should stick around as long as the buffer
+ is pinned (the kernel won't steal these), though it will be freed at
+ leavevt and re-allocated at entervt.
+
+ On 965+ chips, the pin ioctl will *not* install a fence reg, but that's
+ also ok because all 965+ operations include tiling bits, and sw
+ fallbacks will be protected by prepare/finish access hooks, which will
+ either access the backing store or use the GTT, which will ensure proper
+ fencing at fault time.
+
+ Fixes #20265.
+
+ Acked-by: Eric Anholt <eric@anholt.net>
+
+commit d92e6158c86d7da873913461ef7e828bd411d8c4
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Mar 19 10:06:03 2009 -0700
+
+ Revert the rest of the EXA_VERSION_MAJOR bump
+
+ This was mistakenly added in the unrelated change in revision
+ fe08b81d0f5d6f96e0124e6286bd24aba6e140ad
+ and wasn't completely reverted in the later revision
+ 78a60e1b66fe2e8449702dd43d9b062d279af8f1
+
+commit 85e6b528582c2397ee9eb2132cd0d05ce12eb43d
+Author: Ma Ling <ling.ma@intel.com>
+Date: Thu Mar 19 09:10:19 2009 -0700
+
+ Set SSC frequency for 8xx chips correctly
+
+ All 8xx class chips have the 66/48 split, not just 855.
+
+ Fixes #18358.
+
+commit bedc894a565ce3c7a50990e3f78953fc2432ad40
+Author: Jesse Barnes <jbarnes@nietzche.localdomain>
+Date: Wed Mar 18 20:19:44 2009 -0700
+
+ Re-enable disabled outputs after rotation
+
+ The server may have made a DPMS call before doing rotation, so after we
+ do the mode set with the rotated framebuffer, we need to re-enable the
+ corresponding output(s).
+
+ Fixes bug #20573.
+
+commit 6deb26ae7bd796e88a5dd90df5f6c35fbc44e798
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Mar 18 09:36:58 2009 -0700
+
+ Create known output configuration at EnterVT time
+
+ Since we added the pipe A force quirk (leaving pipe A on all the time),
+ DPMS calls to disable it have silently returned, leaving the pipe on.
+ If another driver (like vesafb) has enabled it, we may end up with a bad
+ configuration, leading to hangs or blank screens at VT switch time.
+
+ Fixes bug #19603.
+
+commit 7c94227dd4fa2164bebb36234958053bf1d26c12
+Author: Ma Ling <ling.ma@intel.com>
+Date: Tue Mar 17 10:33:15 2009 +0800
+
+ Use best PLL timing values for G4X platform
+
+ construct function to find precise parameters from internal spreadsheet
+ table on G4X platform.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 48db5bde9298f1126dfb42f4be8a3d61166abfd8
+Author: Ma Ling <ling.ma@intel.com>
+Date: Tue Mar 17 10:41:02 2009 +0800
+
+ Define documented PLL timing limits for G4X platform
+
+ These timings on G4X platform were specified by internal spreadsheet from the chipset group.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+
+commit 78a60e1b66fe2e8449702dd43d9b062d279af8f1
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 16 08:41:52 2009 -0700
+
+ Revert EXA_DRIVER_KNOWN_MAJOR bump
+
+ This was mistakenly added in the unrelated change in revision
+ fe08b81d0f5d6f96e0124e6286bd24aba6e140ad
+
+commit 1a6e70cd98abc63f24f710819961c24601afb59b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Mar 16 10:19:39 2009 +0800
+
+ TV: fix contrast and saturation for 945G
+
+ Bug #20670.
+
+commit 4e95327323e3d081b565147f7738eb49c28542bc
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Mar 16 09:30:22 2009 +0800
+
+ TV: force TV as connected with TV_Connector option
+
+ In order to bypass failure in TV load detect, TV_Connector option
+ will always force TV as connected with user specified connector type.
+
+commit d9dbdb325543bd747cd1bfb3e1142ea6daf2b637
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 13 15:48:40 2009 -0700
+
+ Add shave support, enabled by default.
+
+ This cuts down build system noise so that warnings are more visible. The
+ old style output can be reenabled for build system debugging using
+ "make V=1", or --disable-shave at configure time.
+
+commit c3a82106a1a1a94c9e1e465c7dc0d828c1cbf50d
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 13 15:29:45 2009 -0700
+
+ Move contributed m4 (dolt) to a subdirectory so we can include it with others.
+
+commit e0aba04da0323efc079ce0a2b78139c4d0d49fa5
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 13 13:37:35 2009 -0700
+
+ Add DCC register dumping.
+
+commit a57814cc13f4287eccaf1906963b80c9205c680c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 13 13:20:35 2009 -0700
+
+ Add dumping of 915 and 945 fence registers.
+
+ The debug dumper functions can now return NULL to indicate no output, so
+ we get appropriate results on 915, 945, and 965.
+
+commit 8166a7ff5c2c1e3736dd06a8453c4e4d769d8b75
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 13 13:12:33 2009 -0700
+
+ Add PGETBL_CTL to the debug output.
+
+ It's nice to know when it gets stomped on.
+
+commit fe08b81d0f5d6f96e0124e6286bd24aba6e140ad
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 2 07:39:41 2009 -0800
+
+ Use CopyArea to load glyphs from per-glyph pixmap to cache pixmap
+
+ With glyphs sitting in per-glyph pixmaps, there's no reason to use the CPU
+ to move them to the cache pixmap, and lots of reasons to use the accelerator.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 2026c57cf0a352d9e6f9d208cfb7d4d550614477
+Author: Kalev Lember <kalev@smartlink.ee>
+Date: Fri Mar 13 21:32:08 2009 +0200
+
+ Fix Xv crash with overlay video.
+
+ Bug #20585.
+
+commit 3ef9d85371a97ea5baee0c47787b3bb3cdaf5135
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Mar 13 12:21:34 2009 -0700
+
+ Use UXA when KMS is active
+
+ EXA doesn't support KMS, so force UXA on if KMS is detected. And warn
+ the user if they've specified something other than UXA in their
+ xorg.conf.
+
+ Fixes bug #20620.
+
+commit dc3ff0b514b609448025680778f0e95e1980a5d8
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 12 16:32:02 2009 +0800
+
+ Revert "SDVO: Switch control bus only before DDC access"
+
+ This reverts commit ddedf19f889da2ce6d69a3afce4665e2245682fa.
+
+ After i2c STOP, control bus will return back to internal
+ registers. So this brings back to origin code that we switch
+ to DDC bus before START. But it's ideal to only issue DDC
+ bus switch after STOP, not before every START, which might eliminate
+ some complains from SDVO device, that will be another patch later.
+
+commit c6b0135d209bdad3dbc641d0e264596eaf6f99d3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 12 16:31:01 2009 +0800
+
+ SDVO: reset privates before output setup
+
+ For multifunction encoder, forget to reset these values
+ will cause wrong output type in later mode setting
+ operations.
+
+commit 28e7f0d71fa09e15a68ab4f0de169474b6235093
+Author: Dan Nicholson <dbn.lists@gmail.com>
+Date: Tue Mar 10 20:16:03 2009 -0700
+
+ Fix dist of xvmc sources
+
+ The XVMC AM_CONDITIONAL is only needed around the library expression.
+ None of the other definitons will cause anything to be built without
+ libXvMC, but they're needed for 'make dist'.
+
+ Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
+
+commit 73db44e7ac524e84e5f0fda2d60069a9e954ad1b
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed Mar 11 11:10:57 2009 -0400
+
+ Drop Legacy3D option, only use fixed texture space with non-gem.
+
+ With this change, we always expect the 3D driver to use GEM textures
+ when the 2D driver uses GEM. When GEM is not available or disabled,
+ we fall back to legacy fixed textures.
+
+commit 2fcf4fcccfe7cfa1425985d21a144137eca07f4e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Mar 10 14:21:36 2009 +0800
+
+ SDVO: fix pixel multiplier setting for TV
+
+ We should use preferred input timing's clock for correct
+ pixel multiplier setting, otherwise we might get inconsistent
+ multiplier setting on pipe and SDVO device for some modes.
+
+commit fb6e00f40f713a87c760fc7603159ed11ea9b0d5
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 9 20:06:30 2009 -0700
+
+ Fix XV with non-GEM kernels by allocating a larger fake bufmgr.
+
+ Ideally we'd not be using the EXA offscreen memory manager and just hand all
+ that memory to the fake bufmgr for non-GEM, but the fake bufmgr's too slow for
+ that, at least currently. So compromise and take enough memory that it will
+ succeed at XV allocations but hopefully not anger tiny-aperture systems too
+ much.
+
+ Bug #20563.
+
+commit dc12c4b3eb297b2f225409eacf1f3cd521453ab6
+Author: Eric Anholt <eric@anholt.net>
+Date: Sat Mar 7 23:22:54 2009 -0800
+
+ Flip the update_dri_buffers test around to only run when DRI1 is active.
+
+ Fixes segfaults at startup with DRI2 and load detection, or with DRI disabled
+ entirely.
+
+commit 646e12a9783d1d48ef21841f0909287a876731a4
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Mar 9 10:59:36 2009 +0800
+
+ typo in intel.man
+
+commit 73aa23d9150121a4e4b70a78cab910acd164abf5
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 5 13:06:05 2008 -0800
+
+ DRI1: Update sarea (and other information) when CRTC configuration changes.
+
+ Bug #14423.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit abb213d933ac0d808fc10d4f8d88d7b8cef76346
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 6 14:33:46 2009 -0800
+
+ Document the UXA AccelMethod.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 568297d327cc321f1186afc54b38d08db3f2914d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 22 17:08:19 2009 -0800
+
+ Don't allocate the render power saving context in KMS mode.
+
+ That would be the kernel's job if it chooses to do it.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 4e1144108424a4525bbd97c3d5a56de06760bdd9
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 6 14:30:05 2009 -0800
+
+ unused variable warning fix.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 043a76a040d4576b7a8397dca805466a99bfcdd6
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 6 14:29:22 2009 -0800
+
+ clean up arguments to i830_allocate_framebuffer since zaphod removal.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit b23f57b310b693f56af273526383221a4f8b96f5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 22 17:17:09 2009 -0800
+
+ Use REGION_EQUAL in place of a local implementation.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 6b61f9945f54df7469f2b2d702b621d4d6064c3f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 22 17:19:04 2009 -0800
+
+ nuke unused define.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit c3a747cb54acc1b037b559313e6a2113ae2ac4c7
+Author: Dan Nicholson <dbn.lists@gmail.com>
+Date: Wed Nov 26 09:57:24 2008 -0800
+
+ man: Put option defaults on separate indented line
+
+ The groff .IP macro is used to put the option defaults in a new indented
+ paragraph so they are separated from the explanations.
+
+ Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
+ [anholt: hand-applied due to conflicts. mistakes are my own]
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit d2af21a66d7e1d1dd62c6aa8fb41d3fd6045bcd7
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 27 23:38:00 2009 -0800
+
+ Remove configurable support for disabling XV.
+
+ google shows one instance of this being used a year and a half ago.
+
+commit 755757669f0cad670cfa084d33d7c3e928d27855
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 27 22:57:15 2009 -0800
+
+ Remove configured SW cursor support.
+
+ Any time we actually need SW cursors, it gets enabled automatically.
+
+commit 917b20ead3cacf1e88314f20edde6a02b97b96d7
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 27 23:01:28 2009 -0800
+
+ Remove StolenOnly support.
+
+ We rely on having AGPGART present to successfully allocate video memory as
+ we configure it by default. Admit that fact, and remove support for
+ non-AGPGART/KMS setups.
+
+commit 73b7190421132ad73179c3fb7bb0e06c427dce5c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 27 22:51:22 2009 -0800
+
+ intel: Nuke shared-entity support (zaphod mode).
+
+ It's been broken for years now, and KMS offers a much better chance of getting
+ this working sensibly without making a mess of the 2D driver.
+
+commit e9d6bbbe0b41e29c58a79844decd81771da85dd4
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 3 16:45:03 2009 -0800
+
+ remove more page flipping leftovers.
+
+commit 1cc9b1423c5df591c615ef9588b6eefd81448f80
+Author: Lukáš Hejtmánek <xhejtman@ics.muni.cz>
+Date: Fri Mar 6 14:44:03 2009 -0500
+
+ Fix another VT switch leak
+
+ The batch_bo buffer object is reallocated on enter VT, so we need to
+ unref it on leave vt.
+
+ Signed-off-by: Lukas Hejtmanek <xhejtman@ics.muni.cz>
+
+commit 67fef27f4b76490be085d232aba0ca9cbb3c5e59
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Mar 6 09:40:07 2009 +0800
+
+ Xv: free tearing on textured video
+
+ Add an Xv attribute XV_SYNC_TO_VBLANK which has three values -1(auto), 0(off)
+ and 1(on) to control whether textured adapter synchronizes the screen
+ update to the vblank. The default value is -1(auto).
+
+commit 0d20bbbc2005a51f427a9ae6b6a66dbbb101dbab
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Feb 19 14:24:24 2009 +0800
+
+ SDVO: handle multifunction encoder (try 2)
+
+ For SDVO encoder that advertise multiple functions,
+ we have to get attached display to determine current
+ output, and update output's name according with
+ current type.
+
+commit d4c64f01b9429a8fb314e43f40d1f02bb8aab30f
+Author: Lukas Hejtmanek <xhejtman@ics.muni.cz>
+Date: Wed Mar 4 17:33:27 2009 -0500
+
+ Fix serious memory leak at Enter/LeaveVT
+
+ This fixes huge memory leak at each VT switch (about 600 BOs + 6MB
+ of RSS of Xserver).
+
+commit 095a001f755201d3c19335b67a84c57b1d080a83
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed Mar 4 17:10:24 2009 -0500
+
+ Use drmSetMaster() and drmDropMaster() in enter/leave VT
+
+ This allows multiple X server to use DRI and makes it possible to run
+ multiple X servers under KMS. This requires a 2.6.29 kernel to work.
+ On older kernels it will just log a warning and DRI will fail to
+ initialize for the second X server.
+
+commit 14bb61e0c2e28725a2f6167d3263649bc845be18
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Mar 2 16:55:45 2009 +0800
+
+ SDVO: only check digital monitor when EDID exists
+
+commit 42e34e90e2e4048b38481cab61cef46f932eada7
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Mar 3 22:55:35 2009 +0800
+
+ TV: add property control for TV attributes
+
+ This is based on Jesse's origin patch for bug #12763.
+ But export integer range to user instead of hardware float
+ point format, and fix different real format on 965G and 945G
+ for contrast and saturation.
+
+commit aa9da5e393c804019720503fe58bdd247fe1eabd
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Mar 3 20:26:19 2009 +0800
+
+ TV: add option to set TV connector type
+
+ This can let user override non-stable driver TV load detect,
+ and set connector type manually, e.g for s-video to component
+ converter, this patch seems must needed to use HD modes.
+
+commit ab1ef05cc0fd5ba9768c26cc51bc2c7b52baa45f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Feb 19 20:23:02 2009 +0800
+
+ TV: update output and crtc modes when TV format change (try 3)
+
+ This is to fix bug #16566, change TV format will cause BadMatch
+ error when crtc config apply. Everytime when we change TV format,
+ we may generate a new list of modelines as TV clock changed. After
+ randr get info request, new modelines will be probed and randr output's
+ modes will be renewed too. But crtc's mode failed to be updated,
+ as it never can find a matching mode now within new modes list.
+ So get info will return an invalid crtc's mode, later set crtc
+ config will pass that info, and xserver catches a bad match.
+
+ This patch trys to refresh output modes and setup crtc's mode
+ with new modelines in TV format change. So get info would be
+ sure to turn valid crtc mode that reference in current new modelines.
+
+commit a67a911a93ff3c0b3d2e6f6fb20c0787b9d4d41d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Feb 19 01:00:33 2009 +0800
+
+ TV: sort input mode lines
+
+commit bd360e7517835626bee54bec968cdc78908c6545
+Author: Adam Jackson <ajax@redhat.com>
+Date: Mon Mar 2 10:33:35 2009 -0500
+
+ KMS: Wire up output DPMS.
+
+commit 2d0aa553609a0e64fa4b2e755b9b1e244e5c3fa1
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Mar 2 15:26:44 2009 +0800
+
+ Skip LVDS config parsing on pre-9xx chips.
+
+ 855GM laptops seems pretty broken when parsing this block.
+
+commit 55359ef9ab0a2be42a55e0279835f76a191d6c74
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 27 09:02:30 2009 +0800
+
+ Update driver feature block definition for missed fields
+
+commit 38a7683561cee7fffab174c2a166bfd51b51ba27
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 27 22:55:44 2009 -0800
+
+ warnings cleanup
+
+commit 5bfd73cd31ba197a62f549cdbad1a1270b571027
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 27 19:09:49 2009 -0800
+
+ Only allocate pixmaps aligned for tiling when requested by DRI2 GetBuffers.
+
+ This saves massive quantities of memory on pre-965 since the DRI2 tiling
+ enable caused the minimum size of any pixmap to be 1MB.
+
+commit f53bdad1412f841075232455837578f00709c6ef
+Author: Shaohua Li <shaohua.li@intel.com>
+Date: Mon Feb 23 15:19:23 2009 +0800
+
+ Intel video driver patch
+
+ This is the intel video driver patch for a new chip, which is G33-like
+ and has some clocking setting related register changes. This patch adds
+ the pci id and DPLx/FPx register changes.
+
+ The gtt tool should just work to me, as the chip hasn't any changes
+ against G33 on this side.
+
+ Signed-off-by: Shaohua Li <shaohua.li@intel.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 22dc9a5580d77cc4707bfb8e19474e611a06ae9a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 24 18:22:20 2009 -0800
+
+ Fix UXA for server 1.4.
+
+commit cb1f7ec0876746c1b52b63cdb508544e9e4e32e3
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 24 21:23:59 2009 -0800
+
+ uxa: Fix composite fallback debug printing of main memory versus bo info.
+
+ It was just printing whether it was a pixmap (it is), instead of whether the
+ pixmap was offscreen.
+
+commit 635eaa511f28fb673fe306e46ed5370e78a8a534
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 24 21:48:11 2009 -0800
+
+ Regard the screen pixmap as suitable for acceleration.
+
+ With UXA on the fake bufmgr, the screen pixmap doesn't have a BO and so
+ no acceleration was occurring.
+
+commit 70e0261208654c6c875ad462da2734c6aa9eeb96
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 24 20:54:05 2009 -0800
+
+ Disable fb resizing for DRI1-only server so that DRI1 can initialize.
+
+commit d7aa330db31100b7cb54d8165f9a4b94329ece32
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 24 20:34:10 2009 -0800
+
+ Fix up i915 composite and common solid/copy code to use check_aperture.
+
+ This could fix complaints about binding BOs and resulting failure to render.
+
+commit a625a07022ea7f6757b288fcc2ffb9e27c7f8341
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Wed Feb 25 16:48:22 2009 +0800
+
+ XvMC: fix broken xvmc on 965
+
+commit f6d8ae69b0f97e696c142f06c8038f336ed024f9
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Feb 25 09:57:00 2009 +0800
+
+ Use LVDS config in Driver feature BDB for integrated LVDS check
+
+ The LVDS config bits in VBT driver feature block is used by vendor
+ to identify the board implement of integrated LVDS/eDP or SDVO LVDS.
+ And video bios uses these bits for LVDS enabling or not. So check
+ these bits for integrated LVDS might eliminate more quirks.
+
+commit 8718551f14e064b461e80a583597f0ea9fb8ca9f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Feb 25 09:54:03 2009 +0800
+
+ Update LVDS config bits definition in driver feature block
+
+ ALL_LVDS is actually not defined before and include GM45.
+ Embedded DP bit will be used for newer chips.
+
+commit 9d8e5c21a1688b915bf39261d4c3b0bf2906daef
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 24 14:05:15 2009 -0800
+
+ Fix distcheck from drmmode_display.h deletion.
+
+commit f4e2f522a5c5b03ea530b9eb67e9d1a9a96274ce
+Author: Eric Anholt <eric@anholt.net>
+Date: Sat Feb 21 20:36:58 2009 -0800
+
+ Don't do AdjustFrame in KMS mode.
+
+ This was hit by xv86vm's SwitchMode path, and for that the CRTC offsets
+ get set at mode setting time anyway.
+
+commit 170f00e161931fdaa8c2812fc710649e1d6d977a
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Feb 24 14:07:23 2009 -0500
+
+ Remove a handful of unused variable warnings.
+
+commit a6b31f38ebf470c61de0e10b0ce2af0d7ee1684b
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Feb 24 13:58:20 2009 -0500
+
+ Update kms to work with drmModeModeInfo API update.
+
+commit 13ee9402e9822d6f57e3ebcc5ae658ce8322118e
+Author: Adam Jackson <ajax@redhat.com>
+Date: Mon Feb 23 15:44:26 2009 -0500
+
+ Limit CRT DAC speed better.
+
+ Verified against the public docs for i8xx parts, although not 9xx yet.
+
+commit 668b2352a47bcfba75fe0492a5805726222755eb
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Feb 23 13:31:51 2009 -0800
+
+ Revert "Limit CRT DAC speed better."
+
+ This reverts commit 8fd0e46571c7ba15c05f0a759113f8ca842c76a2.
+
+ This doesn't even build. Please try again.
+
+commit 8fd0e46571c7ba15c05f0a759113f8ca842c76a2
+Author: Adam Jackson <ajax@redhat.com>
+Date: Mon Feb 23 15:44:26 2009 -0500
+
+ Limit CRT DAC speed better.
+
+ Verified against the public docs for i8xx parts, although not 9xx yet.
+
+commit 73bc7f113969834d00cd92be8374dbadc62f96a9
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Mon Feb 23 15:16:51 2009 -0500
+
+ KMS: Fix bug that prevented EDID data from getting propagated.
+
+commit ef952760551ad15cb9f63025d1e087645949a227
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Sun Feb 15 22:10:42 2009 -0500
+
+ Use stat() and the dev_t to find the drm device filename.
+
+ Simpler and more robust. Works when we haven't set the device PCI ID,
+ ie when not going through the legacy DRI module.
+
+commit 81c652e9a666a7459bcc5217c8a5ec518b6e00da
+Author: Helge Bahmann <helge.bahmann@secunet.com>
+Date: Sat Feb 21 10:10:04 2009 -0800
+
+ Move disable_render_standby to EnterVT instead of startup.
+
+ Otherwise, with a pre-2.6.28 older kernel the disable would be lost at
+ resume time and cause hangs.
+
+ Bug #20214
+
+commit 0621ba12a3b694720e67a49b25ca52f0e09b3802
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Feb 18 13:32:44 2009 -0800
+
+ uxa: Ask for BOs ready for rendering for pixmaps.
+
+ The assumption is that we're almost always accelerating our drawing to
+ new pixmaps (fill, copy, etc.).
+
+commit 5018d0f16cb8b44c743b5b37d194fe806d955568
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Fri Feb 20 15:34:29 2009 -0500
+
+ KMS: Hook up rotated shadow buffers.
+
+commit beca598bc2848093b710bd47828d622205d273df
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Fri Feb 20 11:08:51 2009 -0500
+
+ Access the Xv buffer through the GTT for the non-KMS case.
+
+commit e97e2571703e3d6188bf18f211b793fc50383f9c
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Thu Feb 19 16:41:49 2009 -0500
+
+ Fix i915 textured video to work with the i830_memory -> bo change.
+
+ Forgot to update i915_video.c in 872aadc7102bd5131e1582ede081e22672911ba2.
+
+commit 96da26b6813a8c1da8a43036c375aa0d2bb70f16
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Thu Feb 19 16:40:19 2009 -0500
+
+ Dont allocate overlay registers in KMS mode.
+
+commit 872aadc7102bd5131e1582ede081e22672911ba2
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed Feb 18 17:26:06 2009 -0500
+
+ Make Xv used a buffer object instead of i830_memory.
+
+ We still pin the buffer object in case of overlay, but for textured video
+ we're now no longer using i830_memory for Xv anymore.
+
+commit 527e8177cde3abbabbcdccee0dbc0dcc0068a1be
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Feb 18 11:26:58 2009 +0800
+
+ bios_reader: parse driver feature BDB
+
+commit 62ca1c479825ffa0e9cf444b4e25080150faa45b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Feb 18 10:49:00 2009 +0800
+
+ Fix SDVO mulitiplier setting for 945G
+
+ Wrong SDVO multiplier setup has been slipped
+ in SDVO TV patch. Thanks Michael Fu to point this out!
+
+commit 723b6065093adb56a2d7204bd990ceae41bfafc9
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Feb 17 13:48:04 2009 -0500
+
+ KMS: Hook up crtc::gamma_set.
+
+commit 506bbb8341c052499057834a669b82787454b426
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Feb 16 14:09:49 2009 +0800
+
+ Safely init SDVO found variable
+
+ Found by Michael Fu for my last SDVO detect fix.
+
+commit 9d464bd5b0d2724f5edb26e859888ceb6a248f9b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 13 11:15:48 2009 +0800
+
+ Fix SDVO/HDMI detect
+
+ SDVOC detect bit is only valid for HDMIC.
+ And for SDVO devices, SDVOB detect bit should be used
+ to probe all possible SDVO outputs.
+
+commit 48445d2e939328495b4abe0fb7e579dfcef727bb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 13 11:11:18 2009 +0800
+
+ SDVO: remove ForceSDVODetect option
+
+ Which is just a hack to hide our SDVO detect drawback,
+ we will have SDVO/HDMI detect fix later.
+
+commit ddedf19f889da2ce6d69a3afce4665e2245682fa
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 13 10:09:42 2009 +0800
+
+ SDVO: Switch control bus only before DDC access
+
+ Instead of set control bus switch before every i2c start,
+ just set once before doing DDC. This should eliminate some
+ encoders returning error during that.
+
+commit f1ca56e17d0ecd4f1299061a6b3272bfd289e123
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 13 10:02:02 2009 +0800
+
+ SDVO: Fix TV support
+
+ As SDVO TV uses SDVO_TVClkIn from SDVO encoder for clock reference,
+ it needs to generate proper PLL for current input clock. This uses
+ fixed PLL table from vbios for this. And possible sdvo mulitiplier
+ has to be setup correctly. This makes TV output stable on my 945GCLF2
+ board with NTSC-M format.
+
+commit acde0ef683d6ec33d0b478923ffb11bd6785798f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 13 09:53:57 2009 +0800
+
+ SDVO: fix CREATE_PREFERRED_INPUT_TIMING command
+
+commit 824b2f0c5530c3196901c961757e6677b042caf3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 13 09:50:45 2009 +0800
+
+ SDVO: fix usage for SET_TV_FORMAT and GET_SDTV_RESOLUTION_SUPPORT command
+
+ They both needs parameters.
+
+commit 62c0c2f5549a51c5df209f7353a19ca301f221be
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 13 09:48:34 2009 +0800
+
+ SDVO: fix error in modeline and DTD convert
+
+commit 37c67088a887e6380571e6eec8a8f058e3e24717
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Feb 11 15:15:27 2009 +0800
+
+ SDVO: check EDID info for DVI-I
+
+ For SDVO DVI-I, check EDID info for digital output,
+ otherwise mark it to be disconnected as analog output
+ is driven by VGA then.
+
+commit 38079bc0f1038da77048bbf6e5c10758f9fb8a55
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Feb 11 14:41:58 2009 +0800
+
+ SDVO: Fix for HDMI encode and audio setup (try 5)
+
+ SDVO HDMI encode and audio is not setup in detect,
+ which fails in hotplug case for HDMI audio. Fix to
+ check current encode type and set flag for HDMI audio
+ enabling.
+
+ Check and set HDMI encode state in get_modes.
+
+commit 3012d85cc5eb58c2447e93c05c39dc14feaae988
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 10 18:47:28 2009 -0800
+
+ uxa: Fix breakage from UXA_FALLBACK conversion from "do {} while (0)" construct.
+
+ Thanks to keithp for post-commit review.
+
+commit 5009127de7d9527ae329d1c2fbc7283648bde2e6
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 10 18:23:35 2009 -0800
+
+ uxa: Fix driver against fbDoCopy -> miDoCopy change in the server.
+
+commit b53977f4c53c7c8f562f909e985b8d5a7b2526f3
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 10 18:22:46 2009 -0800
+
+ uxa: Fix failure to --amend in further changes in previous commit.
+
+commit 5212ec6515c6562f66b86fc16928b601bf04e49b
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 10 15:35:20 2009 -0800
+
+ uxa: hook up the fallback debug to the driver's fallback debug option.
+
+commit 3aa8591abfbe8db0f13912910c850fdd748808df
+Author: Ma Ling <ling.ma@intel.com>
+Date: Fri Feb 6 09:14:15 2009 +0800
+
+ Don't disable vga centering bit.
+
+ commit id b9f5915ce812144ffd9d2aa42e8ba856129c35e,
+ which resolved bug #17235, but generate new regression-bug #19715.
+ This patch intends to resolve bug #17235, and avoid regression as well.
+ We have successfully re-tested it for bug #17235 and #19715 respectively.
+
+commit 9fe5fca3fe761a4f11857d9766138a60f471a9e6
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Feb 4 06:00:39 2009 +0800
+
+ TV quirk for HP Compaq nx6310
+
+commit 5c370091620b38447172ebeffbc6ed3256e86c9d
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Mon Feb 2 12:02:00 2009 -0500
+
+ Fix front buffer memset() for non-KMS case.
+
+ Missed the pI830->FbBase condition when removing the KMS hook.
+
+commit 2013799b20599a58de48cb21a5a389e898a58af1
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Mon Feb 2 11:51:47 2009 -0500
+
+ Un-revert the I915_SETPARAM_NUM_USED_FENCES commit reverted by accident.
+
+ Oops, my bad. Reverted 8d4bc36fae50b09a73ba2cfab920adb32141a358
+ since my kernel doesn't yet have the new param, committed
+ the revert by accident.
+
+commit 127330bfd53ac7571bdd12a551142528b972893f
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Mon Feb 2 11:02:59 2009 -0500
+
+ Fix last-minute "cleanup" that broke the patch.
+
+commit 0cb87ccfe97b0e016e47dcf236fd5ce78dddfc4b
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Fri Jan 30 17:53:03 2009 -0500
+
+ Implement front buffer resize for KMS.
+
+ This adds back the resize hook so we can resize the front buffer under
+ kernel mode setting as well.
+
+ The patch also pulls the drmmode_* structs from drmmode_display.h into
+ drmmode_display.c and eliminates the header file.
+
+commit 66bc44e8f9a0505c0b11b8042243ca74079da85f
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 27 15:43:58 2009 -0800
+
+ dri2: Use modesetting's master fd instead of opening our own non-master.
+
+ This fixes failure to auth DRI2 clients under KMS.
+
+commit 8d4bc36fae50b09a73ba2cfab920adb32141a358
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jan 26 17:14:06 2009 -0800
+
+ Support tiled back/depth on 915-class hardware with DRI2.
+
+ Set alignments, tile settings and flags correctly in the 2D driver to support
+ tiled rendering. UXA's create pixmap function currently assumes the worst
+ about the alignment constraints; that should probably be fixed. Some of the
+ 1M alignment fixes could probably be done more cleanly as well.
+
+commit 6c0ca1676bf60529dd331cc739abdf68fa9e918d
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 21 15:52:02 2009 -0800
+
+ Don't forget the new state bos in check_aperture.
+
+ They're tiny so it shouldn't have been a problem, but play it safe. This is
+ another <5% loss on top of the previously reported value, bringing the whole
+ series to about 8%.
+
+commit 57a02b50c60c10a25ff0f3cd93af9f37fa0d1b11
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Jan 26 14:58:28 2009 -0800
+
+ Fixup bogus VBT modes when detected
+
+ Several VBT modes out in the wild have H or VSyncEnd values greater than
+ the H or VTotal value. This clearly ends up creating a bad mode,
+ causing some panels to either ignore the timing or display some sort of
+ corrupt image.
+
+ Check for these cases and fix them up by default, making things work for
+ several Dell and Sony machines.
+
+ Fixes FDO bug #17292.
+
+commit e20e1cf76fb00ba4f933a1ed6d1a4896be346c91
+Author: Bill Nottingham <notting@redhat.com>
+Date: Sat Jan 24 08:36:20 2009 +0800
+
+ Quirk MSI IM-945GSE-A LVDS, TV outputs.
+
+ The IM-945GSE-A claims to have a TV output, and always claims a connected
+ LVDS output. It has neither.
+
+commit 05ff561234cc2b93fe1ea2a35041fa2e119a7e38
+Author: Vincent Mussard <vmussard@free.fr>
+Date: Sat Jan 24 08:33:16 2009 +0800
+
+ quirk for AOpen MP45
+
+commit fbf003ef2767a1a9f5e4064f04a17992030d8f5c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 5 17:27:13 2008 -0800
+
+ Move i965 render sampler state to BOs.
+
+ This eliminates the pinned memory allocation for 965 render state.
+
+commit befd4ad8beae39377f804e06c7cbd926ec4251db
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 20 14:43:08 2009 -0800
+
+ Move i965 render kernels to BOs.
+
+commit 5d705de5d11297f4d6bd5237fb67619e703745bc
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 5 15:30:35 2008 -0800
+
+ Move 965 render unit state to BOs.
+
+ This is a first step in a series of changes to avoid requiring a pinned object,
+ which gets in the way of doing non-root KMS. This change appears to result in
+ about a 2-6% loss in x11perf -aa10text, which better algorithms in libdrm could
+ make up for (it hasn't really had to deal with code this bad before).
+
+commit 64b08ed5ad46ccd76964972e39bfed8721a920aa
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 20 17:13:52 2009 -0800
+
+ Remove 965 render wm scratch space, which was just unused.
+
+commit f126aabdf8952177bb15f392041da7a7094eb31b
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 21 12:52:36 2009 -0800
+
+ Fix build with server 1.4.
+
+ Debian "unstable" is still stuck with this ancient version.
+
+commit 253b8db298f38676e47dc902534465054f7b58b8
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Jan 21 09:02:13 2009 -0800
+
+ Don't run in KD_TEXT mode even with KMS
+
+ Leaving the VT in KD_TEXT mode keeps the kernel's blanking code active,
+ so when a DPMS event happens, the fb console is restored rather than X's
+ configuration. On the downside it means the kernel won't print messages
+ in the background, which would be visible if a panic or emergency switch
+ occurred. The proper fix here is a new kernel mode, which we can move
+ to when ready.
+
+commit 131b414feb2ecabe31b538d65725ac4427a4387a
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Jan 21 09:01:05 2009 -0800
+
+ Tear down batchbuffers unconditionally on LeaveVT
+
+ Even if KMS is enabled we should do this, to avoid running batches that
+ depend on other state we tear down in LeaveVT.
+
+commit b6f3ce32e295929f461a7bc37e61f126fb51e4aa
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 20 10:45:23 2009 -0800
+
+ Use drm_intel_bo_subdata to put render vb data in.
+
+ This improves performance by avoiding repeated map/unmap cycles, which are
+ a bit expensive on my machine with lock debugging on in the kernel. It could
+ do much better if we did more than 18 or so floats at a time.
+
+commit 9a8bbb1951ad0ca0a9407a97348fc7fa03127900
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 19 19:34:50 2009 -0800
+
+ Move i965 render vb setup to use time, and decouple state emit from it.
+
+ The require_space had failed since it only checked for the space required
+ by the batch emits in the function itself, but not in the
+ i965_emit_composite_state() that it called (the state we were concerned about
+ having set up for that 12 * 4 dwords to follow!). This is replaced by
+ intel_batch_start_atomic(), which will catch such mistakes in the future.
+
+commit 3d739597c4f5817079efd9067ad5db2f4105f765
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 20 10:37:20 2009 -0800
+
+ Move i965 render transform setup from emit_composite_state to prepare_composite.
+
+commit e20f7278f3abb44a3a151ac91f83c45cf1a2745a
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 19 20:31:31 2009 -0800
+
+ i965: Pull check_aperture out to a separate function and make it dtrt.
+
+ Previously it wouldn't count the pixmaps that were about to be used, which
+ is pretty much the only purpose of having the pain around. This also
+ eliminates the check_twice confusion with emit_batch_header_for_composite().
+
+commit 013e2adfbf955cb21450b610091542ebd54392c2
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 19 20:24:20 2009 -0800
+
+ Move filter computation from emit_batch_header to prepare_composite.
+
+commit a340fe5e4227ebea5493e658eb6289624b07ab0b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 19 19:11:41 2009 -0800
+
+ Use intel_emit_reloc from video to prettify 965 render bind_bo setup.
+
+commit aefe198ca427a5ad69717f49948eb3ede713bb28
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 19 18:57:01 2009 -0800
+
+ Move i965 render state bo setup back to prepare_composite.
+
+ We want the objects to be created once per prepare/done both for efficiency and
+ so we can handle aperture checking better.
+
+commit 946c7ef8170e74ac178c83b1465242d57fa86f2e
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 19 14:43:20 2009 -0800
+
+ Do check_aperture_space and batch_start_atomic for i965 video.
+
+ This increases the overhead for video in the presence of cliprects, but we
+ were already doing nasty things in that case and don't seem to care. This
+ could fix potential bad rendering or hangs with video, particularly with
+ DRI2.
+
+commit 7be668179a12918918cad863f6936ced4ab78dbf
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 19 14:29:25 2009 -0800
+
+ Move 965 video setup to a separate function so we can move it around.
+
+commit c7db3201106f07f3228c989014d6db5ace5378f6
+Author: Owain G. Ainsworth <oga@openbsd.org>
+Date: Tue Jan 13 18:46:41 2009 +0000
+
+ Remove the pageflipping infrastructure.
+
+ It was broken on current kernels, and deprecated anyway.
+
+commit c82adfd0169317efb6c2f9de0f315651f9adbae1
+Author: Owain G. Ainsworth <oga@openbsd.org>
+Date: Tue Jan 13 17:09:00 2009 +0000
+
+ Remove triple-buffering support
+
+ It never worked with any upstream linux kernel, and is quite heavily
+ deprecated. A new solution based around DRI2 will probably be
+ forthcoming. Pageflipping itself is next.
+
+commit ada44c1c0edcd3ea9e41ed6b6fdb2bf0e87c9c67
+Author: Kshitij Kulshreshtha <kkhere.geo@gmail.com>
+Date: Tue Jan 20 11:35:36 2009 +0800
+
+ Support sysfs backlight control for Sony laptops in xf86-video-intel
+
+ The sony_laptop kernel module (since v2.6.23) supports backlight control
+ via the sysfs interface:
+ /sys/class/backlight/sony
+
+ This patch will enable xf86-video-intel to use this backlight control method
+ for Sony VAIO Laptops with Intel integrated video.
+
+commit d89de6d60a86105a198d904821853e6ed7de3305
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jan 16 16:59:17 2009 -0800
+
+ Protect i915 textured video against batchbuffer wrapping.
+
+commit 15780c53f5717936ea10ac87aff8a881c172f1dc
+Author: Eric Anholt <eric@anholt.net>
+Date: Sat Jan 17 16:23:38 2009 -0800
+
+ Fix i915 batch_start_atomic counting.
+
+commit fc46cb6403387215d13aa28d720f205688ae9d67
+Author: Eric Anholt <eric@anholt.net>
+Date: Sat Jan 17 12:47:53 2009 -0800
+
+ Fix libdrm version number requirement regression that got spammed in.
+
+commit 1459f794e2a4b9032807c3794b00a33fa6392837
+Author: Dave Airlie <airlied@redhat.com>
+Date: Sat Jan 17 22:14:26 2009 +1000
+
+ intel: fix DRI2 should be DRI_DRI2
+
+commit db43b7870a37ea273941302096a6f00120dfae71
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 15 19:05:52 2009 -0800
+
+ Re-emit i915 composite setup when the batchbuffer wraps.
+
+ This also introduces tests to make sure that we asked for enough reserved space
+ and that we don't allow wrapping at the wrong time.
+
+ This fixes a hang during text rendering with DRI2 and a GL client running,
+ but could potentially affect text rendering with GEM in general with an
+ exceptional batchbuffer setup.
+
+commit cab5b7a7b0e17414f98b2363b0961c87f32f9c05
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 15 09:31:55 2009 -0800
+
+ Fix invarient state emits for DRI2 (do it per batch, since there's no lock).
+
+commit 9f306193c4b128ec72c5b4db16d07302cee50ab5
+Author: Owain G. Ainsworth <oga@openbsd.org>
+Date: Tue Jan 13 18:42:44 2009 +0000
+
+ Fix ioctl type.
+
+ I915_EMIT_IRQ is a read/write ioctl, not a write only. Found by OpenBSd's
+ kernel code which checks these things a long more strongly than Linux.
+
+commit 1e8588ad5087c69eb77399cfaab8e4ec15eb4da9
+Author: Owain G. Ainsworth <oga@openbsd.org>
+Date: Tue Jan 13 17:02:59 2009 +0000
+
+ use ifdef __linux__ where needed.
+
+ since modesetting is compiled by default now, ifdef __linux__ the linux
+ only includes and ioctls.
+
+commit db9f5915ce812144ffd9d2aa42e8ba856129c35e
+Author: Ma Ling <ling.ma@intel.com>
+Date: Wed Jan 14 14:46:52 2009 +0800
+
+ Disable VGA plane reliably
+
+ This fixes #17235, VGA random hang on recent G45/43 board.
+ From spec, SR01 bit 5 should be set before VGA plane disable through
+ control register, otherwise we might get random crash and lockups.
+
+commit a4b023c17b9c3bd65fb9466ddb8a953f60244402
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Jan 13 20:01:49 2009 -0800
+
+ Assign rotation memory dri_bo to rotation pixmap.
+
+ As the rotation memory and rotation pixmap are allocated separately (to make
+ rotation at startup work), the allocate dri_bo needs to be set in the pixmap
+ for acceleration to work. This restores the performance in rotated modes.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit f659cc37e61364a408355b9a6a44d39f4d759935
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Jan 13 16:49:41 2009 -0800
+
+ bios_reader: make mode timing output friendlier
+
+ Print out the calculated mode line values (as i830_bios.c uses) and
+ check for validity against known problems.
+
+commit c80f1a9c5131721eaf87d12a7a67e603cdfed63b
+Author: Bernhard Rosenkraenzer <bero@arklinux.org>
+Date: Tue Jan 13 10:35:19 2009 -0800
+
+ UXA: Declare glyph cache picture as component-alpha when necessary.
+
+ Without this, rendering component-alpha glyphs may break without a mask.
+
+ Bug #19534. Ported from fix by Michel Dänzer <daenzer@vmware.com> in
+ xserver commit 639f289dcdbe00a516820f573c01a8339e120ed4
+
+commit 3d206f9e46b5237bda7ca3c0f92d64c45ee8bdf5
+Author: Ma Ling <ling.ma@intel.com>
+Date: Tue Jan 13 10:26:40 2009 +0800
+
+ set continuous-frequency flag in get modes function
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=19247
+ Because latest xorg will check whether the display is continuous frequency through one flag in monitor info structure,
+ if not it doesn't touch default modes. When laptop failed to fetch edid, We don't set the flag. In i830_lvds.c,
+ so currently we can not get default modes except only one mode line from bios.
+ In order to achieve default modes from xserver successfully,I set the flag and other EDID features.
+
+commit 3354e660b0744976871683ce226f17e873f26b50
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Nov 26 16:32:12 2008 +0800
+
+ Fix LVDS EDID to match all possible default modes
+
+ If the EDID data from the LVDS doesn't indicate support for a wide range of
+ continuous frequencies, it will not match any of the default modes although
+ our LVDS scaler logic ignores refresh rates when programming LVDS modes. Fix
+ this by smashing the compute EDID data to open up the sync rates.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit f1e9ca4e4fb3ddb083252aea79c67c5e5e71f29c
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Fri Jan 9 16:30:15 2009 -0800
+
+ Remove xorgconfig & xorgcfg from See Also list in man page
+
+commit 91c49067abab262edce54d33af8bfc03eee20f2e
+Author: Ian Romanick <ian.d.romanick@intel.com>
+Date: Wed Jan 7 21:45:54 2009 -0800
+
+ Prevent redefinitions of CARD8 and friends. Fixes build.
+
+commit 934008a2cbcec0c790580750c672c0367a9e4c55
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 6 10:55:59 2009 -0800
+
+ Always enable KMS if server's new enough, and remove option.
+
+ The API should be stable at this point, and we don't want to allow mistakes.
+
+commit 342120be0956bfc12822d1ffbfbd8aaabf3e922f
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 5 23:21:07 2009 -0800
+
+ Fix pin leakage with EXA GTT-mapping shortcut, and crash with UXA on KMS.
+
+commit 9a5082d2920c1a212fe935b5a093013e8035c321
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 5 23:28:50 2009 -0800
+
+ Disable DRI2 buffer tiling on non-965, as those need fence regs for 2D blits.
+
+ This fixes glReadPixels failure on single-channel 915GM, as the software code
+ for readpixels was actually the only code in the driver doing tiling against
+ these buffers (everything else says "rely on fence registers", since the 2D
+ blits don't have a "don't rely on fence registers" option).
+
+commit 7736b65be4fb4d5c59d7aedb1e64da976bb10ae9
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Dec 15 15:49:01 2008 -0800
+
+ FatalError on batchbuffer map failure
+
+ Yes, it would be nice to do something other than crash here.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 632f816c72cb4b48b690fd92d1cc1d5a9c9285c7
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Dec 15 15:43:34 2008 -0800
+
+ uxa: handle uxa_prepare_access failure
+
+ uxa_prepare_access may fail to map the pixmap into user space. Recover from
+ this without crashing.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 90b28a56553d809374fa6d9b9529b7a8b583488c
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Dec 15 15:41:28 2008 -0800
+
+ Handle drm_bo_map failure in 965 video and composite paths.
+
+ These two paths allocate a number of objects directly.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 8237faf8f3ca73ecdf0ef009a7d361b318726f6f
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Dec 15 15:35:35 2008 -0800
+
+ Resize framebuffer on screen size change (requires UXA and DRI2)
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 21bd4e8974e4c0e83f5f95adb0fc17290444caf5
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Dec 15 15:19:00 2008 -0800
+
+ Make i830_allocate_memory take tiling parameters.
+
+ This eliminates the separate i830_allocate_memory_tiled function which means
+ that all memory objects will have tiling parameters set correctly.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 1f61e97904dfe5f8c08bb9f284cfdfe878f7e541
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Dec 31 22:56:57 2008 +0800
+
+ UXA: Fallback to dri_bo_map() if pin failed
+
+ This fixes VT switch issue with UXA after Eric's
+ aae4008096399a0e84abc7c016b35092caf9db25 on 2D side.
+
+commit 830bf916724afd21b7947f797c22a8c8aab7a0a4
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 29 13:42:44 2008 -0800
+
+ Don't touch the pipestat regs for detecting FIFO underrun. The kernel owns them.
+
+ Since we don't perform any synchronization with the kernel on these regs, we
+ could race with the kernel to write stale values and end up not having vblank
+ interrupts enabled when somebody was waiting on one.
+
+commit d96f774d1bb39640486c72338fe8b19ee1ceaa23
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 29 13:57:24 2008 -0800
+
+ warning fix.
+
+commit 59b0fbb9be880d489374b141f818948a2721a2ef
+Author: Henry unbongo <henryunbongo@yahoo.com>
+Date: Mon Dec 29 13:54:38 2008 -0800
+
+ Add support for SDVO LVDS.
+
+commit 750d8e105831718d4a44a145fdb87571fa9f9d8e
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 29 12:44:26 2008 -0800
+
+ Fix compile failure after 45f45c73469f1bd46a1b6fb206f2e9e5e4fd66b3
+
+commit 45f45c73469f1bd46a1b6fb206f2e9e5e4fd66b3
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 29 11:26:11 2008 -0800
+
+ Remove logical context setup.
+
+ This should be a noop. If it wasn't a noop, it means that on pre-g33 chipsets
+ we were spamming some data into a page of system memory because we used a
+ virtual instead of a physical address. It was also supposed to not work when
+ we submit it from a batchbuffer, as we have been doing for some time now.
+ This code has existed since about the beginning of the driver's existence,
+ with no justification.
+
+commit 3544bbe22d8cf2640289e1e4febe755a47f26631
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 29 10:41:02 2008 -0800
+
+ Add PCI write posting to LeaveVT path when we're about to wait on write results.
+
+commit 7b67914b23b54d4d9566190440a3430e40615aa8
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 28 15:51:50 2008 -0700
+
+ Add SDVO LVDS register definitions.
+
+commit 8464fc285d7b22fd45b7af616fd52aa15e16638a
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 29 09:51:45 2008 -0800
+
+ Rely on libdrm 2.4.3 and stop checking for xf86drmMode.h.
+
+commit c1dde7ac06ce6470c74198b2560ee67d28fb0aea
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 22 16:49:57 2008 -0800
+
+ Remove old mergedfb includes and defines, which bother spatch.
+
+commit 75799d2834be84b016391ec95b221df32380e3e7
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Dec 30 00:55:30 2008 +0800
+
+ Bug #18004: Add Aopen 915GM LVDS quirk
+
+commit cfaaf6af777ad8e56da5a077bdc01f4f2d7bc4d6
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Dec 29 21:17:44 2008 +0800
+
+ Don't count vertex buffer in second aperture size check
+
+ With batch flush notify vertex buffer will be unreferenced,
+ so don't count it in later aperture check. Also adding
+ uninitialized vertex buffer check in batch flush notify.
+
+commit b710a688a7383df320f9d4e765b48331310a4d1d
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Dec 29 12:50:25 2008 +1000
+
+ intel/kms: disable overlay when it needs physical address
+
+ We can't do phy address allocations, need kernel support for this.
+
+ Signed-off-by: Dave Airlie <airlied@redhat.com>
+
+commit 649374b88b330838133d78be1953ce8b18ddd2c6
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Dec 29 12:48:11 2008 +1000
+
+ intel: don't call enter/leave VT for KMS enabled systems
+
+ Signed-off-by: Dave Airlie <airlied@linux.ie>
+
+commit 408f7139354a942f29334795b5480a0b6bb6142a
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Dec 29 12:47:30 2008 +1000
+
+ exa: fix map gtt call to use current API
+
+commit fcd280b730f86ea54ecd89d3e037e71f8375b5f5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Dec 29 10:05:17 2008 +0800
+
+ Bug #19239: Add a quirk for broken ACPI lid state
+
+ For broken hardware/bios with incorrect ACPI LID state,
+ there's machine that can not be fixed in ACPI way, customed
+ DSDT that reprogram _LID method to read EC state. Although
+ this is ACPI issue, this quirk can be used to work around that.
+
+commit 6b9f421b792c701e909d81ae2b6e6a47fb069b0b
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Dec 29 11:51:58 2008 +1000
+
+ modeset: transformPresent is a new API member
+
+commit a320541e51818833a6a445707835fbf70e9babd4
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Dec 29 11:34:51 2008 +1000
+
+ modeset: fix xf86CrtcRotate API change across server versions
+
+commit e38fd84fcccc18284b649a60b4cfd8e24eaf059d
+Author: Ma Ling <ling.ma@intel.com>
+Date: Mon Dec 22 10:35:52 2008 +0800
+
+ SDVO: reset pixel repeat in avi frame
+
+ For #19115, the root cause is avi_if.u.avi.PR in
+ i830_sdvo_set_avi_infoframe() belongs to element for
+ interlaced mode based on CEA_861B, but currently we
+ don't support interlaced mode. So it should be set as 0.
+
+commit d8e89b26ef5ef2c15e5d34162b14d279a7f0bb1c
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Fri Dec 19 09:34:14 2008 +0800
+
+ [965-xvmc] remove the vblank wait code, drm not support mutlple client
+ to wait on vblank now.
+
+commit aae4008096399a0e84abc7c016b35092caf9db25
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 17 14:25:22 2008 -0800
+
+ uxa: Do a hack to use the aperture mapping instead of bo_map in sw fallbacks.
+
+ Because of how fallbacky the uxa rendering core is, and our inability (without
+ wfb in userland or page faulting in the kernel) to tell the kernel just where
+ we're going to fall back, the clflush overhead can become outrageous, for
+ example with emacs and xcompmgr. Instead of using drm_intel_bo_map, pin the
+ buffer and do the fallback to the aperture mapping. This gets us the bad old
+ performance that fb is designed for, instead of bad new performance.
+
+commit 74bc420940de4ed02705211ddebbc4033c032242
+Author: Peter Alfredsen <loki_val@gentoo.org>
+Date: Fri Dec 19 08:10:06 2008 +0800
+
+ xvmc: fix up needed libs
+
+commit 555eea5411cf8c725df5f1b4cb80198fa6a1225b
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Dec 17 13:55:07 2008 +0800
+
+ wait vblank before render to fix tearing
+
+commit ed267072db7c58ee16a458fd3dc24ce3a2d0061d
+Author: Robert Noland <rnoland@2hip.net>
+Date: Wed Dec 17 09:27:30 2008 +0800
+
+ Fix drmOpen for non-linux 965 XvMC
+
+ drmOpen by name only works on linux after falling back to groping around
+ in /proc. This doesn't work on other OS.
+
+ Signed-off-by: Robert Noland <rnoland@2hip.net>
+
+commit ecdd706873c1f990f4a78fbaecf7380411edabcd
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Dec 14 16:09:25 2008 -0800
+
+ uxa: Correctly prepare/finishaccess of stipple in ValidateGC (and only it)
+
+ This avoids prepare/finish_access_gc overhead when we're not changing things
+ (since GCTile is already handled) and get us the RW flag for the prepare on
+ of the stipple pixmap so thing will be synced correctly.
+
+commit e6479f96e5d8da39fcbb5376c4a66a1f924ec4e4
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Mon Dec 15 14:54:20 2008 -0500
+
+ Quiet some KMS warnings.
+
+commit 30fb0ef53e19b759715f1ee14b81b11c81d79045
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Dec 16 00:39:45 2008 +0800
+
+ Revert " [965 xvmc] update dual prime g4b files"
+
+ This reverts commit ea2b6b405e4c8b1bfb4bc568d0453a39a9194a8f.
+
+ Duplicate with Keith's commit. No idea what's diff target
+ of this one.
+
+commit ea2b6b405e4c8b1bfb4bc568d0453a39a9194a8f
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Mon Dec 15 09:19:43 2008 +0800
+
+ [965 xvmc] update dual prime g4b files
+
+commit d917583c19e2eb20a559eddaa100ce71d8fbe48c
+Author: Pierre Willenbrock <pierre@pirsoft.de>
+Date: Mon Dec 15 09:08:30 2008 +0800
+
+ closedir only after finishing use of any results from readdir
+
+commit 865735d8408ee6b75be8fb1a8ab32b2a53dd3adb
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Dec 12 11:07:20 2008 -0800
+
+ Dump out fence registers by default, add fence end registers as well
+
+ In debugging the frame buffer resize code, I needed to see what the server
+ was doing to the fence registers, so I added this debug code. Seems useful
+ enough to include it.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit f3e59e59b54696667b127c82327e16b14d7bab22
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Fri Dec 12 11:18:25 2008 -0800
+
+ Update binary versions of the dual-prime kernels
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 80d588e9c49719ec494e705edfc14c78908bbc3f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Dec 12 18:27:29 2008 +0800
+
+ Don't warn on ring enabled in GEM
+
+commit 60c4ee9ece8ea57e61b1590dfeb69d08555e465c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Dec 12 18:00:09 2008 +0800
+
+ Fix directRenderingType check
+
+ Don't miss classic texture memory allocation in DRI.
+
+commit edf765155497d89ecac328a5b268ecf60e2f377c
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Dec 11 15:41:59 2008 +0800
+
+ [965-xvmc] fix dual prime kernel, flush issue on G4x
+
+commit 80e2d90139dd99f50beb4f9353599608624b777d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Dec 11 13:45:17 2008 +0800
+
+ Let lid status be unknown if no acpi lid object found
+
+commit 83377b543defdca7226d7c1a7794e4ff3d8b4c84
+Author: Bryce Harrington <bryce@canonical.com>
+Date: Thu Dec 11 09:38:27 2008 +0800
+
+ Pipe-A quirk for HP 2730p (bug #18852)
+
+commit 6c4e134a1a30785c2e5c6d57b21fde54a2dd3413
+Author: Bryce Harrington <bryce@canonical.com>
+Date: Thu Dec 11 09:34:15 2008 +0800
+
+ PipeA quirk for Quanta/W251U (launchpad bug #244242)
+
+commit 1e974ff6b8446ecd64677b3c9aba60ca850923cc
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Dec 10 10:54:31 2008 +0800
+
+ Try to always probe SDVOC on 965G/965GM
+
+ Detect bit of SDVOC is reserved on 965G/965GM, instead of ignore SDVOC
+ this trys to always probe it on these chipsets.
+
+commit f5f67e1b54e67b4bfc3db3482b2693211be81d63
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Dec 10 10:36:07 2008 +0800
+
+ bug #17395: Quirk CRT for Sony VGC-LT71DB
+
+commit d8b764fbd27dc9c8b28386093931b8d38855bd19
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Dec 9 21:51:14 2008 -0800
+
+ Add RandR 1.3 panning support by supporting the crtc set_origin function
+
+ RandR 1.3 panning support can use the regular mode setting interface, but
+ that's really slow. Providing set_origin makes it nice and snappy.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 4d7a95959d8223aec41550eb19f60b3edd7210a1
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Dec 9 19:48:11 2008 +0800
+
+ Try to add LVDS detect support
+
+ This one trys to use lid status for LVDS detect,
+ which works when internal panel is not used as primary
+ display alone, or there's no internal panel at all.
+ ACPI button driver's lid state interface is preferred,
+ and SWF state is also checked if ACPI method failed.
+
+commit 0fe61b0b7e3bbe8ced1b0ad2be72c438d200c64b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Dec 9 19:19:58 2008 +0800
+
+ Remove Cappuccino SlimPRO SP625F 855GM LVDS quirk
+
+ It breaks bug #18462 on IBM 855GM with same subdevice ids.
+
+commit bea98cdfd93fc1181a06c51e57fcab227ff4827e
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Dec 5 15:42:53 2008 -0800
+
+ Set vertex_buffer_bo to NULL after unreference.
+
+ Which is just being tidy. We initially were looking at this code
+ path due to a report of a crash on server shutdown which started
+ after this unreference call was added. Setting this to NULL
+ apparently didn't avoid the crash, but it's a good thing to do
+ regardless.
+
+commit ce7efc2e3676c8f80206415480dda91e5e021396
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Dec 4 11:41:02 2008 -0800
+
+ Don't smash fixed_mode if skip_panel_detect is set.
+
+ Without this change, setting LVDSFixedMode to false is not effective
+ as i830_bios_init calls i830_parse_panel_data which in turns sets
+ a fixed_mode. To fix this we still call parse_panel_data to set
+ the various lvds_options but we return before setting fixed_mode.
+
+commit e8b95efbf5d9c3a5b75b2bb8b5b51844b5fcdfbc
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Dec 3 13:49:52 2008 -0800
+
+ i965: Add batch_flush_notify hook to create new vertex-buffer bo
+
+ This avoids mapping a buffer object which is being referenced
+ by a batch that has already been flushed, (which is a terribly
+ expensive operation).
+
+ On my machine this brings the performance of x11perf -aa10text
+ from 85k back to 150k, (where it was before a recent kernel
+ upgrade). Also, before this patch, when I used my X server
+ actively performance would drop as low as 15k---hopefully that
+ bug is gone with this change.
+
+commit 768f317cf0da4cd6682af2e71e71c3e130e05182
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Dec 8 10:33:13 2008 +0800
+
+ Fix DRI2 compiling warning
+
+commit 95596f51503bb468364719aec9083d59999e34b7
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Dec 8 10:30:12 2008 +0800
+
+ Fix TV compiling warning
+
+commit c47b6d1def917fad5ad2b5a3e4167edfd354f2c8
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Sat Dec 6 21:20:52 2008 -0500
+
+ Make sure DRI/DRI2 can initialize properly with KMS.
+
+commit 70af658d4e94cc372f9e9c831611f70b3c1cecab
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Sat Dec 6 19:19:21 2008 -0500
+
+ Simplify crtc preinit a bit.
+
+commit 3ad9c9a82d7b359b9b711070628e6ff07a2aa9f7
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Sat Dec 6 19:17:39 2008 -0500
+
+ Fix KMS compilation.
+
+commit 2e3c098c5ed9a8451713dc754a5f086992249336
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 5 12:21:53 2008 -0800
+
+ uxa: Reject solid/copy to under-8bpp destinations.
+
+ EXA wouldn't create pixmaps for under-8bpp, but UXA does. Fixes
+ mis-rendering in xfwm, evolution message compose, firefox link
+ drag'n'drop, and I'm sure more. Big thanks to Pierre Willenbrock for
+ debugging the issue!
+
+ Bug #18050
+
+commit 261c20a479f6ec1e94c2ba801323072227cc3ade
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 5 12:13:26 2008 -0800
+
+ uxa: Add in EnableDisableFBAccess handling like examodule.c did.
+
+ This fixes assertion failures when rendering text while VT switched.
+
+commit caecd6031e416705b1f0a7051535211feaebdedd
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 15:18:08 2008 -0800
+
+ Remove the extra memory allocation for 965 video state now that it's all in BOs.
+
+commit 48c113ade26d5ad64999cd5cc288495c10e02fc4
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 15:10:49 2008 -0800
+
+ Emit proper relocations to pixmaps in BOs in i965 video.
+
+commit ae2cd8b75e41393e072e27064ecefecf1aa1bc6c
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 15:02:12 2008 -0800
+
+ Move i965 video surface state and binding table to BOs.
+
+commit 1b3c3c9d79305abe1785fdaef26a950dafa8890f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 14:30:56 2008 -0800
+
+ Move i965 video vertex data to BOs.
+
+ This eliminates extra syncing when clipping is involved.
+
+commit 84825972597042f0aa6784594dace96be96a0234
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 14:26:09 2008 -0800
+
+ Move remaining i965 video programs to BOs.
+
+commit 40671132cb3732728703c6444f4577467fa9223f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 14:20:21 2008 -0800
+
+ Move i965 video wm and sampler state to BOs.
+
+commit 48803eb7463ad14f3109f67fcf4ccff4362baaa2
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 13:22:12 2008 -0800
+
+ Stop allocating unused scratch space for i965 video.
+
+commit f3fe46b557a4dd7e212c2790fb47142d375c1c75
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 13:18:06 2008 -0800
+
+ Move i965 video vs/sf state to BOs.
+
+commit 4b9d3eac57a972c055c4acd7a10dfe8aa918131c
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 13:11:13 2008 -0800
+
+ Move i965 video cc state to BOs.
+
+commit 176e92d89fdfb199780014722feab6ac25836dcc
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 12:53:37 2008 -0800
+
+ Move I965DisplayVideoTextured unit state setup to separate functions.
+
+commit 61929f4c641e2ecb145ad2b22f7092d40e31ae6d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 11:44:35 2008 -0800
+
+ Move I965DisplayVideoTextured surface/sampler setup to separate functions.
+
+commit 73d03cb93ca761ee555b87558882e26bd2f10d91
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 4 11:37:38 2008 -0800
+
+ Move debug code for I965DisplayVideoTextured to separate functions.
+
+commit df01d8f0791bd825c96d9d5e20313d5ffcfeb532
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Dec 4 16:11:33 2008 +0800
+
+ Change master version to 2.6.99.1
+
+commit b156b3165e1aae5df0353737d0335ac2e653f5fd
+Author: Julien Cristau <jcristau@debian.org>
+Date: Wed Dec 3 04:35:38 2008 +0100
+
+ Don't unconditionally define DRI2
+
+ xorg-server.h will define it if the server has dri2 support.
+
+commit 8d7cbab267e8fbcb2fcf90b18346b60607277266
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Dec 4 18:43:03 2008 +0800
+
+ Fix maxium backlight level restored issue
+
+ The origin check for bring back max value for '0'
+ backlight level is ok for legacy or combo control method
+ as '0' mostly doesn't act in ideal lowest level. But it
+ breaks in using kernel control method which should provide
+ a reasonable backlight range.
+
+ This is tested fine on T61 with thinkpad_acpi module.
+
+commit 32e7d47925b445a85847d77651b258e117aaaffe
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Dec 4 09:24:31 2008 +0800
+
+ Disable XvMC on DRI2 for now
+
+commit 293f6232c6c0ce12802a2123edfab4551d25e266
+Author: Dave Airlie <airlied@linux.ie>
+Date: Wed Dec 3 16:51:25 2008 -0800
+
+ uxa: don't call composite routines with no buffer.
+
+ We can get a case with gnome-terminal + links, where we get two arrays
+ of glyphs all with 0 width and 0 heights in them. If this happens
+ we manage to get to this case without any buffer setup and segfault.
+
+ (cherry picked from commit 717c7492a0f6ba3fb3eabda33515881eef314155)
+
+commit 457a680afd0d8f835131ea72be0c3c618c2892c7
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 3 13:17:26 2008 -0800
+
+ Enable tiling for DRI2 back/depth buffers.
+
+ This results in allocation overhead for small (8x8-128x128 or so) pixmaps with
+ DRI2, but we're interested in looking at tiling them in general in the near
+ future, anyway.
+
+commit b662ecccb5c036fcc4aa19026642bde0a1ca2ac8
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 3 10:50:33 2008 -0800
+
+ Re-enable composite accel on 965 with UXA.
+
+ This was blocked on getting 965 render aware of BO pixmaps, which is happily
+ now the case.
+
+commit d426f799f541cb32fab134f2af068c6cd31923d9
+Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
+Date: Wed Dec 3 14:59:21 2008 -0200
+
+ Include <X11/Xfuncproto.h> prior to including "edid.h" from the sdk.
+
+commit 07f5a8223187c1abc79c104d2fa5859a54cecd30
+Author: Robert Lowery <rglowery@exemail.com.au>
+Date: Wed Dec 3 09:48:23 2008 +0800
+
+ TV: add support to set TV margins in xorg.conf
+
+commit 00ae7a571b6413aa2530e4f1310f8f4646631946
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 2 13:08:23 2008 -0800
+
+ UXA: Add support for tiled front/back/depth by cutting over to the GTT map.
+
+commit 34d54db945c67a2fee0a38cc9eafc463b8413669
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 2 13:01:56 2008 -0800
+
+ Remove DRI_MM defines which are always true now.
+
+commit f7540df184a75a749cabcfa2da8974d3d0714ea6
+Merge: 5f34702 ee87f7b
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Dec 1 19:06:09 2008 -0800
+
+ Merge commit 'origin/dri2'
+
+commit 5f347020a52b583e19d333361ea7bf2591255899
+Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
+Date: Sat Nov 29 02:35:59 2008 -0200
+
+ Export libIntelXvMC and libI80XvMC symbols.
+
+ This is a side effect of adding the visibility flags to XORG_CFLAGS.
+
+commit ec7fd3d1b477928f9bffde1a72d7f3fdea89e629
+Merge: d978cd4 baec75a
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Nov 27 10:48:09 2008 +0800
+
+ Merge branch '965-xvmc'
+
+ Conflicts:
+
+ src/common.h
+ src/i830_hwmc.c
+ src/i830_video.c
+
+commit d978cd4b453ea588ed2fc2f2cb4ec26856fe00d4
+Author: Wu Fengguang <wfg@linux.intel.com>
+Date: Thu Nov 20 00:47:25 2008 -0800
+
+ refresh batch_bo reference after intel_batch_flush()
+
+ The call into intel_batch_flush() will invalidate the pI830->batch_bo
+ stored in bo_table[0]. Fix it by re-read the refreshed value.
+
+ Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit ee87f7becc2138348ec0d948829db6e86cee86da
+Merge: 3dd7f0f a5b1e62
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed Nov 12 16:40:37 2008 -0500
+
+ Merge commit 'origin/master' into dri2
+
+ Conflicts:
+ src/i830_dri.c
+ src/i830_driver.c
+ src/i830_memory.c
+
+commit 30c29627c859f1f6780aa652d6de4fa985b63dd0
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Nov 13 12:35:02 2008 -0800
+
+ Make sure DRM library paths are included
+
+ We need @DRM_LIBS@ in order to find drm_intel if installed in a
+ non-standard path.
+
+commit 42ec6938bdea3a5b065a4248fdca5f031415191e
+Author: Ma Ling <ling.ma@intel.com>
+Date: Fri Nov 7 14:23:41 2008 +0800
+
+ enable Intel G35 SDVO HDMI audio output
+
+ Set the SDVO_AUDIO_ENABLE bit to enable SDVO HDMI audio output of the
+ Intel G35 chipset.
+
+ Signed-off-by: Ma Ling <ling.ma@intel.com>
+ Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
+
+commit 42b3903c3fda95a7c536cb957d8163d8dc54a9a1
+Author: Wu Fengguang <wfg@linux.intel.com>
+Date: Fri Nov 7 14:23:40 2008 +0800
+
+ enable Intel G45 integrated HDMI audio output
+
+ Enable audio output for the integrated HDMI of Intel G45 chipset
+ by introducing the SDVO_AUDIO_ENABLE bit.
+
+ Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
+
+commit 293f4a8b6d1ca8a47d14c4d4b5904b85a8167e12
+Author: Wu Fengguang <wfg@linux.intel.com>
+Date: Thu Nov 13 09:50:37 2008 +0800
+
+ introduce i830_hdmi_priv.has_hdmi_sink
+
+ HDMI is compatible with DVI, and we've seen many boards that
+ use HDMI port for DVI output.
+
+ So Zhenyu proposed this flag: i830_hdmi_priv.has_hdmi_sink
+ to indicate the presence of HDMI capable monitors.
+
+ Signed-off-by: Wu Fengguang <wfg@linux.intel.com>
+
+commit 667923559219429b0c5fec12a0164f7eba1f8f2d
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Nov 11 12:55:06 2008 -0800
+
+ Default to FULL_ASPECT panel fitting
+
+ Now that 8xx is fixed, we should be able to preserve aspect ratio by
+ default.
+
+ Fixes fdo bz #18033.
+
+commit 65cd0fbb018b2c18f1571dc0924c7d92eaf794ad
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Nov 11 09:36:50 2008 +0800
+
+ TV: fix contrast and saturation for 915/945G
+
+ 915/945G uses exponent-mantissa format instead of
+ fixed-point format on 965G.
+
+commit a5b1e62337d4e8840347bb186db48697f0690a19
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 7 16:06:26 2008 +0800
+
+ quirk LVDS on Asus Eee box
+
+ Reported by Yang Sheng <sheng.yang@intel.com>
+
+commit 9942cfa6dcc70a09ea38f738b1e73e3f005080b9
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Nov 6 15:04:27 2008 -0800
+
+ Use long crt hotplug activation time on GM45.
+
+ The GM45 b-spec requires the use of the longer hotplug activation period,
+ but does not require looping twice over the detection logic. With this
+ patch, CRT detection appears solid on my GM45.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 226efa7c74c0ed8a7b974a3727c5d7322c8ef815
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 29 22:41:20 2008 +0800
+
+ TV: subcarrier fix for NTSC and PAL
+
+ Using subcarrier DDA values from spec give more close result to
+ standard frequency.
+
+commit 3651341292d90b7ded4c3f013bcb0f46537a113a
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 29 20:41:46 2008 +0800
+
+ TV: fix timing parameters for PAL, 480p, 1080i
+
+commit b404afb755b608b02bcf0be1f8fe8a38d3d7bc1e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 29 20:32:18 2008 +0800
+
+ TV: save serveral TV_CTL register fields in mode set
+
+ Driver should keep those fields according with spec.
+
+commit 2ae91f0ffdadfb393d526b94e21914a31aa14232
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 29 20:26:44 2008 +0800
+
+ TV: fix default contrast and saturation modifier
+
+ Color knobs was set with higher modifier which caused strong color
+ on TV screen. Setting fixed point modifier to default 1.0 makes picture
+ on TV look nicer.
+
+commit c4cab00ef7f57fc27776f53263aacec2edf6f959
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 29 20:26:03 2008 +0800
+
+ TV: white space cleanup
+
+commit b130f94f26111e1a12ce869292915504588d0369
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 6 10:14:00 2008 +0800
+
+ SDVO: fix more command definition errors
+
+commit 3ab979da5c867fb862e33a80b973a35d56d56a55
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Nov 3 16:05:28 2008 +0800
+
+ SDVO: add command for set monitor power state
+
+ SDVO encoder power state must be higher than monitor's state.
+ This only adds command and doesn't enable monitor power state
+ setting yet.
+
+commit f558a4972d1cca03785da025170259c61541ee63
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Nov 3 16:01:40 2008 +0800
+
+ SDVO: add GetScaledHDTVResolutionSupport command
+
+commit cd8cbff5d7921d2f4fdac106c3d54414310af94d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Nov 3 15:20:18 2008 +0800
+
+ SDVO: fix sdvo tv format and sdtv resolution request/reply definition
+
+commit 61672b8c458ecf449138c51aeb12cf24dbbd59d9
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Nov 3 14:59:53 2008 +0800
+
+ SDVO: add HDMI audio encrypt change bit for GetInterruptEventSource command
+
+commit 45fb04474d0e67643a633dcc3aeb4efe7fd71ea1
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Nov 3 14:51:14 2008 +0800
+
+ SDVO: fix wrong order of sdvo version's major/minor
+
+commit 5cbf1e72711e906b5309694045b56933e14dca06
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 6 09:46:54 2008 +0800
+
+ Make IS_GM45 into IS_G4X define
+
+ Those are identical that using one define is much clear.
+ And it can also apply fixes for GM45 too, which is missing with
+ origin define.
+
+commit 78b6cff3b6ec9513ede3e71d81a828967e6c0068
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 5 14:39:19 2008 -0800
+
+ i965: Support render acceleration with pixmaps in BOs.
+
+ This required reordering the relocation emits for surface/binding table
+ so that we didn't add new relocations to things that had already been
+ relocated at (the check_aperture requirement).
+
+commit 801f0eac4f7b0071ed21eb9c68c5a951e1cc409a
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 5 13:29:39 2008 -0800
+
+ Make I830FALLBACK debugging a runtime instead of compile-time option.
+
+commit d828b0802c939cb12664db4dd157a4944a4db01b
+Author: Maxim Levitsky <maximlevitsky at gmail.com>
+Date: Wed Nov 5 13:47:09 2008 -0800
+
+ Add an option to make the overlay be the first XV adaptor.
+
+commit 040d9bf9d8748d1ed8f977a6356d198def978b51
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 30 13:55:07 2008 -0700
+
+ Remove the CheckDevices timer.
+
+ This was an early attempt to support display switch hotkey. It never really
+ worked, as the events didn't show up when they should. It also cost a wakeup
+ every second to check just in case, instead of taking an interrupt like we can
+ now using ACPI. Additionally, some machines apparently get stuck with the
+ event set and end up DDCing checking for new devices every second and
+ smashing your video modes.
+
+commit 08914cceda6c57530023cdcdb5ad7e4024f36a6e
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Oct 30 16:46:06 2008 -0700
+
+ Use buffer objects for binding table and surface-state objects.
+
+ Instead of having a static array for these and doing an ugly sync
+ everytime we recycle the array, we now simply allocate short-lived
+ buffer objects for this dynamic state. The dri layer, in turn, can
+ take care of efficiently reusing objects as necessary.
+
+ On a GM965 this change was tested to improve the performance of
+ x11perf -aa10text from roughly 120000 to 154000 glyphs/sec.
+
+commit 47cc3d79da8174ba30ca130b0fb6c7d9c871caed
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Oct 30 16:53:57 2008 -0700
+
+ Unreference the vertex_buffer_bo in gen4_render_state_cleanup
+
+ This avoids leaking one buffer object.
+
+commit 88700acf30f9eab8f96c197c7d113ce38c0af6e7
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Oct 27 14:23:02 2008 -0700
+
+ Rename gen4_dynamic_state to gen4_vertex_buffer
+
+ We don't actually plan to put any other data in this structure, so it
+ doesn't make sense to have a generic name, (since we'll only be using
+ it for our vertex buffer).
+
+commit 9e95722763e2379d14a6b46c3750a44713da5135
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Oct 23 15:43:19 2008 -0700
+
+ 965: Move composite setup to new _emit_batch_header_for_composite
+
+ This function is the new name for _allocate_dynamic_state now that
+ it also emits everything to the batch necessary for setting up a
+ composite operation. This happens in prepare_composite() every
+ time and in composite() whenever our vertex buffer fills up.
+
+ It's not yet strictly necessary to be redoing this setup in
+ composite() but it will be soon when the setup starts referring
+ to buffer objects for surface state and binding table. This
+ move prepares for that.
+
+commit fcb2a5a1253c505913e66b08107c0a9f57b07bad
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 22 17:12:47 2008 -0700
+
+ Use buffer object for vertex buffer (in new gen4_dynamic_state)
+
+ This begins the process of separating the dynamic data from the
+ static data, (still to move are the surface state and binding
+ table objects). The new dynamic_state is stored in a buffer
+ object, so this patch restores the buffer-object-for-vertex-buffer
+ functionality originally in commit 1abf4d3a7a and later reverted
+ in 5c9a62a29f.
+
+ A notable difference is that this time we actually do use
+ check_aperture_space to ensure things will fit, (assuming
+ there's a non-empty implementation under that).
+
+commit 7e68786cf746b6b984b184080578db1947b268ed
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Oct 30 13:40:23 2008 -0700
+
+ Don't modify render standby if kernel mode setting is active
+
+ Since we can't bang on registers directly in that case.
+
+commit 87ea531c5dc5b39809395b277c330854aaaaf019
+Author: Adam Jackson <ajax@redhat.com>
+Date: Fri Oct 24 14:47:27 2008 -0400
+
+ Quirk: No LVDS on Dell Studio Hybrid
+
+commit 4d5360b1f3666bca4ed44c7f1b9217b8157c74b9
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 22 16:17:39 2008 -0700
+
+ Use consistent idiom for obtaining static_state
+
+ This doesn't make any difference, but it's cleaner to have
+ each function follow the same idiom for obtaining these pointers.
+
+commit 36fc53d068673497e77796ba69e010d08c359447
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 22 15:45:51 2008 -0700
+
+ Rename state_base_offset to static_state_offset in gen4_static_state_init
+
+ More cleanup here, and again no functional change.
+
+commit 8fda7df0071046d057eeaf74328668b227af52a9
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 22 15:28:24 2008 -0700
+
+ Rename gen4_state_init to gen4_static_state_init
+
+ This follows naturally from the structure rename.
+
+ Also we make things less muddled by having this function
+ actually accept a pointer to a gen4_static_state_t rather
+ than a gen4_state_t, (and then fetching the desired pointer
+ out from that).
+
+ Again, no intended change in functionality here.
+
+commit acba4238116f2ead7be88d49c4c56c7cd6d7f3b8
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 22 15:12:57 2008 -0700
+
+ Rename gen4_state_t to gen4_static_state_t
+
+ It doesn't contain only static data yet, but it will soon, so
+ this renaming prepares for that. Also, this helps make things
+ more clear between gen4_render_state_t and gen4_state_t which
+ were muddled before, (particularly because the corresponding
+ identifiers were render_state and card_state). The card_state
+ identifier is now known as static_state which should be less
+ confusing.
+
+ This change is strictly search-and-replace with no functional
+ changes.
+
+commit c6550fa53d92c21dc677b86ebcd528a4ac640764
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 22 14:51:42 2008 -0700
+
+ Ignore intel_gtt binary
+
+ We simply forgot to add this to .gitignore when it was created.
+
+commit ee3df629eaa388f09bec33ad04d443359d63ea7f
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Oct 20 18:46:49 2008 -0700
+
+ Default kernel mode setting to off, add configure flag to enable
+
+ Should help avoid unpleasantness.
+
+commit 55cb65c6fdcf932d09e97abfa5374ee574676798
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Oct 19 21:22:37 2008 -0700
+
+ Enable Option "Legacy3D" for 965 as well, and clarify both the docs and code.
+
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+ Acked-by: Keith Packard <keithp@keithp.com>
+
+commit 28bb056f8cd326770590157412835318863b4134
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Oct 18 19:37:09 2008 -0700
+
+ Use pipes, not planes for sarea geometry data
+
+ Vblank in the kernel is far simpler if it deals with pipes instead of
+ planes, so we're changing both user and kernel side. This is the user mode
+ side. This fixes both i830_crtc_dpms and i830PipeSetBase, the two functions
+ which copy geometry from the crtc to the sarea.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 546e2aca5b8b5d9f486d119ea2872ccd2b056054
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Oct 14 14:38:05 2008 -0700
+
+ Reduce incidence of MI_FLUSH usage.
+
+ This tracks whether the last command in each batch is an MI_FLUSH command
+ and avoids appending another MI_FLUSH in the non-GEM cases.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 9b91cdf7ac88982880c887ffb0811c92157a7945
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Oct 19 14:24:46 2008 -0700
+
+ No need to check for drmCommandWriteRead; we link against libdrm
+
+ My checks for DRM enabled were a bit too extensive; drmCommandWriteRead is
+ part of libdrm which the driver is always linked against. Only the symbols
+ in the DRI module need to be checked here.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit c25437a69490b09acff335a81a38aa540f0822f5
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Oct 19 13:39:04 2008 -0700
+
+ Remove accidental 'return;' left at the top of I830DRIInitBuffers
+
+ I was testing the behaviour of the XAA-based DRI buffer drawing code for
+ tiled buffers and accidentally left I830DRIInitBuffers disabled.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit ae224be27bb4432f25dae851debea6966bf31261
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Oct 14 14:35:36 2008 -0700
+
+ Check for DRI module before initializing GEM mm
+
+ GEM requires the DRI extension module currently, so make sure that is loaded
+ (by checking for the DRIQueryVersion symbol) before trying to call it. This
+ allows the server to start with the DRI extension disabled.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit 7ddea0447c8972104d43cd7966f5ce89b4cca20c
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Oct 17 00:07:09 2008 -0700
+
+ Handle differently tiled front/back/depth/third in DRI window management
+
+ When moving or clearing the extra buffer contents associated with DRI
+ windows, the XAA code needs to see which buffer is being manipulated in the
+ Setup functions to program the tiling values correctly. Calling
+ I830SelectBuffer and not then calling I830Setup... would result in mis-tiled
+ rendering.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit c946383afc644ae7740e3c3146424fdd86c05285
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Oct 17 00:07:08 2008 -0700
+
+ XAA tiling support was mis-computing adjusted pitch (>>4 instead of >>2)
+
+ This may well explain why XAA never worked well on tiled front buffers;
+ tiled buffers require a different pitch programming on 965 than non-tiled
+ buffers, in dwords rather than bytes.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+ Signed-off-by: Eric Anholt <eric@anholt.net>
+
+commit 871728a0cbba12579c830e67020cc0c69c1611bb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Oct 16 10:35:17 2008 +0800
+
+ Don't handle irq in GEM mode
+
+commit 2419bce9efbff63529074e64af5ec5c2e62e368b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Oct 16 10:28:16 2008 +0800
+
+ Make GTT dumper work on other 9XX chips
+
+commit 986c8df79e83c369655ad786a6bf6342b53c535d
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Thu Oct 16 10:24:04 2008 +0800
+
+ Fix Mac mini crash in DDC mode probe
+
+ SDVO on Mac mini trys to get EDID from CRT port, which
+ failed with recent DVI-I change.
+
+commit 6707371176147340fabc9ab6f1e3d6d5ac980662
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 15 08:12:11 2008 -0700
+
+ Remove gratuitous flushing in EXA after solid operations.
+
+ This snuck in with the UXA rename commit.
+
+commit 3dd7f0f9423bb891bc99cd3b77dc3d57e057a7ef
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Oct 14 23:57:10 2008 -0400
+
+ Update to DRI2 changes.
+
+ Implement DRI2CopyRegion and provide drm device filename to DRI2 module.
+
+commit 282f51c3f0e5bc2cedd2f60f458ca2662290d471
+Merge: 8a54e3b 4dd0068
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Oct 14 23:13:40 2008 -0400
+
+ Merge commit 'origin/master' into HEAD
+
+commit 4dd00681dd0f9fce8dfd4592b46418edbbd2eeb4
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 14 11:33:33 2008 -0700
+
+ Fix broken stolen memory counting on G4X.
+
+ On the GM45 we were assuming too little stolen memory (mostly harmless,
+ except when it wasn't, until the AGP fix), and on the G45 we were assuming too
+ much stolen memory, which was quite harmful when we touched the page that
+ didn't get mapped.
+
+ Future stolen memory accounting should use src/reg_dumper/intel_gtt before and
+ after enabling AGP on the chipset to confirm that only the GTT entries not
+ mapped to stolen are replaced, and that all of the unmapped GTT entries are
+ replaced with the constant scratch page.
+
+commit e7e49bed7e254256f8cc0d4afcdfadc6dadf19e6
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 14 10:38:05 2008 -0700
+
+ Add a GTT dumper for G4x debugging.
+
+commit 1c6ea4ab4772453da915306045add8d147d567f2
+Author: Julien Cristau <jcristau@debian.org>
+Date: Sun Oct 12 15:10:22 2008 +0200
+
+ Typo fix
+
+ Reported by Tomas Carnecky on IRC
+
+commit 6cb4150160bb1e1365773561fb53294ad9248a0e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Sun Oct 12 08:07:44 2008 +0800
+
+ Bug #17892: Fix possible crash in CRT probe
+
+ Introduced in patch for DVI-I CRT probe, if no EDID
+ CRT monitor is connected, origin code destroys default
+ DDC bus which causes crash in later get_modes call.
+ Change it to setup and destroy DDC bus as needed in
+ get_modes, so we always reprobe and get current state.
+
+commit 140451abb41fbd68d5aac4736c1cf1ec2805dd9e
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Oct 9 18:18:34 2008 -0700
+
+ For non-DRM, add NOOPs after BATCH_BUFFER_START to verify completion
+
+ In non-DRM mode, the driver waits for the hardware by checking the ring
+ pointers; when the ring is empty, it assumes the hardware is idle. However,
+ the hardware updates the ring pointers before executing a command, so if the
+ MI_BATCH_BUFFER_START is the last command in the ring, the driver will think
+ the hardware is idle while it may still be processing the contents of the
+ batch buffer. Placing NOOPs after the BATCH_BUFFER_START allows the driver
+ to know that the hardware has completed the batch buffer.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit d09d938bf26ea0c44352ff6e7a57ba43f4047fdb
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Oct 9 18:17:13 2008 -0700
+
+ i830 nondrm batch buffer insertion was missing ADVANCE_LP_RING() call
+
+ The ring commands to insert a batch buffer to the ring in i830 form were not
+ terminated by a call to ADVANCE_LP_RING(). This surely would have caused
+ chaos.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit d24010b7b3f2419beb40dc5ae1e8aeb3e04b5a93
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Oct 9 14:29:04 2008 -0700
+
+ Disable frame buffer compression by default for GM965.
+
+ We haven't found a way to make FBC work reliably with GM965 yet,
+ (it often fails to notice CPU writes). This appears to be a
+ specific problem with this device, (as we haven't gotten similar
+ bug reports for subsequent devices such as GM45). So FBC is
+ now disabled by default for GM965 but can still be enabled with
+ the FrameBufferCompression option for experimenting/debugging.
+
+ This resolves bug #16257:
+
+ [GM965 EXA] Frame-buffer compression broken for CPU writes (XPutImage)
+ https://bugs.freedesktop.org/show_bug.cgi?id=16257
+
+commit 4128b01ec84ffa0f03c335c36738f383376d9381
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Oct 9 09:19:41 2008 +0800
+
+ Remove Lenovo T61 TV quirk
+
+ BIOS already says no integrated TV, and this quirk blocks TV
+ on R61i which has the same subdevice id as T61.
+
+commit 74571363539426abeb0a1af11f3bb545d91ed6c2
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 8 15:36:10 2008 +0800
+
+ Put forware VBIOS data parsing
+
+ i830_bios_init() is called too late after output init, which
+ makes bios data mostly useless, and caused all TV init fail as
+ tv_present flag is not set.
+
+commit 111dd151dedf535464d638461f9485ec2939780e
+Author: Lukas Hejtmanek <xhejtman@ics.muni.cz>
+Date: Tue Oct 7 15:07:08 2008 +0200
+
+ Fix driver build against server master.
+
+ Broken by 3a4151b69daa478ac6edf042d604ee41e8429c0d
+
+commit 3a4151b69daa478ac6edf042d604ee41e8429c0d
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 6 17:00:08 2008 -0700
+
+ Fix driver build against server 1.4.2.
+
+ This disables UXA and DRM modesetting pre-1.5, due to privates handling
+ issues.
+
+commit 3621183cf4acef23414e8d69c34b1e587f52ec67
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 6 16:59:16 2008 -0700
+
+ Fix bios_reader build against old servers.
+
+ The server's pci_device structure ends up conflicting with libpciaccess's.
+ Just don't include the server structure for this non-server tool.
+
+commit 080d36648f92d3b9a559e5458687fa82afab411f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 1 16:13:09 2008 -0700
+
+ Add support for RepeatPad and RepeatReflect to 915 and 830-class Render accel.
+
+commit 5e04b5ad1b618655e201cbf1f5b2585aa6be0c17
+Merge: 979bb10 260cbcf
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Oct 6 16:08:12 2008 -0700
+
+ Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 979bb109c6d76fe18b9e29f55afb2548f890bbfe
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Oct 6 16:05:46 2008 -0700
+
+ Document more VBIOS functionality
+
+ Document a few more VBT structures and comment on VBIOS communication a
+ bit. There should be enough there now for a sufficiently motivated
+ developer to start implementing support for hotkeys and other features
+ on pre-IGD OpRegion machines.
+
+commit 260cbcfe61868175ba3e649ce07d43f57601f9be
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Oct 6 13:17:59 2008 -0700
+
+ Document and use 'legacy' border color mode
+
+ It's very convenient that the hardware supports this non-default
+ mode since it's exactly what is specified by the Render extension.
+ This provides a more efficient means of fixing bug #16820:
+
+ [EXA] Composition result in black for areas outside of source-surface bo
+ https://bugs.freedesktop.org/show_bug.cgi?id=16820
+
+ without the software fallback we had in the earlier fix,
+ (commit 76c9ece36e6400fd10f364ee330faea470e2da64 ).
+
+commit 98ca9e2af1b0a67ed91e10cf661af70dfba44d43
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Oct 6 13:16:37 2008 -0700
+
+ Rename default_color to border_color
+
+ This is consistent with the documentation, (and just plain makes
+ more sense).
+
+commit 175b30e3828266a89021c2439119545099d72715
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Oct 6 12:48:07 2008 -0700
+
+ Revert "Fallback to software for RepeatNone with transformed RGB-only pictures."
+
+ This reverts commit 76c9ece36e6400fd10f364ee330faea470e2da64.
+
+ We've learned a new technique that should let us avoid this fallback
+ to software. See following commit.
+
+commit 21cce1998a10db520c390eb5061814867564c583
+Author: Shuang He <shuang.he@intel.com>
+Date: Mon Oct 6 09:48:21 2008 +0800
+
+ Fix a typo in G965 texture video code
+
+commit 76c9ece36e6400fd10f364ee330faea470e2da64
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Oct 2 20:40:14 2008 -0700
+
+ Fallback to software for RepeatNone with transformed RGB-only pictures.
+
+ We wish it wouldn't, but the hardware ignores the alpha in the
+ BorderColor we set when the source picture format has no alpha
+ in it, (and it uses alpha of 1.0 where we want 0.0). For now,
+ fallback for these cases. This gives a correct result, but
+ obviously is not as fast as we would like.
+
+ This fixes bug #16820:
+
+ [EXA] Composition result in black for areas outside of source-surface bounds
+ https://bugs.freedesktop.org/show_bug.cgi?id=16820
+
+commit f1dbc266ccfe26c6b9a272e40a5bbe9afaa4f2e0
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 2 14:45:12 2008 -0700
+
+ Work around libpciaccess reporting a 0 rom size by guessing.
+
+ I required the following patch on top of this to work around libpciaccess
+ brokenness. libpciaccess reports 0 rom size if there's no rom resource,
+ even if the rom file exists in sysfs.
+
+commit 8304b405e0dc2f31fd2d2fd82e150ba502ab74e2
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Sep 29 17:37:28 2008 -0700
+
+ Eliminate INT10 call to get BIOS contents
+
+ libpciaccess (and the old X server PCI code as well) provides a function to
+ get the ROM contents. Code to use that was already present in the driver and
+ used if the INT10 function failed. Skip the INT10 and just use libpciaccess
+ as that eliminates several module loads and scary use of vm86.
+
+ Signed-off-by: Keith Packard <keithp@keithp.com>
+
+commit ab2b70f831314f81a581bfb1e48d059a3a2b0b06
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 1 16:05:16 2008 -0700
+
+ Prefer repeatType field over using both repeat and repeatType.
+
+ Eric informed me that the repeat field exists only for backwards
+ compatibility with old drivers that weren't prepared for values
+ other than 0 or 1 here. Since we are, we can just ignore that
+ field and examine only repeatType. So the code's a (tiny) bit
+ simpler this way.
+
+commit 128223ee9b7880e640056475462eca9a88415492
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 1 15:29:04 2008 -0700
+
+ Add support for RepeatPad and RepeatReflect.
+
+ It's quite simple to support these modes---we simply need to
+ turn on the support for them in the hardware.
+
+ These changes have been verified with the extend-pad and
+ extend-reflect tests in cairo's test suite. However, this
+ currently required using a custom-modified version of cairo.
+ The issue is that released versions of cairo, (and even
+ cairo master so far), don't pass RepeatPad and RepeatReflect
+ to Render, (due to various bugs and workarounds in cairo
+ and pixman). I do plan to fix those issues in cairo, so that
+ in a future release of cairo, (1.8.2 perhaps?), the cairo
+ test suite will usefully test these new repeat modes in our
+ driver.
+
+commit b7279f1be1b913c1c6ee8ebfb95c97800217a821
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Oct 1 15:26:39 2008 -0700
+
+ Examine picture repeatType as well as repeat field.
+
+ The existing switch statement was switching on the Boolean
+ repeat field rather than the correct repeatType field. This
+ had not caused any problem before as only two possible repeat
+ values were supported (RepeatNone = 0 and RepeatNormal = 1)
+ so they were always the same as the repeat field.
+
+ Soon, however, we'll be supporting more repeat types, so we'll
+ need to switch on the correct value.
+
+commit ffcbbb071f1cde90fe0dc4887a05dd66c0e66985
+Merge: 1eb46d0 bf8a3ff
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 30 16:59:35 2008 -0700
+
+ Merge branch 'master' into xf86-video-intel-2.5-branch
+
+commit bf8a3ffeaa4df9ecbad7abff9a44d714de2fa104
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 30 16:59:02 2008 -0700
+
+ Revert "Use -Werror by default"
+
+ This reverts commit f315e9d1ad92562195ce42b956d4be6b31e8a13e. The world
+ isn't ready for a warning free build.
+
+commit 1eb46d055b147941fa529ac582c336a114f47892
+Merge: 8408995 497b742
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 30 12:54:27 2008 -0700
+
+ Merge branch 'master' into xf86-video-intel-2.5-branch
+
+commit 497b7420c4a76df553ed53322a390a1c754ce30c
+Author: Olivier Fourdan <fourdan@xfce.org>
+Date: Tue Sep 30 12:53:11 2008 -0700
+
+ Fix ordering of VGA vs. plane disable
+
+ From the Intel 965 Programmer’s Reference Manual, volume 3,
+ chapter 2.2.2 "Mode Switch Programming Sequence".
+
+ The disable sequence should be:
+
+ - Disable planes (VGA or hires)
+ - Disable pipe
+ - Disable VGA display in 0x71400 bit 31
+
+ This patch implements that order plus waits for a vblank at the end.
+
+ Fixes bug #17756.
+
+commit a4568740ee296bc392843fd324d2a047e7862187
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 30 12:48:32 2008 -0700
+
+ Be more verbose about panel data in VBIOS dumper
+
+ Dump more panel data, including number of expected entries. Had to
+ refactor things a bit, but now each function should get size information
+ so further checking can be added more easily.
+
+commit fa2586a40f20e73ec7420466638e8f595e0da987
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 30 12:46:20 2008 -0700
+
+ Use VBT LFP info pointers by default
+
+ On some machines it appears that the LFP info pointers give us more
+ accurate panel info than if we index into the LFP data table using the
+ panel type index. Early reports indicate that using the pointers
+ doesn't cause regressions, so switch to them by default to help 8xx
+ machines.
+
+ Fixes bug 17310 (and hopefully 17658 too).
+
+commit f315e9d1ad92562195ce42b956d4be6b31e8a13e
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 30 12:07:52 2008 -0700
+
+ Use -Werror by default
+
+commit f082e877d54dbafa437fd05e9c07e870cd513be9
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 30 12:06:46 2008 -0700
+
+ Work around gcc uninitialized variable warnings
+
+ GCC isn't smart enough to analyze the control flow and figure out that
+ these are false positives, but initializing them shouldn't hurt, so work
+ around it.
+
+commit 836d24f2cc3836fbd1695cf1f88c2af975b4862c
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Sep 29 19:02:51 2008 -0700
+
+ Use uintptr_t instead of uint64_t to hold pointer value
+
+commit baec75a56d91546443a2e04812face4997bc764b
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Sun Sep 28 11:18:40 2008 +0800
+
+ [965-xvmc] 965q indirect media data workaround
+
+commit 11d304e99c0e11c28901ec28115d9c8b81a2b9cc
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Sun Sep 28 10:08:26 2008 +0800
+
+ Bug #16631: add option for SDVO force detect
+
+ Some ADD2 card doesn't get SDVO detect status setup right,
+ which disabled outputs on those cards. This adds a new
+ option "ForceSDVODetect" to probe all SDVO ports anyway.
+
+commit 1cc15ba454fdf54a7dea9da066e0a023a4742fab
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Sep 26 10:01:52 2008 +0800
+
+ Render register clock gating disable fix on 4 series chipset
+
+commit d6b2696f9ac14a81598e0147698209ad428fd45d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Sep 26 09:53:03 2008 +0800
+
+ Do force CRT detect sequence twice on 4 series chipset
+
+commit d8a007b056e3d6c3e132ecac06368b21d2ac4123
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Sep 26 09:44:59 2008 +0800
+
+ Bug #16515: Fix VT switch with DVI on G45
+
+ On DVI, centered VGA mode is used instead of native mode VGA, and
+ PLL on pipe is used instead of VGA PLL setting. So make sure PLL
+ settled down in restore time.
+
+commit a428892b76dba4c55e2ae28933d30e98d9fd646d
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Sep 23 12:36:11 2008 -0700
+
+ Update supported hardware list
+
+commit 3c2f7d84785954eb91341f85abb175f299b2797d
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Tue Sep 23 17:15:42 2008 +0800
+
+ [965-xvmc] IGD support
+
+commit 08ab23bb87563517d5653bddf82763b5ef641bed
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Tue Sep 23 14:57:18 2008 +0800
+
+ [965-xvmc] optimize, pack some payload
+
+commit 8408995ffbf705aa0bc09ab72c58c2e31a4b70c3
+Merge: d18b86a afa630b
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Sep 22 18:38:54 2008 -0700
+
+ Merge branch 'master' into xf86-video-intel-2.5-branch
+
+commit afa630b448e5993850433c9f0b129758ec4d37b5
+Author: Bryce Harrington <bryce@canonical.com>
+Date: Mon Sep 22 18:38:35 2008 -0700
+
+ Add TV out quirk for HP Compaq nx6110
+
+ Adds a TV out quirk for HP Compaq nx6110. Fixes bz #17683.
+
+commit 204a6281aa59e29027793ba5c84a5d9af7dc9e90
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Sep 22 18:38:03 2008 -0700
+
+ Revert "Add no TV out quirk for HP Compaq nx6110"
+
+ This reverts commit 6a46022df57d09109fc119fedce99c156715a4d4. It should have
+ been attributed to Bryce.
+
+commit d18b86aa7fc9270e24ed9ea861ebbbbb54558fee
+Merge: 9a7da65 6a46022
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Sep 22 18:03:39 2008 -0700
+
+ Merge branch 'master' into xf86-video-intel-2.5-branch
+
+commit 6a46022df57d09109fc119fedce99c156715a4d4
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Sep 22 13:26:58 2008 -0700
+
+ Add no TV out quirk for HP Compaq nx6110
+
+ Hopefully we can fix the VBT parsing code so we don't need this, but for the
+ time being it seems necessary. Fixes bz #17683.
+
+commit 10909d9b665864bda2b1654de009d556cd068726
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Sep 22 13:11:55 2008 -0700
+
+ Add Cappuccino SlimPRO SP625F to no LVDS quirks list
+
+ Looks like this platform might contain VBTs that indicate an LFP is present
+ even though it isn't. Intended to fix bz #11368.
+
+commit 9a7da65e624060a37eef989963a9c79f13df30d3
+Merge: 043b6e7 2f93cfb
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Sep 22 09:59:52 2008 -0700
+
+ Merge branch 'master' into xf86-video-intel-2.5-branch
+
+commit 2f93cfbc7e96acc32efb5e1ca49b817a81cba6e3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Sep 19 15:20:55 2008 +0800
+
+ Fix output detection for DVI-I
+
+ For CRT this trys to probe all possible port for EDID and
+ detects got confirmed by EDID's d/a type bit.
+ For HDMI/DVI, also using EDID d/a type bit to ensure it should
+ handle the connect or not.
+
+commit 1fbe4d602816c9dfc5fba917b9fdc257d8d025b0
+Author: David Schleef <ds@schleef.org>
+Date: Thu Sep 18 15:37:00 2008 +0800
+
+ Bug #17277: fix upscaling limit
+
+ Oh duh (i830_video.c):
+
+ /* Clamp dst width & height to 7x of src (overlay limit) */
+ if(drw_w > (src_w * 7))
+ drw_w = src_w * 7;
+
+ if(drw_h > (src_h * 7))
+ drw_h = src_h * 7;
+
+ The condition I see in the documentation appears to be src_h/drw_h < 8, that
+ is, src_h < 8*drw_h. It appears this was "fixed" incorrectly in e784e152.
+ It seems difficult to believe that this limitation would exist at all for the
+ texture unit.
+
+commit bc36608e321e01a2be792688b4b734bb7c0667f7
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Sep 18 10:42:33 2008 +0800
+
+ Check display stride limit when allocate front buffer
+
+commit 043b6e71b83eb05339a6f8c4814e6941f8b9695a
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Tue Sep 16 13:21:43 2008 -0700
+
+ Move bufmgr init earlier so it's available at I830DRIDoMappings time.
+
+ Fixes a crash with non-GEM mode. Bug #17540.
+ (cherry picked from commit 62b75df84c893bf28e20014cf88ce45064611dc9)
+
+commit 0a2d17f7c2ea9b695df1855aab4ccc519546d8e5
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Tue Sep 16 11:49:39 2008 -0700
+
+ Put back check for pI830->hw_status in setting hws in non-GEM mode.
+
+ Fixes crashes on non-GEM systems with physical hardware status page.
+
+ Bug #17540
+ (cherry picked from commit 188d58dac9a87b56dbc34ec219cd196928bbcf64)
+
+commit 62b75df84c893bf28e20014cf88ce45064611dc9
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Tue Sep 16 13:21:43 2008 -0700
+
+ Move bufmgr init earlier so it's available at I830DRIDoMappings time.
+
+ Fixes a crash with non-GEM mode. Bug #17540.
+
+commit 188d58dac9a87b56dbc34ec219cd196928bbcf64
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Tue Sep 16 11:49:39 2008 -0700
+
+ Put back check for pI830->hw_status in setting hws in non-GEM mode.
+
+ Fixes crashes on non-GEM systems with physical hardware status page.
+
+ Bug #17540
+
+commit e2743a409a02978ca8e953dbbeeb96f61bbd5ce6
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Sep 12 14:22:48 2008 -0700
+
+ Only BO map render state if kernel mode setting is active
+
+ We'll probably end up doing this differently, but avoid this path for now.
+
+commit 95b3e3a65a60aa264fbbfd141df980b534005264
+Merge: 94a86fa ec17c88
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Sep 12 13:42:06 2008 -0700
+
+ Merge branch 'master' into xf86-video-intel-2.5-branch
+
+ Conflicts:
+
+ configure.ac - resolved version number conflict
+
+commit 8a54e3be5c5057fe8e3c52c03401fdada7978c45
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Sep 12 12:47:13 2008 -0700
+
+ Fix mis-merge of DRI2 changes related to pI830->directRenderingType
+
+ The old code had a directRendering boolean, the new one has an enum. A bunch
+ of the merges failed to remove the '!' in front of the old name, breaking a
+ bunch of 'we don't have DRI' tests.
+
+commit d8d95d8c71f2cd4bab277f44132ece7963714a5b
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 11 16:11:46 2008 -0700
+
+ Fix build failures that should have been in the previous merge commit.
+
+commit ec17c88a0ed7c9cf4ad68aa52a7a891946a1c0f4
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Sep 11 16:14:47 2008 +0800
+
+ Add support for G41 chipset
+
+ G41 is another 4 series chipset like G45/43.
+
+commit f9c625e1e5ddfff06b38fdd4e596fd8eae5934d5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Sep 11 15:35:27 2008 +0800
+
+ Disable render standby
+
+ Render standby is known to cause possible hang issue on some
+ mobile chips, so always disable it.
+
+commit 7e8eb6e20b6b1a2a3c1ef28f694fa23c68a15c48
+Merge: fba9b5a 58a3817
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 10 14:10:26 2008 -0700
+
+ Merge branch 'master' into dri2
+
+ Conflicts:
+
+ src/i830_batchbuffer.c
+ src/i830_display.c
+
+commit 58a3817305ef1455a11be6ead8a8521dfc5875c7
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Sep 9 11:02:49 2008 -0700
+
+ Track move of exec to bufmgr, and restoration of emit/wait funcs for non-drm.
+
+commit f367334c6392a717f6cd2f4ed02200be1c6d356a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Sep 9 11:01:33 2008 -0700
+
+ Track the move of irq emit/wait to fake bufmgr.
+
+commit 0b4f7b630312b148ce4e172cb7cd9f673751b2a3
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Sep 9 10:57:08 2008 -0700
+
+ Track move of bufmgr functions to libdrm_intel.
+
+commit 0f804bfa1e1e972e9b4e3b7c8db61e9877c50f50
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Sep 9 19:17:05 2008 -0700
+
+ Bug #17446: Don't try to manage IRQs in GEM mode.
+
+ The kernel told us that it was already doing so, resulting in failure.
+
+commit da63b5adec8555cc7b3e71f33933f4c9dd6f714e
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Aug 31 14:27:29 2008 -0700
+
+ Add some MCHBAR registers for debugging tile swizzling issues.
+
+commit c7aaf0118baa34e583df5f1c29c9dab9a6af6eb7
+Author: Dave Airlie <airlied@linux.ie>
+Date: Tue Sep 9 18:13:56 2008 +1000
+
+ mode: fix missing comma
+
+commit b9ef0ed7d7b96eca6394cd0d367369ec511d1bcd
+Author: Daniel Stone <daniel@fooishbar.org>
+Date: Fri Sep 5 05:02:08 2008 +0300
+
+ i830: Fix timer leak
+
+ TimerCancel just cancels the timer: it still leaves the TimerRec intact and
+ unfreed.
+
+commit fba9b5aff450d874ef98cafd3ecc0fd85f9597b5
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 3 16:49:07 2008 +0100
+
+ DRI2: Move pixmap pitch alignment for use with depth to pixmap create.
+
+ The previous location for pitch fixup would have only worked when depth was
+ used with the backbuffer, and no page flipping or other adventures occurred.
+
+commit 71ec627c3a65cfc7bca7353af43c60b18e73230d
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 3 16:37:25 2008 +0100
+
+ DRI2: Emit the MI_FLUSH before flushing batch in swapbuffers.
+
+ Should fix issues with swapbuffers flushing to front buffer on 965.
+
+commit daaefd173b4c98d0ebabd43352bfa3a030a62e4b
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 3 16:26:27 2008 +0100
+
+ UXA: Re-enable non-965 render.
+
+commit 32bb5fc7db14911d0438aea1504e1551b2c9fc25
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 3 16:19:03 2008 +0100
+
+ Don't set up sarea or drm mappings in DRI2 mode.
+
+commit 4a5e31138115f435be7f8f5999b1b2329a18d669
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed Sep 3 16:18:23 2008 +0100
+
+ Fix broken test for DRI1 in DRI2 conversion.
+
+commit fca7a4e9a5c73e1c129e94eeccf8fc795f729931
+Author: Stefan Dirsch <sndirsch@suse.de>
+Date: Wed Sep 3 15:32:11 2008 +0200
+
+ Pipe A force quirk for Toshiba Satellite A30.
+
+commit 57ad9cc689724a2f3583eda862250eab0a6798d5
+Author: Fabio <fabio.ped@libero.it>
+Date: Mon Sep 1 13:33:50 2008 +0800
+
+ Man page patch to clarify meaning of VideoRam option with i810/i815
+
+commit fd6a9ca5b59a868260eb91272091ea6169091737
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Fri Aug 8 15:36:35 2008 -0400
+
+ Add DRI2 support.
+
+commit a1c802e4a0324386cf7370594a46354c89e3b646
+Merge: 3733a1b 808b72f
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Aug 29 09:23:35 2008 -0700
+
+ Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 3733a1b54c95aa378f32577f9e996946e8e8e48c
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Aug 29 09:12:05 2008 -0700
+
+ Fix build when using kernel DRM headers
+
+ Unfortunate mismatch between kernel and DRM master headers.
+ Kernel:
+ typedef struct _drm_i915_batchbuffer { ... } drm_i915_batchbuffer_t;
+ DRM master:
+ typedef struct drm_i915_batchbuffer { ... } drm_i915_batchbuffer_t;
+
+ so use the typedef rather than the morphing structure name.
+
+commit bd7ee7fcf51138d21da92a3d8cbaff49871d7188
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Fri Aug 29 11:57:46 2008 +0800
+
+ [965-xvmc] There is some issue with uv half pixel, remove it till fix
+
+commit 973a5fb25652a97e28af03295d430a79557be756
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Fri Aug 29 10:59:17 2008 +0800
+
+ [965-xvmc] some shader optimize
+
+commit e7379d1c48a522f137cf1a06a334748c88471946
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Aug 28 09:49:57 2008 +0800
+
+ [965-xvmc] half-pixel bug fix
+
+commit be49ae6bd683ee9eb778f7ea937aaee4d72c51f0
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Aug 27 11:29:15 2008 +0800
+
+ [965-xvmc] add missing g4a file
+
+commit e813b139b7c353a0930c3e00408700619d3949e4
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Aug 27 11:11:41 2008 +0800
+
+ [965-xvmc] support field prediction and dct type, optimize in GPU
+
+commit 808b72f81454061c815321e51a9b9f925c4bf786
+Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
+Date: Tue Aug 26 22:24:36 2008 -0400
+
+ Change uxa private keys to integer variables.
+
+ Prepares for a devPrivates system that will store an index.
+
+commit 62ce9e8f9c8cc2014645d58f4249c496aebc36e8
+Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
+Date: Tue Aug 26 22:23:06 2008 -0400
+
+ Remove unused exa_pixmap_key.
+
+commit 087ade8e66cf7a34b8a96e1efe438099376cd896
+Author: Robert Noland <rnoland@2hip.net>
+Date: Tue Aug 26 16:35:07 2008 -0400
+
+ Fix typo in last commit
+
+commit 6404ac178bf2c32a715a66e7fd6ab0184a05af36
+Author: Robert Noland <rnoland@2hip.net>
+Date: Tue Aug 26 15:09:47 2008 -0400
+
+ Check for drm before calling modeset ioctl.
+
+commit c889198ab54336248a03050ad410254912d79bb7
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Aug 26 10:12:21 2008 +0800
+
+ Fix X exit crash in NoAccel
+
+ NoAccel should still be needed for performance evaluation,
+ so don't crash me when exit.
+
+commit 0929a191ae36473acb0244a818098e4acf26d675
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Aug 26 10:01:23 2008 +0800
+
+ Destroy bufmgr after allocation finish
+
+ Fixed X exit crash for me, allocation reset will
+ unreference bo which still requires bufmgr to be live.
+
+commit 94a86fa51a931f0059ea17728f857ec92cec5b16
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Aug 25 16:59:03 2008 -0700
+
+ Fix UXA build for distcheck
+
+ Was missing proper path info in CFLAGS.
+
+commit 1c224f72d5f8fa8b6c4d9a6e06698f2462bb43b6
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Aug 25 16:59:03 2008 -0700
+
+ Fix UXA build for distcheck
+
+ Was missing proper path info in CFLAGS.
+
+commit 09a235af0f216052d3101b153c18be1fa75abf15
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Aug 25 16:38:17 2008 -0700
+
+ Update version to 2.4.97 for first 2.5 test release
+
+commit 8e3243b8e5549033aa2f901a3bdd882418f6a69b
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Aug 25 16:37:34 2008 -0700
+
+ Update version to post-2.5
+
+commit 7a5b090abc39c380955489bad5e46d1278f38fee
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Aug 21 09:40:57 2008 -0700
+
+ Hide kernel mode setting EXA code behind XF86DRM_MODE
+
+ Prevents compiler warnings in the non-kms case.
+
+commit 4937b98981923c599786f5007ab0580ad08e1909
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Aug 21 09:39:33 2008 -0700
+
+ Fix compiler warnings in VBIOS utils
+
+commit 08326827fdb8abecbff20c7b051537dbad433c40
+Merge: 5af5041 0de8ca3
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Aug 21 09:30:38 2008 -0700
+
+ Merge branch 'modesetting-gem'
+
+commit 5af504166f14f4401818f3b7c27ac2ccba7b9ff5
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Aug 20 15:06:36 2008 -0700
+
+ Don't disable planes in i830_update_dsparb
+
+ We need to program DSPARB with only one plane enabled at most, and that's
+ guaranteed to be the case when we're called during mode set, so just assert
+ that case but otherwise leave the planes alone to avoid flicker on active
+ displays during output detection for example.
+
+ Fixes bug #17050.
+
+commit 7b6f4d22211d71480caf6335a3eacaacff369371
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Aug 20 14:40:29 2008 -0700
+
+ Don't allocate a pipe for hotplug detection
+
+ It shouldn't be needed...
+
+commit ba4a4b7887d5c2da21cadfeeed601eaec8515550
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Aug 20 14:39:34 2008 -0700
+
+ Add more panel debugging info to register dump & vbios reader
+
+commit 0de8ca36306c506356e82d500134b4eeb96a6080
+Merge: f26bcb9 5eccb5e
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Aug 20 12:11:00 2008 -0700
+
+ Merge branch 'master' into modesetting-gem
+
+ Conflicts:
+
+ configure.ac
+
+commit 5eccb5ec7ea78b5800f98decd4216d39b9ebe5ec
+Author: Julien Cristau <jcristau@debian.org>
+Date: Wed Aug 20 15:33:59 2008 +0800
+
+ Don't skip the checks for DRI headers with --enable-dri
+
+commit 1baebabc3af9f21a5b8084788ecd88dc66ce78de
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 19 16:02:55 2008 -0700
+
+ Add swf_dumper to .gitignore
+
+commit f26bcb9cb879e2e9ee2b26c95438cf46286c0208
+Merge: 67ab546 7a1cc48
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 19 15:53:18 2008 -0700
+
+ Merge branch 'master' into modesetting-gem
+
+ Conflicts:
+
+ src/i830_driver.c
+
+commit 67ab5462527c5ed94ed073421b60e85a213ea267
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 19 15:46:52 2008 -0700
+
+ Use GTT mapping for EXA PrepareAccess function
+
+ Makes software fallbacks *much* faster.
+
+commit 547cf774801bea2177d1224204f7de0dbf6baf3c
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 19 15:45:26 2008 -0700
+
+ Don't allocate EXA offscreen space if kernel mode setting is active
+
+ We'll use GEM alloc & free routines in that case.
+
+commit 2ddd85f8aef5da1aebbfe9fab510858e7a41860d
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 19 15:41:41 2008 -0700
+
+ Bail out if kernel mode setting is active but DRI fails
+
+commit 646bbdc4b6a7b887ee8f0e51fdff5d07c4586329
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 19 15:05:00 2008 -0700
+
+ Add quirk for pre-915s with working PFIT regs
+
+ The regs are undocumented, but on some machines they work fine, so add this
+ quirk to indicate it.
+
+commit 7a1cc48276f974d04e1c5ef7c92d98fe5ae9d4fa
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 19 10:44:04 2008 -0700
+
+ Add VBIOS software flags dumper program
+
+ Still need to actually print all the flags & test on various platforms, but at
+ least the bits are documented now.
+
+commit 385dc85881c56e218e7d17d7e1d022568aa29cfb
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Tue Aug 19 16:27:12 2008 +0800
+
+ Fix from He Shuang(shuang.he@intel.com),
+ XvMCDestroyContext to check pointer valid
+
+commit 3147fa775c7e2a933dc74af1372a3318e77d3218
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Tue Aug 19 16:20:16 2008 +0800
+
+ Fix from He Shuang(shuang.he@intel.com),
+ XvMCDestroyContext to check pointer valid
+
+commit 078a59dd48ed00a6512d155883956c18752da9ce
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Aug 18 12:53:33 2008 -0700
+
+ Remove unused VBIOS flag defines
+
+ We just use the structure definitions now.
+
+commit 7048141254b7c1948fe77b1742b463f8723610d8
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Mon Aug 18 12:51:31 2008 -0700
+
+ Pack bdb_general_definitions block
+
+ More correct & consistent with other definitions.
+
+commit 0e6759bb6ad7293b6447bd20e3d7d8fdee46aba7
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Aug 19 07:30:01 2008 +0800
+
+ Fix reverted LVDS bios capability dword definition
+
+ Issue found by Peter Clifton.
+
+commit 76b5a7ff5c943cfaa254d2fd94b6397c91d1f8e6
+Author: Shaohua Li <shaohua.li@intel.com>
+Date: Mon Aug 18 11:13:20 2008 +0800
+
+ [PATCH] avoid duplicate mode set in lvds
+
+ xf86SetDesiredModes() already sets lvds to full mode. later when
+ xf86CrtcScreenInit() initialized randr12, i830_lvds_set_property will
+ recall xf86CrtcSetMode and set mode to full. This patch is to remove the
+ duplication. In my test, this can save about 0.2 - 0.4s x startup time.
+
+commit b8ee31cd80a945d1fbbfc45234ffe34a109b5717
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Sat Aug 16 12:18:01 2008 -0700
+
+ Remove last TTM bits
+
+ Makes it build again with drm#modesetting-gem.
+
+commit 6eb3e0f2f4e43e436029fc82e458ac8de1f94745
+Author: Adam Jackson <ajax@redhat.com>
+Date: Fri Aug 15 15:47:35 2008 -0400
+
+ Don't touch pScrn->monitor->DDC directly.
+
+commit ed7269e0a377b3135b06cacecc59119f06958feb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Aug 15 10:10:43 2008 +0800
+
+ Always check and free driver private in LVDS destroy
+
+commit f4cb9a135dca9279af8186a9b18bf62ef7351019
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Aug 15 10:02:44 2008 +0800
+
+ Make skip_panel_detect clear for its meaning
+
+commit 22918f62c89a4314fb5d01c58f22fee5b9a15a27
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Aug 14 16:02:37 2008 -0700
+
+ Fix pipe A force quirk
+
+ Last commit introduced a logic buglet, we went from (foo & BLAH) -> (!foo &
+ BLAH) rather than !(foo & BLAH), so fix it up to make my laptop work again.
+
+commit c1687f9ca9ce7b52043272e877e070c810e6599f
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Aug 14 15:48:02 2008 -0700
+
+ Map/unmap render state only when bo is available
+
+ Otherwise just use the GTT address.
+
+commit 380c80712f78b3673b64ea07746a8e25e15fba8e
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Aug 14 15:39:57 2008 -0700
+
+ Fixup AccelMethod kernel mode setting code
+
+ Allow UXA or EXA in the kernel mode setting case, defaulting to EXA.
+
+commit 4475dfb541c988ad19b177e60f31f333e2fb3355
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Thu Aug 14 15:38:07 2008 -0700
+
+ Use pwrite for cursor updates
+
+ Don't open code map/memcpy/unmap, let libdrm do that for us if necessary.
+
+commit cb217d4bfd941d0fa9ceae3e483dd1ca1d768e86
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Aug 13 16:55:39 2008 -0700
+
+ Make EXA & UXA share bo getting function
+
+ Needed for proper acceleration & batch buffer handling.
+
+commit 1ab7239b73a5e298cadaf44e5605cf05855f08e9
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 12 18:16:37 2008 -0700
+
+ Map gen4 render state buffer before initializing
+
+commit 603f48e31b021c4dc0bbf7b5efbb2e68aeb421d5
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 12 18:04:08 2008 -0700
+
+ Don't set tiling (yet) if kernel mode setting is active
+
+commit f744aa8d4b22374e1de6dda4facb673c3c428d4d
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 12 18:02:21 2008 -0700
+
+ Don't run old accel init code
+
+ Had the wrong logic. Throw in a couple of cleanups while we're there.
+
+commit 2321c865f3da9fd321910236a92b32e0af1aa458
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 12 17:59:16 2008 -0700
+
+ Don't wait for ring if kernel mode setting is active
+
+ We won't have the ring mapped.
+
+commit a1b334a4c8ae090744e802f8d41a36ea631d6c84
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 12 17:58:29 2008 -0700
+
+ Update DRM based modesetting support
+
+ Just a checkpoint, still needs a lot of work to properly handle resize, rotate
+ & cursor handling.
+
+commit 5d78cf7cf0d23f60e6d61a92cbc2065b440027d3
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Tue Aug 12 17:56:59 2008 -0700
+
+ Add EXA pixmap management functions for kernel mode setting
+
+ Mostly pulled over from the old kernel modesetting code; a few updates were
+ necessary.
+
+commit 9ec36e0c8bd8a4bd7c40569412fc1a21219b5af9
+Author: Olivier Fourdan <ofourdan@redhat.com>
+Date: Mon Aug 11 12:07:32 2008 -0400
+
+ Fix DPMS off in the presence of the pipe A quirk.
+
+ Still turn off the VGA plane, and also handle the DRI path at the end.
+
+commit 445c2e9ef8fc1d49bbb03e07bf36e0339be16a80
+Author: Olivier Fourdan <ofourdan@redhat.com>
+Date: Mon Aug 11 11:30:51 2008 -0400
+
+ Apply pipe A quirk to 845 as well.
+
+commit 915c370964d8dbab48ff24ede2c5e78e7b39132d
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Mon Aug 11 15:45:35 2008 +0800
+
+ [965-xvmc] some fixes for earlier 965 chips
+
+commit 19ebdf1b24184c0a293a698d44c4e0571109d153
+Author: root <root@cr-znh.(none)>
+Date: Mon Aug 11 15:31:13 2008 +0800
+
+ [i965-xvmc] bypass copy when put image with xvmc
+
+commit d592eabc806b752053ade3c18e9dd8e0f39b45a3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Aug 11 15:16:44 2008 +0800
+
+ Fix possible spurious interrupts in hotplug detect on 4 series chip
+
+commit d0018a96064ee0adfe87c2d50c341bf7d2e45eb0
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Aug 11 15:16:09 2008 +0800
+
+ Disable display clock gating for 4 series chips
+
+commit 173b909a71955997ed6366e70faebf63fe922a8e
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Aug 8 18:11:13 2008 -0700
+
+ Make it actually build the kernel stuff if possible
+
+ Fixup the kernel stuff to have a slightly better chance of working. Still need
+ to fixup the EXA pixmap functions.
+
+commit fe90c0522f65f60c4c431787c889b7fb639ab61b
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 8 16:35:25 2008 -0700
+
+ Set lvds_ddc_mode before use to avoid a segfault on mac mini.
+
+commit b1aef6f63c151dcb202fce869e4b80598b4b2052
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Fri Aug 8 11:54:18 2008 -0700
+
+ Initial port of kernel modesetting from old intel-kernelmode branch
+
+ Thanks airlied!
+
+commit 91e7b93c12f612e41b04a2d6106ff29b53b22a43
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 7 11:02:19 2008 -0700
+
+ intel_idle: Instead if #if 0, add an ignore flag for unreliable INSTDONE bits.
+
+ This lets us produce a decent total value, and still show the unreliable bits
+ in case they aren't on your platform.
+
+commit f9504eff31eb3c9c6c6b33dced9875866ff8307e
+Merge: f911347 5c9a62a
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Aug 6 12:40:47 2008 -0700
+
+ Merge branch 'drm-gem'
+
+commit 5c9a62a29f62a9ecce37fae98cb01f8217eaba15
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Aug 6 12:39:03 2008 -0700
+
+ Revert "Switch to using a buffer object for the vertex buffer"
+
+ This reverts commit 1abf4d3a7a203ff5d6e5ceda29573e7fd69ddf8e.
+
+ Conflicts:
+
+ src/i965_render.c - flushing was removed, keep it that way
+
+commit f91134795b545c8baebf218975b261c76a0e5873
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Aug 6 16:19:29 2008 +0800
+
+ Fix SDVO HDMI encoding detect (#16920)
+
+ Check return value of get supported encode command and current
+ encoding mode, which could be DVI or HDMI.
+
+commit fc3e287e6b6db21b113aa40ec4d397802c067f8b
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Aug 5 22:50:01 2008 -0700
+
+ [uxa] Remove unused pixmap size limits.
+
+ All size-related rendering limits should be managed by the driver in the
+ pixmap_is_offscreen call. There's no need for uxa to even know these values.
+
+commit 68f0872db6ec4d5dc3b524ee08ecad0aa125acd9
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Aug 5 22:36:03 2008 -0700
+
+ [uxa] Check xalloc returns and deal with failure
+
+ Failing xalloc in a rendering function means just dropping the drawing on
+ the floor (that's what we've always done).
+
+commit 8f10bfb127bfe73d83d58f1f306fb9a4dfd825d6
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Aug 5 22:34:24 2008 -0700
+
+ Use EXA by default instead of UXA until we have GTT mapping
+
+commit b2d058d80ccd08d9e02ef866ee7a95b58686f6a3
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Aug 4 23:43:13 2008 -0700
+
+ Rename uxa using _ instead of caps
+
+commit fc4d9c55a7fa8001786c1e4da10f005406c57ece
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Aug 4 18:17:20 2008 -0700
+
+ Change PrepareAccess to take access mode rather than index
+
+commit c155bb3cb17a3bd3b2e90be52cd1fc90147c4e17
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Aug 4 04:11:13 2008 -0700
+
+ Add batch flush in i830_uxa_prepare_access
+
+commit 66706718553cd272eab6f817b5a059df3e0a4347
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Aug 4 04:10:21 2008 -0700
+
+ Add throttling
+
+commit 12df8f40d2fb41f5446db1b49beeb442da18bee2
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Aug 4 01:43:44 2008 -0700
+
+ Use dri_bo for all object allocations, including pixmaps under uxa
+
+commit 4cc20b7f6e25f4be4598f8edbe0077117126b4ee
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Aug 4 01:42:48 2008 -0700
+
+ Don't call sync on prepare_access -- just let the driver deal with it.
+
+ Let the driver do whatever sync is necessary from the prepare_access hook
+ rather than forcing a full sync.
+
+commit b0b0998b5d52d105eb1e631f688aa8f1bd55ef39
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Jul 30 16:15:37 2008 -0700
+
+ Make EXA functions work for UXA as well
+
+ EXA and UXA have the same acceleration interface, but UXA doesn't provide
+ pixmap stride information as it doesn't manage pixmaps. Move all of that
+ into the driver structure so that the acceleration functions needn't
+ reference the EXA structure.
+
+commit 59774e9aca2d743e82d616bb644d20ff6d60d492
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Jul 29 22:57:09 2008 -0700
+
+ Add UXA - the unified memory acceleration architecture.
+
+ This eliminates the cost of EXA migration management while providing full
+ pixmap allocation control to the driver. The goal is to make something
+ useful for UMA drivers.
+
+commit a21d4794b6812ce05d08f06dc47b26c4fb1c1fef
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Tue Aug 5 13:37:38 2008 -0700
+
+ Reorganize VBIOS code
+
+ Make VBT parsing happen at driver init time rather than in each output init
+ function, to save time and better separate VBIOS code into i830_bios.[ch]. The
+ changes end up touching the output files due to field name changes, and allow
+ us to reorder & simplify our LFP mode detection code.
+
+commit c2f0df4dc97c87539b66525a277c7d1e2c421f61
+Merge: 4f1f308 750bd0b
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Tue Aug 5 13:03:46 2008 -0700
+
+ Merge branch 'drm-gem' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel into drm-gem
+
+commit 4f1f30854260e18b8b9c4103eebbad5dcf729ce6
+Merge: e9e6b47 2aaa207
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Tue Aug 5 13:02:47 2008 -0700
+
+ Merge branch 'master' into drm-gem
+
+ Conflicts:
+
+ src/i830_driver.c
+
+commit 1a59cc6b9acf312de1755d67757bf7f1967342e4
+Author: Julien Cristau <jcristau@debian.org>
+Date: Mon Aug 4 12:18:12 2008 +0200
+
+ Fix up the HP Pavilion ze4944ea quirk
+
+ The chip is 855GM, not GM45.
+
+commit 27e9506fda86e90fd67de1715fa32d23aaa8a683
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Thu Jul 31 20:02:21 2008 -0700
+
+ Man page typo fixes
+
+commit da2eb83fb9a52291ea98f3285aee7bee2d55e0ca
+Author: Jesse Barnes <jbarnes@eee.(none)>
+Date: Thu Jul 31 19:21:36 2008 -0700
+
+ Update man page
+
+ Add example dual head config, add info on bug reporting.
+
+commit 2aaa207db2cea03ba05c439b5074807689f2c5be
+Merge: 2049ba2 76eb8e6
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Thu Jul 31 13:10:19 2008 -0700
+
+ Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+ Conflicts:
+
+ src/i830_display.c
+
+commit 2049ba211e7cdc383976c09f52c2b43acdd59481
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Thu Jul 31 13:07:20 2008 -0700
+
+ Update DSPARB while planes are still off
+
+ This avoids the flickering people reported in the 2.4.0 release.
+
+commit 750bd0bde09adf956c17bbb49c5a6020f12e60a4
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Jul 29 15:22:39 2008 -0700
+
+ Call DRM_I915_GEM_THROTTLE from I830BlockHandler
+
+ This prevents the CPU from ridiculously outrunning the GPU.
+
+commit a893f176dda0b64f7dadfda6bf0331240037851e
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Jul 25 15:56:35 2008 -0700
+
+ Add call to intel_bufmgr_gem_enable_reuse
+
+ This instructs GEM to reuse buffer objects and improves the
+ performance of my favorite 'x11perf -aa10text' from about
+ 169k to about 188k glyphs/sec.
+
+commit b3c1a148679a4d943e556f996ef6b9004f549a41
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Jul 25 15:18:28 2008 -0700
+
+ Eliminate unnecessary flush from i965_composite
+
+ This improves 'x11perf -aa10text' performance from ~144k to ~169k
+
+commit 1abf4d3a7a203ff5d6e5ceda29573e7fd69ddf8e
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Jul 25 14:48:45 2008 -0700
+
+ Switch to using a buffer object for the vertex buffer
+
+commit e5fab0b7681be06a5a3be4bbd769ba5c435e2128
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Jul 25 13:44:29 2008 -0700
+
+ Add OUT_RELOC macro and backing intel_batch_emit_reloc function
+
+commit 76eb8e6f1f0c6962b23550564f4273f392567857
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jul 31 16:59:43 2008 +0800
+
+ Fix SDVO reg definition
+
+ Remove wrong set tv resolution command, adding HDMI regs in dump.
+
+commit 77ed3d7600c1d92bf4a3ef4f54405cde8c232986
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jul 31 13:13:45 2008 +0800
+
+ Don't program dsparb on new Intel chip
+
+ On new chip, DSPARB is controlled by hardware only.
+
+commit e9e6b4738573ffa3822ae68088bd53a645eedbce
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jul 30 14:15:57 2008 -0700
+
+ intel-gem: Use new getparam to detect kernel GEM support.
+
+commit 42fb06f3f14fbec070350cf48361be4a0be0af04
+Author: Tomas Carnecky <tom@dbservice.com>
+Date: Sun Jun 15 14:27:16 2008 +0200
+
+ Reorder visuals reported by the intel driver
+
+ The root window visual can not be changed. Neither at runtime nor
+ through the configuration file. The xserver simply selects the first one
+ that matches the class (usually TrueColor). I need a root window visual
+ with stencil buffer because my compiz plugin uses the it for some
+ operations. This patch reorders the visuals that the 3D driver reports
+ and puts the one with stencil (and depth) bits as first.
+
+commit 1e90c82161789d1fd50b79db50edb7860b934639
+Author: Julien Cristau <jcristau@debian.org>
+Date: Sun Jul 27 12:07:21 2008 +0200
+
+ Link with -lm for sin/cos
+
+commit d77d42e543ee82e801a8563a911826521c0ba557
+Author: Eric Anholt <eric@anholt.net>
+Date: Sat Jul 26 16:10:05 2008 -0700
+
+ intel-gem: Give a better error message if the kernel rejects the tiling mode.
+
+commit 6ac352f146bafe3b4bb5832340eb0ccb730565d2
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jul 23 15:10:07 2008 +0800
+
+ shut up gcc warning
+
+commit 075cf7fce57da4e51acafb3bfd3d61ba1a8096d5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jul 23 15:07:48 2008 +0800
+
+ Fix distcheck for clean doltcompile
+
+commit 29d982c6bf873c6685bd0e395a8b0e5e3b1063e0
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jul 23 11:16:14 2008 +0800
+
+ Fix HDMI output number
+
+ Output 33 is confusing.
+
+commit fd060ce89d86f6e8ff742d5b287abe8ecea32927
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jul 22 15:29:34 2008 +0800
+
+ Bug #16801: fix X crash when NoAccel on 965
+
+commit 577c4d1a0c753fb46d43be05a9781d2e204fac45
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jul 22 15:14:14 2008 +0800
+
+ only check pipe underrun if vtSema is true.
+
+commit 04bbed2248e3e8f86efd64225abf2db8eb552653
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jul 22 15:08:57 2008 +0800
+
+ SSC is LVDS only
+
+ Fix regression on my 855GM for VGA output.
+
+commit 7defa4f1f0eba82f39e74f96d2ad7ed2481b537e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jul 22 10:51:01 2008 +0800
+
+ Check underrun on enabled pipe
+
+commit b7765b0837af4cc80f1257ba04495140ef5d536e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jul 22 09:51:54 2008 +0800
+
+ Thinkpad R60e TV quirk via DMI info
+
+commit 286ff63f83db8ea16514512385e6f8c6875871ef
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 17 17:06:28 2008 -0700
+
+ Don't set up the HWS page in GEM mode now that the kernel manages it.
+
+commit ed0fbd016b8fbcf01eddfd17fd25e745e7af2ba4
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Mon Jul 21 11:48:38 2008 -0700
+
+ Add no LVDS quirk for Transtec Senyo 610 mini PC
+
+ Fixes FDO #16757.
+
+commit 62a037b0585d6ecb43daac9d4eb0927a4618a367
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 18 14:50:08 2008 -0700
+
+ Fix distcheck.
+
+commit 3cbfc6c76bcd2bc9194a944092f6ce0881ff9da2
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 18 14:56:18 2008 -0700
+
+ Fix uninitialized-use warning in i830_debug.c ring dumping.
+
+commit 1b1c4975768f63ed0f3933ec384d24c324a383b3
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 18 14:53:26 2008 -0700
+
+ Get prototype for i830_bios_get_tv().
+
+commit 978abf84e8cf3ba3e915774981fe03610e15efeb
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 18 14:50:42 2008 -0700
+
+ Bump version number past the 2.4 stable branch.
+
+commit f4ab1f6ad47b8f9a33d45b35c1cb2ba9610b96a6
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Jul 18 14:31:45 2008 -0700
+
+ Add intel_statuspage to .gitignore
+
+commit c0dce28892d7a31ebcca615f87ba8d4fa6872204
+Merge: a6ad504 b8ca1c7
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Jul 18 10:49:50 2008 -0700
+
+ Merge commit 'origin/master' into drm-gem
+
+commit b8ca1c747a679c931267363639fc0bc690cae2d6
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Jul 17 14:41:51 2008 -0700
+
+ Choose a split for DSPARB based on the configured modes for both planes.
+
+ Previously, we were attempting to give both planes equal space in the FIFO
+ to be fair. However, larger modes require more fifo space, so split it based
+ on the relative HDisplay of the modes. This should resolve some fifo underrun
+ issues with differently-sized displays, or single large ones.
+
+ Bug #16169.
+
+commit b37a2a8ca82279468e3806dcf77d5fa7bdd0e874
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Thu Jul 17 12:30:57 2008 -0700
+
+ Don't disable pipe A on 855 chips
+
+ It needs to stay enabled or we may see hangs when trying to re-enable it (say
+ at VT switch time).
+
+ Fixes FDO bug #15168.
+
+commit a6ad50402cb879b08de95f94959bb1f59701c1ff
+Merge: e9916b9 c4565a9
+Author: Carl Worth <cworth@cworth.org>
+Date: Thu Jul 17 00:38:54 2008 -0700
+
+ Merge branch 'master' into drm-gem
+
+ Conflicts:
+
+ configure.ac
+ src/reg_dumper/Makefile.am
+
+commit c4565a9811487402d899d0933cc63e27ffe1ff08
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jul 16 10:45:28 2008 +0800
+
+ Only initialize integrated TV encoder for mobile chips
+
+commit bca316863b79148b2f51a97d58b94e52ba3eae9f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jul 15 13:35:21 2008 +0800
+
+ xvmc: use vector based structure
+
+ This is more clear to read MV components.
+
+commit 0c67219d0e6cfc858af2eb375c2f9473d0f6db60
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jul 15 13:29:33 2008 +0800
+
+ move FBC register dump out of display registers
+
+ This makes it easier to read.
+
+commit a76ae7cab3001ce6639ae23fb0769c4e46b57e71
+Author: lipeng <peng.li@linux.intel.com>
+Date: Tue Jul 15 10:26:33 2008 -0700
+
+ Fix GPIO pin usage for DDC on second HDMI port.
+
+commit 5054a86b1b362f3f63310afb9ef2d37c9f1cfca5
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jul 14 13:43:31 2008 -0700
+
+ Fix DSPARB setting on 845/865, which have only the AEND field and 96 entries.
+
+commit 8ac00ca97995e36514ff593fec3c0f0d316ed138
+Author: Julien Cristau <jcristau@debian.org>
+Date: Fri Jun 6 13:40:20 2008 +0200
+
+ Link the driver with -lpciaccess and -ldrm if needed
+
+ This makes sure the driver ends up with a DT_NEEDED reference to
+ the libraries it's using.
+
+commit d61182511b1520b04133d28480e1ffaacbaeb753
+Author: Julien Cristau <jcristau@debian.org>
+Date: Sun Jul 6 12:00:52 2008 +0200
+
+ Fix gen4asm rule to work with a build dir
+
+commit 757c00927a6f5760135136450b8d02d0f999ac1c
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 7 15:58:27 2008 -0700
+
+ Use up to 256 separate vertex buffers
+
+ This allows us to only call i830WaitSync once every 128 calls to composite
+ rather than on every call. However, we do need to also call MI_FLUSH to
+ avoid the vertex cache getting in our way, (since our "separate" buffers
+ are all allocated as one contiguous chunk).
+
+commit 0c548cd040d0c5e1812470ccdf6de86b6a2926d7
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 7 14:01:15 2008 -0700
+
+ Allow for multiple vertex buffers (though only use one for now)
+
+ Using more than one (in the future) will allow for doing less frequent calls
+ to i830WaitSync.
+
+commit cc2249333cd462b4d99d110a12c454ca141b2be8
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jul 7 13:25:42 2008 -0700
+
+ Move VERTEX_BUFFERS setup from prepare_composite to composite
+
+ This is in preparation for having larger (or multiple) vertex buffers
+ in the future.
+
+commit e9916b9d496fd0b4df717892dda33f81a2e2990a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 11 18:59:05 2008 -0700
+
+ Set tiling state for buffers allocated using GEM.
+
+commit 3c0f2bcc9965155fecab606edae68874427d3423
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Thu Jul 10 12:57:25 2008 -0700
+
+ Add VBIOS based TV connector detection
+
+ Now that the VBIOS code supports it, we can use the general features block to
+ detect whether a TV connector is present on a given platform.
+
+ Reviewed by Nanhai Zou.
+
+commit e00d9435609bcff1afb71aa6638a6b42a64f5178
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Thu Jul 10 12:55:12 2008 -0700
+
+ Improve VBIOS feature detection, add SSC support
+
+ Improve the VBIOS feature detection and use it to find whether the platform
+ supports spread spectrum clocking. Use the specified reference clock, but
+ disable SSC if multiple heads are active, since it can cause problems in cloned
+ configurations.
+
+ Reviewed by Nanhai Zou.
+
+commit 7332132a79e5b5c208d43e93dfe0c8b12eb1728d
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Mon Jul 7 10:48:56 2008 -0700
+
+ Improve FBC size checking
+
+ In hindsight, this is obvious, since nowhere do we tell the FBC unit how much
+ memory it has available. We need to make sure the compressed buffer is big
+ enough to handle the uncompresed buffer, both in terms of vertical size and
+ total framebuffer size, or the compressor could overwrite the memory
+ immediately following the compressed buffer.
+
+commit f2ec3fd8f2c63b1bc0745802dcf737eda4bb42b6
+Author: Stefan Dirsch <sndirsch@suse.de>
+Date: Thu Jul 3 23:12:13 2008 +0200
+
+ Add pipea force enable quirk for another 855GM machine.
+
+ Fixes Novell Bug #406123, thanks Christoph.
+
+commit a34a4e3f6420e2b06bbdaa124fe0ccb1bc6a0bd9
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jul 3 01:03:14 2008 +0800
+
+ Fix official name for GM45 chipset
+
+commit 6506ac7aa008436158db4f4196802cab462f3446
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jul 2 11:12:54 2008 +0800
+
+ Give asus and eeepc backlight method higher priority
+
+ On #16418, Evgeniy Manachkin <sfstudio@mail.ru> reported that
+ last asus and eeepc backlight patch is wrong, as acpi_video0 method
+ will take priority and doesn't work.
+
+commit 55678c64bc6e3ed613ea6db14c105c18a0cf28ce
+Author: Dave Airlie <airlied@linux.ie>
+Date: Tue Jul 1 18:51:18 2008 +1000
+
+ intel: fix drm check.
+
+ The -mm check is broken now that 2.3.1 is out.. make it 2.4.0, to be fixed
+ with GEM etc.
+
+commit 0597d94001afe0a9a34104285ce4dffc75b68071
+Author: Roland Test-tools Bär <roland@verifysoft.de>
+Date: Mon Jun 30 10:32:42 2008 -0700
+
+ i810: Remove an effectively unused variable (only used in an incorrect free())
+
+ Bug #15401.
+
+commit 37661d916e8384f537d5ed8cbec66a93795c6a05
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Jun 27 11:21:59 2008 +0800
+
+ Fix SDVOC typo
+
+commit 7834a3b118ae4e034f064257762d5c25ada5fe52
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Jun 27 09:54:35 2008 +0800
+
+ xvmc: fix motion_type dump for frame/field picture
+
+commit 989ec9e8a69f909cb64f17e4465982613b4b054d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Jun 27 09:39:02 2008 +0800
+
+ xvmc: Don't copy on xvmc surface in PutImage
+
+ As xvmc rendering result has already been in fb, we shouldn't
+ do extra copy on it. Although special care is required for i915
+ xvmc surface pitch alignment, which must be at least 1KB aligned.
+ So video display function should take it into acount instead of
+ always setting Y pitch to be double of U/V pitch.
+
+commit 550082070a3fdb951e3cf08974dc56276c0a739c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jun 26 14:22:34 2008 +0800
+
+ xvmc: enlarge batch buffer size
+
+commit d50cec6ef9e2178ea663e58d548390f0f3da7692
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jun 26 14:20:05 2008 +0800
+
+ xvmc: only allocate memory requiring physical address on 915G
+
+ Later 945-ish chipset can use graphics address instead.
+
+commit d1c34d8c0e7ae2a1d952791343e131837fbfda99
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jun 26 10:05:21 2008 +0800
+
+ xvmc: init mc render load indirect command once
+
+commit 75e38fa8348198ba151afa37e10be3b0b0b468f8
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jun 26 09:47:28 2008 +0800
+
+ xvmc: init dest and reference buffer once
+
+ Init them right after context create, and only update buffer address
+ info later.
+
+commit b4d8ca8b38e495b56bb3b4143e5dfe91ee651f15
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jun 25 14:27:16 2008 +0800
+
+ xvmc: init one-time mc context once
+
+ Don't setup one-time mc context everytime, as the content is always
+ unchanged. And several structs got packed layout inside to ease static
+ state initialization.
+
+commit 54f3f528e4804b958936ac773e7a507b2676f815
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Jun 23 15:51:49 2008 +0800
+
+ xvmc: environ debug option support
+
+ export INTEL_XVMC_DEBUG=1
+
+commit 7a705081788bf957409e17baa5f189241589057c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Jun 23 15:49:29 2008 +0800
+
+ xvmc: formalize surface type definition
+
+ We should also carefully select surface type id.
+
+commit 0283d22f510ba47dfdac2806a58e46649c26580b
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Fri Jun 27 13:39:31 2008 -0700
+
+ Add pipea force enable quirk for HP Pavilion ze4944ea
+
+ Fixes bug #16540, thanks Bryce.
+
+commit 08903abe4dc0295c7ed7d1ff1a22e0e579540c15
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Fri Jun 27 13:37:10 2008 -0700
+
+ Add pipe a force enable quirk for Lenovo T60
+
+ Fixes bug #16494.
+
+commit 05df8c0b31721a9ccc7215fb1cda1115758367c7
+Author: Hong Liu <hong.liu@intel.com>
+Date: Fri Jun 20 10:57:14 2008 +0800
+
+ Fix SDVO HDMI output.
+
+ While some cards had enough initialized at startup to work already, others
+ required that the driver actually initialize the required AVI info frame.
+
+commit 59f39e0ea0ad48c52d9b8f7afb6e04ce95db717e
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Tue Jun 24 11:01:46 2008 -0700
+
+ Remove ErrorF debugging from modeset ioctl
+
+ Oops.
+
+commit 1056d79809a3765f81113f3988bd948c1f9c673a
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Tue Jun 24 10:44:23 2008 -0700
+
+ Fix back buffer damage handler for 965+ chips
+
+ When page flipping is enabled, we need to make sure any changes to the front
+ buffer are reflected in the back buffer(s) or corruption might occur at page
+ flip time. So make the damage handler work on 965 by adding appropriate tiling
+ flags and pitch adjustments.
+
+commit 65eee25d7d2ca979205f3776d620dbb36bf68a13
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Tue Jun 24 10:41:46 2008 -0700
+
+ Add support for keeping vblank counters sane across mode setting
+
+ The DRM supports disabling of vblank interrupts when not in use, but in order
+ to function properly it must also be aware of mode setting, which will reset
+ the frame counter to 0. Add code to call into the DRM before and after mode
+ setting, so that it can account for any lost vblank events.
+
+commit 277632d8c37cf43c7c1178ae7d5a2e6d5705968c
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Tue Jun 24 16:43:40 2008 +0800
+
+ 965 xvmc, current only frame based DCT_type support
+
+commit 9d7929436488969ca4fd1fef4d2e92be5e1a93aa
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Jun 20 00:23:45 2008 -0700
+
+ Flush pending batch in block handler
+
+ Make sure any pending rendering commands are delivered to the hardware
+ before the server goes to sleep.
+
+commit 2f8a0aa8cd24ede824aa52102b45a295f1b6b5be
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue May 20 20:29:25 2008 -0700
+
+ Remove some unreliable regs for i915
+
+commit 6b6be2b2a7179c1c9fa12989e16076aae105f4e2
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 19 15:01:00 2008 -0700
+
+ Fix a crash in i830_sdvo_init error paths by setting up dev_priv earlier.
+
+commit 65ad29d78793c7804f133a58de80ffaa0404ca28
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 19 14:27:30 2008 -0700
+
+ Automatically detect the presence of HDMI.
+
+ Now, SDVO is only probed if the SDVO detected bit is set. If the SDVO probe
+ fails, but the detect bit is set, assume that it's an HDMI output.
+
+commit ea0d21006ec71bc56acde7291e5f8d28e54b83fe
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 19 14:10:29 2008 -0700
+
+ Fix hdmi POSTING_READ to use the register number instead of the register value.
+
+ We won't dwell too long on how this ever worked.
+
+commit 2fa9240a3b685a0c3d0e2644fc144c927b67b6b3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 20 15:14:46 2008 -0700
+
+ Get HDMI output working.
+
+ HDMI, despite claiming to have pixel multiply support, actually doesn't
+ want it, at least in the way that SDVO did. Disable it.
+
+ Also disable the NULL_PACKETS_DURING_VSYNC bit. Despite the docs telling us
+ to set it, the output doesn't like it when you do that, and the BIOS doesn't
+ set it.
+
+ Also add a posting read to SDVOx setting. Without it, half the X starts
+ wouldn't get anything on the screen. (interestingly, it was every other
+ startup, not just a chance).
+
+commit dc8ab9d35b261b6105a62949cfb47a3554531d0b
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 20 13:49:47 2008 -0700
+
+ Set the sync active bits like we're supposed to, matching the BIOS.
+
+commit af13826ed063b60a1e4179101e8889b4ab7a9d0b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 10 11:51:05 2008 -0700
+
+ Add pixel multiplier support for HDMI
+
+commit 9a05662918223477eb1cf6f80ffac08712721c70
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 10 11:47:15 2008 -0700
+
+ The phase shift its are now reserved, and add HDMI clock limits.
+
+commit beba1dd3561e38573ed9f507328caf7f8fb9f84a
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 6 16:05:17 2008 -0800
+
+ Initial HDMI work. Not currently hooked up at startup.
+
+commit da58dc3b02999f3244d0eaf77180b828d85bd609
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 6 14:57:57 2008 -0800
+
+ Add DisplayPort registers.
+
+commit 52a414d1158aa7512fb79560dc220e2a78456a2d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 6 14:00:18 2008 -0800
+
+ Remove VGA regs from debug output.
+
+commit b60bbbfd7b7dcf31726ad615a493f34f17cc6309
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 6 13:59:06 2008 -0800
+
+ Add little hotplug detector app.
+
+commit 64fa32e2eba21cb94aa0f8d87a6ee6b7c178a7a5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jun 19 11:02:29 2008 +0800
+
+ Add backlight kernel method support on Asus and Eeepc
+
+ Noted and tested by Evgeniy Manachkin <sfstudio@mail.ru>
+ for asus-laptop support, also add eeepc support.
+
+commit 1cfe769c74d1a3a392bf1aaaf5c2dcc8273daf66
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jun 17 12:39:28 2008 -0700
+
+ Add support for Intel 4 series chipsets.
+
+commit 289790c0467d27e96b537598a6589fc6a36da8b8
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jun 17 09:46:12 2008 +0800
+
+ Fix compiling with server master in LVDS backlight patch
+
+commit 66418cc99cfd360e303efcdf74a9ee31d435ff15
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jun 12 14:04:41 2008 +0800
+
+ Fix compiler warning when disable xvmc config
+ (cherry picked from commit df0bbdc7cbb6ff357a81ed28d12e56c9c7d643f7)
+
+commit 078d05865884ca5784b532c0a79c8440632002ac
+Author: Shuang He <shuang.he@intel.com>
+Date: Mon May 26 09:20:53 2008 +0800
+
+ Fix typo in xvmc block destroy
+ (cherry picked from commit 87ace420a34df7425641d089f71830e44fced098)
+
+commit 4c4ef27779aebf4df90b6233de05be2bb972de4c
+Author: Lukas Hejtmanek <xhejtman@ics.muni.cz>
+Date: Mon Jun 16 02:49:41 2008 +0800
+
+ Fix maximum backlight issue
+
+commit d775ddc64dc8349b8ef9e85b0be9e93cb1997fea
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jun 13 10:03:24 2008 -0700
+
+ [gem] Catch -EINTR from blocking GEM ioctl and restart.
+
+commit 02d7141ac395446613edba0f2e2a951e750e4e9f
+Author: Dave Airlie <airlied@redhat.com>
+Date: Fri Jun 13 11:30:58 2008 +1000
+
+ [gem] remove one more unused bit
+
+commit f07acbdaac95931d184ea2c557edb632e577eb47
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 12 13:47:35 2008 -0700
+
+ Require libdrm 2.4.0 always since we need the bufmgr code.
+
+ This lets us remove a lot of conditional compile stuff in the DRI case, as
+ if we're doing DRI and have 2.4.0, we can rely on GEM ioctls existing.
+
+commit 754df0aa55c4b5f0c3c415ad97d7612504410229
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 11 14:43:38 2008 -0700
+
+ [gem] Chase move of create ioctl from generic to device-specific.
+
+commit 339f00e340c3a9c8ac8f17147e37906494ef370b
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jun 10 16:14:06 2008 -0700
+
+ [gem] Don't set up the ring in GEM mode, as that'll be handled by the kernel.
+
+commit e930c0dc5b5f98d256a4167ed70ba813c88924d2
+Author: Eric Anholt <eric@anholt.net>
+Date: Sat Jun 7 13:57:59 2008 -0700
+
+ Use bufmgr_gem when available instead of the fake bufmgr.
+
+ This is a bit unstable still sometimes.
+
+commit ecf19e1cda60a938d41413075ae6e00f24e0ec1a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jun 6 15:27:44 2008 -0700
+
+ Change most usage of pixmap offsets to using a reloc macro.
+
+ This is based on airlied's RING->BATCH commit. The 965 code still needs to
+ be fixed up for relocations.
+
+commit bade7d7d2505a10a8a7d24b084aff9742e2d6d64
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jun 6 14:03:25 2008 -0700
+
+ Use the DRM for submitting batchbuffers when available.
+
+ There are some concerns with this, as the DRM will be setting the nonsecure
+ flag on the batchbuffer, and the server may be submitting some secure-only
+ commands. It appears to work on the 915GM test system currently.
+
+commit 6e94affcc2240e668bcf1aa41f3c8b19929d144b
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jun 6 14:01:05 2008 -0700
+
+ Avoid needless flush emits in the blockhandler.
+
+ The EmitFlush in i830_dri.c was added as a pageflipping workaround, and was
+ noted to not even be sufficient then. There's no reason for it to be there,
+ so it's removed. After that, we just have to not emit an MI_FLUSH if we
+ already had, and cursor movement no longer bashes memory manager.
+
+commit b2216e7bc2f1a35f9fc1794bad83208cd5c583d1
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 4 16:31:16 2008 -0700
+
+ Use batchbuffers instead of ring emits for general commands.
+
+ The batchbuffers are managed using libdrm and bufmgr_fake, and dispatched from
+ the ring from userland.
+
+commit d0fda9d24c5fe4870cdbd2ba0213091165666a8e
+Merge: cc98d41 79f94ee
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jun 10 11:32:49 2008 -0700
+
+ Merge branch 'master' into drm-gem
+
+commit 79f94ee3c4652019395b9c329d94f7779c558571
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jun 10 11:31:22 2008 -0700
+
+ Set up/restore PWRCTXA from enter/leavevt not server start/exit.
+
+ This should improve behavior in the presence of VT switching, but also avoids
+ a crash on X exit from writing the register after unmapping mmio.
+
+commit 231a302013981cc597ba09ee89b367c8ab56e8ba
+Author: Bryce Harrington <bryce@bryceharrington.org>
+Date: Tue Jun 10 14:10:39 2008 +0800
+
+ Two more Dell quirks
+
+ fd.o #16160
+
+commit cc98d41df63f1ee2561440fab3aa471a80a12920
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jun 9 12:00:14 2008 -0700
+
+ Add a little program to dump out the first 64 dwords of the status page.
+
+commit 1142be53eb8d2ee8a9b60ace5d49f0ba27332275
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Mon Jun 9 08:52:59 2008 -0700
+
+ Fix TV programming: add vblank wait after TV_CTL writes
+
+ Fxies FDO bug #14000; we need to wait for vblank after writing TV_CTL or followi
+ ng "DPMS on" calls may not actually enable the output.
+
+commit 64a8f2433d7774d06119793b57cec6d3be6389c1
+Author: Robert Lowery <rglowery@exemail.com.au>
+Date: Tue May 20 21:09:23 2008 +1000
+
+ Fix TV out connection type detection
+
+ Make sure we wait for vblank when using the TV DAC to detect the connection
+ type.
+
+ Fixes FDO bug #14000.
+
+commit a993a8f3ce3a2079c5b5ebaca2ec2564047d7d4e
+Author: Tomas Carnecky <tom@dbservice.com>
+Date: Fri Jun 6 10:03:23 2008 +0800
+
+ Fix compile error in LeaveVT
+
+commit 432d07fb175b385715eb3ccf97a303d2ad7bfe11
+Merge: 3a967b8 bff180e
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 14:57:18 2008 -0700
+
+ Merge branch 'master' into drm-gem
+
+commit bff180e6cac4452ef491c81855eb12bfa03d0bf3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 14:55:23 2008 -0700
+
+ Move debug clock printout from ErrorF to X_INFO.
+
+commit ad459b21b7de4a79552ac155803d5930432fb84b
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 14:37:59 2008 -0700
+
+ Remove SVG_WORK_CONTROL init.
+
+ The bit set is now reserved -- used to be a workaround for early revisions.
+
+commit e41dc98a0aeec389b221038753056c725ecee1c5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 14:37:26 2008 -0700
+
+ Initialize clock gating from EnterVT and save/restore it appropriately.
+
+commit 8061e5ac27a5f61f940bccc940be922999cc1d3f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 14:09:45 2008 -0700
+
+ Move BIOS scratch register setup to EnterVT instead of PreInit.
+
+ We want these to always be set when our driver's in control. They are
+ already appropriately save/restored at leave/entervt.
+
+commit b61cb9283185eb5211e84eb7d8e68beea607c2eb
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 13:57:54 2008 -0700
+
+ Remove gratuitous wait_ring_idle after I830Sync. Syncing implies that.
+
+commit b65f67b74ff99aea1490d52f170ef4fe80cef6c7
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 13:40:55 2008 -0700
+
+ Move the remaining two lines of SetHWOperatingState to the caller.
+
+commit adb4f5a5e826e584ab212d23fc8d474c3e7bb8e8
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 13:39:08 2008 -0700
+
+ Remove duplicated i830_stop_ring()/SetHWOperatingState() in EnterVT().
+
+commit c2e2fe48113667c683c6e1e9b1237635c41c61c3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 13:21:55 2008 -0700
+
+ Move DSPARB setup into a separate function, and save/restore it at VT switch.
+
+commit 7e51384c973a96366b02ea646392c43574674111
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 11:56:42 2008 -0700
+
+ Replace a couple of wait-for-ring-idles with a single function to do so.
+
+commit 65306cdd71dad71e4ca7229764f81a0880dd70bf
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jun 5 11:26:02 2008 -0700
+
+ Just remove the mprotect kludge.
+
+ Besides not being #ifdef __linux__ed as requested, some linux kernels break
+ in exciting new ways when you try to mprotect from PROT_NONE back to
+ PROT_READ|PROT_WRITE. Yes, there are bugs in the code we're calling in a
+ bug-exploiting bug workaround.
+
+ If you want this workaround for the original bug exposed when moving to
+ libpciaccess, it's already in libpciaccess.
+
+commit beb72ae5aa053303f5cc419e9c9d7c6db964f160
+Author: Hong Liu <hong.liu@intel.com>
+Date: Wed Jun 4 16:58:05 2008 +0800
+
+ Set SDVO sync polarity to default on 965
+
+ Fix fd.o bug 15766
+
+commit c7fee208fd46e143965ea173984d284e1eec2a9b
+Author: Hong Liu <hong.liu@intel.com>
+Date: Wed Jun 4 16:56:50 2008 +0800
+
+ Fix DSPARB change on 965G
+
+ From the spec, only 965GM and IGD_GM have 128 FIFO entries.
+ With DSPARB change introduced by commit bd137a, I've got PIPE B
+ underrun when dual-headed on G35 platform.
+
+commit 64ccc8a036a1d80fc918e9b124d24ce0d26bdbbb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jun 4 22:30:04 2008 +0800
+
+ xvmc: add render dump function
+
+commit 1729a4f29dd52346a9fa997f818d57884047657f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jun 4 22:25:39 2008 +0800
+
+ xvmc: move block size lookup helper to generic
+
+commit 3cc8876db7ba82fa18e8fab4f267ac6e87964c47
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jun 3 16:15:36 2008 +0800
+
+ xvmc: a little cleanup
+
+ Also safe check context size to not exceed surface max.
+
+commit 96955003557686469c7ae9f7d42620d2851e6fad
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jun 3 16:13:52 2008 +0800
+
+ xvmc: remove unused dri drawable
+
+commit bd137a19dc29dd466eac030e040f729ed0807e3f
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Wed May 28 15:47:47 2008 -0700
+
+ Fixup DSPARB for 855 & 945
+
+ It turns out 855 has a different DSPARB layout than 915+. And 945+ have more
+ FIFO entries, so we have to allocate things differently. So on 855 split the
+ FIFO evenly again between A & B planes, and do the same on 945, where we have a
+ larger FIFO. Fixes an issue reported by Daniel Stone with the previous default
+ value.
+
+commit 3a967b8359bd6c05a10111076cdb02df15cbf2e8
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon May 12 13:51:11 2008 -0700
+
+ [gem] Note if pinning a buffer fails.
+
+commit 363ccc3dfbf8ab91608d502e0376a43653581856
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Mon May 26 09:43:40 2008 -0700
+
+ Fixup FIFO comment
+
+ What I originally checked in was a bit misleading.
+
+commit 2e1425246ccc75216247b0c2fa6fce2635db472b
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Mon May 26 09:40:10 2008 -0700
+
+ Handle display FIFOs better
+
+ Add some debug code to catch FIFO underruns, which are normally bugs (unless
+ they occur during mode setting) and remove any plane C FIFO allocations, since
+ we don't use that plane at all. We may eventually need to be a little smarter
+ about this on platforms that use plane C for the popup.
+
+commit 89bb53cc7a853d88fc34a0ca65ae2b6227a8dd24
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Mon May 26 09:34:34 2008 -0700
+
+ Fixup power saving registers
+
+ Update clock gating disable bits to match docs and allocate a power context
+ memory area so that newer chips can save state and power down the render unit.
+
+commit ced4b4bb0c44b55feb5e32ddb860f1c1dc3bbde5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu May 22 22:10:25 2008 -0700
+
+ [gem] Reduce console spam from debugging.
+
+commit 165c0865d849b7d280a3a119fe9ae0ad34637df0
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Wed May 21 14:56:27 2008 -0700
+
+ Define DEFFILEMODE for OS'es that don't have it
+
+commit 71180653825a1b141a08590e4b767d33d9b5d8c1
+Author: Jesse Barnes <jbarnes@hobbes.(none)>
+Date: Wed May 21 11:51:55 2008 -0700
+
+ Revert "Disable FBC by default on 965GM"
+
+ This reverts commit 53e3693ef13f31f3fc33bcff7286ab2b03b2d430.
+
+ Conflicts:
+
+ src/i830_driver.c - default FBC on for 965+
+
+commit 740a73dad1d9a9b0ebf1cc7d6f2a056abad57aaf
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue May 20 08:54:01 2008 +0800
+
+ Revert "Add FIFO watermark regs to register dumper"
+
+ This reverts commit 0c00a638ef57aa9d6a3047176b0bfad733f781f0.
+
+ Those FIFO watermark regs are 945-ish, and cause problem
+ on G35.
+
+commit c81050c0058e32098259b5078515807038beb7d6
+Merge: 9c9a5d0 e9532f3
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat May 17 23:26:14 2008 -0700
+
+ Merge commit 'origin/master' into drm-gem
+
+commit 9c9a5d0e48c6e911574695fc417d2dc1a0fd1c20
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue May 13 12:24:50 2008 -0700
+
+ Add check for GEM, use that to enable driver GEM support
+
+commit e9532f3abf1e0b62b2569d4aae60a5a63add571f
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Wed May 14 14:52:37 2008 +0800
+
+ Add glproto to DRI dependencies
+
+commit fe455a38cbac8d47a5c82b3eeb3cc6a59a6e8443
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 13 11:56:10 2008 -0700
+
+ Formatting fixes for intel_idle.
+
+commit 5c1720ecbc5528c40bb48084dc68ef233e9bb43b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon May 12 16:48:05 2008 -0700
+
+ Add i915 support to intel_idle.
+
+commit 089011daf3da8db3bd16d50e1d6a6457da82300e
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 12 12:18:19 2008 -0700
+
+ Track name changes in GEM ioctls.
+
+ allocate → create
+ unreference → close
+ name → flink
+
+commit 10f1d835b8ac7bf3153ac39d295ad2a72c4aa076
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 12 12:15:09 2008 -0700
+
+ Record alignment requirements in mem structure for use by GEM.
+
+ GEM needs memory alignment requirements sent at pin time, which is a bit
+ after the allocation itself. Store the required alignment in the memory
+ object for later use by pin.
+
+commit 5103e5a39a4869a714b8a59da8bf51ecc8c65e4f
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Mon May 12 10:58:24 2008 -0700
+
+ Panel fitting: fix letterbox modes
+
+ In full_aspect mode, we try to preserve the aspect ratio by adding
+ either top & bottom or left & right borders. In the letterbox case (top
+ & bottom borders) we were miscalculating the top border which led to
+ programming a bad mode. Fix the calculation and bug #15559.
+
+commit f280c50dd5d29c5717adc6da2368363cb3d0adbb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon May 12 08:57:56 2008 +0800
+
+ Revert last HP 965GM pipe A quirk
+
+ Seems not resolve the issue (fdo bug #15885).
+
+commit d91d9e6a2f2ba18b35cb6fd7bc3fe8bc617eb44f
+Author: Bryce Harrington <bryce@bryceharrington.org>
+Date: Sat May 10 07:58:59 2008 +0800
+
+ More Pipe A force quirks
+
+commit 548d4c0f979a72eac5d0c9c76da12f0bd05e64e1
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu May 8 12:43:30 2008 +0800
+
+ Fix i965 render getting dest format error
+
+ Depend on value returned by function within assert is wrong.
+ Fixed weird render corrupt on i965.
+
+commit 9f324860431ff8199a78d19bbaa74046e1476b89
+Author: Mike Isely <isely@pobox.com>
+Date: Thu May 8 10:00:17 2008 +0800
+
+ Implement option to ignore external fixed mode settings
+
+ The Intel xorg driver tries mightily to determine the native fixed
+ panel mode settings for the LVDS output. It does this through various
+ means, including scanning video BIOS tables, and noticing if the pipe
+ in question has already been set up by somebody else (and adopting
+ those timings). This strategy works well for say a laptop where the
+ LCD panel is an integral part of the machine. But for other
+ applications where the display is unrelated to the system's BIOS or
+ other software, then the BIOS will likely have no clue how to
+ configure the LVDS output. Worse still, the BIOS can simply "get it
+ wrong", leaving the pipe misconfigured. Unfortunately the Intel
+ driver can potentially notice this, adopt the same settings, leaving a
+ messed up display.
+
+ All of this complexity normally happens independently, behind the
+ scenes, from the mode timings that might otherwise be specified by the
+ user. This driver has a concept of fixed, i.e. "native" mode, and
+ then user-specified mode. If the corresponding resolutions between
+ those concepts don't match, then the driver in theory will arrange for
+ scaling to take place while adhering to the actual native mode of the
+ panel. Said another way, if the user says 800x600 but the driver
+ mistakenly (see above) thinks the native mode is 640x480, then 640x480
+ is the mode set with scaling to an 800x600 frame buffer. If the
+ driver gets the wrong native mode, then the result is a miserable mess
+ with no way for the user to override what the driver thinks is right.
+
+ This patch provides a means to override the driver. This implements a
+ new driver option, "LVDSFixedMode" which defaults to true (the normal,
+ probe-what-I-need behavior). However when set to false, then all the
+ guessing is skipped and the driver will assume no fixed, i.e. "native"
+ mode for the display device. Instead with this option set to false,
+ the driver will directly set the timings specified by the user,
+ providing an escape hatch for situations where the driver can't
+ correctly figure out the right mode.
+
+ Under most scenarios of course, this option should not be needed. But
+ in situations where the Intel video BIOS is hopelessly fouled up
+ related to the LVDS output, this option provides the escape hatch for
+ the user to get a working display in spite of the BIOS situation.
+
+ Signed-off-by: Mike Isely <isely@pobox.com>
+
+commit 33f033cbf346c13a687e469e8879579fcd5bb2fb
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Wed May 7 14:46:52 2008 -0700
+
+ Save/restore cursor registers
+
+ There are lots of good reasons for doing this, one of them is fdo bug #11305.
+
+commit a7188b1f2dd9a69fa7daefe478d283735226f9f3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed May 7 14:21:59 2008 +0800
+
+ Use I830FALLBACK when check pitch for debug
+
+commit 79fde3ad7a949fb7f0dc9907cb6eea6ca9a910ae
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Sat Apr 19 08:54:38 2008 +0800
+
+ Check pitch for EXA operation
+
+ 2D pitch limit applys to all chips. Pre-965 chip has
+ 8KB pitch limit for 3D. 965 supports max pitch by current
+ exa (128KB).
+ (cherry picked from commit 8187a5a16f8bd8f0ba5e7f5357f355928b3b8f07)
+
+commit 36ec93300926084fb2951d69b001e4c67bc6ff79
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 6 18:48:20 2008 -0700
+
+ Bug #15807: Fix use of the ring while VT-switched, hit by fast user switching.
+
+ The fix for flushing at blockhandler with no DRI on 965 was broken and would
+ try to flush the chip even when the driver wasn't in control of the VT.
+ Hilarity ensued.
+
+commit 0c00a638ef57aa9d6a3047176b0bfad733f781f0
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Tue May 6 14:38:48 2008 -0700
+
+ Add FIFO watermark regs to register dumper
+
+commit c81a4687fca80bf7367d7f0e9a00a6a09737c5bb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue May 6 13:52:22 2008 +0800
+
+ Only check xvmc lib when xvmc is enabled.
+
+ Don't check xvmc lib if user has already wanted to disable it.
+ Fix fdo bug #15762.
+
+commit be746a90a87d7a9807fa4243493e7e4d48f7f1c0
+Author: Bryce Harrington <bryce@bryceharrington.org>
+Date: Tue May 6 13:51:46 2008 +0800
+
+ More quirks from ubuntu/dell
+
+commit 417f86d80525d2f5038628afba8f70f8c0fecca3
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 5 13:36:19 2008 -0700
+
+ Move a declaration under #ifndef HAVE_FREE_SHADOW
+
+commit 587dc5bfc4ef32942bd7511f932a3a2e2fcdccb0
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 5 13:35:22 2008 -0700
+
+ Fix up ring dumping code for non-i965
+
+commit 65877d32bb2cd71ccc8d6a66244f029fc3577f69
+Merge: b9d12da fff17b9
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 5 12:05:00 2008 -0700
+
+ Merge branch 'master' into drm-gem
+
+commit b9d12da91eb1afb05bd78a40e15f4333e697093d
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 5 10:44:09 2008 -0700
+
+ Use GEM for buffer naming now.
+
+commit 0741020f3725c32c48ad15535b9c0549e4092c23
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon May 5 10:17:01 2008 -0700
+
+ Set pin alignment for gem on non-965
+
+ non-965 tiled frame buffers have fairly strict alignment requirements, 512K
+ on 8xx and 1MB on 9xx, plus they must be aligned to the size of the
+ allocation.
+
+commit 271abfd0ec29851273d8ca5241d963be5c64e43c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri May 2 10:06:13 2008 -0700
+
+ Add initial GEM hacks to bring the server up.
+
+commit a0ced923bb793aa22e6bfbeeec0888d3b42ce176
+Author: Jesse Barnes <jbarnes@hobbes.lan>
+Date: Tue Apr 29 13:19:02 2008 -0700
+
+ Add a new quirk for BIOSes that reprogram regs at lid close/open time
+
+ Dell Latitude D500s seem to have this problem. At lid close/open, the DSPABASE
+ reg gets reset to 0, so we either need to keep the framebuffer at offset 0 or
+ make sure we reprogram the CRTCs after the lid opens again. Since we can't
+ make sure the former is always true (buffer resize, etc.), this patch adds a
+ quirk to reset the modes at lid open time.
+
+ Fixes FDO bug #14890.
+
+commit fff17b9d1b58cb53032d153094826dd306836d59
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 29 10:32:14 2008 -0700
+
+ Use new xf86RotateFreeShadow function to clean up shadow buffers.
+
+ This simply moves code from the driver up into the X server; use it where
+ available.
+
+commit 1d467a8038946a37844795e8860be113d43219ac
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 23 11:08:38 2008 -0700
+
+ Overlay video doesn't require that the target pixmap be in video memory.
+
+ I830PutImage was checking to make sure the target pixmap resided in video
+ memory, but this isn't necessary when using the overlay. Test
+
+commit 40e0a03af57d7b3180d7066bcb15e03dcc9ca295
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Apr 21 01:03:22 2008 -0700
+
+ Dump batch buffers found from main ring
+
+commit c8ae3b781f0d8e325876a74c91cd0a685d34454b
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Apr 20 02:11:15 2008 -0700
+
+ Add a bunch of 965 ring stuff to the debug dump
+
+commit 2c135ef8ac40f8e7cd071de7414adfae019f9198
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Apr 16 21:39:58 2008 -0700
+
+ Make the binding table and surface state be arrays to reduce syncing.
+
+commit c3fb62df4e60b63295f94c99b3c5de70dbf94e1c
+Author: Keith Packard <keithp@keithp.com>
+Date: Thu Apr 17 10:04:55 2008 -0700
+
+ Add a kludge-around to fix cd/wt bits in fb ptes on linux.
+
+ Mmap from /sys/devices/pci* on linux forces the cache-disable and
+ write-through bits, which turns our write-combining map into an
+ uncached-map, seriously impacting performance. It turns out that a bug in
+ mprotect allows us to fix this by disabling access to those pages and then
+ immediately re-enabling them.
+
+commit 0ae283582d21776d3317d5fc1c25751d50d562c7
+Author: Hong Liu <hong.liu@intel.com>
+Date: Thu Apr 17 10:57:34 2008 +0800
+
+ fix possible segfault in I830FreeScreen
+
+ pI830 may point to NULL if I830PreInit fails
+
+commit 7008eac855302fd467e001495483c2dccfddf68f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Apr 16 12:09:41 2008 -0700
+
+ Update dolt from git, fixing fallback to libtool.
+
+commit 23d1df22d177e54bfc46304053d8115047ff85d4
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 14 16:46:17 2008 -0700
+
+ Abstract surface setup into a separate function.
+
+commit e27ce4238f748d024635835824c120eb298b84b2
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 14 23:30:21 2008 -0700
+
+ Move the vertex buffer to the state structure as well.
+
+commit 69709fe36cfdb59c140f5cba233dcb606f8dbc85
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 14 18:34:13 2008 -0700
+
+ Move the binding table for 965 to the state structure.
+
+commit 049d057dfd73b6c191a8ba5d73eddb77cf7748e7
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 14 17:09:22 2008 -0700
+
+ Move the 965 static variables local to the function they're used in.
+
+commit 092962c962fdf3e33a8d387221448fe7c8c36376
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 14 14:02:58 2008 -0700
+
+ Make the VS unit state static for 965 render.
+
+commit 4bbdd7096d4927fe48673006fff7df922972f116
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 14 13:53:36 2008 -0700
+
+ Rename some variables in i965_render.c for clarity.
+
+ The gen4_render_state is now always called "render_state" (i965_render.c
+ bookkeeping) and gen4_state_t is now always called "card_state" (the buffer
+ for state used by the chip).
+
+commit 456bb529335c28cf60f3b6e5900b804efa5c185a
+Author: Carl Worth <cworth@cworth.org>
+Date: Fri Nov 9 17:24:21 2007 -0800
+
+ Associate one sf_state object with each sf_kernel
+
+ (cherry picked from a2b5c23184d19b386fdfd04f578a55566df60132 commit)
+
+commit 90d6b178473ba32cf66e6e654e608cb4374e4a19
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Apr 14 16:31:03 2008 +0800
+
+ Change default panel fitting mode to origin
+
+ i8xx currently only works in FULL mode.
+ (cherry picked from commit 33ffd781bbca3d0dee8c1b47e7b90be5824b9a4f)
+
+commit c1ad0a1a344a87a537aa5f93f6c774997a3189e4
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Apr 14 10:02:00 2008 +0800
+
+ Remove old sf/wm program from Makefile
+
+ Fix distcheck
+ (cherry picked from commit 1d8383923bebf38ab8ada6a262cb4fc8c30e074a)
+
+commit 18ef4158e5574bfc6621b268821532f13e261d13
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Apr 13 21:37:49 2008 -0700
+
+ Only use FOURCC_XVMC when INTEL_XVMC is defined
+
+ The XVMC code uses a magic FOURCC code to signal frame updates, but that
+ code is only defined when the XVMC code is used.
+
+commit 269809030ee9d08b56ad0178a7a9c0194e25785e
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Apr 13 12:47:02 2008 -0700
+
+ Move wm_scratch first to meet alignment requirements
+
+commit 08d3206f3b891e611e3e16c9eb79cfca21ab8a51
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Apr 13 12:35:14 2008 -0700
+
+ Kludge to make planar video work - duplicate sampler state
+
+ This patch duplicates all of the surface sampler state needed to read from
+ the separate YUV surfaces and then has the planar sampler read from samplers
+ 0, 2, 4 instead of 0, 1, 2. This appears to make things work, instead of
+ having the samplers break at random. I do not understand why this works.
+
+commit 6366e4de540c4713cbc8402c89516464bbdc35b9
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Apr 12 16:39:00 2008 -0700
+
+ Skip copying on FOURCC_XVMC surfaces
+
+commit 0fec42b64ee529eb7ec15febdaa5e4986ec1ab17
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Apr 12 11:01:14 2008 -0700
+
+ Set some mask bits to try and get yuv conversion working
+
+commit 91d3e19786e22061f4b617cf39a3cd713139a2d9
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Apr 12 11:00:51 2008 -0700
+
+ Use compressed instructions for yuv conversion
+
+commit 03836067b77606c134c71b30c7078d09d77c95fa
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Apr 11 12:17:28 2008 -0700
+
+ Fix the offset to sampler default color, and a compiler warning.
+
+commit d3138d9ff0f821fb3adbd27684b0c22a8a910c3e
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Nov 13 12:37:13 2007 -0800
+
+ Enumerate all possible wm_state objects
+
+ We have a collection of wm_state objects for each ps kernel,
+ (one for each combination of src and mask extend and repeat
+ values).
+
+ Thanks to Dave Airlie for noticing an errant write through a
+ wild wm_state pointer in an early version of this commit.
+
+ (cherry picked from 7763706a93d3021907273f9b330750ba110e2fc3 commit)
+
+ This cherry-pick required more reformatting than most, due to the
+ projective texturing merge.
+
+commit 2293a3677d1dcf294de6a8712bf0d2f65b50dcc3
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Nov 12 16:09:00 2007 -0800
+
+ Enumerate all possible src,mask sampler state pairs
+
+ This will eventually allow for the elimination of sampler state
+ updates while compositing---and initializing everything in the
+ initialization function.
+
+ (cherry picked from commit d0874697be8086cd64740c24698df8cd4d31c76f)
+
+commit da85d1b822dcb31698e9c5ab85a7bb27ad745eee
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Apr 11 11:22:29 2008 -0700
+
+ Revert "remove '#line NUM ...' in macro process"
+
+ This reverts commit f47486fab3dffcbb03e7ad89f777abba1e887299.
+
+ Sorry for failing to push the #line processing changes to intel-gen4asm;
+ those are now pushed, so this change should no longer be necessary. Having
+ correct file name and line numbers in the error messages is awfully nice
+ though.
+
+commit f47486fab3dffcbb03e7ad89f777abba1e887299
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Apr 11 10:12:40 2008 +0800
+
+ remove '#line NUM ...' in macro process
+
+ intel-gen4asm doesn't allow '#' line
+
+commit 5c9cde37e769287fb7bf4e08c3600a33c2e92dce
+Author: Hong Liu <hong.liu@intel.com>
+Date: Fri Apr 11 09:54:34 2008 +0800
+
+ Bug #14935: Fix i9xx reference clock for spread spectrum.
+
+commit 152a50703aa5e9ebaa9abbe448518742734a5eb7
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Apr 10 16:06:41 2008 -0700
+
+ Fix compiler warning from 24-bit lvds change.
+
+commit baa55ffe3b67ca952e4d1ef7087335d76eb2f24b
+Author: Carl Worth <cworth@cworth.org>
+Date: Tue Nov 13 12:56:13 2007 -0800
+
+ Enumerate all possible cc_state objects
+
+ We need one for each possible combination of src and dst
+ blend_factors. Again, as with recent changes, this eliminates
+ state updates from prepare_composite and allows that function
+ to instead simply reference an existing object initialized
+ within gen4_state_init.
+
+ Thanks to Dave Airlie (and git-bisect) for pointing out that with
+ gnome-terminal all text was appearing as solid black with an early
+ version of this commit. As expected the bug was an alignment issue.
+
+ (cherry picked from 0c0ab52c2d100c47f38c7ef826ef585c8b9815e9 commit)
+
+ Performance is approximately equivalent on text tests, but may be
+ around +2%.
+
+commit d5a80e1e3ab5724d34b20f9ee6f830efd0f5b076
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 9 16:27:40 2008 -0500
+
+ Single memcpy when pitches align on planar image transfer
+
+commit ac97f2b1487df5574875350a9cded958dae33afa
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 9 16:27:23 2008 -0500
+
+ Use available symbolic register name
+
+commit f270456e5612cb88933e6aabcd9a816c5c292229
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 9 10:00:08 2008 -0500
+
+ Remove .g4b files on clean
+
+commit fb6ed8b8b59e9dd18801afef5d7c62042ad176d7
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 9 09:58:44 2008 -0500
+
+ Update yuv->rgb conversion programs to write to src_sample regs
+
+ The YUV->RGB code was written to write directly to the dataport registers,
+ but that didn't work for the compositing functions (cause still unknown).
+ This change makes that code write RGB values to the src_sample registers as
+ with the other sample computation fragments.
+
+commit b01d582e23fc99e32bc47a395e9caa366731372a
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 9 09:30:35 2008 -0500
+
+ Revert "Compute pixel values directly into data port"
+
+ This reverts commit 346cf57deabb4c336612df4c13650a87b5ef6775.
+
+ Mixing randr transforms and video caused screen corruption for Render
+ operations. No, I don't understand why.
+
+commit 3fc3d1a701bae257b70aa7b7654c722f30e71399
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 9 02:02:56 2008 -0500
+
+ Remove sync after 965 video put.
+
+ The hardware has been marked as needing a sync, so the next video put will
+ block waiting for the previous one to complete. Adding a sync here just
+ stalls the video playback for no good reason.
+
+commit 825d9e50c59450f07178a54fed2616e551dc0455
+Author: Keith Packard <keithp@keithp.com>
+Date: Wed Apr 9 00:09:34 2008 -0500
+
+ Add planer video decode kernel
+
+ Support for planar video reduces bus bandwidth by 25% and also reduces CPU
+ usage during planar->packed conversion.
+
+commit a03eaaa67b33c57530e92c53d28917e2563b4427
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 8 16:24:55 2008 -0500
+
+ Use shared exa_wm code for packed yuv decode
+
+ Eliminate special video sf and ps programs.
+
+commit 32ef98518394d29cb87405005c660278489396bb
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 8 16:21:55 2008 -0500
+
+ Compute pixel values directly into data port
+
+ Instead of leaving pixel values in src_sample registers, compute the pixel
+ values directl to the data port to save 8 moves. This cannot work when no
+ computation is done as there is both no way to wait for the sampler to
+ finish and because the sampler returns data in a different order from that
+ required by the data port (sigh).
+
+commit b68d9f4245d0ebe3371c179401ff145f1a4d101b
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 8 16:09:00 2008 -0500
+
+ Use symbolic names for channels in YUV code
+
+commit 781be9d47289713b0a8fcd95c769a9c6241d62e9
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 8 16:08:20 2008 -0500
+
+ Rename src/mask/data registers to indicate channel
+
+commit 2871ac8eefd0192080bb0569140c3f5d0e1d9b44
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Apr 10 13:34:13 2008 -0700
+
+ Statically allocate the sampler default color, which we never change.
+
+ Performance change is in the noise. Also from Carl Worth.
+
+commit 80dd784e33847e431403d4659a7b8d8425b2676f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Apr 10 13:24:51 2008 -0700
+
+ Add copyright information for recent editors of this file.
+
+commit b606278db83ec84b1db562a2d65697c50561b169
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Apr 10 13:17:58 2008 -0700
+
+ Keep static copies of the 965 render programs in video memory.
+
+ This reduces the CPU overhead of memcpying them in every time, for a speedup
+ in aa24text of around 30%. This is based on work by Carl Worth which is
+ in the intel-batchbuffer branch.
+
+commit bd41d2bb858770c109d5013274a4354e8e6ae32d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Apr 10 10:24:48 2008 -0700
+
+ Add dolt to speed up compile time and reduce insanity.
+
+ Hopefully some day we can be rid of libtool entirely.
+
+commit 96ae9a9f0abc582e45ff4e17dd213c8739c24cb3
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Apr 9 14:17:29 2008 -0700
+
+ SDVO: Rename output_dtd variable to input_dtd, which is its new job.
+
+commit 72c3995d5158286d20e97296f4552697f32f935f
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 8 15:00:18 2008 -0700
+
+ SDVO: Set adjusted_mode in mode_fixup from the preferred input timings for TV.
+
+commit b61178524bece756dc0fd4f798c6c7743b5725db
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 8 14:11:42 2008 -0700
+
+ SDVO: Fix lols TV mode list handling.
+
+commit 5db73f18d2badec37523850024b9aa824e4e6bd8
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 8 13:53:51 2008 -0700
+
+ SDVO: Use the TV reference clock for SDVO TV outputs.
+
+ Based on a patch by Will Wiseman.
+
+commit e031cc02e65acfbafb48136dad414751e04425c5
+Author: Mike Isely <isely@pobox.com>
+Date: Wed Apr 9 14:15:03 2008 +0800
+
+ Implement support for 24 bit pixel format
+
+ The Intel driver appears to be coded to only work with displays
+ expecting 18 bit pixels. However I have an application using a LCD
+ display that expects pixel data in 24 bit format. The difference is
+ only 2 bits in a single GPU register. This patch implements that
+ change, controlled by a new driver option, "LVDS24Bit". The default
+ value is false, which is the previous behavior. When set to true,
+ then 24 bit panels should work (at least the one I'm testing here
+ does).
+
+ Fd.o bug #15201
+
+ Signed-off-by: Mike Isely <isely@pobox.com>
+
+commit 79b18980ac9f60b1978abe421352df965aed1681
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Apr 9 14:03:45 2008 +0800
+
+ Include <stdint.h> in i810.h for integer types definition
+
+commit 2b720262e1235f1c9da860ba3e9181f0c377aa5e
+Author: Jesse Barnes <jbarnes@virtuousgeek.org>
+Date: Wed Apr 9 17:34:17 2008 +0800
+
+ Fix LVDS regression
+
+ Disable panel fitting on 855GM, and fix dither setting.
+
+commit af92f4f885c8eae2211d09080b2289aa5bab9ec1
+Author: David Schleef <ds@schleef.org>
+Date: Tue Apr 8 12:43:20 2008 -0700
+
+ Bug #15219: Fix default overlay CSC factors, and use BT709 if available.
+
+ Using the updated factors even when BT709 conversion isn't available
+ (non-965) should still give us better color reproduction. Tested on a
+ 945GM, examining the +/-5% of black bars of videotestsrc.
+
+commit 37bc23660a8c346f1eaa6c93ed2c7a840828f0b0
+Author: Bryce Harrington <bryce@bryceharrington.org>
+Date: Mon Apr 7 17:26:49 2008 +0800
+
+ Quirks from Ubuntu/Dell
+
+ FD bug #15353. Launchpad bug ID is available for reference.
+ (cherry picked from commit 24248097988775d62f6c416f2988e74d31c91cd0)
+
+commit dcbdc901d64d2fab489292ef1c9ca1490bdd1e94
+Merge: 0147c1c 13563bd
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Apr 4 19:19:35 2008 -0700
+
+ Merge commit 'origin/master' into projective-965
+
+commit 0147c1c84872f7a109721a53d88a539932d9be81
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Apr 4 19:17:55 2008 -0700
+
+ Forgot to build exa_wm_src_sample_argb.g4b
+
+commit 13563bd65cbbbb3e697dacd814efa3517e1493dc
+Author: Hong Liu <hong.liu@intel.com>
+Date: Wed Apr 2 16:05:43 2008 -0700
+
+ SDVO: Fix DDC bus selection based on output priority list.
+
+commit 6ad2d6ba86689674876f5f4c473f11e39243ac38
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Apr 2 15:16:17 2008 -0700
+
+ SDVO: Fix mixups with input and output channels.
+
+ The 2-bit input_mask was actually an input count -- in0 is always there, and
+ in1 is optional.
+
+ The output flags weren't being reported in the log, so I mistakenly took
+ controlled_output == RGB0 to mean that the device only reported an RGB0,
+ while it actually reported RGB0|SVID0|YPRPB0|misc|other. Move SVID0 up
+ in priority and remove the RGB-is-it-really-TV hack I had just come up with.
+
+ Finally, set the input/output mapping at mode set time. We're always
+ supposed to do this, but haven't had to so far as we've never handled
+ devices with more than one output.
+
+commit 3a17400dc67534f0eb474ece080f01061469569c
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Apr 2 14:21:23 2008 -0700
+
+ SDVO: Handle RGB outputs that are really TV outputs, and select a TV format.
+
+ Still doesn't light anything up.
+
+commit 3c1701797b61afaae826a78455079e2115483053
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 31 10:04:18 2008 -0700
+
+ Add WIP SDVO TV-out support.
+
+ Doesn't include properties for selecting TV formats or picture enhancements,
+ and totally untested.
+
+commit 9d5ba26fb5c337388920b45eadda85e43bc564fa
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 28 14:28:28 2008 -0700
+
+ Add SDVO TV-out registers.
+
+commit 90886f9a602d58b754e9a8d0f1a9c40803d34fa2
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 1 00:54:13 2008 -0700
+
+ Remove extra flushing
+
+commit 0836373dc6e2f8612f120074980561f7ac11f6f7
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 1 00:16:05 2008 -0700
+
+ Add projective versions of the PS kernels
+
+commit bfd803e085e938866efb45c67a79facef78ec399
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Apr 1 00:06:08 2008 -0700
+
+ Shrink WM thread to 32 registers and 1024 scratch space.
+
+ Saving registers means we can run more in parallel.
+
+commit a6492661ae07310128eb73c3ef037c42ce7ab184
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 31 23:50:20 2008 -0700
+
+ Fix composite with mask using new compositing thread code
+
+ Clean up register allocation to never overlap
+ Always write 4 values for each texture vertex.
+
+commit f8081178eb6fda0e405967cbacad532561619262
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 31 12:06:37 2008 -0700
+
+ remove old shader source files
+
+commit 879f8717b09f79156b218ee9cc2107700190d586
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 31 12:05:56 2008 -0700
+
+ remove old monolithic shaders
+
+commit 6db8faeb754897b21af045d00f50db9640b080bb
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 31 12:04:00 2008 -0700
+
+ remove old monolithic shaders
+
+commit 6bb92213374f278387c539bbe05b773e87e11b90
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 31 11:59:14 2008 -0700
+
+ Back to new shaders, fix urb read length
+
+commit 05710145b6fc4ed2c528128b2e6022591a53d050
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 31 11:31:31 2008 -0700
+
+ Dont set the compr bit on 8-unit sends
+
+commit 08500507284f13ad7084eb231b43e117e9728129
+Author: Keith Packard <keithp@keithp.com>
+Date: Mon Mar 31 02:20:43 2008 -0700
+
+ Use m4 to clean up gen4 asm progs. Start adding projective transform support.
+
+ Use macros for register names, modularize functions into separate files.
+
+commit 949d73271d7100c1f028fd60f185f4929461304e
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Mar 30 19:19:46 2008 -0700
+
+ Remove rotation sf and wm progs
+
+commit 492ff1494f782240e6ca68919b2d0b9aa400fc53
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Mar 30 19:14:18 2008 -0700
+
+ Fix the sf_mask program to compute and pass corrected uvw cooefficients
+
+ sf_mask is the same as sf except that it must compute both src and mask uvw
+ cooefficients, which are conveniently adjacent in the same registers, and so
+ need only an extended execution width
+
+commit 6304b38423f99190a5e54f1a7dcaa75adfad4f2a
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Mar 30 00:54:51 2008 -0700
+
+ Reimplement wm program for nomask case to handle affine transforms
+
+ This involves correctly computing u/v locations based on x/y vectors and
+ line constants computed in new sf program.
+
+ Also, use fewer instructions to make this go a bit faster (2X for 500x500
+ composite).
+
+commit 771a56b1ed0df69345c723cb62a73b6842cd8227
+Author: Keith Packard <keithp@keithp.com>
+Date: Sun Mar 30 00:54:07 2008 -0700
+
+ Clarify comment in exa_sf program
+
+commit 4f469189fed541549e5d470b2529275a29cc2f20
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Mar 29 14:28:05 2008 -0700
+
+ Compute du/dv/dw in no-mask SF prog
+
+commit 7dcb6e627449c80cea9812462ce6a3e125bd1240
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Mar 29 14:27:35 2008 -0700
+
+ Disable cursors while switching modes
+
+commit d50264fc7c4e0f80d9cc68dfdf322f68520a0f1e
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 28 15:15:26 2008 -0700
+
+ Add a "total" field to intel_idle output (set when any unit is busy).
+
+commit 1450acd046d47e1739a3ffbd146c73ad2974a935
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Fri Mar 28 13:23:02 2008 -0700
+
+ Use combo backlight control rather than pure legacy
+
+ If the legacy bit is set, use both the BLC_PWM_CTL and LBB regs to control the
+ backlight, rather than just LBB. Looks like more platforms want that than what
+ the current code does. Note that kernel provided interfaces will always be
+ used if available, so this shouldn't affect users with /sys/class/backlight
+ interfaces at all.
+
+ Fixes #14721.
+
+commit 49f409fef5e8b04a8595309ba8959ca36b2e41b1
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Wed Jan 9 16:31:41 2008 +0100
+
+ Include missing stdlib.h for free()
+
+commit 3414313ac9d0faa95797ee18cc33afa231ec7581
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Wed Jan 9 16:08:57 2008 +0100
+
+ Fix obviously wrong verification of DRI_SUPPORTS_CLIP_NOTIFY.
+
+commit c40f195f2dc3467259b4588e087aac9741003ebf
+Author: Matthias Hopf <mhopf@suse.de>
+Date: Wed Jan 9 14:40:49 2008 +0100
+
+ Fix obviously stray '(' in non-I830_USE_EXA case.
+
+commit 7bba2c13310ed5ac22a355a3cc0ec8b7afaa79cf
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Mar 28 11:41:24 2008 +0800
+
+ Disable DRI earlier if fb width > 2048
+
+commit b1f358ba97473b792ec2b7ed5170152faebe7262
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Mar 28 11:29:40 2008 +0800
+
+ Disable overlay on new mobile chipset
+
+ It's gone, really.
+
+commit 588371ba15afffa9343629f0ea7ce530586eef0b
+Merge: 52d6ced c13efdd
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Mar 26 14:53:15 2008 -0700
+
+ Merge branch 'master' into pfit
+
+commit c13efdd3d6d3846078766814b57306a7519bce18
+Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
+Date: Wed Mar 26 10:11:36 2008 +0800
+
+ More compile warning fixes.
+
+ o Check for RANDR_GET_CRTC_INTERFACE before defining functions that
+ are used only if it is defined.
+ o Declare a variable before code, and rename it from ret to xvmc_status
+ to better describe it.
+ o if 0 some static functions not used.
+ o Don't declare some unused variables.
+ o Declare as static some functions that are used only in the file defining it.
+ o Add a default/fallback return True to the Bool function
+ src/xvmc/intel_batchbuffer.c:intelInitBatchBuffer().
+ o Ansify src/xvmc/xf86dri.c.
+ o Add missing prototype to src/xvmc/xf86dri.h and follow pattern of other
+ headers by adding "extern" before function prototype.
+
+commit 8cdbd55f8075cd18b563badde35815665d7d053e
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 25 10:06:14 2008 -0700
+
+ Fix 965+ rendering issues with DRI disabled.
+
+ The new chips no longer automatically flush the rendering cache, so if we
+ don't flush the RC at blockhandler, the last rendering done may not
+ appear on the screen. This was particularly noticable with a bare Xorg with
+ some missing root weave, and terminals where the last character wouldn't
+ appear until the cursor blinked. A flush in the DRI blockhandler path had
+ hidden this issue for most people.
+
+commit c02ab432dd7058c700c35eecf6215daf5f262c51
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 24 13:48:20 2008 -0700
+
+ Revert "Use mprotect on unbound AGP memory to attempt to catch use while unbound."
+
+ While I still like the idea, the mprotect calls themselves are failing on
+ Linux and causing more trouble than they're worth.
+
+ This reverts commit a1612b7728d4153499fe86b6713a13c8702cc7d9.
+
+ Conflicts:
+
+ src/i830_driver.c
+ src/i830_memory.c
+
+commit 552a1b824db31a234d7c5cb71057ed0e0ce64477
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 24 13:25:37 2008 -0700
+
+ Disable a bunch of clock gating disables on IGD_GM, which doesn't need them.
+
+ Besides our driver having fallen through to the GM965 path for
+ RENCLK_GATE_D1, the BIOS was turning some of these on. It may be relevant
+ for previous platforms as well to zero out the fields that should be zero
+ in the other registers.
+
+commit c1a2bc357fc122d3718eca771530367ba2915815
+Author: Julien Cristau <jcristau@debian.org>
+Date: Mon Mar 24 13:29:24 2008 +0800
+
+ Don't try to build XvMC if DRI is disabled
+
+ Instead of failing the build, don't even try unless --enable-xvmc was used.
+
+commit 5fcc002f77ebb66c1dc0f901a377ccf9bbc1d0bd
+Author: Maxim Levitsky <maximlevitsky@gmail.com>
+Date: Mon Mar 24 13:24:12 2008 +0800
+
+ Fix crash triggered by dpms low power mode with hardware overlay running
+
+ When overlay switch crtc, it ignores current crtc dpms mode which
+ might lead to hang.
+
+commit 645980596450ed21c3b8927410a6bfe38a0c55d1
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Mar 21 03:08:24 2008 -0700
+
+ Transformed coord computed using floats. Don't move bilinear composite dst.
+
+ The homogeneous coordinate computation in the core server cannot be used for
+ many legal matrices as it overflows. Just use floats in the driver; faster
+ and avoids troubles.
+
+ When compositing with bilinear filter, don't push the dst coordinates around
+ as that makes the output blurry when pixels are aligned.
+
+commit bf725b92cf93d74a6f414f81f319dddbc2c78525
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Mar 21 11:50:27 2008 +0800
+
+ xvmc: fix distcheck
+
+ Add i915 headers in Makefile.am
+
+commit e8da1a5418ab240ae7b1ef95bfea6bee22f1e0c1
+Author: Joerg Sonnenberger <joerg@britannica.bec.de>
+Date: Fri Mar 21 11:41:49 2008 +0800
+
+ Fix DRI config for NetBSD
+
+ Reported by Joerg. This does a little more clearn up.
+
+commit 224c36cc14a7552bc5df793ad582f0ea5349eb1e
+Merge: 4b9b7b0 03ccffd
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 20 10:31:57 2008 +0800
+
+ Merge branch 'xvmc'
+
+commit 52d6ced652059989e6d9780a149488ccd16e3a22
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Mar 19 11:59:15 2008 -0700
+
+ Fixup backlight control and panel fitting property names
+
+ They should be listed as lower case, since that's what you'd pass to xrandr.
+
+commit 4b9b7b007d729f94b01b0031d8ae478134b501da
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Mar 18 14:08:19 2008 -0700
+
+ Handle projective transforms on 9xx for Composite.
+
+ Projective transforms require un-normalized texture coordinates and the use
+ of the texldp instruction. The coordinates are passed as x/y/z/w (the z is
+ unused, but there isn't a vertext format for just x/y/w).
+
+commit f699389818f1f11f3edddcdddcd0a43be21ba4c0
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Mar 18 14:06:47 2008 -0700
+
+ Add i830_transform_is_affine and i830_get_transformed_coordinates_3d.
+
+ These are needed to deal with projective transforms in the composite
+ operation.
+
+commit a55974b435224fe5726fa44298d051c71e4056a5
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Mar 18 13:47:20 2008 -0700
+
+ Add defines for 9xx S3 word in 3D_STATE_LOAD_STATE_IMMEDIATE
+
+ These aren't used at this point, but what the heck.
+
+commit 4f5500abe209b92b39ae1f2d7a1118362ac95034
+Author: Keith Packard <keithp@keithp.com>
+Date: Tue Mar 18 13:45:46 2008 -0700
+
+ 8xx/9xx can handle textures to 2kx2k. 965 can do 8kx8k
+
+commit b1b173d03b3acd300c3b0f0ceffeddf1a8137839
+Author: Julien Cristau <jcristau@debian.org>
+Date: Tue Mar 18 12:02:25 2008 +0100
+
+ Add i8[13]0_ring.h to _SOURCES to fix distcheck
+
+ Thanks to Bruno <bonbons67@internet.lu>.
+
+commit 03ccffd5b9b8108166ea143884a1a0a6417f3236
+Merge: ac76363 d72e18c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Mar 18 16:54:15 2008 +0800
+
+ Merge branch 'master' into xvmc
+
+commit ac763634069fe070b3afc073ce437959612d39fe
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Mar 18 16:52:29 2008 +0800
+
+ Disable XvMC if DRI is not enabled.
+
+ Default XvMC to disabled.
+
+commit d72e18c10995079121eded758a60ed99b5b8ce1a
+Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>
+Date: Mon Mar 17 16:59:12 2008 +0800
+
+ Compile warning fixes.
+
+ Move some declarations and don't declare an extra variable with the
+ same name, to fix warnings about mixed declarations and code.
+
+commit 81df48d8d151907c2e9dd33a729860c39aa78175
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Mar 17 10:05:57 2008 +0800
+
+ bug 15060: Dell Latitude X300 needs pipe A quirk
+
+commit ffb5a115cc62ed63110f77815b7f04976f720065
+Merge: 05cf070 24e6eb2
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Mon Mar 17 15:19:05 2008 -0700
+
+ Merge branch 'master' into pfit
+
+commit 24e6eb2ae683ed6614ac79c0d7811ac9fe94209f
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Mon Mar 17 14:17:27 2008 -0700
+
+ Add support for new ->get_crtc output callbacks
+
+ Using the new interface allows the server to avoid some flicker at startup.
+
+commit 69fbc17441d0f894d17b058e65ae22300cd2a54c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 14 10:04:18 2008 -0700
+
+ Change OUT_RING and similar calls to OUT_BATCH for batchbuffer merge
+
+commit 65f92cfb7a05c9c028cf73ce1221cc0a651b50b3
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 14 10:03:11 2008 -0700
+
+ Remove h0h0 UploadToScreen implementation that used pattern blits.
+
+ It never worked and was never that hot of an idea. Most of the motivation is
+ gone with glyph pixmaps anyway.
+
+commit 05cf07071e25f84dec3476a9bed7235ed50cd249
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Mar 13 18:12:00 2008 -0700
+
+ Initial panel fitting changes
+
+ Basic support for panel fitting.
+
+commit 402fbd36221d2ed27913850f6bfcce768b970fe8
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Mar 13 16:12:20 2008 -0700
+
+ Remove fbc enable/disable messages
+
+ Tired of them filling up my logs.
+
+commit c20d78a7bc512219fa36dfc9707fe65f66ab80f1
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 10 17:27:45 2008 -0700
+
+ Add workarounds for 830/845's lack of a8/x8r8g8b8/x8b8g8r8 support.
+
+ When we have unset channels (color for a8, or alpha for x8*), force them
+ to the appropriate value in the texture combiner rather than relying on getting
+ the desired results from teture mapping. Performance is the same on 865, so
+ multiple paths aren't necessary and we can use the less friendly texture
+ formats everywhere.
+
+commit f425181695b1b3864373e1919cf651229f19fa69
+Merge: f4cfc98 1c0e495
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 13 23:58:56 2008 +0800
+
+ Merge branch 'master' into xvmc
+
+commit f4cfc98ab038af4d5d52af12e4d60ded62cf4a6e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 13 23:56:48 2008 +0800
+
+ nuke unneed error_base and event_base
+
+commit f269c69b4e7be076dc9838d0e0801c940ccdba08
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 13 23:41:22 2008 +0800
+
+ remove unused init/fini hooks for xvmc driver
+
+commit 1c0e4958564588162bc22a980567436dfc9d1e56
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 13 10:15:55 2008 +0800
+
+ Always bind memory after agp aperture allocation
+
+ This fixed the crash appearing for Xv buffer memory, which appears
+ allocation and free happening in stolen memory. We should always
+ try to bind for stolen memory for correct protect setup, otherwise
+ we might get fault that stolen memory protect reverted to non-r/w
+ after previous free and unbind.
+
+ Credit goes to Lukas Hejtmanek to identify the real problem of Xv
+ crash!
+
+commit 2e2372912ed9bc0d86e8960653ef0bfce5cf99ab
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Mar 12 11:38:56 2008 -0700
+
+ Eliminate local variables defined in i830 BEGIN_LP_RING().
+
+ This lets us get better sanity asserts, and avoid mysterious braces when you
+ do two BEGIN_LP_RING()s in a single function. Potential minor performance
+ loss isn't too exciting, as ring access is about to become a compat path
+ anyway. This change also removes the requirement for ring emits to be aligned
+ to dwords.
+
+commit abf11a274e14535630742fe4c41cc0ae92555293
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Mar 12 11:03:26 2008 -0700
+
+ Separate i810 and i830 ring macros out into separate files.
+
+ I want to hack on i830 for changing it into a compat path for batchbuffer
+ without having to worry about the i810 stuff getting broken.
+
+commit e04908853db74dc76718f6bc0dfb23b5ab3c5837
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Mar 12 15:44:58 2008 -0700
+
+ Add sysfs backlight support for Fujitsu laptops
+
+ Tested by Dan Williams.
+
+commit 907399660b83b3939aab3dc7d0697197441e4ec8
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Wed Mar 12 12:33:36 2008 -0700
+
+ Add stdint.h to DVO drivers
+
+ Fixes the build for me (just following the git development guide on a
+ new machine).
+
+commit 8563effc96195116c96f89a801c1de6ab982630a
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Mar 12 11:14:17 2008 -0700
+
+ Add stdint.h to i830_bios.h
+
+ Needed for new uint* usage.
+
+commit c82d8e51c6ff9522ad0deb33399d13f3d6fef19d
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Mar 12 11:13:50 2008 -0700
+
+ Add pipe A force quirk for Thinkpad R31
+
+ Fixes #15036.
+
+commit a8f4108bea0966406b0fcae8d062ae1cfb4afbb3
+Author: Hong Liu <hong.liu@intel.com>
+Date: Wed Mar 12 21:55:56 2008 +0800
+
+ Fix rotation mem with kernel memory manager in VT switch
+
+ Unbind and bind a DRM BO may change the buffer offset, thus
+ crtc may reference a wrong rotated memory after a VT switch cycle.
+ Destroying it here will cause its reallocation when entering VT.
+
+commit cd73c6a5a78eac726b14ef242b8452c559c4c003
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Mar 12 20:37:41 2008 +0800
+
+ Pass default visual in dri context create
+
+commit 21580add63307ca68790bf911243b8675f5f7c64
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Mar 12 20:37:17 2008 +0800
+
+ disable memory alloc debug
+
+commit 5f272471878c896038b2c3f2bf704655d908828d
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 11 12:14:51 2008 -0700
+
+ Nuke more CARD* types from i810 driver. Untested.
+
+commit 9a62d3b598cca3c28fa8b6313bba82983cc29ecf
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 11 12:07:52 2008 -0700
+
+ Remove i830+ driver's use of CARD*/INT* types for great justice.
+
+ Several uses are actually left, which are determined by the X Server
+ interfaces we're implementing.
+
+commit 15f17aa682129c57d3864a355834edff06e91540
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 11 11:27:10 2008 -0700
+
+ Cleanse DVO drivers of CARD* types.
+
+commit 642ba6278876ec945ad687c2b9624e532cd3f629
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 11 09:59:16 2008 -0700
+
+ Add support for brightness control to i915 textured video output.
+
+commit ecdb5963ef6873ab82998dca6ca5186644666ec8
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Mar 11 11:08:25 2008 -0700
+
+ Add pipe A force enable quirk for Toshiba Portege R205-S209
+
+ Fixes #14944.
+
+commit 4ea67e9b853e9ed61557780b87bd184fc81fd731
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Mar 11 13:54:33 2008 -0400
+
+ Crack down on warnings.
+
+ Fix printf formatting warnings, wrap a couple of long lines, nuke
+ unused variables, add missing #include <unistd.h>.
+
+commit 9fd13e6773371c82b9799a5bda7c96ffa5cafe8c
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Mar 11 13:48:07 2008 -0400
+
+ Silence warnings about possible uninitialize use of dst_format.
+
+ Whoa, gcc got a lot smarter about warnings. If iXXX_get_dest_format()
+ doesn't support the picture format passed in it won't initialize the
+ uint32_t pointed to by dst_format and return FALSE.
+
+ What gcc now can detect is if dst_format is used without checking the
+ return value, it might be used uninitialized. This patch makes sure
+ we always check the return value before using dst_format.
+
+commit 31654f52b084ebb32f69854dfb1c342c9da07928
+Merge: a03aca1 02c0ffb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Mar 11 14:37:41 2008 +0800
+
+ Merge branch 'master' into xvmc
+
+ Conflicts:
+
+ man/intel.man
+ src/i830_driver.c
+
+commit 02c0ffb1d8112a6fb03f9c8eae9ec1a1fca123ef
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Mon Mar 10 11:51:37 2008 -0700
+
+ Add pipe A force enable quirk for Dell Latitude D500
+
+ Fixes #14888.
+
+commit a1cd37f94cb8efbde84ba0a46839fb8735dd3595
+Author: Dave Airlie <airlied@clockmaker.usersys.redhat.com>
+Date: Mon Mar 10 14:43:24 2008 +1000
+
+ quirk: add DVO ivch quirk
+
+commit f2b9f387af7f618ad083b1ec8bee513ff2157d06
+Author: Matthieu Herrb <matthieu.herrb@laas.fr>
+Date: Sat Mar 8 23:36:56 2008 +0100
+
+ Makefile.am: nuke RCS Id
+
+commit bf6d59ee98127ac6447848c4202c54d861a510d4
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 7 14:26:22 2008 -0800
+
+ Avoid setting reserved bits in SDVOx on everything 965-class.
+
+ This will likely fix SDVO outputs on G35 hardware.
+
+commit 5915c75422c5277d530e7f8ecbdfe94654706efd
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Fri Mar 7 13:18:09 2008 -0800
+
+ Enable hardware overlay on 965
+
+ Based on Maxim Levitsky's patch for the same. Many thanks to Maxim for
+ discovering that this features still works in recent hardware!
+
+commit 13ae79b415d944891cfdc2cd2d5397fec36a4e8e
+Author: Dave Airlie <airlied@redhat.com>
+Date: Fri Mar 7 08:04:37 2008 +1000
+
+ fixup pciaccess version detect
+
+commit be08b61540e1edbb7673f0b6add0f1e32b136b3c
+Author: Jesse Barnes <jbarnes@jbarnes-t61.(none)>
+Date: Thu Mar 6 13:55:13 2008 -0800
+
+ Implement new get_property feature for backlight control
+
+ This should keep the backlight value reported by xrandr --prop & xbacklight
+ consistent with changes by other software in the system (like the hotkey driver
+ or kernel backlight driver).
+
+commit 502e41f6dff91393cfeaf08c9ba312781d1b7267
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 6 19:32:29 2008 +0800
+
+ remove extra dri checking
+
+ And directRenderingDisabled already has config check result.
+
+commit ea58d66cf778c0477c30e5bfe3142b64e8b971d5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Mar 6 19:31:33 2008 +0800
+
+ No ring, no sync
+
+commit c823fb00a20f523f50a2779c36aa1c014ba01535
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Thu Mar 6 19:29:22 2008 +0800
+
+ Pull chipset detection out of PreInit into its own function
+
+commit 6b16cee0786b636dc849826193b26e898832a73c
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Thu Mar 6 19:27:42 2008 +0800
+
+ Account for FBC LL cache in memory reservation
+
+ When we reserve memory (memory that won't be managed by the kernel) make
+ sure to reserve space for the FBC LL cache as well.
+
+commit 6f04d02471f1cebc76eab637a9a78c4004fd3cc9
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Thu Mar 6 19:27:07 2008 +0800
+
+ Move MTRR fixup to its own routine
+
+commit 750beb9232b51223d8e650878ce8dad071f0d0b3
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Thu Mar 6 19:24:47 2008 +0800
+
+ Refactor memory allocation into a separate function
+
+ This simplifies the memory allocation code and fixes a number of bugs.
+ Prior to this change, some flags may have been set after memory
+ allocation occurred, meaning they had no effect. It should also make
+ the allocation logic clearer.
+
+commit d466b25d09bbe85abe84d9d7714ffb65fafe7593
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Mar 5 13:38:58 2008 +0800
+
+ Really print adjusted_mode for mode debug
+
+commit d767eabe534be7f7bdcbf00614a8901124ac911f
+Author: Hong Liu <hong.liu@intel.com>
+Date: Thu Feb 28 13:51:18 2008 +0800
+
+ Fix DPLL programming in CRTC mode set
+
+ The following patch fixes the display problem on internal development machines.
+ The code in commit 3c22ed633be2ac96eea7bc533839e956f1f31b84 (Jesse's force pipe
+ A enable patch) broke DPLL programming. Moving the DPLL set back up in the
+ function solves the problem.
+
+ Fix for internal bug #309.
+
+commit 4936e097028b91f4bdc2d9101dc49f6fe586e718
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Mar 4 08:52:40 2008 -0800
+
+ Change FBC idle mode back to default
+
+ Use the "immediate idle" mode for FBC. Rather than waiting for the current
+ compression pass to finish before signalling to the CPU that it's idle, this
+ mode should stop any current compression pass and tell the CPU that the GPU is
+ idle right away.
+
+ Seems to fix #13326.
+
+commit 02a3b80ee8341968dbce5b7cb871b187db5ff805
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 29 11:13:34 2008 +0800
+
+ Bug 14591: comment out MI_DISPLAY_POWER_DOWN as for 965GM only
+
+commit ea7c7d088e0a3c3b7ab2bdd0475aa13379764bf4
+Author: Peng Li <peng.li@intel.com>
+Date: Wed Feb 27 11:56:55 2008 +0800
+
+ HP Compaq 6730s has no TV output
+
+commit fdc25cb0ca7d479051cee66a032f9ee1b68db98a
+Author: Mark Kettenis <mark.kettenis@xs4all.nl>
+Date: Tue Feb 26 17:26:50 2008 -0800
+
+ Bug #14649: Fix build if pciaccess headers are not with other xorg headers.
+
+ We failed to include the pciaccess header flags in our build. Even if the
+ server was to include those flags for us, it would leave us broken for the
+ tools-only case, and it's easier to just put the flags everywhere so we avoid
+ future copy'n'paste mistakes.
+
+commit e55d86f654aa9dd4951b441636c8ca4b37786daf
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 26 12:26:23 2008 -0800
+
+ Fix SDVO I2C access on Mac Mini in EFI mode.
+
+ The GMBUS was being left in SDVO pin access mode, which blocked our bit-banging
+ access to those pins. Thanks to Peter Jones for quick debugging turnaround
+ in getting this fixed.
+
+commit 6935c732c351585f31e2094c4201a00e3d5529b3
+Author: Julien Cristau <jcristau@debian.org>
+Date: Mon Feb 25 14:47:02 2008 +0100
+
+ Look for src/{modes,parser} in $srcdir, not in objdir
+
+ This makes the detection work in case configure is run from another directory.
+
+commit 66cdccb021a4748b2af41e415c36ed58ca808df6
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Feb 25 14:29:09 2008 +0800
+
+ Fix overlay rotation
+
+ Track current covered crtc rotation in port's private,
+ and fix overlay rotation transform to be against crtc mode
+ coordinate.
+
+commit 975d7833bc844485c7043538336bddcba7f7f90e
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Fri Feb 22 11:41:25 2008 -0800
+
+ Add quirk for DVO channel selection
+
+ Some machines want DVOA, some DVOB. We can use this quirk to differentiate
+ them until we come up with a better solution. Patch from Hong Liu.
+
+ Fixes #13722.
+
+commit 33802b6ee3c298bae4d2b6f464ee5cc730a58506
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Feb 21 08:43:34 2008 -0800
+
+ Add pipe A force enable quirk for ThinkPad X40
+
+ ThinkPad X40s need this quirk or they'll crash frequently.
+
+ Fixes #14521.
+
+commit 444984a578aae92ff55c06da897ea1d23679e706
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Feb 21 08:37:42 2008 -0800
+
+ Remove side effects from VGA debug code
+
+ The VGA register dumping code was leaving ARX in data mode rather than index
+ mode, which could cause problems for later software accessing AR* registers.
+ Fix it to make sure it's in index mode when we're done.
+
+ Fixes #14434.
+
+commit 28049540d8a9f79401fcfeb90784f5a528e7b34f
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Feb 20 13:08:27 2008 -0800
+
+ Fix DSP*CNTR restoration
+
+ When checking which pipe a given plane was associated with, we weren't properly
+ masking the pipe selection bits. Fixes #14481 and should allow the driver to
+ work with vesafb again.
+
+commit 293120bfc40a5b828567551954d8312639e73578
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Feb 19 21:13:45 2008 +0800
+
+ Don't leak memory if no DMI info is provided by kernel
+
+commit cdc5cb7c3d24f36a30fb931b43ec6df8294709e2
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Feb 19 08:51:53 2008 +0800
+
+ Fix last 8XX clock's p2 value commit
+
+ My fault to change Hong's origin patch reversely.
+
+commit be0591880f20bdcbae159d5ab47113b6cc6fbffe
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Feb 18 14:35:06 2008 +0800
+
+ Fix Lenovo X60 TV quirk
+
+ Z61 has same subsys ids with X60, but does have one S-video
+ TV out. Use DMI info instead to quirk TV on X60, X60s.
+
+commit d5e564c5f24b0d9320bc4908693d37e7e6d68bc6
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Feb 18 14:32:32 2008 +0800
+
+ Add DMI info for i830 quirks
+
+ Linux kernel has CONFIG_DMIID to export dmi info
+ through sysfs.
+
+commit 4a42b01f5ee5a673716d6959dfe0e693b037eb48
+Author: Keith Packard <keithp@keithp.com>
+Date: Sat Feb 16 18:16:12 2008 -0800
+
+ Decode DSPCLK_GATE, dump PIPE*STAT, MI_MODE, MI_DISPLAY_POWER_DOWN, MI_ARB_STATE, MI_RDRET_STATE, ECOSKPD
+
+commit 663313559873208c00c3d3748b99d837949ecdf2
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Feb 15 13:20:22 2008 +0800
+
+ Bug #14440: fix stolen mem size mask on i830M
+
+ For i830M stolen mem size mask should always be 0x70.
+ Use 0xF0 for later chipsets should be ok, so behavior is
+ identical to kernel agp.
+
+commit 8c8ca16120927fc2d3cf8bcd5212a4227a280708
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 8 11:34:04 2008 -0800
+
+ Add a little program to output the stepping information for several chipsets.
+
+commit f5896dcd1f5a964dce024ab8887ac8a79f7093a1
+Author: Jesse Barnes <root@nietzche.virtuousgeek.org>
+Date: Thu Feb 7 11:56:28 2008 -0800
+
+ Add CACHE_MODE_0 register to dump output
+
+commit d59eaa8b1e6eeb9775c9d21c7a5fd28f25b2bc3a
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Feb 6 09:35:43 2008 -0800
+
+ Only disable FBC if registers are available
+
+ The call to disable FBC should only occur if the FBC feature is actually
+ present or we may end up hanging on a read from a non-existent register.
+
+commit 83a071e2c01eb71462273f25d86d77159ac51114
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Feb 5 17:09:19 2008 -0800
+
+ Fix build warnings on 64 bit
+
+ Use PRIx32 for printing CARD32 types, and PRIx64 for portably printing uint64_t
+ types. Requires the addition of a new include, inttypes.h, to work. Hope C99
+ is ok with everybody...
+
+commit abf4b0cafa038e97bd7a6e5ba107b822117b9ccc
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Feb 5 13:30:51 2008 -0800
+
+ Only enable FBC if one pipe is active
+
+ Some chips can't support FBC if multiple pipes are active. So if more than one
+ pipe is on or we're going from one->two pipes enabled, make sure FBC is
+ disabled.
+
+ Intended to fix 13418, 13326, 13152.
+
+commit f79a585d57c61fbe9af5684a336918e1fe3e8416
+Author: liuhong <liuhong@devlinux-hong.sh.intel.com>
+Date: Tue Feb 5 11:04:34 2008 +0800
+
+ xf86-video-intel: fix ivch using wrong dvo register
+
+ We use the wrong DVO output register for ivch which is used for DVO LVDS.
+ Vbios enables DVOB and driver never touches it, so everything seems
+ working correctly now.
+
+commit cabed67b6a0e4dd408eeb8d2083269100a65933c
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Feb 5 11:36:24 2008 -0800
+
+ Program FBC fence offset register
+
+ Just a partial fix for some of the FBC issues people have been seeing. The
+ other half is to disable FBC if both pipes are running.
+
+commit 332587081fb05d284864aabe608dd9988eee3d44
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Feb 5 10:34:55 2008 +0800
+
+ Fix last commit on i8xx debug p2 value
+
+commit 2d18a299cf39f2ecf9bd3ba8407f892566b2edcc
+Author: Hong Liu <hong.liu@intel.com>
+Date: Tue Feb 5 09:10:48 2008 +0800
+
+ Fix PLL reference clk debug dump
+
+commit 9536515d7717969795edc1b80d6e6a36820dd575
+Author: Hong Liu <hong.liu@intel.com>
+Date: Tue Feb 5 09:06:14 2008 +0800
+
+ Allow non-strict free order for bo_list
+
+commit 11de831cb706025c003e98fef6d666d273192bcd
+Author: Hong Liu <hong.liu@intel.com>
+Date: Tue Feb 5 08:58:44 2008 +0800
+
+ Bug 10584: Mac Mini EDID data assigned to TMDS output
+
+ EDID data for TMDS output got from crt should be applied
+ to TMDS output on mac mini.
+
+commit 95327571134d8ebb9d936d80b70c2f642393aa9f
+Author: Hong Liu <hong.liu@intel.com>
+Date: Mon Feb 4 17:14:23 2008 +0800
+
+ Bug 10773: fix i8xx pll p2 value in i830_crtc_clock_get()
+
+ Also fix debug dump, slightly modified to use macro instead.
+
+commit be1b568bc2379856c3eaaed365002512bebc218c
+Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com>
+Date: Thu Jan 31 22:47:18 2008 -0200
+
+ Make sure symbols used by other modules are public.
+
+ These symbols must be explicitly exported, otherwise if compiled with
+ hidden symbols, LoaderSymbol (and dlopen) will fail to find them.
+
+commit cc1031a834b81aa6f835c282ad86deddabe229a0
+Author: Mark Kettenis <mark.kettenis@xs4all.nl>
+Date: Thu Jan 31 21:02:48 2008 -0800
+
+ Bug #14246: Fix biuld on OpenBSD.
+
+commit b1e1c7cd993ab4f1935d750eb8852e74be757e53
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 30 23:01:04 2008 -0800
+
+ Add detail on different units to intel_idle.
+
+commit aa3ac79759581b5eb05293a8cbcf89eb5b76712c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jan 31 18:26:46 2008 +0800
+
+ Don't crash if SW cursor
+
+ In case of device option or hw cursor allocation fails.
+
+commit 2e43bec8731ba1b172f7a0bf867bbb5c1adbda2d
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Wed Jan 30 18:59:12 2008 +0800
+
+ Frame buffer compression support on new chipset
+
+commit bf629466a46c4037ec7b7cc5ee16be947618bd68
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 30 18:55:20 2008 +0800
+
+ hardware status page initialization rework
+
+ Order hardware status page setup more reasonable after
+ all memory bound, in case new chipset requires non-stolen
+ page and that could be bound then.
+
+ Also clean up drm irq handler install function, and put
+ first install in starting stage later than status page setup,
+ so we won't make device cry for uninitialized status page.
+
+commit 04032dad28baab80131edbe8fe58aade8149bb71
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 30 18:52:32 2008 +0800
+
+ Wrap up chipsets which needs graphics address for status page
+
+ Also add support on new chipset.
+
+commit b9c3fa79d9fd48c34536f92e6c1c70fe3a619410
+Author: Keith Packard <keithp@keithp.com>
+Date: Fri Jan 11 15:51:00 2008 -0800
+
+ Add intel_idle to measure GPU load ratio.
+
+ Samples GPU idle register to detect when the GPU is busy; prints out the
+ number of busy samples per 100 total samples once per second.
+
+commit 5d9e67aec3ce458d22b7febd3819542abb360534
+Author: Erik Andren <erik.andren@gmail.com>
+Date: Fri Jan 25 11:06:01 2008 +0800
+
+ Clevo M720R has no TV-out
+
+commit 6bf53eb48f40ad0c8ea9679ee634447410821b4f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Jan 25 16:59:13 2008 +0800
+
+ Set vtSema before EnterVT
+
+ Which was missing in our ScreenInit and initial EnterVT.
+ This not only causes failure in initial rotation with TTM,
+ as we won't bind in rotate_mem alloc in this case, and hide
+ another bug that we call randr12 function in I830LoadPalete
+ before we call xf86RandR12Init.
+
+commit 94a18fa1f8141837bdab32e545da7a7aed1cc396
+Author: Julien Cristau <jcristau@debian.org>
+Date: Thu Jan 24 15:24:40 2008 +0100
+
+ Don't build reg_dumper if we don't have pciaccess 0.10.0
+
+ The pci_device_map_range() function was added in libpciaccess 0.10.0, and
+ is used by the reg_dumper tool. Don't try to build it if we have an older
+ libpciaccess.
+ Also make sure that util-macros >= 1.1.3 is available when running autoconf,
+ because it's required for the PACKAGE_VERSION_* macros.
+
+commit d341e41c863f1212bf2c6b84782a7e472b6612a1
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jan 24 10:40:18 2008 +0800
+
+ Clear shadow memory after allocation
+
+commit 88a1041c5361964d37107c22d77feaa1b2160656
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jan 24 10:36:06 2008 +0800
+
+ Fix i830 block handler wrap
+
+ which was observed in rotation crash with stack overflow.
+
+commit db0a7c569e383436a2725e1e74f35fb426da1196
+Author: Andreas Stawinoga <a.stawinoga@gmx.de>
+Date: Thu Jan 24 08:51:09 2008 +0800
+
+ Samsung Q45 has no TV output
+
+commit f54bba7600647c76fe3bd2d0133edc06dbea6a05
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Jan 22 00:48:23 2008 +0800
+
+ Add missing i830M and 845G pci ids info
+
+commit 633dbd28218fd8a746c1735fd44a14f35bd07faa
+Author: Julien Cristau <jcristau@debian.org>
+Date: Thu Jan 17 22:34:21 2008 +0800
+
+ Bug 14032: i810, set default depth to 16
+
+ X fails to start without an xorg.conf on i810, because the default depth set by
+ the server (32) is not supported by the driver. I think the driver should
+ default to 16 bits (it supports 24, but when I tested it that didn't seem to
+ work very well, and dri is disabled at 24 bits depth anyway) instead of letting
+ the server use 32 and failing later on.
+
+commit 4fec18e07f2b23306e885d63c74661ae0e4b04d9
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Jan 11 10:28:59 2008 -0800
+
+ Turn on backlight when LVDS panel is powered up
+
+ In some configurations, the LVDS may be off at startup along with the
+ backlight. So when turning the LVDS on for the first time, we may also need to
+ set the backlight to a non-zero value. So try to use the saved value if
+ possible, but if it's zero, make the backlight full brightness when turning on
+ the LVDS.
+
+ Note that this is slightly sub-optimal for configurations where zero is a valid backlight brightness.
+
+ Fixes fdo bz #13958.
+
+commit b5cf8faf8102e6313c23de87a680cc327ac95478
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Jan 10 14:25:18 2008 -0800
+
+ Remove unnecessary quirk code in CRT probing
+
+ Since we return early in the CRTC DPMS code, keeping the pipes & clocks
+ enabled, this code is no longer necessary. As an added bonus, VGA connections
+ should be reported correctly even when the pipe A quirk is active.
+
+ Updates fix for fdo bz #11432.
+
+commit 3c22ed633be2ac96eea7bc533839e956f1f31b84
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Jan 9 09:47:38 2008 -0800
+
+ Add pipe A force enable quirk
+
+ On some platforms, the firmware may read & write GPU registers on lid close,
+ suspend/resume time or during various SMM events. If one of the graphics pipes
+ is disabled at that time, the GPU may hang due to the programming dependencies
+ of the various registers.
+
+ This patch adds a quirk to force the driver to keep pipe A enabled if
+ necessary, through user configuration in xorg.conf or via a platform specific
+ quirk. Leaving the pipe enabled comes at a power cost however, so the quirk
+ should only be enabled when strictly necessary.
+
+ Fixes https://bugs.freedesktop.org/show_bug.cgi?id=11432.
+
+commit d3b41bcf231a6ffd289c128c06aa619f554a776c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 9 21:28:25 2008 +0800
+
+ Disable frame buffer compression on new chipset now.
+
+commit 2f0c0427dc4113bac64cda07c6365df1f0637697
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 9 21:27:42 2008 +0800
+
+ Update PIPELINE_SELECT instruction and surface state format for new chipset
+
+commit 139e9affdd49dcbe08e260a0a2bd001de16566e6
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 9 21:26:57 2008 +0800
+
+ GTT access change for new integrated graphics device
+
+commit 4f288ff2d1e7d28bf49167f073fbce21492a7c32
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 9 21:25:47 2008 +0800
+
+ Add new integrated graphics chipset ids
+
+commit f089942689df622b1af00569eade4883a84eb7a3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Jan 3 11:28:18 2008 +0800
+
+ Change origin i965G_1 to chipset market name G35.
+
+commit 71143200ed66cb9dcc1f9edf98128be80b05619c
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Fri Jan 4 15:01:25 2008 -0800
+
+ Don't modify low bit of BLC_PWM_CTL when using combo backlight control
+
+ On some platforms, the low bit of BLC_PWM_CTL is wired as a 'max brightness'
+ flag, rather than a regular part of the backlight duty cycle. So when in the
+ combo mode, divide the total number of backlight levels available by two
+ (tossing one bit) and adjust the programming in the set_brightness routine.
+
+ Note that platforms with this behavior may need quirks added so that they work
+ by default.
+
+commit b434bf4029d1a405216454629bcea717c779ae5a
+Author: hulifox008 <hulifox008@163.com>
+Date: Fri Jan 4 02:46:54 2008 -0800
+
+ Fix copy'n'paste-o in unused airlied i2c code.
+
+commit f2ffc0f6e038357dda268363e52c11ada1d0b810
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Jan 3 11:16:15 2008 -0800
+
+ Fix compilation error when not using DRI
+
+ This patch complements 88f8b688e2316ae4a1f7485f0010ce90de54783a which
+ added uint64_t typed variables to avoid unsigned long overflows in
+ 32-bit architectures but didn't include <stdint.h> with the required
+ definition.
+
+ When XF86DRI and _XF86DRI_SERVER_ are defined this header gets
+ indirectly included through "i830_dri.h", thanks to "i830_common.h"
+ which masquerades this problem as released in 2.1.0 and that manifests
+ with :
+
+ In file included from i810_driver.c:88:
+ i830.h:137: error: expected specifier-qualifier-list before 'uint64_t'
+ i830.h:240: error: expected specifier-qualifier-list before 'uint64_t'
+
+ Patch from Carlo Marcelo Arenas Belon <carenas@sajinet.com.pe>
+
+commit a03aca101d4d51ed2279a99d1137ce3b7ef364e2
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 2 14:11:31 2008 +0800
+
+ xvmc: setup driver info for XvMCGetDRInfo request
+
+ User don't need to have XvMCConfig file then, if ld.so can
+ find libIntelXvMC.so in ld path.
+
+commit 0fd769b5882058e5ebf17ee1c1e35b4a3d46e6b0
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Jan 2 13:57:23 2008 +0800
+
+ xvmc: add context id info in debug/trace
+
+commit 83d304c61ad5fdc58b0a9309dbd1e5a3f6cd9b01
+Author: Nanhai Zou <nanhai.zou@intel.com>
+Date: Wed Jan 2 10:50:44 2008 +0800
+
+ TV: fix 576p refresh rate
+
+commit a2bb2afd24c95e056b801c85dc12daeac54b37f0
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Dec 28 15:52:12 2007 +0800
+
+ xvmc: move drmOpen earlier
+
+ remove wrong comments
+
+commit 96246c27cb836bae8ee02c46c68a1f2102efd14b
+Author: Joakim <elupus@ecce.se>
+Date: Thu Dec 27 17:09:02 2007 +0800
+
+ Aopen Minipc 965GM LVDS quirk
+
+commit 666e01bd426a553f23eeb5040ecbc28b4abb87da
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Dec 26 09:51:09 2007 +0800
+
+ xvmc: add info in intel.man
+
+commit e75d0c20e3b02f649b62ac9da7f41bb43d0f3d80
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Dec 26 09:37:34 2007 +0800
+
+ xvmc: make XvMC default on
+
+commit ed9ff6f30fff33fe2d60715f1b503047f8e1ef01
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Dec 25 08:32:47 2007 +0800
+
+ xvmc: consolidate put surface interfaces
+
+ Make surface list track like context list, and move
+ generic PutSurface code out of i915. So MC driver just
+ needs to fill specific the command params, and we can
+ get one single type of intel xvmc command to issue,
+ ddx driver's put_image_size got removed.
+
+ Fix last commit with missing XvMCContext assignment.
+
+ Fix priv_data free with apropriate X11 XFree.
+
+commit f0ced5edaeec3e7741828eab728417843326d56f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Dec 24 10:53:57 2007 +0800
+
+ xvmc: store XvMCContext pointer instead of context_id in internal ctx list
+
+commit 216ad7398742f2f80b5477e89f827acb351b4d72
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Dec 20 13:39:32 2007 +0800
+
+ xvmc: add disable xvmc build support
+
+ Move xvmc source files under XVMC config
+
+commit a811ca30659e8c477027ea9c91fb9fc516fdabc7
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Dec 20 13:08:07 2007 +0800
+
+ xvmc: handle surface create/destory in generic code
+
+commit 5f961f28310a1cd19967df2034b0452bf4446394
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Dec 20 12:51:06 2007 +0800
+
+ xvmc: move dri context handling to generic code
+
+ Use XvMCContext's context_id for dri context handling instead
+ of driver private id. Remove unnecessary field for i915 private
+ structs.
+
+commit 73827e78357ab3f30a21f159ecdfb26dd0ea889b
+Merge: 3cf8627 f69b48f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Dec 19 22:47:02 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+commit f69b48fe24ef94dac44b8123884ca71df675be4b
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Dec 18 18:10:33 2007 -0800
+
+ Unconditionally restore pipe configuration
+
+ This is a partial fix for #13196, which covers both leaving pipes disabled at
+ server exit time and problems with restoring the pipe configuration on certain
+ chipsets. It restores the pipe configuration unconditionally (previously we
+ made sure the PLL was running and we weren't in VGA mode) but also adds some
+ additional PLL settle time to the PLL register write paths.
+
+commit 4757a218d733af12d04674455fc6e1fad48a1cd0
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Dec 18 19:37:46 2007 +0100
+
+ Always set pPriv->buf to NULL after freeing the memory it pointed to.
+
+ Fixes https://bugs.freedesktop.org/show_bug.cgi?id=13108 .
+
+commit 5cbb4110116f6d4187fd27660a78203caa1da46b
+Author: Adam Jackson <ajax@redhat.com>
+Date: Thu Dec 13 15:10:43 2007 -0500
+
+ i830_sdvo_mode_valid: Fix return values to match what we actually check.
+
+commit e03bc385e924222d3d5f3c9a8d65e1ef63b858dc
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Dec 11 13:28:01 2007 -0800
+
+ Add cscope files to .gitignore
+
+commit e720ae4476c3f986f623ce0f0ab9775b8b9b7e05
+Author: Jesse Barnes <jbarnes@jbarnes-mobile.amr.corp.intel.com>
+Date: Mon Dec 10 13:00:14 2007 -0800
+
+ CRT hotplug detection improvements
+
+ Patch from Hong Liu.
+
+ Fixup CRT detection by making sure the pipe is enabled before CRT
+ detection actually occurs. Fixes bugs Hong was seeing on G35 and other
+ machines.
+
+commit d9df93578b74785c08ba860b4c9aa23b0c89c91c
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Dec 10 16:41:24 2007 +1000
+
+ ivch: fails on address mismatch as I seem to get this on my 865 system
+
+commit cd6f83519c69f72f146fea59afbd6a3542da783a
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Dec 10 05:49:58 2007 +0800
+
+ Fix tv quirk for Dell Latitude X1
+
+ which is actually 915GM, reported by
+ Andreas Schildbach <andreas@schildbach.de>
+
+commit 13ec9c8141a9f794258869a04a6bab59dac5eefa
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Sun Dec 9 00:52:13 2007 +0800
+
+ exa: fix rendering issue on some 855GM laptops
+
+ This trys to initialize more 3d states on i830 like mesa
+ code, which fixes exa rendering failure for some 855GM users.
+
+commit e2d9fd6425584119f28768d85c4b7d106ecf8742
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Fri Dec 7 16:30:46 2007 -0800
+
+ Describe output properties in more detail
+
+ Add descriptions for LVDS and TV output properties and also mention the EDID
+ property a new output configuration section.
+
+commit 6f92200db39a790c95c1fac64baf0bd41a70e481
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Dec 5 08:10:17 2007 -0800
+
+ Fix backlight setting save/restore
+
+ We need to save the current backlight value at LVDS init time, as well as when
+ we change the DPMS setting. Also, since 0 is a valid backlight value, don't
+ set the backlight value to maximum at startup if the value happens to be zero.
+
+ These fixes should make the backlight user experience much more consistent and
+ hopefully less frustrating.
+
+commit 4c1fa5235555c9ef3de1eebd006c4e91283362bf
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Dec 4 18:27:24 2007 -0800
+
+ Add BCM_ to backlight control method enums
+
+ Avoids polluting the global namespace with such generic terms.
+
+commit 30d74f1b1f30e751d2c47aa63a4a2043e71467dc
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Dec 4 18:23:44 2007 -0800
+
+ Use "LEGACY" backlight method if backlight control is such
+
+ This may regress the user experience a bit (fewer backlight levels) on machines
+ where both the LBB and native registers work, but it's better that it work for
+ everyone than work extra well for some and not at all for others.
+
+commit 0e554e6dd4da56be24d2f971ff4cd4d585936724
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 4 10:32:45 2007 -0800
+
+ Remove extra have_libpciaccess=no that broke tools build with old servers.
+
+commit 3cf862717688aa679b5e667cd041ddd6f5db0b58
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 29 23:12:16 2007 +0800
+
+ xvmc: add "XvMC" option, default is false.
+
+commit 6da4b7a80cdf730018435fe84485ecdad62bc860
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 29 22:56:13 2007 +0800
+
+ xvmc: move batch buffer init/fini code into generic
+
+commit 75ef3e669dac1259d282dcc8f54b197fc19f22b3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Nov 28 22:13:55 2007 +0800
+
+ Replace ALLOCATE_LOCAL/DEALLOCATE_LOCAL with xalloc/xfree
+
+commit df47b7ba57f3e7dc8bac1898679186d9d48639ac
+Merge: df718a7 7f9ceff
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Nov 27 01:13:43 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+commit 7f9cefffbf44a2d07b51cc13aaf2d54fcd8f2f22
+Author: Alan Hourihane <alanh@tungstengraphics.com>
+Date: Fri Nov 16 15:56:08 2007 +0000
+
+ vendor is CARD8
+
+commit df718a77c854c9110a81c2bc2a32a9aac85850f2
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 16 16:08:06 2007 +0800
+
+ xvmc: add xvmc decoder type string
+
+commit a03a758db0df615fbb44dae1ab6910bfeaeb54f9
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 16 15:49:10 2007 +0800
+
+ xvmc: move some i915 context destroy code to generic function
+
+commit 7bfbcb4dc7806ae7543f230373e67f35ba30668d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 16 15:43:04 2007 +0800
+
+ xvmc: clean batch buffer finish
+
+commit a6e8f4ef0481c66fda4f22fcc4bb0ef9c000f0cd
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 16 13:51:44 2007 +0800
+
+ xvmc: remove i915 drm map type
+
+commit 4a2b0f340357c4ca58dc9586fad1337b83966362
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 15 18:36:54 2007 -0800
+
+ Fix typo in 1920x1080 resolution entry
+
+commit 6c68fcc93917565712b6a9386df54d0204e4ea8f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 16 10:04:46 2007 +0800
+
+ xvmc: more i915 xvmc cleanups
+
+commit 04b60b6d3436fb57163c23acf335364f0ea2f79c
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 15 11:49:53 2007 -0800
+
+ Bump version to 2.2.0
+
+commit 6eecef4fed8a21dfdabef42eb69fd150b96167b2
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 15 10:10:59 2007 -0800
+
+ Adjust default TV out paramaters
+
+ According to several users, a default brightness of 0 results in much better TV
+ output. Improved control of these parameters will be provided by Randr1.3,
+ which will standardize several output properties across various chips.
+
+commit 7552d80e367fe38bbc594fe94abd649917fe54d5
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 15 10:07:34 2007 -0800
+
+ Add 1920x1080 mode to TV out
+
+ Allows users to use 1080p modes on TV out, see bug #13034.
+
+commit e56c166ceb8c1ceddd5020e8de2d0b9d51f535a4
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 18:34:18 2007 +0800
+
+ remove unnecessary i830_reg.h includes
+
+ i830_reg.h only contains 3d engine cmds for 8XX chips.
+
+commit 6f3de19159cd7a2d73ed212add909edb3aedce9c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 18:33:27 2007 +0800
+
+ Move fb compression reg definition into i810_reg.h
+
+ where we put MMIO control reg in, and shared with intel_reg_dump
+ program.
+
+commit 1ff97991a4954d508cc260dda82b7678010d13c9
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 17:01:31 2007 +0800
+
+ xvmc: intel_xvmc.c cleanups
+
+commit 1cfdf192882b856bfc93b735cfb9cb813cac3fdb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 16:38:21 2007 +0800
+
+ xvmc: remove unused SAREAPTR macro
+
+commit d9ea2fbdcce3c7c91428846eff43b65ac340f38d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 15:25:35 2007 +0800
+
+ xvmc: i915 rename files
+
+commit 06c0579df8d45f7f04b96956353d5f86cf59148f
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 15:01:56 2007 +0800
+
+ xvmc: some code clean up
+
+commit 4983e3401390654098dbf99dcfb45bab060b068c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 13:56:24 2007 +0800
+
+ xvmc: move locking code into generic place
+
+commit bcd656c8dfe7309a5cf02ce1da8bc747ccd6e21c
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 11:18:38 2007 +0800
+
+ xvmc: oops, should first map batch buffer before init
+
+commit 0464af581b0fcfc4d1c7fec8160d812262086177
+Merge: 2256519 e56c166
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 11:05:44 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+commit 22565198b360826ba10e7ca05d272c419054dc08
+Merge: 619044b e64f492
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 18:53:22 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+commit e64f4929690a57701241334fbca17e95b39ba3d4
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Wed Nov 14 16:44:34 2007 -0800
+
+ Backlight fixes
+
+ Open the "actual_brightness" file as read only, since we only read from it.
+ Also set an initial backlight_duty_cycle at init time so we don't set the
+ brightness to 0 at startup.
+
+commit 53e3693ef13f31f3fc33bcff7286ab2b03b2d430
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Nov 14 16:24:56 2007 -0800
+
+ Disable FBC by default on 965GM
+
+ Several people have reported that they see frequent FBC related display
+ corruption on 965GM, so disable it for now. Users wanting to enable it can use
+ the driver option "Framebuffercompression" to override the default.
+
+commit b2726899bc6ebd108aa4a5dd66fe1d881bb778b3
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Nov 14 15:49:41 2007 -0800
+
+ Add more FBC regs
+
+ Needed for the new debug code
+
+commit b7bc694c6b98dac17763426d905a22d3ae17a018
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Nov 14 15:46:57 2007 -0800
+
+ Fix kernel get_brightness function
+
+ We need to look at "actual_brightness" rather than "brightness". The former
+ contains the brightness value the kernel driver has actually set, while the
+ latter is merely what the user requested.
+
+commit 9ee96ed02aacd953ab58288fddf0fa60f60b668e
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Nov 14 15:44:56 2007 -0800
+
+ Correct FBC debug message
+
+ To be consistent, it should say 'plane' rather than 'pipe'.
+
+commit 675b9471d84059496ca41d427a4f95d419f82be9
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Nov 14 15:17:05 2007 -0800
+
+ Add FBC registers to register dump output
+
+ Just for completeness.
+
+commit a2a0821e74a61f53cc7f0c41ce629644ad712114
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Wed Nov 14 11:30:20 2007 -0800
+
+ Don't stop ring before restoring hw state
+
+ Some of the hw state restoration callbacks may want to use the ring for various
+ things like stopping video playback, so leave the ring enabled until we get
+ back from RestoreHWState. Also rename the functions so that their purpose is
+ clearer and remove a couple of redundant lines.
+
+commit 619044b242d4abf605b42cfff538b63f445fe709
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 02:23:07 2007 +0800
+
+ xvmc: move batch buffer init/fini to intel_batchbuffer.c
+
+commit ae805ac379ccfdae9ee272896665e73f5bc7d2cf
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 15 02:13:07 2007 +0800
+
+ xvmc: take out batch buffer handling code
+
+commit ad3bc0158d37e98fcbbe6a8e31413c142a260424
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Nov 14 22:46:46 2007 +0800
+
+ Don't enable fbc with XAA or tiling is off.
+
+ This slightly reworks my last fbc patch. We don't
+ support tiled front buffer with XAA now, so also
+ disable fbc on it. If tiled alloc failed, disable
+ fbc too.
+
+commit 26194e19e1c80615697016e25640d4c8c244353f
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Tue Nov 13 22:26:40 2007 -0800
+
+ Review PLL spreadsheet and update register ranges.
+
+ The PLL spreadsheet makes the precise register ranges allowed for each mode
+ quite clear, and shows a few inaccuracies in the b-spec. In particular, the
+ N register value may range from 1 to 6 instead of 3 to 8. This should close
+ the gap we've seen in the reachable frequencies.
+
+commit 581509321e51becb8ee6ddcfaa15a2a713c9ef8e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Nov 14 22:16:04 2007 +0800
+
+ Remove one redundant line.
+
+commit 8cea3c8cfa86600b5f2c3e1f21c19d4b2a320fd4
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Nov 14 22:13:30 2007 +0800
+
+ Don't setup fb compression if fb is not tiling
+
+commit 539b669d6e23833a917a9b0d3a355d4283e0b76a
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Tue Nov 13 17:59:54 2007 -0800
+
+ Remove harmless error message
+
+ This really isn't an error in general. If vblank pipe setup really fails for
+ some reason, it'll be obvious enough when the user tries to use vblank events
+ for something.
+
+ Patch from Hong Liu.
+
+commit e8db8584ae4860aa991c916126335b287a972d5b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Nov 14 00:11:20 2007 +0800
+
+ xvmc: attempt to move batch buffer code out of i915 private
+
+commit 11c0e0dbef42f1ae77a77d534870d3e9821fb017
+Merge: c838f72 43fbc54
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Nov 13 22:44:06 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+commit 43fbc547786cf26514f95bce79fab58a66c291bf
+Author: Jesse Barnes <jbarnes@jbarnes-mobile.amr.corp.intel.com>
+Date: Mon Nov 12 12:23:41 2007 -0800
+
+ Improve backlight control
+
+ This commit fixes backlight support for several platforms.
+
+ Except on recent machines supporting the IGD OpRegion specification,
+ backlight control is rather platform specific. In some cases, we can
+ program the native backlight control regsiters directly without any
+ trouble. On others, we need to use the legacy backlight control
+ register. On still others, we need a combination of the two. And on
+ some platforms, none of the above will work, so we go through the
+ kernel backlight interface, which provides a platform specific driver
+ for backlight control.
+
+commit 10988c5e6ec0f3c40d56bbf209b7976627cca706
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Mon Nov 12 09:19:22 2007 -0800
+
+ Fix typo in PLL enable check
+
+ Check against DPLL_A instead of DPLL_B before writing PIPEACONF.
+
+ Thanks to Colin Guthrie for his sharp eyes.
+
+commit ab2055ebb20aa6de121fa377e488ce91913035ae
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Fri Nov 9 13:55:46 2007 -0800
+
+ Add 'ret' variable to i830_allocator_init
+
+ Needed in the XF86DRI_MM case.
+
+commit 24280edbdf54e9559b26ea27c1b005eea73f51bc
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Fri Nov 9 13:53:58 2007 -0800
+
+ Fixup warnings
+
+ Remove unused 'ret' variable, move pI830 under #ifdef XF86DRI_MM in
+ i830_allocate_memory.
+
+commit 4fe507957bf826d81a71cd63af17c5547d1023a1
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Fri Nov 9 13:51:11 2007 -0800
+
+ Remove unused 'palette_enable' variable
+
+commit 62404a9c9c0d98efb69ac96209dea17331e0489c
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Fri Nov 9 07:55:01 2007 -0800
+
+ Update man page to reflect EXA by default
+
+commit c838f7297f675ea9d82678ed37715955cb0a8a78
+Merge: a9449ff 6f53568
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 9 19:37:07 2007 +0800
+
+ Merge branch 'xvmc' of git+ssh://zhen@people.freedesktop.org/~zhen/xf86-video-intel into xvmc
+
+commit a9449fff4be8e6b3cc82914376420e3a66b960f5
+Merge: a470f6b 177924e
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Nov 9 19:36:25 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+commit 177924e879564b7e9e70fd607141978bfd053fff
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Thu Nov 8 18:16:48 2007 -0800
+
+ Bump driver version to 2.1.99 in preparation for 2.2 release
+
+commit cb4e5796f0537ea5e0e646d473930c7b826c85d8
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Thu Nov 8 18:13:47 2007 -0800
+
+ Default to EXA
+
+ If EXA is compiled into the driver, default to using it for acceleration.
+ Hopefully we can remove XAA entirely one day.
+
+commit 43a59ab26b09fcc24de1ed7bd770bb622f899ceb
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 8 16:52:41 2007 -0800
+
+ Clear current video crtc on DPMS off
+
+ When calling the video DPMS off function, make sure we zero out the current
+ crtc so that it will be properly re-set up next time video is turned on.
+
+ Fix from Peter Clifton with changes by Keith Packard.
+
+commit e784e152a8e84b6e447b55a5c7019e7b47e17621
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 8 16:37:53 2007 -0800
+
+ Fix overlay destination clamping
+
+ The overlay width & height scaling clamp check was reversed. Fix that and
+ update the comment.
+
+commit b8770f710729d616b3ac72544aa522161a78f819
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 8 16:19:01 2007 -0800
+
+ Setup 3D state at EnterVT time
+
+ In the absence of full suspend/resume support in the kernel, we have to
+ save/restore state in Enter/LeaveVT. For 8xx chips, 3D state may be lost
+ during suspend/resume, so re-emit the basic setup at EnterVT time.
+
+ Patch from Peter Clifton.
+
+commit 5f92b4c2db9712496b829ee239468e3d14e27d2f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 8 13:31:51 2007 -0800
+
+ Bug #12059: Add ch7019 to the list of supported devices for ch7017.
+
+ While I'm here, fix the chip description to be LVDS instead of TMDS in i2c
+ device.
+
+commit eecd3ccedee6c4acf101591f7e60673660379e62
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Thu Nov 8 09:31:08 2007 -0800
+
+ Check DPLL status before writing PIPEnCONF regs
+
+ If the DPLL isn't enabled or is in VGA mode, writing the PIPEnCONF registers
+ may cause a hang or crash. So ensure the DPLL is in the proper state before
+ writing them.
+
+ Another excellent fix from Peter Clifton.
+
+commit b434c1a437c407de88396b219560649c2dae82b2
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Thu Nov 1 12:06:07 2007 -0700
+
+ Framebuffer compression fix: front buffer may not be at fence 0
+
+ Fix a long standing bug in the framebuffer compression code (thanks to
+ Pierre Willenbrock!) that prevented FBC from working correctly if the front
+ buffer was anywhere but fence register 0.
+
+commit 50d3693a6862028e50bc5ba8c788e7ea573c3eb8
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Nov 1 22:22:27 2007 +0800
+
+ Fix allocation reset for really not free BO allocator
+
+commit ecd995d533d28b622afc71a20504d47c33ff5b8d
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Tue Oct 30 18:20:49 2007 -0700
+
+ Fix builds without DRI
+
+commit 7c88b58a93fce9fda59b6344acb87af16336e287
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Tue Oct 30 18:20:15 2007 -0700
+
+ Clear compiler error: "void functions cannot return values"
+
+commit a470f6b2ca291e305979dd9223885a50dc0b334b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Oct 26 22:40:47 2007 +0800
+
+ try to move some fields to xvmc driver structure
+
+ Still a lot of things to move include batch buffer, lock, context,
+ surface resource handling, etc.
+
+commit 6f53568cd2aeeec6bd8c1f1d9f9c5ecadc5c62f9
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Oct 26 14:58:43 2007 +0800
+
+ Fix DRI context creation for XvMC
+
+commit d2c78f82c20f33fc9c22cab8a7ca161e57a34bf8
+Author: Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
+Date: Wed Oct 24 19:34:12 2007 +0200
+
+ Adapt to DRM Lockfree and setStatus changes.
+
+commit 78aaec0ffc711742bf8ad77757ed8c15cc3f7a9f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 24 11:50:54 2007 -0700
+
+ Fix typo in my hand-application of rglowery's patch.
+
+commit 021265fbec9fd4ee31bdc9767c0c0453479ea22c
+Author: Rob <rglowery@exemail.com.au>
+Date: Wed Oct 24 11:06:53 2007 -0700
+
+ Fix a crash in TV mode handling by initializing the prev field of modes.
+
+commit ce9802edd25255f6c9c11e512b2ef905384b914d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 24 00:31:53 2007 +0800
+
+ fix xvmc return values
+
+ Use values defined by xvmc lib spec
+
+commit 9c84543eb0fde4643eb7529eb6b08eacf57c12d0
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Oct 23 22:16:55 2007 +0800
+
+ add missing license header for new files
+
+commit 87345e820d20f1a98216c52e156c2e18c15ffa44
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Mon Oct 22 14:22:37 2007 -0700
+
+ intel_reg_dumper - dump VGA AR registers too
+
+ Add a VGA AR dumping function so we can debug text mode problems too.
+
+commit 90e4eafdf59edd966ed626107c3909b24737da8d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Oct 22 17:09:15 2007 +0800
+
+ revert xvmc memory allocation hacks
+
+commit 167c56bcf82f0a6d72151b202e6d56f6e0d627f6
+Merge: fc9368c 78e251d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Oct 23 00:12:22 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+commit fc9368ce7dacd52ef222559d20188ddcf2a85df5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Oct 23 00:09:06 2007 +0800
+
+ split xvmc user lib chipset drivers
+
+commit 78e251db671e21bc859c9b505d391b70babee2dc
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 19 15:04:10 2007 -0700
+
+ In the clock graph, draw the VCO as erasures in the lines representing clocks.
+
+ This shows one of the reasons for the gaps: with the other settings, the VCO
+ is too low inside the gap. However, it also points out another issue: we
+ aren't using the high end of the VCO range due to some other limits being hit.
+
+commit 9f9b888525b274036d301d6e06351583d0415f9e
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 18 11:25:24 2007 -0700
+
+ Warn in the log if we choose a PLL clock that's way out of line.
+
+commit 1f8bf110394cc1df66aae9acf5c818145ae19b52
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 18 11:17:38 2007 -0700
+
+ Add some nickle scripts for looking at PLL issues.
+
+ While here, move similar nickle scripts under src/scripts/
+
+commit 79636b8c776ae024518103c9fa137c8498c21d48
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 17 17:10:24 2007 -0700
+
+ Bump pciaccess version requirement for new API usage.
+
+commit c824c45e72908b5b3fa832fec91c7b47f305180c
+Author: Dave Airlie <airlied@optimus.(none)>
+Date: Wed Oct 17 16:35:29 2007 +1000
+
+ intel: make block handler hook happen no matter what video is in use
+
+ This shouldn't make a difference now, but for upcoming EXA/batch changes it
+ will be more useful
+
+commit aa88d23e615e7f154cf850927a0a7bb9fbb0d2f9
+Author: Rob <rglowery@exemail.com.au>
+Date: Wed Oct 17 09:19:19 2007 +0800
+
+ AOpen 965GM mini pc has no LVDS
+
+commit 38900f55e2b50ea383f78adb016e3a02c3bd17ad
+Author: Kyle McMartin <kyle@freedesktop.org>
+Date: Tue Oct 16 16:38:28 2007 -0400
+
+ toshiba satellite u300 has no tv out
+
+commit 74ac5de14ebb77aeb39d698e9e8d188c9d9abd76
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Oct 16 15:08:26 2007 +0200
+
+ Adapt to libdrm buffer object API changes.
+
+commit d66e924680a3504aa1feb9c228145a95d1a16b1e
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 15 11:31:51 2007 -0700
+
+ In update_front_offset(), set pScrn->fbOffset even at EnterVT during init.
+
+ Failure to do so led to the memset() at EnterVT being done to an invalid
+ offset.
+
+commit cc892d1ba1d87d08bdd04f857efc6b8f64620018
+Merge: b52ce0b fd97edb
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Oct 15 22:09:14 2007 +0800
+
+ Merge branch 'xvmc' of git+ssh://zhen@people.freedesktop.org/~zhen/xf86-video-intel into xvmc
+
+commit c94cdfd6ddbc580523737f596e97b96a7ce100b9
+Author: Jesse Barnes <jbarnes@jbarnes-mobile.amr.corp.intel.com>
+Date: Sat Oct 13 15:57:45 2007 -0700
+
+ Fix palette save/restore
+
+ When restoring the palette, we weren't checking to make sure the
+ associated pipe was enabled before writing the registers. In some
+ configurations, this led to a driver crash. Add new routines to handle
+ palette save/restore and verify that the pipes are on before we touch
+ the registers (could easily be changed to enable/disable the pipes
+ around the save/restore as well).
+
+commit e04333a6352040bc883655d606923c912d005981
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 12 12:42:45 2007 -0700
+
+ Fix failure in tiling setup on non-power-of-two allocations on pre-965.
+
+commit a1612b7728d4153499fe86b6713a13c8702cc7d9
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 12 12:42:06 2007 -0700
+
+ Use mprotect on unbound AGP memory to attempt to catch use while unbound.
+
+ This doesn't help with the most common use-while-unbound cases, which are
+ from the hardware side.
+
+commit 3af442ba52550a9d183e215d49cc12dac0cb9e4b
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 11 11:56:06 2007 -0700
+
+ Don't double-free the memory manager allocation.
+
+commit 6c485ff5bd25e9aa6a3c1eb669843e6b969d94df
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 15:52:56 2007 -0700
+
+ Update memory manager sizing for the current set of LIFETIME_FIXED bufffers.
+
+commit d47cf148776d74f9035863b23eefdc2b5893af08
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 15:45:51 2007 -0700
+
+ Move tiling fence register setup to bind time instead of allocate time.
+
+ This allows us to allocate tiled buffers in buffer objects. In the process
+ I removed the fence division that we had for tiled buffers on pre-965. If we
+ resurrect that code, it should probably be managed by just dividing all the
+ objects in roughly half and fencing those halves (to reduce the alignment
+ requirement), instead of using giant fences until we run out of space and then
+ trying to deal with scarce space on the last (or not) buffer. Halving
+ our tiled objects would use 6/8 of our fence registers on that hardware.
+
+commit a6dc81a0864f9ab2f6fc1aa31002c0191f674ceb
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 12:37:19 2007 -0700
+
+ Allow front/back/depth to move over the lifetime of the server.
+
+commit 132dce7565feeea1055899f8c1627766fe84c88c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 12:12:06 2007 -0700
+
+ Delay SAREA and mapping setup until EnterVT when using the memory manager.
+
+ Otherwise, we would use uninitialized offsets in the early setup.
+
+commit 4ca3550fb7d488741f8dc1ba3c8722393277c3b8
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 4 17:02:15 2007 -0700
+
+ Rework DRI buffer mappings and sarea setup to allow for moving buffers.
+
+ While this has been a desired feature for some time, to allow for reallocation
+ of the front buffer, it was made more necessary by the desire to avoid
+ requiring a NO_MOVE buffer type in TTM because buffer objects may not be left
+ pinned over VT switch. This is a step towards making those buffers
+ movable and resizable.
+
+commit f393a12d21eed668cf4771f022beded9a4c547c7
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 4 13:03:14 2007 -0700
+
+ Move drmMMLock to after we have unbound our (pinned) buffers.
+
+ There are still issues due to the fact that we're allocating
+ NEED_LIFETIME_FIXED memory as buffer objects, which we refuse to unpin because
+ we have no way of pinning it back in the same location.
+
+commit 8fc4e3078210f726c7c375faa2f2fd8d05017c09
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 11:51:55 2007 -0700
+
+ Refuse to allocate LIFETIME_FIXED objects in buffer objects.
+
+ We can't guarantee the offset will stay the same using the current DRM
+ interface, but the correct solution is fixing our code to allow these objects
+ to move. Breaks TTM mode of the DRI driver for now.
+
+commit 0de747f7d219a56434dad49a8a6d1d9d4c251ca7
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 11 10:36:01 2007 -0700
+
+ In i830_allocate_memory_bo, bind if we control the VT, not on lifetime-fixed.
+
+commit 0040bb95445e800af80ca9fa1b92f5db33f1b4ac
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 10 16:48:12 2007 -0700
+
+ Fix potential use-after-free in XV overlay code on video stop.
+
+commit 56ae767180da4a8bd4b7a4c35b92e019ab67d753
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Oct 11 10:09:29 2007 +0800
+
+ Revert "Fix G33 GTT stolen mem range"
+
+ This reverts commit 2a8592f2ebcba86b1127aa889155d58a3dc186ca.
+
+ This causes compat issue between ddx and kernel apggart version.
+ Revert it as it shouldn't hurt normal people's default GTT size,
+ but if you change it to 1MB in bios, it's supposed to be broken now.
+
+commit 5faee02e97b7543b41bb1f8e3751558c48802833
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Oct 10 13:55:30 2007 +0800
+
+ EXA: fix tiled dest rendering on i8XX chips
+
+commit 5bbe9f09fda1238da04e6b584813d40fc646f49d
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Wed Oct 3 00:18:25 2007 -0700
+
+ Include xf86mm.h if using XF86DRI_MM
+
+ This header file doesn't appear to be getting automatically included for
+ some reason.
+
+commit 41dacf97ec1d4ba6f54057f4fcc7bb76033a454e
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Wed Oct 3 00:17:41 2007 -0700
+
+ Quirk for Samsung Q35 which has no TV output.
+
+commit b52ce0bd178c268d20334e2be8fad46037e47499
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Oct 8 22:56:44 2007 +0800
+
+ use field name to initialize i915 xvmc driver
+
+commit e0fb228401b10ea4281eee48497bf1d584999705
+Merge: 84d7b2b 9e770bf
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Oct 8 22:45:11 2007 +0800
+
+ Merge branch 'master' into xvmc
+
+ Conflicts:
+
+ src/i830_driver.c
+
+commit fd97edb62463e50a1860290d54684a68d5490bdc
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Oct 8 16:13:26 2007 +0800
+
+ move some definition out of i915 specific header
+
+commit 3a2b5222341b37322b788e329c2b9006dc14ecfd
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Oct 8 15:46:11 2007 +0800
+
+ Temp work around ttm allocation for xvmc, which should be fixed later.
+
+commit 9e770bf69edaa8944048049e11266dbe1ef145e5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 4 14:31:37 2007 -0700
+
+ Replace setting of LIFETIME_FIXED on cursors with just updating the offsets.
+
+commit c9d6e90c2523096c45d330552f471e6bf1752704
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 4 14:27:07 2007 -0700
+
+ Don't set overlay registers LIFETIME_FIXED. It always uses the current offset.
+
+commit 1cc6bec4628a4ca04a68919a84148a1e6312072f
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 4 14:23:48 2007 -0700
+
+ Revert setting of exa_965_state as LIFETIME_FIXED.
+
+ The current offset is used every time in render setup.
+
+commit dfa22df8ce7713b491c4766ce6ce652db91b5f90
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 12:53:07 2007 -0700
+
+ Don't leak buffer object allocations in i830_reset_allocations().
+
+commit 7db9d706a1bc9da7afc4823cee92b23e96ae55b8
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 12:40:48 2007 -0700
+
+ Warning cleanup.
+
+commit bf33c4e2d91172efd08690fadda7b3743dd3de62
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Oct 5 12:40:37 2007 -0700
+
+ Fix formatting of error message.
+
+commit 04e936935f0b0045600241424f1d04a6721a2432
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 1 17:29:35 2007 -0700
+
+ Bring the CH7017 driver closer to spec.
+
+ This is also closer to what my hardware is programmed with, except for some
+ very confusing off-by-one bugs in an unexpected direction.
+
+commit 263d48ad93a0fb7100729d0c6e0443797c20c80a
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 1 16:23:30 2007 -0700
+
+ Fix probing of the sample CH7017 device I found by allowing GPIO overrides.
+
+ It may be that the LVDS chips need to be DVOA and GPIOB only on mobility
+ devices with them, and DVOC/GPIOE on non-mobility like this 845. But until
+ more examples are found, just make this one device probe.
+
+commit 219354af212c7b68c20df689692c55331e36a705
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 1 16:09:13 2007 -0700
+
+ Restore building of pciaccess-based tools even if the server doesn't use it.
+
+commit 1b83e5e589105d05c1b78032fa47eecee478cb99
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 1 14:32:28 2007 -0700
+
+ Remove more DVO probing noise.
+
+commit 29d3188ee9676f697f6fcb859c7f680f5df30318
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 1 13:45:09 2007 -0700
+
+ Suppress I2C failure error messages during DVO device detection.
+
+ Otherwise, errors would be printed for every chip probed which wasn't present
+ on the system.
+
+commit 6dd8228a386334d05836353672aae9f8c456e435
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 1 12:07:22 2007 -0700
+
+ Enable CH7017/7018 DVO driver by default.
+
+ On hardware containing one of these chips (generally single pipe with an LVDS
+ connected), it's probably better to try to enable it and fail in some cases
+ than to not probe the output at all.
+
+commit 994ee6721d9f1650ad37e21198b86848352b73af
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 1 12:01:16 2007 -0700
+
+ Disable TV/VGA output on the CH7017/7018 devices.
+
+ We don't support those outputs on this chip yet, so turn them off if the BIOS
+ had set them on.
+
+commit 0e5574e842eeaac75271ccd50027d3e54c57722d
+Author: Regis Prevot <regis@myrix.net>
+Date: Sat Sep 29 16:21:08 2007 +0200
+
+ Ignore detection of TV output on Panasonic CF-Y7
+
+commit 84d7b2b955107264b67526a04028a8b79d8804e3
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Sat Sep 29 19:41:15 2007 +0800
+
+ rename xvmc init function names
+
+commit 1845e7c6e9caf7a9ad7f46a8fbfa321ddec69a1e
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Sep 28 10:12:11 2007 -0700
+
+ Go back to using old drm_i915_flip_t field name
+
+ This field shouldn't have been renamed in the first place. Go back to using
+ the old name so that the tree is backward and forward compatible again.
+
+commit f3d92ab474de11babe507b0e3c15aca146b6cb66
+Author: Kyle McMartin <kyle@freedesktop.org>
+Date: Fri Sep 28 10:17:55 2007 -0400
+
+ Dell XPS 1330 has no TV out
+
+commit bbf69c7446aa9748dacecccfe0b63d803f865b00
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Thu Sep 27 17:37:19 2007 +0800
+
+ Pin cursor, overlay(no physical) and exa state buffers
+
+ And cursor mem counting for dri mem manager is not relate
+ to overlay.
+
+commit 64188246bb25e95a916ebb8a50a09298e56d91d9
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 26 15:48:19 2007 +0800
+
+ clean up old i915 xvmc function declare
+
+commit 320b7f08f457455f1d16b4c36d149bdc3f6ceead
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 26 15:02:33 2007 +0800
+
+ Revert to origin xvmc setup steps
+
+ We have to grab xvadaptor's PutImage earlier than
+ xv init, otherwise no chance to do that..
+
+commit 1e0ff38f44e3b5a8b4a5d509c7faa266270d522c
+Author: Hong Liu <hong.liu@intel.com>
+Date: Thu Sep 20 11:28:52 2007 +0800
+
+ Fix pixmap offset
+
+ Use consistent interface for counting pixmap offset.
+
+commit 85e4bd109464a4d90856e17bc960872eeaebc2ad
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 26 14:32:46 2007 +0800
+
+ Log xvmc driver name
+
+commit e58b76a24a29e0a502650807de81e650e5dc184d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 26 14:40:04 2007 +0800
+
+ clean up err report
+
+ Still need to clean up return value for XvMC API
+
+commit b10a9668dc50d10489b2ae531d89c8ab7c408170
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 26 14:01:57 2007 +0800
+
+ fix i915 xvmc devPrivate reference
+
+commit f12eaaf385e7a0b85524588a5d865d1cc3f1a0cf
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 26 13:49:55 2007 +0800
+
+ comment out i965_xvmc_driver for now
+
+commit 513e8a2f8abde1b11b8058e94a650796fd51779b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 26 13:45:42 2007 +0800
+
+ Create xvmc driver interface
+
+ convert i915 to new xvmc driver interface
+
+commit ca67fa767dc762dac369e84b27a7ef15673d527c
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Sep 24 11:12:22 2007 -0700
+
+ Remove logic for supporting i915tex_dri.so vs. i915_dri.so.
+
+ There can be only one.
+
+commit 130f79613bfe6a8cfa7f431c8cce06cbb93cc91a
+Merge: b73235f 1260316
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 21 17:14:44 2007 -0700
+
+ Merge branch 'buffer-objects'
+
+ This branch changes i830_memory.c's allocator to use TTM when available to
+ allocate memory, which also allows TTM to control almost the entire aperture.
+ As a result, our front/back/depth buffers are created as real buffer objects,
+ which may be used by the DRI driver instead of the fake buffer type in TTM.
+ The updated DRM with bo_set_pin ioctl is required, to allow us to pin and
+ unpin our buffers as needed.
+
+commit 126031655c3c1db9881ad17d712461533eb59632
+Merge: c343835 bda3c69
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 20 08:57:58 2007 -0700
+
+ Merge remote branch 'origin/master' into buffer-objects
+
+ Conflicts:
+
+ src/i830.h
+ src/i830_driver.c
+
+commit b73235f40497cfb10792ba191d4f6eac3a5df009
+Author: Hong Liu <hong.liu@intel.com>
+Date: Thu Sep 20 11:28:52 2007 +0800
+
+ Fix pixmap offset
+
+ Use consistent interface for counting pixmap offset.
+
+commit 798448e4641acf241b7cbae0d6c243ae383da9f4
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 19 13:29:31 2007 +0800
+
+ Add media state definition on i965
+
+ This adds VFE state and interface descriptor struct define.
+
+commit 36b81ba20d20e7b235cb701c5135cbf3f3eedb12
+Merge: 02ad9ce bda3c69
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 19 11:44:41 2007 +0800
+
+ Merge branch 'master' into xvmc-i915
+
+ Conflicts:
+
+ src/i830.h
+ src/i830_memory.c
+
+commit bda3c69a7a044869ea63514b97f8aa9260d6b5a7
+Author: Dmitry Babrovich <dmitry.babrovich@densitrongaming.com>
+Date: Tue Sep 18 09:34:34 2007 -0700
+
+ Bug #12457: Let the ch7xxx driver probe the 7301
+
+ Looking at the 7304, this chipset likely requires slightly different
+ programming. However, this change allows for at least some functionality.
+
+commit 445a59d262b93bd9d2c16cee9934ce77a103776b
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Wed Sep 12 09:32:41 2007 -0700
+
+ Remove unused plane->pipe mappings from SAREA private
+
+ Turns out we can get away without this, so remove it, fix a crash, and only
+ swap planes/pipes if the DRM can support it.
+
+commit d02336290bea30de3c390b8121046c38fd6b0f62
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Tue Sep 11 04:28:14 2007 -0700
+
+ Fix plane/pipe mapping compat code
+
+ Move plane->pipe mapping adjustment to ScreenInit so we can check
+ against the DRM driver version accurately.
+
+commit d9f2b3c0d2d08a4b7fad865dab7deb6224b57999
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Mon Sep 10 23:49:34 2007 -0700
+
+ Fix crash in ScreenInit
+
+ Use pScreen directly when getting at the SAREA private, since
+ pScrn->pScreen may not be initialized yet.
+
+commit 4c7542ef43a5267e470ca1608a2ae57abf9783ec
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Mon Sep 10 23:30:50 2007 -0700
+
+ Only swap planes and pipes if DRM supports it
+
+ We want to associate plane A with pipe B on pre-965 mobile chips, since that's
+ the only way to get framebuffer compression on the builtin LVDS on those
+ platforms. However, if we do this swapping and DRM isn't aware of it, we may
+ end up requesting vblank events for the wrong pipe, or setting up SAREA buffer
+ swap state incorrectly.
+
+ This mod checks whether DRM supports the new plane->pipe swapping behavior, and
+ only enables the swapping if so. This should fix the bugs Lukas found and
+ debugged. Reviewed by Michel Danzer.
+
+commit 286f5df0b62f571cbb4dbf120679d3af029b8775
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Thu Sep 6 14:31:55 2007 -0700
+
+ Switch to pci_device_map_range/pci_device_unmap_range APIs.
+
+ With the libpciaccess change that added these new APIs, use them
+ for all mapping.
+
+commit 2a8592f2ebcba86b1127aa889155d58a3dc186ca
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Sep 5 14:52:56 2007 +0800
+
+ Fix G33 GTT stolen mem range
+
+ G33 GTT table lives in seperate stolen mem with
+ graphics data stolen mem.
+
+commit 7fd9a98178cdebda4213796fdc452a8a265a1197
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Tue Aug 28 16:00:01 2007 -0700
+
+ Don't set supported TV formats until after RandR initialized.
+
+ The TV format property cannot be configured until RandR has been
+ initialized.
+
+commit c6e637cd683dc60567b3b4f69b7f2b4c338c89ea
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Tue Aug 28 12:17:15 2007 -0700
+
+ Limit TV formats to those supported by current connection
+
+commit ddd6053987b9ca9bd3722ddbdfd412a3d8d252cf
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Tue Aug 28 12:30:46 2007 -0700
+
+ Add register defines for hw binning
+
+commit 3fbbd0afde49c53a5a8661f75c8c8c4be3020c30
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Aug 28 17:48:20 2007 +0200
+
+ Fix build against pre-pci-rework xserver.
+
+commit 0fdbf64b34e4114c2b89d696b268b9c7464f1efd
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Aug 28 21:56:21 2007 +0800
+
+ Fix i915 a8 color buffer blending
+
+ From spec, i915 engine uses green channel when reading from 8bit
+ color buffer for blending, and also writes back green channel.
+ Fix blend factor in dest alpha case by using dest color instead.
+ Now rendercheck can pass a8 tests.
+
+commit 3411eb0dbae470b910af3116a4ab960c821b9b20
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 23:09:01 2007 -0700
+
+ i830_driver.c changes for libpciaccess.
+
+ Change to use libpciaccess APIs, including computing and using BAR indices
+ for various mapping activities.
+
+commit 387fed6daa7426e4a85d30ba7cf608b5f41d24bb
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 23:06:57 2007 -0700
+
+ i810_driver.c changes for libpciaccess.
+
+ This includes new probe code (intel_pci_probe) and changes for i810 to
+ use BAR indices to refer to suitable portions of the device mappings.
+
+commit 2c794192052ca55c3263e27e13d16aafe8caa92c
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 22:46:19 2007 -0700
+
+ Mechanical API conversions for libpciaccess.
+
+ Uncomplicated API transistions for libpciaccess usage:
+
+ Legacy xf86 API libpciaccess API
+ --------------- ----------------
+ xf86ReadPciBIOS pci_device_read_rom
+ pciReadWord pci_device_cfg_read_u16
+ pciWriteByte pci_device_cfg_write_u8
+
+ And, more use of the API-independent DEVICE_ID/SUBVENDOR_ID/SUBSYS_ID macros
+ to pull PCI identification data from the underlying structure.
+
+commit 70e8e5957200401474967a467663ae049e9080f2
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 22:40:25 2007 -0700
+
+ Change DRI interface to fill in PCI data from new libpciaccess structure.
+
+ The DRI interface requires bus identification for each DRI object; pull that
+ data from the libpciaccess structures as necessary.
+
+commit 5516cc781bd488c936af225123812a61ed5874b8
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 22:37:38 2007 -0700
+
+ Add libpciaccess declarations to I810Rec and I830Rec.
+
+ Using libpciaccess requires a different type for PciInfo (struct pci_device
+ instead of pciVideoPtr) and it requires knowing which BAR each memory region
+ needs to be mapped from. Add these definitions to the driver private record
+ along with the includes necessary to use libpciaccess.
+
+commit daada59b5f8c2294b524a4b5920dc6b1c213642f
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 22:32:39 2007 -0700
+
+ Change IS_Ixxx tests to work with or without libpciaccess.
+
+ libpciaccess has a new structure that holds the PCI identifier data; borrow
+ macros from the mga driver to work with either the old xf86-specific
+ structure or the new libpciaccess structure.
+
+commit 3d3bf493a3973f4067433d27a4d7ddfecaa18f1c
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 22:27:34 2007 -0700
+
+ Intel driver configuration (only) changes for X server libpciaccess usage.
+
+ Detect whether the target X server uses libpciaccess, using it in the driver
+ compilation as necessary. This change means that utilities that used to use
+ libpciaccess will not do so unless the driver itself uses libpciaccess. Yes,
+ that could be fixed, but it doesn't seem that important.
+
+ This patch does not include any code changes necessary to actually have the
+ driver build against an X server using libpciaccess.
+
+commit 5faf9cc6afe1c30fa88bc6446088a6fa47fc5d0b
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sun Aug 26 09:34:06 2007 -0700
+
+ Sort quirk table, add Dell Latitude X1
+
+commit a9e1d42a47cef79d8bbde2afd89d26aed964e344
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sat Aug 25 12:54:11 2007 -0700
+
+ Lenovo 201a is x60s, not x61s
+
+commit ffc2907f7f2eb039004eff0014c5563a01463fb0
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Sat Aug 25 12:31:21 2007 -0700
+
+ Thinkpad X61s has no TV out
+
+commit 0c20fbabd18c19b2753cb60280f89e240ce5645f
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Fri Aug 17 22:21:47 2007 -0700
+
+ Make sure XV_PIPE is used whenever possible.
+
+ The code was not consistently using XV_PIPE when the desired crtc contained
+ any portion of the video output.
+
+commit e443f83dd6f110156743c93f7d793cdddb8195a1
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 17 18:13:49 2007 -0700
+
+ Tune acceleration architecture allocator sizes down.
+
+commit bd874b11bbfe582aebd3115771f90807e75afc31
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 17 17:49:21 2007 -0700
+
+ Replace AA allocator usage with i830_memory.c for RandR rotation.
+
+ This requires EXA 2.2 (server 1.3) for rotated performance with EXA, because
+ the i830_memory.c allocation may not fall within what EXA considers the
+ offscreen area, so the PixmapIsOffscreen hook is needed.
+
+commit 9ad33dd65a79277ef75a6e95373614852725f5a9
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 17 16:46:48 2007 -0700
+
+ Use i830_memory.c instead of the AA's allocator for XV buffers.
+
+ This should fix issues with XV being allocated into XAA's tiled pixmap
+ cache and resulting bad rendering. Its also brings us closer to being able
+ to shrink the size of the pixmap cache on XAA, which is of limited utility.
+
+commit 3655a1ecb62f6c387a16fa87cf6f00bf7835dce4
+Merge: e5c336e 2231cdc
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Aug 16 12:04:20 2007 -0700
+
+ Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit e5c336eaa32be8f9379a2c1dd51006b85bc8b270
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Aug 16 12:04:02 2007 -0700
+
+ Disambiguate plane and pipe mapping, use plane A on pipe B on pre-965 LVDS
+
+ Add a new 'plane' field to the intel_crtc private structure for tracking
+ planes separate from pipes. This allows pre-965 chips to use plane A
+ on pipe B, enabling framebuffer compression for builtin LVDS displays.
+
+commit c3438356d6b7b63ad9d0086efb084be8e048980e
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 16 11:34:02 2007 -0700
+
+ Add tiling information to BO layout description.
+
+commit 0c9e4aeea84e20a18e3b76d8cf8e802af004df57
+Merge: 79d9a30 2231cdc
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 16 11:30:16 2007 -0700
+
+ Merge branch 'master' into buffer-objects
+
+ Conflicts:
+
+ src/i830_dri.c
+ src/i830_memory.c
+
+commit 2231cdcd8f1ee81b3e59cc5e3a325c22ee0f40e4
+Author: Dave Airlie <airlied@redhat.com>
+Date: Thu Aug 16 17:15:54 2007 +1000
+
+ i915: add support for render to a8
+
+commit a69db6f7fe1703b473e5c1d1e0088ccc203f4d5a
+Author: Dave Airlie <airlied@redhat.com>
+Date: Wed Aug 15 18:28:50 2007 +1000
+
+ intel: don't setup texOffsetStart unless using EXA
+
+commit 5126a71f82767b9e23cd590453718f3364789740
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Aug 14 13:54:55 2007 +0800
+
+ Fix seg fault introduced in tiling patch when TV detect
+
+ When TV does load detect, fb hasn't been setup, so we should check
+ that in i830_display_tiled(). Caught by Nanhai.
+
+commit d9f89a1af7e7ff4056727060cdf2e35c15a4dcdd
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Fri Aug 10 17:59:33 2007 -0700
+
+ Save/restore tile-mode offset registers DSPATILEOFF and DSPBTILEOFF
+
+ Now that the driver sets these registers, they must be saved and restored.
+
+commit 5bc194d3d3c87bb0128d9ac10f090f031345eb37
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Fri Aug 10 17:54:32 2007 -0700
+
+ Set DSPATILEOFF/DSPBTILEOFF to handle 965 tiled frame buffers.
+
+ DSPATILEOFF and DSPBTILEOFF replace DSPASURF and DSPBSURF when the frame
+ buffer is in tiled mode.
+
+commit 64b943c79cf957a4c54482720195d7f27b7f0c0d
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 10 15:48:05 2007 -0700
+
+ Add #if 0-ed fence debugging code. It's noisy, and of little use to most.
+
+commit ba9a503ba2099025e393f3382bb453985ef23497
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 10 15:06:58 2007 -0700
+
+ Don't force tiling on if it is disabled in configuration but fbc is possible.
+
+commit b7751c7d1d6bcf310824295c3bab4ff36760c791
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 10 17:42:09 2007 -0700
+
+ Fix stack-smashing in the last commit.
+
+commit cb36635a053d4ac3971fea05060d31dbd3d382d2
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 10 14:16:59 2007 -0700
+
+ Attempt to fix several front buffer tiling failure cases.
+
+ Front buffer tiling is now disabled with G965 and XAA. Some of the acceleration
+ that i830_xaa.c does can't be supported on tiled buffers.
+
+ Adds a tiling field to struct i830_memory, and uses it instead of separate
+ variables for each potential tiled buffer.
+
+commit ed1b106fabf3a18489bdb3083326f27387a9cb72
+Author: Keith Packard <keithp@koto.keithp.com>
+Date: Fri Aug 10 14:31:16 2007 -0700
+
+ Clean up tv mode name allocation and copy.
+
+ TV mode names used to contain the signalling standard along with the pixel
+ size. The signalling has been moved to the TV_FORMAT property, but the
+ allocation and initialization of the mode name was left a bit messy as a
+ result.
+
+commit f71b9358b4157a8cfdc694ddef8ca3f98926ca91
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Aug 10 15:53:04 2007 -0400
+
+ Cleanup tiling and FBC driver output.
+
+ Remove an extra "FBC enabled" message from i830_memory.c (only report errors
+ if they occur), and don't print the "forcing FBC on" message if tiling was
+ already enabled, as it's redundant and confusing.
+
+commit e6746d0f286ef9d9a87f748d40e5421c268f2f7d
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Aug 10 15:48:15 2007 -0400
+
+ Enable tiling by default on 965.
+
+commit e0fcf645a228094620b8f7fdd580963611bdd6ef
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Aug 10 15:43:06 2007 -0400
+
+ Tiling fixes for 965
+
+ This should be close to the last set of tiling fixes for 965 chipsets.
+ Prior to this commit, the 965 composite hook didn't take tiling into
+ account, nor did 965 textured video, which caused display corruption.
+ However, there seems to be at least one last bug to squash--on occasion,
+ a configuration with tiling enabled won't properly display text. This
+ is likely another tiling related problem with the composite hook.
+
+commit 02ad9cee330fb5fb0008ad6f74e74e8d8a1fc36e
+Merge: 105f8a1 7b143e5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Aug 10 16:45:56 2007 +0800
+
+ Merge branch 'master' into xvmc-i915
+
+commit 105f8a183eb64623d9a9e2833dbe27156a551f69
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Aug 10 16:44:46 2007 +0800
+
+ disable subpicture initial
+
+ until we really implement it, OSD can't work for now.
+
+commit 7b143e5c8397da077c0e02455c21c5a99cf50942
+Author: Dave Airlie <airlied@redhat.com>
+Date: Thu Aug 9 12:14:44 2007 +1000
+
+ i965: increase composite vertex buffer size and alignment to be safe
+
+commit 14691b24da5aa29d8c41ac7b7c61828e3cd9eab7
+Author: Dave Airlie <airlied@linux.ie>
+Date: Thu Aug 9 09:41:32 2007 +1000
+
+ i965: fix memcpy of the sf_kernel when a mask is needed
+
+commit 5e18c6af9051da654d2a6a97553ef4fe777bb61e
+Author: Carl Worth <cworth@cworth.org>
+Date: Wed Aug 8 11:13:37 2007 -0700
+
+ Allow 965 composite acceleration to A8 destinations.
+
+ Note that this is a slowdown in text rendering due to the high overhead of our
+ compositing setup, but appears to be correct according to rendercheck.
+
+commit b0ec670cdb0b6ca6fc0f4f165fa3ee5a20d7c985
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 8 11:03:51 2007 -0700
+
+ Bug #11593: Remove dead struct vch_bdb_20 which was angering the sun compiler.
+
+commit 87cc72ef509b85635bf0e84c47dfed6b7242170b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Aug 8 09:39:55 2007 +0800
+
+ check early if we have slot left for new context or surface
+
+commit fec6744b763f2b85b4e592c51326b9ee979bef5d
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Aug 8 09:26:10 2007 +0800
+
+ I missed to remove port attributes wrapper
+
+commit 76c084d41999f13497b80d4ac6799cb974adaa03
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Aug 8 09:22:42 2007 +0800
+
+ explicit say "unsigned int"
+
+commit cfc614b1f9143ed1407733aaa81c4a980c613a63
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Wed Aug 8 09:06:47 2007 +0800
+
+ remove xvmc attributes
+
+ We don't have extra attributes than Xv port.
+
+commit 92af2f4bbcb395cbde097776718449d99843ad67
+Merge: da82a47 e0be352
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Aug 7 15:18:17 2007 -0700
+
+ Merge branch 'origin'
+
+ Conflicts:
+
+ src/i830_exa.c
+
+commit da82a47a558597f3653e2b33bc6adbab18574b57
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Aug 6 17:01:37 2007 -0700
+
+ Fix EXA rendering with tiled front buffer on pre-965.
+
+ The 915 and earlier appear to respect the fence registers, while only the 965
+ requires the per-operation tiling setting and pitch shifting. This will also
+ fix issues with rendering on the 965 involving multiple cliprects, where the
+ pitch would get divided repeatedly.
+
+ This removes the offset < 4096 fallback, which essentially resulted in no
+ acceleration to tiled buffers, hiding the issues.
+
+commit e0be352f5017f0e645a4ff8a40961d9c2b98863a
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Tue Aug 7 12:37:25 2007 -0700
+
+ Fixup pitch in Prepare* functions, since actual hooks may
+ be called many times for the same pixmap, and we don't want
+ to keep dividing the pitch by 4.
+
+commit b29a932bec2a3cc5a38e9c09c012cfdc1b6209c1
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Tue Aug 7 16:47:13 2007 +0800
+
+ code cleanups
+
+ and put wrap function in driver xvmc priv instead of per xv port priv
+
+commit 7431abee5fb971d1f8bc7ac4bea137f6ece9418b
+Author: Brice Goglin <bgoglin@debian.org>
+Date: Tue Aug 7 09:13:00 2007 +0200
+
+ Define INTEL_VERSION_MAJOR/MINOR/PATCH using PACKAGE_VERSION_*
+
+commit 9e1914270a0978ec4dfae757d3dd57ca7ffe17e5
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Mon Aug 6 17:55:00 2007 -0700
+
+ Remove 4k offset checks from Copy & Solid hooks.
+ Reading the docs too literally can cause you to hide bugs with false fixes...
+
+commit 3510d5728fa972b36d022b4f9189d46ff98d7b16
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Aug 6 16:44:39 2007 -0700
+
+ Fix accumulated whitespace nits in i830_exa.c
+
+commit 5ff05dffe229e35da7619762628fdd0f125585e8
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Mon Aug 6 16:01:10 2007 -0700
+
+ More tiled rendering fixes: - check for tiling, not just offset in PrepareSolid - combine pI830->tiling and frontbuffer checks into new exaPixmapTiled function for readability
+
+commit ba90d944329dd8c79a757c38128964fbbe4ab898
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 3 16:46:09 2007 -0700
+
+ Add the file mode for bios_dumper output so it doesn't have 000 permissions.
+
+commit 322a163cfbda885adc6bb09c1f976d36617ea83b
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Aug 3 10:46:39 2007 -0700
+
+ Quirk away the nonexistent TV connector on the Panasonic CF-Y4.
+
+commit ffbab2ee5dc227b2a8a5ffd1717ae00e8e37f956
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Aug 3 21:27:52 2007 -0700
+
+ Limit Solid & Copy offsets to 4k when rendering to tiled targets
+
+commit 019dbfda294aaafb28d8bea0fe2f5dadc2ea3e0b
+Merge: 3d3c0e8 15f71ed
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Aug 3 20:45:14 2007 -0700
+
+ Merge branch 'master' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 3d3c0e8c55f639a501c0756948b518abd903d7d0
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Aug 3 20:40:45 2007 -0700
+
+ Tiled rendering & fbc fixes:
+ - actually enable tiling in DSP(A|B)CNTR if needed
+ - add logic to EXA routines for tiled case (still needs work)
+ - enable/disable fbc on DPMS events (meant moving functions higher in file)
+ - fix fence register pitch programming (use correct pitch instead of kludged value)
+
+commit 79d9a309b19e22561e000a47b732c67479c2e6d4
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 2 15:50:42 2007 -0700
+
+ Mark DRI buffers as shareable, and pass their buffer handles through the SAREA.
+
+commit 0da4f2b0cd7203377ad10407928a367b8c6d310e
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Tue Jul 31 16:22:36 2007 -0700
+
+ Legacy backlight changes:
+ - add support for 965GM
+ - make sure legacy enabled systems don't reduce the range of backlight values we can present to the user
+
+commit 15f71edba37738f8ba279fa07452fda10cc65298
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Sat Jul 28 17:43:29 2007 +0800
+
+ Update Lenovo TV quirk info
+
+commit 857b4a7bcb69ca43b866b4283fe075abbafb1d22
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 27 18:03:12 2007 -0700
+
+ Pin some buffer objects at creation time, which can't be moved yet.
+
+ A number of other interfaces of ours don't allow buffer offsets to be updated
+ after screeninit. This attempts to catalog why for each one, so that they
+ can be fixed one by one.
+
+ This happens to restore the EXA offscreen allocator for now, as a fixed-offset
+ object.
+
+commit d7b5b595ad29ae0ac3adbd3a176be3fe7ffa6474
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 27 12:48:08 2007 -0700
+
+ Delay the first screen pixmap update to CreateScreenResources.
+
+ The return value of GetScreenPixmap before CreateScreenResources is not, in
+ fact, a pixmap.
+
+commit 2b1ec0f51479c1d7e5e62803c68feca29375519d
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jul 27 10:00:35 2007 -0700
+
+ Use the dontMapFramebuffer option available with DRIINFO 5.4.
+
+ If not available, AIGLX init will fail. While here, simplify DRIINFO tests
+ since we refuse to init with a version queried less than the version we
+ compiled against, anyway.
+
+commit f403a50afbcef1e54f554481c72037338bd5357c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 27 09:24:24 2007 +0800
+
+ Add another Lenovo TV output quirk
+
+ From issue report http://lists.freedesktop.org/archives/xorg/2007-July/026644.html
+
+commit 34c82ad7ce83394db47588693b578cf91991bf1c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 27 09:14:13 2007 +0800
+
+ Add quirk support
+
+ This one trys to use a flag for possible quirks. It adds a quirk
+ for my Lenovo T61 TV output, and ports some origin LVDS quirks to it.
+
+commit 1a585d03972394cb97dec2462937b0104bdf4de2
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jul 26 10:46:35 2007 -0700
+
+ Use new drmBOSetPin interface instead of NO_EVICT/NO_MOVE buffers.
+
+ To do this, we have to deal with buffer offsets being set at EnterVT time
+ instead of screen init time. We've wanted to move this direction for a long
+ time, but there are repercussions. The EXA offscreen memory manager has to
+ be disabled, because it can't be moved. That will be replaced by BO-backed
+ pixmaps soon. Also unresolved is whether our moving
+ front/back/depth/texture buffers will break the classic-mode DRI driver.
+
+ This code doesn't actually work yet.
+
+commit 0fd3ba0518b3cde9ca0e4e2fc1854c00d8a43d5c
+Author: Brice Goglin <Brice.Goglin@ens-lyon.org>
+Date: Wed Jul 25 20:11:32 2007 +0200
+
+ Fix typo in intel.man
+
+ Reported by A. Costa" <agcosta@gis.net> in
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432061
+
+commit 18c707a8c13ac5fffdd30d55e6f5926a68b367df
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jul 25 10:11:16 2007 -0700
+
+ When TTM is available, use it instead of manual AGP allocations when possible.
+
+ This is a step towards being able to expose buffer objects through the screen
+ private to DRI clients, instead of having them have to use the fake buffer
+ object type.
+
+ This fails in two ways. First, the kernel memory manager is not currently
+ suitable for doing the physical allocations we need, so we still use AGP for
+ those. Additionally, the DRI lock can't be initialized early enough for us, so
+ these buffer object allocations fail. This will be fixed by improving the
+ DRM interface.
+
+commit c4deefa80a6349db968e25bd6778cdf7a514ca7f
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jul 23 10:35:32 2007 +0800
+
+ only enable xvmc for 915/945/G33
+
+commit 45962eed51120ff77326c29d72cf8b6cd8a934b5
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Mon Jul 23 09:50:17 2007 +0800
+
+ Fix a typo in i915 render
+
+ Fence setting is in mapstate actually. This fixes rotation in
+ tiled fb case, thanks Keith to report this.
+
+commit a52c53b8603495ab05e07e3da5092fe122fcb6f2
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Jul 20 17:10:27 2007 +0800
+
+ don't initialize XvMC if xv is disabled.
+
+commit b1af2c0e01c54ef1d40fd0ca1ede29a1dd7ed97b
+Author: Zhenyu Wang <zhenyu.z.wang@intel.com>
+Date: Fri Jul 20 15:18:48 2007 +0800
+
+ Fix device id info for 945GME, 965GME
+
+ which do have new host bridge ids
+
+commit 6b4d43dbf4bbb86d479d8fca480c8bec39e2714b
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Fri Jul 20 09:59:40 2007 +0800
+
+ lock display when creating context
+
+commit 42e91c7092f9cf7f5c0b98e9ae3d92a5b30821bf
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Jul 19 17:30:54 2007 +0800
+
+ move i830_allocate_xvmc_buffer out of #if/#endif
+
+commit 36ea26f2779d951fa173da785aca100564e5ecf8
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Jul 19 17:21:05 2007 +0800
+
+ add copyright
+
+commit 9d03873423c0968b2d6700b7d8d44c7e23b8d7f3
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Thu Jul 19 10:03:19 2007 +0800
+
+ block some signals within critical section to avoid
+
+ dead lock.
+
+commit 25658f838bd1bcd7559d7a032d127c626833fb7c
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jul 16 13:03:58 2007 +0800
+
+ 1. The pitches for y/u/v surfaces are 1024bytes aligned.
+
+ 2. clean code
+
+commit 8f316a4584d0676e5dae051698bde0831f018cc4
+Author: root <root@xhh-bl32.(none)>
+Date: Thu Jul 12 16:24:03 2007 +0800
+
+ 1. clean code
+
+ 2. fix an error in map_state
+
+commit 4844254431695158287167e3b0fad25d9efb7a6c
+Author: root <root@xhh-bl32.(none)>
+Date: Tue Jun 26 16:32:30 2007 +0800
+
+ a fix for 945G/945GM
+
+commit 8c249765ce788f8adb0325a8e3016a0eae74b13b
+Author: root <root@xhh-bl32.(none)>
+Date: Mon Jun 25 14:07:01 2007 +0800
+
+ 1. using batch buffer
+
+ 2. implement macroblock_ipicture instruction
+ 3. 16bit INTRA block
+
+commit 2b20b395541f786e4009211e4c56042257b8d114
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jun 25 10:43:49 2007 +0800
+
+ fix a bug related to display surface
+
+commit 6e47601ac7427390fa4cb6e228dfb566ff95db09
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jun 25 10:40:08 2007 +0800
+
+ fix some bugs
+
+commit d038ffdfffb846e22f360faac5d469c8e59795ad
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jun 25 10:37:12 2007 +0800
+
+ Release resource allocated for surface/subpicture
+
+commit a9bf7e28b91692c7c7a4915cdf9603cd2ef025ea
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jun 25 10:33:35 2007 +0800
+
+ fix some bugs
+
+commit ccac60bf035bb54661c13f306031def81e105a32
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jun 25 10:23:28 2007 +0800
+
+ fix some bugs
+
+commit 934da9f2b83716bb37d0719a61b8e6b179fff2cd
+Author: Xiang, Haihao <haihao.xiang@intel.com>
+Date: Mon Jun 25 10:17:08 2007 +0800
+
+ enable XvMC for i915
+
+commit c7920a0e819308762fca3d6fc7ab194bd565b06a
+Author: Dave Airlie <airlied@linux.ie>
+Date: Thu Jul 19 15:09:54 2007 +1000
+
+ strip out remainder of drmmm code in driver
+
+commit 37652b68880f1881b90bd22218cfe86eca7e5974
+Author: Dave Airlie <airlied@linux.ie>
+Date: Tue Jul 17 14:03:21 2007 +1000
+
+ intel: oops I commited pixman local workaround - undo it
+
+commit e40f6a4923d1323702406266e90eae3218a8a44e
+Author: Dave Airlie <airlied@linux.ie>
+Date: Tue Jul 17 09:20:07 2007 +1000
+
+ intel: actually 2.3.1 should be good enough
+
+commit 1e169be25b2e4ab34afd4b8ae8ae0041f6069125
+Author: Dave Airlie <airlied@linux.ie>
+Date: Tue Jul 17 09:17:31 2007 +1000
+
+ intel: don't try and use TTM memory manager with old libdrm interface
+
+ I probably need to release a libdrm with this interface in it now..
+
+commit ff2be3995d33f9e4b7f63b380f166b6168c9b9c6
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Jul 13 12:47:18 2007 -0700
+
+ Remove hard-coded CRT blanking frobbing for load detection.
+
+ CRT blanking needn't be adjusted to perform load detection on 9xx chips, and
+ the 8xx load detection path now adjusts blanking just during load detection.
+ Adjusting the blanking interval turned out to cause many monitors to fail to
+ sync.
+
+commit 00f4587025a3879626623135b0a153fcdb906719
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Jul 13 10:58:06 2007 -0700
+
+ Ensure pipe/output active before doing load detection.
+
+ If the pipe or output have been set to DPMSOff, then load detection will not
+ work correctly. Also, share the load detection configuration code between
+ crt and tv outputs.
+
+commit 6f18300aed1340348c6d395f326061b5315be643
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jul 9 21:29:55 2007 -0700
+
+ Eliminate bogus (and harmful) blanking adjustment for load detect.
+
+ Instead of always adding blanking to mode lines, use the FORCE_BORDER option
+ on i9xx hardware where it works, and dynamically add a bit of border if
+ necessary on i8xx hardware to make load detection work. This may cause
+ flashing when a usable crtc is not otherwise idle when load detection is
+ requested.
+
+commit 04130ac6b705aa49161fb6dae83ad0bdd76e89d9
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Jul 11 11:42:56 2007 +0800
+
+ Fix i915 rendering for tiled buffer
+
+ Make it to check fence register for dest buffer.
+
+commit 88f8b688e2316ae4a1f7485f0010ce90de54783a
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jul 9 12:56:13 2007 -0700
+
+ Fix some physical address handling for >4GB addresses.
+
+ The upper bits would have been inappropriately dropped on G33-class hardware,
+ and on G965-class hardware in a 32-bit environment. The only use of physical
+ addresses on these should be for FBC, though, and FBC requires addresses
+ below 4GB. This is unresolved.
+
+commit bf831117b4659cc4f2774098dee938505f780a9b
+Author: Jesse Barnes <jbarnes@hobbes.virtuousgeek.org>
+Date: Sat Jul 7 10:15:32 2007 -0700
+
+ FBC fixes:
+ - allow FBC and Tiling to be forced off if configured to do so
+ - only touch FBC registers if pI830->fb_compression is true
+
+commit b426866fe1be2ad3861559beff69186379a6afad
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Jul 6 20:48:40 2007 -0700
+
+ Fix manpage to reflect default behavior.
+
+commit 377c58373daa6bef5d37ead2b6f9a769a905b6fa
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Jul 6 20:39:19 2007 -0700
+
+ Fix naming of FBC plane enable bits (mistakenly called them pipes earlier).
+
+commit 9c0388dc8d4c6495fae21af6da644b34e20173d1
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Jul 6 20:38:41 2007 -0700
+
+ Update man page with current behavior.
+
+commit cecbc71fdc9af832cef23427696f6f654f7d6104
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Jul 6 16:36:34 2007 -0700
+
+ Fix debug output in fbc enable/disable routines. Add logic to make sure fbc
+ isn't enabled twice on two different pipes.
+
+commit 4359df9419d2d02a2f9d9adc7f5a49ecf07ddd30
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Jul 6 16:17:45 2007 -0700
+
+ Fix tiling and fb compression defaults for 965 (not yet fully supported).
+
+commit ca593a5219549df94a6d234ebbcf9e7c44723c9b
+Author: Jesse Barnes <jesse.barnes@intel.com>
+Date: Fri Jul 6 16:10:52 2007 -0700
+
+ FBC and tiling changes
+ - change framebuffer option name to "FramebufferCompression"
+ - add new "Tiling" option (controls all tiling, not just front buffer)
+ - add debug message to fb compression enable/disable routines
+ - update man page with new options
+
+commit 8798ef11321ee6957919279076758d47ad956cf3
+Merge: 8919b22 3c552af
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Jul 5 12:21:31 2007 -0700
+
+ Merge branch 'master' into fbc
+
+commit 8919b2292147add41a1c1c6e5e673257cb6c6c6e
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Jul 5 12:21:06 2007 -0700
+
+ Re-add tiling kludge, but only for 965.
+
+commit 407b124af8f7bb42abe4eecc87476c4c3e555cd0
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Jul 5 11:31:34 2007 -0700
+
+ Remove tiling kludge. May need more fixes for 965.
+
+commit 7a87b9d2a2eb4d281dce67586756ff5653b2805a
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Jul 5 11:23:06 2007 -0700
+
+ Revert discard alpha change, requires other fixes to work.
+
+commit fecf964534f5ba6d40480cb13adc89094946a51e
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Thu Jul 5 10:59:23 2007 -0700
+
+ FBC fixes:
+ - properly check several FBC enablement constraints
+ - don't use alpha discard if FBC is in use
+
+commit 60ee7b6a91b2b8c447130c60cd8b19eb68119777
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Tue Jul 3 14:20:34 2007 -0700
+
+ Fixup line length buffer padding, add kludge for front buffer tile
+ pitch.
+
+commit 3c552af65d28fafec1d09484a8914b690b961349
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jul 2 18:33:47 2007 -0700
+
+ Update documentation and bump driver version to 2.1.0.
+
+commit f02036aedcd7866c567a6adc070eda3dad872105
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Mon Jul 2 15:42:02 2007 -0700
+
+ Framebuffer compression changes:
+ - move FBC register definitions to i830_reg.h
+ - add fix from Arjan for 965 depth buffer tiling
+ - add VT switch and clear-at-server-start code for FBC registers
+
+commit 2b9961eb9ce8734565ecdb01cb11610714d7f610
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jul 2 15:16:33 2007 -0700
+
+ Fix reversed LVDS dither enabling logic on GM965.
+
+commit 3d9ee8b2991ec0da8cc21b8455ff7f00fd0335b5
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jul 2 14:38:28 2007 -0700
+
+ Bug #11365: Disable the panel fitter unless it's needed for the chosen mode.
+
+ The automatic panel scaling appears to choose bad sampling on some GM965
+ hardware for 1:1 mapping modes, and there's no real sense in having it on
+ if we just want 1:1.
+
+commit b384c608978dcd3d2ea6c0018179673cb4735f4c
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Mon Jul 2 09:32:28 2007 -0700
+
+ Enable framebuffer compression (use Option "FrameBufferCompression"
+ "true" in your xorg.conf). Should save ~0.5W during typical 2D usage.
+
+commit 1e2e301348b4168aeed38b3fdc6b0e43d5678a86
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Sat Jun 30 12:45:24 2007 -0700
+
+ Fix load detection to use border region instead of blanking.
+
+ Make sure there is some border area to use by changing how the pipe is
+ configured, then pick a scanline in the middle of the border for load
+ detection. This lets the load detect code use an active pipe instead of
+ requiring an idle one.
+
+commit 11862c2e1f23b77b56d7bd8b384579b5e3ae377b
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Thu Jun 28 23:31:28 2007 -0700
+
+ Add *~ to .gitignore to skip emacs & patch backup files
+
+commit 6503eb45023d0db9a94cb9d1e14a26af07a6628d
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Thu Jun 28 23:30:35 2007 -0700
+
+ Add AM_PROG_CC_C_O to configure.ac
+
+ Clears automake-1.10 warning: src/bios_reader/Makefile.am:8: compiling
+ `bios_dumper.c' with per-target flags requires `AM_PROG_CC_C_O' in
+ `configure.ac'
+
+commit 5257e36f502676fd6a44bbb8e747d9138ed3bc5c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Jun 28 15:29:52 2007 -0700
+
+ Handle dual-channel LVDS on i855.
+
+ Just as with i9xx LVDS, the i855 LVDS can operate in dual-channel mode with
+ a modified P2 divisor value (7 instead of 14). Just using the existing 9xx
+ code for 855 appears to work fine.
+
+commit 16bfcb8042519f24b4494fd621814f39949ceeb6
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Jun 28 15:27:56 2007 -0700
+
+ Decode PLL registers in LVDS mode a bit better in debug code.
+
+ LVDS mode changes how the PLL works in fairly dramatic ways; the debug code
+ wasn't properly accounting for those differences resulting in fairly bogus
+ debug output.
+
+commit 9675ccb30818bf831ac4c634751ab4bfe35f7bfe
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Jun 27 09:23:33 2007 +0800
+
+ EXA: fallback mask transform on i965
+
+ It needs to fix shader programs which hasn't been done yet.
+
+commit 7a2300c88ae59f5b7c3ce89d33147e3f0ca23c18
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Jun 27 09:19:22 2007 +0800
+
+ EXA: don't have to check offscreen size
+
+ DDX will check it for EXA_OFFSCREEN_PIXMAPS flag
+
+commit fff4a3b58fa18ee2ad91f998d190e90b77c051ab
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 25 23:15:58 2007 -0700
+
+ Use local structures for vs_state, sf_state, and wm_state
+
+commit 0a8a4afd3c59011d6b1f5b39aedfb9bce0e55c48
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 25 23:12:23 2007 -0700
+
+ Use local structure for src_sampler_state and mask_sampler_state
+
+commit 499166a60fcbf16021bd9ec233790ba55803aa44
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 25 23:09:17 2007 -0700
+
+ Use local structure for mask_surf_state
+
+commit a418ef7316808b239884a90c3fe890220bcc0242
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 25 23:07:19 2007 -0700
+
+ Use local structure for src_surf_state
+
+commit 0e3c0b17826b7b5a21ee2c1d789b084fc167f1ed
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 25 23:05:50 2007 -0700
+
+ Use local structure for dest_surf_state
+
+commit 41a2c0f15446d59678461648f476fa71d40d44e0
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 25 23:03:47 2007 -0700
+
+ Use local structure for cc_state
+
+commit 59f2150caca7eb374a2db43a472ba85f50d23274
+Author: Carl Worth <cworth@cworth.org>
+Date: Mon Jun 25 11:28:57 2007 -0700
+
+ Remove redundant i830WaitSync from i965_prepare_composite
+
+ There were two calls to i830WaitSync, and between them no state was
+ being changed---just offsets were being computed.
+
+commit 66aa0e61e1e8d2216a9c0555be5be004ed0a3192
+Author: Dave Mueller <dave.mueller@gmx.ch>
+Date: Fri Jun 22 16:45:27 2007 -0700
+
+ Bug #11171: Add support for the Ti TFP410 DVO TMDS transmitter.
+
+commit f8d7cbc6e1322acad3351591336cefcfba7d9aaf
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Jun 22 16:29:21 2007 -0700
+
+ Move the ivch's fixed panel mode support to i830_dvo.c for other LVDS drivers.
+
+ This also results in removal of the setup hook, which was being called
+ unconditionally and breaking non-ivch dvo drivers.
+
+commit ec236c76b93aea5f2ee1e8b8509cde4625974fcb
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Jun 22 16:32:46 2007 +0100
+
+ I830 needs to have plane/pipe/pll started in mode_set.
+
+ The patch for the i855 to stop enabling plane/pipe/pll in mode_set broke the
+ i830. Revert that just for the i830, leaving it enabled for the i855.
+
+commit d957c6b8e1dde8e11c1db3431e0ff58c5d984880
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Jun 22 01:32:02 2007 +0100
+
+ Increase vblank wait timeout from 20ms to 30ms. 49.6Hz < 20ms.
+
+ The x40 LVDS mode has a 49.6Hz vertical refresh. Waiting for only 20ms can
+ sometimes cause the driver to start programming the hardware before the
+ vblank has occurred, which will lock up the i855 chipset. Extend this to
+ 30ms (the maximum timeout used by the BIOS) to ensure this doesn't happen.
+
+ Detecting actual vblank occurance using the various status registers should
+ also be possible but isn't yet working.
+
+commit a67c2965385001bcb8987265f698ff0f5809cd11
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Jun 21 23:59:38 2007 +0100
+
+ Follow BIOS configuration for Legacy Backlight Brightness.
+
+ The backlight control in the LVDS controller can either operate in 'normal'
+ mode or 'legacy' mode. In legacy mode, it uses the PCI config space register
+ 0xf4 which can range from 0 to 0xff. In normal mode, it reads the range and
+ current value from the BLC_PWM_CTL register.
+
+commit d6e46f67ab3af1ad3bfa72acb0efd9fe79dbf1dc
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Jun 21 20:16:36 2007 +0100
+
+ Eliminate some uninitialized variable warnings
+
+commit 9d104634cf03bea82d1467f01e577cb8d2e4b554
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Jun 21 01:15:39 2007 +0100
+
+ Add 3DSTATE_CLEAR_PARAMETERS bits
+
+commit 3bbf313ba541526a893915f8b6c64b1eccf325e0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Jun 19 09:33:50 2007 +0800
+
+ Fix left G33 issues
+
+ Be sure to check G33 chip type in:
+ - sdvo output
+ - Y-major tile
+ - crt detect
+ - and xaa composite
+ Sorry for that I should have fixed them very earlier...
+
+commit acef342c870f3b5b781e48c8bf44739aa5ee8ffa
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jun 18 11:57:48 2007 -0700
+
+ Bug #11295: Disable textured video on i915 with framebuffer width too large.
+
+commit fbbb41bc5e03478cb46ee8f64ef68b23ff3fc14b
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Jun 17 14:59:24 2007 +0100
+
+ Let DPMS functions enable plane/pipe/output on 8xx hardware.
+
+ On 855, letting crtc_mode_set enable the plane and pipe will occasionally
+ hang the chip. Instead, wait for crtc_enable to light things up. For 9xx,
+ leave things alone.
+
+commit d5ca000ece145a35fd6df0dcf3fb3460bd2d64e3
+Author: Rémi Cardona <remi@gentoo.org>
+Date: Sat Jun 16 13:17:54 2007 +0100
+
+ Include stdint.h to get uint64_t
+
+commit 6b2ae93506d6795f87d6993bebfcb4e6632508ee
+Author: Dave Airlie <airlied@linux.ie>
+Date: Fri Jun 15 23:30:04 2007 +1000
+
+ sdvo: add support for RGB outputs on SDVO
+
+ This lights up my monitor VGA-1 - it doesn't look the best though
+
+commit 671ba03befebfdd7256855858987aabc28b2e8cd
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 13 16:30:26 2007 -0700
+
+ Fix and enable the 915-class planar textured video path.
+
+commit 6c29e0bae5f1e7cee02b678418394abb971594eb
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 13 13:40:39 2007 -0700
+
+ Improve the drm_i915_flip_t check.
+
+commit 420e41e7921d3cc07c784fd17936ec8a675f3b20
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jun 13 13:34:26 2007 -0700
+
+ Revert "Replace failure-prone configure test for fresh libdrm with a simple ifndef."
+
+ This reverts commit c2b130354aecffbeb2a2d23c7371461feaf5766a.
+
+ Sadly, a non-working DRM_IOCTL_I915_FLIP already existed.
+
+commit 51612e5ac3ddfb2bb172c58f2dfff9631093b69c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jun 12 16:09:54 2007 -0700
+
+ On hang, dump up to the head pointer, not just up to the tail.
+
+commit ceb6dd72443c094212b0281c42cbe92e9a29f682
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jun 4 16:37:53 2007 -0700
+
+ Fix context switching between DRI and X.
+
+ Now, all 3D pipeline consumers in the driver just call
+ IntelEmitInvariantState(), which handles basic state setup, the caching of that
+ state setup, and notifying DRI clients. This also removes a mistaken idle
+ wait in the Render code which was papering over the brokenness in the context
+ switching.
+
+commit c2b130354aecffbeb2a2d23c7371461feaf5766a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jun 12 08:49:21 2007 -0700
+
+ Replace failure-prone configure test for fresh libdrm with a simple ifndef.
+
+commit 0e1deb607f94e4aa3ec4b9df8ff7a07a1c95e31d
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jun 11 17:33:33 2007 -0700
+
+ Fix a typo in _3DSTATE_DEPTH_SUBRECT_DISABLE definition.
+
+ This is already fixed in the definition in the 3d driver.
+
+commit 8d7a0ccd4f674659eb781def2cfdc3a6e5a219ce
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jun 11 17:33:07 2007 -0700
+
+ Clean up some nits in i915_video.c setup.
+
+ - The screen dimensions were used for the clipping despite drawing being done
+ to any pixmap, not necessarily the screen.
+ - One piece of state setup was not documented anywhere, and isn't used in other
+ 3d hardware paths that also work.
+ - A 3DSTATE_MODES_1 command (830-class only) was issued even though it no
+ longer exists.
+
+commit 15caa64a497dcc0eacb0f91166d9b70206a8db35
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Jun 8 18:44:28 2007 -0700
+
+ Add description for how to use the frame and pixel counter registers.
+
+ The 24-bit frame and pixel counters were not described in detail and
+ will be useful for DRM.
+
+commit 404fd47573f855b0442d49a383542fc093825ad0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Jun 6 11:01:48 2007 +0800
+
+ Enable overlay on G33 class chipsets
+
+ Which have to use gfx vm offset fot setup overlay regs.
+
+commit f4c05973d391bdb0a9b0eadb155548310baa98fd
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Jun 5 11:07:41 2007 -0700
+
+ Add support for the G33, Q33, and Q35 chipsets.
+
+ These chipsets require that the hardware status page be referenced by an offset
+ in the GTT rather than a physical memory address, so the X Server allocates it
+ rather than the DRM.
+
+commit 36fcaeb2ef94db5399071540bba106dec3db81d5
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jun 4 15:58:31 2007 -0700
+
+ Fix misplaced merge of 1280x768 panel fixup.
+
+commit 8a19e7d57bc23dd163b45e0ab7deca4f074c934d
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Tue Jun 5 00:09:57 2007 -0700
+
+ Always ensure the pipe A is lit when activating overlay on pipe B.
+
+ Ok, so moving video from pipe A to pipe B still requires that pipe A be
+ active during the transition. Instead of trying to be fancy, just ensure
+ that pipe A is running on each transition to pipe B.
+
+commit e986f6cb62f8644c5fa835bd7dfb7b014c2677c5
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Mon Jun 4 23:52:23 2007 -0700
+
+ Automatically switch overlay when crtcs are reconfigured.
+
+ As crtcs are disabled and enabled, make sure the automatic crtc selection
+ mechanism drives overlay configuration at each request to display an image.
+
+commit 0984c1fc0963f1ebab31f5b8fce5ad4c387fbd2c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu May 31 10:17:26 2007 +0800
+
+ Add pci ids for 945GME
+
+commit 88ee25ebad78e54d243d728b775a69365359b5fb
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu May 31 10:13:30 2007 +0800
+
+ Add pci ids for 965GME/GLE chip
+
+commit 92e4deb50e049cc83cbde4995ba0b901feceb15a
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed May 30 11:49:07 2007 -0600
+
+ Extend XV_PIPE range to include new -1 value
+
+commit 888a4a5f469bf955e3ee3e184b628808ae8a4498
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed May 30 14:42:35 2007 +0800
+
+ Fix i965 render's draw clip rectangle
+
+ Use scrn's virtual size is not correct in rotation rendering.
+ This fixes initial rotation problem on i965.
+
+commit 516fb73ffee0aea7cf892e6703d37f8ecf52b812
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 29 10:22:25 2007 -0700
+
+ Remove README statement that 830M panels are unsupported.
+
+commit 72462568da589054828b72ace83232a71636ee73
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 29 10:21:12 2007 -0700
+
+ Expand manpage description of outputs supported.
+
+commit 906b974bfeeed18d79c244ad3db4f5d30e13e4c8
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 29 09:49:08 2007 -0700
+
+ Add a fixup to LVDS panel mode detection for 1280x768 panel from text mode.
+
+ Apparently some BIOSes will program a small mode with large blanking instead of
+ using the pannel fitter.
+
+commit 4b2781291844b61b397e257a0fdb43e964e5f603
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat May 26 10:09:11 2007 -0700
+
+ Mark IVCH as connected when detected
+
+commit 2a365eab0178c28782fba97bdd22365f30ce8963
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Sun May 27 12:35:55 2007 -0700
+
+ On i830, Pipe B cannot be lit the first time unless Pipe A is running.
+
+ I don't understand it, but just like the video overlay, if Pipe A is not
+ running, Pipe B will not turn the first time it is activated. This
+ patch restructures the code used for the video overlay to share it
+ with the crtc commit function.
+
+commit ff8c8cb869a3c780dbd826f7c94f06e4f3fda6af
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Fri May 25 20:29:59 2007 -0700
+
+ Compute and clip to crtc before call to xf86XVClipVideoHelper.
+
+ By clipping to the crtc ahead of time, xf86XVClipVideoHelper will
+ correctly clip to the bounds of the crtc, eliminating the need for any
+ custom crtc clipping.
+
+ Also, replace the broken xf86XVFillKeyHelper with a private version that
+ doesn't end up stuck with the wrong clip list when the root window changes
+ size.
+
+commit 33f635d79fe891079558fd909d564f3cf424c482
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Fri May 25 17:32:06 2007 -0700
+
+ Ensure Pipe A is active when enabling overlay the first time.
+
+ The overlay on the i830 appears to be clocked by Pipe A when being enabled.
+ If pipe A is not running, it will freeze the overlay and blank the screen.
+ Setting a random mode on the Pipe and turning it on fixes this problem
+ nicely.
+
+commit ff0ac8ea63dd6e55573652c5826c482881da0d62
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Fri May 25 17:26:15 2007 -0700
+
+ Xv does not require directRendering
+
+commit 109e5d597b76f7414601cb39c07b133ebf1b0e61
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Thu May 24 11:40:50 2007 -0700
+
+ Clean up CRTC selection. Remove more overlay blocking.
+
+ Create separate CRTC selection function, use ints instead of floats for
+ coverage measurement. Remove pipe stalls waiting for overlay update.
+
+commit dfb1ec9a07f74125cb1724d41ed4342c4714e12b
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Thu May 24 11:23:44 2007 -0700
+
+ Eliminate blocking for video overlay.
+
+ No need to block for the overlay; just use the idle buffer. This will
+ always work because the buffer switch occurs at vblank time, so there is
+ always plenty of time to get the next buffer contents in place before it
+ starts getting scanned to the screen.
+
+commit d172344599585e11388e59659dc9aaa86d7a31c1
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Wed May 23 20:00:16 2007 -0700
+
+ Reformat i830_video.c to four-space indents.
+
+ Yes, I can't stand it anymore. it's a huge patch, but
+ git-diff -w shows no changes.
+
+commit 02935ced3fba598a01d908ae49ccc30cbcc765a8
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Wed May 23 19:24:25 2007 -0700
+
+ Clean up overlay management.
+
+ Create separate on/continue/off functions for overlay.
+ Manage overlayOn boolean within those functions.
+ Eliminate redundant management code in other routines.
+
+commit 08753f9b79f3f09879a18b552d90d88dbf52d4be
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Wed May 23 18:59:10 2007 -0700
+
+ Use FLIP_CONTINUE with ~OVERLAY_ENABLE to turn overlay off.
+
+ This makes the overlay work on i830 with the modesetting driver. I don't
+ know why the pre-modesetting driver worked without this, but it did.
+ A more 'correct' fix would be welcome, but this does seem to do the trick.
+
+commit aa187186dc4f2d770a642060fe54f547ea8952b3
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Mon May 21 10:49:08 2007 -0700
+
+ Automatically select crtc based on coverage.
+
+ By default, select crtc based on which one covers more of the video output.
+ pipe property can be used to override selection when both have partial
+ coverage.
+
+commit f5017a06a271bba0ace3c5415b78e78bc0c96f22
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Sun May 20 17:25:33 2007 -0700
+
+ Use CRTCs instead of pipe indices for video pipe selection.
+
+ Replace pipe indices with crtc indices and store references to the xf86Crtc
+ objects in the video private structure.
+
+commit 2df87256df755e972eb884bc742832038a020b2c
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Sun May 20 17:23:26 2007 -0700
+
+ Dump pending ring on crash.
+
+ When the hardware locks up, dump the pending commands in the ring for
+ analysis.
+
+commit 9971fac87622c93503540196e1756fded3d4869e
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue May 22 10:46:39 2007 +0200
+
+ i830: Provide new DRI texOffsetStart hook when available with EXA.
+
+commit 5390a2e2611950d3f48cc735df4a0c37bc5377a5
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Fri May 18 17:51:36 2007 +0200
+
+ Update vblank pipes when a pipe gets disabled.
+
+commit 4120a20626998272424225261f2cf7960b7ec0ca
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri May 18 10:10:34 2007 +0800
+
+ EXA: add render enter helper function
+
+ That notify mesa rendering is smashing the state, and check last 3d
+ operation to do sync after we're swapped in or others.
+
+commit 8db28aeaa6e908017b40bd9180f144a2972f6278
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri May 18 09:54:34 2007 +0800
+
+ Fix ring debug code
+
+ Use proper unsigned type for timer variables, and try to dump 965G state.
+
+commit 16e50a91dd8b3676e8ce06052c549ab27e6843b7
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri May 18 09:53:36 2007 +0800
+
+ EXA: remove a flush cmd in i915 render code
+
+commit 12a9fcfe1b25cee850380d8ce11ef11cde9aaacb
+Merge: b930bb9 e89d5f2
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu May 17 15:11:29 2007 -0700
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit e89d5f275442915cc7777e75d3fcf7e7ed0f2084
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Thu May 17 15:00:12 2007 -0700
+
+ Make each output control clones/crtcs. Split DVO into LVDS, TMDS, TV.
+
+ Move clone/crtc config into each output where it's easier to understand (no
+ need for a switch statement in I830PrepareOutputs. Also, split DVO into
+ three sub-types (TMDS, LVDS, TVOUT) as those have different cloning
+ abilities.
+
+commit a441954630c6cdabbf463bfc3404160f97a04b4f
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Thu May 17 14:11:49 2007 -0700
+
+ Enable panel fitter on ivch DVO.
+
+ Using BIOS source code as a guide, set up the panel fitter on the ivch. This
+ involves setting the pipe to the panel fixed mode, the DVO to the source
+ size and assigning vertical and horizontal scaling factors in the ivch
+ itself.
+
+commit c0daa0a982e7074af4b50653b4a45b0a6352b43d
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Wed May 16 14:02:00 2007 -0700
+
+ Change DVO module interface to pass more state across. Fix IVCH display.
+
+ The DVO module interface reflected most of the xf86Output API to the
+ underlying functions; finish that work given the changes that have since
+ occurred in the xf86Output API.
+
+ Move the LVDS-specific code into the IVCH module and make that work on the
+ Thinkpad X30 (an i830-based laptop). Panel scaling does not work yet.
+
+commit b28817a87a1608e849e4a9a736dda43533a84b0c
+Author: Keith Packard <keithp@dulcimer.keithp.com>
+Date: Wed May 16 13:59:36 2007 -0700
+
+ Add i830_bios_get_aim_data_block to read AIM data from BIOS
+
+ Add-in modules have per-module data in the BIOS which contains configuration
+ information which cannot be entirely discovered.
+
+commit b31bef1a8effa9acb6de7edd206b9d8c48d88144
+Author: Keith Packard <keithp@work.jf.intel.com>
+Date: Sat May 12 20:04:31 2007 -0700
+
+ Deal with i830 CRT load detection which cannot use FORCE_BORDER.
+
+ Chips newer than the i830 can force the border color for the active period
+ of the screen, allowing the load detection to easily see the right data. In
+ addition, newer chips appear to have more sensible load detection hardware
+ which either ignores inactive periods on the screen or performs some
+ longer-term averaging. The i830 appears to provide unfiltered samples of the
+ detected load.
+
+ For the i830, then, emit a border at the bottom of the screen and, for load
+ detection, simply turn it purple and wait for the current line to be within
+ the border. Sample an entire scanline, counting the number of times the load
+ detection sees a monitor. In my testing, the presence of a monitor will
+ cause the detection to succeed every time, while the absense will cause it
+ to fail about 75% of the time. The code here, checks for presence at least
+ 75% of the time, which should be adequate.
+
+ Also, as the new mode configuration code has already taken care to enable
+ the CRT output, eliminate much of the load detection code which is simply
+ duplicating functionality from the general mode setting code. This should
+ result in faster load detection as this code will now run in no more than
+ one frame time. It does burn the CPU the whole time though, polling the
+ displayed scanline register.
+
+commit b930bb9d6da8c24dbe0949afb7bb2aa4bcb24687
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu May 3 13:44:12 2007 -0700
+
+ Disable vblank interrupts when no DRI clients are running.
+ (cherry picked from commit 6621dd71ada839f4c1742e9e5b272e924cee21d9)
+
+commit 3b769af53e0ef6ef9b56afd679446c73a0e63ea5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu May 3 13:44:12 2007 -0700
+
+ Disable vblank interrupts when no DRI clients are running.
+
+commit 775fc125aa7ecd0f054959ef210be2df4dc54345
+Author: Dave Airlie <airlied@airlied2.(none)>
+Date: Thu May 3 20:58:50 2007 +1000
+
+ i810: be a bit more verbose about disabling DRI
+
+commit 34f362d099d255f8f0bb34e9de30f953ee770163
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed May 2 15:40:49 2007 -0700
+
+ Fix typo s/i/index/ in LoadPalette for depth 16.
+
+ Reported by: Haihao Xiang <haihao.xiang@intel.com>
+
+commit f850d4727a2ad55c2116d0788f6684b2a0192d24
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed May 2 14:16:21 2007 -0700
+
+ Make up a fixed panel timing for DVO LVDS, and use DVOA for DVO LVDS.
+
+ The fixed panel timing will only be available when the LVDS is already on
+ at X startup.
+
+ So far, our only mostly-working LVDS driver is for the i830, and on i830 the
+ LVDS is always on DVOA, so use that for all LVDS chips. This may need to
+ change if we support the ch7017 I've seen used on embedded i845, for example.
+
+commit f3168e3b0c5664a322ca6bb1c81fc94844cb30ab
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed May 2 14:08:30 2007 -0700
+
+ Disable non-working GTT decoding on i830, and fix map/unmap of GTT.
+
+commit 1fc630f24f8ad9e304cb0761f9cacca2224203c4
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed May 2 13:29:21 2007 -0700
+
+ Add DVO[ABC] register debugging.
+
+commit d0ec37e9c0ceab1080700cd7be4a7cc58552d465
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 1 15:56:37 2007 -0700
+
+ Make the DVO output name LVDS if it's an LVDS chip.
+
+commit 490d05f99d2b62dd612d514d9ae0badbac9285ce
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue May 1 15:47:01 2007 -0700
+
+ Fix typo in previous commit with s/XF86_DRI/XF86DRI/
+
+commit c7bb34e83d7c459d932d01070cfeffbbf6c703ac
+Author: Dave Airlie <airlied@linux.ie>
+Date: Wed May 2 14:25:39 2007 +1000
+
+ disable all outputs on EnterVT
+
+ This disables all outputs on EnterVT as the SDVO output can confuse
+ the VGA output if the BIOS has enabled it on the same pipe but X
+ isn't going to use the SDVO.
+
+ Worked out on irc with keithp
+
+commit cae0ae237b79fa7d3a82dfc8d3fb595ccb6c63e1
+Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
+Date: Tue May 1 12:41:18 2007 -0700
+
+ Bug #10714: Fix build without DRI.
+
+commit 6748d620fbf39dd98982856c09256bdec0fc82a1
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 30 17:27:23 2007 -0700
+
+ Ignore VideoRam now that its original purpose is obsolete.
+
+ It had been necessary to allow more than a small amount of memory to be
+ allocated, but now those old small allocations people had configured are
+ getting in the way.
+
+commit a4f1a7872f6f959bb4bc6568face710bee3589de
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 30 17:13:09 2007 -0700
+
+ Allow physical-memory allocations within stolen memory.
+
+ Because stolen memory happens to be a contiguous block of high system memory,
+ we can just read the GTT entries for it to get physical addresses for our
+ allocations there if needed. This reduces fragmentation of the aperture space,
+ and will often reclaim up to 7 MB of memory that had been left unused since the
+ simplified aperture manager was put in place, but without reintroducing the
+ complexities of the old aperture manager.
+
+commit 7d0d34cfdcc67d07e7667e13a9413743853134f8
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 30 10:39:54 2007 -0700
+
+ Disable some clock gating functions documented to work incorrectly.
+
+commit 138ac8f36cb4e4b3776f313955372522646acbb2
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Sun Apr 29 14:43:19 2007 +0800
+
+ Alloc state mem buffer on 965G for xaa rotation
+
+ 965G needs state mem buffer to setup render pipeline.
+ Thanks Barry Scrott for report this.
+
+commit 0cd524e5411e35c8483c02ecc5062625809e6fc6
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed Apr 25 18:09:10 2007 -0400
+
+ Implement the custom I2C protocol used by the ivch DVO.
+
+ The ihch DVO uses a modified I2C addressing scheme as described
+ in section 5.2 of the data sheet. Implement this by over-riding
+ the I2C read and write word routines.
+
+commit 880314aabe6326ed56517034940f0e10fb16e866
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Apr 24 11:37:08 2007 -0700
+
+ CRTC Rotation under XAA wasn't hitting accelerated path.
+
+ The server rotation code is now using the root window in IncludeInferiors
+ mode rather than using the screen pixmap. Change the XAA Composite code
+ to check for this case now.
+
+commit b23eae55c8cdd73e0aba1bf7ced283d402ee6470
+Merge: 31bf269 cebdb8b
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Apr 19 20:38:18 2007 -0700
+
+ Merge branch 'origin'
+
+commit 31bf269afed0a830e79cbbd9d4b1ee9843af326c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Apr 19 20:03:41 2007 -0700
+
+ Update version to 2.0.0
+
+commit cebdb8bfc6170a0fb441039f4422917fd0c77e70
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Apr 20 10:54:34 2007 +0800
+
+ EXA: set enabling bits properly for i830
+
+ This was found when debug exa on a 865GV, we should set
+ pipeline state bits properly, otherwise the engine will hang.
+
+commit 60e891915af7d0f522c9c3f966599fa07779f7aa
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Apr 19 14:02:23 2007 -0700
+
+ Eliminate LinearAlloc option and code.
+
+ With the fixes to the 2D frame buffer allocation that allows up to 65536
+ lines of 2D frame buffer in XAA mode, the old linear allocation hacks are no
+ longer necessary.
+
+commit cca389769001c657435f056e1f1c26b0f52a48bd
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Apr 19 13:15:23 2007 -0700
+
+ Clean up 1.2 xserver build support.
+
+ Convert relative X server source path to absolute. Check for local copies
+ of needed header files before building, rather than requiring server source.
+ Remove extra duplicate -I elements in AM_CFLAGS in sub directories.
+
+commit 07797fee88d6be0dfb30394a419dd86f8a3c9095
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Apr 19 13:01:37 2007 -0700
+
+ Fix mismatching braces when XF86DRI_MM is not defined.
+
+ A closing brace was left inside #ifdef XF86DRI_MM while the matching
+ open brace was outside.
+
+commit 163c565527e8cda1f5a47c7fd63f04c80feaf3c7
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Apr 19 13:00:03 2007 -0700
+
+ Use I2C delay function instead of usleep.
+
+ usleep isn't always available, and we have an existing delay mechanism
+ available to use.
+
+commit 378ceea3d9ddbec7a08ac2f07f9a8cd9cf3cef36
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Apr 19 17:30:28 2007 +0800
+
+ Fix mem list order and remove extra unbind call when free memory
+
+commit db4b9e18810990e8900bdf54aa3091b876ea2658
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Apr 18 13:52:08 2007 +0100
+
+ Fix return status
+
+commit 3f5111940e35989d334aa99cd1b0eb26293ebf1b
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Apr 18 13:27:59 2007 +0100
+
+ Update read_response to include the try on PENDING status
+
+ and remove it from get attached displays call.
+
+commit 902388fa06f85486fe8010807ab53e4926cc979a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 17 14:21:25 2007 -0700
+
+ Don't try to init the XAA linear region unless we allocated memory for it.
+
+ Reported by JM Ibanez
+
+commit 8abecae202b609375b6754dbd5ecce3d59036daf
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 17 12:28:43 2007 -0700
+
+ Fix i852 EXA Composite acceleration setup.
+
+ Reported by JM Ibanez.
+
+commit 2dbe8d678b02b724c4f06255383f49bb4c2708b0
+Author: Timo Aaltonen <tjaalton@cc.hut.fi>
+Date: Mon Apr 16 14:14:19 2007 -0700
+
+ Fix build against xserver 1.2.
+
+commit a089ac11beb4c801928c17780401e913bc0d5257
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 17 11:01:05 2007 -0700
+
+ Add all the possible ivch slave addresses (still commented out).
+
+commit 37ee68a95ca8c86ebe9abafaaf55b060dd2a2f73
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 17 10:50:02 2007 -0700
+
+ Bug #10438: Fix 965 XV when sourcing from less than the full image.
+
+ Bob deinterlacing in MythTV, and the zoom options in totem would result in
+ attempting to source from outside the video instead of scaling appropriately.
+
+commit ac9181c014638dbeb334b40b4029d0ccb2b7a0fc
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Apr 17 16:30:17 2007 +0100
+
+ Check for the PENDING message when reading the attached
+ displays. Ensures the command has completed before continuing.
+
+ (probably need to check PENDING in other SDVO calls too)
+
+commit ab5bdee8a62c842ae32aaef57eb841ebcb644d2b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Apr 17 16:23:46 2007 +0800
+
+ EXA: fix i830 render
+
+ Fix tex blend pipeline in case that src/mask pict has no
+ alpha. Unmask color buffer write disable bits. These make
+ rendercheck run fine on 855GM.
+
+commit 1a29750b8dba1371d7d0802744cdf2f3bfa83c13
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Apr 16 16:21:39 2007 +0800
+
+ EXA: fix 830/845G pict format
+
+ Fallback in 830/845G when pict format is a8, x8r8g8b8 or
+ x8b8g8r8. The hw doesn't support them.
+
+commit 3a634bbd198650c1597dec4306d99928374c30f3
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Apr 16 15:14:49 2007 +0800
+
+ EXA: Add i830 supported pict format XRGB8888, XBGR8888
+
+commit 3bcb9a0b4ba7f3df346b5708617a7aafcbe2490a
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Apr 16 14:27:49 2007 +0800
+
+ EXA: i830 render misc fix and cleanups
+
+ Try to map texture stream when setup texture map, and use
+ correct order in load_immediate_1 cmd, which fixed crash on
+ 845GV. Also remove some flush cmds.
+
+commit 64c30cf896f8bde3ee74c92b970132ab91b418cd
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Apr 16 13:58:50 2007 +0800
+
+ Update intel.man with 965GM chipset support
+
+commit b67adb6de34cede0e31f02f26cd5ec7b1adfa586
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Apr 13 22:34:52 2007 +0800
+
+ Fix crash on G965 XAA with LinearAlloc option
+
+ We should alloc xaa_linear mem in LinearAlloc case, otherwise
+ we get crash when initializing xf86 fb manager.
+
+commit b5b243e4120d6a048fb6bbe8814fe3184271e9d9
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Apr 12 12:34:23 2007 -0700
+
+ Add license headers to 965 programs.
+
+commit 08cd5f9b0f086e51112008d50de48556372899f9
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 10 11:26:46 2007 -0700
+
+ Bug #10520: i810 manpage not installed despite users expecting it to be there.
+
+ Install it as an alias to intel.4x, since we're letting people load the driver
+ as "i810" still.
+
+commit bf9771e9711361632afe3abeeedca7ce03497005
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 9 15:26:05 2007 -0700
+
+ Don't use extended regexps in sed when not necessary.
+
+ Some seds require a flag to enable extended regexps.
+
+commit 656fbd952542ba5ddc9b018071008ceb38b1bd19
+Author: Brice Goglin <brice.goglin@ens-lyon.org>
+Date: Mon Apr 9 13:06:46 2007 -0700
+
+ Bug #10515: Fix module version number with more than one digit per field.
+
+commit aa850d3c633a510d787ee59e538e26e5c3acbf4a
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 9 11:44:25 2007 -0700
+
+ Turn off ALWAYS_SYNC in EXA.
+
+ This slipped in as a debugging aid, and never got turned off. The driver
+ appears to work fine without it on an i915 system, and for the non-default EXA
+ option, we'd rather see issues found than continue running with debugging aids
+ and hiding them behind bad performance.
+
+commit d2e75d8acde2541b85a0050d9e47182c1db7fc2c
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 9 11:34:57 2007 -0700
+
+ Avoid a magic number and correct a (currently harmless) ifdef in ResetState().
+
+commit 9ed446e12bd21b7c8222c6e63a03a8e2ec6b97e2
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 3 11:39:48 2007 -0700
+
+ It's 2007 now. Didn't I get the memo?
+
+commit d9d05b553ca1f98efc230ef13f34576122311ac1
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Apr 3 00:15:02 2007 -0700
+
+ Bump version to 1.9.94 for 2.0 RC4.
+
+commit eb45315b07624cb0506d539f523728a651efb798
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 2 18:20:33 2007 -0700
+
+ Move README to being a plain old text file.
+
+commit 9b78208f1ef1a8ee98f2aa139956659169e234ab
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 2 18:20:15 2007 -0700
+
+ Move a bunch of debugging verbosity under Option "ModeDebug".
+
+commit 9ea83d440d6b9e30d4627e34168226a6b4b2a841
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 2 11:39:27 2007 -0700
+
+ Update README source for new release notes.
+
+commit c6d0bf9fb6033339159d98dc2b9fe44759ad9de5
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Apr 2 10:09:43 2007 -0700
+
+ Remove long-stale TODO file.
+
+commit c59e5895a0ea1f219c8f63a02b429a024bd1ed66
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Apr 2 07:18:04 2007 +1000
+
+ make warning info only so ppl don't go reporting stupid bugs
+
+commit e119eaabb2ad1ffc1d83f18199f49c52ec71b0fe
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 30 17:09:18 2007 -0700
+
+ Warnings cleanup in ch7xxx.
+
+commit fd98e88d1a6e0e8d35bda868e7afcb78d2d11524
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 30 17:07:29 2007 -0700
+
+ Finish off some function renaming that was missed before.
+
+ Thanks to alanc for catching this.
+
+commit 274b99e5e750228eba9a67773725a40ebaa9bf56
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 30 17:06:43 2007 -0700
+
+ Don't forget the warnings CFLAGS in subdirectories.
+
+commit aa6a9abb34e93780c07563ab5b21d8c064ea0a1c
+Merge: 670c852 107ac12
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Mar 30 12:10:17 2007 -0700
+
+ Merge branch 'crestline-qa'
+
+commit 670c8521f18f01b9ea899ceb68d2a3dbb884b199
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 29 13:43:31 2007 -0700
+
+ Add missing file for old server compatibility build.
+
+commit 89c84f939f2dbed1d03a5f0e1daae23a229e47bc
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 29 13:40:52 2007 -0700
+
+ Whitespace cleanup in Makefile.
+
+commit 6cd3b2c2de4596886aab85988b16cf63e8887add
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Mar 27 15:34:32 2007 +0800
+
+ EXA: i830 fix blend action
+
+ i830_get_blend_cntl() has already added S8 offset.
+
+commit 35b3dd881a333569ce20ddf36b915b095757a1ba
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Mar 27 15:33:43 2007 +0800
+
+ EXA: fix i830 componentAlpha support
+
+ Pick fix from i915 render, change tex blend pipeline for CA.
+
+commit df96d9a11d038ad64673022ce14c24223b3bd34c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Mar 27 15:32:53 2007 +0800
+
+ EXA: fix i830 texture setup
+
+ Use LOAD_IMM_2 helper cmd for tex setup. Enable RepeatNormal
+ support. Fix A8 format, i830 can support it now.
+
+commit aa78e67553ffe8ca986330f0ee49b5414c71a71f
+Merge: 768821b 2191634
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 26 22:00:36 2007 -0700
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 107ac12867eda6b86212159db15c640d3490f2da
+Merge: 6548817 2191634
+Author: Nian Wu <nian.wu@intel.com>
+Date: Tue Mar 27 12:51:45 2007 +0800
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 768821bd3832aad01e44856199e60c6b7726a83b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 26 21:27:54 2007 -0700
+
+ Bump version to 1.9.93 for 2.0RC3.
+
+commit 2191634dd67b3219bb88f365bcf951d5a58140e8
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Mon Mar 26 14:58:41 2007 -0700
+
+ Add Solaris to list of OS'es with agpgart in man page
+
+commit 1c809f92467f97b098bcc89d66e60f6f88d9bade
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 26 13:03:28 2007 -0700
+
+ Update .gitignore.
+
+commit f7befe50af4c13554d1f7aee6b05848ac312411b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 26 13:01:11 2007 -0700
+
+ Power on the LVDS B-channel pairs only when we've chosen dual-channel mode.
+
+ It was basing off of the clock rate, but we have an override to use the
+ existing dual channel state when we can detect it, so the two settings were
+ conflicting.
+
+commit 827dc457a4fd0b97c95ec696ec9c3cd2f4a4becb
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 26 12:45:23 2007 -0700
+
+ Update manpage to remove Rotate option and point at xorg.conf instead.
+
+ While here, update a few other bits as well.
+
+commit 654881794ae1ad7214e85091b9015ae0fbdc5ddc
+Merge: 6de3edc d572771
+Author: Nian Wu <nian.wu@intel.com>
+Date: Mon Mar 26 17:00:11 2007 +0800
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit d5727717c9141be28a69b1154ccd23c23207f8f6
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sun Mar 25 23:44:59 2007 -0700
+
+ Switch TV_FORMAT property to format XA_ATOM
+
+ This allows the driver to report the set of valid formats in the property
+ data.
+
+commit 6de3edcb52e6258f1af75e4f4bef73de1698445d
+Merge: d874aa3 1e6e675
+Author: Nian Wu <nian.wu@intel.com>
+Date: Sat Mar 24 17:00:13 2007 +0800
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 1e6e675524461ef0eb1983de89e2877426571a55
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Mar 23 23:42:52 2007 -0700
+
+ Eliminate calls to RRPostPendingProperty.
+
+ RRPostPendingProperty has been removed in favor of RRPostPendingProperties,
+ and that call is now managed outside of the driver.
+
+commit 28da6f4e307880326dd553f50fe3fff3b9be9f4f
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Mar 23 14:36:42 2007 -0700
+
+ Record 3D state loss at EnterVT in last_3d value.
+
+ last_3d set to LAST_3D_OTHER indicates that the 3D hardware has unknown
+ state.
+
+commit ab19439cf4592e4607dc0bfc602aba3d56645a42
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Mar 23 14:34:27 2007 -0700
+
+ Don't call AdjustFrame on EnterVT.
+
+ AdjustFrame is strictly for legacy compatibility; calling it on EnterVT
+ wrecks crtc positions.
+
+commit d874aa31599da4777438cc51469afe9b66601f55
+Merge: 94dbc37 26f32ef
+Author: Nian Wu <nian.wu@intel.com>
+Date: Fri Mar 23 17:00:12 2007 +0800
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 26f32ef680a19e63af4b7c8c84141fe32263f298
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Fri Mar 23 01:17:58 2007 -0700
+
+ Property size is in units, not bytes.
+
+ Several places were using byte lengths instead of unit lengths for
+ properties.
+
+commit f48dc501fbf74e0ac348f0b77750016597849ef4
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Fri Mar 23 01:08:08 2007 -0700
+
+ TV output properties: TV_FORMAT, LEFT, TOP, RIGHT, BOTTOM.
+
+ Remove TV format from mode name, instead use an explicit output property and
+ split the input resolution from the tv format. Add properties to set the
+ blank area on all four sides of the image.
+
+commit 94dbc3725358d63fe0ac8e6749489c993d24ede2
+Merge: 28af380 20b2685
+Author: Nian Wu <nian.wu@intel.com>
+Date: Thu Mar 22 17:00:15 2007 +0800
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 20b26854abdacb6dc45cba2d81d515b2e47e25f1
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Mar 22 10:33:15 2007 +0800
+
+ EXA: don't smash vertex header in G965
+
+ Originally we smashed vertex header to store texture
+ coordinates, this is working as we only use sf/wm kernel
+ and disable all other stages on pipeline. But better to
+ not do this. This also cleans up vertex elements state
+ and makes vertex buffer order looks "normal".
+
+commit 28af380ab133eb14d21dc650c77bdbab66576255
+Merge: 300e893 e06c5f7
+Author: Nian Wu <nian.wu@intel.com>
+Date: Wed Mar 21 17:00:04 2007 +0800
+
+ Merge branch 'crestline' of git://otc-graphics.jf.intel.com/git/xorg/driver/xf86-video-intel into crestline
+
+commit e06c5f727fb2e2de111ac9e691a877c56d2ca1b4
+Merge: 0202399 3025fa0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Mar 21 15:04:21 2007 +0800
+
+ Merge branch 'master' into crestline
+
+commit 02023998663cc7f0735fadfb1719d93dc2e5a112
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Mar 21 00:00:56 2007 -0700
+
+ Whitespace and symbolic reg names cleanup in i830_panel_fitter_pipe().
+
+commit 3e9ec78b4f54defb9986e11e6f2ac3475755849d
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 20 23:58:48 2007 -0700
+
+ Set the panel fitter to the right pipe on Crestline.
+
+commit 3025fa0fb2bf5ace7076796e45e2560fe8410e8d
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Mar 21 14:50:45 2007 +0800
+
+ EXA: try to enable rotation for G965
+
+ The new sf/wm should handle the texture sampling only in
+ rotated case. Also fix possible hole in VUE slot.
+
+commit a50009604152bf9237c40bd098b3b1da3d018929
+Merge: 0a612e7 2239448
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 20 23:32:19 2007 -0700
+
+ Merge branch 'master' into crestline
+
+ Conflicts:
+
+ src/i810_reg.h
+ src/i830_display.c
+
+commit 300e893cec19dca48e00ee25014b8714dc13b278
+Merge: 96e8699 0202399
+Author: Nian Wu <nian.wu@intel.com>
+Date: Wed Mar 21 08:55:50 2007 +0800
+
+ Merge branch 'crestline' of git://otc-graphics.jf.intel.com/git/xorg/driver/xf86-video-intel into crestline
+
+commit 223944878cf38f86580df5a7d3102d86cfc061b9
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 20 14:33:53 2007 -0700
+
+ Attempt to fix single/dual-channel issues on i9xx LVDS panels.
+
+ - Use the existing single/dual-channel state when available, as changing it
+ doesn't appear to work out.
+ - Set the power state of the CLKB and B0-B3 pairs according to whether
+ choose to go dual-channel or not.
+ - Restore the LVDS register at the appropriate point (before DPLLs are
+ re-programmed.
+
+commit 96e86994f3d1b4938e99a751454ee99bebfe40d3
+Merge: f465c23 0a612e7
+Author: Nian Wu <nian.wu@intel.com>
+Date: Tue Mar 20 13:11:09 2007 +0800
+
+ Merge branch 'crestline' of git://otc-graphics.jf.intel.com/git/xorg/driver/xf86-video-intel into crestline
+
+commit 0a612e7115ff993bb8e9a00df13c0b0d20122fd6
+Merge: 8bb6778 4c4faf2
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Mar 20 11:34:40 2007 +0800
+
+ Merge branch 'master' of git://proxy.ims.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+ Conflicts:
+
+ src/i830_display.c
+
+ Change LVDS output and postread like upstream. This might
+ need to be retested on 965GM LVDS.
+
+commit 4c4faf260eb4dad1b1919c6168fa9ef477b98a39
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 19 13:36:37 2007 -0700
+
+ Set the CURSOR_SIZE register when present.
+
+ Failure to do so gets you a lot of pretty colors.
+
+commit 64c14204453bea3f98d19861c450612e718e6c69
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 19 13:35:43 2007 -0700
+
+ Print the mode actually being set per pipe.
+
+commit 3ce802414a20ca8af128a00e6925a099dd90ceb4
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 19 11:35:11 2007 -0700
+
+ Add debug output for ADPA.
+
+commit c21b88d838fda1f00f6f6bcfe7855d32543c6f3f
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 19 10:45:58 2007 +0100
+
+ Fix build when DAMAGE is not defined.
+
+commit 991719c21a6cc1b5d9b7cbe30d4b333718b3e686
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Mar 18 23:05:33 2007 -0700
+
+ Make i830_sdvo_write_sdvox write everything twice.
+
+ For some reason, certain chips don't correctly enable the SDVO hardware when
+ this register is written only once. We're following what the BIOS code does
+ and writing it twice now, but with extra posting reads to boot. Yes, this is
+ cult-and-paste, but it fixes problems found on deployed hardware.
+
+commit 9118122a232d4cf7760bcb0874fe970c25251378
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Mar 17 21:34:03 2007 -0700
+
+ Allocate 4 separate buffers for HW Cursors on Linux.
+
+ Linux cannot allocate a large fixed buffer for the HW cursors as needed for
+ FreeBSD; instead, allocate four separate buffers. The code now prefers to
+ allocate one buffer (less overhead) and falls back to separate buffers only
+ when necessary.
+
+commit 62a5399d70ac3f8579441d617f8d80c94942a32a
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Mar 17 21:32:36 2007 -0700
+
+ Elide I830DRIClipNotify for older DRI versions.
+
+ I830DRIClipNotify is passed to newer versions of DRI; don't include it in
+ the server when building against older versions.
+
+commit 05e0021147a89254182c277007236448f315231c
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Mar 17 21:31:04 2007 -0700
+
+ Cast ARGB cursor address to CARD32 * to eliminate warning.
+
+ While we're just doing a memcpy, it's nice for the two argument types to
+ match.
+
+commit d05bb5362e986c9d27bc03c7e1a939ba28824810
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Mar 17 20:21:59 2007 -0700
+
+ Increase DDC I2C RiseFallTime to handle older monitors
+
+ Changing this value slows the entire I2C bus down, making it far more
+ reliable on older monitors. Note the same change has been made in the core X
+ server code; this change is included here to ensure that older X servers
+ work reliably with this driver.
+
+commit 44d1b544cec2e75735d2e27d66a9240317b962c2
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Mar 17 17:15:43 2007 -0700
+
+ Build fix for pre-XF86DRI_MM environments.
+
+ Misplaced brace broke builds with older DRM libraries.
+
+commit a58befe9d243bd562cb4b2f08ec5c9f754148c20
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Mar 17 17:12:37 2007 -0700
+
+ Remove extra (and incorrect) I2C ByteTimeout setting.
+
+ Setting the value correctly and then immediately breaking it caused many I2C
+ transactions to timeout with slow monitors. Oops.
+
+commit 9d6d9ace4bd3180a4484321c3b96a83bc4adaf84
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 16 19:41:54 2007 -0700
+
+ Move vendor ID check in the utils to after pci_device_probe.
+
+ Even current libpciaccess seems to require this.
+
+commit a117bc9e3eb824f2056ee6416859ea3ab1fdcc30
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 16 19:39:34 2007 -0700
+
+ Add the (afaict) correct ch7017 I2C slave address.
+
+commit 29446cdb4f72e12c5249b0d4b79ea56d9fe19934
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 16 19:18:37 2007 -0700
+
+ Fix compile failure due to needed types being in inttypes.h on Linux.
+
+commit 213394fbaaf353404cbb3aaa4c20860f48ee1079
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 15 19:13:28 2007 -0700
+
+ Fix crashes and other failures when a cursor allocation fails.
+
+ Now, we allocate one single block of memory for cursors, and either succeed or
+ fail once, rather than trying to support partial fallback modes that generally
+ resulted in pain due to being untested. In particular, this fixes cursors on
+ FreeBSD, which only allowed one large physically-contiguous allocation.
+
+commit 316ee682d342556b65cbd60409201591e916aac5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 15 18:53:55 2007 -0700
+
+ Don't reload the cursors if we haven't set up the screen yet.
+
+ This avoids a crash during preinit if we set a mode for load detecting.
+
+commit 8b06ab50bbd79dfaf4c90a6f76116ace64b85b77
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 15 10:12:14 2007 -0700
+
+ Fix sparse warnings about using 0 for NULL.
+
+commit 8ae6ad93329e2842c6f2d5b20ffeb0c14d10c0de
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Mar 15 00:00:51 2007 -0700
+
+ Use new driver-independent CRTC-based cursor layer.
+
+ This eliminates all of the cursor rotation code and other cursor management
+ infrastructure, leaving a fairly simple hardware layer in its place.
+
+commit 9fbef2de9edbbed9c2f6a80c4074b9b245547c45
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Mar 14 12:34:34 2007 -0700
+
+ Bump to 1.9.92 for RC2.
+
+commit 555b801a75cafa082808bc9bb683e700fc97d79a
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Wed Mar 14 11:41:50 2007 +0100
+
+ Make sure the legacy texture area is there when needed.
+
+ This currently only matters when the DRM memory manager is not available and
+ Option "Legacy3D" "off" is specified, but that hasn't always been the case and
+ might change again in the future.
+
+commit 66fdb08c83d353fbe4e917900c54b555c869eb80
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 17:07:10 2007 -0700
+
+ Refine the i855 LVDS clock code. In particular, p2 is always 14.
+
+ This gets correct clocks detected on most harware. The SSC is always assumed
+ to be 66Mhz, which may not be true, but we'll fix that when we find example
+ hardware.
+
+commit 44708bdd9ebfef0328302c9a964b80deb46e57c6
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 16:55:38 2007 -0700
+
+ Get SDVO DPMS working on the Mac Mini by writing SDVOB and SDVOC together.
+
+ Also, add code for setting the encoder power state like the BIOS does, but this
+ doesn't appear to work. We do much more than the BIOS does in powering things
+ down, so perhaps that's interfering somehow.
+
+commit 5135b3a79f9c30ebce78c84c49846bba83607fed
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 10:21:06 2007 -0700
+
+ Use a POSTING_READ(reg) macro instead of using the (void)INREG(reg) pattern.
+
+commit 578da7ca705c5a58c0bd397b0831e2f95140f8ae
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 10:11:29 2007 -0700
+
+ Add PCI write posting protection to i2c putbits.
+
+commit cf33abe43bd95c9437fad8e6201a24084ff96cb8
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 10:08:57 2007 -0700
+
+ Add write posting protection for the SDVO DPMS-on path.
+
+commit 9d30f0007203157e6b82fa0ffc57324490eb2ca0
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 10:04:06 2007 -0700
+
+ Replace #if 0ed LVDS register setting with updated comment.
+
+commit 9c17c6e9c63563cad5edff837519a73fe0afe313
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 09:55:49 2007 -0700
+
+ Add write posting protections to relevant register writes in the mode-set path.
+
+commit 2824ec7ccbf44ba413a6133f735f4a548c73b3cd
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 13 09:53:35 2007 -0700
+
+ Fix uninitialized string use in SDVO non-TMDS case.
+
+commit f465c23750adf908c0ea874f95aad98ebd2f1015
+Merge: d33e8da 1ed3843
+Author: Nian Wu <nian.wu@intel.com>
+Date: Tue Mar 13 17:00:44 2007 +0800
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 1ed3843f73a0d8efa405daff3483ebe70bf6134f
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 12 17:47:32 2007 -0700
+
+ Make the 965 use Y-major tiling for the depth buffer, as required by the spec.
+
+ An example of the failure can be seen with the reflect demo when set to
+ depth buffer mode.
+
+ Reported by: Haihao Xiang <haihao.xiang@intel.com>
+
+commit 7aa257154685bd2520649ce87a3a84e55644d02c
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 12 19:00:14 2007 +0100
+
+ Fix build against released libdrm.
+
+commit 7c561956a28e90667fef140bc3cfa0edca464f15
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 12 18:55:27 2007 +0100
+
+ Defer flipping pages back to normal until the end of the DRI block handler.
+
+ Doing it earlier can result in the wrong page being visible, giving the
+ appearance of a frozen X server.
+
+commit fe59ab9f562fd10118563d80eb3351a4d3b48b3f
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 12 13:03:47 2007 +0100
+
+ Disable page flipping if the DRM is older than 1.9.
+
+ Older versions don't support the functionality we need.
+
+commit ba55ff15df974197bebd871e28bb96d817ae41c7
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 12 13:01:00 2007 +0100
+
+ Fix attempt to flip pages back to normal when the last 3D window disappears.
+
+ When this succeeds, 2D rendering does not have to be synchronized to back
+ buffers until the next 3D window appears.
+
+commit c4a23c5ef8ce56ee0fe547fbc7c6623c021f801b
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Sat Mar 10 16:15:33 2007 +0100
+
+ Remove unused have3DWindows from pI830.
+
+commit d33e8daa6874ced978d2a1f687c48922555f2524
+Merge: 58aeb87 797aa6f
+Author: Nian Wu <nian.wu@intel.com>
+Date: Mon Mar 12 09:03:52 2007 +0800
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 797aa6fcb1231587bde1efb47bc8430c4c8d8110
+Author: Dave Airlie <airlied@linux.ie>
+Date: Sun Mar 11 12:58:50 2007 +1100
+
+ fixup missing assert includes
+
+commit 43a80ef9094efcb49027c83f0e726f907fecfbb2
+Author: Dave Airlie <airlied@linux.ie>
+Date: Sun Mar 11 12:58:26 2007 +1100
+
+ fixup brace alignment for older X.org
+
+commit 0d33fd3d03cef3a7e63d88ae441354390b37a937
+Author: Dave Airlie <airlied@linux.ie>
+Date: Sun Mar 11 12:58:02 2007 +1100
+
+ add XMODES flags to the i2c drivers
+
+commit 3c2d6e07bdf8daef6486b594aef0d22460eb2585
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Fri Mar 9 23:49:46 2007 +0100
+
+ Don't crash when the SAREA pointer is NULL.
+
+commit 7518b8959ee7598f3526365a83ea7e143a5d6a4e
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Fri Mar 9 19:50:03 2007 +0100
+
+ Revert change accidentally included in previous commit.
+
+commit 1991a90ae90b388c914985d20d6f8c3637856e9a
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Fri Mar 9 19:47:13 2007 +0100
+
+ Update SAREA pipe sizes in i830_crtc_dpms instead of i830PipeSetBase.
+
+ This allows setting the size to 0 when a pipe gets disabled.
+
+commit aef161853033907c6916337cebe88c8f111dd542
+Merge: 1b54ee4 14ee919
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Fri Mar 9 15:14:48 2007 +0100
+
+ Merge remote branch 'origin/master' into i830-pageflip
+
+commit 1b54ee493fb96f944aa81e56fa6f00a8067f87fc
+Merge: e972265 81722a2
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Fri Mar 9 15:13:50 2007 +0100
+
+ Merge remote branch 'origin/master' into i830-pageflip
+
+ Conflicts:
+
+ src/i830_dri.c
+
+commit 14ee9195d203192d3f613919f230b20b900ffdba
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Mar 7 13:00:03 2007 -0800
+
+ Bug #10157: Fix cursor corruption on server regen.
+
+commit 58aeb87f2e335d15eba73ce9dd1982e867c52403
+Merge: a4e7e81 81722a2
+Author: Nian Wu <nian.wu@intel.com>
+Date: Wed Mar 7 16:02:03 2007 -0500
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit a5f0522b1d34236278861fe15bac2df099f0a2c7
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Mar 7 15:49:47 2007 +0000
+
+ Add some additional checks when XAA is enabled.
+
+commit 81722a21d232fa6cfb11fbe3d984abab50e89bcc
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Mar 6 23:16:53 2007 -0800
+
+ Remove usage of 'shadow' module. Use xf86CrtcScreenInit.
+
+ With the new mode setting code, rotation is handled outside of the driver,
+ so the old usage of the 'shadow' module is no longer needed. Code to
+ initialize the crtc structures has been moved out of the driver and into the
+ modes code.
+
+commit 04f50961e2f1610c39e7e4b45811f2a6b517cad6
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 6 14:23:06 2007 -0800
+
+ Bug #9898: Fix a crash with NoAccel set.
+
+commit b07dfbba5df7728232b38211c623185116dcea5c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 6 13:59:14 2007 -0800
+
+ Remove leftover code that was disabling tiling after we set it up.
+
+commit 94c37f35872487c04136fb659526bffefd9c46ad
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 6 13:57:04 2007 -0800
+
+ Make the depth buffer X tiled instead of Y, and fix a Y tiling nit on 945.
+
+ The previous code claimed to set the depth buffer up as Y tiled, but due to
+ lack of implementation in SetFence, it ended up being X tiled. Actually
+ setting the Y tiling flag in the new version broke the depth buffer, so just
+ switch the depth buffer to X tiling, which appears to work fine.
+
+commit a4e7e814a24dbe30a33e6ad45baeb41d190a2724
+Merge: 862088b 4042b27
+Author: Nian Wu <nian.wu@intel.com>
+Date: Tue Mar 6 16:01:40 2007 -0500
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 30bb719ca0abc2599ffb89e59f297fa9a0a00c3c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Mar 6 12:23:43 2007 -0800
+
+ Continue to allocate the legacy texture pool by default.
+
+ This is a partial revert of 7358642e64ab6d13bc1dc1a44703ee66d715ff61
+
+ If we don't allocate it now, when the DRM version is too low there won't be any
+ memory allocated and DRI will fail. Instead, waste the memory in the i915tex
+ case for now, and leave fixing it right (check DRM version up front and decide
+ which memory manager to set up) to later.
+
+commit e972265261c421268e4fb806e587378d0adec577
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Mar 6 16:54:16 2007 +0100
+
+ Fix build failure.
+
+ Not sure how I missed this before... Thanks to Todd Merrill for reporting.
+
+commit 862088ba6a91d3e7cf8d37126b1d9f4ee03a1f73
+Merge: 11e9158 d717d9d
+Author: Nian Wu <nian.wu@intel.com>
+Date: Tue Mar 6 07:43:16 2007 -0500
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 1e1b45fa6ed1683cba4ae73ac98933e74c3ab9d6
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Mar 6 10:28:41 2007 +0100
+
+ Fix reduced DRI memory manager size.
+
+ pI830->mmSize is in kB.
+
+commit 3c08bc7d6974a1a6cf5f9cb81898617032966c52
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Mar 6 10:14:47 2007 +0100
+
+ Fix some conditionals related to triple buffering.
+
+ Guard code that dereferences pI830->third_buffer with tests for that instead of
+ pI830->TripleBuffer. It could happen that we want to enable triple buffering
+ but (temporarily) can't because the third buffer couldn't be allocated.
+
+commit c25cfafbe1eb380b58b5fc16e94f5cc6f422f0cd
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Mar 6 10:00:12 2007 +0100
+
+ Unify allocation of back buffers.
+
+commit e787d7b698d320a7c45df35d58c5113413561fe2
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Mar 6 09:35:42 2007 +0100
+
+ Remove warnings about potential artifacts with page flipping and mixed 2D/3D.
+
+ The artifacts only seemed to occur when EXA was falling back to software for
+ the front buffer.
+
+commit 6c299aea8e87e72c68c96c03594706c976601ede
+Merge: 3308152 4042b27
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Mar 6 09:28:52 2007 +0100
+
+ Merge remote branch 'origin/master' into i830-pageflip
+
+ Conflicts:
+
+ src/i830_display.c
+ src/i830_driver.c
+
+commit 4042b27f01fdb94e7fc0d4e991e054fff88479ea
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Mon Mar 5 22:32:52 2007 -0800
+
+ Move EnterVT mode setting code to xf86SetDesiredModes.
+
+ Make the application of crtc desiredModes generic code instead of
+ per-driver by creating xf86SetDesiredModes from the code that was in EnterVT
+ and calling it.
+
+ Also, move the frame buffer clear until just before mode setting to make
+ sure things are mapped correctly.
+
+commit 55ee46aebbf1ec1a8ce914fbd0c8894fc857db8f
+Merge: 5c72014 50aa094
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Mar 6 12:45:08 2007 +0800
+
+ Merge branch 'master' of git://proxy.ims.intel.com:9419/git/xorg/driver/xf86-video-intel
+
+commit 5c720147e2b86ca4046b7c3812c1ca6b0fb78c9d
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Mar 6 12:44:04 2007 +0800
+
+ EXA: try to always alloc exa i965 state buffer in stolen mem
+
+ I think this is a safe way to work around any possible chip
+ error.
+
+commit 11e91586169b4f4bf2b41c0e0e620a69670c2f07
+Merge: a24962a 0150270
+Author: Nian Wu <nian.wu@intel.com>
+Date: Mon Mar 5 16:00:20 2007 -0500
+
+ Merge git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit a24962af9ed39fabca0152cae1265a29fe6237d3
+Merge: 35e9310 8bb6778
+Author: Nian Wu <nian.wu@intel.com>
+Date: Mon Mar 5 16:00:11 2007 -0500
+
+ Merge branch 'crestline' of git://otc-graphics.jf.intel.com/git/xorg/driver/xf86-video-intel into crestline
+
+commit 50aa09425f54c4eeca7f8b0fae9579209b10b9c4
+Merge: d717d9d c2c6255
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Mar 5 11:28:46 2007 -0800
+
+ Merge branch 'modesetting'
+
+commit c2c62559e702e7de1fa2ef309fa647ab13564dc3
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Mar 3 23:12:54 2007 -0800
+
+ Move single mode setting code to X server.
+
+ Code to drive the global configuration from a single mode setting operation
+ (from RandR 1.1, XFree86-VidModeExtension or XFree86-DGA) has been included
+ in the X server now, so remove it from this driver.
+
+commit 35e9310ef59873877422dcaf9a65b38789fc8ad6
+Merge: c8e6f0b b27fa2c
+Author: Nian Wu <nian.wu@intel.com>
+Date: Mon Mar 5 09:01:55 2007 -0500
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 8bb677889d3f71cde671f17a3589939acad2c3b3
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 5 05:08:51 2007 -0800
+
+ Fix 965GM SDVO by not setting fields in SDVO[BC] which have new meanings.
+
+commit 330815251dee808754b328cd2fd60db39f2460eb
+Merge: 50ba1ff 0150270
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 5 13:05:20 2007 +0100
+
+ Merge remote branch 'origin/master' into i830-pageflip
+
+ Conflicts:
+
+ src/i830.h
+ src/i830_dri.c
+ src/i830_dri.h
+ src/i830_driver.c
+ src/i830_memory.c
+ src/i830_xaa.c
+
+commit d717d9d566fe3c0866b06840114e1c1990bd7be0
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 5 12:57:21 2007 +0100
+
+ Fix DRM memory manager initialization.
+
+ It takes the offset and size in pages, not bytes.
+
+commit a0c83af3430b6705ab2ecae59085d1c74e890c19
+Merge: c0f99b4 bc20b54
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Mar 5 03:37:53 2007 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 7358642e64ab6d13bc1dc1a44703ee66d715ff61
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 5 11:53:09 2007 +0100
+
+ Fix handling of new vs. old texture pools.
+
+ Only one of them can be active.
+
+commit 50ba1fff886a7f51b178ac6d3a1ba79a3014b214
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Mon Mar 5 10:22:07 2007 +0100
+
+ Be more verbose when page flipping can't be enabled for various reasons.
+
+commit 015027034e970f1e3bb6ab239f7e0119235e404f
+Merge: 9a51064 bc20b54
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Mar 4 21:49:00 2007 -0800
+
+ Merge branch 'modesetting'
+
+ Conflicts:
+
+ configure.ac
+ src/i830_driver.c
+ src/i830_modes.c
+ src/i830_video.c
+
+commit af565872a49a1a464ee4154c27136660b184c4c1
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Mar 4 21:20:33 2007 -0800
+
+ Set version number to 2.0 RC1 (1.9.91).
+
+commit bc20b54c34088356a277beaebcc90bb4a7063e19
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Mar 4 19:35:44 2007 -0800
+
+ Support new CRTC/Output prepare/commit hooks.
+
+ New hooks replace explicit invocation of DPMS functions to manage mode
+ setting sequencing.
+
+commit b27fa2c257ccc49c6f29a20a3e672ebaaf58e7aa
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Mar 4 17:15:45 2007 -0800
+
+ Fix a crash with XAA and DRI disabled after the allocation rework.
+
+commit fc7d43c2b6b98be597152fbd88024273edd931d0
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Mar 4 17:14:30 2007 -0800
+
+ Use -f for ln of server source. Otherwise, changing paths didn't take effect.
+
+commit b7b6063e62927dd135e118c433f48b4d0b5fe246
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Mar 4 15:53:50 2007 -0800
+
+ Add a little BIOS dumper program.
+
+ This isn't actually tested yet as libpciaccess doesn't do rom access on
+ non-linux yet.
+
+commit 6aeb855b9d4e03d458773240a9c0c9c1edd3e403
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Mar 4 17:11:40 2007 -0800
+
+ Shadow pixmaps use fixed offset of 0.
+
+ Shadow pixmap contents are copied from the main frame buffer and contain
+ only the bits displayed by the crtc, not the whole frame buffer. The crtc
+ origin is always interpreted by the shadow copying code, the frame buffer
+ itself doesn't move.
+
+commit c8e6f0bac13e0e407f9771b1bbf126f023c1511b
+Merge: 0ed5a2f c0f99b4
+Author: Nian Wu <nian.wu@intel.com>
+Date: Sun Mar 4 09:00:12 2007 -0500
+
+ Merge branch 'crestline' of git://otc-graphics.jf.intel.com/git/xorg/driver/xf86-video-intel into crestline
+
+commit 7d08f720a95499e8d00dcd7174f06731de420017
+Merge: dd24d2a 435d355
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Mar 3 23:13:03 2007 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 435d35558d8135a2c1724dfd813fb4a9a4e14178
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Mar 3 22:46:31 2007 -0800
+
+ Update for Aaron's xserver changes.
+
+ Add xf86CrtcConfigFuncs to xf86CrtcConfigInit
+ Add canGrow option to xf86InitialConfiguration
+
+commit c0f99b4962553e560a5cb882a5060d95db5477a4
+Author: Keith Packard <keithp@gamba.jf.intel.com>
+Date: Sat Mar 3 22:36:46 2007 -0800
+
+ LVDS dither control moved from PFIT to LVDS register for Crestline
+
+ The LVDS register now contains lots of new controls for dual-channel LVDS control
+ along with dither enabling. The PFIT register has a lot fewer controls as a result.
+
+commit 0fa3d4f51b5ee0dba3882fd74b6ac4e7da708f8f
+Merge: 10655c4 fd52d63
+Author: Keith Packard <keithp@gamba.jf.intel.com>
+Date: Sat Mar 3 21:02:17 2007 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 0ed5a2fdcfe9674175aa9af155c20695ef41cadc
+Merge: 7ba80cc fd52d63
+Author: Nian Wu <nian.wu@intel.com>
+Date: Sat Mar 3 09:00:20 2007 -0500
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit fd52d635603b7093c5a2b7fa9c987cf59f9be27c
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 2 13:44:57 2007 -0800
+
+ Add a WIP UploadToScreen implementation. This almost displays right.
+
+commit ca0fa875e8bb5cb778d4db7d8053ec0a5ae34ef4
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 2 11:46:45 2007 -0800
+
+ Move EXA offscreen memory back after framebuffer to avoid fallbacks.
+
+ Without this, the EXA code decides that the framebuffer is not in video
+ memory because it's not located between the start of video memory and the end
+ of EXA allocator memory. We should either have EXA let the driver decide if a
+ pointer is in video memory, or add a new field for "end of video memory" (not
+ just end of EXA offscreen allocation), but this fixes things for now.
+
+commit 5a73624b9bcce0004e5b72c74667c9dd504b9c3e
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Mar 2 11:03:16 2007 -0800
+
+ Fix a crash when an ARGB cursor allocation had failed.
+
+commit 7ba80cc3a5e0f469e3ee55c7537fdc952cd85911
+Merge: 9796cb7 d5df52b
+Author: Nian Wu <nian.wu@intel.com>
+Date: Fri Mar 2 09:01:46 2007 -0500
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit d5df52be59a7dd950e73336ce5698e73480108b0
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Mar 1 08:35:13 2007 -0800
+
+ Actually add the files for reg_dumper.
+
+commit 9796cb7ac4bd74d5336986bb194ff5875b028121
+Merge: 42deb1e 1f5d166
+Author: Nian Wu <nian.wu@intel.com>
+Date: Thu Mar 1 09:02:22 2007 -0500
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 1f5d1666c8386ca4597c6f2c1ec239f9d821da4c
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Feb 28 16:27:55 2007 -0800
+
+ Add a non-installed command line tool using libpciaccess to dump registers.
+
+ This reuses the i830_debug.c code, so we can run that from the console or from
+ the BIOS-based X server to debug some remaining issues.
+
+commit cd1d4b398ec91d551bdaaa26c769e5e6a9442df1
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Feb 28 09:47:38 2007 -0800
+
+ Many fixes to mode_get, mode_set, clock limits, and register dumps on i855.
+
+ This should fix a number of issues with i855s, particularly with integrated
+ LVDS panels.
+
+commit 36cad3fcb65e3dcd88e58e301cd60adb121cb96b
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Wed Feb 28 17:52:42 2007 +0100
+
+ Update vblank pipe setup when setting a mode.
+
+commit b5316fb2623e9630cbd58020e0a7c95bf354c587
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Wed Feb 28 17:50:56 2007 +0100
+
+ I830DRIClipNotify: Fix initialization of crtcBox[1].[xy]2.
+
+commit 42deb1e10fc445d152b74e2b225daeaee2abb3d1
+Merge: 76aac38 3e8e75e
+Author: Nian Wu <nian.wu@intel.com>
+Date: Wed Feb 28 09:00:24 2007 -0500
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 76aac382659bc1dab7dca078f703b9cf48b4ad74
+Merge: 42fc06c 1ac83f5
+Author: Nian Wu <nian@tinderbox.sh.intel.com>
+Date: Tue Feb 27 14:42:42 2007 -0500
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 3e8e75e5d83a2fa7e9fc6e9a3fbb07dac548ea5a
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Feb 27 16:48:48 2007 +0800
+
+ Revert "EXA: enlarge 965 exa state buffer size"
+
+ This reverts commit 1ac83f51ee46d65237eae1b5c767e106ac9e29bc.
+ oops, current exa state + kernel program size + scratch space
+ is actually ~36KB.
+
+commit 1ac83f51ee46d65237eae1b5c767e106ac9e29bc
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Feb 27 13:58:47 2007 +0800
+
+ EXA: enlarge 965 exa state buffer size
+
+ Origin size seems break all render, be sure to assign enough
+ mem. 80k works fine for me.
+
+commit acd9f3e28fcf5e91e09d8bdca4cc58681b1fc92a
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Feb 27 13:56:31 2007 +0800
+
+ Fix typo when assign overlay reg mem pointer
+
+commit 5b765065c0bdf671b60d8a2fe512f6307f753eab
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Feb 26 17:25:57 2007 -0800
+
+ Consolidate shared structure allocation to the start of ScreenInit.
+
+ Previously, the structures would get allocated unnecessarily once, and
+ wouldn't get reallocated in time at server regen.
+
+commit 6ed28c5aa34ff1d8b99a8d4721ddac7b9cac41ed
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Feb 26 17:12:44 2007 -0800
+
+ Fix XV issues on 965 after the allocation rework
+
+commit 36bfeb890aeb17a8ee058790dd69b4e9aba644a1
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Feb 26 16:58:33 2007 -0800
+
+ Move the initial EnterVT to after we've set up acceleration.
+
+ This fixes a crash with initial rotation and EXA due to EXA not being
+ initialized in time for the shadow pixmap setup.
+
+commit 732885c08daaf17034da8f4855d0b957ec3df9d7
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Feb 26 15:04:56 2007 -0800
+
+ Bug #9604: Align the sizes of allocations to page increments as well.
+
+ Without this, the 965 DRI driver fell over when pitch * height wasn't
+ page-size aligned. Since the allocator only allocates at page-aligned offsets
+ anyway this shouldn't hurt us at all.
+
+commit 0bfaeaab2838184827236c5c0fcc17f06d9e1372
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Feb 26 11:11:56 2007 -0800
+
+ Fix physical memory allocations, including description in log.
+
+commit 5732dd7221b7bb24bf21e16066f014a0c7cb6b2a
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Feb 26 09:54:04 2007 -0800
+
+ Fix some texture memory allocation issues.
+
+commit aeeae1b40fc012bcc01fcd2243d4993de819b7cf
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Feb 26 09:13:17 2007 -0800
+
+ Fix a crash in startup monitor detect.
+
+commit 10655c4674cdac8a231c50dd9afc5d43fe43b4bd
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Mon Feb 26 09:23:14 2007 +0800
+
+ for merge with external tree
+
+commit 9417af8630fce0476273b693ebac12129415e0cf
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Mon Feb 26 08:02:50 2007 +0800
+
+ fix conflict with external branch
+
+commit 42fc06c85a0c487cfa26b9d4aa396402dbc4c2fe
+Merge: 10655c4 3bce8bf
+Author: Nian Wu <nian@graphics.(none)>
+Date: Sun Feb 25 12:53:47 2007 -0800
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 84a7429730ddd29072d696accb9fdd8fea40731a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 23 14:59:24 2007 -0800
+
+ Always allocate logical_context, since we use it in emitting invariants.
+
+commit 7bb725dee9ef0ccdc478ed4931dc267bcb80203f
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 23 14:56:58 2007 -0800
+
+ Improve logging of memory allocation passes, and clean the code up a bit.
+
+commit 54198b26e87baa180208932b97f10b27d9c0fddc
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 23 14:17:07 2007 -0800
+
+ Move memory allocation to ScreenInit rather than PreInit.
+
+ This lets us do memory allocation just once rather than having several passes
+ (as long as things succeed), avoids trouble with zaphod mode, and will let us
+ do better automatic sizing of allocations soon.
+
+commit 828deff6453872ef0f9fa35c08c9f95f464b1785
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 23 13:16:02 2007 -0800
+
+ Fix fence allocations on 965.
+
+commit d3ac440e127c8a7716062852cd3b5e7943e289e4
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Feb 22 10:41:09 2007 -0800
+
+ Rework the video memory allocation.
+
+ The previous allocator worked in multiple passes, with (at least) one of
+ setting up allocations, another to attempt to adjust those for tiling, and
+ then a pass to set up the offsets and fix them in memory.
+
+ The new allocator is simpler, allocating memory immediately if possible,
+ setting up tiling up front, and choosing offsets immediately. AGP memory
+ is only allocated to back actual memory used, saving some memory that would
+ have been allocated for padding previous. It will also allow dynamic freeing
+ and reallocation of memory, which will be useful for framebuffer resizing.
+
+commit a61a6b1db610a07060d0dcca54b66a4b2b3686cc
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Feb 21 09:43:24 2007 -0800
+
+ Reformat to 4-space indents, no trailing whitespace, and 80 columns.
+
+ I'm in the process of rewriting this file, and wanted to separate my whitespace
+ changes.
+
+commit dd24d2a082b41abc466391c37a9b3d066586dc55
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Feb 22 11:46:44 2007 -0800
+
+ Remove copied X server headers from driver.
+
+ These two headers were copied during mode setting development; as that code
+ is now inside the server, these files are no longer needed here.
+
+commit 681966ce6548c6f47b087eb7e369674b7ddbaade
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Feb 22 11:45:43 2007 -0800
+
+ Disable unused functions after configuring the remaining resources.
+
+ This eliminates an unsightly flash of the hardware cursor during X server
+ startup.
+
+commit f5ab9e0ad3a65c972861dd53be6e33e1aac13191
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Thu Feb 22 18:57:23 2007 +0100
+
+ I830DRISwapContext: Some cleanups.
+
+ Also call I830EmitFlush() when entering/leaving the server context. Doesn't
+ seem to help for artifacts with page flipping and mixed 2D/3D unfortunately.
+
+commit 8cce74f195e5ef6ce5599ecd52f35bcfcb0d7913
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Thu Feb 22 18:27:59 2007 +0100
+
+ Do not sync DRI windows between pages when possible.
+
+commit f346549183a407a4bff6521ec2450dacb97442e9
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Wed Feb 21 09:19:54 2007 +0100
+
+ intel.man: Fix typo.
+
+commit 3bce8bf0e95e5842399959a5d6f6413e96f03adb
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Feb 20 23:10:17 2007 -0800
+
+ Pre-965 hardware had fixed pipe 1 for panel fitter.
+
+ The pipe mode setting code needs to disable the panel fitter when using the
+ pipe for things other than LVDS output. The driver was checking for panel
+ fitter conflicts using bits that the 965 chipset defines for selecting which
+ pipe the panel fitter is connected to. However, on pre-965 hardware, the
+ panel fitter works only with pipe 1 and those bits returned 0.
+
+ The result was that when pipe 1 was using the panel fitter, configuring pipe
+ 0 would disable the panel fitter.
+
+ The fix provided uses a model-specific test for the panel fitter pipe.
+
+commit 0bee64f4bc7581de7ab28ca438581d215e85c610
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Feb 20 19:09:37 2007 +0100
+
+ Add support for triple buffering using a third static buffer.
+
+ Need to bump the DRI DDX version minor for the added SAREA fields.
+
+commit 2212baa8454abb4c7948c3f2e20e337f831d1b86
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Feb 20 18:39:13 2007 +0100
+
+ Don't mark page flipping as active when it really isn't.
+
+commit fac8f2eb49de22abd853ca75f3c985d4d94e3633
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Feb 20 18:38:40 2007 +0100
+
+ Document Option "PageFlip".
+
+commit 5a1a04649c62aa4b1c0617560b813642ce0c67b5
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Feb 17 17:01:04 2007 -0800
+
+ Make distcheck fixes. Distribute all sources needed even for older servers.
+
+ Always allow (but do not require) link to server sources so that needed
+ files can be included in the generated tar files.
+
+ Add remaining .g4a files and assembly output to distributed file lists.
+
+commit 0ca926e63c7fa9122a8cba1424ce4cdee1c7b215
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Fri Feb 16 02:19:10 2007 -0800
+
+ Check for presence of xf86Modes.h file.
+
+ xf86Modes.h file signals the availability of the new modes API in the
+ server; use that instead of counting on X server version numbers.
+ Also, finish eliminating use of local copies of those header files.
+
+commit 972f1109d23c0a3f821fa573e2aa40cd17ce2795
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Fri Feb 16 01:07:20 2007 -0800
+
+ Remove common code that has moved to xserver/hw/xfree86/modes
+
+commit 20e146a09e3b4907a6800588ebfa787bfc5b0d89
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Fri Feb 16 00:57:44 2007 -0800
+
+ Change rotation pixmap creation API to permit start-time rotation.
+
+ Start time rotation requires that the pixmap be created after the server has
+ initialized the screens. Delay the pixmap creation until the first block
+ handler invocation.
+
+commit 17e38e39a49b2a96e31cca4a0b922631c5f7879e
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Feb 15 23:09:43 2007 -0800
+
+ Enable mode setting function renames from shared code.
+
+commit 8e7bc4b1f95f5d62ff18cd94f14f5e3949ef6a29
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Feb 15 11:17:53 2007 -0800
+
+ Use server sources for crtc/output generic code.
+
+ As sources for these have been merged to the server, use them from the
+ server source code instead of keeping copies in this driver.
+
+commit 6e33c4c44030e05d6d07ca9274cfe4d6df2c0387
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Feb 15 09:54:43 2007 -0800
+
+ Print the correct meaning of bit 30 of pipeconf for 965 in debug output.
+
+commit 4541150cdce3f2f83b8530d0863aecf28c6610a9
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Feb 15 09:51:04 2007 -0800
+
+ Detect core clock frequencies, to avoid double-wide mode when possible.
+
+ Additionally, don't attempt to set double-wide on the 965, where there is
+ no such thing any more (not that we'd ever see modes high enough to trigger
+ it).
+
+commit d1be0dc4e9d443dcbd218a083cfb21a0b5d634ee
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Feb 15 11:03:12 2007 +0800
+
+ EXA: fix i965 default color (0,0,0,1.0) -> (0,0,0,0)
+
+ (0,0,0,1.0) is actually black...
+
+commit c010d28f0a91a9831d366ea490878ef3d958021f
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Feb 15 11:00:06 2007 +0800
+
+ EXA: mask componentAlpha support
+
+ we're getting load of multiple sf/wm programs for i965, might
+ need to be cleanup in future.
+
+commit ec55dd16c4c5f7612d33ae22a6249b3b1c60e2b6
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Wed Feb 14 14:37:02 2007 -0800
+
+ Global namespace cleanups, filename fixes.
+
+ Ensure all xf86 symbols created here are protected with XF86NAME.
+ Remove accidentally exported symbols from namespace.
+ Make all to-be-DI files prefixed with i830_xf86.
+
+commit 22a271555a46267c40448fa926d45692498ef7c6
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Wed Feb 14 14:17:14 2007 -0800
+
+ Create driver-independent DGA hooks, remove i830 DGA code.
+
+ As RandR needs to poke at DGA code, and we want the RandR code to be
+ driver-independent, it seemed easier to just make the DGA code
+ driver-independent as well.
+
+commit a7c64d5e28f608d54c94fa7a5c92bd5b471179c7
+Author: root <root@guitar.keithp.com>
+Date: Wed Feb 14 10:20:28 2007 -0800
+
+ WIP DGA generic support.
+
+commit 55c7b017ed718107b9b11467030addf225728b84
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Wed Feb 14 16:45:22 2007 +0100
+
+ Use new DRI ClipNotify hook to track page flipping per CRTC when available.
+
+commit 3bd8edb95fcbbb49e97a1a2bdd5c8eae4f83d3a8
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Fri Feb 2 17:41:18 2007 +0100
+
+ Revive i830 page flipping support.
+
+ Use the damage layer directly instead of via shadowfb.
+
+commit 1d22bad33b634aaf61976907cb2ceeec8a9ebe4d
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Wed Feb 14 12:57:12 2007 +0100
+
+ Update SAREA pipe fields in i830PipeSetBase.
+
+commit 0df490938af10d3a748221e2fb5467b0f244f9eb
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Thu Dec 21 11:27:28 2006 +0100
+
+ If the DRM can handle it, enable vertical blank interrupts for both pipes.
+
+commit 1623b47c4863f5362587cdac855e3e11c109b007
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 13 17:37:56 2007 -0800
+
+ Switch the RECTLIST vertex order to (x2, y2), (x1, y2), (x1, y1).
+
+ This is the documented correct ordering, and while the previous ordering
+ (reversed) worked on some hardware, it failed on others.
+
+ Reported by: Wang Zhenyu <zhenyu.z.wang@intel.com>
+
+commit 4bd4058dfdca84d6ebab82a1dfba99adf3852c9c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 13 14:29:52 2007 -0800
+
+ Bug #9941: ViewSonic VX2025wm sync polarity quirk to fix mode distortion.
+
+commit 0ec4ffcb4e8e5e707e68bef1b13a324677f19f8f
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 13 13:18:15 2007 -0800
+
+ Fix double free in the case of LVDS disabled through quirks.
+
+commit 699fa88d2570de6173e2d866e11b7437f4842d74
+Merge: 681b919 6641aec
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 13 13:10:08 2007 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 6641aec0a1cbc869fba1956c556cdd204631545a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 13 10:21:12 2007 -0800
+
+ Attempt to detect panel fixed mode from EDID or current programmed mode.
+
+ These two sources are placed in higher priority to the BIOS data when
+ available, since the BIOS data has proven unreliable. The BIOS data is still
+ read, and warnings printed if it doesn't match what we probe. The BIOS data
+ remains useful for the situation where we want to turn on LVDS but there is no
+ EDID available and no current mode programmed (i.e. booting with VGA or TV
+ connected).
+
+commit 991439d4c78cf5b2a8f6bb8f5b36fffbfcc4e4fc
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Feb 13 10:07:47 2007 -0800
+
+ Remove dead #if 0-ed structure.
+
+commit c3aed56d46baba057d83dc6ea12c6b4e705e54ba
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 9 13:16:37 2007 -0800
+
+ Fix comments on 965 pitch alignment restrictions.
+
+commit 98318dfcc99264fb7b7ef34568712812aa6300b6
+Author: Daniel Stone <daniel@fooishbar.org>
+Date: Fri Feb 9 16:20:57 2007 +0200
+
+ add missing files to fix distcheck
+ A bunch of files were missing from _SOURCES, and the build was also broken
+ for missing files (from EXTRA_DIST) when building without gen4asm.
+
+commit fce4390c4f1a76c65423114bb479814787612cd7
+Author: Zou Nan hai <zhenyu.z.wang@intel.com>
+Date: Fri Feb 9 11:32:22 2007 +0800
+
+ TV Enable
+
+commit 00dadaa115951c36de9caf2a9d78909811ef34bc
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Fri Feb 9 11:14:50 2007 +0800
+
+ set DPLL before detect
+
+commit 10712c7a781e50475ee7e8ccd5bfd2d820f863e2
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Feb 8 08:56:42 2007 +0800
+
+ EXA: i965 pixmap pitch align
+
+ This seems like a typo, which causes screen artifacts.
+
+commit 44eacf2323454e26b535cc5a4f0789cb0ff0e7fb
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Feb 7 17:30:51 2007 +0800
+
+ EXA: fix render issue with i965
+
+ Fix SF kernel with corrent coeffient work, and correct
+ VUE storage in multi texture case.
+
+commit 920aeaf8478f706ab3b1de4f20f5d351e64a0197
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Feb 7 13:15:52 2007 +0800
+
+ Make TV code same with external tree.
+ Fallback to old filter table.
+ 4 spaces indent reformat.
+ Auto scaling seem to not work well on some low res interlace mode when input width > 1024, filter those modes.
+ Fix some subcarriar number
+
+commit 6d9757e466863594300c83f3806fd4376bea0504
+Author: Zou Nanhai <nanhai.zou@intel.com>
+Date: Mon Feb 5 14:59:53 2007 +0800
+
+ Fix hang when TV is not connect.
+
+commit 681b91924c364a1c00732f548539f2767929ba0e
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 2 17:40:34 2007 -0800
+
+ Add subpixel offsets to fix accelerated rotated rendering on i915.
+
+ This fixes the rendercheck "transformed src/mask coords 2" tests. Previously,
+ the source pixels chosen would be off by one in some cases.
+
+ The particular values were taken from Mesa, which uses .125 offsets (except
+ apparently broken for y), but the signs are changed. I would be happier if
+ I had better justification for why this worked.
+
+commit 76a4f2eea826036e2ac16b7e8c61ab946038c120
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Feb 2 17:34:41 2007 -0800
+
+ Fix bad offsets in "right" rotation of the CRTC in cursor and update handling.
+
+commit 785a59ead0e8d1d681b2cb6827ee58ad2c51f8c6
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Feb 1 22:48:44 2007 -0800
+
+ Rename driver from i810 to intel. Permit old name for compatibility.
+
+ Driver installs as intel_drv.so with symlink to i810_drv.so to ensure
+ existing configurations continue to work. Updated manual page to reflect
+ name change and add attributions for recent work.
+
+commit 1dde7a15a3a42b881c57ece95feceffadf412cff
+Merge: 16f30b2 1ba45a3
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Feb 1 21:31:27 2007 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 16f30b2e6c72e228c66946ff9efadd7278379745
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Feb 1 21:30:19 2007 -0800
+
+ Add "Ignore" option to per-output monitor, removes output from server.
+
+ Setting option "Ignore" "Yes" will cause the server to pretend as if the
+ specified output does not exist at all. It will not be listed by the
+ RandR1.2 extension, and the server will not attempt to detect monitors at
+ startup time.
+
+commit b3633506dcd4fd58f0f9519cd67f6e75d6fb2042
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Feb 2 11:35:44 2007 +0800
+
+ Add Intel 965GM chipset support
+
+commit 380129a17c61c783d77a87685ad5333e8b1c253c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Feb 2 11:33:46 2007 +0800
+
+ Revert original crestline pci id patch
+
+commit f7489bbec150349bf03bea8d9d55451dbc92bfc2
+Merge: f1285ec ae6d358
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Feb 2 11:26:57 2007 +0800
+
+ Merge branch 'modesetting' into crestline
+
+ Conflicts:
+
+ src/i830_display.c
+ src/i830_tv.c
+ src/i830_xf86Crtc.c
+
+commit ae6d3585a4d96aa4dc05ca8563cebfa7796324ef
+Merge: 6d549ed 1ba45a3
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Feb 2 11:21:59 2007 +0800
+
+ Merge branch 'modesetting' of git://proxy.ims.intel.com:9419/git/xorg/driver/xf86-video-intel into modesetting
+
+commit 9f0acf1eb01ad8320f4da4cc5e498af25c0ecc5e
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Feb 1 15:44:18 2007 -0800
+
+ Check for rotation change in xf86RandR12CrtcSet.
+
+ xf86RandRCrtcSet was ignoring changes to only rotation, so the screen would
+ be left incorrectly rotated.
+
+commit 1ba45a3fcd40aaf4d373447fb9f252ca053f9105
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Feb 1 13:26:38 2007 -0800
+
+ Improve register debugging output.
+
+ This includes not reporting some fields on hardware where those bits are
+ reserved, correcting one of the hardware error bit numbers, and reducing
+ the severity of the debugging output warnings.
+
+commit 9bfeadbd5b37acb56cb646009239a94727ec52bc
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Feb 1 12:04:58 2007 -0800
+
+ Remove some more dead options.
+
+commit d6bc03c379c46842676f640b8edb13ea828bf20c
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Feb 1 11:28:34 2007 -0800
+
+ Bug #9819: Add two headers that are apparently necessary on older X Servers.
+
+commit 351866b0328b1d7afdc6b414c77d9ab4da4bd085
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 31 15:48:52 2007 -0800
+
+ Sync before overwriting Render acceleration state on the 965.
+
+commit 96783a458957ca280ebb6275fa692dd415df6931
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 31 15:48:02 2007 -0800
+
+ Fix copy-and-paste-o in the render code cleanup that broke XAA.
+
+commit 5238ff9c80718f9f8baa06123aa1bb6e3193fce6
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 31 14:01:41 2007 -0800
+
+ Naming and formatting cleanup in Render acceleration code.
+
+commit c47210d94ed17ad9e8e489a1e1886732e6dc7220
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 31 12:50:31 2007 -0800
+
+ Move the render code to non-EXA-specific filenames.
+
+commit 72ea0e514dcbebd009833c21f40e9bfb84074628
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 31 12:43:38 2007 -0800
+
+ Remove custom accelerated rotation code now that it's all done through Render.
+
+commit e62751db8b1a631c22ba0f77c932be4ab39ba741
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 31 12:15:38 2007 -0800
+
+ Add an accelerated path for rotation Render operations in XAA.
+
+ The now-generic (kind of) EXA code will be cleaned up and moved to generic
+ files in a later commit.
+
+commit f1285ecb72e807ac10db398fa983bf69d4154d97
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Jan 31 14:58:08 2007 +0800
+
+ tune
+
+commit 0620a7650f758652d05a0c25d159587f641aaf3e
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Jan 31 11:21:11 2007 +0800
+
+ fix
+
+commit 12441e217a1968dea3a6b0646b6c5d0e2ede0e7e
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Jan 31 11:20:23 2007 +0800
+
+ add 720p@50Hz,
+ however 720p in this freq seems to not support src width,
+ hactive > 800, so skip those inputs.
+
+commit 726c7dd89627409820ee5cf9bf657d5a926b3648
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Jan 31 10:34:39 2007 +0800
+
+ TV fixes.
+
+commit 4cd552e8f4851e029e43bf778cd8340f6c2c4881
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 30 16:34:50 2007 -0800
+
+ Fix accelerated Render transformations.
+
+ Previously, we tried to use 2 points instead of 3 to describe the source
+ rectangles, which mostly just worked for scaling.
+
+commit 6a628ae12b0568d656059891c5bca4415d8a735f
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 30 14:19:05 2007 -0800
+
+ Simplify EXA acceleration transform handling.
+
+commit c8581254cb811f76aa6eae49d74489b543b3eb05
+Merge: 9da1791 d329fa1
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jan 29 21:25:13 2007 -0800
+
+ Merge branch 'modesetting-rotation' into modesetting
+
+ This adds reasonably driver-independent rotation support to the common
+ layer. The piece required in the driver is to allocate and redirect the crtc
+ to a shadow frame buffer. The driver uses Render to perform the actual
+ rotation operation (which leaves us free to do fun projective transforms at
+ some point in the future :-).
+
+commit 9da1791eeca446cd59e2e7d0803e8a7920dbbea5
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 29 17:10:14 2007 -0800
+
+ Restore a few important lines from 89ace3e81fe72075b1709b073c05532f13b7f0d1
+
+ Typical results were failure to sync, and a black screen.
+
+commit 67c6a490e63f6997f8198bc3ab180a1af097fe86
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 29 09:53:58 2007 -0800
+
+ Remove dead code to undo the damage of xf86SetModeCrtc() blank limiting.
+
+commit 89ace3e81fe72075b1709b073c05532f13b7f0d1
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 29 09:43:35 2007 -0800
+
+ Bug #9680: Remove bogus blank length limiting in xf86SetModeCrtc().
+
+ Our modes typically come from EDID or default modes, and when the monitor
+ asks for a specific mode, deciding to tweak it usually results in incorrect
+ display. And if the user is specifying a mode by hand, tweaking it then is
+ still pretty rude.
+
+ Reviewed by: ajax
+
+commit 6eb69e737864d06dc6d4fbb4cd85a027cbb7643a
+Author: Dave Airlie <airlied@linux.ie>
+Date: Sun Jan 28 19:40:12 2007 +1100
+
+ ch7xxx: actually power up the chip around connection detection
+
+commit d329fa121b2401cadb991c2854e077cfa68e15e8
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Jan 27 18:36:15 2007 -0800
+
+ Fetch from root window instead of screen pixmap during rotation.
+
+ The XAA Composite wrapper doesn't check for sourcing from the root pixmap
+ when deciding whether to sync the hardware drawing. Fix the rotation code to
+ reference the root window in IncludeInferiors mode to avoid reading without
+ correct synchronization.
+
+commit 20419d664c77e9a1a2de82987838b45f44774b47
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Jan 27 18:34:12 2007 -0800
+
+ Paint ARGB cursor data to ARGB cursor memory space in frame buffer.
+
+ When converting from global cursor to per-crtc cursor, the ARGB cursor data
+ was accidentally painted to the wrong location, overwriting some critical
+ data and causing the hardware to lock up. (along with generating a garbage
+ cursor image from uninitialized data).
+
+commit 00decd3b6cea0de22c88b9504dbe26d680e8ab16
+Author: Krzysztof Halasa <khc@pm.waw.pl>
+Date: Sat Jan 27 12:29:31 2007 -0800
+
+ Don't zero out mode structure after setting name field.
+
+ Instead of using memset to zero the structure (at the wrong time, no less),
+ use xcalloc to gather pre-initialized memory.
+
+commit 7a5f17087bda2833e84fa7e7ff0cb168943b89b6
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Jan 27 00:11:21 2007 -0800
+
+ Mark crtc region as damaged when rotation is set.
+
+ When shadow frame buffer is allocated for rotation, it needs to be
+ initialized by copying from the frame buffer. Do this by simply marking the
+ entire screen as damaged which will force an update.
+
+commit 2d95cb6f041653f7e530b1f32cf007929c23ef3b
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sat Jan 27 00:04:13 2007 -0800
+
+ Make rotated pixmap size of mode, not rotated mode. Update only damage.
+
+ Rotated pixmap should match size of displayed mode, not the rotated version
+ of that size.
+
+ Take damaged region, rotate each box and display them instead of displaying
+ the whole screen after each damage update. This exposes a bug where the
+ screen is not correctly damaged after rotation.
+
+commit 5c1e27cdd243dc24dd2bfdeb46d757bbef6ba6af
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 25 15:31:22 2007 -0800
+
+ Make rotated shadow buffer allocation dynamic.
+
+ For EXA, this requires version 2.1 of EXA to do rotation, as the VT switching
+ issues were too complicated otherwise.
+
+commit 5a67f3d3690903a181ca854d060cfa8b4c2aca26
+Merge: 3cc583e 9811059
+Author: Nian Wu <nian.wu@intel.com>
+Date: Thu Jan 25 13:40:50 2007 -0800
+
+ Merge branch 'crestline' of /git/xorg/driver/xf86-video-intel into crestline
+
+commit 3cc583ec8e79ec65103308220dd6047a4a7acddf
+Merge: 566e1d3 effe579
+Author: Nian Wu <nian.wu@intel.com>
+Date: Thu Jan 25 13:37:05 2007 -0800
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into crestline
+
+commit 6d549ed280d3fcf3fe611b095d9f8adc0196bfb6
+Merge: 75f4df2 effe579
+Author: Nian Wu <nian.wu@intel.com>
+Date: Thu Jan 25 13:36:33 2007 -0800
+
+ Merge branch 'modesetting' of git://proxy01.pd.intel.com:9419/git/xorg/driver/xf86-video-intel into modesetting
+
+ Conflicts:
+
+ src/i830_driver.c
+
+commit 83cc4601b27d871484a2408f31154e9387064b9e
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 24 16:52:22 2007 +0800
+
+ Fix a possible failure to misalign video allocation in XAA.
+
+commit e21332419581eff1d7651741bae0b640c84d0ecd
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 24 12:32:38 2007 +0800
+
+ Warning fix.
+
+commit effe579e691b044e3ce59b41b5c0eaaac4368dda
+Author: Dave Airlie <airlied@linux.ie>
+Date: Sun Jan 21 20:23:13 2007 +1100
+
+ ch7xxx: fix output detection as per datasheet, have no DVI to test this.
+
+commit c68dae2705d6e5b05dba7d40b6da112b98b926b4
+Author: Dave Airlie <airlied@linux.ie>
+Date: Sun Jan 21 20:22:39 2007 +1100
+
+ fix building with 7.1 server by hiding stuff inside RANDR_12_INTERFACE
+
+commit 8eb861fb61fda78e6c142ffa66c586357aaa2e44
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 22 15:50:14 2007 +0800
+
+ Replace the custom SaveScreen function with a generic function calling DPMS.
+
+ With this, additional power saving occurs with the core screensaver, for
+ example by turning off LVDS backlight.
+
+commit 7161e824e89a6a69f1277e510f2344ad31721f62
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jan 19 15:15:19 2007 +0800
+
+ Fix DRI issue when EXA enabled
+
+ tell DRI we are smashing the context state.
+
+commit 74ebff6732b9bfcf8c865b52cbebfd9bf6b73eb2
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 18 14:26:21 2007 -0800
+
+ Allocate separate cursor memory per CRTC and rotate cursors appropriately.
+
+ Also, add bind/unbind of the shadow rotate buffers, which was missed in a
+ previous commit.
+
+commit 8759f4d89a141f7d69f1894ec3059ba6bd1cf86b
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 18 13:13:25 2007 -0800
+
+ Partially deal with cursor rotation.
+
+ The remaining issue is having a cursor image per CRTC so that the cursors can
+ be rotated on the independently rotated CRTCs.
+
+commit b296cd9b8f63ab80e8fe46fcfcdba2e9af846468
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 18 13:02:26 2007 -0800
+
+ Fix transformation matrices for rotation at 90 and 270 degrees.
+
+commit d2ae2e2ccc3a8e7dc84745c235836cba150754d8
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 18 11:37:14 2007 -0800
+
+ Update CRTC values first so they can be used by the driver in mode setting.
+
+ With this, the screen now gets rotated, though there are major issues.
+
+commit 92b0f3d2013c32d94fe57fe674da1b195288f347
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 18 11:23:22 2007 -0800
+
+ Disable the clipping for now, since it won't work.
+
+commit 14d265a02312e9cda7a21614d77525c7140c0ca8
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 18 11:21:58 2007 -0800
+
+ Store fixed values, not integers, in the transformation matrix.
+
+ Also, add a bit more error checking.
+
+commit cc09dc3efe7279bf67512babb0f6cdaeba654772
+Merge: 53e765d 3094100
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 18 10:20:36 2007 -0800
+
+ Merge branch 'modesetting' into modesetting-rotation
+
+commit 53e765d1cf5016961c25a798a27f0fe09bd1f237
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 17 16:56:06 2007 -0800
+
+ Fix broken last-minute change in determining whether we're rotated or not.
+
+commit f256243fff195f73bc8aa72e8dd2c6f7b33446cf
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 17 16:01:18 2007 -0800
+
+ Allocate per-crtc rotation buffers and hook up RandR 1.2 per-CRTC rotation.
+
+ It currently displays garbage.
+
+commit d17c386aee55bd223297adf78cf0fc1db43baf2d
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 17 15:49:08 2007 -0800
+
+ Fix some segfaults: crtc->rotatedPixmap not set and dangling damage pointer.
+
+commit 67a152c43cb7231695b99030c952c52d4edd1e65
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 17 14:35:31 2007 -0800
+
+ Set all CRTCs' allowable rotations when xf86RandR12SetRotations() is called.
+
+commit 98110591001dfaf2b8b5ac440bea0c38456da718
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Jan 17 10:45:59 2007 +0800
+
+ enable all TV modes
+
+commit 3094100cdd04560af1b098bbe8024ae5270a10f4
+Author: Gary Wong <gtw@gnu.org>
+Date: Tue Jan 16 13:25:24 2007 -0800
+
+ Bug #9550: Add a quirk for too-high clock from EDID on the EN-7100e.
+
+commit 66c6427cc83e5e381932b0c10743cba4cb9ac883
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 16 12:54:29 2007 -0800
+
+ Add a settable backlight property for LVDS.
+
+ This extends the output funcs to have a callback for when it's time to
+ configure properties, and another for when the server has changed a property
+ whose value isn't pending a mode set. (Pending properties are to be picked up
+ by the driver at mode_set time).
+
+commit a52df90ffcb19e7c0a3b8018db3cd1391a3ec343
+Merge: 37946c9 45696aa
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Jan 16 12:20:26 2007 +1100
+
+ Merge branch 'modesetting' into modesetting-rotation
+
+ Conflicts:
+
+ src/i830_driver.c
+ src/i830_randr.c
+
+ Just a few sync changes.
+
+commit 37946c9c8a4afa4a4fc1fe9864a8eec1c4571d2c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Jan 16 12:14:55 2007 +1100
+
+ Interim work on rotation support with new xf86 code.
+
+ Yes, there are lots of bits tied together here, and we should split this
+ patch apart.
+
+ Move I830 mode setting to xf86 mode setting.
+
+ Make mode setting function also set the base address. This should fix
+ problems where the base gets set incorrectly at times.
+
+ Add driver-independent rotation support, requires driver-specific hooks for
+ shadow pixmap allocation, otherwise it uses Render for painting.
+
+commit 9a5106401a65c90df32cb71987fca7126dc22e81
+Author: Emilio Scalise <emisca.ml@gmail.com>
+Date: Mon Jan 15 17:22:27 2007 +0000
+
+ patch to control mergedfb options, bug #9664
+
+commit bfeda3bfc59d309772398f688d29452ba97f3973
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jan 15 08:05:32 2007 +1100
+
+ Convert I830PipeSetMode to xf86CrtcSetMode. Add rotation structures.
+
+ Makes the mode setting logic device independent.
+ Magic rename hooks allow multiple drivers to provide the
+ generic code without name conflicts.
+ Rotation code requires special pixmap creation hook, and uses
+ Render to perform the actual rotation.
+
+commit 319be199ba657d2b82ba034edf3581aea6dcc3f0
+Author: root <root@jetpack.demon.co.uk>
+Date: Sat Jan 13 21:34:00 2007 +0000
+
+ Tweak to bug #9639
+
+commit 85de57947570de6b3dc9197647be3e9237480880
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Sat Jan 13 19:18:24 2007 +0000
+
+ Fix bug #9639, i810 XvMC needs linking against libdrm.
+
+commit 45696aa29124e2852f94880642e70bb2e0cee827
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 4 12:34:47 2007 -0800
+
+ EXA: Use PRIM3D_RECTLIST instead of TRIFAN so we don't get diagonal tearing.
+
+ A side effect is the reduction in vertex dispatch, which is nice.
+
+commit 6874a6f25ac87783d3770f77b9192e2d36d083a3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 11 12:34:38 2007 -0800
+
+ Restore legacy overlay size limits, due to card hangs at larger sizes.
+
+commit c288aea40775a9cf561fda9912187c3cb5baa419
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 11 10:39:00 2007 -0800
+
+ Bug #8845: Unify all our XV ports to 1920x1088 maximum size.
+
+ This increases the "legacy" size, but that was checked against the 845
+ documentation which claims support for 2048x2048 as well. It decreases the
+ textured video size, which was running into the limits of the bigrequests
+ extension. The new limits should fit within bigrequests while still supporting
+ HD videos.
+
+commit f5d528f8ea27de31054e7f1843e34d8379f811ea
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 11 10:36:33 2007 -0800
+
+ Don't limit cachelines to a vertical of 2048, and increase default allocation.
+
+ The cachelines are used for two things: XAA pixmap cache and XV memory.
+ Only XAA pixmap cache is referred to using an offset pointing at the
+ beginning of the front buffer in rendering, and XAA only uses the 2d BLT
+ engine, which actually has a vertical limit of 65536. So, pixmap cache is now
+ limited to that much vertical.
+
+ Additionally, the previous cachelines allocation was too small for our
+ advertised XV limits, so video at the limits would fail with BadAlloc. Now,
+ XAA allocates the same approximate amount of offscreen memory as EXA:
+ 3 times the screen size, plus one packed HD video.
+
+commit d13bc016c0723f1df633ddaf5610ad73003b7c96
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Jan 10 15:06:56 2007 -0800
+
+ Correct x/y/pitch limitations in several cases, and detail them in i830_exa.c.
+
+ This reduces max framebuffer width and increases max framebuffer height on
+ 965, reduces max X/Y on pre-965 EXA (could have caused mis-rendering), and
+ increases max X/Y on 965 EXA (would have prevented acceleration).
+
+commit fa383289ac8a6dd1cb359e6f1991cc42beb6ff02
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Jan 4 14:12:45 2007 -0800
+
+ EXA: Wait for sync before we set up new state in our static state buffers.
+
+commit 5857b4a1693085b8b42dd9560a7c4f5c3c82f862
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Jan 10 15:09:47 2007 +0800
+
+ Formalize sync interface
+
+ We should just call i830MarkSync/i830WaitSync in places we need,
+ which care for both XAA and EXA.
+
+commit efb75f56053ee06f1dbd4edfaea9986b27162afb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jan 9 14:05:43 2007 +0000
+
+ Bump to 1.7.4
+
+commit 33c0fac6d63d9a509a24c7a5e5a46a0d6ee4dc5d
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jan 9 14:02:47 2007 +0000
+
+ Fix bug #8536, i915 BIOS fails when restarting Xserver.
+
+commit ee52c0ec4e95fa6e5f35c9cd75005a0c0003fd97
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Jan 8 16:53:07 2007 -0800
+
+ Correct typo resulting in a crash with ivch. = != ==.
+
+commit 566e1d397744d0b477de4da6a206919906176f49
+Merge: b13d638 da6a00f
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jan 8 12:37:49 2007 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit da6a00f787e4d13e6b75768c1976f1c44ae5bf72
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jan 8 12:36:54 2007 -0800
+
+ Move EXA function declarations from source to header.
+
+ Several new global functions were not put into the header file leading to
+ potential mismatches between declaration and definition.
+
+commit 66546d8a8006e1c828e18ccab850214fd8d56b63
+Merge: 0fd2752 40af0ee
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jan 8 10:14:24 2007 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit b13d6386dfb3a00bd9d21ac0695cdce9f812d1f3
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Jan 7 22:56:37 2007 -0800
+
+ Back out rotation changes for RandR 1.2 which won't work.
+
+ RandR 1.2 requires a new rotation structure for per-CRTC rotation.
+
+commit 7473e7d5297f94164e0f35822166713fb21a11bd
+Merge: cdde9e7 a87801f
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Jan 7 22:50:27 2007 -0800
+
+ Merge branch 'crestline-otc' into crestline
+
+commit cdde9e7f4a0645ab1ee3e124de54433c1a250097
+Merge: 3110630 0fd2752
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Jan 7 22:50:12 2007 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 0fd2752f199928f846fe03c9087f7b6d48cc28d9
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jan 4 14:35:55 2007 +0800
+
+ minor fix on last exa mem binding commit
+
+commit 3110630e04f37e184609c91494fa7f9f4d59b93f
+Merge: be9b635 736d82a
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Jan 7 22:44:36 2007 -0800
+
+ Merge branch 'modesetting' into crestline
+
+ Conflicts:
+
+ src/i830_rotate.c
+
+ Pull in upstream changes to crestline branch leaving only
+ the PCI-IDs as local changes.
+
+commit 40af0ee6ba4ab7596fbc7fcc3ad04d109746ca6f
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sat Jan 6 18:19:34 2007 -0800
+
+ Numerous symbol scope issues.
+
+ I830EntityIndex is shared between 810 and newer driver.
+ Move most EXA rendering state into I830 structure.
+ Declare shared variables in shared header files rather than .c.
+
+commit 736d82a6b43f174cb95b425faacd4b0b889916fa
+Merge: 53b42f5 4c790f6
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Dec 4 15:48:04 2006 +0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 53b42f5bc7a58d02106436486e5bb56e56dbbfa1
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Sat Jan 6 14:59:14 2007 -0800
+
+ support NTSC 480i M-J, PAL 576i for 640x480-1280x1024 sizes
+
+ I still have problem with non-interlace mode and Hi Res mode.
+ also I don't know how to pickup those mode in xorg.conf
+
+commit 71946bcdc3c68c220996afac944698eea1974a36
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Jan 3 22:37:32 2007 -0800
+
+ [PATCH] Add rotation support for 965.
+
+commit 35cebed70827999812f8343ac97ad0dffda20786
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 16 15:12:43 2006 -0800
+
+ [PATCH] Replace broken PCI resource size detection with pciGetBaseSize() call.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 33e912aca08fa11ef588eb386e16ba5f9ea13727
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jan 4 11:25:31 2007 +0800
+
+ [PATCH] Fix EXA mem binding
+
+ We should check if EXA is really enabled.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit fa54a3c08301e59558ab0493b3d22324f4162496
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Dec 6 13:24:44 2006 +0800
+
+ [PATCH] fix Makefile.am
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 2f2c443e971faa54ffcf751b6acb444e8e7875ce
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Dec 6 10:43:29 2006 +0800
+
+ [PATCH] Formats fixes
+
+ We should use card_fmt for src/mask picture, and use dest color
+ buffer format helper. Also fix wrong name for G965 texture formats,
+ and pict_x1r5g5b5 isn't supported by sampler engine.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 0bf04fe78a8a915310ef8a90f5c7872be7476e2e
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Dec 4 15:48:04 2006 +0800
+
+ [PATCH] set correct default border color
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 5c461063cde68092e778c44ac6abd9129cd8019e
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Dec 4 15:47:31 2006 +0800
+
+ [PATCH] fix typo in ps kernel
+
+ fix corrupt in some subspans
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 89a42d489bd370b89e5ff4e01f026b4d64723cd8
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 17:16:46 2006 +0800
+
+ [PATCH] shut up warning
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 01bfa4fa6fc0ceec8581676e5d72c68dd71efa96
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 17:14:55 2006 +0800
+
+ [PATCH] fix alpha blending state
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 79018bb47c43510d59c592592f06204189bd12dc
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 17:05:32 2006 +0800
+
+ [PATCH] Add in sf/wm program for mask picture without CA
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit a5b9b438469f171b002fa0b99d8cab83e51ec968
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:52:44 2006 +0800
+
+ [PATCH] misc cleanup for G965 vs/sf/wm states
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit b7c1e1656f45e43ea2f9a47f1a487050c0884c22
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:40:15 2006 +0800
+
+ [PATCH] WM kernel needs scratch space
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit db9cfaa35adaf79ea57bc06b27c7e37935d3e1a7
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:37:06 2006 +0800
+
+ [PATCH] Setup default border color for our samplers
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 70276e4e9a8a5026ec436d2be5bf5eab868aa178
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:30:53 2006 +0800
+
+ [PATCH] fix vertex buffer size
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit e8a4cbdeff4125e28d807d0a563efc0606d21a75
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:24:24 2006 +0800
+
+ [PATCH] clean up issue cmd to ring buffer
+
+ Make it easy to track different part of ring state, and
+ use rectlist primitive instead.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 42534474fd2556e5987205626cca8f30e25855a8
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:04:16 2006 +0800
+
+ [PATCH] remove wrong scale_units
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 05e8a7989db1b8b9dfa7b688629af65d9910cc53
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:02:16 2006 +0800
+
+ [PATCH] Rename exa sf/wm program files
+
+ Also fix some minors in wm program.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 1329c86f2a4b3664920ded970a984a745a530da4
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 15:47:19 2006 +0800
+
+ [PATCH] EXA state mem for G965
+
+ Not split offscreen mem for exa, but alloc a dedicated one
+ for G965 states.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 4c790f614ecba1f6468e51779cfaf0e36b6b17ad
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Sat Jan 6 08:21:36 2007 -0800
+
+ More sparse cleanups:
+ NULL vs. 0
+ make some variables static
+ remove redundant variables
+
+ There are only a few sparse warnings left now: some bitfield warnings
+ and a few 'mixing code and declarations' warnings from the ring macros.
+
+commit a87801f73a73e53524237be7835b8cd8b3eb282c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jan 4 14:47:48 2007 +0800
+
+ Fix TV load detect
+
+ Actually load TV, otherwise we don't have expected
+ reg state to probe.
+
+commit 9cf759a2cb2580c4ac5f8cdc983389642f3cfce0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jan 4 14:35:55 2007 +0800
+
+ minor fix on last exa mem binding commit
+
+commit f9c3ef40100acb85fca6e49c5c0e98f5c9ac97ca
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Oct 10 15:50:10 2006 +0800
+
+ [PATCH] Mark current ps kernel is experimential with little test.
+
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit ef2f25e5c6ce04c202698c5122bc8627130073c0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Oct 10 14:11:35 2006 +0800
+
+ [PATCH] Use sf_prog.h instead
+
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit ca608028c5301700444d39a1c631cc0d5648e1a2
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 13:55:52 2006 +0800
+
+ [PATCH] Fix picture's transform checking
+
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 848368d5d0b90e03d3ec447cb5bd39fc87aea8df
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 11:15:33 2006 +0800
+
+ [PATCH] Fallback in mask picture for now
+
+ Do it later after finish wm kernel program.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit df23624eebe938fa444c80cbedcd61919ec1aeda
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 11:09:52 2006 +0800
+
+ [PATCH] Fix compile, add wm header file.
+
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit fc944859b1b9605c748162bad1c93a6303c84aae
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 10:36:00 2006 +0800
+
+ [PATCH] Add simplest wm kernel program for no mask picture composite
+
+ This is a try to use new gen4asm language, and will finish
+ composite program for mask picture with or without CA case later.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit acdc2da77b445e9347a4c6e53e35c81763cbb0b8
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Sep 27 16:48:43 2006 +0800
+
+ [PATCH] Add mask sampler state
+
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit 926d7fb09aaaabf050949ce7c6127c68441c8801
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Sep 27 13:54:14 2006 +0800
+
+ [PATCH] change some src sampler states
+
+ sampler for mask should also be set up, and fix
+ default border texel.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit ed73bbaf5c2e9d555c884037a249cf03e7f60fa0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Sep 25 14:35:51 2006 +0800
+
+ [PATCH] Add file for i965 exa composite
+
+ This does not include ps program, which will be added
+ in g4a form.
+
+ Signed-off-by: Keith Packard <keithp@neko.keithp.com>
+
+commit be9b635b82c0c77ccc0555f178f94de6e5338e27
+Merge: 9e48808 5a793b0
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Jan 3 22:15:53 2007 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 5a793b0dcf2d5de408b55073858fcfba6d99f994
+Merge: f188525 394124c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Jan 3 21:54:05 2007 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit f188525030a8fac59e41520449b1aec9b123e4ea
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Jan 3 21:53:07 2007 -0800
+
+ Add interlace defines for pipeconf regs
+
+commit 9e48808fccf5b153c2fb4027f9a09944574fdace
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jan 4 11:25:31 2007 +0800
+
+ Fix EXA mem binding
+
+ We should check if EXA is really enabled.
+
+commit ebd636dbd62cb69ed7defbd86f297c6bc7dac5dd
+Merge: 75f0033 3d9ea6f
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jan 4 10:13:55 2007 +0800
+
+ Merge branch 'modesetting' into crestline
+
+ Conflicts:
+
+ src/i830.h
+ src/i830_randr.c
+
+commit 3d9ea6f3c8a274f930d286fc15d3665dfaa8327a
+Merge: 75f4df2 394124c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jan 4 10:12:50 2007 +0800
+
+ Merge branch 'modesetting' of git+ssh://zhen@git.freedesktop.org/git/xorg/driver/xf86-video-intel into modesetting
+
+ Conflicts:
+
+ src/i830_driver.c
+
+commit 394124ceaadb46d976ad5c3bdeb1b77d351c57f6
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Jan 2 16:57:33 2007 -0800
+
+ Add per-CRTC gamma control support for RandR.
+
+ This makes the CRTCs now always run in gamma-enabled mode, rather than having
+ flaky logic for switching modes. Also, it should clear up issues with the LUTs
+ being uninitialized when outputs are first brought up.
+
+commit 69f250af60220a875f4a04c6d682bffa352281e4
+Merge: 232e209 d960dea
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Jan 3 00:39:15 2007 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 232e2094321dbcdd6a67ef230eb50494a1c7d6df
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Jan 3 00:38:34 2007 -0800
+
+ Allow initial position to be set in config file. Increase 965 max size.
+
+ Add relative and absolute position configuration code, using per-output
+ monitor sections. Options include:
+
+ PreferredMode selects a preferred mode for this output by name
+ Position absolute position, x and y in a single string.
+
+ Below relative positions; argument names other monitor.
+ RightOf
+ Above
+ LeftOf
+
+ Enable force the monitor to be disabled by setting
+ Disable enable to no or disable to yes.
+
+ MinClock Set valid clock ranges
+ MaxClock
+
+ Monitor sections can also include sync ranges, physical size and mode lines
+ as documented in xorg.conf(5).
+
+ Monitors are associated with outputs through options in the Device section:
+
+ Option "monitor-VGA" "My VGA Monitor"
+
+ Output named 'VGA' will use monitor section "My VGA Monitor".
+
+commit 58e797b2caa6effa5455fc1f13dc4c58d0658744
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Jan 3 00:04:58 2007 -0800
+
+ Sync dspbase/dspsurf registers by re-reading them.
+
+ This seems to eliminate base/surf value confusion during EnterVT.
+
+commit d960deab39eef91fb82b9f23118323aeb4c9c63e
+Author: Jesse Barnes <jbarnes@nietzche.virtuousgeek.org>
+Date: Tue Jan 2 20:23:37 2007 -0800
+
+ Various sparse cleanups:
+ NULL vs. 0
+ remove redundant pScrn in I830DRISwapContext
+ make I830DRISwapContext static
+
+commit 5057769d3a7c1b3a94f49bbff47b9697f368d975
+Author: Dave Airlie <airlied@linux.ie>
+Date: Tue Jan 2 19:25:08 2007 -0800
+
+ Use correct variable to initialize DVO I2C bus.
+
+ intel_output->pI2CBus isn't initialized until the output is all happy and
+ running, so using it before that is rather unlikely to do much good.
+
+commit 2bb9bb951e664d704bdf7a808edbe8b2f50c4366
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Jan 2 14:04:10 2007 -0800
+
+ Typo disabled new DRI MM on all chips.
+
+ Detection for new DRI MM wasn't converted to #define correctly because of a
+ typo.
+
+commit 5080307230d534b84090bfefc13ac437d53f915d
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Tue Jan 2 00:16:41 2007 -0800
+
+ Fix driver to build on RandR 1.2 systems again.
+
+ Changes to move initial config code to RandR 1.1/1.2 common path broke
+ code required only for RandR 1.2.
+
+commit 237847007afb5a429a50b6aa0b1acc239326571b
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Tue Jan 2 00:09:35 2007 -0800
+
+ Make driver build and run on Xorg 7.1. Delay DSP*BASE setting until last.
+
+ Autodetect libdrm version, disable new memory manager on older libraries.
+ Move new M_T_ defines from i830.h to i830_xf86Crtc.h. Add many system
+ headers to define functions. Use i830PipeSetBase at end of mode setting
+ code to set DSP*BASE and flush changes. Don't duplicate PipeSetBase call
+ from screen init function. Make initial RandR configuration code usable on
+ older versions of extension so the server doesn't start in a panning mode.
+ Use xfree instead of free in i830_tv.c.
+
+commit 25d5a892319b02dc6eb81390dea29cd88a1e7da4
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sun Dec 31 15:39:20 2006 -0800
+
+ Elide identical modes from reported list.
+
+ Where two modes would produce precisely the same crtc settings and have the
+ same name, remove the latter mode from the mode list.
+
+commit feeefc92e450e9de58da51147325300ffabd2059
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Dec 31 14:22:53 2006 -0800
+
+ Replace author-specific license with generic license.
+
+ This file retained the old MIT license with the embedded author name.
+ Replace that with the version that uses generic 'copyright holders' instead.
+
+commit 5e456251f0d6c8bef3241267f6c1b3bca4670c0d
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Dec 31 14:21:12 2006 -0800
+
+ Replace author-specific license with generic license.
+
+ This file retained the old MIT license with the embedded author name.
+ Replace that with the version that uses generic 'copyright holders' instead.
+
+commit 75f0033ec41a34bbe695cfd4a9bc9aa60e919c99
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Sun Dec 31 15:16:59 2006 +0800
+
+ Issue current virtual size to mode valid.
+
+ Revert change in rotation patch.
+
+commit 2330b341c925e60bc2c991b4ca8450badbc459a4
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Dec 30 22:47:58 2006 -0800
+
+ Prune default modes to EDID clock limit.
+
+ Pick out the EDID max clock value and use that to elide default modes which
+ are too fast.
+
+commit c70e7bc701cba3092acfdd66ed4d63487ac8ff9f
+Merge: 8b6c456 4ed79a2
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Dec 30 21:58:36 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 8b6c456e16c81f719bb68178e3e4d26f4108a9c2
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Dec 30 21:57:42 2006 -0800
+
+ Detect in ProbeModes. Let get_modes set edid. Prune interlace/dblscan.
+
+ Move output connection status detection from RandR code up to ProbeModes so
+ it is done before mode sets are built. Otherwise, the mode building code
+ will elide all modes the first time through as it ignores outputs that are
+ disconnected.
+
+ Most get_modes functions fetch EDID data; make sure that any
+ EDID changes are used in the ProbeModes filtering of default modes.
+ Otherwise, stale EDID data will be used.
+
+ Allow outputs to advertise support for interlaced and double scan modes;
+ prune such modes from the default mode list when outputs do not support them.
+
+commit 4ed79a2ba6250354ffc24fa1f7a21ca914ad157e
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 29 12:19:41 2006 -0800
+
+ Relax tiling requirements on G965.
+
+ For the 965, we can tile with the pitch at any integer multiple of a tile size
+ (128 or 512B), up to 128KB.
+
+commit b8692e646227e56c9ae4f72b9aaa75457b4c0f5f
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 28 22:23:16 2006 -0800
+
+ Lack of configured monitor implies no configured modes.
+
+ Missing check for missing monitor configuration would result in segfault.
+
+commit 973da654219ea43916b0b44acfa09a415bed3d7a
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 28 22:22:22 2006 -0800
+
+ Sync ranges from EDID/default should not limit configured modelines.
+
+ Limit the effect of sync ranges so that sync ranges found via EDID will not
+ eliminate modes explicitly added by the user. Limit default sync range to
+ eliminating only default modes, not configured or EDID modes.
+
+commit f7b1d4c1f7d17a811e17c6a17861ff70be9fbdd7
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 28 22:18:57 2006 -0800
+
+ Belinea 10 15 55 monitor quirk - override preferred mode with largest @60Hz
+
+ Belinea 10 15 55 model monitor reports a preferred mode of 640x350, when in
+ fact it wants a 1024x768 mode @ 60Hz. Add an edid quirk that selects the
+ largest size mode, preferring those closer to 60hz among equal sized modes.
+
+commit fbd3f588f0d412c20cc3f86dfad73700734a9a76
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Dec 29 10:47:52 2006 +0800
+
+ rotation support for randr-1.2
+
+ This patch trys to resolve rotation regression with randr-1.2.
+ Tested with Crestline VGA output. See bug 83.
+
+commit a1796bfb51d90fd545973909404e1a77ad27c9cc
+Merge: 84915ac fabfccd
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Dec 29 10:10:26 2006 +0800
+
+ Merge branch 'crestline' of git+ssh://zhen@otc-graphics.jf.intel.com/git/xorg/driver/xf86-video-intel into crestline
+
+commit bedab1654e2dfcf7800bd0101e6991800a544019
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 28 16:34:40 2006 -0800
+
+ Remove 8MB/32MB default VideoRam limits.
+
+ With modern monitors and increased XV and EXA memory requirements, these small
+ limits were resulting in DRI and other initialization failures because we
+ wouldn't allow them enough memory. Instead, allow each piece of the system
+ (DRI, EXA, XAA, etc) to request as much memory as it wants, and choose the
+ actual videoRam to be used for laying out the memory afterwards.
+
+ With this change, in the absence of a VideoRam option, 32MB will be allocated
+ for textures.
+
+commit 4cc5dcf6d7423239f0181f246638366edcb8be87
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 28 16:43:39 2006 -0800
+
+ Oops, dont use symlinks for stolen xf86 header files
+
+commit 86da0d05e4e338e7f4c841577002eb1ba9f6b2ac
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 28 16:40:54 2006 -0800
+
+ Add stolen xf86 header files to driver source
+
+commit 2b0a997e5b4b51267fa4f6725f8a965093392434
+Merge: bb238a8 9cfbf1c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 28 16:34:38 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit bb238a8fc234a8e5e86cd2f42c58c9816a15732c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 28 16:27:22 2006 -0800
+
+ Configuration support: per-output mode lines, preferred mode.
+
+ Add the modelines specified in the per-output monitor and all of the default
+ modes to the list to each output. Prune the resulting list to specified sync
+ limits and virtual sizes. Sort the resulting mode list on
+ preferred/size/refresh.
+
+commit 9cfbf1ceda8f153438df1ba4b1712c55cc872017
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 28 12:59:23 2006 -0800
+
+ In EXA mode, force backing pixmaps into memory when doing XV to them.
+
+commit e889bde13dcc2438181a03319e204ae7b9235a78
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 28 12:49:24 2006 -0800
+
+ Draw textured video to the backing pixmap in the composited case.
+
+ Currently, when the backing pixmap is not in framebuffer, we just BadAlloc
+ rather than drawing garbage to the front buffer. This can be fixed with EXA.
+
+commit c7083a6f30fdf1859f60beba4c352bd790af4773
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 28 11:53:33 2006 -0800
+
+ Add WIP CH7017 LVDS driver. This is disconnected because it's untested.
+
+commit 778db49616b233f5a2f4f007ceb62a1a878a6e25
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 28 11:36:15 2006 -0800
+
+ Add WIP IVCH (i82807aa) driver.
+
+ It is not currently hooked up as it hasn't been tested. The hardware that this
+ was written for decided to stop working.
+
+commit 5806f670eb3a5171ffb0b75701640d5311b34c80
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 21 16:22:14 2006 -0800
+
+ Reformat the DVO drivers table to be a bit more normal style.
+
+commit b928cef9cd5b3f88dc0880f406300d246a59e0fe
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Dec 21 16:21:28 2006 -0800
+
+ Move dvo driver detection into i830_dvo_init(), and use GPIOB for LVDS drivers.
+
+ The documentation states that GPIOB is (generally) used for devices on DVOA
+ on the motherboard, which appears to be the case on the laptop we have with
+ LVDS on the motherboard.
+
+ This patch is probably not entirely accurate, as there was apparently an LVDS
+ DVO card sold that could be put in desktop machines, which would likely be on
+ GPIOE like other ADD cards. Given that we couldn't find one of these cards for
+ purchase, I'm not worrying about it.
+
+commit fabfccd3d8a55a83138d361f66c53cb7e6d371a8
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Dec 28 14:48:54 2006 +0800
+
+ Fix
+
+commit ddefce4f02eb3272ad37e890350f73f03eff73c9
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Dec 28 14:45:53 2006 +0800
+
+ support NTSC 480i M-J 1280x1024 1024x768 800x600 640x480
+ PAL 576i 1280x1024 1024x768 800x600 640x480
+
+ I still have problem with non-interlace mode and Hi Res mode.
+ also I don't know how to pickup those mode in xorg.conf
+
+commit c87462ded20904dbc6c6cbdb9547523b75fe5471
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 19:14:14 2006 -0800
+
+ Remove the nasty #define away of ErrorF in i830_video.c.
+
+ Every new person touching this file hits this trap, so it's now removed.
+
+commit 6dc3387219b2b31e0c7dbaa88b568fbd54d72878
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 18:58:40 2006 -0800
+
+ Fix operator precedence issue that stuck 965 t-v state into the front buffer.
+
+commit 210f30bd75529d0064bc46af15464a2a47f9d4c6
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 18:57:50 2006 -0800
+
+ debugging for location of various 965 textured-video state.
+
+commit 82738e60769a4798d7425ffc67882d1f74043b76
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 18:35:35 2006 -0800
+
+ Fix discrepancy between XAA/EXA linear allocations that broke EXA XV.
+
+ The XAA allocator returned an offset from the beginning of the frontbuffer
+ allocation (where the linear allocations come from), while EXA returned one
+ from the start of framebuffer. Now, both of them use the start of framebuffer
+ as the reference.
+
+commit 8165e043670f6a7fee5e7e8f33644adda5757591
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 18:17:37 2006 -0800
+
+ Bump the size of the extra space for 965 so it actually fits.
+
+commit f830c55e5f4efc97451240f8f18b49f46e8bce0f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 18:14:59 2006 -0800
+
+ Make the assert() in i965_video.c actually work and expose an error.
+
+commit a75b416c91085df1db4027a25eafcd04fef1e57c
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 17:58:57 2006 -0800
+
+ Replace XAA mark/waitsyncs with the XAA/EXA wrappers.
+
+commit 150010d2f20f4a57f8507eba8762e36966b0f426
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 17:57:34 2006 -0800
+
+ reformat i965_video.c to 4-space indents, 80 columns, no trailing whitespace.
+
+commit 05066632b068ae91d7be77e3a199ea0d337d975b
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 17:41:45 2006 -0800
+
+ Move 965 textured-video out to a separate file.
+
+commit 46df75ccd4647ea033583130253a2a2218b34a20
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 27 13:45:06 2006 -0800
+
+ Bug #7524: Major improvements to EXA/XAA static memory allocation.
+
+ With this, we no longer allocate XV through the XF86 linear allocator in the
+ EXA case. We also no longer allocate extra space for the XF86 2D allocator
+ that we don't use in EXA mode, or space for the EXA allocator in XAA mode.
+ The EXA offscreen allocator now gets enough space for several screenfuls of
+ pixmaps plus one 1920x1088 movie.
+
+ A large duplicated section of code for allocating each framebuffer in the old
+ dual-screen mode was also factored out.
+
+commit 84915ac8afeb4bbc03df8f94ab3ba351788d6501
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 23:42:53 2006 -0800
+
+ If DDC detailed modes are missing physical size, pull from features.
+
+ Monitors without detailed modes, or those which do not bother to set a
+ physical size in their detailed modes may still have physical size in the
+ global data.
+
+commit 1e9105395a7900521206b28bae4bb4f85669a0cd
+Merge: df9ecf8 c237e93
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 23:34:30 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit df9ecf8ab93f0aeffde11d438513d41220ba75cb
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 23:32:35 2006 -0800
+
+ Change belinea edid quirk to cover the 10 20 30W model as well.
+
+ This larger model reported different (but still incorrect)
+ sync polarities, so instead of flipping them, just set them to the right
+ value.
+
+commit c237e930615f1b048895efe988d28503f5d67c37
+Author: Keith Packard <keithp@ukulele.keithp.com>
+Date: Thu Dec 21 23:30:37 2006 -0800
+
+ Use Vesa DDC timeouts for all I2C busses.
+
+ The default I2C timeouts are very short, and while most
+ modern monitors have no trouble responding at that rate,
+ some older ones cannot manage.
+
+commit d8c5dba4d797fc50d7b2b5855f34e2d2e2ad3e4f
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 21:20:43 2006 -0800
+
+ When cleaning duplicate modes, make sure ->Last is reset correctly.
+
+ When removing the very last mode for a monitor, move the ->Last pointer to
+ the previous list element.
+
+commit fab9a6b6210daea423b609208ef57fa26571f5d3
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 21:19:32 2006 -0800
+
+ Add EDID quirk support for broken EDID data.
+
+ For EDID with known errors, add a quirk mechanism to automatically
+ compensate. The first quirk is for a Belinea 1440x900 monitor which
+ incorrectly specifies sync polarities in the detailed mode.
+
+commit d9b27667e6cc6c7e171b0f513d40be7658cf4574
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 21:17:03 2006 -0800
+
+ PLL computations missed one possible 'm2' value.
+
+ m2 was ranging from min <= m2 < max instead of <= max resulting in
+ inaccurate PLL frequencies for some modes.
+
+commit c5205595f2abacc9f736e1f53666302ec551cbc4
+Merge: b8f3ec7 4c0c1aa
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 21 02:51:33 2006 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 4c0c1aa882cfec77b2183baec93cbc4cfaf4abe0
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 02:33:39 2006 -0800
+
+ Computed corred color conversion values.
+
+ Extract correct color conversion values for all video formats from
+ documentation. Use those, with appropriate conversions, for the color
+ conversion register values.
+
+commit 98fd44d681220aa31200e4262f1a7ec952a09530
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Dec 21 01:24:24 2006 -0800
+
+ TV subcarrier was computed from wrong clock value.
+
+ The constants provided in the documentation for the subcarrier DDA values
+ assumed the clock was programmed to precisely 108MHz, but the PLL can't hit
+ that value exactly (or our PLL computation can't, in any case). The
+ result was an incorrect subcarrier frequency which resulted in synthetic
+ subcarrier phase shift and a lovely rainbow effect on the screen.
+
+ Unfortunately, the documentation didn't exactly describe the function
+ performed by the subcarrier clock hardware, so a bit of detective work was
+ needed. New constants were computed using the code in tv.5c and those, along
+ with lots of other values from the documentation were inserted into the
+ necessary tables.
+
+ The result appears to generate stable NTSC video on the svideo connector.
+
+commit b8f3ec77104882fc755ddc88f2583cd5d15387a4
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Thu Dec 21 10:46:17 2006 +0800
+
+ This fix should be better, I830SetMode will call i830_sdvo_dump,
+ if the sdvo is not initialized, X will crash. So any application which
+ SetMode will crash X if there is no SDVO output.
+
+commit b83cbec34a8d1ff39bd303fcd27fc03dcdb1d6c3
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Wed Dec 20 17:32:05 2006 +0800
+
+ fix null pointer reference,
+ I hit this when running doom3-demo
+
+commit 4ba72fc408e7fab7c384aff5e73f0cfb8fd86cf3
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 19 22:39:57 2006 -0800
+
+ Reinitialize DGA mode list whenever we update the global list.
+
+ DGA has a copy of the current mode list (yes, this is broken).
+ Regenerate it whenever the ddx mode list changes.
+
+commit 07d3f141712e2abf704cb68a59cd5d5c3390e2ca
+Merge: 0cd1a11 c28075e
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Dec 19 22:01:02 2006 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit c28075e1d70c98b39fc9829a6a01da171a9b9426
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 19 21:53:10 2006 -0800
+
+ TV output I830OutputPrivate had wrong type (crashed in SetMode).
+
+ TV output private type field was set to I830_OUTPUT_SDVO instead of
+ I830_OUTPUT_TVOUT. When DGA mode setting occurred, the sdvo output debug
+ code would be invoked and attempt to dereference sdvo-specific bits of the
+ private structure leading to a segfault.
+
+commit 2ef4c5e8f6444aad192304e5a2f7a0c77bfb917d
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 19 16:45:39 2006 -0800
+
+ Re-initialize physical screen size only if -dpi was passed.
+
+ Physical screen size from the config file or DDC will already
+ be set correctly in the screen structure, unless it was computed from the
+ virtual size using the -dpi command line option. Recompute physical size as
+ we reset the screen size if the -dpi option was used.
+
+commit b00951a5c87ca8c596ee9cc73d96d598eec60751
+Merge: 05cd921 c0a0ddc
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 19 16:22:04 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 05cd921140fae2746c3421715d7f18248a66735a
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 19 16:21:46 2006 -0800
+
+ Align textured video dither matrix to window
+
+commit c0a0ddc0ce69b60ac3a58d45cb32ccd0e0bfb0c9
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 19 16:06:13 2006 -0800
+
+ Bug #9382: Save the CRTC's desired mode in the old RandR 1.0 mode set path.
+
+commit 3c86fdda1d09fd22d4c15a8e412611db4cea7dcf
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 19 15:53:07 2006 -0800
+
+ Turn on dithering for 915 textured video
+
+commit 293ad158ece941eeb9894f5af4d663464b9954e5
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 19 14:35:51 2006 -0800
+
+ Remove 8k framebuffer stride restriction on 965.
+
+ Also, clean up the message if the limitation is hit.
+
+commit ff1223142aedcf888665de6e4d7d5d03a55b2688
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 19 12:49:55 2006 -0800
+
+ Only erase curMode in i830DisableUnusedFunctions when the CRTC is disabled.
+
+ This bug resulted in broken xinerama, among other issues.
+
+commit 3b5703c7fa08e63f2a31be7496ded9c70015946d
+Author: Daniel Stone <daniel@fooishbar.org>
+Date: Tue Dec 19 09:49:49 2006 -0800
+
+ Respect the srcdir.
+
+commit d89e211b12ff715d7475421af69157b102accaca
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 15 14:39:14 2006 -0800
+
+ Disable configure-disabled outputs before mode setting.
+
+ We're not supposed to turn off pipes/planes/dplls with outputs attached, which
+ we could have done before this.
+
+commit 3fc9feec7b29e0b908e3b90e0f6634117d66ba6d
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 15 14:38:23 2006 -0800
+
+ Simplify i830DisableUnusedFunctions() by using the CRTC dpms routines.
+
+commit 7b8056e3e347b15b37be0116315d7d3a23aef99f
+Author: Keith Packard <keithp@ukulele.keithp.com>
+Date: Tue Dec 19 01:32:54 2006 -0800
+
+ Writing 1 to I2C line means to tristate the bus so others can manipulate it.
+
+ We were forcing bus lines to 1 which was breaking DDC for some monitors.
+ Instead, make the PutBits function just tristate when writing 1 bits.
+
+commit 0cd1a11d4493ef4a2d05ccf8aadec743504dba5f
+Author: Zou Nan hai <nanhai.zou@intel.com>
+Date: Tue Dec 19 14:03:19 2006 +0800
+
+ fix for bug #108
+
+commit eedef7adc53dd8337d27c02551c5778fb43bae05
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 15:57:44 2006 -0800
+
+ Add a detect() function for DVO chips, and implement it on sil164.
+
+commit 8983845f91cacf8110c70121e0f5f293fe443e6d
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 15:57:08 2006 -0800
+
+ Fix crash in xf86SetScrnInfoModes when pScrn->modes ends up empty.
+
+commit fa4642048b183134544fc5ee47558446d27f6194
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 15:32:35 2006 -0800
+
+ Clean up i2c_vid interface, including de-StudlyCapsing and removing dead code.
+
+ The old Init() function is removed and the previous Detect() function is now
+ init(). This leaves us room in the namespace for a detect() like other
+ outputs have ("is the monitor connected?"). Also, Power() became dpms(),
+ taking a DPMSMode*. In general, the mode setting path now matches the intel
+ internal path, except for the lack of mode_fixup().
+
+commit dcb069a1da6b3300b0772843dd9b67efdf319637
+Author: Dave Airlie <airlied@linux.ie>
+Date: Tue Dec 19 10:29:56 2006 +1100
+
+ ch7xxx: add lookup table for name
+
+ Don't load if we don't match name
+
+commit 0305298405bd7018e5c520bdd5ea46a75be09f37
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 14:49:01 2006 -0800
+
+ Limit modes to 165Mhz on CH7009, according to spec.
+
+commit 23114fbccad849249b4b7200e3d085a9ac0e2e99
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 14:47:44 2006 -0800
+
+ Align the driver to the CH7009[AB] spec.
+
+ With this, the driver works at 640x480 and 1280x1024 on my panel.
+
+commit 633d718f6fb019844304228a81c84a8605da004f
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 13:59:17 2006 -0800
+
+ Clean up a bunch of log noise from ch7xxx startup.
+
+commit 3167bc6b24bd74c50ca4c4d361b14aa24d77cfa3
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 13:45:55 2006 -0800
+
+ Fix DVO mode valid function to not throw out all modes.
+
+commit 4ca92da5b93b07f0bff51843f8fb5d04a2a29443
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 13:45:34 2006 -0800
+
+ Add save/restore to ch7xxx to avoid segfaults on server start.
+
+commit 31849edb3b503ade659981dfa36babf5ad8757c5
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 13:32:21 2006 -0800
+
+ Move the ch7xxx code to the style I've been settling on for output code.
+
+commit 1975fa5b010100196af201e40f43b30a149b7750
+Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
+Date: Mon Dec 18 14:08:55 2006 -0500
+
+ Revert "Convert callers of LookupWindow() to dixLookupWindow()."
+
+ This reverts commit 08575331ac75783c9910cfb6e78db701a29983ac.
+
+commit 2d0ca2202cb0d780bb4387bbe04e5caa6512e3b1
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 18 10:37:33 2006 -0800
+
+ Bug #8786: Treat pictures with no color data as non-component alpha.
+
+ This is an un(der?)-documented part of the render protocol: If the mask is
+ alpha only, then the component alpha flag is ignored on it.
+
+commit 65cd18b97bc533b24031d6eb882fd3074779ceba
+Merge: bf43f8c 6823ca8
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Dec 17 17:32:24 2006 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 6823ca87f3b1ef3b28ed167254dcfce2a80467df
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sat Dec 16 21:12:47 2006 -0800
+
+ Follow mode setting order in RestoreHWState.
+
+ Add delays after output and CRTC disable. Restore panel fit register before
+ PLLs are restarted. Move all VGA restore code last. Shuffle various register
+ writes around and add delays to match PipeSetMode code.
+
+commit 86558cc622b516b568cc26efdf9b64d4b660f50f
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sat Dec 16 21:09:31 2006 -0800
+
+ Prefer earliest CRTC when mapping to outputs.
+
+ For some reason, the code was preferring the last possible output when
+ mapping outputs to crtcs. Use the earlier CRTC instead to make the i830
+ driver consistent with BIOS usage.
+
+commit 8e6ab99b3195325f9fe5432725fe328591c0c7e2
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sat Dec 16 21:06:36 2006 -0800
+
+ Not restoring active outputs. Wait for input sync before enabling outputs.
+
+ Oops--looks like a typo to me; the code was callint set_target_output
+ instead of set_active_outputs.
+
+ BIOS loops waiting for the SDVO input to sync before enabling outputs, this
+ makes sense to me.
+
+commit bffd611b0a1cb05868e0f93e6ff9357a3116eaa6
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sat Dec 16 21:03:15 2006 -0800
+
+ Follow BIOS order in writing DPLL/DPLL_MD registers.
+
+ 965 BIOS writes DPLL and then DPLL_MD.
+ 945 BIOS writes DPLL twice.
+
+commit 9b1a1b170befae2e705c23ce295837d0d13b60c0
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sat Dec 16 16:53:49 2006 -0800
+
+ reorder restore writes for 965 VGA
+
+commit 08575331ac75783c9910cfb6e78db701a29983ac
+Author: Eamon Walsh <ewalsh@tycho.nsa.gov>
+Date: Fri Dec 15 17:44:44 2006 -0500
+
+ Convert callers of LookupWindow() to dixLookupWindow().
+
+commit 60411bc4d0b3c53850c73b7246d5f7ed5c2d4084
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Thu Dec 14 18:36:44 2006 -0800
+
+ Follow BIOS PLL write protocol (disable,enable,enable).
+
+ This gets VGA output and text restore working, but SDVO is still not working.
+
+commit 082519f34b468d0c5aa08db74ff2b51cf411d743
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Thu Dec 14 16:51:48 2006 -0800
+
+ Turn pll/pipe/plane on in crtc_set_mode
+
+ Instead of delaying pll/pipe/plane enables to the dpms function, turn them
+ on right away in the crtc_set_mode function. To avoid rewriting these
+ registers in the subsequent dpms function, check each register written there
+ to see if the enable bit is already on and don't rewrite.
+
+commit 55e7a32096a58f7bb2380b04df6b3dd9dc8e5b6a
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Thu Dec 14 16:50:26 2006 -0800
+
+ Respect Virtual in xorg.conf
+
+ Instead of growing virtual to fit our desired sizes, if it is set in the
+ config file, use the value as the virtual size and make the default
+ configuration fit within that size (if possible).
+
+commit d4142abc68888178a8f6c54fdcece91e898bc9f5
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 14 13:49:08 2006 -0800
+
+ Set frame buffer size ranges in xf86_config.
+
+ Initialization and default configuration code needs to know the range of
+ legitimate sizes for the frame buffer.
+
+commit 2b5a5542ad7d1c558d1684a0a69b66bab6e9d001
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Dec 14 13:43:50 2006 -0800
+
+ Change TV modes from Preferred to Driver.
+
+ This avoids having the artificial TV mode size drive overall screen size.
+
+commit 3fe802453a85183a69c36a098639895f49b17df1
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Wed Dec 13 13:15:14 2006 -0800
+
+ Move xf86CrtcConfig to ScrnInfo private.
+
+ Pull xf86CrtcConfig out of the driver private structure and allocate a
+ ScrnInfo private index for it. Also, make the arrays of outputs and crtcs
+ dynamic instead of fixed.
+
+commit 0f6addc8a6aeb9bd041d0f8e8e5850e76764ba51
+Merge: 001e272 3fa5b39
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Wed Dec 13 12:10:31 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 001e272437a0247ffbc4b9ff8a3f2b437cf4c533
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Wed Dec 13 12:08:58 2006 -0800
+
+ Auto-detect working TV output by checking TV regs functionality.
+
+ We can't figure out which chips are supposed to have TV out, so instead we
+ prod the TV_DAC register to see if it will hold the value written to it, if
+ not, we assume the chip doesn't have TV out.
+
+commit 3fa5b3998353518c40e2fb0c28b425ee22c8d625
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 13 11:54:36 2006 -0800
+
+ Add magic double-write of the dpll register to fix mac mini cold boot.
+
+commit e27372e85a007d8a7e31678dbdb62755c22918bf
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 13 00:26:27 2006 -0800
+
+ Add some caution with PCI write posting and DPLL delays to i830_crtc_dpms.
+
+ While it doesn't specifically help/hurt my test case, we've seen enough
+ mysterious behavior that caution is probably warranted.
+
+commit df0a5a25aa72563a33731f8063602dd7faad8459
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Wed Dec 13 11:38:18 2006 -0800
+
+ Rename outputs to TMDS-1/TMDS-2, LVDS, TV and VGA.
+
+ These names are reasonably short and describe the connector rather than the
+ target media, but we don't appear to have any way to determine what is on
+ the other end of the wire. More importantly, they're all unique now.
+
+commit e3604fc63243ab0f31673a923d20e23131b607f6
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Dec 13 15:42:53 2006 +0000
+
+ Delete ChangeLog
+
+commit 4cdcaac26b3f425ec8fcc2fd3eaa9bfb7a137422
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Tue Dec 12 23:26:00 2006 -0800
+
+ Write dpll_md register while updating dpll as that appears to be required.
+
+ SDVO multiplier on 965 is in the dpll_md register; for some reason, that
+ needs to be written along with the dpll value or the multiplier doesn't get
+ set correctly.
+
+commit 9dd1520421dcb8c7f36a684f3d2ffb6b42a6671a
+Merge: d57a258 63bf484
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 12 22:52:59 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit d57a25815398ae83eae8bdcb3a1b607760aa30b6
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Tue Dec 12 22:48:21 2006 -0800
+
+ Elide duplicate modes in pScrn->monitor.
+
+ xf86DDCMonitorSet dumps all of the DDC-discovered modes
+ into the monitor mode list without checking to see if they
+ are already present. This provides an ever-changing list of
+ modes for outputs which have no DDC and which simply duplicate the monitor
+ mode list.
+
+commit 63bf48481d4e5e285fdfe7037ea4150283163a54
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 22:42:41 2006 -0800
+
+ Correct typo in mac mini hack, and return modes when the hack is unnecessary.
+
+commit 41444183b59ed84c09749ca89afbef036d42ec5f
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 18:08:57 2006 -0800
+
+ Replace custom, partially broken DPMS implementation with a generic one.
+
+commit 7ed1b05922c07ff45a5794a992fd3d59ab55aa73
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 16:03:52 2006 -0800
+
+ Fix mac mini SDVO output: write the SDVO[BC] enabled register state twice.
+
+commit 9776f6c68b3cdd5585e58e677c1b1318d9aedaf4
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 16:02:47 2006 -0800
+
+ Flush the plane changes in i830_crtc_dpms()
+
+ Otherwise, the changes may not have taken effect.
+
+commit 54823ac39ce9666099d69196694643f04123cb4d
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 14:38:08 2006 -0800
+
+ Move the SDVO sync detection to after we've turned the port on.
+
+commit ec45d7274333cccd20ad080facc8e995ad7b26b0
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 13:54:49 2006 -0800
+
+ Extend the error state reporting to cover ESR and decode PGTBL_ERR for 945.
+
+commit 838af10b85ee8c085c6d2c4fbe18fd90b2be9d3f
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 13:45:41 2006 -0800
+
+ Move PrintErrorState and CheckInheritedErrors code to i830_debug.c.
+
+commit 668ae6ce3c3c4b93a58749fd44ef32451adb6f9c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 12 11:39:40 2006 -0800
+
+ Set the SDVO port to on before sending the SDVO output on command.
+
+commit 91a538beadc17155be395ea2c8109a0958a969bd
+Author: Eric Anholt <eric@anholt.net>
+Date: Sat Dec 9 15:58:47 2006 -0800
+
+ More debugging output for SDVO.
+
+commit ce54538b905eb329f45c1b9b15e95ddce4a7927f
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 8 08:26:30 2006 -0800
+
+ Add a hack for DDC on my Mac Mini.
+
+commit c8c1fb64ccecfb88f9923ad65c9898aa44692260
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 11 16:02:29 2006 -0800
+
+ Move the overlay mode switch status updates to when we enable/disable crtcs.
+
+ This should help if we mode switch with randr during video playback, and also
+ simplifies the code by moving the protection all to one place.
+
+commit 3f3791ba2ece8e8a7aa3a5676f5f6361862a292c
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 11 15:20:15 2006 -0800
+
+ Remove remnants of old savedCurrentMode hack. Man, that was gross.
+
+commit c21baa5a3044eb66f2518b018dae07eadb989aa1
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 11 15:15:01 2006 -0800
+
+ Remove dead remnants of old clone mode support.
+
+commit b3865f34669319f449f2da8f87a4eef6ec8e7804
+Author: Joshua J. Berry <des@condordes.net>
+Date: Mon Dec 11 14:46:20 2006 -0800
+
+ Include i830.h to get M_T_* compat defines for older X Servers.
+
+ Not duplicating the defines ensures that we won't let the compat bits slip
+ into the X Server when we move this code over there.
+
+commit 24d9521c7ae72e146025f10ea85b07ebd7041716
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Dec 11 09:34:50 2006 -0800
+
+ Add error messages for previous silent DRI initialization failures.
+
+commit bf43f8ce736d91659c2757fb39b13e63bc5891a4
+Merge: 684ea26 9452321
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Dec 8 14:17:43 2006 +0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 94523215127a3458a28d0f1217224a27c8870884
+Merge: 75f4df2 fde52de
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Dec 8 14:15:06 2006 +0800
+
+ Merge branch 'modesetting' of git+ssh://zhen@git.freedesktop.org/git/xorg/driver/xf86-video-intel into modesetting
+
+commit 684ea26b740d07ec8f6b0d223c1171e70c073bfa
+Merge: 64269de 6b977f0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Dec 8 14:03:10 2006 +0800
+
+ Merge branch 'exa-i965' of git+ssh://zhen@git.freedesktop.org/git/xorg/driver/xf86-video-intel into crestline
+
+commit 99f6f84076b25af69dc226e6d4704c74d207e657
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Dec 7 09:47:34 2006 +0000
+
+ Bump to 1.7.3
+
+commit fde52de870c84821ab457e17634c334a10cf71ab
+Merge: 7dbe6c3 85de8a0
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Wed Dec 6 23:40:13 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 7dbe6c378d1bc0c06ed6be4c1f9ca38ac31a5571
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Wed Dec 6 23:39:14 2006 -0800
+
+ Move vga restore to end of RestoreHWState.
+
+ I was having consistent system lockups when the vga restore
+ was first. Moving it to the end has reduced them to an infrequent
+ occurrence (but, alas, it has happened once since). This does not
+ make me happy.
+
+commit 28c7002b1cf81e286a083384575d53021d3ce906
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Wed Dec 6 23:35:15 2006 -0800
+
+ Use DOUBLE_WIDE mode on all hardware.
+
+ DOUBLE_WIDE mode is needed when the pixel clock is > 90% of the core
+ clock rate. The code guesses what the core clock rate is based on
+ the bus (AGP -> 133MHz, PCI-E -> 200MHz).
+
+commit 85de8a05804eaebcd61430793ef5406f196f9a95
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 20:26:53 2006 -0800
+
+ Include render.h to get SubPixelUnknown define.
+
+commit 64269de3c34db047e78b788dc5681abdc009f8aa
+Merge: 8ddbc26 182d2f5
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Dec 6 18:09:28 2006 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit 182d2f503a7a1be90d93a4a15059585a564fd3ce
+Merge: 677c454 6777d80
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Dec 6 17:18:58 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 6777d8044d5cc063698e05afb7a93a58a7a3b64a
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 17:10:06 2006 -0800
+
+ Harmless warning fix.
+
+commit c6ce8a3c3355e8a56e86856caa56baf1cd3c0231
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 17:07:48 2006 -0800
+
+ Reduce dumpregs to X startup, after a mode set, and LeaveVT.
+
+ While here, remove some other register dumping that is better done by
+ i830DumpRegs().
+
+commit b23dec37b28a76433ad5d537ab508294e843cabe
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 16:58:24 2006 -0800
+
+ Save/restore registers around calls in PreInit with register side-effects.
+
+commit d3c21c09e3904b3d32aca7563044194b061ac2fa
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 16:50:52 2006 -0800
+
+ Remove stale i830_tv_pre_set_mode. Replaced by generic dpms hook call.
+
+ Also replaced by not spamming unrelated ADPA register. At least, it had sure
+ better not be related.
+
+commit 9c3e733aaa2068fcb0164577237ed70d177e9b5a
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 16:36:42 2006 -0800
+
+ Save/restore more TV registers.
+
+commit d5ec9d2160f47f21a6015c1cc05b57274cbb0471
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Wed Dec 6 14:44:40 2006 -0800
+
+ Cannot modify DPLL register in output mode_set function.
+
+ DPLL register contains clock setup, so it cannot be written
+ from the output mode_set function or 'bad things' happen.
+
+commit 5d345c13a949caef384a63769d7185885de6d26d
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Wed Dec 6 13:19:58 2006 -0800
+
+ Clean up SDVO multiplier debug output
+
+commit 6ee63364f5fabbc5578bcc9ded38c778595f5a6d
+Merge: 56f7119 b75ecdb
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Wed Dec 6 12:53:22 2006 -0800
+
+ Merge branch 'modesetting' into nonrandr-setup
+
+ Also, fix buffer overflow in i830_debug.c
+
+commit b75ecdb48309a15eb7c52b279c7f8523a95bcd48
+Merge: 1cb6311 b3bb10e
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 11:59:33 2006 -0800
+
+ Merge branch 'generic-mode-set' into modesetting
+
+commit b3bb10e33e44c78f132d239e30931f97065a9fd6
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 11:53:40 2006 -0800
+
+ Fix LVDS: Don't change bits in LVDS other than port enable/pipe select.
+
+ This behavior matches what we did before when LVDS worked.
+
+commit 47d07b1073c162ec00a8b173b8b6389dc4adbe88
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 10:56:38 2006 -0800
+
+ More LVDS fixed mode fixing: use the EDID DTD's blank length.
+
+commit 727bf1cbf72362edcbdd68001a3558fd2b2b4eca
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 10:12:49 2006 -0800
+
+ Add missing newlines to new debug output.
+
+commit 236c53be5d94798d55219651a6885fee32ce175b
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Dec 6 10:10:27 2006 -0800
+
+ Fix LVDS fixed mode code after generic-mode-set.
+
+commit 1cb6311c1182fe98d2b8d237cef42509c3178f9a
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Dec 6 16:31:00 2006 +0800
+
+ fix typo in checking xf86CrtcScreenInit return
+
+commit 56f71194157ef929b62fe34a89c840bd59e56301
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Dec 6 00:13:57 2006 -0800
+
+ Use xf86 structures for default config instead of RandR.
+
+ To avoid requiring RandR 1.2 in the X server, use the
+ xf86 Crtc and Output structures as the basis for the default configuration
+ computation (and, eventually, the config-file based configuration as well).
+
+commit 6b977f0eca388a295ca7348f5960bd8e0192cf1d
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Dec 6 13:24:44 2006 +0800
+
+ fix Makefile.am
+
+commit ffd8aacbe7c72b696ff7257609e3c1d45c057609
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Tue Dec 5 19:48:39 2006 -0800
+
+ new server APIs are not in server-1.2 (version 7.1.99.2)
+
+commit a73649611414cb92697575efa90addfc3cf91cf9
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Tue Dec 5 19:47:04 2006 -0800
+
+ Capture VGA registers sooner so checks are more informative
+
+commit 62fba80d3ea9c185ec8ae1e06c099c02bf844d8b
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Tue Dec 5 19:43:41 2006 -0800
+
+ fix up misleading comment in i830_crt.c about border register
+
+commit 041f0029c78620ca1b50e7e5d11f5d022e189641
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Dec 6 10:43:29 2006 +0800
+
+ Formats fixes
+
+ We should use card_fmt for src/mask picture, and use dest color
+ buffer format helper. Also fix wrong name for G965 texture formats,
+ and pict_x1r5g5b5 isn't supported by sampler engine.
+
+commit 1d94ec7de3387b70815679977cfc5d88200efa99
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 5 18:22:59 2006 -0800
+
+ Fix ordering of PIPE[AB]SRC debug output to be (x, y).
+
+commit eee23fdd0dadd38a2b80525ec886120150f91077
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 5 18:19:49 2006 -0800
+
+ Fix copy'n'paste-o of the ordering of h/v fields in DSP[AB]SIZE.
+
+commit 58c247c6de56508b00eadf77b4c145c94134270d
+Merge: 0b4c3e7 2e8c927
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 5 15:28:21 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+ Conflicts:
+
+ src/i830_display.c
+
+commit 0b4c3e7bff790e1e99ace5036a41e96046335b04
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 5 14:39:47 2006 -0800
+
+ Add a bunch of per-register debug code to i830DumpRegs().
+
+commit 7844e576e71c004ed495bbc31f7bbe890d18b8d9
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 5 14:39:09 2006 -0800
+
+ Move reg dump from i830PipeSetMode to after we set up the modes with RandR.
+
+commit e777d38ce98d7220621b049b09df1deca5a5df42
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Dec 5 10:01:31 2006 -0800
+
+ WIP code to move mode set sequencing to XFree86 handlers.
+
+ It compiles. It definitely doesn't run.
+
+commit 2e8c927f9308069a82f25b65bb0c62bc5a156832
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Mon Dec 4 14:02:30 2006 -0800
+
+ Re-create RandR Crtc/output structures on server regen.
+
+ RandR structures must be re-created when the server reinitializes,
+ but the driver PreInit function is not re-invoked. Recreate them
+ manually in this case during ScreenInit.
+
+commit 583619cdb2b6a469299dd5bf658bf5b51ee999fe
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Dec 4 15:48:04 2006 +0800
+
+ set correct default border color
+
+commit f28d5fc30ccf60d72d5832bb6542522dc7f1c463
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Dec 4 15:47:31 2006 +0800
+
+ fix typo in ps kernel
+
+ fix corrupt in some subspans
+
+commit 677c454469a6223460778033758e384e989cea47
+Merge: 16f9a56 8fcf9a8
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Dec 2 23:28:38 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 8fcf9a81179ee8577ddab5e904c58fbfd14cf59c
+Author: Keith Packard <keithp@ukulele.keithp.com>
+Date: Sat Dec 2 22:58:31 2006 -0800
+
+ DOUBLE_WIDE mode for high pixel clock 8xx. Rewrite PLL search.
+
+ High pixel clock modes on pipe A of an 8xx chip require
+ DOUBLE_WIDE mode. It's supposed to be modes > 180MHz or so,
+ but the board I have requires DOUBLE_WIDE mode for clocks > 108MHz
+ or so. The limit is related to the core clock speed of the chip, which
+ can be found indirectly through PCI config space. None of the possible
+ values explain why this board needs this mode for these relatively low
+ clock rates though.
+
+ Also, create tables of data for the PLL computation and use them
+ instead of code. I think it's cleaner looking. It is also untested on
+ 9xx. It'll work. Really.
+
+commit 81dde11d419c8f9198ab3502d9813d66d0bc6d6d
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 1 10:37:19 2006 -0800
+
+ Fix copy'n'paste-o from restructure-outputs that resulted in crashes.
+
+ Our driver private is stored in the bus that we set up, not the DDC device
+ that xf86 code does.
+
+commit a504e31f0fefdec802ae403573f52fac3d577b65
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 1 12:49:43 2006 -0800
+
+ Don't try to write the read-only PP_STATUS register.
+
+ Also, don't bother reading the PP_CONTROL register to try to get LVDS status --
+ that's what PP_STATUS is for.
+
+commit f21230d3e1cc5470e8f88404b5d9f1702bec44bb
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Dec 1 12:48:57 2006 -0800
+
+ Add the [ax]4r4g4b4 source picture formats.
+
+commit 8ddbc26b276016b922487f7b1e8997998b655a7d
+Merge: 93975a5 16f9a56
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Dec 1 10:57:16 2006 -0800
+
+ Merge branch 'modesetting' into crestline
+
+ Use new TV output condition (all 9xx except 915g)
+
+commit 16f9a56070a01c7ada8e566d9b73fcf7900136e0
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Dec 1 10:50:27 2006 -0800
+
+ TV output exists on all 9xx chips except for 915G
+
+commit 93975a526086432cdeb8d7ead721a862d632c1e7
+Merge: 08b6569 e603cd0
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Dec 1 10:28:58 2006 -0800
+
+ Merge branch 'modesetting' into crestline
+
+commit e603cd0c73344ef137d3276b5cfcbcf4df340778
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Dec 1 10:08:36 2006 -0800
+
+ Leave detected TV status alone when no free CRTC is available.
+
+ Yes, this means not detecting TV hotplug when two outputs are
+ already running. An alternative would be to turn off one of the other
+ outputs temporarily, but that would cause flashing. Something to consider.
+
+commit ec30356d950199903978265076b8a4e3960cf84f
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Dec 1 10:06:29 2006 -0800
+
+ Do output detection before any crtc allocation.
+
+ Some output detection requires a crtc for load detection, perform all of the
+ output detection before allocating any crtcs so that there will be a free
+ crtc for any load detection. Avoids losing TV detection when two monitors
+ are connected.
+
+commit 7642da82781826cb3b45078750cc54d8f592893a
+Author: Keith Packard <keithp@ukulele.keithp.com>
+Date: Thu Nov 30 23:21:39 2006 -0800
+
+ When CRTC is disable through RandR, the mode is NULL. Don't dereference it.
+
+ Correctly interpret mode == NULL as CRTC disable, make sure the CRTC is
+ disabled in this case.
+
+commit de50ca9ed9e78c17be1badec62e35ed5e4d62b05
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 30 17:56:47 2006 -0800
+
+ Tristate the clock/data pins during GPIO when released while getting values.
+
+ While the register is laid out suggesting that you can read a low value while
+ driving the output high, and the I2C spec seems to indicate that you should be
+ able to as well, and on some hardware this works successfully, on the i865 and
+ perhaps some other chips it doesn't. So, if we're not holding the clock or
+ data pin low during GetBits, tristate the pin so that we can successfully read.
+
+ This fixes i865 analog (VGA) DDC so it successfully sees slave acks.
+
+ Also, improve the I2C bit-banging debugging.
+
+commit 8c44556408601db2be799b5ac5c4da1d92886d31
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 30 15:56:52 2006 -0800
+
+ Preserve some GPIO bits that the docs tell us to.
+
+commit 28401b25cc5c1afb272e506cef196ba3a1258bd3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 30 15:45:13 2006 -0800
+
+ Add debug code for the bit-banging I2C implementation.
+
+commit ff64bc7397cafbec94e388e1625b3a1999f1aca7
+Merge: b94b7c4 16e01b1
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 30 14:09:31 2006 -0800
+
+ Merge branch 'restructure-outputs' into modesetting.
+
+ Outputs and Crtcs now have a driver-independent representation which should
+ permit generic code to control RandR 1.2 and startup configuration.
+
+commit 16e01b117bb7ae90b150dd4f25a887dd895cf473
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 30 11:55:29 2006 -0800
+
+ Oops. Don't try to use xf86RandR names, use xf86RandR12 instead.
+
+ Attempts to override functions in core server fail, so use
+ new names instead.
+
+commit bcf206ff17c6eca8212db72dd86fcd8fdc0162da
+Merge: 27ca1c1 2c8c310
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 30 11:39:56 2006 -0800
+
+ Merge branch 'restructure-outputs-origin' into restructure-outputs
+
+commit 27ca1c17aab30670dd1d07e0809fd58cdecfc3b6
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 30 11:39:37 2006 -0800
+
+ Rename I830 randr functions to xf86 as they are becoming generic.
+
+ Change function names, create separate i830_randr.h header file
+ to contain definitions.
+
+commit b94b7c4bcfdb7ba59ed818f72309b5060a2ab7ee
+Merge: b6fc8df 25e6e49
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 30 09:15:30 2006 -0800
+
+ Merge branch 'exa' of ../xf86-video-intel into modesetting
+
+ Conflicts:
+
+ man/i810.man
+ src/Makefile.am
+ src/i830.h
+ src/i830_driver.c
+ src/i830_rotate.c
+ src/i830_video.c
+
+commit b6fc8df9a52f5fe1b4d26ae06bc4d48235b44a67
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 29 15:06:32 2006 -0800
+
+ Properly detect the GTT size on the G965.
+
+ In the past, the GTT has always been sized just large enough to map the whole
+ graphics aperture. However, apparently on the G965 that isn't the case, and
+ it is actually 512KB on hardware with a 256MB aperture. This resulted in X
+ not bothering to allocate memory for 256KB that it thought was already mapped
+ into stolen memory, and thus garbage rendering (particularly visible in large
+ video modes that displayed this unallocated memory). The kernel happens to
+ get the right answer by hardwiring a 512KB GTT size already, but that may not
+ be true on future hardware.
+
+ Instead, we use a convenient field in PGETBL_CTL that's specifically for the
+ GTT size rather than the aperture size, which gets us the answer we want.
+
+commit 359dc81c07901665da0f86c573c096fa1661cdd2
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 29 15:01:39 2006 -0800
+
+ Revert "Don't allocate stuff in the first 256K of video memory (GATT?)"
+
+ This reverts commit 997e8c9bb4235cab1fff4738387df9afcbea0a03.
+
+ The GTT is definitely located at the end of stolen memory. This commit
+ apparently worked around mis-estimation of the GTT size.
+
+commit db391e8e4c4d87bfe3ccad0de14dd5b47b69b8fe
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 17:16:46 2006 +0800
+
+ shut up warning
+
+commit 290f15cd4cda97727ebcaadacbbbf7650278934b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 17:14:55 2006 +0800
+
+ fix alpha blending state
+
+commit 3d4edd325f3859c749ee42df102bb4239eac5287
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 17:05:32 2006 +0800
+
+ Add in sf/wm program for mask picture without CA
+
+commit a704120b15efae47344a90d972e7f3da64a202a6
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:52:44 2006 +0800
+
+ misc cleanup for G965 vs/sf/wm states
+
+commit e3c70c68e39183226e498271c44e98ef1b96a681
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:40:15 2006 +0800
+
+ WM kernel needs scratch space
+
+commit aa515c54f0cfd9025fc38dc4b7938ff17a8a13fb
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:37:06 2006 +0800
+
+ Setup default border color for our samplers
+
+commit b6eba96584bcd2c024f6443d9f3728eb65b234fb
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:30:53 2006 +0800
+
+ fix vertex buffer size
+
+commit 453842c9ff733af45fa665d9db6a35164f45c60a
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:24:24 2006 +0800
+
+ clean up issue cmd to ring buffer
+
+ Make it easy to track different part of ring state, and
+ use rectlist primitive instead.
+
+commit 18ad7d5cf04081d89a9f978ccc7794116f7c498b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:04:16 2006 +0800
+
+ remove wrong scale_units
+
+commit 3d5bd0c14eea7951540f7a12eee257428f78e2d1
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 16:02:16 2006 +0800
+
+ Rename exa sf/wm program files
+
+ Also fix some minors in wm program.
+
+commit a06beb5f80f097fac3b718e742742bb32f1c1194
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Nov 29 15:47:19 2006 +0800
+
+ EXA state mem for G965
+
+ Not split offscreen mem for exa, but alloc a dedicated one
+ for G965 states.
+
+commit 9e4e7d4fa25a64a2494e7531967599142e60e716
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Nov 28 16:36:09 2006 -0800
+
+ Conditionally compile old-server compatibility code in.
+
+ This also replaces calls to compat code with the real names of the functions,
+ and slips #defines to an i830-namespaced version in when doing compat.
+ The current server version (7.1.99.2) is still left as requiring compat code,
+ since the version hasn't been bumped yet.
+
+ This also fixes some failures to call the compat code, and some failures to
+ actually compile the compat code. Oops.
+
+commit 8d9ba2405d1f1e58a0cfb570e83e9206af8525b5
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Nov 28 15:44:06 2006 -0800
+
+ sparse cleanups (use NULL instead of 0 for pointers)
+
+commit dbb8135e10e943a4d4e65f95853eeccc764ccf24
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Nov 28 13:21:31 2006 -0800
+
+ Remove printing of the XFree86 screen mode list, and some other detritus.
+
+commit e8fb40ab1063b18372be2b5996257eb69d3f15c4
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Nov 28 11:17:21 2006 -0800
+
+ Replace custom DDC mode list code with a copy of the X Server's.
+
+ The X Server now has most of the mode helper functions we want, and we can
+ start removing compilation of our copies when the server is new enough.
+
+commit 2c8c310bd8a105dbeda5c989dca31cc766eb6bb8
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Mon Nov 27 22:18:59 2006 -0800
+
+ Driver-independent code tracks num_crtc itself, don't do it in driver.
+
+ Now that driver-independent code manages array of crtcs, let it track
+ the count and just have the driver compute how many there are in
+ a separate variable.
+
+commit c421724d8151d1d4578468abdbe8fe1120e373ca
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Mon Nov 27 22:15:40 2006 -0800
+
+ Move #include "randrstr.h" from i830.h to i830_xf86Crtc.h
+
+ As part of the separation of driver-dependent from driver-independent code,
+ the interactions with RandR are moving entirely out of the driver, which
+ means the driver shouldn't even know about RandR, while the
+ driver-independent code does.
+
+commit e8d1db326388c9a112f2b8e2eff5a81210b8d6e4
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Nov 27 12:01:47 2006 -0800
+
+ Move crtc/output config to sub-structure.
+
+ Place crtc/output in separate structure at head
+ of driver private structure. Use this from the config code
+ to make it driver-independent. Still lots of effectively driver
+ independent code that continues to use driver dependent stuff,
+ but that will change.
+
+commit 72692ba2e0254460c4f5a8cd476f5748383390ae
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Nov 27 11:23:55 2006 -0800
+
+ Postpone SDVO DDC bus creation until we've detected the SDVO device.
+
+ This reduces log noise for those of us with no SDVO devices.
+
+commit 5f38bc3e2a685da5c03efa8103a353f79c842aa7
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Nov 27 11:06:50 2006 -0800
+
+ Reduce the severity of many informational log messages.
+
+commit 85f404bc67d5ab54175c19e75aad406abfcf2133
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Nov 20 09:32:26 2006 -0800
+
+ Re-indent ch7xxx driver.
+
+commit a0518f5a440630365b1d935b7c2d0725f326ad51
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Nov 26 19:44:38 2006 -0800
+
+ Remove mode setting from load detect CRTC allocation.
+
+ To share load-detect CRTC allocation with TV driver,
+ move it to the output driver
+
+commit a47c549df036990e29f05bc3df80e1a2ab9f3b3c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Nov 26 18:26:26 2006 -0800
+
+ Clean up reworked data structure code so the server actually starts.
+
+ Use i830GeLoadDetectPipe again (instead of missing xf86AllocCrtc). Actually
+ create new Crtc structures. Fix a few other NULL pointer dereferences.
+
+commit 2529863a1ade782819d76be2d0dc16e89028c1e3
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sun Nov 26 16:44:17 2006 -0800
+
+ Start output/crtc restructuring work. It compiles.
+
+ Outputs and Crtcs are now split between 'generic'
+ and 'driver specific' pieces in the hope that more code
+ will be able to migrate to the xf86-generic layer.
+
+ Right now, the code remains tangled together, significant
+ work remains to tease the pieces apart. First the code
+ needs to be made to actually work as-is though.
+
+commit 9aca4e207440119f4280b78199a221f85d50c511
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Nov 22 15:52:32 2006 -0800
+
+ Remove custom configuration code (which was #ifdef'd out).
+
+ Multi-screen configuration is moving to generic code.
+
+commit 850e3652f4d5bb57f3c4ccb9cf29e2c75fecba9d
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Nov 22 15:36:43 2006 -0800
+
+ Note which pipe has failed to be configured for VBlank interrupt
+
+commit 659e3db925de91954421f7f33c072576dfefcc4a
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Nov 22 15:35:59 2006 -0800
+
+ Set up maximum screen size for clone instead of panorama.
+
+ This avoids heading past the 8Kbyte stride limit of DRI so
+ that 3D will be available by default.
+
+commit 03c12f866529230df7a1503de61954cd5ade242e
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Nov 22 15:34:03 2006 -0800
+
+ Limit DRI use to cases when pitch < 8Kbytes, not 4096 pixels.
+
+ 3D rendering pipeline is limited to pitch of 8Kbytes and not 4096
+ pixels, which rather makes a difference at 32bpp.
+
+commit 6781575f734f05547d7d5ceef4116fc157bba44d
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Nov 22 16:49:57 2006 +0000
+
+ Be a little more verbose when rejecting modes.
+
+commit e065324661ad08b3b359136f48090232f6138959
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Nov 22 16:49:36 2006 +0000
+
+ update port attributes immediately when overlay is on.
+
+commit a0a9d1ea2ac9a0c665e5a1de5b8b8358dee3b9b4
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Mon Nov 20 17:25:00 2006 -0800
+
+ Set configured values for screen virtual size and initial frame.
+
+ Computation for virtual size and initial frame origin is quite
+ broken in xf86 common code.
+
+commit d6a0f917e601ea36643c6ad857756e19d24ecd73
+Author: Keith Packard <keithp@bouzouki.jf.intel.com>
+Date: Mon Nov 20 15:17:32 2006 -0800
+
+ Enable second SDVO channel.
+
+ Rework SDVO support so that it can deal with two channels correctly,
+ also save/restore all connected output timings.
+
+commit 08b6569dc663ddf38cb36a6875de6d4ab55acac9
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Nov 19 16:15:45 2006 -0800
+
+ Enable TV output on Crestline (untested).
+
+commit 05202cabbd23f15330b811ae6b8d708ad042bc40
+Merge: ee502dd b945a65
+Author: Eric Anholt <eric@anholt.net>
+Date: Sun Nov 19 16:14:18 2006 -0800
+
+ Merge branch 'modesetting-origin' into crestline
+
+commit b945a650e952f98c2d101b71bd3ec0f390478da5
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sun Nov 19 00:54:30 2006 -0800
+
+ Fix TV color key.
+
+ Subcarrier defines were incorrect in header file leaving one of the
+ DDA phases disabled.
+
+commit 28224af3d90a1a08d54a865dfaf20184330fe8a4
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Sun Nov 19 00:40:46 2006 -0800
+
+ Preliminary 945 TV output. Color key is broken. Fixed mode.
+
+ TV output is generating video with this patch, but the color burst
+ signal is incorrect somehow.
+
+commit ee502dd92a3dfccdc2efcfb76fc652694bc89e3b
+Merge: 15ff17c 2fe6107
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 17 14:57:41 2006 -0800
+
+ Merge branch 'crestline-origin' into crestline
+
+commit 15ff17c756e42f392306820e3f7ffbdcc56b9892
+Merge: 9cc2f33 816fc1a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 17 11:48:53 2006 -0800
+
+ Merge branch 'modesetting' into crestline
+
+ This works for analog, but SDVO output appears to not work yet.
+
+ Conflicts:
+
+ src/i830_driver.c
+
+commit 816fc1a76a5ac738e41b172ba8f43137c1521328
+Merge: 9948d83 7a7bb33
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 17 00:05:53 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 7a7bb331e10498e5b8ccec58130bb23334d36562
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 16 21:19:20 2006 -0800
+
+ Don't dereference null DisplayModePtr on disabled output.
+
+ During initial configuration, outputs which are disabled have null
+ modes.
+
+commit 2fe6107ac68e86ed183d8602436633348340678d
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Nov 17 13:11:36 2006 +0800
+
+ Rotation support for 965GM
+
+commit c4508c1cadf323e9ef1d0e69dd77d5e841a6a978
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 16 21:09:23 2006 -0800
+
+ RandR-based initial output configuration.
+
+ Using pre-init computed RandR information, make reasonable
+ default choices for the output configuration at startup time.
+ Either some preferred size or a size which yields 96dpi is chosen,
+ from which other monitors are set to a similar size. The largest
+ size sets the screen size.
+
+ This needs to be extended to respect config file settings, but
+ those have not been defined yet.
+
+commit 9948d8377d70e898260c12210151b952b3fb8bf1
+Merge: 45a27f8 b649f95
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 16 19:47:24 2006 -0800
+
+ Merge branch 'master' into modesetting
+
+ Conflicts:
+
+ src/i830.h
+ src/i830_cursor.c
+ src/i830_dri.c
+ src/i830_driver.c
+ src/i830_video.c
+
+commit 9cc2f3313d77487dea372e6ab32d6d9c06617ae3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 16 15:12:43 2006 -0800
+
+ Replace broken PCI resource size detection with pciGetBaseSize() call.
+
+commit 45a27f80e1c783627f570c309e7a853dcc9af0c1
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 16 13:38:35 2006 -0800
+
+ Remove output options. Let outputs be connected to other crtcs.
+
+ Output options will be replaced by properties.
+ Permits outputs to be connected to arbitrary CRTCs (within hardware limits).
+ No cloning yet.
+
+commit 9aea79d1e954fe4fb5c101edcb7c2d0f706a5c4c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Nov 16 11:40:26 2006 -0800
+
+ Inverted boolean sense when selecting pipe for CRT detection.
+
+ Pipes are available when they are not in use.
+
+commit 4889b9f33336c92f07aac86d75f50316db6ef81a
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 15 15:26:31 2006 -0800
+
+ Enable the LVDS if we find it and assign it to a pipe (oops).
+
+commit 854ff826c0031a44e874239c0b0a3533f4d9e14b
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Nov 14 09:14:24 2006 -0800
+
+ Disable setup of the second SDVO device until we fix it.
+
+commit d51555fba4e57c059fd184c1e54822d7e5b62a2f
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 10 14:40:40 2006 -0800
+
+ Fix clock range for single-channel LVDS.
+
+commit dd1dcfab0ab0f2d0c25077fa663209e2762f26e8
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 10 11:08:02 2006 -0800
+
+ Fill in some of the high bits of mode timings for SDVO.
+
+commit 3955f044cfe1d592bcb36c43c539fb4a75840b8d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 9 20:28:46 2006 -0800
+
+ Expose the DDC-probed EDID data as the EDID_DATA output property.
+
+commit 0f5886689d7ef7dbbef6425d5c855ac6b67d3350
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Nov 8 23:19:59 2006 -0800
+
+ Create RandR 1.2 objects in I830PreInit.
+
+ Creating the objects early will allow the driver to use
+ randr structures to select a reasonable configuration.
+ That part has not been done yet.
+
+commit 679c7bd82639a09cdce133becb8a08629ce3a4e9
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Nov 8 21:39:28 2006 -0800
+
+ ignore edited man page
+
+commit 81b7b489afa2cab4d8614c64f4906be627f1d07e
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Nov 8 21:38:00 2006 -0800
+
+ Adapt to RandR updates that split object creation from screen association.
+
+ RandR DIX code is preparing for xf86 drivers that want to allocate RandR
+ objects at PreInit time. This patch adapts to that change without taking
+ advantage of it.
+
+commit 81bace0c316c3ed80201a34eca533254d12cd193
+Merge: 713c5b0 beb8916
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Wed Nov 8 20:23:20 2006 -0800
+
+ Merge branch 'modesetting-keithp' into modesetting
+
+ Conflicts in PipeSetMode were resolved to use the keithp changes
+ that pushed more modesetting stuff into the per-pipe function.
+
+ Switched availablePipes to num_pipes.
+
+ Used modesetting default output configuration.
+
+commit 713c5b0899428edfea7cea0780244488115dbe1d
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 8 19:55:31 2006 -0800
+
+ Change the output and pipe "is it on/off" field name to "enabled".
+
+commit ff77e9d84f2037b99a8e4ac55da0b0ac92ed6b9b
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 8 19:53:31 2006 -0800
+
+ Clean up i830_crt_detect_load() a bit more.
+
+ ADPA might not have been set right in some cases (DPMS-off monitor, for
+ example), and a wait for vsync that the bios does was missing.
+
+commit 9b267014b55f49d9362c1d432d6ba19ddd0ad95d
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 8 19:39:18 2006 -0800
+
+ Go back to only setting up outputs that have a display connected.
+
+commit 35ab689bbde5f74752598cd743d735640486b639
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 8 19:35:49 2006 -0800
+
+ Fix i830DisableUnusedFunctions after pipe structure change.
+
+ Using "pipe" instead of the index "i" meant pipe(3) got referenced instead of
+ a nice small integer. Oops.
+
+commit b649f95ea6fd3555d073fdbf8f2f035dfe1afd33
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Nov 8 19:01:25 2006 +0000
+
+ Disable some debug message
+
+commit 75f4df278e9db360967d77cdba4756cbde622d56
+Author: root <root@localhost.localdomain>
+Date: Wed Nov 8 13:56:32 2006 +0800
+
+ 855 fix
+
+commit f1ff01e31eb8e9dc05190bf1a8b318d4f587f64a
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Nov 4 00:46:18 2006 -0800
+
+ Eliminate operatingDevices member and PIPE_* values.
+
+ operatingDevices and MonType1/MonType2 duplicate information already stored
+ in the device structures. Eliminate them and replace uses with direct
+ references to the appropriate other data.
+ (cherry picked from 3ab7f9693217d8fe993bdc94c376b219b0082961 commit)
+
+commit 0b2d36d4f038c4e8fa08632b6f1368627f010392
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Nov 3 23:29:12 2006 -0800
+
+ Use pI830->availablePipes instead of MAX_DISPLAY_PIPES everywhere
+ (cherry picked from e4bcec796e80e9fd66ab0c36394f5946915531f1 commit)
+
+commit d0ef9e99acb9e999e1b6d3eb76edc6355555043b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Nov 6 18:30:46 2006 -0800
+
+ Restore PFIT_CONTROL before turning the LVDS back on in the restore method.
+
+commit 94a3731c2b4f2ea2e696a8c87dccc0d214d41e8e
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Nov 6 18:26:48 2006 -0800
+
+ Move PFIT_CONTROL disable for G965 up before post_set_mode.
+
+ Also, remove setting of some other random registers that appears to have
+ been spammed in at the same time, and don't try to disable on the I830, before
+ this register existed.
+
+commit beb89163d73376e70870e6e2a6b19863f3a058b1
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sun Nov 5 19:06:45 2006 -0800
+
+ DSPSURF must be page aligned. Place intra-screen offset in DSPBASE.
+
+ DSPASURF/DSPBSURF can only take page aligned values, ignoring
+ the lower order bits. So, place the offset for the output
+ within the frame buffer in the DSPABASE/DSPBBASE registers instead.
+
+commit 997e8c9bb4235cab1fff4738387df9afcbea0a03
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sun Nov 5 18:56:33 2006 -0800
+
+ Don't allocate stuff in the first 256K of video memory (GATT?)
+
+ Letting the ring buffer or other objects be allocated within the lowest
+ portion of memory appears to trash some memory mapping data; I'm assuming
+ this is the GATT table on the 965. Just marking this out of bounds for
+ allocation fixes this problem.
+
+commit 5a355c72614ed77f2000e5ede45f3ff5990c79d9
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sun Nov 5 18:51:28 2006 -0800
+
+ Fix CRT output on 965 chipset.
+
+ A few more register settings are needed to get CRT output working on the
+ 965 chipset, in particular the the SDVO/UDI clock multiplier register
+ needed to get set to the default value (3). No, I really don't know what
+ this does, but it does get the CRT running at a wide range of sizes.
+
+commit 49a6bea7d969dbfd1dd542c0c3e02abc330d6850
+Merge: 64447c7 fbb376b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Nov 6 10:25:23 2006 +0800
+
+ Merge branch 'master' into crestline
+
+commit 68c3185046b27ab936ca6c92b924b443b3cd6fce
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sun Nov 5 13:30:32 2006 -0800
+
+ Avoid crashing when disabling sdvo output. XXX
+
+commit 15ef08046bcc3e746453301379f7c5d1bf929ee1
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Sun Nov 5 13:29:56 2006 -0800
+
+ Move remaining pipe mode setting logic to i830PipeSetMode
+
+commit 7fcb555735a58e19ccc10875b211402983170a87
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Nov 4 00:52:21 2006 -0800
+
+ Rename availablePipes to num_pipes
+
+commit 3ab7f9693217d8fe993bdc94c376b219b0082961
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Nov 4 00:46:18 2006 -0800
+
+ Eliminate operatingDevices member and PIPE_* values.
+
+ operatingDevices and MonType1/MonType2 duplicate information already stored
+ in the device structures. Eliminate them and replace uses with direct
+ references to the appropriate other data.
+
+commit e4bcec796e80e9fd66ab0c36394f5946915531f1
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Nov 3 23:29:12 2006 -0800
+
+ Use pI830->availablePipes instead of MAX_DISPLAY_PIPES everywhere
+
+commit b7262a9a9110dac66e1a92c39dcb3ab59d95d081
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Nov 3 23:24:07 2006 -0800
+
+ Finish removing persistant vbe data
+
+commit 4625073244d4f521a07e12adcf0609e85658acbe
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Nov 3 23:23:38 2006 -0800
+
+ Oops, martian memset of randr modes pointer
+
+commit 719ad68515be9b996a6314de5448843de1146b88
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Nov 3 19:41:41 2006 -0800
+
+ Use VBE only temporarily to fetch BIOS rom image
+ (cherry picked from 6a9386651785afc70a29e355255e8295b321f28e commit)
+
+commit 27df2ff7908ea7ea2943a5f3445e12dbc24d97c9
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 3 15:55:10 2006 -0800
+
+ Report pipe status (and status mismatches) in i830DescribeOutputConfiguration()
+
+commit ecbe73b940b2d642115de4b73c2f757eb46ff956
+Merge: 561af00 9681602
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 3 15:59:59 2006 -0800
+
+ Merge branch 'modesetting-origin' into modesetting
+
+ Conflicts:
+
+ src/i830_display.c
+
+commit 561af007974b8cdad1eea907fb73ed9d430c21ac
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 3 15:26:14 2006 -0800
+
+ Add support for load-based CRT detection.
+
+commit e416b426d83de031441ada7a77b6bd66cec8b5c9
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 3 15:25:41 2006 -0800
+
+ Print out modelines as info, not error (which had been used for debugging).
+
+commit 282a9e073ea985cbf0d0f3f296d593af1426bad5
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 3 13:46:09 2006 -0800
+
+ Don't memset the modes pointer on init, which was dereferencing NULL.
+
+commit 9681602177124e84a817a1e1d428f1779f2a45c9
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Nov 3 12:55:25 2006 -0800
+
+ Create I830PipeRec to hold pipe-specific data. Remove unused I830 members.
+
+ I830 contained six parallel arrays for pipe-specific data; these
+ have been moved to a I830PipeRec structure instead.
+
+ I830 also contained several unused members:
+
+ unsigned int bios_version;
+ Bool newPipeSwitch;
+ Bool fakeSwitch;
+ int fixedPipe;
+
+ These have been removed, along with the code that set them.
+
+commit 0510671a6c5233468ac20f0ec8096e084df03ce6
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Nov 3 10:58:23 2006 -0800
+
+ Fix a pasteo in I965 register restore.
+
+commit 2c9ab6e0594769274f2dbcdf7c00fe297fc385d5
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Thu Nov 2 13:44:55 2006 -0800
+
+ set the v_sync_off_high to zero. XXX should check docs
+
+commit 56f6d4f1bb67f447500af3f4f7fa557c3e887baa
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Thu Nov 2 13:42:17 2006 -0800
+
+ Disable the panel fitter when not using it. Cleans up SDVO DVI output.
+
+ The panel fitter appears to exist on the 965 hardware (at least) and
+ causes troubles with DVI output over SDVO when enabled. This patch
+ checks to see if the panel fitter is pointing at the pipe being configured
+ and disables it unconditionally in that case. The LVDS driver will configure
+ it correctly if necessary afterwards.
+
+commit f22d9bcc25aea19ba38d35282367b591fd1b7ca0
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Thu Nov 2 13:34:45 2006 -0800
+
+ Add another couple of new registers
+
+commit a9eac38bcdb49df2ce1122b49bd8b1eb19e8cae5
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 2 13:24:54 2006 -0800
+
+ Remove duplicated register defs that were just added.
+
+commit 7887c76062b7c79e14fb8e4f13486aa592dcbce8
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 2 12:27:21 2006 -0800
+
+ Add airlied's I2C code, ifdeffed out.
+
+ I've gone back to compare our behavior to it several times, so I'll just keep
+ the code in tree for now.
+
+commit 87b15cfbf762468d4b8728b3e7a39c76654017de
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Nov 2 11:30:21 2006 -0800
+
+ Remove dead specifiedMonitor field.
+
+commit 2636d68663a02f6d9eaf36971706b67036ebf56c
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Thu Nov 2 11:57:11 2006 -0800
+
+ Dump more registers for debug purposes
+
+commit 786ec54c4c1540f4aced63ef21d567c3b9f3282e
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Thu Nov 2 11:56:50 2006 -0800
+
+ Add a few more registers from the 965 spec
+
+commit 85e32ad2dadcce1134fcadb14ece8ff30f3925f2
+Author: Keith Packard <keithp@mandolin.keithp.com>
+Date: Thu Nov 2 11:56:12 2006 -0800
+
+ ch7xxxSaveRegs receives real type instead of void *
+
+commit ffbd6ca09bc2300bf967d7c248a559d85b8706e0
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 1 13:05:44 2006 -0800
+
+ Remove dead VESARec struct.
+
+commit 97c3a1b2421031e41f0b2b1630fde1dc4262d264
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 1 13:04:08 2006 -0800
+
+ Remove the refresh rate appended to some mode names.
+
+ This gets the SDVO and CRT outputs I have to have at least 1 common mode
+ according to RandR.
+
+commit 7971c401554c218c84a8c45335c9b31bbccfece7
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 1 12:42:56 2006 -0800
+
+ Attempt to pull monitor physical size information out of DDC EDID data.
+
+commit fb94c1210966f7875e5f034f10ea31c06c502c3a
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 1 12:23:50 2006 -0800
+
+ Move mode lists from per-pipe to per-output.
+
+ This should let RandR do the right thing in exposing the modes to userland.
+
+ As a side effect of getting this working, the SDVO pixel clock range code
+ was fixed and the mode valid tests for various outputs got extended. Also,
+ LVDS grew a get_modes for the fixed panel mode.
+
+ Note that we now no longer do automatic enabling of outputs at xrandr -s 0,
+ hotkey, or VT switch. That will be left to generic RandR code later. Also,
+ generic modes and user-defined modes are once again not validated into the
+ lists, so this is a regression there.
+
+commit f30d7f912f36b110c3af7dc795e35456593781ab
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Nov 1 11:50:51 2006 -0800
+
+ Update for the move of RandR phyiscal size information.
+
+commit 64447c7a059775e7ea8649f4714df7565e932c60
+Author: Zou Nanhai <nanhai.zou@intel.com>
+Date: Wed Nov 1 14:36:20 2006 +0800
+
+ walk around to VBIOS bug in Crestline B0
+
+commit 7195dfabd56239f08cdd8175a2ef3a66ef9600de
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 31 17:10:08 2006 -0800
+
+ Give each output a get_modes function and expose those modes through RandR.
+
+ The get_modes should return the probed modes only. The driver should then
+ append to the list (for example, compatible modes listed in other outputs,
+ or standard VESA modes) to create the list to expose through RandR. That
+ isn't done yet.
+
+commit cc3728be2481637dda321d3bc2e4e89a220699cd
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 31 15:00:36 2006 -0800
+
+ Add compat definitions for M_T_PREFERRED and M_T_DRIVER for older X Servers.
+
+commit a71f283650e8cb7b760e5a53c4db79202c4cc5c4
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 31 14:46:23 2006 -0800
+
+ Connect output detection up to RandR.
+
+commit 68cef9f4e028755bbf3e1862da2ef47d46ddaa6a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 31 14:32:00 2006 -0800
+
+ Move output connection detection to a per-output method.
+
+ This will be used by RandR, and should let us clean up some of the initial
+ display configuration, hopefully.
+
+ Also, analog hotplug-based detection is now enabled on G965.
+
+commit 9fd719fce27f916ab5120f6e1234affa14eaed9d
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 31 14:29:44 2006 -0800
+
+ Move SDVOB_PRESERVE_MASK next to SDVOC_PRESERVE_MASK.
+
+commit 4f5d4d8870fc2784192f95a561163cf4fc8737ac
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 31 13:37:23 2006 -0800
+
+ i830SetLVDSPanelPower is now a static function in i830_lvds.c, so remove it.
+
+commit 49bbdf16c02107c08169f8d2b6e9c6dbd7d8cd95
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 31 10:44:45 2006 -0800
+
+ Fix many inconsistencies in the SDVO code compared to the spec.
+
+ Also, fix some struct padding so that the right bits are sent out.
+
+commit e7d546cac06767ec58325396a3bb5780b2257c53
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 30 11:24:43 2006 -0800
+
+ Remove some dead code from BIOS modesetting.
+
+commit 2ca57040b0cd24ad3dbe693789091e28be4e69f8
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 30 11:19:19 2006 -0800
+
+ Remove GetBIOSVersion().
+
+ This info hardly useful now that we don't use the BIOS for mode setting.
+
+commit 837b2f632062bc29268f109895a577bd90cabd6d
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 30 11:17:55 2006 -0800
+
+ Warning fix.
+
+commit bca9e6ccbd14eb8f2f103e8e64b28a623113d494
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 30 11:17:27 2006 -0800
+
+ Remove SetPipeAccess and now-unnecessary VBE reinit.
+
+commit 819a47b27cd4728feb269a08be32403304993ffa
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 30 09:50:33 2006 -0800
+
+ Use the new fields for SDVO pixel multiply on the G965.
+
+ This should fix display at resolutions/refresh rates in a different multiplier
+ class than the console display (generally, high resolution modes).
+
+commit 71545db4614cfc4650acc4325912474e777c3b36
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 30 09:46:10 2006 -0800
+
+ Return and use valid status bits for i830_sdvo_get_trained_inputs().
+
+commit c357eca10ca1c535d305e1f3028471a912ae4102
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 30 09:44:55 2006 -0800
+
+ Clean up whitespace in i830_randr.c.
+
+commit fbb376bd1a4daad4c86e349df98438989ce173f1
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Oct 30 14:15:12 2006 +0800
+
+ Bug 8594: Fix Xv hang with G965
+
+commit c0ee50c4ee5ff2c594fdf60c9cb8b952e25644de
+Author: Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
+Date: Fri Oct 27 19:13:33 2006 +0200
+
+ Add support for the new DRM memory manager.
+ Some code are duplicated with the new libdrm.
+ Once this code has been released with xserver,
+ it can be removed.
+
+ See the man page for new options and backwards
+ 3D driver compatibility.
+
+commit 25e6e497824a23eb231fc6fd6e483f601d612cee
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 26 15:47:49 2006 -0700
+
+ Major cleanup of 3D invariant state, fixing hangs with rotation and render.
+
+ Now, the generic invariant state is always set while the X Server is active,
+ and happens automatically when the X Server grabs the DRI lock. More 3D state
+ is moved to the generic code.
+
+ Then, the 3D consumers (video, rotation, render) set last_3d to their enum
+ entry, and can update their own invariant state when another consumer was
+ active.
+
+commit 0bdcce2e4541c6e441c44aad49254ad3093cedb2
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 26 14:30:46 2006 -0700
+
+ Note alignment requirement for i915 3D (texturing).
+
+commit c3666a968b1cfac61b7867874d5fbe2acd894720
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 26 14:30:25 2006 -0700
+
+ Don't write unused values beyond the end of scale_units array.
+
+commit 3ab9f5a4a8cd62c8a8c2a09d3d105adbe815a83d
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 24 00:26:09 2006 -0700
+
+ Move vbeInfo out of the driver struct to the one place it's used.
+
+commit df14838eb5d0a056f663d9f12bd8b5c25cf97330
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 24 00:18:33 2006 -0700
+
+ Remove dead memsize reporting.
+
+ The calculation no longer made sense, as we don't use the BIOS for mode
+ selection.
+
+commit 3a6104ab89b159241845314ccf88fa62da14cf7d
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 23 19:15:30 2006 -0700
+
+ Remove disabled I830DetectMonitorChange().
+
+ This used to be called when switching back in to X. It might make some sense
+ to detect monitors at this time (it happens to occur at resume time, when
+ monitors are likely to have changed), but it should probably live in either
+ userland policy with RandR 1.2 or RandR 1.2 XFree86-DDX generic code.
+
+commit 88c12f577f80fa132ec45cdf456d8060f2ece4fd
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 23 18:57:57 2006 -0700
+
+ Move LVDS initialization and blacklisting damage to the LVDS support file.
+
+commit 2631014e9d5b2e64908ea413729eb5fd819b17fc
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 25 12:21:44 2006 -0700
+
+ Clean up the SDVO code.
+
+ The main change is to send SDVO commands using data passed into the send
+ command function, and receive responses into memory passed into the read
+ response function, rather than stuff things in/out through dev_priv->sdvo_regs.
+ This lets us use structures to represent some arguments, which results in a
+ nice cleanup (and 100% fewer arguments named magicN as a side effect).
+
+ Also, the mode set path is changed to not do any preferred input timing
+ work. We weren't doing anything legitimate with the results, since we didn't
+ modify the CRTC timing appropriately, so now we just stuff the CRTC timing into
+ both and hope for the best. This should probably be revisited later.
+
+commit ddb986e54f5320359abac06f512f2d3f446872db
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 24 17:47:58 2006 -0700
+
+ Nuke trailing whitespace in SDVO code not already cleaned up.
+
+commit cd2f0d948a6cae61b0d77d2c7184ed8d695be8c3
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 24 17:47:47 2006 -0700
+
+ Clean up SDVO code, moving the private structure internal and cleaning up caps.
+
+ All the SDVO code should now be in lower case rather than StudlyCaps.
+
+ This also adjusts the I2C setup to create a bus per SDVO output we set up.
+ The previous setup with shared buses was failing in some circumstances, which
+ is probably due to the lack of refcounting in xf86i2c.c.
+
+commit cd9c6e29146e1debaba4b0b9ad0d241f07bdbc14
+Merge: c5cca4c eec5580
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Oct 24 16:53:46 2006 -0700
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit eec5580cefffc293bf547372ab63b2fedaef4a83
+Merge: 53c28b3 a91c0cb
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 23 14:52:55 2006 -0700
+
+ Merge branch 'overhaul' into modesetting
+
+commit a91c0cbab5de51885bfce7c7dce76f82c1b19553
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 23 14:30:38 2006 -0700
+
+ Add work-in-progress integrated TV-out support.
+
+ This is the TV connector on board for the 915GM and 945GM.
+
+ It is currently not hooked up to output initialization as it's entirely
+ untested. However, I think this is a reasonable starting point for getting
+ TV-out actually working.
+
+commit 7d67324fa3a5b5cf0227550316c366752fe4abfb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Oct 23 17:29:17 2006 +0100
+
+ Add some MergedFB checks for accelerator limitations
+
+commit 20d263805a365be548279758bc39d027d6e56d63
+Merge: 8548fa5 5ac927d
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Oct 23 14:24:41 2006 +0100
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 8548fa53746c9886eccfb67d022136471d8f3316
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Oct 23 14:23:29 2006 +0100
+
+ Fix manpage to report 8160 instead of 6144 for LinearAlloc.
+
+commit 5ac927d6f05ba6f9608d7e758cbac66e8b3a9db1
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Tue Oct 17 13:27:40 2006 +0200
+
+ Don't crash if SetCursorPosition is called with pScrn->currentMode == NULL.
+
+ This allows the driver to work with servers that don't have the fix for this
+ that was only recently pushed to git.
+
+commit 8149681f2eac0af3b70a9457c5204e17da56142b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 16 16:51:04 2006 -0700
+
+ Add a per-output mode-valid method.
+
+ This is currently disconnected, but will be used in more overhaul work.
+ This should be where any output limitations, such as clocks, resolution,
+ scaling limits, or other options, are validated. Other limitations, such as
+ chipset resolution limits, CRTC clock limits, etc. should be elsewhere.
+
+commit c5cca4c20ae6b519e3b021a9d90809c1b3d1facb
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Oct 13 15:31:43 2006 -0700
+
+ Advertise textured video adapter first
+
+commit adae75ef2f8a655a699e982ca8f26b934dbe950a
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Oct 13 17:10:27 2006 +0100
+
+ Make VIDEO_DEBUG into a configure option
+
+commit 1d4cfaa391ac41099de11b8f3b21e5eb56543909
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Oct 13 13:55:10 2006 +0100
+
+ Bump to 1.7.2
+
+commit cd9e51cd3ab0b36d2f97dfc6d8850dafe169c221
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Oct 13 13:54:31 2006 +0100
+
+ Ugh. Turn off debugging.
+
+commit 334aa062c333f2c59bc40e1b9239d3ea71c88a8f
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Oct 13 12:59:30 2006 +0100
+
+ Bump to 1.7.1
+
+commit 8045a7a0af1b276cd7f46ce99d034fd5d503e67c
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Oct 13 12:53:53 2006 +0100
+
+ Fix bug #8553 & #8542 - suspend/resume regression from 1.5 driver
+
+commit 6596333b077a692c669f8cb4ae32e145f8da6731
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Oct 13 12:48:16 2006 +0100
+
+ Fix some warnings
+
+commit 1838671476875e9f5b3dde235eacf9fb43afb66c
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Oct 10 12:41:01 2006 -0700
+
+ Only disable the output when marked disabled.
+
+ Also, remove a couple of dead variables.
+
+commit 4198f1216eb13b30d1e92d4395e98861f4324c38
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Oct 10 15:50:10 2006 +0800
+
+ Mark current ps kernel is experimential with little test.
+
+commit d485c1f2de11db92b515690fbe38b6aeb6207605
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Oct 10 14:11:35 2006 +0800
+
+ Use sf_prog.h instead
+
+commit 2591c1fcf15608d96031be4760cf08534461ca34
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 9 14:20:49 2006 -0700
+
+ Fix LVDS restore path, and move pipe assignment for outputs to the right place.
+
+commit 09e3d10b0ff69d180467fa9099d12da08e4f681b
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 9 13:09:18 2006 -0700
+
+ Add a function for describing the output connection configuration.
+
+commit 317cc119c575650c1aa8bf992a0f42bdfffcd7ba
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 9 11:49:18 2006 -0700
+
+ Move per-output mode setting code to per-output methods.
+
+ This is not a very clean interface, as a number of outputs require tweaks to
+ the DPLL registers. When possible, the DPLLs are just adjusted in the
+ per-output post_set_mode, which happens just after the DPLL is enabled.
+ However, this seems better than the previous method of having all outputs
+ programmed in the same function.
+
+commit 53c28b3980d2682de830e8f86553ccad71527ac1
+Author: Adam Jackson <ajax@benzedrine.nwnk.net>
+Date: Sat Oct 7 11:18:26 2006 -0400
+
+ Expand the check for AOpen Mini-PC.
+
+ Just match on subsystem vendor, don't bother inspecting the subsystem device
+ ID, since apparently they're all busted.
+
+commit bf3820f1f505649ac0730add23d97d6de3f6d22c
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Oct 6 21:57:26 2006 -0700
+
+ Compute LVDS resolution from server DPI and native panel size.
+
+ I was unable to find the native LVDS panel physical size in the BDB
+ information. I would prefer to report accurate information through RandR if
+ possible though.
+
+commit c7a23908a0ef45b14b438f656a5f15582bfcbc1c
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Oct 6 13:35:39 2006 +0100
+
+ Fix server regeneration problem mapping the aperture
+
+commit d649fb0d964a9b40b8e04314b5fc14bbbfd41bc3
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Thu Oct 5 22:46:07 2006 -0700
+
+ Don't require MonitorLayout when two monitors are plugged in.
+
+ With randr12 working, we can just leave the second monitor off for now.
+
+commit 9bb7736ab36f172db58703c4664bb1b0cd7f80c3
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 5 16:02:02 2006 -0700
+
+ Remove checks for output privates in various bits of code.
+
+ Now, the output is only set up if it fully initializes, so it will never exist
+ if the private it requires doesn't.
+
+commit ada8f62da263d1e93e22df4e0b1149bf1dbe24d4
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Oct 5 15:55:07 2006 -0700
+
+ Give each output type an init method in its file, making other methods static.
+
+commit 0a5504e59f90abecedd81a8435b88a60fe098f29
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Oct 5 09:11:29 2006 -0700
+
+ Fix DPI at startup in RandR 1.2 code.
+
+ Use requested monitor resolution to compute the appropriate screen size when
+ resizing the screen during RandR initialization.
+
+commit 4ac81d58b7e0fbffbb4981deffe6a576be821a9b
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Oct 4 23:22:52 2006 -0700
+
+ Remove mode origins, add preferred mode count.
+
+ Just tracking changes in the 1.2 protocol spec.
+
+commit 103b4edce7859ddf58f3e1fadeb427a5e85c7acd
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Oct 4 15:00:19 2006 -0700
+
+ Move the save, restore, and DPMS per-output settings to per-output files.
+
+commit 16988b27258acfe3d56fc2415aa9ade1ae8d03a9
+Merge: cc4148e 5a06000
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Oct 4 18:44:43 2006 -0700
+
+ Merge branch 'modesetting-guitar' into modesetting
+
+commit 5a060002487e16c53dc96e32af72cd1bfcf6a227
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Wed Oct 4 18:43:07 2006 -0700
+
+ Add mode origins for randr
+
+commit 07cdc60be8ebe5d0c21149f3cd2aeb8fed05022a
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Oct 4 11:05:30 2006 +0100
+
+ Fix bug #5795, VT switching fails because of a bad test on some platforms.
+
+commit 8da10d15f84ccc992b828546af5ba0d848e7263e
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Oct 3 22:00:14 2006 -0700
+
+ Enable XV_PORT attribute even when not in Clone mode.
+
+ As Clone mode is now something that can change after server startup, always
+ enable the XV_PORT attribute as we cannot change the list of reported
+ attributes.
+ (cherry picked from 1bc1cedbcdf6ea4d2a3e8b07b553ac50b3c126f4 commit)
+
+commit cc4148e25dc226cb1365e090db21f01b77cb3cbe
+Merge: 1bc1ced 3e6f81f
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Oct 3 22:00:41 2006 -0700
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 1bc1cedbcdf6ea4d2a3e8b07b553ac50b3c126f4
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Oct 3 22:00:14 2006 -0700
+
+ Enable XV_PORT attribute even when not in Clone mode.
+
+ As Clone mode is now something that can change after server startup, always
+ enable the XV_PORT attribute as we cannot change the list of reported
+ attributes.
+
+commit 33629ed304b64e45d5640397bd1807c5a98907d1
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Oct 3 09:39:22 2006 -0700
+
+ Always register list of modes for outputs, even when disabled.
+
+commit 3e6f81f70f65a5ba6b5c3a4e0eeaf67776a5f54d
+Author: Eric Anholt <eric@anholt.net>
+Date: Mon Oct 2 09:53:57 2006 -0700
+
+ Move cursor base address register setting to a separate function.
+
+commit f337eea9e73cbf5c71d07df50d2e5b661a1f34cf
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Oct 2 11:16:42 2006 +0100
+
+ silence warning
+
+commit 2b9bdd8a4021231e4b5f4c5831a46c9ff1e38081
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Oct 2 11:12:23 2006 +0100
+
+ bump to 1.7.0
+
+commit eca082ca0fec12973a4dbb0106b841136b5b6cdb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Sat Sep 30 13:44:43 2006 +0100
+
+ Missing gamma bit
+
+commit cece9a455b54ab184a3277c164ee6dfa65b70f48
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Sat Sep 30 13:27:27 2006 +0100
+
+ Fix issues with Xv locking up the engine. bug #7915.
+
+commit 2013b839de3733fd12becb2cc3c1daadde329eb4
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Thu Sep 28 13:49:44 2006 +0200
+
+ Always call I830UpdateXineramaScreenInfo() unconditionally, and document why.
+
+commit 92c5020bbd31e02c7224798a8f094d237afa19a0
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 13:55:52 2006 +0800
+
+ Fix picture's transform checking
+
+commit 518802843284973f1f86132afd805c0e662e1ba6
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 11:15:33 2006 +0800
+
+ Fallback in mask picture for now
+
+ Do it later after finish wm kernel program.
+
+commit 25ff5baad95c205c7c690da72fc0f252b3ed9289
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 11:09:52 2006 +0800
+
+ Fix compile, add wm header file.
+
+commit c3a49b5123d094280b5ff358ceef961958319ce4
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Sep 28 10:36:00 2006 +0800
+
+ Add simplest wm kernel program for no mask picture composite
+
+ This is a try to use new gen4asm language, and will finish
+ composite program for mask picture with or without CA case later.
+
+commit 6ea16bf6b06c8b3aed4d2c98679ab28304d1b56c
+Merge: fdb6de6 b970166
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 27 16:38:01 2006 -0700
+
+ Merge branch 'master' into modesetting
+
+ This reverts most of the mergedfb code. This will instead be done in device-
+ independent RandR code.
+
+ Conflicts:
+
+ src/Makefile.am
+ src/i810_driver.c
+ src/i810_reg.h
+ src/i830.h
+ src/i830_cursor.c
+ src/i830_driver.c
+ src/i830_modes.c
+ src/i830_video.c
+
+commit fdb6de663579d3b9f31bf9e8a93430b8505ca73f
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 27 13:59:41 2006 -0700
+
+ Re-disable broken load-based CRT detection.
+
+commit 1407a42c7378706644fd8be554b43b0e7b581011
+Merge: 25890ec 4bd3b89
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 27 13:33:23 2006 -0700
+
+ Merge branch 'randr-1.2' into modesetting
+
+commit 25890ecda9fd00fad9bc53dea83fc58e0013fcdf
+Merge: 965609f 117ff04
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 27 13:33:17 2006 -0700
+
+ Merge branch 'acpi-hotkey' into modesetting
+
+ Conflicts:
+
+ src/i830.h
+ src/i830_driver.c
+
+commit 117ff04b504578a24dff70659e2db1b81aaa1177
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 21 17:03:34 2006 -0700
+
+ Attempt to make the ACPI hotkey support a little more modesetting-compatible.
+
+ Previously, we watched for the BIOS to have changed the layout, and repaired
+ the resulting configuration. Now, we request that the BIOS make no changes,
+ but leave a note in a register for when the key has been pressed. When we
+ notice this, we reprobe monitors and turn on/off the things we find.
+
+ This is a temporary solution until we can get the hotkey hooked up as an
+ input key to external applications to control the change using RandR 1.2. It
+ is also untested as neither of my laptops do anything with the hotkey.
+ However, this code does result in many fewer BIOS calls.
+
+commit fe691953f08b4d299295f91450412404ba42810b
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Thu Aug 31 18:35:10 2006 +0200
+
+ Store viewport limits of both pipes in SAREA.
+
+ This allows DRI clients to determine which pipe they should synchronize buffer
+ swaps of each window to.
+
+commit 06c5f7bd076e9ba4b925e061a40b837714bc8267
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Wed Aug 30 19:45:33 2006 +0200
+
+ If the DRM can handle it, enable vertical blank interrupts for both pipes.
+
+commit 89cbc6e215a5f313ccc17370424c35630cf75892
+Author: Michel Dänzer <michel@tungstengraphics.com>
+Date: Thu Aug 24 10:30:27 2006 +0200
+
+ Only enable the IRQ after DRIFinishScreenInit.
+
+ This makes sure we've been assigned a context ID, so the interrupt context
+ won't mess things up if it grabs the HW lock.
+
+commit 185df8a18102eea79b8c8e11304dfee148ac2002
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Sep 27 16:48:43 2006 +0800
+
+ Add mask sampler state
+
+commit 1422d4f04ac2d57899eee91f6522f8670f7263da
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Sep 27 13:54:14 2006 +0800
+
+ change some src sampler states
+
+ sampler for mask should also be set up, and fix
+ default border texel.
+
+commit 6614b4bda2e079fd1e56e0825894481b80e2df58
+Merge: d6ca9fe b3ddcf3
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Sep 25 12:04:01 2006 +0100
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit d6ca9feb78a9211758510751bbf47013caabff49
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Sep 25 12:03:27 2006 +0100
+
+ Fix bug #7943 where video flickers when changing
+ attributes. This code was a leftover from testing lockups
+ and shouldn't be needed anymore.
+
+commit 52a4f2a02b8f38108bfa866bf74b1596b8125512
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Sep 25 14:35:51 2006 +0800
+
+ Add file for i965 exa composite
+
+ This does not include ps program, which will be added
+ in g4a form.
+
+commit f272f0d811f9ee059e8f8617a516e6c8bff917a1
+Merge: ff202f8 b3ddcf3
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Sep 25 14:15:21 2006 +0800
+
+ Merge branch 'master' into exa
+
+commit 4bd3b89c73b6c5aa9b0eb553ad5d553ee0e8a489
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Sep 23 16:41:38 2006 +0100
+
+ Oops, duplicated CRT-redetect code.
+
+commit c34490bbda6604a21809d15c798607806fa6c725
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Sat Sep 23 12:00:43 2006 +0100
+
+ Construct default monitor description for hotplug non-DDC monitor.
+
+ When detecting a monitor that doesn't support DDC, construct a default
+ monitor with "sensible" values instead of using whatever the builtin LCD
+ screen uses. Clearly we need a way to set the monitor parameters when we
+ cannot detect them.
+
+commit 965609f6fa63e28e5a28128f5bc44f8c4d7b9f68
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 22 09:51:45 2006 -0700
+
+ Restructure i830_bios.c so we don't leak a copy of the BIOS per generation.
+
+commit c52242c22779a51aa12b18a7a589080ce44c8484
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 22 09:41:07 2006 -0700
+
+ Remove some dead code related to clock ranges.
+
+commit c2446be9b444b16c95f78dab17bf130f9f491ee2
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 22 09:38:11 2006 -0700
+
+ Remove the GetDevicePresence BIOS call which just printed BIOS information.
+
+ Because we aren't using the BIOS to set modes any more, what the BIOS thinks is
+ present is probably even less important than before.
+
+commit b6ba268d0d5f22c6a18ce45416452fce83438620
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 22 09:31:37 2006 -0700
+
+ Remove the no-longer-connected VBERestore option.
+
+commit 20956a5d6f1eb518717a680e58938f31461ca5e4
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 22 09:27:30 2006 -0700
+
+ Remove unused display{Attached,Present} fields.
+
+commit 2cd28be71472d67956f47c7d49283ebabefa089a
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 22 08:55:55 2006 -0700
+
+ Remove empty SAVERESTORE_HWSTATE code.
+
+commit ff202f8e2ae4117b464c94047001023d5d0531cc
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Sep 22 15:02:19 2006 +0800
+
+ Fix a typo to mark sync for XAA.
+
+ This should fix the scrolling screen corrupt in
+ XAA method.
+
+commit d87d1f5bb0475c6f651fcb7e2cab2a7d46edcc69
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Sep 22 02:20:35 2006 +0100
+
+ Remove BIOS from non-BIOS related names.
+
+ Lots of names included BIOS for no apparent reason; as we try to eliminate
+ BIOS calls from the driver, these only serve to confuse us.
+ (cherry picked from 8e5d280d94ad3d3ba3c75871c17abec9da62ed34 commit)
+
+commit b3ddcf3348365873aed4a2b8b2750b330fb4cf26
+Author: A Costa <agcosta@gis.net>
+Date: Thu Sep 21 23:18:43 2006 +1000
+
+ Typo fix in man page (Debian bug #364559).
+
+commit 4820caf46e050761d9b347b8a440381e1b1f4727
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Sep 21 01:47:27 2006 -0700
+
+ Make planeEnabled track pipes controlled by randr.
+
+ Also add code to deal with disabling pipes.
+
+commit c11c445bdeac34253b48192a5d406b55ff8b2be7
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Sep 21 01:23:10 2006 -0700
+
+ Consistently use Cursor A on Pipe 0 and Cursor B on Pipe 1.
+
+ Mixing random cursors and pipes didn't work very well. I'm left wondering
+ whether the palette stuff will work on pre-9xx series hardware though; it is
+ special cased everwhere else.
+
+commit 4a8b9515e914369e1faf1dca6b11204b233c73ee
+Merge: 18a510b bdca869
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Sep 20 22:46:55 2006 -0700
+
+ Merge branch 'modesetting' into randr-1.2
+
+commit bdca8697cc6ac5a98e0548b2ce2e0032e9bcfa52
+Merge: d9db5ec daade50
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Sep 20 22:46:42 2006 -0700
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 18a510bf9af2f288c0e94359f672775d6e9c9ab2
+Merge: f6500e9 d9db5ec
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Sep 20 22:45:48 2006 -0700
+
+ Merge branch 'modesetting' into randr-1.2
+
+commit f6500e94fec0d6db8c1f1350bee1d137bf06a09e
+Author: Keith Packard <keithp@guitar.keithp.com>
+Date: Wed Sep 20 22:38:55 2006 -0700
+
+ Update driver for RandR 1.2 X server API.
+
+ This is not entirely what I'd like to see, but it's at least functional.
+
+ Limitations:
+ Can't disable/enable crtcs
+ Can't move outputs on/off crtcs
+
+ But, it does handle monitor hot-plug, detecting changes in VGA and SDVO
+ status on-the fly. Which makes for good demo material.
+
+commit daade50ca271d1cdf236bbe84afade85d4111ac9
+Author: Linus Torvals <torvalds@osdl.org>
+Date: Wed Sep 20 12:07:09 2006 -0700
+
+ Add standard C headers to fix build on some systems after xf86_ansic.h removal.
+
+ This appears to have been hidden for others by header pollution in X Server
+ headers.
+
+commit 1681fe6bb041385e5aefb11baa9afd1f614abc5b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed Sep 20 09:36:02 2006 +0800
+
+ Revert "fix default tex wrap mode with clamp"
+
+ oops, we've set border color to all zero, which should
+ give us transparent in RepeatNone case.
+
+commit d9db5ec6866555ec13ba3ddabb1516eb45637afa
+Merge: cbaf3cf e3f4caf
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Sep 19 16:03:04 2006 -0700
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 5adb05f0b82ee3a168142d803ab3434f75cf15a3
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Sep 19 17:14:05 2006 +0800
+
+ fix default tex wrap mode with clamp
+
+ we don't set any 'default' border color,
+ default tex wrap mode should be clamp to edge.
+
+commit e3ab89b0327ef6ff790ab53bba29c721aef032cd
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Sep 19 10:27:36 2006 +0800
+
+ shader program fix for component alpha set
+
+ If CA is set and blend op needs src alpha, the src
+ value is not needed and should be (src.A * mask.X).
+ This is found in handling exa magic two pass composite.
+
+commit 37429c3ecb97df8faf0f3f56128d7a2b22eb8a5e
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Sep 19 10:08:31 2006 +0800
+
+ misc cleanup
+
+commit e3f4caf40708478ef327b029d0a75944c51ea905
+Author: Adam Jackson <ajax@benzedrine.nwnk.net>
+Date: Fri Sep 15 13:51:18 2006 -0400
+
+ Add model-specific tweaks for some funky 945GM boards.
+
+ For the Aopen Mini-PC, ignore the claimed attached 800x600 LVDS panel.
+ Likewise for the Apple Mac Mini, but done slightly differently since it
+ shares PCI IDs with the Macbook Pro.
+
+commit bd758030a6a59af32f9d73655cb691e018e94a7d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 14 11:12:03 2006 -0700
+
+ Add a compile flag to enable syncing after each operation in EXA.
+
+ This replaces other debug sync options sprinkled around the EXA code. It
+ doesn't change the mis-rendering of text on the 915.
+
+commit f46c70e877a3432ba23696e1a16d5906183876af
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 14 10:05:51 2006 -0700
+
+ Add a note on maxX/maxY for the 2D rendering.
+
+commit ce00db054bf0b7f62ff0be312d7e3470141922dc
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 14 10:00:06 2006 -0700
+
+ Replace a couple of mis-uses of the screen's bpp when the pixmap's was needed.
+
+commit 71c2dd63361be9616c77db80a93445307d63dd41
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 14 09:54:19 2006 -0700
+
+ Replace duplicated sync code in exa with a call to I830Sync.
+
+ The I830Sync version has additional code for the 965.
+
+commit 564c830a91afda76706a8c4c2f3287d0b8d514e9
+Merge: bf49084 b970166
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Sep 13 16:34:10 2006 +0100
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit bf49084ad700f064b732bf39a163209eee1d6845
+Author: root <root@jetpack.demon.co.uk>
+Date: Wed Sep 13 16:32:39 2006 +0100
+
+ bump max Xvideo height to 1088 to cope with some players.
+
+commit 59ce4180b95270432540624a1fdf7ae8dd18a7f3
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Sep 11 22:57:23 2006 +0800
+
+ reimplement Solid function
+
+ Replace COLOR_BLT_CMD with XY_COLOR_BLT_CMD, by which
+ device would care for direction and provide a (x,y) coord
+ interface. This fixes pixmap artifacts even in no composite
+ case.
+
+commit 2b9c87bbf8ee5f7f56631114eb98303cd80e4a48
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 8 11:14:05 2006 -0700
+
+ Remove xf86_ansic.h usage.
+
+commit b970166eab95ac024ff481b0f5fd9aaf3644aabf
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 8 11:09:19 2006 -0700
+
+ Fix a compile failure from the last commit.
+
+commit 2b7602847aa7ae9b4e88fbea070710695d2cb8a4
+Merge: e4cdc42 b45f4b5
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 8 11:02:41 2006 -0700
+
+ Merge branch 'exa-origin' into exa
+
+ Conflicts:
+
+ src/i915_exa_render.c
+
+commit e4cdc42a98dd1be74e5c2bf5d9566f7449523b14
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 7 10:32:02 2006 -0700
+
+ Remove another debug printf.
+
+commit 099be52a3bb52516fb5e8d56c154a4d6b6707e09
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 7 10:28:09 2006 -0700
+
+ Re-remove xf86_ansic.h, and move copyright to the top of the file.
+
+commit 4ad577f83f7190df4d64e66fbf7c515ee6f411ce
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Sep 7 10:24:23 2006 -0700
+
+ Remove the UTS/DFS implementations that just match the fallback versions.
+
+commit 8b9d7a5f8560ee55ca5cb5376517a4246cd79fb9
+Merge: 6500a3a 1e6e288
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Sep 7 17:45:57 2006 +0100
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 6500a3aa134e11a75b7ddaf7fff253003b223241
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Sep 7 17:45:28 2006 +0100
+
+ When in MergedFB mode, fix offscreen memory allocation.
+
+commit c378328ece701756ddca966eb108e2b1f5c3ed6c
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Sep 6 11:15:17 2006 -0700
+
+ Remove a debug printf.
+
+commit 1e6e288b8826789f3b2520d12426ff7852a67ccd
+Author: Eric Anholt <eric@anholt.net>
+Date: Fri Sep 1 16:47:17 2006 -0700
+
+ Add a check for intel-gen4asm, and rules to compile {wm,sf}_prog.h using it.
+
+ This adds assembly source for the two programs used in the textured video
+ implementation on the 965, which should make them easier to modify in the
+ future. The compiled versions are also included, so that intel-gen4asm isn't a
+ build requirement for people that aren't modifying these programs.
+
+ There are minor differences in the compiled versions of these programs compared
+ to their previous versions which were compiled with a different tool. I
+ believe the changes should be harmless, and video continues to work on my
+ system.
+
+commit cbaf3cf74bd420533d299c4113761ec536097e33
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Thu Aug 31 18:25:21 2006 -0700
+
+ verbose debug message for panel sync data
+
+commit 1feb733eb8b09a8b07b7a6987add5149c53b0157
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 29 14:54:15 2006 +0100
+
+ Fix bug with probing info of DFP2 and LFP2 connected
+ devices (Aaron Ridout)
+
+commit 26e6c074c17b2d4e9b9f165468ad45a3b0ecc0ef
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Aug 28 11:55:38 2006 +0100
+
+ Fix SetVBlank to operate all the time
+
+commit b45f4b54b189a496255ddae12af38fc4c4408a51
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Aug 25 16:23:18 2006 +0800
+
+ Making render log a little quiet in normal
+
+commit 6f0d352b83fc9f39dd86edbda9af83243b50c764
+Author: Ross Burton <ross@burtonini.com>
+Date: Thu Aug 24 18:16:42 2006 -0700
+
+ Bug #7957: Fix distcheck.
+
+commit cc79b3ec19a7e858972228a270ef774041eb8946
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Aug 24 10:28:59 2006 +0800
+
+ Current 915 render operations for 915G/945G only
+
+commit 078af29fa65653c5322b006404f7ad29aec24cce
+Merge: 7458a6a ea63e82
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Aug 24 10:23:22 2006 +0800
+
+ Merge branch 'master' into exa
+
+ Conflicts:
+
+ man/i810.man
+ src/Makefile.am
+ src/i830_accel.c
+ src/i830_dga.c
+ src/i830_driver.c
+
+commit ea63e82ef417a9918e7d7105910a8ddeba2994f6
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 22 16:40:08 2006 +0100
+
+ fix typo
+
+commit b7e57deebbda527e878326cf3e6358c0a48d7817
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Aug 22 19:38:13 2006 +0800
+
+ pci id update for Crestline
+
+ The "Crestline" banner should be replaced with official
+ name later.
+
+commit dc4128ea0781124984dee0cb41e7b6ee87e362a1
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Aug 21 12:13:42 2006 +0100
+
+ remove GL* usage
+
+commit dad0e7fc09fa7794f20278d9d99abd96a21b691e
+Merge: 361c49a 43daaec
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Aug 21 12:08:01 2006 +0100
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 361c49ad3cfe58b9ab98dfb6e95de505c0d63730
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Aug 21 12:07:29 2006 +0100
+
+ Fix bug #7930, i810 doesn't compile without DRI
+ (Samuel Thibault)
+
+commit 43daaec63929c1f0e54a5125375d8147629da4b9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 17 15:57:31 2006 -0700
+
+ Bug #7905: Mark DRI state as dirty in 965 textured video, fixing hangs with 3d.
+
+commit cdcc6f23e8cad797e6cfd57e2ff454ec8509b5ba
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Aug 16 17:16:28 2006 +0100
+
+ Disable device check when mergedfb in operation.
+
+commit a94c96abf90c691faecbebf0c8d08f8010bc67ef
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Aug 16 17:15:26 2006 +0100
+
+ Fix bug #5150. Disable LVDS usage on i915G, i945G and i965G.
+
+commit 2a4e486d2990af433e915cfa26dc57cae02e01b7
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Aug 11 11:07:08 2006 +0800
+
+ Fix undefined alloc type for agp memory
+
+ This shuts up the nonfatal warning that type 3 for alloc agp
+ memory is undefined for intel-agp.
+
+commit 4cfed93df6b23903704348cafe050a6546e84479
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 10 15:41:32 2006 -0700
+
+ Bump to 1.6.5 for release.
+
+commit 38e7e48418cd48a46e48f5bc8a6547721db8f76d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 10 15:38:14 2006 -0700
+
+ Fix README typos from in the generated file.
+
+commit 975e60261088dee124b329d28c64e508bce1f90b
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 10 13:49:43 2006 -0700
+
+ Bug #7829: Fix reported driver version.
+
+ The driver now reports itself as the PACKAGE_VERSION from autoconf. The DRI
+ DDX -> client interface version is dissociated from this so that we can do
+ appropriate major/minor versioning of the interface that's not tied to the
+ package version. Bumped the i830 ddx dri version patchlevel to note the
+ fix in the previous commit.
+
+commit 820e9a22fdb759cbdaac4a488322825bc0908b0d
+Author: Eric Anholt <eric@anholt.net>
+Date: Thu Aug 10 13:37:18 2006 -0700
+
+ Bug #7835: Restore unused fields in I830DRIRec to avoid i915 DRI breakage.
+
+ As it was, 1.6.4 broke compatibility with the released DRI driver.
+
+commit caa3b35cd772fc75d65a7ff791f00addbb39a764
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 9 16:11:30 2006 -0700
+
+ Correct typos in README source.
+
+commit 2a7426cf138e518a5eafb40f478359160a7ec98b
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 9 15:47:09 2006 -0700
+
+ Clean up warnings.
+
+commit 24e59a0daa20b7c3e5028c9ca7972052801d02a1
+Merge: bb60807 32f1199
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 9 14:19:06 2006 -0700
+
+ Merge branch 'textured-video', bringing in fixed-up i915 textured video.
+
+ Conflicts:
+
+ src/i830_video.c
+
+commit bb6080735efc40e103e92b65d0c2f1f729156632
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 9 12:21:16 2006 -0700
+
+ Bump to 1.6.4 for release.
+
+commit 3ca14275d13b1261b69b0e3fda90a112cb567472
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Aug 9 10:35:57 2006 -0700
+
+ Add missing headers to i810_drv_la_SOURCES
+
+commit 309374f78df35207b1398e14bba986fb891f3643
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Aug 9 10:30:41 2006 -0700
+
+ Use double quotes to avoid sgml syntax error
+
+commit dca9f856ca21e63abeb87e4ef2c40944c26d4429
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Wed Aug 9 10:29:59 2006 -0700
+
+ Reformat README
+
+commit b19ea222727ed47b69d28a03242c09d3a6ab2673
+Author: Eric Anholt <eric@anholt.net>
+Date: Wed Aug 9 10:01:29 2006 -0700
+
+ Update the README.sgml file for the upcoming release.
+
+commit f8b47f607297e0591b63e5f25296af07ee74f433
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue Aug 8 16:19:51 2006 -0700
+
+ Update manual page to include i945 and later details.
+ (cherry picked from 7833d0733bc146cf1ae7f588516c49797886b396 commit)
+
+commit d150b53d102c511f3c9245ef1f6fd36c12b01ca3
+Merge: bb65a4d bc5f565
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Aug 8 15:51:58 2006 -0700
+
+ Merge branch 'i965', adding i965G support.
+
+ Conflicts:
+
+ src/i830_cursor.c
+ src/i830_driver.c
+
+commit bc5f56568021d8c63313e2b6bf30710e7516c04a
+Author: Eric Anholt <eric@anholt.net>
+Date: Tue Aug 8 15:48:04 2006 -0700
+
+ Intel bug #49: Fix video output at 32bpp by using B8G8R8A8 instead of B8G8R8X8.
+
+ While here, don't overallocate video memory for the i965G state.
+
+commit c3b3d479788fcea7e543f29acf83c85b8b148fbe
+Author: Alan Hourihane <alanh@tungstengraphics.com>
+Date: Tue Aug 8 15:28:14 2006 -0700
+
+ Intel bug #35: Fix accelerator syncing with DGA.
+
+ Fixes glitches seen with Mark Vojkovich's "texture" demo.
+
+commit bc12208f6e145ec29c3ebe38ae04dc2ebca1b4cc
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Aug 7 13:27:00 2006 +0800
+
+ Disable error register dumping in dri TransitionTo2d. This's for
+ debug which might confuse QA.
+
+commit bb65a4dc55b416437d61ccbee8b6056fe8e08357
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 14:51:18 2006 +0100
+
+ bump to 1.6.3
+
+commit 37644293da751bfc7268c9fc74ecda1044607dee
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 14:42:32 2006 +0100
+
+ check for xineramaproto
+
+commit 3661d4df86db012682ab4b393287aa02e9fc8453
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 12:25:03 2006 +0100
+
+ Re-enable monitor detect after a few fixups.
+
+commit 995b142f510d1daab3914d336f3c0d017a043b41
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 12:01:39 2006 +0100
+
+ Disable detecting of new monitors on VT switch.
+ It's doesn't always work. The modesetting
+ branch will deal with hotplug displays correctly.
+
+commit 8e5844bbf9c8880c9eb6eff29b6db2db06b01933
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 11:43:10 2006 +0100
+
+ bump to 1.6.2 to indicate mergedfb support
+
+commit 421b415e23c1ddc78837cd222167d6ed71a3ef88
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 11:28:42 2006 +0100
+
+ Fix a build problem.
+
+commit e4f63eaf5efb654121db148f2f8e32cc3b23b6b5
+Merge: 633a683 e26f3e3
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 11:07:56 2006 +0100
+
+ Merge branch 'master' of git+ssh://xorg.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 633a683a4adcb9a44a54519fd7ff66aab2d12f97
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 8 10:23:29 2006 +0100
+
+ Ensure palette is updated in mergedfb & clone modes
+
+commit 71e3e2d4e3b2a2c538fe6f1cea41f442fdb8d756
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Aug 4 20:39:50 2006 +0100
+
+ Fix a problem creating the I2C bus for the SDVOC
+ interface, due to a name match with SDVOB.
+
+ Bus names must be unique.
+
+commit 0fd4831fdcf4c8f43d80c66e43eff8942f89b324
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Aug 4 00:21:53 2006 -0700
+
+ Disable dynamic front buffer mapping on i965.
+
+ Moving front buffers should only be necessary for rotation. Currently, the
+ server isn't ready for it, and the method attempted to work around it caused
+ crashes with DRI. Since i965 doesn't support rotation yet, this should be
+ harmless for now.
+
+commit 8d0a5138503586cbf980eb9464f2db91b72509c7
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 3 19:16:59 2006 -0700
+
+ Add parenthesis so that IS_I965G doesn't make the test pass for 8-bit.
+
+commit aa69018c01d2fa963fb940718dbd653d6ca2c9eb
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 3 19:12:15 2006 -0700
+
+ Turn off video debugging now that it appears to work fine.
+
+commit d15f87110807111ab7d71f1254ebe3dfef1fee80
+Merge: a79aa0d d56ffa5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 3 19:08:34 2006 -0700
+
+ Merge branch 'broadwater-video-rehash' into i965
+
+ The previous merge wasn't done on a synced-up tree, and missed necessary
+ changes.
+
+commit a79aa0d7b27b0b9b032472776d7dda410fd66a98
+Merge: 760021e f9e94c1
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 3 17:58:56 2006 -0700
+
+ Merge branch 'broadwater-video-rehash' into broadwater
+
+ Conflicts:
+
+ src/Makefile.am
+ src/common.h
+ src/i810_driver.c
+ src/i810_reg.h
+ src/i830.h
+ src/i830_accel.c
+ src/i830_cursor.c
+ src/i830_dri.c
+ src/i830_dri.h
+ src/i830_driver.c
+ src/i830_memory.c
+ src/i830_rotate.c
+ src/i830_video.c
+
+commit 760021e3983f7783900075b8c9603bd4fbe7e0a2
+Author: Alan Hourihane <alanh@tungstengraphics.com>
+Date: Thu Aug 3 17:08:39 2006 -0700
+
+ Add current Tungsten Graphics code drop for i965 support.
+
+commit d56ffa5f35e3cf4262d66469052b2122fdb24027
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 3 16:03:50 2006 -0700
+
+ Bump PS_MAX_THREADS to 32 now that the program doesn't fail.
+
+commit 4525379d95ff292d7322e1a7a516c0bedd1f7543
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 3 16:03:15 2006 -0700
+
+ Make the sampler's payload be the WM payload rather than uninitialized data.
+
+ The sampler's payload happens to be in the same format as the WM payload,
+ though most of the fields are ignored.
+
+ This appears to fix the program in the presence of multiple PS threads.
+
+commit ad2c70b4121121f1fb53190ea49edf2323c804a9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Aug 3 12:47:19 2006 -0700
+
+ Remove some stale XXX-prefixed comments.
+
+commit f9e94c17c55e4c75802d8574c908744e286e7843
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 21:18:19 2006 -0700
+
+ Set the WM scratch space that we had already allocated.
+
+ It appears to be required, even if the kernel doesn't use any scratch space.
+
+commit aefa6fdfc5300546caeb64ace14a7854d3dc7dae
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 21:14:14 2006 -0700
+
+ Clean up GRF allocation (which was wrong at 16-register boundaries).
+
+ Also use PS_MAX_THREADS rather than hard-coding 1 thread, and remove the dead
+ SF_KERNEL_NUM_URB macro.
+
+commit 7a64e14624514ef31f6fa9f15e8804c45f930212
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 20:48:13 2006 -0700
+
+ Crank down the SF allocation and comment on why this is a fine lower limit.
+
+commit bc6a2bb7576a7c1e7971f6d1e0b893b2ada1aaa3
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 20:34:57 2006 -0700
+
+ Remove the clip URB allocation.
+
+ Previously, the VS was misconfigured and exceeding its allocation, which the
+ (unused) clip was providing padding for.
+
+commit defe2795429484ffe4c1438bafb86bb5e5469ba9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 20:32:41 2006 -0700
+
+ Correct the VS setup, and allocate a correct, minimal number of URB entries.
+
+ The VS number of URB entries and URB entry size are always used, even when
+ the VS is disabled. Similarly, the cache enable bit is always used.
+
+commit b57ccb682cb3dea3e26c6f1b0c709e63dfde0d31
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 19:46:15 2006 -0700
+
+ Replace the SF max threads setting with a define for easier tweaking.
+
+ Tweak it to 1 for now.
+
+commit 82037a12758c41a304f2e0bbd033d3345cccbe1a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 19:33:28 2006 -0700
+
+ Remove CS URB allocation since we don't use any constants.
+
+commit 1d45668d7a42bfa5d7f5bfb68d8bae38bda0936b
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 19:18:20 2006 -0700
+
+ We only need 3 vertices to fit in the URB, since we only dispatch 3.
+
+commit a076d35bed6f13cf943a0f8948176aa0c999e2da
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 19:16:03 2006 -0700
+
+ No GS URB allocation is necessary when the function is disabled.
+
+commit befa655168fb8dcb6806592eb44f7ac49f191822
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 19:11:38 2006 -0700
+
+ Reduce URB_VS_ENTRY_SIZE to 1 as our vertices are under 8 floats.
+
+commit 33acbdca0a0f82725e5bf7887b325726403a6ffd
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 19:09:19 2006 -0700
+
+ Remove the VS kernel and binding table.
+
+ The VS URB entries have to remain as they're used to store the VF output which
+ isn't modified by a VS program.
+
+commit aafa48cb85cd03c735fb968a4275c19e1a68cd02
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 18:26:26 2006 -0700
+
+ Fix wm prog to correct the ordering of the Cr and Cb channels.
+
+commit bc2c842d93de04d48c7de60482814db346bd0b78
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 18:10:01 2006 -0700
+
+ Allocate space for the 965's state at the end of the video buffer.
+
+ Fixes corruption in the first few lines of the video.
+
+ Based on 1b506798d98d911be733543da2c40cb451a28912
+
+commit 524460ea1f02bb6e8e2239d7763334666012cec4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 17:47:55 2006 -0700
+
+ Updated WM kernel to load video and do colorspace conversion.
+
+commit ba896c779c697e1d7458028798ec49013bd9da9f
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 17:47:37 2006 -0700
+
+ Updated grf/urb state for WM.
+
+commit e5c572f841b626b8b6f21a6966a33956d3b0b35b
+Author: Adam Jackson <ajax@benzedrine.nwnk.net>
+Date: Wed Aug 2 20:47:12 2006 -0400
+
+ Fix a braino in mode list pruning.
+
+ Interpreting the size of the display in centimeters as the size in pixels,
+ and then clipping the modes list based on that, rarely does what you want.
+
+commit 21b62df7c34217be5dd95985c35e33be11c25846
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 17:36:49 2006 -0700
+
+ Move the WM kernel to a separate file.
+
+commit 5d3424492f9586a4c5a28962a9757f48f2c12e83
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Aug 2 17:34:12 2006 -0700
+
+ Replace SF kernel with the one from broadwater-video HEAD.
+
+commit 7458a6adb5ea62f56bb3d4ab19ad7d1aa6ad2d19
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 31 10:09:17 2006 -0700
+
+ Move MAPSURF_XBIT settings into the texture formats structure.
+
+commit 7ea74843bbdbf54b6804727be9b41d26832c8f76
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 31 10:06:34 2006 -0700
+
+ Whitespace cleanup.
+
+commit e71108f1e05b7a8d8edd174eb64edd6cccacbcdc
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Jul 28 10:32:12 2006 +0100
+
+ Fix DGA with MergedFB
+ Turn off rotation support when MergedFB enabled
+
+commit a91a4f95c664f6905fef61dab251707bf2548bb8
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Jul 27 16:11:48 2006 +0100
+
+ Fix pipe reversal for Xv
+
+commit ac3ad32f667b306e771617d784648f7111743f1a
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Jul 27 15:28:42 2006 +0100
+
+ Calculate allowable refresh rates on the private
+ mode data for each independent screen in mergedfb.
+
+ Lots of other fixes too.
+
+commit 30952e58ed83e2e18d1007f662d2cc9a773c876c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 26 13:42:12 2006 -0700
+
+ Limit drawing to the destination pixmap's boundaries, not the screen's.
+
+ This shouldn't matter, as miComputeCompositeRegion shouldn't giving us
+ anything that would draw outside the bounds, anyway.
+
+commit cffd2cd36d0437b38ac8164d66ea71be50b19330
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 26 13:22:51 2006 -0700
+
+ Fix hangs when compositing with a mask.
+
+ The modify bits in the mask field for sampler/map state appear to actually
+ be enable bits. So, prepare the state values in I915TextureSetup,
+ then write the sampler/map state out all at once in PrepareComposite.
+
+commit 96754b822df7ac110a70b2d08dda2ebb299772be
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 26 13:19:12 2006 -0700
+
+ Fix a couple of typos from code review.
+
+commit e786e2f9f3a4df31702736db6f68a44c9ebba546
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jul 26 16:45:38 2006 +0100
+
+ When detecting new monitors in mergedfb renew the modepool.
+
+commit 8e6e990db34d63174670512f494fa9adb44786f5
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jul 26 10:48:47 2006 +0100
+
+ Update Xvideo to deal with MergedFB modes.
+
+commit e26f3e30b30a57ab4aad0267d689a9a5d7a5e877
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jul 26 09:17:52 2006 +0100
+
+ Fix a build problem
+
+commit b919db75d2f6dc1019f981534b0d5d87c6029727
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jul 26 09:07:19 2006 +0100
+
+ Bump to 1.6.1
+
+commit 9c93d1498fa2363c52ef7fbe97d781560f67acf5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 25 21:17:05 2006 -0700
+
+ Oops, partial revert of last commit. Some were obviously not NOOPS.
+
+commit 38d1a5e0dbe059f5c01bd5120a108a386ff10718
+Author: Eric Anholt <anholt@leguin.anholt.net>
+Date: Tue Jul 25 21:09:12 2006 -0700
+
+ Replace some OUT_RING(0)s with OUT_RING(MI_NOOP) to remind me why they're there.
+
+commit fd19b12793f09b6714468556ace875ef36ed9e1c
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jul 25 11:14:11 2006 +0100
+
+ Add mergedfb support to the intel driver with
+ additional pseudo-Xinerama support.
+
+commit aec88cf4c66833f89afa5f8fa4f8bcf30b2b6b4b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Jul 24 15:46:19 2006 +0800
+
+ remove crap blit in UploadToScreen, we should find a more
+ efficent way and implement blit correctly.
+
+commit 32f1199937e92b9100aba52cbbb97157014e3182
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon Jul 24 15:42:15 2006 +0800
+
+ remove an extra '-'
+
+commit 02c5c4cd1dd44058d80ec23cccfd45a13bc3bb2c
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 21 12:54:06 2006 +0800
+
+ add copyright info
+
+commit 4f0ad337098eb0bacb1c11bc61d780ac18041e1d
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 21 11:59:04 2006 +0800
+
+ fixup segfault in xaa when xaa not initialized in i830WaitSync.
+
+commit 914327f40d07a3f7c069752ce005bf8e21352b03
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Jul 20 17:58:07 2006 -0400
+
+ Disable drawing to PICT_a8, and turn on support for non-extended repeats.
+
+ We don't know what COLOR_BUF_8BIT does, so it's disabled for now while we're
+ stabilizing the code.
+
+ The non-extended repeats appear to be working according to the rendercheck
+ tests on a8 and a8r8g8b8 sources. Masks continue to hang the card, as before
+ this change.
+
+commit 45cb032e2b7ac1e4c765fc29a2e4dd0cef19066d
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Jul 20 17:34:50 2006 -0400
+
+ Use MT_8BIT_A8 so PICT_a8 expands to (0,0,0,a) not (a,a,a,a)
+
+commit fd6d825ae0780f3daf436f4224bf5f177cb8630e
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Jul 20 17:25:31 2006 -0400
+
+ Move ss6 setting with other immediate state, and ensure that stencil is off.
+
+commit d6d6a44c66446f34b57394e5ea9a8e32917f7569
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Jul 20 11:23:05 2006 -0400
+
+ Try to fix up the basic RepeatNormal and RepeatNone support.
+
+ With RepeatNone, access outside of the drawable should return 0 alpha values,
+ which is done by using the border color. For RepeatNormal, we use the wrap
+ mode (which requires that we use normalized texture coordinates).
+
+commit 2b2173c618c080b1678990d65fe49b52bd8001b4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Jul 20 11:15:18 2006 -0400
+
+ The pixmap's drawable x/y coordinates are always 0, so don't bother using them.
+
+commit 9f1cec83e0aef36c7d3482e62e8f01595f1fd076
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Jul 20 11:05:49 2006 -0400
+
+ The vertex data are all floats, so write the dest coords as floats.
+
+commit 4737955a62c39177e7a7ce7749a2f20e111afc68
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 21 01:02:38 2006 +0800
+
+ move i830 default coord set into I830EmitInvarientState
+
+commit a7e30bb051bc03063fe699473610a57054a64973
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 21 00:56:58 2006 +0800
+
+ Take from i915, blend ctl code cleanup.
+
+commit ac34a37cb60d763cbd99b6e2f6fdcb639592b99b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 21 00:52:59 2006 +0800
+
+ Take instruction fixes into i830, with indent changes.
+
+commit 3e86bf4273241daa23645f5a8104913e4205a74b
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jul 20 13:43:27 2006 +0800
+
+ remove i915 default ctx setup.
+
+commit 5c945bf9eb9f5bedd34d98dcc7abc3f1ea3cb962
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu Jul 20 13:40:39 2006 +0800
+
+ Revert "Fix several size error with STATE3D_LOAD_STATE_IMMEDIATE cmd."
+
+ This reverts commit 433cb6ba82698676f6f72e09834aba4d64611d54.
+
+commit d5243d1b35ab1db608c81889819e4d4d87048154
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 19:27:53 2006 -0400
+
+ The height and width of texture maps are one more than the programmed values.
+
+commit 13e372c2095fde94ae41bea959fba0ad95a59c08
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 16:42:57 2006 -0400
+
+ Fix the texture map pitch setting as documented, and as used by the 3d driver.
+
+commit da5efb09d55291ce5bcabff7db8d1490bb5e838b
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 16:36:52 2006 -0400
+
+ Fix the alignment padding fix (didn't bump BEGIN_LP_RING count).
+
+commit 36aa43bf73ee1268f0a250788eb637a4123f08eb
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 16:22:46 2006 -0400
+
+ Force texture alpha channels to 1 if not present.
+
+commit adce6bd0fc9533156da09da7d029ba0d76606b4f
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 16:21:49 2006 -0400
+
+ Add a trailing MI_NOOP to frag shader output for alignment if necessary.
+
+commit 4e409ea44180f7ef2780d70c9d2f54629bbd0fc3
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 15:57:09 2006 -0400
+
+ The map bits per pixel must come from the drawable, not the visible screen.
+
+commit 449e4be503c8b938d5bd46ee810244f8bcf54ceb
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 13:34:06 2006 -0400
+
+ Correct the DWORD count of several 3D instructions.
+
+commit f1b62d890ca22e12d61f7ef67bc4e35d68cde019
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 13:02:24 2006 -0400
+
+ Replace hand register setting with new i915 fragmet program API.
+
+commit 76a316d0cec92a04c8735926a76e76c21f960d7e
+Merge: 433cb6b 8480516
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 19 12:31:36 2006 -0400
+
+ Merge branch 'master' into exa
+
+ Conflicts:
+
+ src/Makefile.am
+
+commit baf65ce98abcdd21dff2531a43bb9c5044732c28
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 18 19:42:37 2006 -0400
+
+ Re-convert i915 video to new fragment shader API.
+
+ Although in the history of this branch it had happened before, this time it's
+ for real.
+
+commit bb81e8d6c777a5e16b8193c07667fbee8e21203e
+Merge: 2a1b3cf 8480516
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 18 19:23:21 2006 -0400
+
+ Merge branch 'master' into textured-video
+
+ This moves the i915 textured video implementation into i915_video.c to avoid
+ conflicts in register definitions with i830_reg.h when we use i915_reg.h.
+ This also means that i810_reg.h's i915 3D regs definitions are removed and
+ replaced with i915_reg.h usage.
+
+ Conflicts:
+
+ src/i830_rotate.c
+
+commit 84805167ab8a422966355b9753bfcb4dad802413
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 18 18:27:10 2006 -0400
+
+ Convert i915 rotate code to the new fragment program API.
+
+commit 5176d62ba58c100c87f75a4f333d00129d780c99
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 18 16:18:18 2006 -0400
+
+ Add an API for programming i915 fragment programs.
+
+commit 148ef9bdd9e0ef3e7ac86b56a8662b53a3ea9168
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 17 22:32:25 2006 -0700
+
+ Convert magic numbers to symbolic names in i915 rotate code.
+
+ This doesn't cover the fragment shader yet, which we need to make a sensible
+ set of macros for (at least the basic bits).
+
+ Reviewed by: md5
+
+commit 433cb6ba82698676f6f72e09834aba4d64611d54
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Jul 18 17:00:50 2006 +0800
+
+ Fix several size error with STATE3D_LOAD_STATE_IMMEDIATE cmd.
+ Issue texture coord set with proper scale value.
+
+commit 855a9f13cb7fd4f6c489ff280bf389475bbd9bbe
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Jul 18 10:02:47 2006 +0800
+
+ fallback in 'repeat' case for now
+
+commit a6d438ebe3cf141a0331e0cd55eb9b5e137a5e37
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jul 17 14:11:19 2006 -0400
+
+ Disable spread spectrum clock usage.
+
+ The spread spectrum clock generator that improves EMI characteristics for
+ laptop screens lives in an external chip that is programmed over an i2c bus.
+ Without correct programming, attempts to use this mode for the LVDS can
+ result in a DC signal being sent to the panel.
+
+ Until we find programming information for this external chip, we should
+ leave this mode disabled.
+
+commit 16d6263e6518a4a05562e2842ff2d0fdb4710304
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Sun Jul 16 20:39:52 2006 +0100
+
+ whoops, reverse part of that.
+
+commit 2f50f6d1b1b3fa4fbec98bd8fa5818df890070e7
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Sun Jul 16 20:17:38 2006 +0100
+
+ move ContextMem out of XF86DRI
+
+commit c7083a267209c93b2a91ef00dea2ca840400d160
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Jul 14 13:23:40 2006 -0700
+
+ Bug #7404: Only save/restore VGA fonts and not other VGA regs.
+
+ This fixes a hang on the i945 during restore. It appears that saving/restoring
+ the VGA registers is not important, as we're correctly saving/restoring the
+ registers we touch within the driver anyway.
+
+commit 49b827605628d3e1a6d4d41447cf46c5f38cc0c2
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Jul 14 14:23:04 2006 -0700
+
+ Add a register restore implementation so we don't crash on LeaveVT.
+
+ We shouldn't ever need to save/restore the hi/lo frequency regs, as they're
+ read-only.
+
+commit 6a92a779646ec03a03a3b1f45170b2e705ce8934
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Jul 14 14:20:41 2006 -0700
+
+ Don't try to probe on more pipes than we really have.
+
+commit 04d1584737fd0d14e99608a97281fd7b1549ae0e
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri Jul 14 16:14:18 2006 +0800
+
+ Current exa render implement for i830 and i915, test on
+ 865GM and 915G. There is issue in picture 'repeat' support.
+ And also stop recursive behavior in I830WaitLpRing to allow
+ server to abort instead of system hang.
+
+commit de470aaf5c47f4d2b0f477ac678039ef43af773d
+Author: Adam Jackson <ajax@benzedrine.nwnk.net>
+Date: Thu Jul 13 19:10:11 2006 -0400
+
+ In I830xf86SortModes, catch cases where two modes are equal in only one
+ dimension, by comparing the areas of the modes. Otherwise, 800x600 would
+ sort before 1024x600 if it was added later.
+
+commit 22843830ebdd14247aa76d19f89494a56e2ac887
+Author: Adam Jackson <ajax@benzedrine.nwnk.net>
+Date: Thu Jul 13 17:20:17 2006 -0400
+
+ Fix a thinko; would only inject the FP native mode if a mode list was already
+ found, which is never the case when there's no xorg.conf.
+
+commit 05bcbadd130524694e11e372d54cb419cea566cc
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 11 14:05:38 2006 -0700
+
+ Avoid NULL dereference if cursor position changes during a mode change.
+
+commit b65f18b05a5fba506b71293b495cab95197037ac
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 11 13:29:57 2006 -0700
+
+ Bug #7443: Respect the user's Modes configuration, and make it more useful.
+
+ Now, mode names generated by DDC get names of the form "WIDTHxHEIGHTxREFRESH".
+ The matching for user Modes lines takes the user Modes as the prefix that
+ needs to match, rather than an exact string match or "WIDTHxHEIGHT" match. So
+ one can, for example, specify "1024x768" to get any old 1024x768, or
+ 1024x768x60 to get one of the modes named 1024x768x60.
+
+commit 5a2e04bd1b700a8a6e26136b8831ef5e4d11b565
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jul 11 10:21:51 2006 -0700
+
+ Fix crash with DDC when there are no user modes to add.
+
+commit f9499a68da0ce459fed0b29b998678fd81898a51
+Author: Luká\u0161 Hejtmánek <xhejtman@mail.muni.cz>
+Date: Tue Jul 11 10:13:18 2006 -0700
+
+ Make gamma settings apply to the cursor as well, and fix clone-mode gamma.
+
+commit 7068468ac1951bfca0071bb9b1a99df4f37368a0
+Author: Luká\u0161 Hejtmánek <xhejtman@mail.muni.cz>
+Date: Tue Jul 11 09:51:26 2006 -0700
+
+ Add support for adjusting saturation value of overlay video.
+
+commit b1c2ea653502dd8547079e7014b698f241433dff
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jul 11 08:13:30 2006 +0100
+
+ whoops, revert some unnecessary changes
+
+commit 8a44a7acfcadbba2410dca750afc9d32bc83706e
+Merge: 584b544 e7723a4
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jul 11 07:41:27 2006 +0100
+
+ Merge branch 'master' of git+ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel
+
+commit 584b544987be5cf23dce29ddaf3130e59cfe6fa8
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jul 11 07:40:40 2006 +0100
+
+ Add an additional check before rotating
+
+commit b912bf5673e38e03b0b25c2f5d05fe7e26994ba1
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 18:35:20 2006 -0700
+
+ Clean up warnings in sil164 module.
+
+commit d75490701cdbf2ab6eab82eaa078790a5fe0aea0
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 18:21:04 2006 -0700
+
+ Hook up SiI164 mode setting (just a matter of turning the chip on).
+
+ Also adds register dumping in case this turns out to not be enough, and fixes
+ a couple of prototypes.
+
+commit 426d26ea446d646fa8f561ea0e03c8e4a2c0c315
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 18:19:51 2006 -0700
+
+ Fix prototype for SaveRegs.
+
+commit 8d7987d00242020d29a2574ac0c8b6e55cc22112
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 17:34:57 2006 -0700
+
+ Move to 4-space indents in sil164.
+
+commit f5a01a2ef02125611d5fb74c20d53d52e544701a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 17:17:51 2006 -0700
+
+ Make DVO code light up my sil164-based DVI output, when already set up by BIOS.
+
+commit 23a0ee73bce12f9e0b881af420413aeec4c0517f
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 17:16:18 2006 -0700
+
+ Fix modelist with a configured monitor to not begin with all unvalidated modes.
+
+commit 48ba9273ddfb36d3525e19238b94b18c56667c4d
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 15:01:51 2006 -0700
+
+ Fix validation when the first mode is thrown out, and print hsync in modelines.
+
+commit 3924ffb7d7b71cb9c6ab9eeb12d0f1b2c26244c0
+Merge: 5a8f6a4 f76f94a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 12:12:38 2006 -0700
+
+ Merge branch 'dvo-merge' into modesetting
+
+ Conflicts:
+
+ src/i830_driver.c
+
+commit f76f94a743505da16e121992eb789c1f74eb7673
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 10 12:04:09 2006 -0700
+
+ Supply proper NULL-terminated symbol lists to avoid crashing.
+
+commit 5a8f6a486d79f50d2d659e615283289d59f9caa4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Sat Jul 8 15:26:19 2006 -0700
+
+ Improve output bus setup to include LVDS setup for pre-i915.
+
+commit df333cc9a848bc2299a52a7613fe4ffdff8038a2
+Author: Eric Anholt <anholt@leguin.anholt.net>
+Date: Fri Jul 7 13:41:33 2006 -0700
+
+ Initial add of DVO support code. Probes my sil164.
+
+ This is a mostly-untested merge of airlied's work. The I2C modules are intended
+ to be moved into the core server or a separate driver module when they're
+ functional and we're happy with the API.
+
+commit e1064f52b0ff69ea7937897b8c951cc3e32cd752
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 5 16:00:03 2006 -0700
+
+ Don't try to probe modes on an SDVO device with NULL sdvo_drv.
+
+commit ffa6ecc18bc54151061d9956f1d12575fc057da3
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jul 5 14:41:08 2006 -0700
+
+ More fixes to "choose closest mode for the pipe" code to select correct refresh.
+
+commit dfd7fef457c048c9f0d826e37d91453d9e1485b9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 3 12:01:57 2006 -0700
+
+ Bug #7375: Don't double-free the current XF86 mode after a randr reprobe.
+
+commit 5d07ebdf4f23e16fb8f60eafeadc947701e7877c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jul 3 11:59:21 2006 -0700
+
+ Only override display size with the XFree86 mode's for actual panel scaling.
+
+commit 48f27ac62128251640a9b1ca54f63376676b47eb
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jun 28 15:07:01 2006 +0200
+
+ Replace i830InjectModes with i830DuplicateModes usage.
+
+ The remaining functionality of DuplicateModes was OBE, and the name was bad.
+
+commit ce5bd108c55d2378db072617c380514a39672603
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jun 28 14:21:49 2006 +0200
+
+ Validate and insert user and VESA standard modes for DDC or configured fallback.
+
+ This isn't really tested because I lack a good CRT to test against currently.
+
+commit 367f69f8e7710e53dcd286f1b62506a3276e80f9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jun 28 13:10:02 2006 +0200
+
+ Replace xf86ValidateModes usage with a set of custom validators and pruning.
+
+ This moves us to maintaining MonPtrs per pipe instead of using the EDID
+ structure "xf86MonPtr", which is closer to what we want to be looking at when
+ doing validation. The new validation isn't enough yet -- particularly, we
+ aren't importing and validating the custom modelines to the pipes when
+ applicable, but this will be easier than (for example) trying to make flat
+ panel modes pass xf86ValidateModes through various gross hacks.
+
+ Hotplug turn-on/off also happens at SwitchMode time now, instead of at randr
+ probe time.
+
+commit 9fbd3d8f4befb75ed6f6bd9a9ffe0175626e8785
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 27 23:31:40 2006 +0200
+
+ If the panel power registers are all zeroes on Mobile parts, disable LVDS.
+
+ This is the case on the Mac mini, which is an i945GM but has no LVDS attached.
+ Powering on with the power timing registers zeroed would probably be a bad idea,
+ even if there was a panel attached.
+
+commit 56f7aedd0ad1f5645a90a5509b1263ec6b7b7ee1
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 27 00:37:56 2006 +0200
+
+ Fix randr current mode reporting and mode loss/mis-configuration on re-randr.
+
+commit b85f268051a785f90e4c55bd1cac80d673388f16
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 16:26:58 2006 +0200
+
+ Fix remaining warning.
+
+commit 6a3f89f4b6035534c7b93a4c05fd704305349785
+Merge: 3cdc537 e7723a4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 16:25:58 2006 +0200
+
+ Merge branch 'master' into exa
+
+ Conflicts:
+
+ src/i830.h
+
+commit 3cdc53797bf6fdbfbcb53e07b269a5071f5ec97d
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 16:23:55 2006 +0200
+
+ Fix build with new EXA headers.
+
+commit e7723a4e5725147d3bd9ba22c5a3314b0556e440
+Merge: 5111b88 dae9cb7
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 16:04:33 2006 +0200
+
+ Merge branch 'origin'
+
+commit 7104b915da412a26661bab7b5a940e935e8cbc8a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 15:11:13 2006 +0200
+
+ Clean up warnings.
+
+commit 21dc3edfc41987bb8cf0f8d265fba9775cbe8cdb
+Merge: f113e90 5111b88
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 15:06:42 2006 +0200
+
+ Merge branch 'master' into modesetting
+
+ Conflicts:
+
+ src/i830.h
+
+commit 5111b883480a5a9cc82200f2684cba67b515aa73
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 14:53:10 2006 +0200
+
+ Turn on extra warning flags for GCC, and clean up the resulting fallout.
+
+commit f113e9002cf53510e30984f816d44b06f1e71216
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 12:54:30 2006 +0200
+
+ Fix the plane/pipe disabling and turn off missing outputs when no longer DDCed.
+
+commit 0e5cda3796ba0164496f0814eb57d1dfa7ab9257
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 10:30:46 2006 +0200
+
+ Fix FP scaling by using the desired mode to get at the real [HV]Display.
+
+commit 51d14f803aae6d0a738520c3cad110289ee444db
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 10:21:23 2006 +0200
+
+ Add a function to turn off unused outputs, DPLLs, planes, and pipes.
+
+commit d2c18d8d79596513149273e4a0d322f04bf27e80
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 10:15:11 2006 +0200
+
+ Fix DDC probing after last (untested) commit.
+
+commit 6d1d105d68d9c25890c3fd2ebad1367529c2a991
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 10:14:27 2006 +0200
+
+ Unset pipe current mode on EnterVT, so we reprogram the mode for sure.
+
+commit 52e8231a19f28bd4744f983aee2197a18c20aa3a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Jun 26 07:46:28 2006 +0200
+
+ Major cleanup of mode reprobing:
+ - Don't mess with pScrn->monitor->Modes, and instead make our own availModes.
+ - Don't re-program the pipe with the same values (no flicker at xrandr)
+ - Move a bunch of stuff that should be exposed through the public API (probably)
+ to i830_xf86Modes.c
+ - Use a table with established modes plus GTF to come up with modes from EDID,
+ instead of trying to walk and find one in pScrn->monitor->Modes. I think
+ this is correct.
+ - Reset clone state if we've detected new pipes, which should turn on the
+ cursor.
+
+commit f5e5f8aeddb3e0d6d073471aeff6176fb54576e2
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Jun 23 23:29:55 2006 -0700
+
+ WIP to allow re-probing and validation of modes for new heads at "xrandr" time.
+
+ Now, DDC modes always end up being preferred to custom modelines, even if
+ smaller. This should probably be fixed by inserting custom modelines into
+ the probed mode list if they're valid according to the probed parameters of the
+ monitor.
+
+ Too much code is lifted from static functions in xf86Mode.c, and those should be
+ made unstatic if possible. Using xf86ValidateModes is also rather hacky, and
+ I want to break the function down, but this is a first step.
+
+commit 89791914d2a78f19f4f60ca370d387e5b1ccfb46
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Jun 23 18:21:17 2006 -0700
+
+ Split probed modes out per pipe, and union them into the available modes.
+
+ This is the first stage of getting runtime monitor attachment. The old i830
+ GTF code is returned to use to provide suitable modelines for xf86ValidateModes
+ in the LVDS case, even though the LVDS doesn't care about the modeline and just
+ always programs its fixed values.
+
+commit dae9cb7712d5d8f88697ca83808c59af08364c0e
+Author: Alan Coopersmith <alan.coopersmith@sun.com>
+Date: Thu Jun 22 15:07:16 2006 -0700
+
+ Provide definitions of __FUNCTION__ for non-gcc compilers
+
+commit bb4810521633b6c3db2fc7d01ddc71325583d265
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Jun 22 09:38:27 2006 -0700
+
+ Move FP mode validation next to other mode validation code.
+
+commit 66d9a1be302ad34573de98de21cbdf6419592092
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jun 21 17:11:54 2006 -0700
+
+ Detect SDVO display presence at startup and default to displaying to it, too.
+
+commit 72e25a7488c2eabcc92e9e0769a89dee687f52fd
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jun 21 16:04:18 2006 -0700
+
+ Fix SDVO output at low pixel clocks.
+
+ I had interpreted the docs as saying that the multiplier setting would further
+ divide the clock and stuff dummy bytes in. Instead, we have to set the DPLL at
+ the higher clock rate, and the pixel multiplier just controls the stuffing of
+ dummy bytes. Also, we have to set the multiplier both in the graphics chip and
+ on the SDVO device on the other side.
+
+commit 726443309d72134341cff1f6db978aa1d6e3ce52
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Jun 21 15:38:19 2006 -0700
+
+ Add decoding of SDVO command names for debug output.
+
+commit 5a1b68993f3a3a2e8dcd428a7118e29c36703cd6
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jun 21 08:41:16 2006 +0100
+
+ Fix build without DRI
+
+commit 16b310823bacab6be4947da234b3a081b0a3cd62
+Author: Matthieu Herrb <matthieu@deville.herrb.com>
+Date: Wed Jun 21 00:12:27 2006 +0200
+
+ Fix build without DRI
+
+commit 896ffe78fe96469cdd3ade77c8e68e1503967223
+Merge: 89c2c4b 52243d4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 20 15:10:35 2006 -0700
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 89c2c4bc40b8c032915ccb3ed4f3c143c3d8db12
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 20 15:10:19 2006 -0700
+
+ Add #if 0-ed code I've been using for CRT detection debugging.
+
+commit be08661e3126907c50c54485042fcde00b0da2b4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 20 14:48:03 2006 -0700
+
+ Only default to enabling CRT or LVDS output if they're actually detected.
+
+ Still, if we haven't detected any outputs automatically (including CRT through
+ DDC), default to CRT anyway.
+
+commit b454c9601f005c69c11556a558150403378d34d9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 20 14:32:40 2006 -0700
+
+ Add support for CRT detection using DDC.
+
+ This method is slower (~5ms), but works on older chipsets. Also, load-based
+ detection is disabled, as it can be fooled by other outputs on the pipe being
+ active, such as LVDS.
+
+commit 0b76646666e9d330e77c6f81af8b91e34623be92
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 20 13:57:26 2006 -0700
+
+ Add CRT detection function by testing for load, and clean up hotplug version.
+
+commit e4584a4f44a70d746396ed48b8e40033504d68b2
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 20 10:39:28 2006 -0700
+
+ Remove dead DisplayInfo option.
+
+commit ab60e34dcfc52ab5f22a82145d5b4db51b4c62c5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Jun 20 10:07:47 2006 -0700
+
+ Add debugging info for pipe/display plane size.
+
+commit 8a6edba33213911cc2210b5e903428b81d45862f
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jun 19 13:47:28 2006 -0700
+
+ Set vblank interrupt configuration to match pipe configuration
+
+ New i915 drm ioctl (in version 1.5) allows the X server to select
+ which pipe drives vblank interrupts. Use this to drive from the 'preferred'
+ pipe. Yes, per-window vblanks would be nice in a shared fb environment.
+ Maybe someday.
+ (cherry picked from 2fb375b665f4802819b89f2277fd6154006c11ee commit)
+
+commit 52243d407cad93283956660de4771097ac0b4b2d
+Merge: 2fb375b 34f6a82
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jun 19 13:28:09 2006 -0700
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit 2fb375b665f4802819b89f2277fd6154006c11ee
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jun 19 13:24:57 2006 -0700
+
+ Set vblank interrupt configuration to match pipe configuration
+
+ New i915 drm ioctl (in version 1.5) allows the X server to select
+ which pipe drives vblank interrupts. Use this to drive from the 'preferred'
+ pipe. Yes, per-window vblanks would be nice in a shared fb environment.
+ Maybe someday.
+
+commit b5acc6b3a3a3a109014d6b971f4722d0f0a4c29a
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Jun 19 13:22:17 2006 -0700
+
+ Add backlight control to DPMS logic.
+
+ Turn backlight on and off in response to DPMS state changes.
+
+commit d7e5d996aa123e52857362fa8a1e69f709bfe218
+Merge: 89a5a00 a73ab7f
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Jun 20 01:22:53 2006 +0800
+
+ Merge branch 'master' into exa
+
+commit a73ab7f0e6e3b0462e05c0031ffd602ed3e2bcd4
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 19 11:35:42 2006 +0100
+
+ additions for rotation fixes
+
+commit 1fe3dd38eb613475d62140850e64767defed7d34
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 19 11:27:28 2006 +0100
+
+ Set some invarient state, cures some problems with
+ rotation at startup.
+
+ This mimicks the 3D drivers setup.
+
+commit 89a5a0024a7e077a0726ffe1427e573df3bcbef5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Sun Jun 18 00:25:34 2006 -0700
+
+ Fix crash with EXA during randr, when XAA structures were being accessed. EXA
+ shouldn't have any issues with there also being pixmaps in framebuffer while
+ rotation is active.
+
+commit f2ab3aa3199e1c4b0edec72b5acea6d725cc514a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Sun Jun 18 00:32:01 2006 -0700
+
+ Fix DRI in EXA mode: Don't attempt to use XAA symbols (use the driver's internal
+ ones for EXA support when available). Also, add an abstraction of XAA/EXA
+ MarkSync and WaitSync functionality so we don't need to sprinkle the ifdefs all
+ over, and correctly use them.
+
+commit 3592b432b48d51d2273c1e1064f85e656fbba130
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jun 13 21:42:53 2006 +0100
+
+ fix 8bpp & 16bpp rotation modes for i8xx
+ series chips
+
+commit a50610b7719bfe800c3496c17d0ba77739167b35
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 12 13:53:20 2006 +0100
+
+ Use 800x600 mode to double check
+
+commit f02268b2091c9a785d26e82bcb35a8b713463072
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 12 12:16:58 2006 +0100
+
+ Don't rely on register check to find out
+ if we're resuming - it's not reliable.
+
+ But then, neither is the BIOS, but it's
+ the best we can hope for until Eric's work
+ is complete.
+
+ Try setting another mode to cater for some
+ broken BIOS' too.
+
+commit 672c3d18dbb405095e465126053ff887d891409e
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 12 10:02:06 2006 +0100
+
+ Only mark rotation flags after initial screen setup.
+ Fixes bug #7053
+
+commit 34f6a8204f1edec015283fc6b5f196e47897e3de
+Author: Keith Packard <keithp@mactel.(none)>
+Date: Sun Jun 4 00:15:06 2006 -0700
+
+ Get sDVO output working on mac mini.
+ Add lots of register debugging to track delta from BIOS settings.
+ Fix various mode settings to mirror BIOS sDVO values.
+ Disable analog/lvds output on pipe with sDVO.
+ Borrow Dave Airlie's I830xf86ValidateDDCModes code.
+ Fix various sDVO I2C messages to mirror Dave's code.
+
+commit 6812b5382077e5d3f421aceeeb2f337e9b3f570e
+Author: Dave Airlie <airlied@linux.ie>
+Date: Fri Jun 2 12:22:14 2006 +1000
+
+ intel: fix VT switch DRI locking
+
+ The DRI locking is incorrect at VT switch, due to reference counting
+ inside the driver. Just call the DRI directly.
+
+commit 3f158fd610a3363a23daa7205bcd9f213686cf1c
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Mon May 29 18:05:57 2006 -0700
+
+ Nice texture coordinate gradient, broken slightly in y
+
+commit bb0ad04d46eba2fed57a888ff960d2436ec7d70d
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Sun May 28 22:59:58 2006 -0700
+
+ Ok, finally something sensible up on the screen.
+ Replace PS kernel with constant data source (pink).
+ Dodge g0/g1 so URB data doesn't land on top of thread data.
+ Flip source/dest coordinates (dunno why they're fetched this way).
+
+commit ddf3e5b2737399dca6d401f91db51a51f93b6373
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Sun May 28 21:03:39 2006 -0700
+
+ Using tiny rectangle, still locks up in pixel shader program somehow
+
+commit 2e16c79dc2f24b0a04111aa6236a44870c6c64df
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Sun May 28 20:31:23 2006 -0700
+
+ Lots more debug code. Appears to execute pixel shader thread now though. hurray!
+
+commit 79a514412bda7e38e018c105a603970c4a9d758a
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Sun May 28 16:09:59 2006 -0700
+
+ dump out piles of debug. Create VS thread just to see how it works
+
+commit 9c111d89fe19f1773af2eefb000e1c2389b4b6e1
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Sat May 27 19:52:13 2006 -0700
+
+ Push all of the obvious Mesa state setting into the video code
+
+commit 01101196b16010ac3dadab647bfe7000a53fa94d
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Sat May 27 01:05:09 2006 -0700
+
+ flesh out cc state. set cull mode to none. enable sf kernel
+
+commit 462a860af89ed855fe2b718342fcaf9c169af3fb
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Sat May 27 00:17:25 2006 -0700
+
+ Rename BRW instructions, check video instruction generation. Doesnt lock up, but doesnt display anything either
+
+commit 9ec7cf22e3f03c13524bb2d15711699dfcc02984
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Fri May 26 21:30:55 2006 -0700
+
+ Use broadwater video code on broadwater hardware. Pad ring to even length. compute state base as address rather than offset
+
+commit f5fe700b9a943c956bcfcc3a0d2de13c23b978bc
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Fri May 26 13:47:39 2006 -0700
+
+ Prepare real SF kernel and fake WM kernel
+
+commit 1549accb6f52498fef3dcbd87bb72d89fcd5bccd
+Author: Keith his master's voice Packard <keithp@bw.jf.intel.com>
+Date: Thu May 25 16:10:31 2006 -0700
+
+ Scale video source vertices. Allocate space for kernels
+
+commit c1c46f882f9a11c383c8d1d1ce393be8fda55ed0
+Merge: 1e2da24 f2967a2
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 22 10:42:24 2006 -0700
+
+ Merge branch 'master' into modesetting
+
+ Conflicts:
+
+ man/.gitignore
+
+commit 1e2da2450d7213c0aa4d4bd1fba5723dcda13ddf
+Author: Lukáš Hejtmanek <xhejtman@mail.muni.cz>
+Date: Mon May 22 09:48:09 2006 -0700
+
+ Replace VBE call to do DPMS with native code, and fix screensaver in clone mode.
+
+commit 2a1b3cfccb7de53f7ce8f9e4816e4278afb1fcab
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 22 10:32:13 2006 -0700
+
+ Use RECTLIST instead of TRIFAN for video so we get horizontal shearing instead
+ of diagonal. Also remove the unnecessary vertex elements that were being
+ emitted.
+
+commit bc42dbe07cbd61b357d8eed02608e026c4cf4485
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Mon May 22 11:22:03 2006 +0800
+
+ fix a typo
+
+commit bce209cd3f60cb5d51aadc5fc8ec1a4151435ec3
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 19 17:13:37 2006 -0700
+
+ Put in code for idling accelerator on subsequent cliprects.
+
+commit 3640117bd9f2073ff54dc474f0cdefff49742584
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 19 17:10:04 2006 -0700
+
+ Set up the state buffer in framebuffer.
+
+commit e70d99d51edc39ea53536c2f4d62ac622ba3e0d9
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Fri May 19 15:47:19 2006 +0800
+
+ revert wrong setting for memorySize, which should
+ be at the range of pI830->Offscreen.
+
+commit de06cd70a9edb8b56d05d3f505137f7c7f083c2f
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu May 18 18:27:11 2006 -0700
+
+ Checkpoint for filling out more 3D state.
+
+commit ad7ec6a24b436d5492d38e4fa56845b229cf5fb8
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu May 18 15:26:28 2006 -0700
+
+ Checkpoint of BW textured video work, filling out vertex submission stuff and
+ some more other state.
+
+commit 291770efc691a02650e3c580ca40c2f9fce3896c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu May 18 10:43:07 2006 -0700
+
+ Start laying out some of the bits that need to be done for BW textured video.
+ Headers taken from TG code drop.
+
+commit b3d79ad9ecc70e9f841092fc75b7e23576b685dd
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu May 18 16:31:40 2006 +0800
+
+ oop I830FALLBACK define error
+
+commit 1bc2a8f7a20b2ea9251e93157c0f2342fdbb951c
+Author: Dave Airlie <airlied@linux.ie>
+Date: Thu May 18 16:58:22 2006 +1000
+
+ fixup I830SDVOGetActiveInputs to use return values not args
+
+commit 33ad959323f70f76c494c66ec35a04d7d839f612
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu May 18 11:32:59 2006 +0800
+
+ Add DEBUG_I830FALLBACK for easier tracking
+
+commit 52af679c94a25c0c6e5df5f3647f62fdd256c826
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu May 18 11:31:14 2006 +0800
+
+ Check alignment require in PrepareSolid, noticed by Eric,
+ as pixmap offset align set is violated in Solid.
+
+commit fdb52a8c6da0f3d3f4cfbf1583b2dc4d91f7e933
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Thu May 18 11:24:46 2006 +0800
+
+ Solid planemask in PrepareSolid/Copy might be 0xffffffff
+ or bits up to the depth. This should save some fallback
+ case, noticed by Eric.
+
+commit bc51d6525a12c748d0a293b7e560f6dcea33eecb
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed May 17 13:42:51 2006 -0700
+
+ Turn off overlay video on BW until we have stable PCI IDs so we can know whether
+ the hardware supports overlay.
+
+commit f97895efd5532cca145b6f224f9615739b1e8f26
+Author: Dave Airlie <airlied@linux.ie>
+Date: Wed May 17 14:46:37 2006 +1000
+
+ fixup chipid override
+
+ This makes the ChipID override work so that we actually override the pci id
+ that gets used everywhere in the driver.
+
+commit 011a1c99d49c1c69b5fa81ade6a2ed73e84276ae
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Wed May 17 11:16:00 2006 +0800
+
+ Fix memorySize to enable offscreen mem manage.
+
+commit b0ac5303f33f75dc607cf0c705c23db1da836983
+Merge: 4c72725 c2cd10e
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 16 15:21:17 2006 -0700
+
+ Merge branch 'textured-video' into broadwater-video
+
+ Conflicts:
+
+ src/i830_video.c
+
+commit c2cd10e1fba0e75c0ed3db5d17211bddf7ab1e33
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 16 10:08:58 2006 -0700
+
+ Flag the 3D state as dirty when we draw textured video, which should help
+
+ rotation (I have other issues with rotation anyway).
+
+commit 63a72e46fa20a4a4ba74efed386f6c3c167be5b5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 16 08:54:43 2006 -0700
+
+ Turn debugging back off.
+
+commit 01c043de0393170e98515169f8239fef4d3e2053
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 16 08:53:40 2006 -0700
+
+ Use linear min/mag blending.
+
+commit db3683907d15959e79adfb8f0cd94e861fae5c36
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 16 08:40:53 2006 -0700
+
+ For textured video, disable double buffering and sync before uploading new video
+
+ data. Allows more videos to play simultaneously.
+
+commit 29a8e88ed01c9e15a2ceba5eb62b19773e14c1f8
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 15 17:19:33 2006 -0700
+
+ Relax the alignment requirements for textured video.
+
+commit c9be11459bc2198b435c97c5a3432425246c4d2d
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 15 17:04:27 2006 -0700
+
+ Enable overlay and/or textured video at runtime according to hardware
+
+ capabilities. Sets up 16 textured-video ports. Left in one hack (disconnected
+ but advertised BRIGHTNESS and CONTRAST atoms) which may actually not be
+ necessary.
+
+commit f268979a0c779641c84e8d5b763acbda131474cf
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 15 10:05:19 2006 -0700
+
+ Correct drawing issues with planar formats when top or left != 0, and Y didn't
+
+ get its offset.
+
+commit b09fd42d7088ead6c23e040ac4b71114f62de82b
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 15 09:29:43 2006 -0700
+
+ Fix the planar formats to display correctly in textured mode. Still has issues
+
+ with clipping, and some sampling differences between ximagesink and xvimagesink.
+
+commit dd48790f4600a880fc4907c6e3b1cd51e9c0f0b7
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 13:27:33 2006 -0700
+
+ Divide width by 2 in planar-to-packed conversion loop, since each pass through
+
+ the loop writes two source pixels.
+
+commit eec5e996ec9361099bf81d8d3b66933d5981c5a8
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu May 11 20:26:26 2006 -0700
+
+ Merge textured-video-wip to textured-video-planar-full.
+
+commit 4154a2f74811b91c0ef5bef32a919d6f8baf1a70
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed May 10 12:09:00 2006 -0700
+
+ Experimental work to use a full pixel shader for planar to YUV conversion, which
+
+ also doesn't quite work.
+
+commit 3e0a9c9082942eb6f52612235d84b8408e1e03e9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 9 16:57:19 2006 -0700
+
+ Do a separate BEGIN/ADVANCE_LP_RING set in the planar vs packed blocks, so I
+
+ can adjust the planar code more easily.
+
+commit 3af4a967e73b367bb531f2760b4803db1388bcf9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 9 16:50:48 2006 -0700
+
+ Add a couple of macros to simplify writing of video pixel shaders.
+
+commit 06e62ec521ed3f7ed232ace8e188891bedb53097
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue May 9 12:04:58 2006 -0700
+
+ Commit a WIP implementation of the planar video shader that does the
+
+ planar-to-packed conversion for us. Unfortunately the documentation is unclear,
+ and I haven't managed to get any implementation of it working correctly.
+
+commit b1090a42b200710628dd8b0c7ced15db7bbe71a1
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 8 14:22:00 2006 -0700
+
+ More magic number reduction in rotation code.
+
+commit 3a2d8af214a79591322ce6e5546f856a1ee41736
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 8 09:42:40 2006 -0700
+
+ Add initial textured XV support for i915, which can do YUY2 and UYVY, but fails
+
+ on I420 and YV12 currently, doesn't support the composite extension, and should
+ break XV support on non-i915.
+
+commit 66875c1559bc20b531ab72e5d6b921d9f50b29f3
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 5 10:15:23 2006 -0700
+
+ Convert magic numbers in i915 rotation 3D state to symbolic names.
+
+commit 4c727254da354cfd6f35148a334d046d67a50e99
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 16:26:58 2006 -0700
+
+ Remove the local, renamed copy of lnx_agp.c. The diff between lnx_agp.c and it
+ appeared to be removal of bugfixes.
+
+commit a115c4b872a385530dcf94b7e7f2fa9b3b7e3155
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 16:11:29 2006 -0700
+
+ Remove the code that changes our behavior based on whether a magic file exists
+ with magic contents in /tmp (created by some install script).
+
+commit 0cb251fadca1cbb3d4c5b97982cd0d8c2fc3e840
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 16:10:02 2006 -0700
+
+ Do a couple of reverts to get the DRI code building. At this point, the whole
+ driver builds.
+
+commit 78b95386b630039864b31954ebcd02ec8829b0c8
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 16:09:40 2006 -0700
+
+ Remove intel_randr.c and stick with the previous code. Broadwater shouldn't be
+ changing our randr, and the new version didn't compile.
+
+commit 2e58aa401dfbab438752038a9034df571c8f8bde
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 15:54:37 2006 -0700
+
+ Make the intel_acpi.c code non-modular and make it compile. I think we'll end
+ up nuking this code anyway, as keithp (and I, as well) disagree about how ACPI
+ should be handled, but the goal is to compile at the moment.
+
+commit 2cd6c8fa2321ca217ef89db1027dbe9e716ad7aa
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 15:37:44 2006 -0700
+
+ Revert internal shadow module changes back like master, along with RandR
+ initialization. RandR initialization retains the no-rotation setting for BW.
+
+commit 88558ebeed12d6cefd73bba0ddac3c043861ac89
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 15:00:17 2006 -0700
+
+ Start fixing up the build and remove a regression from master (I think) in
+ rotation.
+
+commit 9e387ef92be9b38c68bda8a6a28b0d9eb98d53a4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 13:41:38 2006 -0700
+
+ Re-add authorship note in i830_driver.c accidentally left out of last commit.
+
+commit af2432322ba1d561057c34ab185561a8e799e8cd
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri May 12 13:32:38 2006 -0700
+
+ First pass of integrating the Tungsten Graphics driver for Broadwater. This
+ patch is based off of diffing from the branchpoint to the supplied code, but
+ with many chunks containing reversions of commits removed. Won't work yet.
+
+commit fbba4312e7cb326fdcf6a71194c4fc4a7a9b5488
+Author: Dave Airlie <airlied@linux.ie>
+Date: Fri May 12 18:44:27 2006 +1000
+
+ add sdvo capability reading support
+
+ This reads the SDVO cap bits and uses them to figure out the input/output
+ to save/restore
+
+commit f2967a2f5f47b636b2445fa69dbc3ec79e065c90
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue May 9 13:51:25 2006 -0700
+
+ Video overlay gamma bounds checking must be done bytewise.
+ Also, pend bound computations to register writes to allow
+ updates to individual values that are 'out of spec' so
+ the client can update multiple values.
+ (cherry picked from 190f9ad0606e96e684e0b028d576d822dc9aa3cf commit)
+
+commit 190f9ad0606e96e684e0b028d576d822dc9aa3cf
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Tue May 9 13:51:25 2006 -0700
+
+ Video overlay gamma bounds checking must be done bytewise.
+ Also, pend bound computations to register writes to allow
+ updates to individual values that are 'out of spec' so
+ the client can update multiple values.
+
+commit fb10966e9f43f44488097b0daf2fbe10c6a804dc
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu May 4 18:52:08 2006 -0700
+
+ Use xf86int10Addr() when calculating an address to read the video BIOS from, out
+
+ of int10's copy. Fixes a crash on FreeBSD.
+
+commit a66f2c01f7d557d860883346671fb864807dbdca
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon May 1 12:35:21 2006 -0700
+
+ Stop doing the BIOS memory size tweaking now that we don't ask the BIOS about
+ what modes are available.
+
+commit 99b0e53244aa49f4e7461a1c96aba69453b3516f
+Author: Matthieu Herrb <matthieu@reactor.herrb.com>
+Date: Mon May 1 10:47:09 2006 +0200
+
+ Fix non-dri build.
+
+commit 86f0119f47d8be975016ffdea850f0227e32eebc
+Author: Matthieu Herrb <matthieu@reactor.herrb.com>
+Date: Mon May 1 10:41:10 2006 +0200
+
+ Fix non-dri build.
+
+commit fcec956807038a2e90287850df8b4410b1f8b3c2
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Sat Apr 29 10:55:25 2006 +0800
+
+ Save initialize EXADriverPtr, and free it in failure.
+
+commit 0be9bc604420e4433697cc31e8ac58c9f36185e1
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Sat Apr 29 10:54:02 2006 +0800
+
+ I830CheckDevicesTimer() sync should be in I830_USE_XAA case.
+
+commit a00a3d198aee7c173c2c36858f4447e13c86eb7f
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Sat Apr 29 10:52:45 2006 +0800
+
+ fix I830BIOSAdjustFrame() sync in I830_USE_EXA case, use exaWaitSync() helper.
+
+commit c94cc67bcc507e8256ae4b51b84dfe3f4aa12ab5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Apr 28 15:33:57 2006 -0700
+
+ Update to EXA 2.0 API.
+
+commit a4a4ced50cc235e79013ce8dd78e35c6eb4c98ca
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Apr 28 14:59:52 2006 -0700
+
+ Get it to compile.
+
+commit 941a49f91eac02e256706d8821a2cb069ff7ffef
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Apr 28 14:57:03 2006 -0700
+
+ Commit what applied from Jesse Barnes's i830-exa-latest.patch.
+
+commit a555e28e5afc81969ef7b28482e654cc26b3a446
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 16:55:44 2006 -0700
+
+ Correct some SDVO-related register definitions.
+
+commit cc70e6b789a1901bbe4e3501b6b654542d3cdc20
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 16:49:48 2006 -0700
+
+ Save/restore the output's SDVO reg. Note that we might be programming the other
+ SDVO reg instead of the one assigned to the output. When trying to fix that, I
+ ended up getting no output at all.
+
+commit b498d2b1d1170123595ada65353428578b59a361
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 15:42:46 2006 -0700
+
+ Start trying to save/restore SDVO state on VT switches.
+
+commit 56c1f8b0de9b6acc50f51561caf14d3e6bac09ec
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 14:10:20 2006 -0700
+
+ Clean up some argument passing, and remove extra SetTarget{In,Out}Puts that had
+ no effect. Note that we are currently trying to program both outputs of any
+ SDVO device the same way.
+
+commit 9ba5319b36e7286e33cf0dcdd804dfc0458a81f5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 13:55:05 2006 -0700
+
+ Only write out as many arguments as the commands need, and fix up the numbers in
+ some cases. Pretty-print the return status.
+
+commit d32514aee4b00b035652830e8b5e6c0b43cf159c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 12:21:45 2006 -0700
+
+ Start trying to implement DDC over SDVO. It's slightly tricky because the
+ control bus will reset from DDC mode to internal-registers mode after every
+ Stop afer a Start on the DDC bus. The xf86 DDC code causes multiple Start/Stops
+ in one probe. So, we create a wrapper bus that does the control bus switch at
+ every Start. It's not working yet on my hardware, but I'm pretty sure this is
+ the right way to go.
+
+commit effab21c3d108fac7a4e28ae4dabb0b5f74a5380
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 11:42:24 2006 -0700
+
+ Set displayWidth to a sufficient value for the modes we come up with for LVDS.
+
+ Reported by: Lukáš Hejtmánek
+
+commit bcb441225d1365435bc3373901180de944298e86
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 10:54:45 2006 -0700
+
+ Simplify the i2c code by using the GetBits/PutBits interface rather than
+ reimplementing it.
+
+commit 47bd9059431eadfd8824e496eb91bb50efa0e282
+Merge: 729c373 32a0ad5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 24 10:36:24 2006 -0700
+
+ Merge branch 'lukas-resume'
+
+commit 1dbb19059f5dd5cd2ad386c4f73498095987b943
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Apr 20 10:43:19 2006 +0100
+
+ fix bug 6365
+
+commit 729c373121ce2bbb0d813cc923f1254e8b37a025
+Author: Dave Airlie <airlied@linux.ie>
+Date: Thu Apr 20 13:34:55 2006 +1000
+
+ move sdvo output setting
+
+ we have to set the sdvo register a lot earlier in order for them to sync
+ properly otherwise my monitor doesn't sync unfortunately, also
+ disable the sdvo while tweaking the PLLs.
+
+ This also comments out a setting that seems to break my system here for
+ Eric to look at later.
+
+commit 0ba7b13fb4410c6a48b2fb098d2033e040eca6d2
+Author: Dave Airlie <airlied@linux.ie>
+Date: Thu Apr 20 12:29:06 2006 +1000
+
+ fix type 0 instead of O
+
+commit 2991d81a3b643161babab6b8f44c057aaaf351c3
+Author: Dave Airlie <airlied@linux.ie>
+Date: Thu Apr 20 12:27:47 2006 +1000
+
+ correct height parameter in sdvo packet
+
+commit b5f099e03a9f58b6b99933fb06526bce4db72bd3
+Author: Dave Airlie <airlied@linux.ie>
+Date: Thu Apr 20 09:50:36 2006 +1000
+
+ cleanup sDVO for device on C only
+
+ This destroys the i2c device properly if the device isn't detected,
+ and allows sDVO to work on GM chipsets, and doesn't initialise
+ the i2c bus twice for sDVO.
+
+commit 2909802de63756972b38651a496b4ff1b36ac8a2
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Apr 19 16:29:06 2006 -0700
+
+ Clean up SDVO initialization, include config.h, and make it check the right
+ slave address on the first device as well. This gets me to the point of
+ bringing up some modes on my device.
+
+commit 32a0ad570d9c010e7d26d980830f719782d9f2f3
+Author: Lukáš Hejtmanek <xhejtman@mail.muni.cz>
+Date: Wed Apr 19 19:43:45 2006 -0300
+
+ Add more registers to save/restore. Save/restore palette as well
+
+commit 132dc0599cf44389c4cc03919f1da8d3a0762b44
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Apr 19 15:04:17 2006 -0700
+
+ Whine if SDVO I2C device init fails, rather than be silent.
+
+commit 88bb4b578857588f34ac84b7a20577139eccab6d
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Apr 19 14:23:45 2006 -0700
+
+ Add more SDVO code. It's taken from airlied's driver, but with magic numbers
+ replaced by symbolic names in many places. I tried to restrain myself from
+ functional changes in airlied's code in this pass.
+
+commit d8f7dfac769d7b03f069306b1296bb2e1e08b009
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Apr 19 10:45:13 2006 -0700
+
+ Start bringing in some SDVO code, mostly from airlied.
+
+commit a371a04a57620b7128e3c4395bc7c2ac55effe19
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 17 14:10:50 2006 -0700
+
+ Use the IS_I9XX macro intead of >= i915G, since by PCI ID number, 855GM > 915.
+
+commit 33413a3cf34b06e3207fe1cdb733d586d55a4337
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 17 13:42:57 2006 -0700
+
+ Remove some dead code and one particularly useless debug printf.
+
+commit a85be820033af8bf30d1fec4a899349af35a6ef6
+Author: Ian Romanick <idr@localhost.localdomain>
+Date: Mon Apr 17 12:52:30 2006 -0700
+
+ Add missing new-line character in log message.
+
+commit 365b4a53ee965002a5452e6f6016b528e51cee69
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 17 01:12:28 2006 -0500
+
+ Disable the BIOS dump-to-file since it's a trivial local DOS, and I can just ask
+ people to turn it on and recompile when I need to.
+
+commit ee7be006b63b6b1ce7f786b045fb8f26d337433c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Sun Apr 16 13:13:42 2006 -0500
+
+ Bug #6589: Use alternate offsets to successfully get at the panel data for
+ some broken video BIOSes.
+
+commit 786ee3df1726f08953167d05f7fa1930452703bb
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Sun Apr 16 13:05:35 2006 -0500
+
+ Add a standalone program for parsing VBT.
+
+commit 62652127cd12f5a0fc9364285b81d2661372148a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Sat Apr 15 12:16:46 2006 -0700
+
+ Check for LVDS BIOS tables exactly once at startup. While there, dump the BIOS
+ data to /tmp/xf86-video-intel-VBIOS, for offline debugging.
+
+commit 830fa81792a613fe2127a2b89a3eaa326f56114c
+Author: Alan Hourihane <alanh@jetpack.demon.co.uk>
+Date: Wed Apr 12 21:55:31 2006 +0100
+
+ fix typo
+
+commit 3c9bc19db63a317db9e2d67a5bc15b1de1a1060a
+Author: Alan Hourihane <alanh@jetpack.demon.co.uk>
+Date: Wed Apr 12 21:54:50 2006 +0100
+
+ fix typo
+
+commit d6edffee7d987ef551e1a94d9fac21beb72a9598
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Apr 12 12:16:51 2006 -0700
+
+ Initial support for pre-i915 PLL programming. Untested.
+
+commit 59f88955f57cf0f98458b57418dae25cf53ca180
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Apr 12 11:11:14 2006 -0700
+
+ Automatically enable clone mode if we detect two active outputs.
+
+commit a797a6626a8117cd16456a206ed96300e4a0ceeb
+Author: Wang Zhenyu <zhenyu.z.wang@intel.com>
+Date: Tue Apr 11 16:44:42 2006 -0700
+
+ Fix a broken test that resulted in page flipping always being enabled, not just
+ when the user enabled it.
+
+commit 66d216da3bfe7c143d681b610130e6daf6dfa52f
+Author: Eric Anholt <anholt@leguin.anholt.net>
+Date: Tue Apr 11 16:37:10 2006 -0700
+
+ Replace .cvsignore with .gitignore.
+
+commit 185b5251419724fa9377421d67981daa674908c8
+Author: Eric Anholt <anholt@leguin.anholt.net>
+Date: Mon Apr 10 20:25:13 2006 -0700
+
+ Add missing MIT copyright licenses, which should have been on all versions.
+
+commit c0a2dc608d95f92b0f5a151c623745f09df3afc5
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Apr 10 20:09:37 2006 -0700
+
+ Save/restore PFIT_CONTROL. Eliminate compiler warnings
+
+commit 498abf474b90b04bc4085397a209cc493d98d15c
+Merge: c26f073 3de82ff
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Apr 10 19:41:50 2006 -0700
+
+ Merge branch 'modesetting-origin' into modesetting
+
+commit c26f0737e2c0f000f67f21ef6007b351160036a4
+Merge: 11ad8a5 692a4a4
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Mon Apr 10 19:41:41 2006 -0700
+
+ Merge in master to modesetting
+
+commit 3de82ff3938c6559c90079be0c28dc507d62f79e
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 10 15:10:15 2006 -0700
+
+ Improve LVDS modes when outputting a CRT+LVDS combo at larger than the LVDS's
+ panel size. This is a hack until we get better clone mode, but it correctly
+ displays a subset of the root on the LVDS by using a correct pixel clock and
+ pipe/display size.
+
+commit 692a4a4bafd4cab197b761cda22368581b78f996
+Author: Adam Jackson <ajax@freedesktop.org>
+Date: Mon Apr 10 11:27:25 2006 -0700
+
+ Bump to 1.6.0.
+
+commit 43c93057c044f33c20b1dd639eaeabefc0901589
+Author: Aaron Plattner <aplattner@nvidia.com>
+Date: Mon Apr 10 11:26:33 2006 -0700
+
+ Add a DrawablePtr argument to the XV functions to pave the way for redirected
+ video.
+
+commit 39bdfbb4c23c9ba2a44888f22330a892c4becedc
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Apr 10 11:26:06 2006 -0700
+
+ x86_64 warning fixes
+
+commit 11ad8a590d65849be00e1be4e9dd52c1159a4f24
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 10 09:39:24 2006 -0700
+
+ Remove the int10 POST on EnterVT. It has been reported to cause crashes now,
+ and I believe it is the responsibility of the kernel to bring the device back to
+ a mostly-sane state on resume anyway.
+
+commit 4217ce18cec257cad435adf9ddc9258a3c8164ec
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 10 09:37:02 2006 -0700
+
+ Warnings cleanup.
+
+commit 334512e0604c208ffec914374a76d85720c1dcf9
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 10 09:32:45 2006 -0700
+
+ Don't try to use LVDS by default on chipsets that won't have an LVDS attached.
+ The BIOS tables may still exist, so we can't rely on their presence to indicate
+ LVDS attachment.
+
+commit 69083a2fc3ca4a3d06c1985c8a630d5628c1110c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 3 16:29:14 2006 -0700
+
+ Remove BIOS save/restore code, fixing VT switching. Removes some other dead
+ code, too.
+
+commit 2e5d85fb83def483ab1fd96877aae4a89a962b7f
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 3 16:27:24 2006 -0700
+
+ Turn off the VGA plane when we're setting our native modes.
+
+commit ceb08d28f4a4e9f42c9417938b8541bf1b4e8245
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 3 15:32:41 2006 -0700
+
+ Remove the hacky-looking Set640x480. I'll be removing things it depends on
+ (setpipe), and I suspect we'll end up with different hacks for resume, anyway.
+
+commit 1f0ba458d02f7d4777c1669aae02138f3a6628c1
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 3 15:28:47 2006 -0700
+
+ Remove more BIOS stuff, particularly Get/SetDisplayDevices. Now, if there's no
+ hardcoding in the config file, we default to LFP if we detect it from BIOS, and
+ LFP or CRT if we can get EDID out of them.
+
+commit b20b466aaed54708ae9e4676623c8c394a6f00d5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 3 14:28:55 2006 -0700
+
+ Remove the now-unused displaySize and pipeDisplaySize.
+
+commit d960c3ca1512a58a53b5c24702cb5c97124817ee
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Apr 3 14:12:29 2006 -0700
+
+ Remove more BIOS modesetting stuff.
+
+commit 4e3a4827007d624aa3da1a9f5a299837bd601a33
+Author: Keith Packard <keithp@neko.keithp.com>
+Date: Fri Mar 31 14:05:46 2006 -0800
+
+ autodetect LVDS dither. Fix 16bpp depth selection
+
+commit 8d27f8246ed5a73f7a78043e128b47be784186c0
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Mar 28 13:49:41 2006 -0800
+
+ Clean up (and I believe fix a couple of bugs in) the divisor selection code.
+
+commit e45581cd073b23a62719f20783d617bd35316fec
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Mar 28 13:40:32 2006 -0800
+
+ Fill in clock information from VBT table, so that a good clock value gets
+ requested for choosing divisors.
+
+commit 33977d23830b5f9bb7d9e2e9c141f91cb127b7de
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Mar 27 18:50:53 2006 -0800
+
+ Port code from radeon driver for panel mode validation, which will hopefully get
+ the right mode chosen on the VAIO. Untested.
+
+commit febdfa967dbe1df487db71ba5f677ef37450bf7a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Mar 27 15:19:52 2006 -0800
+
+ Remove some VBE DDC code that I believe is OBE.
+
+commit f86892c9163473a683ab591adeb9fb1c0be2ef99
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Mar 24 16:00:30 2006 -0800
+
+ Make auto panel fitting work by pulling LVDS timing EDID info out of the static
+ BIOS table, and always using that.
+
+commit f6a3243f40074aee471ec1cda2cc8e5f05116284
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Mar 24 13:49:10 2006 -0800
+
+ Add more VBT reading, so we find the panel size.
+
+commit 64756e215016730b5cc2e174f08d47c0288c0ba4
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Mar 24 11:55:01 2006 -0800
+
+ Start interpreting VBT information with the goal of pulling out LVDS timings
+ for panel fitting.
+
+commit c2d554be671f5368bd98867b8ecf9428e4560a81
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 23 14:33:04 2006 -0800
+
+ Save/restore a couple of important VGA plane registers, and have vgahw
+ save/restore everything it knows about. Also moves the save to just after the
+ other reg saves, above the VBE save stuff which may have side effects.
+
+commit 8411c126ae66239f8b3a2261e338a723c36aa44f
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 23 11:31:24 2006 -0800
+
+ Update to newer airlied DDC code, and do some cleanups as well. Now tries DDC
+ on LVDS, though my current LVDS gives no results.
+
+commit 6414ad89b9d368a032adf2358a65404f5443ef35
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 23 09:48:18 2006 -0800
+
+ Add enough of airlied's DDC/I2C work to pull EDID info from my CRT.
+
+commit 5215e19af58f5c2746c8d281e33ecee86e55f0a5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Mar 13 10:29:51 2006 -0800
+
+ Add some register information for VGACNTRL, and do the reg-debug thing on it.
+
+commit b77bdc2c15640a3b15233f2190179d66bc8b2a4b
+Author: Eric Anholt <anholt@debian-sony.jf.intel.com>
+Date: Wed Mar 8 15:08:06 2006 -0800
+
+ Move the PFIT enabling before the enabling of the pipe, as the specs say we
+ should. This doesn't work yet, as we apparently need to adjust the pipe to
+ output at the full resolution of the panel, not the displayed image size,
+ because PFIT controls scaling between the display planes and the pipe.
+
+commit de4a9e4a7891daa1488d17bf4c22283759f97373
+Author: Eric Anholt <anholt@debian-sony.jf.intel.com>
+Date: Wed Mar 8 12:54:14 2006 -0800
+
+ Add a couple more bits to panel auto-fitting, though it isn't working yet.
+
+commit 02341aa68cf2171e037196019f2553f0d1b1bd0d
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Mar 6 13:23:29 2006 -0800
+
+ Make the reg-snapshot code work, add a couple more registers, and use it on VT
+ switching to hopefully help point out where we aren't restoring enough.
+ Currently doesn't reveal anything.
+
+commit 2b6fc7ddb020a5511f6f599a2f5c37db27eddbcc
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Mar 3 15:42:15 2006 -0800
+
+ Add missed save/restore of DSP*SIZE registers.
+
+commit 12ce799818722473dde2f82739d50ba4ec7f6ecd
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Mar 3 15:38:31 2006 -0800
+
+ Add some untested debugging code to for helping figure out VT switch issues.
+
+commit 585cc5f256b8e91460414a26409d0e484a86718c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Fri Mar 3 10:37:26 2006 -0800
+
+ Add more integrated LVDS support code.
+
+commit 33c62e8e654fa2228bc3fd31ec0fe010703f363a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 17:53:38 2006 -0800
+
+ Change the order of reg writes for restore, possibly increasing chances of
+ success. Also save and restore ADPA.
+
+commit 7f4dc09dcafc7f0423b7f3e970a0b19fbbf515dd
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 15:55:18 2006 -0800
+
+ Remove some dead VBE code.
+
+commit f3ec8653ab4c9b26d249bcf4393326de37ac8321
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 14:31:39 2006 -0800
+
+ Include config.h, fixing many issues with reading from pI830.
+
+commit 84fc3971d76f78546a0bb7dd57dba52dd893a921
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 13:35:40 2006 -0800
+
+ Turn off panel power before poking pipe B, and turn it back on if we're doing
+ LVDS. Also, refuse to do LVDS on pipe A, as the docs say you can't.
+
+commit aca0f942f377d997c5c0b5be790ee7f255d6e046
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 13:31:51 2006 -0800
+
+ Fix prototype for i830DetectCRT.
+
+commit df6347139bc9de22af981f776d711ac9d44fad1c
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 12:52:19 2006 -0800
+
+ Use DISPPLANE_32BPP_NO_ALPHA for depth 24, else the empty alpha channel results
+ in a black display plane.
+
+commit 8e819ced8397f0330fd44efa60fef89bd10ff70e
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 11:55:00 2006 -0800
+
+ It appears from the specs that you have to wait for vblank after disabling the
+ plane, not the pipe.
+
+commit ee2410b965321e3d9d64fc500fdcfa6d6dc3a039
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 11:43:41 2006 -0800
+
+ Move display base setting to a separate function and use it from both mode setup
+ and AdjustFrame. Rename AdjustFrame to reflect the fact that it doesn't touch
+ the BIOS.
+
+commit 980fb78e759b752a6cae3c87d188c50ab131ba80
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 10:49:31 2006 -0800
+
+ Correct capitalization of i830SetMode.
+
+commit 2b842c7ee3f9c33cabf16561f11bf1c3a2502d4a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 10:08:20 2006 -0800
+
+ Start implementing support for setting modes for multiple output devices,
+ particularly LVDS. Untested.
+
+commit a09d9cf27af7016bbd9e562c7b1c338154fd3d40
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Mar 2 09:05:13 2006 -0800
+
+ Replace I830VESASetMode with simpler i830SetMode, which is all native and
+ doesn't have BIOS-setup workarounds. Multihead behavior may be wrong, and it is
+ all untested.
+
+commit 7edb25789bd13f26134e8f5bf493897c8df322e0
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Mar 1 14:02:51 2006 -0800
+
+ Start making i830SetMode aware of multiple pipes.
+
+commit b5915ac77a3887cd3aa4ce0bb77b8a36e1aa5a1b
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Mar 1 13:12:25 2006 -0800
+
+ Clean up a couple of warnings.
+
+commit c20e15fbe4daeb7288f5c56cf5467eed13686080
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Mar 1 13:08:38 2006 -0800
+
+ Disable I830VESASetVBEMode on restore, since I've removed that code. Note that
+ this means that VT switching is broken. We're fine with that for now, but at
+ least now we get a bad display rather than X crashing about an undefined symbol.
+
+commit 7d37c5036956609d0c7ae874d0dc1c616f76f849
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Mar 1 13:06:04 2006 -0800
+
+ Re-disable chatty debug code.
+
+commit 2538cbeb5014e40280a3ae782a755512b1dc85fa
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Mar 1 13:01:52 2006 -0800
+
+ Enable -Wall on GCC, and do a cleanup of existing warnings.
+
+commit 7746da3b346968ab8d2534fc158d026da67cc7b5
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Wed Mar 1 12:49:06 2006 -0800
+
+ Move LVDS panel power state setting to a separate function, and reduce magic
+ numbers.
+
+commit 142bc4f91a5d776e7ab44cc5fb2328e3f7267557
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Feb 28 18:50:57 2006 -0800
+
+ Write the ADPA (CRTC) register on mode setup. Obtained from airlied.
+
+commit 6877f532c5f41a445d41eb6a9982bf6bcf691bf2
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Feb 28 15:56:06 2006 -0800
+
+ Add untested CRT detection code.
+
+commit a085813714818a23aa8d326804f642cd699e0f17
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Tue Feb 28 15:16:59 2006 -0800
+
+ Add adjustments of PLL divisor limits for "Almador".
+
+commit 2d4415ff1729554537b20be2b6c878444485e406
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Feb 27 16:57:43 2006 -0800
+
+ Remove the hacked local xf86SetModeCRTC now that xf86SetCrtcForModes is taking
+ effect on all of our modes.
+
+commit 611264ab9b82bca6648a9b27e5ba4b7457c46aa6
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Feb 27 15:44:11 2006 -0800
+
+ Remove more VBE stuff and start using xf86ValidateModes. Guessed some params to
+ xf86ValidateModes.
+
+commit 9838f639911e8c165ab615fdd9a00e02fa4b3f8a
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Feb 27 14:12:50 2006 -0800
+
+ Always ErrorF output debugging info when doing BIOS calls, including file/line.
+
+commit 767944e3782f9941e9fc72a6705cc3115a6e24ac
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Feb 27 13:08:46 2006 -0800
+
+ Replace a few magic numbers with symbolic names. Reviewed by md5.
+
+commit 4955cd267e7f8ed70e90b2a3de6f93de2ef859c8
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Feb 27 09:37:47 2006 -0800
+
+ Add untested save/restore code, and starting on not using VBEValidateModes
+
+commit 73496b765c9783a8a271b4774a44fa263dd47684
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Mon Feb 27 09:26:51 2006 -0800
+
+ Change an if statement to a more obvious but equivalent case statement.
+
+commit 9fe316da7390918dd88940087567314b6f253981
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Feb 23 13:49:31 2006 -0800
+
+ Add the manpage's possible names when generated.
+
+commit 1555229f29fa7479d6a7a51f451d04a5ef3460bd
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Feb 23 13:48:26 2006 -0800
+
+ Move .cvsignore to .gitignore
+
+commit 139d33ac807fb0fc35c37c3689a6e80238199442
+Author: Eric Anholt <anholt@FreeBSD.org>
+Date: Thu Feb 23 13:46:30 2006 -0800
+
+ Initial add of native CRT modesetting code.
+
+commit 35e4756645891bfc85f25f1ab60c287eba9ef749
+Author: Dave Airlie <airlied@linux.ie>
+Date: Wed Apr 5 07:12:00 2006 +0000
+
+ Fix some argument inversions in xf86DrvMsg function calls
+
+commit 6e5f9b026372eea295c390b18fc41f7018e0e797
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Tue Apr 4 18:22:32 2006 +0000
+
+ Add more missing #include's, in particular assert.h.
+
+commit fdfce49c54dabf0f6b0d20aa7e5eeb62b5b57eda
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Wed Mar 22 23:24:03 2006 +0000
+
+ Drop libc wrapper; don't include xf86_ansic.h and add includes now missing.
+
+commit 58817c9909ba659d0070afab0ff7f4e26f722403
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Mar 10 13:07:00 2006 +0000
+
+ Enable gamma for hw cursor when ARGB cursor in use (Lukas Hejtmanek)
+
+commit ab4c2f3bf4b26fdd597ea7b7a726ae77778617b2
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Mar 3 16:27:37 2006 +0000
+
+ Check the version of shadow being used and turn off rotation if it isn't the
+ right one.
+ Bump the Xvideo resolution support from 1920x1080 to 1920x1088.
+
+commit be6216cd8c6a47dd053240f7a5d1445b61f79038
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Feb 20 03:25:50 2006 +0000
+
+ Fix a rotation problem when DRI is disabled
+
+commit 073c4a6a18e98e2dde114756b5d787b13bb2b7a5
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Feb 20 03:22:26 2006 +0000
+
+ Fix a rotation problem when DRI is disabled
+
+commit 7cca2ae73e0114a9df2152ed5ed5b66fc44f65dd
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Sun Feb 19 00:04:49 2006 +0000
+
+ fix another build problem
+
+commit 2e01277da0be55687ca901efadcaf5c919826824
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Feb 17 16:16:10 2006 +0000
+
+ fix build failure
+
+commit 86fa25369353471dc9a1041df74e66e9029863a7
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Feb 15 18:31:22 2006 +0000
+
+ a little more of a workaround until we unplug the frontbuffer from libdri
+
+commit 32f97e02ac3611fd5e3870826dedf701f3b69a51
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Feb 10 21:59:37 2006 +0000
+
+ temporary workaround until DRI frontbuffer mapping code is removed from
+ libdri.a
+
+commit 50e5c2696389cb4d5907a822aa79d5e0e03cee8c
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Jan 26 09:55:15 2006 +0000
+
+ update Changelog
+
+commit 91d2ba5743041077754de3bd3565df930b036c7d
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Jan 26 09:05:50 2006 +0000
+
+ add changelog
+
+commit 076971b95ed3b89e1a333adbffceab1c2a5b7743
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jan 25 22:22:42 2006 +0000
+
+ When going dual head only take a portion of memory for the second head
+ instead of doubling the requirements.
+
+commit 77d1c579f3031789031dd203175d3c9555226f79
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jan 25 22:17:00 2006 +0000
+
+ Fix a glitch in a dual head fix from #3105
+
+commit d8d749080923e88376db1aa18ae2ad722d5113d9
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jan 24 15:20:34 2006 +0000
+
+ Bump version to 1.5.0.0
+ Add Intel 945GM support
+ Add RandR rotation support (full 3D acceleration, HWcursor & Xvideo rotated too)
+ Remove shadow framebuffer rotation code
+ Add a new LinearAlloc option to allow more offscreen memory to be allocated
+ for XVideo applications. This allows HDTV movies to be played via Xvideo.
+
+commit 919d36b6717e9a7d930c5120309778da7b0fe16c
+Author: Kevin E Martin <kem@redhat.com>
+Date: Wed Dec 21 02:30:00 2005 +0000
+
+ Update package version for X11R7 release.
+
+commit 92962f32fccac6df751268190928d8becb558b64
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Mon Dec 19 16:25:53 2005 +0000
+
+ Stub COPYING files
+
+commit d2ef609211306b6bd3861c0e5f6d3a9af3e145fb
+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
+Date: Mon Dec 19 09:07:50 2005 +0000
+
+ Typo fixes, mailing list & url updates, and other changes to prepare for
+ X11R6.9 & 7.0 releases.
+
+commit 1c51ff5c652690d66d1f7cba803c0bb26208b509
+Author: Kevin E Martin <kem@redhat.com>
+Date: Thu Dec 15 00:24:17 2005 +0000
+
+ Update package version number for final X11R7 release candidate.
+
+commit c5007a4b46ffb66f5d98abe8bcae6df8c6eb1b31
+Author: Kevin E Martin <kem@redhat.com>
+Date: Tue Dec 6 22:48:35 2005 +0000
+
+ Change *man_SOURCES ==> *man_PRE to fix autotools warnings.
+
+commit 15df4215347854604fd3f6795ac5f971444cf39d
+Author: Kevin E Martin <kem@redhat.com>
+Date: Sat Dec 3 05:49:33 2005 +0000
+
+ Update package version number for X11R7 RC3 release.
+
+commit c50cd5a7f5af7d45550f25f173b512eb89bf41c5
+Author: Kevin E Martin <kem@redhat.com>
+Date: Fri Dec 2 02:16:08 2005 +0000
+
+ Remove extraneous AC_MSG_RESULT.
+
+commit da2c00c0e85a284e3fbd237f3a77212f9647da37
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Wed Nov 30 18:47:54 2005 +0000
+
+ Bump libdrm dep to 2.0.
+
+commit ca36f1da4e254c779b38df30fd655533e548a294
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Tue Nov 29 23:29:59 2005 +0000
+
+ Only build dlloader modules by default.
+
+commit 0b337390d6919e9a3d31ca654c8bc44b30756862
+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
+Date: Mon Nov 28 22:04:09 2005 +0000
+
+ Change *mandir targets to use new *_MAN_DIR variables set by xorg-macros.m4
+ update to fix bug #5167 (Linux prefers *.1x man pages in man1 subdir)
+
+commit 159bea027893ce5996a452a6f493372792e95122
+Author: Eric Anholt <anholt@freebsd.org>
+Date: Mon Nov 21 10:49:14 2005 +0000
+
+ Add .cvsignores for drivers.
+
+commit e62939e30e664592085ce394680fd8e7f3d31339
+Author: Kevin E Martin <kem@redhat.com>
+Date: Sat Nov 19 07:15:38 2005 +0000
+
+ Update pkgconfig files to separate library build-time dependencies
+ from application build-time dependencies, and update package deps
+ to work with separate build roots.
+
+commit 08f03e4237ce9a54f0dffa37307af402b0bd2e55
+Author: Kevin E Martin <kem@redhat.com>
+Date: Wed Nov 9 21:31:20 2005 +0000
+
+ Bump version numbers for X11R6.9/X11R7 RC2.
+
+commit a600e89a1547908f2018de96b5ecb814e2427b34
+Author: Kevin E Martin <kem@redhat.com>
+Date: Wed Nov 9 21:15:15 2005 +0000
+
+ Update package version number for X11R7 RC2 release.
+
+commit f73c23b4c588c2f5dbc3c36a2f43b8bbb1e0f36a
+Author: Kevin E Martin <kem@redhat.com>
+Date: Tue Nov 1 15:08:53 2005 +0000
+
+ Update pkgcheck depedencies to work with separate build roots.
+
+commit 25a63bfefda420f85b3cba89bdae4b35ef80c84f
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Fri Oct 21 18:40:19 2005 +0000
+
+ Bug #4829: Remove some useless DRI symbol checks.
+
+commit 53c122fa162709f618be26d5940e3488c0cbbafa
+Author: Kevin E Martin <kem@redhat.com>
+Date: Wed Oct 19 02:48:03 2005 +0000
+
+ Update package version number for RC1 release.
+
+commit 4b97a544cac9fb507b4a2a7c8017607ea2cac1bb
+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
+Date: Tue Oct 18 00:01:53 2005 +0000
+
+ Use @DRIVER_MAN_SUFFIX@ instead of $(DRIVER_MAN_SUFFIX) in macro substitutions
+ to work better with BSD make
+
+commit c7b7ece6330561b3745f0e1136b57575eadec5ad
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Mon Oct 17 22:57:33 2005 +0000
+
+ More 1.7 braindamage: define EXTRA_DIST in terms of @DRIVER_NAME@ instead of indirectly
+
+commit 0586dbe1c5d0432e8d8da2f3576ac2ccbe139919
+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
+Date: Mon Oct 17 00:09:03 2005 +0000
+
+ Use sed & cpp to substitute variables in driver man pages
+
+commit 1317f2d1f35241969dcf376abd106ffe3f918432
+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
+Date: Tue Oct 4 20:01:03 2005 +0000
+
+ Check in generated README files
+
+commit bd48e0531a16bdf27fc8549826cc1123ba12d5bd
+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
+Date: Mon Oct 3 21:22:07 2005 +0000
+
+ - For all drivers that have a <driver>.sgml file, add code in their build
+ system to build the README file at make dist time
+
+ - in util/macros/xorg-macros.m4, add a new XORG_CHECK_LINUXDOC macro that
+ will check if the required tools and files exist, and if so set a
+ conditional.
+
+ - util/modular/symlink.sh
+ - Link all the <driver>.sgml to xf86-video-<driver>/README.sgml
+ - Add all the README.<driver> to the list of excluded files
+
+ - xc/programs/Xserver/hw/xfree86/doc/sgml/SiS.sgml: Various changes
+ to make it spew less warnings when the text file is built.
+
+commit 6fda4e886c30669e346f7f30a38b93a77004a7f6
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Oct 3 09:39:17 2005 +0000
+
+ Bug #4353: Fix lockup when suspend and resume when playing video.
+ Shutdown the overlay on LeaveVT.
+
+commit 154724cc4be1e951649c29e4abdbde964a8c112e
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Sep 27 08:58:23 2005 +0000
+
+ Put back the print code to display the DDC information, and remove some bogus
+ DDC messages.
+
+commit 2174848266940e1896970c12717e106a4742dcbc
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Sat Sep 24 18:45:45 2005 +0000
+
+ Disable the {Open,Close}FullScreen DRI protocol.
+ Remove empty FullScreen stubs from drivers, comment the non-empty ones.
+
+commit b6443515e9d485b1ab8ee266c5b21750d2a5a551
+Author: Alan Coopersmith <Alan.Coopersmith@sun.com>
+Date: Thu Sep 22 01:58:17 2005 +0000
+
+ Don't build xvmc module if DRI support is not present
+
+commit 76033c2c885524c2116ccf0bdd30c89fa2636150
+Author: Eric Anholt <anholt@freebsd.org>
+Date: Thu Sep 15 06:04:59 2005 +0000
+
+ Bug #4458: Check for the xvmc proto package, since it's required to build these.
+ (Joshua Baergen)
+
+commit 50f0bf51a67c89bf445a682f8fec34c52ff909a8
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Sep 8 14:51:40 2005 +0000
+
+ fix another possible crash
+
+commit 521e357c1846960b48e83fb97f77025f6f91e638
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Sep 8 09:31:04 2005 +0000
+
+ Fix a crash situation
+
+commit e8c46c897564f038744b9274949482568d654ecc
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Sep 6 10:31:33 2005 +0000
+
+ Fix DirectColor visual colormap issues at 16bpp in the i830 driver.
+
+commit bf6fef41935ebf624cc1ae6faa084dfa0a7eee72
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Sep 6 10:23:57 2005 +0000
+
+ Sync the accelerator before calling AdjustFrame to avoid lockups.
+
+commit 5fc5f02d76e077b09bf3ab1c7deeb1263033d57a
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Aug 29 12:06:13 2005 +0000
+
+ Add i810 XvMC support, it passes distcheck for me.
+
+commit 86e6935bd50b129519b24ee3d694a3f75b8d4f1c
+Author: Dave Airlie <airlied@linux.ie>
+Date: Mon Aug 29 12:02:29 2005 +0000
+
+ Fix include paths for i810 XvMC add config.h to driDrawable.c
+
+commit 6f1406753da102ccce1898b3f160d6eaaccc9b7c
+Author: Kristian Høgsberg <krh@redhat.com>
+Date: Fri Aug 26 15:32:40 2005 +0000
+
+ Added i830_io.c, which just includes i810_io.c with BUILD_FOR_I830 set.
+
+commit 219beaca91b88dabfe05b8e756d558269f7a5148
+Author: Daniel Stone <daniel@fooishbar.org>
+Date: Sun Aug 21 06:26:33 2005 +0000
+
+ Fix typo in debug ErrorF.
+
+commit fdc6997f2edf4dfdcfd877152028bff2a0306999
+Author: Daniel Stone <daniel@fooishbar.org>
+Date: Thu Aug 18 09:03:47 2005 +0000
+
+ Update autogen.sh to one that does objdir != srcdir.
+
+commit 461d43be78f49e6cb965b7a206c77f6fe1622601
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Aug 15 07:30:05 2005 +0000
+
+ Egbert's 64bit fixes for mixed 32/64bit clients
+
+commit 95bd8dbee69b4b35e4c37e19d15e0449c38726b6
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Aug 12 21:23:59 2005 +0000
+
+ add missing i830_shadow.c
+
+commit 7476d0413f161ddb3f3cc4a77c3f2a2912d17e60
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Aug 8 09:17:06 2005 +0000
+
+ Enable gamma correction bit even for 8bit modes.
+
+ The pipeconf register handles the real enablement.
+
+commit a89f89a2423aecb199d5f4af2e9430e180aa1131
+Author: Ian Romanick <idr@us.ibm.com>
+Date: Fri Aug 5 23:04:33 2005 +0000
+
+ I have resolved this by making all the "Direct rendering disabled" messages
+ X_WARNING and all the "Direct rendering enabled" messages X_INFO. Ideally,
+ we need to factor some of this stuff out to common code. There is a *LOT* of
+ duplication among the *_dri.c files under programs/Xserver/hw/xfree86/drivers.
+
+ I'm trying to clean up as much low hanging fruit as I can and got tired of
+ waiting for ajax. :P
+
+commit fd6d7d7f7ea03961c5ecf7db029f12ece93d414a
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Aug 2 16:22:42 2005 +0000
+
+ Adjust newPipe code for BIOS's starting at 1200
+
+commit da7b85176fc061995e1b04fa22dc736b6c9353e6
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Sun Jul 31 17:19:29 2005 +0000
+
+ Post-merge fixups:
+ - Disable building the gamma driver
+ - Fix numerous Imakefiles to get header paths and subdirs right
+ - Symlink client-side GLX lib source from Mesa
+ - Add new shader subdirs to the Mesa core build
+ - Tweak the DDX drivers to not ask for "xf86dri.h"; they don't need
+ it, since they don't generate protocol, and it was breaking the
+ build.
+
+commit 1561ec3ca4f0d774f2664e9354d537061a0102d1
+Author: Kevin E Martin <kem@redhat.com>
+Date: Fri Jul 29 21:22:43 2005 +0000
+
+ Various changes preparing packages for RC0:
+ - Verify and update package version numbers as needed
+ - Implement versioning scheme
+ - Change bug address to point to bugzilla bug entry form
+ - Disable loadable i18n in libX11 by default (use --enable-loadable-i18n
+ to reenable it)
+ - Fix makedepend to use pkgconfig and pass distcheck
+ - Update build script to build macros first
+ - Update modular Xorg version
+
+commit d165b7dc4ec3793e921363cdeb1ad41c0a3653d6
+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
+Date: Wed Jul 27 21:23:29 2005 +0000
+
+ Add xf86driproto to dependencies for drivers with DRI support. Patch from
+ Donnie Berkholz
+
+commit 0cd371c6e57f899c34c4d2e2a8531ef7ce3967a4
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jul 26 21:55:42 2005 +0000
+
+ Bump the DDX version to 1.4.0 to indicate the removal of drmAddress.
+ Thus allowing 32/64bit clients to cohabit.
+
+commit adef005c2f96395d396834f2173125f0c06d40cb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jul 26 08:07:37 2005 +0000
+
+ Bug #3850: <https://bugs.freedesktop.org/show_bug.cgi?id=3850>
+ Fix non-DRI builds.
+
+commit 09e871b1b4a67cfe818613bc012d72965b449f1c
+Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk>
+Date: Tue Jul 26 00:41:42 2005 +0000
+
+ Build system for i810
+
+commit ac920dae7c22ed3956e4f31a0d3baf1909762b76
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Mon Jul 11 02:29:51 2005 +0000
+
+ Prep for modular builds by adding guarded #include "config.h" everywhere.
+
+commit f90f661652e5fe0986eb804f8dff3eeffe0af820
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Sat Jul 9 21:19:11 2005 +0000
+
+ Copy mode strings upon mode copy
+
+commit 8fced5b648b0666ca88221e37bc1131ab5c2072d
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jul 5 09:25:03 2005 +0000
+
+ Fix Xvideo when operating in one line mode and video is pushed off the top of
+ the screen. Also some fixes for Xvideo skew in certain resolutions.
+
+commit 68bc259fa1082f7780e524fc703e926a27fc7f9a
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jul 4 20:45:39 2005 +0000
+
+ NULL check
+
+commit 83c3e3ee49a0aa3ceaf52e2408cc253fc5dc8af4
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jun 28 16:13:02 2005 +0000
+
+ Add support to check the in-built VESA mode list.
+
+commit 0d64e9e1f5494cff633a1499545d55a0edd0d92e
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Sat Jun 25 21:16:55 2005 +0000
+
+ Bug #3626: _X_EXPORT tags for video and input drivers.
+
+commit 67174d67e740b9082ed0a65a79f08b5df3b4fcfb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 13 12:15:25 2005 +0000
+
+ commit missing piece from resume patch
+
+commit ddab0558d584fb906cc0dfb383cc0e7a122d5336
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Jun 9 09:26:03 2005 +0000
+
+ Bug #3496 <https://bugs.freedesktop.org/show_bug.cgi?id=3496>
+ Remove a bogus check for DRM 1.2 for resume functionality as it's
+ been present since 1.1
+
+commit 7f49513afe9d4490bdfdac182d50383c089875e0
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed Jun 8 17:50:32 2005 +0000
+
+ Fix the mode validation such that using function 5f05 to set the refresh rate
+ works again.
+
+commit f8de9b4b9a5ce2756652c6b9ec1e84aedbc3519a
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jun 7 18:54:10 2005 +0000
+
+ Fix text restoration when display switching has been activated and we could be
+ potentially on a different display than the initial one.
+
+commit 1f538007e9da7d4ad30ec4d4d281fb07ef300ddb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 6 09:47:29 2005 +0000
+
+ missed a hunk
+
+commit d8a32bf4274ad91cc2b9ca425f5b0a017c2dd293
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jun 6 09:40:23 2005 +0000
+
+ Bug #3436 <https://bugs.freedesktop.org/show_bug.cgi?id=3054>
+ Fix some offset, pitch and overlay scaler size problems with
+ the video overlay. Solves various spontaneous lockups.
+
+commit 005d121d280ff4502f4d6e3d3d585ff0175367bb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue May 31 20:29:01 2005 +0000
+
+ and another. sheesh.
+
+commit 27f86d693c32e550d9ebf4d6ff05c2d827754c8b
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue May 31 20:27:24 2005 +0000
+
+ missed hunk
+
+commit 27feb0f3474c1e21557225e10b13558e002c0ebf
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue May 31 17:58:26 2005 +0000
+
+ Add Intel(R) 945G support
+
+commit 2d10e8dc8184b0514e8ac9f835a06b85d609bb1b
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Wed May 25 09:10:44 2005 +0000
+
+ Change the sequence on how refresh rates are set in the i830 driver. This works
+ much better with custom modelines.
+
+commit 89ec4ac201c09329d5d732323bdce6250b8592fe
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri May 20 15:24:02 2005 +0000
+
+ Bugzilla #3292: https://bugs.freedesktop.org/show_bug.cgi?id=3292
+ Add shadowFB support to the Intel driver (Dima Dorfman)
+
+commit df0964ea8f92c6b278dd87b95380dbc3ada625e5
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri May 20 13:24:02 2005 +0000
+
+ Bugzilla #2339: https://bugs.freedesktop.org/show_bug.cgi?id=2339
+ Bugzilla #1064: https://bugs.freedesktop.org/show_bug.cgi?id=1064
+ Bugzilla #3055: https://bugs.freedesktop.org/show_bug.cgi?id=3055
+ Much better display switching support for mobile chipsets using
+ the Fn+F? combination keys.
+ Add DirectColor support.
+ Add gamma correction support.
+
+commit b99ef9cd59fce0e02e8829210c7cb8aadb6a3499
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri May 20 11:56:45 2005 +0000
+
+ Bugzilla #2585: https://bugs.freedesktop.org/show_bug.cgi?id=2585
+ Support the Intel E7221 server chipset.
+
+commit 3b87fac327b5549678f91a9c961b9fe5c0bf8a37
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Wed May 18 17:47:35 2005 +0000
+
+ Bug #3163: Create new DRIINFO_*_VERSION macros to indicate the
+ version number of the DRIInfoRec, disambiguating it from the XF86DRI
+ protocol version number. Modify DRIQueryVersion to return the libdri
+ version number, which all DDXes were requesting implicitly. Fix the
+ DDXes to check for the DRIINFO version they were compiled against.
+
+commit 72100ac7cff7485db3e869f1331caddb0bc21a24
+Author: Daniel Stone <daniel@fooishbar.org>
+Date: Wed Apr 20 12:25:28 2005 +0000
+
+ Fix includes right throughout the Xserver tree:
+ * change "foo.h" to <X11/foo.h> for core headers, e.g. X.h, Xpoll.h;
+ * change "foo.h", "extensions/foo.h" and "X11/foo.h" to
+ <X11/extensions/foo.h> for extension headers, e.g. Xv.h;
+ * change "foo.[ch]" to <X11/Xtrans/foo.[ch]> for Xtrans files.
+
+commit c813bf655908cd72049f346919abbdff8365b944
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Apr 14 22:55:01 2005 +0000
+
+ Fix initial DDC parameters when validating modes.
+
+commit e637630908f40f42367c94344d44918b6cdb0eb2
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Fri Apr 1 14:17:24 2005 +0000
+
+ Check the VESA BIOS scanline requirements and adjust the displayWidth
+ accordingly. Fixes an assumption that the screen width was always used as the
+ displayWidth.
+
+commit 5090c8ba6778091aa4ce24b16b058d534ba78dc7
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Mar 21 21:20:39 2005 +0000
+
+ a one line fixup to the UseDDC code
+
+commit 8bc9b0d7da5de9a3294687f450afb50452898c7d
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Mar 21 18:57:39 2005 +0000
+
+ Fix some bad alignment problems when allocating memory from
+ the end of AGP space.
+ Bugzilla #2764 (https://bugs.freedesktop.org/show_bug.cgi?id=2764)
+
+commit 50a105e88cfdfc22fef8cfd2397fc5e9fae17663
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Mar 15 13:10:23 2005 +0000
+
+ LFP's may exist on Pipe A in older i830's. Check that case so that Panel ID can
+ be obtained and Xvideo is correctly setup for panel fitting.
+
+commit eb8b5df739e7be4509423c2bf757a7df35ce02f6
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Mar 15 11:32:10 2005 +0000
+
+ Enforce DDC monitor ranges usage if we have them and reject bad
+ modes. Use NoDDC option to override DDC timings. We currently
+ only use DS_RANGES, but could use other DDC information, as does
+ the common layer, to deduce the h/v ranges.
+
+commit 49dcbacf7fa7f29d18c18eec7e2f99e859bf4c7e
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Mar 3 18:01:51 2005 +0000
+
+ Limit the maximum refresh rate to 85Hz and remove the bogus
+ 100Hz and 120Hz settings as they don't match close enough and
+ are really unsupported.
+
+commit 7eaf88d00d7539fde68422ae6566f23993aa2633
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Mar 1 19:53:28 2005 +0000
+
+ Fix an off by one error when scaling which caused occasional
+ overlay color lines at the far right and bottom of the window.
+
+commit 28d65bceaec3ef636f0f5bdd03b38fd76f87c8c6
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Feb 10 13:16:08 2005 +0000
+
+ Fix unaligned YV12 videos that caused skew when playing.
+
+commit 6352e65b9cd635e9f266e0e9ed64c5beae9e5c44
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Feb 10 10:41:20 2005 +0000
+
+ Fix pixmap cache corruption when Xv was in use due to a memory allocator
+ calculation problem.
+
+commit f691f959213d3eb5c365edaf5a5a53fa96300491
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Feb 8 20:13:33 2005 +0000
+
+ Setup the Xv atoms correctly.
+
+commit 31a4191a97f538b2c6d4b8036796f06443f783c1
+Author: Egbert Eich <eich@suse.de>
+Date: Mon Feb 7 11:56:31 2005 +0000
+
+ Check the pixel clock choosen for a specific refresh rate
+ against the maximally allowed pixel clock when choosing
+ mode lines for VBESetVBEMode() and VESA BIOS version >= 3.0
+ (Bugzilla #2486).
+
+commit a103496e08f699b609be875827ecf1f3afa45e68
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Feb 1 19:47:32 2005 +0000
+
+ Check return value of i830InitDma() and fail to initialize the DRI
+ if that fails.
+ Also, check the DRM module name that it matches i915 and not the
+ older i830 driver which some people were still trying to use
+ and was causing Dma Initialization failures and lockups.
+
+commit 7ff7cec9220815eb5f74cfd95860aaa5f1f263bd
+Author: Egbert Eich <eich@suse.de>
+Date: Mon Jan 24 15:02:17 2005 +0000
+
+ Unmap XCursor AGP memory on VT switch to prevent system from lockup
+ (Matthias Hopf).
+
+commit d4c87adf6792ae9af641b9824c547d18cdd1e521
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Mon Jan 10 11:29:02 2005 +0000
+
+ Revert some changes to TweakMemorySize
+
+commit 076c5116ae5eda1822da70184cbcc8942b470541
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Thu Jan 6 14:43:14 2005 +0000
+
+ Add:
+ - Intel i915GM support to 2D DDX and 3D Mesa drivers.
+ - PanelID identification
+ - DRI suspend/resume support
+ - Detection of monitor changes on VT switches
+ - Support custom video modes if available in the Video BIOS
+ - 3D enhancements:
+ * GL_ARB_texture_cube_map
+ * GL_EXT_blend_equation_separate
+ * GL_ATI_blend_equation_separate
+ * GL_ARB_point_parameters
+ * GL_NV_blend_square
+ * GL_EXT_cull_vertex
+ * GL_ARB_depth_texture
+ * GL_SGIX_depth_texture
+ * GL_ARB_shadow
+ * GL_EXT_shadow_funcs
+ * GL_3DFX_texture_compression_FXT1
+ By Tungsten Graphics, Keith Whitwell & Alan Hourihane.
+
+commit edb9b6fde0948bb1121a8456500ef9f55f734376
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Mon Jan 3 16:03:56 2005 +0000
+
+ Bug #1488: Fix crash on i830 during startup. (Eric Anholt)
+
+commit 59cecb714b78f7f384c24bf159bd39c81e9c7ee1
+Author: Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>
+Date: Sat Dec 4 00:43:09 2004 +0000
+
+ Encoding of numerous files changed to UTF-8
+
+commit c24b0e04f3a1b064412e0bea44c4af546ec9fb77
+Author: Egbert Eich <eich@suse.de>
+Date: Tue Nov 2 08:54:53 2004 +0000
+
+ Fixed KGA handling for i810. KGA handling for chips derived from C&T chips is
+ slightly different. The changes make the code consistent with the C&T (chips)
+ and i740 drivers.
+
+commit 7ce4898ee319d149cf86e938e7257ea7490d327f
+Author: Egbert Eich <eich@suse.de>
+Date: Wed Oct 27 09:52:15 2004 +0000
+
+ Removing vtSema shilding of accel sync - should have been '&&' instead of '||'
+ anyway.
+
+commit 88714c3b2274fcfe50837631b1d38a7cd96f692a
+Author: Egbert Eich <eich@suse.de>
+Date: Tue Oct 12 19:13:43 2004 +0000
+
+ Change order of SetDisplayDevice(), HWRestore(), UnbindGART() and
+ RestoreBIOSMemSize() to be exactly opposite to the Save procedure in EnterVT()
+ (Matthias Hopf, Alan Hourihane).
+ Fixed server crash on reset when a structure allocated in PreInit() was freed on
+ CloseScreen().
+ Fixed ring buffer lock ups that happened because the structure that contained
+ ringbuffer data was not zeroed after allocation.
+ Fixed numerous warnings due to signed unsigned comparisons.
+
+commit 687298daed40aaade44e61342a9abe984088541b
+Author: Egbert Eich <eich@suse.de>
+Date: Mon Oct 11 09:58:04 2004 +0000
+
+ Checking if server isn't switched away before calling sync.
+ Sanity check for possible bugs in aother areas of the code.
+ Fixing default amount of of allocated video memory from AGP for i810: Use 16MB
+ if less than 192MB are installed else use 24MB (Matthias Hopf).
+
+commit d2866271b8d42a0d44b65e30667adab96ac8fd54
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Wed Sep 22 04:38:03 2004 +0000
+
+ Bug #1252, #1253, #1255, #1256: Various typo fixes from Dave Jones.
+
+commit 88fd270d23ed1a1761cfdb98367c89ca89735b12
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Fri Sep 17 03:04:51 2004 +0000
+
+ Bug #1192: Remove cfb support from drivers where its use is an option.
+ Delete xf24_32bpp, as s3virge was the last user. Fix up some comments
+ to refer to fb rather than cfb.
+
+commit 9e8e19c6fde15fe5b9bb7532316dedeeca54b8d9
+Author: Kevin E Martin <kem@redhat.com>
+Date: Mon Aug 30 03:19:08 2004 +0000
+
+ Fix ARGB cursor problem on i810 (Bug #1195, Alan Hourihane).
+
+commit 15c61546ea1a64d6c7dd60764164143ea7174123
+Author: Kevin E Martin <kem@redhat.com>
+Date: Thu Aug 26 05:10:56 2004 +0000
+
+ Fix i810 compilation without Xinerama (Bug #1180, Simon Schubert).
+
+commit 828c0fb8050dcbed8026365cbcb17d4d4330c268
+Author: Kevin E Martin <kem@redhat.com>
+Date: Wed Aug 25 00:30:41 2004 +0000
+
+ Fix i810 driver startup on Sony VAIO laptop (Bug #1084, Dave Airlie).
+
+commit c4626af83d760c2a6aae90ad478430eac1c4f4ea
+Author: Egbert Eich <eich@suse.de>
+Date: Fri Jul 30 21:36:40 2004 +0000
+
+ Do I810EmitFlush() during screen init to make sure 2D engine is in a sane state
+ (Peter Kunzmann).
+
+commit e0e01b7d6188a83c7539256ac1710ace04ce132a
+Author: Egbert Eich <eich@suse.de>
+Date: Fri Jul 30 20:38:27 2004 +0000
+
+ add i845 to the list of chips that allow memory size tweaking.
+
+commit 199620cdc924e6aa98683e305843ea91c7e1771d
+Author: Adam Jackson <ajax@nwnk.net>
+Date: Fri Jul 30 20:30:52 2004 +0000
+
+ Bug #400 (partial): Driver fixes for the dlloader. When using
+ dlloader, all framebuffer formats except cfb and the overlay modes
+ should work, and r128 and radeon need to be loaded from the ati
+ driver (both issues to be fixed soon). Tested on i740, s3virge,
+ mach64, tdfx, vesa, and vga drivers. elfloader users shouldn't be
+ affected.
+
+commit 54e644ffbb63290b7e2ec51b041f5b2df26e164b
+Author: Egbert Eich <eich@suse.de>
+Date: Fri Jul 30 19:04:14 2004 +0000
+
+ Removed bugs on TweakMemorySize() which prevented it from working at all.
+ Initialized last element of BIOS version number string to 0 to avoid random
+ problems.
+
+commit 3a3b00f18ac5edd7dfef06a96342c95f3cb97f79
+Author: Kevin E Martin <kem@redhat.com>
+Date: Fri Jul 30 04:44:13 2004 +0000
+
+ Fix "DoLoadableServer NO" build
+
+commit 986bc24892e7ce3784fc723fda54b1f89dd75b66
+Author: Egbert Eich <eich@suse.de>
+Date: Tue Jul 6 14:37:47 2004 +0000
+
+ Increase default video RAM size to 16MB when DRI is enabled and more than 128MB
+ are available (Egbert Eich).
+ Fixed lockups during mode switch. Problem was introduced when attempting to copy
+ the behavior during LeaveVT()/EnterVT() but but forgetting to call
+ I810DRILeave() before I810DRIEnter(). The entire DRILeave()/Enter() scenario has
+ been commented out as it didn't seem to be necessary (Egbert Eich).
+ Fix TweakMemorySize() (tested with i855/i865) (Egbert Eich).
+
+commit b7310758e60956a7de14dcf968bb713dfc56738f
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jun 22 15:12:42 2004 +0000
+
+ add CmdBuffer
+
+commit 5ed7e6f8424236dd57d83f6ab1282693260969cb
+Author: Alan Hourihane <alanh@fairlite.demon.co.uk>
+Date: Tue Jun 22 14:28:46 2004 +0000
+
+ i915 support
+ Dual Head support for i830, i855, i915.
+ ARGB cursor support (including i810) for all chipsets.
+
+commit a46e95722d3c2b9dfb9eacf9a390a7c47d427773
+Author: Eric Anholt <anholt@freebsd.org>
+Date: Wed Jun 16 19:16:54 2004 +0000
+
+ Mop-up from the DRI 20040613 import, taking care of some drm.h
+ header location and type changes, and update the ChangeLog.
+
+commit 35a5cf103e9e41d178f980f685307f8c8063a006
+Author: Eric Anholt <anholt@freebsd.org>
+Date: Wed Jun 16 09:44:00 2004 +0000
+
+ Merge DRI-trunk-20040613 changes in programs/Xserver/hw/xfree86/drivers, with
+ the following notes:
+
+ - Savage and Mach64 (= ati/ati*.[ch] changes) DRI not merged due to insecurity.
+ - VIA driver converted to new drmContext and drmHandle names.
+ - Radeon driver merge conflicted in many places, and MergedFB at least could
+ probably use some checking at this point.
+
+commit bec47f9369b6f02ce4537ab1ac547ba933609edc
+Author: Eric Anholt <anholt@freebsd.org>
+Date: Wed Jun 16 09:26:18 2004 +0000
+
+ DRI trunk-20040613 import
+
+commit c5b1972b50a6dbe57c67d3cc88ae010386b908a6
+Author: Eric Anholt <anholt@freebsd.org>
+Date: Wed Jun 16 09:23:18 2004 +0000
+
+ DRI XFree86-4_3_99_12-merge import
+
+commit 41eba03d0d62fe03a7b437c9c4914016c3125141
+Author: Egbert Eich <eich@suse.de>
+Date: Fri Apr 23 19:35:55 2004 +0000
+
+ Merging XORG-CURRENT into trunk
+
+commit e27494f2a9262b6310c2f1e0a40c406f578fc693
+Author: Egbert Eich <eich@suse.de>
+Date: Sun Mar 14 08:33:22 2004 +0000
+
+ Importing vendor version xf86-4_4_99_1 on Sun Mar 14 00:26:39 PST 2004
+
+commit 5ece535dc7f77185cc8c327a57ae3c02c8b9f918
+Author: Egbert Eich <eich@suse.de>
+Date: Wed Mar 3 12:12:19 2004 +0000
+
+ Importing vendor version xf86-4_4_0 on Wed Mar 3 04:09:24 PST 2004
+
+commit ba904078dd22e013f4112479e7c2669c33e708a8
+Author: Egbert Eich <eich@suse.de>
+Date: Thu Feb 26 13:35:53 2004 +0000
+
+ readding XFree86's cvs IDs
+
+commit 13ea363db30dc0010cd09df29df90074db77f646
+Author: Egbert Eich <eich@suse.de>
+Date: Thu Feb 26 09:23:19 2004 +0000
+
+ Importing vendor version xf86-4_3_99_903 on Wed Feb 26 01:21:00 PST 2004
+
+commit 64b129e800d915f0d82a67ce0f8b1850e67012fc
+Author: Egbert Eich <eich@suse.de>
+Date: Thu Jan 29 08:08:35 2004 +0000
+
+ Importing vendor version xf86-012804-2330 on Thu Jan 29 00:06:33 PST 2004
+
+commit 64d7bbf0ac060a57761aa2ecf21ddbe8169674c0
+Author: Kaleb Keithley <kaleb@freedesktop.org>
+Date: Fri Dec 19 20:55:10 2003 +0000
+
+ XFree86 4.3.99.902 (RC 2)
+
+commit 418eaaee109acd3ea178b147dd29f90318d159f9
+Author: Kaleb Keithley <kaleb@freedesktop.org>
+Date: Thu Dec 4 22:03:17 2003 +0000
+
+ XFree86 4.3.99.901 (RC 1)
+
+commit 72063c52b82faf80a0183f66d2fd5789def76d8f
+Author: Kaleb Keithley <kaleb@freedesktop.org>
+Date: Tue Nov 25 19:28:37 2003 +0000
+
+ XFree86 4.3.99.16
+ Bring the tree up to date for the Cygwin folks
+
+commit e04a1a8f862eb63b546fb74e73ee602fefb82e00
+Author: Kaleb Keithley <kaleb@freedesktop.org>
+Date: Fri Nov 14 16:48:55 2003 +0000
+
+ XFree86 4.3.0.1
+
+commit 3ad0d9a73bc0a4f3edb858d5f3a7c36827b7a429
+Author: Kaleb Keithley <kaleb@freedesktop.org>
+Date: Fri Nov 14 16:48:55 2003 +0000
+
+ Initial revision
diff --git a/INSTALL b/INSTALL
new file mode 100644
index 0000000..8b82ade
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,291 @@
+Installation Instructions
+*************************
+
+Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
+2006, 2007, 2008 Free Software Foundation, Inc.
+
+ This file is free documentation; the Free Software Foundation gives
+unlimited permission to copy, distribute and modify it.
+
+Basic Installation
+==================
+
+ Briefly, the shell commands `./configure; make; make install' should
+configure, build, and install this package. The following
+more-detailed instructions are generic; see the `README' file for
+instructions specific to this package.
+
+ The `configure' shell script attempts to guess correct values for
+various system-dependent variables used during compilation. It uses
+those values to create a `Makefile' in each directory of the package.
+It may also create one or more `.h' files containing system-dependent
+definitions. Finally, it creates a shell script `config.status' that
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+ It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring. Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.
+
+ If you need to do unusual things to compile the package, please try
+to figure out how `configure' could check whether to do them, and mail
+diffs or instructions to the address given in the `README' so they can
+be considered for the next release. If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
+
+ The file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'. You need `configure.ac' if
+you want to change it or regenerate `configure' using a newer version
+of `autoconf'.
+
+The simplest way to compile this package is:
+
+ 1. `cd' to the directory containing the package's source code and type
+ `./configure' to configure the package for your system.
+
+ Running `configure' might take a while. While running, it prints
+ some messages telling which features it is checking for.
+
+ 2. Type `make' to compile the package.
+
+ 3. Optionally, type `make check' to run any self-tests that come with
+ the package.
+
+ 4. Type `make install' to install the programs and any data files and
+ documentation.
+
+ 5. You can remove the program binaries and object files from the
+ source code directory by typing `make clean'. To also remove the
+ files that `configure' created (so you can compile the package for
+ a different kind of computer), type `make distclean'. There is
+ also a `make maintainer-clean' target, but that is intended mainly
+ for the package's developers. If you use it, you may have to get
+ all sorts of other programs in order to regenerate files that came
+ with the distribution.
+
+ 6. Often, you can also type `make uninstall' to remove the installed
+ files again.
+
+Compilers and Options
+=====================
+
+ Some systems require unusual options for compilation or linking that
+the `configure' script does not know about. Run `./configure --help'
+for details on some of the pertinent environment variables.
+
+ You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment. Here
+is an example:
+
+ ./configure CC=c99 CFLAGS=-g LIBS=-lposix
+
+ *Note Defining Variables::, for more details.
+
+Compiling For Multiple Architectures
+====================================
+
+ You can compile the package for more than one kind of computer at the
+same time, by placing the object files for each architecture in their
+own directory. To do this, you can use GNU `make'. `cd' to the
+directory where you want the object files and executables to go and run
+the `configure' script. `configure' automatically checks for the
+source code in the directory that `configure' is in and in `..'.
+
+ With a non-GNU `make', it is safer to compile the package for one
+architecture at a time in the source code directory. After you have
+installed the package for one architecture, use `make distclean' before
+reconfiguring for another architecture.
+
+ On MacOS X 10.5 and later systems, you can create libraries and
+executables that work on multiple system types--known as "fat" or
+"universal" binaries--by specifying multiple `-arch' options to the
+compiler but only a single `-arch' option to the preprocessor. Like
+this:
+
+ ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+ CPP="gcc -E" CXXCPP="g++ -E"
+
+ This is not guaranteed to produce working output in all cases, you
+may have to build one architecture at a time and combine the results
+using the `lipo' tool if you have problems.
+
+Installation Names
+==================
+
+ By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc. You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX'.
+
+ You can specify separate installation prefixes for
+architecture-specific files and architecture-independent files. If you
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
+
+ In addition, if you use an unusual directory layout you can give
+options like `--bindir=DIR' to specify different values for particular
+kinds of files. Run `configure --help' for a list of the directories
+you can set and what kinds of files go in them.
+
+ If the package supports it, you can cause programs to be installed
+with an extra prefix or suffix on their names by giving `configure' the
+option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+
+Optional Features
+=================
+
+ Some packages pay attention to `--enable-FEATURE' options to
+`configure', where FEATURE indicates an optional part of the package.
+They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+is something like `gnu-as' or `x' (for the X Window System). The
+`README' should mention any `--enable-' and `--with-' options that the
+package recognizes.
+
+ For packages that use the X Window System, `configure' can usually
+find the X include and library files automatically, but if it doesn't,
+you can use the `configure' options `--x-includes=DIR' and
+`--x-libraries=DIR' to specify their locations.
+
+Particular systems
+==================
+
+ On HP-UX, the default C compiler is not ANSI C compatible. If GNU
+CC is not installed, it is recommended to use the following options in
+order to use an ANSI C compiler:
+
+ ./configure CC="cc -Ae"
+
+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+
+ On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
+parse its `<wchar.h>' header file. The option `-nodtk' can be used as
+a workaround. If GNU CC is not installed, it is therefore recommended
+to try
+
+ ./configure CC="cc"
+
+and if that doesn't work, try
+
+ ./configure CC="cc -nodtk"
+
+Specifying the System Type
+==========================
+
+ There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on. Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option. TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
+ CPU-COMPANY-SYSTEM
+
+where SYSTEM can have one of these forms:
+
+ OS KERNEL-OS
+
+ See the file `config.sub' for the possible values of each field. If
+`config.sub' isn't included in this package, then this package doesn't
+need to know the machine type.
+
+ If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+ If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
+
+Sharing Defaults
+================
+
+ If you want to set default values for `configure' scripts to share,
+you can create a site shell script called `config.site' that gives
+default values for variables like `CC', `cache_file', and `prefix'.
+`configure' looks for `PREFIX/share/config.site' if it exists, then
+`PREFIX/etc/config.site' if it exists. Or, you can set the
+`CONFIG_SITE' environment variable to the location of the site script.
+A warning: not all `configure' scripts look for a site script.
+
+Defining Variables
+==================
+
+ Variables not defined in a site shell script can be set in the
+environment passed to `configure'. However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost. In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'. For example:
+
+ ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
+an Autoconf bug. Until the bug is fixed you can use this workaround:
+
+ CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+`configure' Invocation
+======================
+
+ `configure' recognizes the following options to control how it
+operates.
+
+`--help'
+`-h'
+ Print a summary of all of the options to `configure', and exit.
+
+`--help=short'
+`--help=recursive'
+ Print a summary of the options unique to this package's
+ `configure', and exit. The `short' variant lists options used
+ only in the top level, while the `recursive' variant lists options
+ also present in any nested packages.
+
+`--version'
+`-V'
+ Print the version of Autoconf used to generate the `configure'
+ script, and exit.
+
+`--cache-file=FILE'
+ Enable the cache: use and save the results of the tests in FILE,
+ traditionally `config.cache'. FILE defaults to `/dev/null' to
+ disable caching.
+
+`--config-cache'
+`-C'
+ Alias for `--cache-file=config.cache'.
+
+`--quiet'
+`--silent'
+`-q'
+ Do not print messages saying which checks are being made. To
+ suppress all normal output, redirect it to `/dev/null' (any error
+ messages will still be shown).
+
+`--srcdir=DIR'
+ Look for the package's source code in directory DIR. Usually
+ `configure' can determine that directory automatically.
+
+`--prefix=DIR'
+ Use DIR as the installation prefix. *Note Installation Names::
+ for more details, including other options available for fine-tuning
+ the installation locations.
+
+`--no-create'
+`-n'
+ Run the configure checks, but stop before creating any output
+ files.
+
+`configure' also accepts some other, not widely useful, options. Run
+`configure --help' for more details.
+
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..83948ab
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,34 @@
+# Copyright 2005 Adam Jackson.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# on the rights to use, copy, modify, merge, publish, distribute, sub
+# license, and/or sell copies of the Software, and to permit persons to whom
+# the Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+SUBDIRS = uxa src man
+MAINTAINERCLEANFILES = ChangeLog INSTALL
+
+.PHONY: ChangeLog INSTALL
+
+INSTALL:
+ $(INSTALL_CMD)
+
+ChangeLog:
+ $(CHANGELOG_CMD)
+
+dist-hook: ChangeLog INSTALL
diff --git a/Makefile.in b/Makefile.in
new file mode 100644
index 0000000..dec3d37
--- /dev/null
+++ b/Makefile.in
@@ -0,0 +1,799 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Copyright 2005 Adam Jackson.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# on the rights to use, copy, modify, merge, publish, distribute, sub
+# license, and/or sell copies of the Software, and to permit persons to whom
+# the Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = .
+DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
+ $(srcdir)/Makefile.in $(srcdir)/config.h.in \
+ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
+ build-aux/config.guess build-aux/config.sub build-aux/depcomp \
+ build-aux/install-sh build-aux/ltmain.sh build-aux/missing \
+ compile config.guess config.sub depcomp install-sh ltmain.sh \
+ missing
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir dist dist-all distcheck
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+distdir = $(PACKAGE)-$(VERSION)
+top_distdir = $(distdir)
+am__remove_distdir = \
+ { test ! -d "$(distdir)" \
+ || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
+ && rm -fr "$(distdir)"; }; }
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2
+GZIP_ENV = --best
+distuninstallcheck_listfiles = find . -type f -print
+distcleancheck_listfiles = find . -type f -print
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+SUBDIRS = uxa src man
+MAINTAINERCLEANFILES = ChangeLog INSTALL
+all: config.h
+ $(MAKE) $(AM_MAKEFLAGS) all-recursive
+
+.SUFFIXES:
+am--refresh:
+ @:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ echo ' $(SHELL) ./config.status'; \
+ $(SHELL) ./config.status;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ $(SHELL) ./config.status --recheck
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ $(am__cd) $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
+
+config.h: stamp-h1
+ @if test ! -f $@; then \
+ rm -f stamp-h1; \
+ $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
+ else :; fi
+
+stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
+ @rm -f stamp-h1
+ cd $(top_builddir) && $(SHELL) ./config.status config.h
+$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
+ rm -f stamp-h1
+ touch $@
+
+distclean-hdr:
+ -rm -f config.h stamp-h1
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+distclean-libtool:
+ -rm -f libtool config.lt
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ $(am__remove_distdir)
+ test -d "$(distdir)" || mkdir "$(distdir)"
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$(top_distdir)" distdir="$(distdir)" \
+ dist-hook
+ -test -n "$(am__skip_mode_fix)" \
+ || find "$(distdir)" -type d ! -perm -755 \
+ -exec chmod u+rwx,go+rx {} \; -o \
+ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r "$(distdir)"
+dist-gzip: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(am__remove_distdir)
+dist-bzip2: distdir
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+dist-lzma: distdir
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
+ $(am__remove_distdir)
+
+dist-xz: distdir
+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
+ $(am__remove_distdir)
+
+dist-tarZ: distdir
+ tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
+ $(am__remove_distdir)
+
+dist-shar: distdir
+ shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+ $(am__remove_distdir)
+
+dist-zip: distdir
+ -rm -f $(distdir).zip
+ zip -rq $(distdir).zip $(distdir)
+ $(am__remove_distdir)
+
+dist dist-all: distdir
+ tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
+ $(am__remove_distdir)
+
+# This target untars the dist file and tries a VPATH configuration. Then
+# it guarantees that the distribution is self-contained by making another
+# tarfile.
+distcheck: dist
+ case '$(DIST_ARCHIVES)' in \
+ *.tar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
+ *.tar.bz2*) \
+ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
+ *.tar.lzma*) \
+ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
+ *.tar.xz*) \
+ xz -dc $(distdir).tar.xz | $(am__untar) ;;\
+ *.tar.Z*) \
+ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
+ *.shar.gz*) \
+ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
+ *.zip*) \
+ unzip $(distdir).zip ;;\
+ esac
+ chmod -R a-w $(distdir); chmod a+w $(distdir)
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
+ chmod a-w $(distdir)
+ test -d $(distdir)/_build || exit 0; \
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
+ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
+ && am__cwd=`pwd` \
+ && $(am__cd) $(distdir)/_build \
+ && ../configure --srcdir=.. --prefix="$$dc_install_base" \
+ $(DISTCHECK_CONFIGURE_FLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) \
+ && $(MAKE) $(AM_MAKEFLAGS) dvi \
+ && $(MAKE) $(AM_MAKEFLAGS) check \
+ && $(MAKE) $(AM_MAKEFLAGS) install \
+ && $(MAKE) $(AM_MAKEFLAGS) installcheck \
+ && $(MAKE) $(AM_MAKEFLAGS) uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
+ distuninstallcheck \
+ && chmod -R a-w "$$dc_install_base" \
+ && ({ \
+ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
+ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
+ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
+ } || { rm -rf "$$dc_destdir"; exit 1; }) \
+ && rm -rf "$$dc_destdir" \
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+ && cd "$$am__cwd" \
+ || exit 1
+ $(am__remove_distdir)
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
+distuninstallcheck:
+ @$(am__cd) '$(distuninstallcheck_dir)' \
+ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
+ || { echo "ERROR: files left after uninstall:" ; \
+ if test -n "$(DESTDIR)"; then \
+ echo " (check DESTDIR support)"; \
+ fi ; \
+ $(distuninstallcheck_listfiles) ; \
+ exit 1; } >&2
+distcleancheck: distclean
+ @if test '$(srcdir)' = . ; then \
+ echo "ERROR: distcleancheck can only run from a VPATH build" ; \
+ exit 1 ; \
+ fi
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ || { echo "ERROR: files left in build directory after distclean:" ; \
+ $(distcleancheck_listfiles) ; \
+ exit 1; } >&2
+check-am: all-am
+check: check-recursive
+all-am: Makefile config.h
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f $(am__CONFIG_DISTCLEAN_FILES)
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
+ ctags-recursive install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
+ dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
+ dist-zip distcheck distclean distclean-generic distclean-hdr \
+ distclean-libtool distclean-tags distcleancheck distdir \
+ distuninstallcheck dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
+ ps ps-am tags tags-recursive uninstall uninstall-am
+
+
+.PHONY: ChangeLog INSTALL
+
+INSTALL:
+ $(INSTALL_CMD)
+
+ChangeLog:
+ $(CHANGELOG_CMD)
+
+dist-hook: ChangeLog INSTALL
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..ea92bcf
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,928 @@
+Release 2.15.0 (2011-04-14)
+==============================
+We are pleased to announce this major release of the xf86-video-intel
+driver, roughly on schedule at 3 months since 2.14.0. With the many bug
+fixes in this release, we encourage everyone to upgrade to 2.14.
+
+The priority for this quarter has been simply to unexciting and stabilise
+the driver further, seeking to capitalise upon the improvements elsewhere
+in the stack.
+
+Bugs fixed in this snapshot (compared to 2.14.903)
+--------------------------------------------------
+
+* Turn off relaxed fencing by default for older chipsets
+ This was continuing to destabilize those system, so for the release
+ we disabled the feature. If you wish to help us debug this, you can
+ re-enable the optimisation with Option "RelaxedFencing" "True".
+ Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36147
+
+* Build fix for xserver-1.7.7
+
+* KDE glitches on SNB
+ [Technically fixed in the previous snapshot, but I'm really pleased
+ that this got fixed in time for the release!]
+ https://bugs.freedesktop.org/show_bug.cgi?id=35808
+
+
+Snapshot 2.14.903 (2011-04-11)
+==============================
+This is the third release candidate in preparation for the upcoming
+2.15.0 release. We will appreciate any feedback we can get from
+testing of this snapshot.
+
+There was a bit of churn since 2.14.902 as a potential fix for a
+performance regression was tried but had to reverted when it was found to
+cause glitches running Compiz on SandyBridge. Otherwise, there were just a
+couple of fixes for building against old xservers and running on an
+obscure chipset.
+
+Bugs fixed in this snapshot (compared to 2.14.902)
+--------------------------------------------------
+
+* Prevent issuing an invalid scanline wait command
+ https://bugs.freedesktop.org/show_bug.cgi?id=35576
+
+* The 946GZ in not a 945, but a 965.
+ https://bugs.freedesktop.org/show_bug.cgi?id=35854
+
+* Fix tile sizes for gen2 (finally).
+
+* Allow building of recent dri2 changes against old xservers.
+
+
+Snapshot 2.14.902 (2011-03-29)
+==============================
+This is the second release candidate in preparation for the upcoming
+2.15.0 release. We will appreciate any feedback we can get from
+testing of this snapshot.
+
+As befits testing of release candidates, no major regression was found and
+a couple more bugs have been fixed.
+
+Bugs fixed in this snapshot (compared to 2.14.901)
+--------------------------------------------------
+
+* Clients disappearing with pending swaps
+
+* Incorrect clipping of Xv output on i915 across extended desktops
+ https://bugs.freedesktop.org/show_bug.cgi?id=35346
+
+* Introduction of a LinearFramebuffer option. (Defaults to tiled for
+ performance and power saving.)
+
+
+Snapshot 2.14.901 (2011-03-02)
+==============================
+This is the first release candidate in preparation for the upcoming
+2.15.0 release. We will appreciate any feedback we can get from
+testing of this snapshot.
+
+Still no further along my grandiose plans to improve Render performance,
+aside from the performance tuning lower in the stack, instead we have had
+a steady stream of bug fixes.
+
+Bugs fixed in this snapshot (compared to 2.14.0)
+------------------------------------------------
+
+* Green pixels within partially off-screen video playback
+ https://bugs.freedesktop.org/show_bug.cgi?id=24767
+
+* Defer creation of the glyph cache to generation startup
+ https://bugs.freedesktop.org/show_bug.cgi?id=33412
+
+* Incorrect maximum addresses for video decoder state
+ https://bugs.freedesktop.org/show_bug.cgi?id=34017
+
+* Failure to handle oversized temporary surfaces
+ https://bugs.freedesktop.org/show_bug.cgi?id=34399
+
+* Relaxed tiling corruption on gen2
+
+* Crash when destroying a foreign DRI drawable
+ https://bugs.freedesktop.org/show_bug.cgi?id=34787
+
+
+Release 2.14.0 (2011-01-07)
+===========================
+We are pleased to announce this major release of the xf86-video-intel
+driver, on schedule at 3 months since 2.13.0. With the many bug fixes
+in this release, we encourage everyone to upgrade to 2.14.
+
+The most notable feature of this release is the inclusion of acceleration
+support, both RENDER and XVIDEO, for Sandy Bridge; note that this requires
+a 2.6.37 kernel. In improving the acceleration code paths to support Sandy
+Bridge, we were also able to improve the performance of the general i965+
+RENDER acceleration. For example on i3, glyph (aa10 and rgb10) performance
+is about 3x faster, as is performing small copies between windows, with the
+improvement becoming negligible once you hit around 100 pixels square.
+
+
+Snapshot 2.13.903 (2010-01-04)
+==============================
+This is the second release candidate in preparation for the upcoming
+2.14.0 release, and if no showstoppers turn up in wider testing will
+become the next release. Besides the usual bug fixes, we've included
+patches by Mario Kleiner to improve vblank handing which both improve the
+timing accuracy and remove a few potential races -- provided you also
+have the corresponding fixes in the kernel.
+
+Bug fixes
+---------
+
+ * Crash on hot-unpluging with an active fullscreen GL application, e.g. a
+ compositing WM or video player
+ https://bugs.freedesktop.org/show_bug.cgi?id=32770
+
+ * Freeze upon maximising client-side software renderers, e.g. flash.
+ https://bugs.freedesktop.org/show_bug.cgi?id=31367
+
+ * Fix confusion over G35 generation
+ https://bugs.freedesktop.org/show_bug.cgi?id=32478
+
+
+Snapshot 2.13.902 (2010-12-10)
+==============================
+This is the first release candidate in preparation for the upcoming
+2.14.0 release. Sandybridge support should be now be ready for use,
+and we will appreciate any feedback we can get from this snapshot.
+Improving the code base for Sandybridge should also have had knock
+on effects for earlier chips as well, in particular Ironlake and to
+a lesser extent i965.
+
+New requirements compared to 2.13
+---------------------------------
+ * Librdrm >= 2.4.23
+
+Bug fixes
+---------
+
+ * Crash after failing to allocate memory
+ https://bugs.freedesktop.org/show_bug.cgi?id=31487
+
+ * EFAULT during pwrite
+ https://bugs.freedesktop.org/show_bug.cgi?id=29752
+
+ * Mark outputs as on and restore backlight after mode-set
+
+ * A hang with i965+ with newer kernels.
+
+
+Snapshot 2.13.901 (2010-11-05)
+==============================
+This is an intermediate snapshot of ongoing driver development. The
+primary purpose of this snapshot is to capture some recent
+improvements, (particularly in Sandybridge support), for further
+testing.
+
+Release 2.13.0 (2010-09-30)
+===========================
+We are pleased to announce this major release of the xf86-video-intel
+driver, on schedule at 3 months since 2.12.0. With the many bug fixes
+in this release, we encourage everyone using 2.12 to upgrade to 2.13.
+
+[This release is functionally identical to the earlier 2.12.902
+release candidate.]
+
+New requirements compared to 2.12
+---------------------------------
+ * Librdrm >= 2.4.22
+
+Bug fixes
+---------
+ * Attempt to fix infinite MI_WAIT_FOR_EVENT while watching video
+ https://bugs.freedesktop.org/show_bug.cgi?id=28964
+
+ [Various new checks have been added to the video code here, but the
+ bug fix hasn't yet been verified by the original reporter.]
+
+ * Fix buffer-object leak
+ https://bugs.freedesktop.org/show_bug.cgi?id=26946
+
+ * Fix memory leak on server reset
+
+ * Fix crash due to unchecked pixmap allocation
+ https://bugs.freedesktop.org/show_bug.cgi?id=29187
+
+ * Fix for video artifacts when using dualscreen
+ https://bugs.freedesktop.org/show_bug.cgi?id=29213
+
+ * Fix for incorrect characters in gnome-terminal when using compiz
+ https://bugs.freedesktop.org/show_bug.cgi?id=28438
+
+ * Fix for hanging, full-screen applications, (flash, compiz, etc.)
+ https://bugs.freedesktop.org/show_bug.cgi?id=29584
+
+ * Fix selection of backlight device on multi-GPU systems
+ https://bugs.freedesktop.org/show_bug.cgi?id=29273
+
+ * Fix to avoid crash with extremely large glyphs
+ https://bugs.freedesktop.org/show_bug.cgi?id=29430
+
+ * Fix for eDP panels incorrectly being given only a single, valid mode
+ https://bugs.freedesktop.org/show_bug.cgi?id=30069
+
+ * Fix GPU hang involving clipped SRC copies
+ https://bugs.freedesktop.org/show_bug.cgi?id=30120
+
+ * Fix to compile for 1.6 series X server.
+
+ * Fix to retry framebuffer allocation after an initial failure.
+
+ * Fix to disable dri2 after fallbacks are forced on.
+
+Snapshot 2.12.902 (2010-09-28)
+==============================
+This is the second release candidate in preparation for the upcoming
+2.13.0 release. The comes exactly one week after 2.12.902 and includes
+only a handful of changes.
+
+One significant change is that the drive now requires libdrm 2.4.22
+(or newer), as several people reported compilation failures of
+xf86-video-intel 2.12.901 with libdrm 2.4.21.
+
+Other changes include a fix to compile for the 1.6 series X server, a
+fix to retry framebuffer allocation after an initial failure, and a
+fix to disable dri2 after fallbacks are forced on.
+
+Snapshot 2.12.901 (2010-09-21)
+==============================
+This is the first release candidate in preparation for the upcoming
+2.13.0 release. We will appreciate any feedback we can get from
+testing of this snapshot.
+
+Bugs fixed in this snapshot (compared to 2.12.0)
+------------------------------------------------
+ * Attempt to fix infinite MI_WAIT_FOR_EVENT while watching video
+ https://bugs.freedesktop.org/show_bug.cgi?id=28964
+
+ [Various new checks have been added to the video code here, but the
+ bug fix hasn't yet been verified by the original reporter.]
+
+ * Fix buffer-object leak
+ https://bugs.freedesktop.org/show_bug.cgi?id=26946
+
+ * Fix memory leak on server reset
+
+ * Fix crash due to unchecked pixmap allocation
+ https://bugs.freedesktop.org/show_bug.cgi?id=29187
+
+ * Fix for video artifacts when using dualscreen
+ https://bugs.freedesktop.org/show_bug.cgi?id=29213
+
+ * Fix for incorrect characters in gnome-terminal when using compiz
+ https://bugs.freedesktop.org/show_bug.cgi?id=28438
+
+ * Fix for hanging, full-screen applications, (flash, compiz, etc.)
+ https://bugs.freedesktop.org/show_bug.cgi?id=29584
+
+ * Fix selection of backlight device on multi-GPU systems
+ https://bugs.freedesktop.org/show_bug.cgi?id=29273
+
+ * Fix to avoid crash with extremely large glyphs
+ https://bugs.freedesktop.org/show_bug.cgi?id=29430
+
+ * Fix for eDP panels incorrectly being given only a single, valid mode
+ https://bugs.freedesktop.org/show_bug.cgi?id=30069
+
+ * Fix GPU hang involving clipped SRC copies
+ https://bugs.freedesktop.org/show_bug.cgi?id=30120
+
+Release 2.12.0 (2010-06-24)
+===========================
+We are pleased to announce this major release of the xf86-video-intel
+2D driver. It contains many correctness and performance improvements
+compared to the 2.11 releases. We encourage everyone using 2.11 to
+upgrade to 2.12.
+
+[This release contains several bug fixes since the earlier 2.11.901
+release candidate---see below for details.]
+
+New requirements compared to 2.11
+---------------------------------
+ * Libdrm >= 2.4.21
+
+Major performance improvements
+------------------------------
+There have been many performance improvements targeting the
+915G/945G/Pineview graphics chipsets (thank to Chris Wilson!). Areas
+improved include:
+
+ * Major improvements to glyph rendering
+
+ * Avoid software fallback when using extended desktops, (for example,
+ video playback)
+
+ * Better performance when using large windows, (for example with
+ firefox scrolling)
+
+ * Avoiding migration ping-pong with gigantic drawing
+
+The following speedups (measured with cairo-perf-trace/cairo-traces)
+capture some of the improvements. These were measured on a Pineview
+system with X server 1.8.1. This compares how this 2.12 release
+improves performance compared to 2.11.0:
+
+ Trace Speedup
+ ----- -------
+ ocitysmap 5.41x speedup
+ firefox-talos-gfx 2.41x speedup
+ gnome-terminal-vim 2.15x speedup
+ poppler 1.86x speedup
+ firefox-planet-gnome 1.43x speedup
+ midori-zoomed 1.39x speedup
+ swfdec-giant-steps 1.36x speedup
+ xfce4-terminal-a1 1.17x speedup
+ evolution 1.09x speedup
+ swfdec-youtube 1.06x speedup
+
+Other improvements
+------------------
+Daniel Vetter improved Xvmc and overlay, adding GEM support.
+
+Bug fixes
+---------
+There have been many conformance improvements targeting the
+915G/945G/Pineview graphics chipsets. The rendercheck test suite
+passes once again and there has been a significant reduction in the
+number of errors detected by the cairo test suite (notably center
+sampling and EXTEND_NONE behaviors are fixed).
+
+Other notable bug fixes include:
+
+ * Fix for bug 28446 Garbled fonts with Mathematica
+ https://bugs.freedesktop.org/show_bug.cgi?id=28446
+
+ * Fixes for page-flipping and other DRI2-handling bugs, (Thanks Jesse
+ Barnes, and Kristian Høgsberg)
+
+ * Avoid corruption when using extended desktops, (for example, video
+ playback)
+
+(The bug fixes below are new since the 2.11.901 release candidate)
+
+ * Fix corrupted output when screen rotated
+ https://bugs.freedesktop.org/show_bug.cgi?id=28461
+
+ * Fix corrupted rendering in KDE due to missing flush.
+
+ * Fixes i830_uxa_put_image for the following issues:
+
+ Bug 28569 - [i965] IGN's flash-based video player crashes X
+ https://bugs.freedesktop.org/show_bug.cgi?id=28569
+
+ Bug 28573 - [i965] Fullscreen flash and windowed SDL games fail to
+ update the screen
+ https://bugs.freedesktop.org/show_bug.cgi?id=28573
+
+ * Fix visual corruption of scrollbar in Chromium
+
+ * Fix tiling limits to resolve this issue:
+
+ Bug 28497 - Graphics corruption after opening a specific website
+ https://bugs.freedesktop.org/show_bug.cgi?id=28497
+
+Snapshot 2.11.901 (2010-06-14)
+==============================
+This is the first release candidate in preparation for the upcoming
+2.12.0 release. We will appreciate any feedback we can get from
+testing of this snapshot to improve the 2.12.0 release.
+
+New requirements compared to 2.10
+---------------------------------
+ * Libdrm >= 2.4.19
+
+Major performance improvements
+------------------------------
+There have been many performance improvements targeting the
+915G/945G/Pineview graphics chipsets (thank to Chris Wilson!). Areas
+improved include:
+
+ * Major improvements to glyph rendering
+
+ * Avoid software fallback when using extended desktops, (for example,
+ video playback)
+
+ * Better performance when using large windows, (for example with
+ firefox scrolling)
+
+ * Avoiding migration ping-pong with gigantic drawing
+
+The following speedups (measured with cairo-perf-trace/cairo-traces)
+capture some of the improvements. These were measured on a Pineview
+system with a very recent X server, (from git just before 1.8.1). This
+compares how this 2.12 release candidate improves performance compared
+to 2.11.0:
+
+ Trace Speedup
+ ----- -------
+ ocitysmap 5.41x speedup
+ firefox-talos-gfx 2.41x speedup
+ gnome-terminal-vim 2.15x speedup
+ poppler 1.86x speedup
+ firefox-planet-gnome 1.43x speedup
+ midori-zoomed 1.39x speedup
+ swfdec-giant-steps 1.36x speedup
+ xfce4-terminal-a1 1.17x speedup
+ evolution 1.09x speedup
+ swfdec-youtube 1.06x speedup
+
+Other improvements
+------------------
+Daniel Vetter improved Xvmc and overlay, adding GEM support.
+
+Bug fixes
+---------
+There have been many conformance improvements targeting the
+915G/945G/Pineview graphics chipsets. The rendercheck test suite
+passes once again and there has been a significant reduction in the
+number of errors detected by the cairo test suite (notably center
+sampling and EXTEND_NONE behaviors are fixed).
+
+Other notable bug fixes include:
+
+ * Fix for bug 28446 Garbled fonts with Mathematica
+ https://bugs.freedesktop.org/show_bug.cgi?id=28446
+
+ * Fixes for page-flipping and other DRI2-handling bugs, (Thanks Jesse
+ Barnes, and Kristian Høgsberg)
+
+ * Avoid corruption when using extended desktops, (for example, video
+ playback)
+
+Release 2.11.0 (2010-03-29)
+===========================
+New in 2.11: DRI2 and page flipping
+-----------------------------------
+The most significant new feature of this release is support for new
+DRI2 APIs, allowing page flipping to occur for swaps that are
+full-screen and not rotated.
+
+Performance improvements in 2.11 compared to 2.10
+-------------------------------------------------
+Dramatically improved performance of large pixmaps on
+memory-constrained hardware, (such as 945), by using tiling.
+Note that this fix is new since the most recent release
+candidate for this release (2.10.903).
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=25375
+
+Elimination of software fallback with alpha-only pixmap (a fix which
+eliminated a full second from the Moblin boot time):
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=26189
+
+Notable bug fixes in 2.11 compared to 2.10
+------------------------------------------
+Fix for undesired black borders on some images, (caued several
+problems with firefox):
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=17933
+
+And other fixes to provide more conformance with existing
+software-rendering, (as measures by the cairo test suite), such as the
+sampling location for nearest-neighbor sampling.
+
+Other changes
+-------------
+Eric Anholt and Daniel Vetter both removed large piles of old and
+useless code now that the driver requires kernel modesetting
+(KMS). This continues to reduce the mainteance burden of the driver,
+making it easier to isolate and fix bugs.
+
+Snapshot 2.10.903 (2010-03-22)
+==============================
+Some notable bug fixes
+----------------------
+* Fix unpredictable results in page-flipping code due to access of an
+ uninitialized variable.
+
+* Two fixes that address a number of long-outstanding failures in the
+ cairo test suite:
+
+ Remove coord-adjust for nearest centre-sampling.
+
+ Fill alpha on xrgb images. Closes:
+
+ Bug 17933 - x8r8g8b8 doesn't sample alpha=0 outside surface bounds
+ http://bugs.freedesktop.org/show_bug.cgi?id=17933
+
+* Fix a regression introduced in 2.10.902:
+
+ Fatal server error:
+ i915_emit_composite_setup: ADVANCE_BATCH:
+ under-used allocation 100/104
+
+ Bug 21723 [i915 bisected] rendering makes X crash
+ http://bugs.freedesktop.org/show_bug.cgi?id=27123
+
+Other minor fixes (avoid trying to print an error message with a freed
+string, set a variable to NULL after freeing), and documentation
+updates are also included.
+
+Snapshot 2.10.902 (2010-03-15)
+==============================
+Some significant bug fixes
+--------------------------
+Fix video color problems due to YUV plane ordering issue. This fixed a
+regression that showed up recently (only in these release candidates).
+
+Fix recent regression leading to corruption under compiz:
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=26814
+
+Further DRI2 improvements/fixes from Mario Kleiner and Jesse Barnes,
+(including support for SwapBuffers request with divisor != 0).
+
+Fix build against X server 1.6 branch.
+
+Avoid flooding logs after an error occurs.
+
+And dramatic code cleanups
+--------------------------
+Eric Anholt removed several cases of old, useless code, (conditions
+that could not occur now that we require KMS, etc.).
+
+Daniel Vetter eliminated piles of code by modernizing the XvMC
+memory-management and completely removing the old i830_memory
+allocator (i830_allocate_memory, i830_free_memory), etc.
+
+Snapshot 2.10.901 (2010-02-26)
+==============================
+The most significant new feature of this release is support for new
+DRI2 APIs, allowing page flipping to occur for swaps that are
+full-screen and not rotated.
+
+Some significant bug fixes
+--------------------------
+* Avoid fallback due to failing to extract pixel value from an
+ alpha-only solid, (this fix eliminated 1 second from Mobilin boot
+ time).
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=26189
+
+* Handle full-height blits without tearing in CopyRegion
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=22475
+
+Several other fixes and cleanups are included as well, (including the
+removal of stale utility code that is now maintained in the separate
+intel-gpu-tools module).
+
+Release 2.10.0 (2010-01-04)
+===========================
+New requirements of 2.10 compared to 2.9
+----------------------------------------
+ * Linux kernel with kernel-modesetting (KMS)
+
+ All user-modesetting code has now been removed from the driver.
+ We highly recommend kernel version 2.6.32 or later.
+
+ * Libdrm >= 2.4.16
+
+New features in 2.10 compared to 2.9
+------------------------------------
+ * New driver debugging options available in xorg.conf
+ (DebugFlushBatches, DebugFlushCaches, DebugWait). See "man intel"
+ for more details.
+
+ * Video overlay support with KMS. This currently requires Linux
+ 2.6.33, but a backport to 2.6.32 is available here:
+
+ http://gitorious.org/daniel-s-linux-stuff/linux-kernel/commits/intel-kms-overlay-for-2.6.32
+
+Notable fixes in 2.10 compared to 2.9
+-----------------------------------
+ * Fix crash when XRenderComposite is called with a -1 value for
+ width/height, (crash at login when using compiz).
+
+ http://bugs.freedesktop.org/show_bug.cgi?id=24724
+
+ * Fix to support larger extended desktops, (such as a 2560x1600 plus a
+ 1920x1200 monitor).
+
+
+ * Fix glyph corruption due to insufficient cache flushing:
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=24315
+
+Several other correctness and performance fixes are also included.
+
+Note: The driver code of the 2.10.0 release is identical to that of
+the 2.9.99.901 release candidate. The only changes in 2.10.0 compared
+to 2.9.99.902 are a minor change to the configure script, and some
+small updates to the documentation.
+
+Snapshot 2.9.99.902 (2009-12-10)
+================================
+This is the second release candidate in preparation for the upcoming
+2.10.0 release. We will appreciate any feedback we can get from
+testing of this snapshot to improve the 2.10.0 release.
+
+Compared to the previous snapshot, this snapshot now correctly
+verifies that libdrm 2.4.16 (or newer) is available. The previous
+snapshot also required libdrm 2.4.16 for correct functionality, but
+neglected to notify the user of this at configure, compile, or install
+time and would instead simply fail to run.
+
+Snapshot 2.9.99.901 (2009-11-30)
+================================
+This is the first release candidate in preparation for the upcoming
+2.10.0 release. We will appreciate any feedback we can get from
+testing of this snapshot to improve the 2.10.0 release.
+
+With this snapshot, the xf86-video-intel driver requires kernel
+modesetting (KMS) as all of the user modesetting (UMS) support has
+been removed from the driver.
+
+Release 2.9.0 (2009-09-28)
+==========================
+We are pleased to announce the 2.9.0 release of the xf86-video-intel
+driver. (If you have been following along at home, this release is
+identical to the 2.8.99.902 release candidate other than the version
+number).
+
+New features in 2.9 compared to 2.8
+-----------------------------------
+* Support for the B43 chipset.
+
+Major fixes in 2.9.0 compared to 2.8.0
+--------------------------------------
+* Multiple fixes to make the driver stable for 8xx chipsets, (855GM,
+ 865G, etc.). The 2.8 driver series was extremely unstable with many
+ of these chipsets.
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=22904 (and many duplicates)
+ https://bugs.freedesktop.org/show_bug.cgi?id=22947
+
+* Add support for BACKLIGHT property when using kernel modesetting
+ (KMS). This allows backlight adjustment with programs such as
+ "xbacklight -set <percentage>" or "xrandr --set BACKLIGHT <value>".
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=20963
+
+* Fix so that "xrandr --scale" works when using KMS.
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=22893
+
+* Fix segfaults of X server when logging out.
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=20516
+
+* Avoid falling back to software for 1-bit alpha-only masks.
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=23184
+
+* Fix pixel sampling position for 8xx chipsets, (fixes some cairo-test
+ suite failures).
+
+Snapshot 2.8.99.901 (2009-09-09)
+================================
+This is the first release candidate in preparation for the upcoming
+2.9.0 release. We will appreciate any feedback we can get from testing
+of this snapshot to improve the 2.9.0 release.
+
+See the commit log for changes in this release, and developers, please
+provide me summaries for any major features in this release that you
+think should appear in NEWS and in the 2.9.0 release notes.
+
+Note: We are still investigating failures with 865G chipsets, (these
+failures existed in the 2.8 series as well). We are hoping to fix
+these failures before the 2.9.0 release.
+
+Release 2.8.0 (2009-07-20)
+==========================
+We are pleased to present this major release of the xf86-video-intel
+driver. This release is very similar to the 2.7.99.902 release
+candidate but includes a couple of additional bug fixes, (for bugs
+#22760 and @22483).
+
+Compared to the 2.7 releases this driver contains several new features
+and many bug fixes. The driver now depends on X server 1.6 or later,
+and eliminates several obsolete code paths, (XAA and EXA removed in
+favor of UXA, DRI1 support eliminated). The driver certainly will work
+best with an i915 module from a recent kernel (2.6.31) and with
+kernel-modesetting (KMS, specified by loading i915 with the option
+"modeset=1").
+
+New features in 2.8.0 compared to 2.7
+-------------------------------------
+* Remove XAA/EXA/DRI1 and NoAccel, and only support UXA/DRI2 now
+ (requiring xserver 1.6).
+
+* VLD support added into XvMC for Mpeg2, which decreases CPU usage
+ when playing video.
+
+Major fixes in 2.8.0 compared to 2.7
+------------------------------------
+* Fix broken front-buffer rendering
+ https://bugs.freedesktop.org/show_bug.cgi?id=19174
+
+* Fix disabling of XvMC disabled
+ https://bugs.freedesktop.org/show_bug.cgi?id=20790
+
+* Fix broken VT switch on some machines
+ https://bugs.freedesktop.org/show_bug.cgi?id=19578
+
+* Improve performance of trapezoid rendering for UXA
+ https://bugs.freedesktop.org/show_bug.cgi?id=21376
+
+* Vblank sync'd GL buffer swap (fixing video tearing under composite)
+ https://bugs.freedesktop.org/show_bug.cgi?id=20664
+
+* Fix G41 DRM support
+ https://bugs.freedesktop.org/show_bug.cgi?id=21095
+
+* Fix crash on some 8xx
+ https://bugs.freedesktop.org/show_bug.cgi?id=18974
+
+Various fixes for GPU hangs, and more...
+
+Snapshot 2.7.99.902 (2009-07-13)
+--------------------------------
+This is the first release candidate in preparation for the upcoming
+2.8.0 release. Most major and critical bugs should be fixed, but some
+minor bugs may still be present. We will appreciate any feedback we
+can get from testing of this snapshot to improve the 2.8.0 release.
+
+Snapshot 2.7.99.901 (2009-06-10)
+--------------------------------
+This is the first release candidate in preparation for the upcoming
+2.8.0 release. Most critical bugs should be fixed, but some major
+bugs may still be present. We will appreciate any feedback we can
+get from testing of this snapshot to improve the 2.8.0 release.
+
+Some of the major fixes in this snapshot include:
+
+ * Several fixes for intermittent GPU hangs/crashes, (some of
+ which already appeared in the 2.7.1 release)
+
+ * Fix to avoid X crash when viewing large images in browser
+
+ * Fix X server failure when running old (non-GEM) kernel
+
+ * Fixes for SDVO LVDS mode detection
+
+ * Fix major performance regression of trapezoid rendering
+ compared to XAA/EXA
+
+ * New support for tear-free video when using KMS
+
+ * New support for tear-free DRI2 CopyRegion
+
+Snapshot 2.7.99.1 (2009-04-28)
+------------------------------
+This is a development snapshot very early in the process toward
+developing 2.8. There have been some big changes to the code, and
+we're anxious to get feedback on these changes as early as possible.
+
+Here is a summary of the biggest changes:
+
+ * Driver now depends on X server 1.6 or later
+
+ * Eliminate XAA and EXA support (in favor of UXA)
+
+ * Eliminate DRI1 support
+
+ * Fixes for running without DRI at all
+
+These code removals represent a deletion of a substantial amount of
+code, (and hopefully piles of bugs), as well as reduce the maintenance
+effort going forward as the number of combinatorial configurations for
+the driver are greatly reduced. This means that users are much more
+likely to be running code that has actually been tested, and it will
+be much easy for developers to replicate bugs that users experience.
+
+One of the things that would be most useful in testing this release is
+to revisit any outstanding bugs that you have previously reported. If
+the buggy behavior is gone, (or the bug is no longer relevant---such
+as a bug that's specific to XAA only), please feel free to indicate so
+in bugzilla or even just close the bug.
+
+If you confirm that the bug is still present, please indicate so in
+the bug report. (I was going to ask that you select a 1.7.99 version,
+but it looks like bugzilla only has versions for products not
+compoenents, while we use a "xorg" product and a "driver/intel"
+component.) We definitely want to make any such confirmed bugs a
+priority, so it would be nice to have a consistent mechanism to search
+for these bugs. Suggestions are welcome on the best approach.
+
+Thanks in advance for any testing or feedback on this snapshot.
+
+Release 2.7.0 (2009-04-15)
+--------------------------
+Compared to the 2.6 series, 2.7.0 has a large number of bug fixes, but
+also a few significant features, such as:
+
+ SDVO-TV support, available on ADD2 card (bug#9992) and
+ D945GCLF2 board (bug#17776).
+
+ Basic SDVO-LVDS support
+
+ XV video display without tearing
+ [Though this isn't working for all users yet, see
+ https://bugs.freedesktop.org/show_bug.cgi?id=21076 ]
+
+ Various fixes for UXA, DRI2, and Kernel modesetting.
+
+We encourage users to use kernel modesetting and UXA acceleration with
+this release, which should give the best performance and
+robustness. When KMS is available, UXA is the default acceleration
+used by the driver, (EXA is the default otherwise).
+
+Known issue:
+
+ Some Linux kernel versions (such as 2.6.29) are known to have
+ broken PAT code that causes recent versions of this driver to
+ fail, (which can manifest as the X server simply not
+ starting). This can be verified by adding the "nopat" option
+ to the kernel command-line and seeing the failure go away. We
+ hope that newer kernels in the 2.6.29.x as well as 2.6.30 and
+ above will have working PAT code.
+
+Some of the most notable bugs fixed in 2.7.0 include:
+
+ [GM45 965GM] bad htotal causes panel startup failure
+ https://bugs.freedesktop.org/show_bug.cgi?id=17292
+
+ [xrandr TV] need TV output property control
+ https://bugs.freedesktop.org/show_bug.cgi?id=12763
+
+ [TV] "xrandr --set TV_FORMAT" gets BadMatch error
+ https://bugs.freedesktop.org/show_bug.cgi?id=16566
+
+ [945 tiling] Low performance due to no A17 workaround
+ https://bugs.freedesktop.org/show_bug.cgi?id=16835
+
+ [TV]Flicker when launching applications in the 2.4-branch
+ https://bugs.freedesktop.org/show_bug.cgi?id=17405
+
+ [945GM FBC] FBC causes underruns & flicker
+ https://bugs.freedesktop.org/show_bug.cgi?id=18651
+
+ [xv] Textured video suffers from tearing
+ https://bugs.freedesktop.org/show_bug.cgi?id=19635
+
+ [G45] Random hangs with UXA
+ https://bugs.freedesktop.org/show_bug.cgi?id=19734
+
+ [945GM] Any 3D app is slow in resolution higher than 800x600
+ with UXA+DRI2, due to tiling
+ https://bugs.freedesktop.org/show_bug.cgi?id=19738
+
+ [i915 UXA,EXA] rotation messes display with tiling on
+ https://bugs.freedesktop.org/show_bug.cgi?id=20265
+
+ [G45] DRI2/UXA gives solid white instead of transparency
+ https://bugs.freedesktop.org/show_bug.cgi?id=20321
+
+ LVDS output not detected
+ https://bugs.freedesktop.org/show_bug.cgi?id=20517
+
+ xf86-video-intel-2.6.3: Xv crashes X server
+ https://bugs.freedesktop.org/show_bug.cgi?id=20525
+
+ [G965 non-GEM] systray in KDE 4 completely broken
+ https://bugs.freedesktop.org/show_bug.cgi?id=20527
+
+ [SDVO-TV]the desktop is teared in four sections on the screen
+ https://bugs.freedesktop.org/show_bug.cgi?id=20550
+
+ Intel video driver 2.6.3 crashes with XVideo
+ https://bugs.freedesktop.org/show_bug.cgi?id=20563
+
+ [855GM] Xv crash with non-KMS
+ https://bugs.freedesktop.org/show_bug.cgi?id=20585
+
+ 2.6.99.902 breaks native 1680x1050 mode on TMDS -- EDID miss
+ https://bugs.freedesktop.org/show_bug.cgi?id=20594
+
+ [945GM TV] 2.6.99.902 sets a too high CONTRAST-value
+ https://bugs.freedesktop.org/show_bug.cgi?id=20670
+
+ [915GM] fail to detect LVDS with new VBT code
+ https://bugs.freedesktop.org/show_bug.cgi?id=20752
+
+ [regression i965]tiled output when start X
+ https://bugs.freedesktop.org/show_bug.cgi?id=20803
+
+ 2.6.99.902: LVDS wrongly detected as disconnected
+ https://bugs.freedesktop.org/show_bug.cgi?id=20826
+
+ vt switching fails and crashes X
+ https://bugs.freedesktop.org/show_bug.cgi?id=20863
+
+ [HDMI] The screen will flicker when some application runs on
+ G45-64
+ https://bugs.freedesktop.org/show_bug.cgi?id=20875
+
+ TexturedVideo is offsetted wrongly on dualhead
+ https://bugs.freedesktop.org/show_bug.cgi?id=20980
+
+ [EXA] xvideo hang X
+ https://bugs.freedesktop.org/show_bug.cgi?id=21027
+
+ [EXA] x11perf performance regression
+ https://bugs.freedesktop.org/show_bug.cgi?id=21029
+
+ And many others...
diff --git a/README b/README
new file mode 100644
index 0000000..dc64ff7
--- /dev/null
+++ b/README
@@ -0,0 +1,49 @@
+xf86-video-intel
+Open-source X.org graphics driver for Intel graphics
+http://www.intellinuxgraphics.com/
+
+What is xf86-video-intel
+------------------------
+The xf86-video-intel module is an open-source 2D graphics driver for
+the X Window System as implemented by X.org. It supports a variety of
+Intel graphics chipsets including:
+
+ i810/i810e/i810-dc100,i815,
+ i830M,845G,852GM,855GM,865G,
+ 915G/GM,945G/GM/GME,946GZ
+ G/GM/GME/Q965,
+ G/Q33,G/Q35,G41,G/Q43,G/GM/Q45
+ PineView-M (Atom N400 series)
+ PineView-D (Atom D400/D500 series)
+
+Where to get more information about the driver
+----------------------------------------------
+The primary source of information about this and other open-source
+drivers for Intel graphics is:
+
+ http://intellinuxgraphics.org/
+
+Documentation specific to the xf86-video-intel driver including
+possible configuration options for the xorg.conf file can be found in
+the intel(4) manual page. After installing the driver this
+documentation can be read with the following command:
+
+ man intel
+
+Mailing list for communication with users and developers of
+xf86-video-intel:
+
+ intel-gfx@lists.freedesktop.org
+
+ Note: Subscription is required before posting, but anyone is
+ free to subscribe. See instructions (and archives) here:
+
+ http://lists.freedesktop.org/mailman/listinfo/intel-gfx
+
+To report bugs encountered with the driver, see:
+
+ http://intellinuxgraphics.org/how_to_report_bug.html
+
+To see bugs that are targeted to be fixed in the next release:
+
+ https://bugs.freedesktop.org/show_bug.cgi?id=intel-2d-release
diff --git a/aclocal.m4 b/aclocal.m4
new file mode 100644
index 0000000..92525c7
--- /dev/null
+++ b/aclocal.m4
@@ -0,0 +1,2489 @@
+# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.67],,
+[m4_warning([this file was generated for autoconf 2.67.
+You have another version of autoconf. It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
+
+# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
+# serial 1 (pkg-config-0.24)
+#
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
+# ----------------------------------
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
+AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
+AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
+
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+ AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
+fi
+if test -n "$PKG_CONFIG"; then
+ _pkg_min_version=m4_default([$1], [0.9.0])
+ AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ PKG_CONFIG=""
+ fi
+fi[]dnl
+])# PKG_PROG_PKG_CONFIG
+
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
+#
+# Check to see whether a particular set of modules exists. Similar
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
+#
+# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+# only at the first occurence in configure.ac, so if the first place
+# it's called might be skipped (such as if it is within an "if", you
+# have to call PKG_CHECK_EXISTS manually
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_EXISTS],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+if test -n "$PKG_CONFIG" && \
+ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
+ m4_default([$2], [:])
+m4_ifvaln([$3], [else
+ $3])dnl
+fi])
+
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
+# ---------------------------------------------
+m4_define([_PKG_CONFIG],
+[if test -n "$$1"; then
+ pkg_cv_[]$1="$$1"
+ elif test -n "$PKG_CONFIG"; then
+ PKG_CHECK_EXISTS([$3],
+ [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
+ [pkg_failed=yes])
+ else
+ pkg_failed=untried
+fi[]dnl
+])# _PKG_CONFIG
+
+# _PKG_SHORT_ERRORS_SUPPORTED
+# -----------------------------
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi[]dnl
+])# _PKG_SHORT_ERRORS_SUPPORTED
+
+
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
+# [ACTION-IF-NOT-FOUND])
+#
+#
+# Note that if there is a possibility the first call to
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
+#
+#
+# --------------------------------------------------------------
+AC_DEFUN([PKG_CHECK_MODULES],
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
+
+pkg_failed=no
+AC_MSG_CHECKING([for $1])
+
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
+
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
+and $1[]_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.])
+
+if test $pkg_failed = yes; then
+ AC_MSG_RESULT([no])
+ _PKG_SHORT_ERRORS_SUPPORTED
+ if test $_pkg_short_errors_supported = yes; then
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
+ else
+ $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
+
+ m4_default([$4], [AC_MSG_ERROR(
+[Package requirements ($2) were not met:
+
+$$1_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+_PKG_TEXT])[]dnl
+ ])
+elif test $pkg_failed = untried; then
+ AC_MSG_RESULT([no])
+ m4_default([$4], [AC_MSG_FAILURE(
+[The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+_PKG_TEXT
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
+ ])
+else
+ $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
+ $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
+ AC_MSG_RESULT([yes])
+ $3
+fi[]dnl
+])# PKG_CHECK_MODULES
+
+dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure.
+dnl
+dnl Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
+dnl
+dnl Permission is hereby granted, free of charge, to any person obtaining a
+dnl copy of this software and associated documentation files (the "Software"),
+dnl to deal in the Software without restriction, including without limitation
+dnl the rights to use, copy, modify, merge, publish, distribute, sublicense,
+dnl and/or sell copies of the Software, and to permit persons to whom the
+dnl Software is furnished to do so, subject to the following conditions:
+dnl
+dnl The above copyright notice and this permission notice (including the next
+dnl paragraph) shall be included in all copies or substantial portions of the
+dnl Software.
+dnl
+dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+dnl DEALINGS IN THE SOFTWARE.
+
+# XORG_MACROS_VERSION(required-version)
+# -------------------------------------
+# Minimum version: 1.1.0
+#
+# If you're using a macro added in Version 1.1 or newer, include this in
+# your configure.ac with the minimum required version, such as:
+# XORG_MACROS_VERSION(1.1)
+#
+# To ensure that this macro is defined, also add:
+# m4_ifndef([XORG_MACROS_VERSION],
+# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])])
+#
+#
+# See the "minimum version" comment for each macro you use to see what
+# version you require.
+m4_defun([XORG_MACROS_VERSION],[
+m4_define([vers_have], [1.12.0])
+m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.])))
+m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.])))
+m4_if(m4_cmp(maj_have, maj_needed), 0,,
+ [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])])
+m4_if(m4_version_compare(vers_have, [$1]), -1,
+ [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])])
+m4_undefine([vers_have])
+m4_undefine([maj_have])
+m4_undefine([maj_needed])
+]) # XORG_MACROS_VERSION
+
+# XORG_PROG_RAWCPP()
+# ------------------
+# Minimum version: 1.0.0
+#
+# Find cpp program and necessary flags for use in pre-processing text files
+# such as man pages and config files
+AC_DEFUN([XORG_PROG_RAWCPP],[
+AC_REQUIRE([AC_PROG_CPP])
+AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}],
+ [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib])
+
+# Check for flag to avoid builtin definitions - assumes unix is predefined,
+# which is not the best choice for supporting other OS'es, but covers most
+# of the ones we need for now.
+AC_MSG_CHECKING([if $RAWCPP requires -undef])
+AC_LANG_CONFTEST([Does cpp redefine unix ?])
+if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
+ AC_MSG_RESULT([no])
+else
+ if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
+ RAWCPPFLAGS=-undef
+ AC_MSG_RESULT([yes])
+ # under Cygwin unix is still defined even with -undef
+ elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
+ RAWCPPFLAGS="-undef -ansi"
+ AC_MSG_RESULT([yes, with -ansi])
+ else
+ AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.])
+ fi
+fi
+rm -f conftest.$ac_ext
+
+AC_MSG_CHECKING([if $RAWCPP requires -traditional])
+AC_LANG_CONFTEST([Does cpp preserve "whitespace"?])
+if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
+ AC_MSG_RESULT([no])
+else
+ if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
+ RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.])
+ fi
+fi
+rm -f conftest.$ac_ext
+AC_SUBST(RAWCPPFLAGS)
+]) # XORG_PROG_RAWCPP
+
+# XORG_MANPAGE_SECTIONS()
+# -----------------------
+# Minimum version: 1.0.0
+#
+# Determine which sections man pages go in for the different man page types
+# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files.
+# Not sure if there's any better way than just hardcoding by OS name.
+# Override default settings by setting environment variables
+# Added MAN_SUBSTS in version 1.8
+# Added AC_PROG_SED in version 1.8
+
+AC_DEFUN([XORG_MANPAGE_SECTIONS],[
+AC_REQUIRE([AC_CANONICAL_HOST])
+AC_REQUIRE([AC_PROG_SED])
+
+if test x$APP_MAN_SUFFIX = x ; then
+ APP_MAN_SUFFIX=1
+fi
+if test x$APP_MAN_DIR = x ; then
+ APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
+fi
+
+if test x$LIB_MAN_SUFFIX = x ; then
+ LIB_MAN_SUFFIX=3
+fi
+if test x$LIB_MAN_DIR = x ; then
+ LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
+fi
+
+if test x$FILE_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) FILE_MAN_SUFFIX=4 ;;
+ *) FILE_MAN_SUFFIX=5 ;;
+ esac
+fi
+if test x$FILE_MAN_DIR = x ; then
+ FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
+fi
+
+if test x$MISC_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) MISC_MAN_SUFFIX=5 ;;
+ *) MISC_MAN_SUFFIX=7 ;;
+ esac
+fi
+if test x$MISC_MAN_DIR = x ; then
+ MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
+fi
+
+if test x$DRIVER_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) DRIVER_MAN_SUFFIX=7 ;;
+ *) DRIVER_MAN_SUFFIX=4 ;;
+ esac
+fi
+if test x$DRIVER_MAN_DIR = x ; then
+ DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
+fi
+
+if test x$ADMIN_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) ADMIN_MAN_SUFFIX=1m ;;
+ *) ADMIN_MAN_SUFFIX=8 ;;
+ esac
+fi
+if test x$ADMIN_MAN_DIR = x ; then
+ ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
+fi
+
+
+AC_SUBST([APP_MAN_SUFFIX])
+AC_SUBST([LIB_MAN_SUFFIX])
+AC_SUBST([FILE_MAN_SUFFIX])
+AC_SUBST([MISC_MAN_SUFFIX])
+AC_SUBST([DRIVER_MAN_SUFFIX])
+AC_SUBST([ADMIN_MAN_SUFFIX])
+AC_SUBST([APP_MAN_DIR])
+AC_SUBST([LIB_MAN_DIR])
+AC_SUBST([FILE_MAN_DIR])
+AC_SUBST([MISC_MAN_DIR])
+AC_SUBST([DRIVER_MAN_DIR])
+AC_SUBST([ADMIN_MAN_DIR])
+
+XORG_MAN_PAGE="X Version 11"
+AC_SUBST([XORG_MAN_PAGE])
+MAN_SUBSTS="\
+ -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
+ -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
+ -e 's|__xservername__|Xorg|g' \
+ -e 's|__xconfigfile__|xorg.conf|g' \
+ -e 's|__projectroot__|\$(prefix)|g' \
+ -e 's|__apploaddir__|\$(appdefaultdir)|g' \
+ -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
+ -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
+ -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
+ -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
+ -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
+ -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
+AC_SUBST([MAN_SUBSTS])
+
+]) # XORG_MANPAGE_SECTIONS
+
+# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION])
+# ------------------------
+# Minimum version: 1.7.0
+#
+# Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent
+# provided by xorg-sgml-doctools, if installed.
+AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[
+AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])])
+XORG_SGML_PATH=
+PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])],
+ [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`],
+ [m4_ifval([$1],[:],
+ [if test x"$cross_compiling" != x"yes" ; then
+ AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent],
+ [XORG_SGML_PATH=$prefix/share/sgml])
+ fi])
+ ])
+
+# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
+# the path and the name of the doc stylesheet
+if test "x$XORG_SGML_PATH" != "x" ; then
+ AC_MSG_RESULT([$XORG_SGML_PATH])
+ STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
+ XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
+else
+ AC_MSG_RESULT([no])
+fi
+
+AC_SUBST(XORG_SGML_PATH)
+AC_SUBST(STYLESHEET_SRCDIR)
+AC_SUBST(XSL_STYLESHEET)
+AM_CONDITIONAL([HAVE_STYLESHEETS], [test "x$XSL_STYLESHEET" != "x"])
+]) # XORG_CHECK_SGML_DOCTOOLS
+
+# XORG_CHECK_LINUXDOC
+# -------------------
+# Minimum version: 1.0.0
+#
+# Defines the variable MAKE_TEXT if the necessary tools and
+# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt.
+# Whether or not the necessary tools and files are found can be checked
+# with the AM_CONDITIONAL "BUILD_LINUXDOC"
+AC_DEFUN([XORG_CHECK_LINUXDOC],[
+AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
+AC_REQUIRE([XORG_WITH_PS2PDF])
+
+AC_PATH_PROG(LINUXDOC, linuxdoc)
+
+AC_MSG_CHECKING([whether to build documentation])
+
+if test x$XORG_SGML_PATH != x && test x$LINUXDOC != x ; then
+ BUILDDOC=yes
+else
+ BUILDDOC=no
+fi
+
+AM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes])
+
+AC_MSG_RESULT([$BUILDDOC])
+
+AC_MSG_CHECKING([whether to build pdf documentation])
+
+if test x$have_ps2pdf != xno && test x$BUILD_PDFDOC != xno; then
+ BUILDPDFDOC=yes
+else
+ BUILDPDFDOC=no
+fi
+
+AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
+
+AC_MSG_RESULT([$BUILDPDFDOC])
+
+MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt -f"
+MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps"
+MAKE_PDF="$PS2PDF"
+MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0"
+
+AC_SUBST(MAKE_TEXT)
+AC_SUBST(MAKE_PS)
+AC_SUBST(MAKE_PDF)
+AC_SUBST(MAKE_HTML)
+]) # XORG_CHECK_LINUXDOC
+
+# XORG_CHECK_DOCBOOK
+# -------------------
+# Minimum version: 1.0.0
+#
+# Checks for the ability to build output formats from SGML DocBook source.
+# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC"
+# indicates whether the necessary tools and files are found and, if set,
+# $(MAKE_XXX) blah.sgml will produce blah.xxx.
+AC_DEFUN([XORG_CHECK_DOCBOOK],[
+AC_REQUIRE([XORG_CHECK_SGML_DOCTOOLS])
+
+BUILDTXTDOC=no
+BUILDPDFDOC=no
+BUILDPSDOC=no
+BUILDHTMLDOC=no
+
+AC_PATH_PROG(DOCBOOKPS, docbook2ps)
+AC_PATH_PROG(DOCBOOKPDF, docbook2pdf)
+AC_PATH_PROG(DOCBOOKHTML, docbook2html)
+AC_PATH_PROG(DOCBOOKTXT, docbook2txt)
+
+AC_MSG_CHECKING([whether to build text documentation])
+if test x$XORG_SGML_PATH != x && test x$DOCBOOKTXT != x &&
+ test x$BUILD_TXTDOC != xno; then
+ BUILDTXTDOC=yes
+fi
+AM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes])
+AC_MSG_RESULT([$BUILDTXTDOC])
+
+AC_MSG_CHECKING([whether to build PDF documentation])
+if test x$XORG_SGML_PATH != x && test x$DOCBOOKPDF != x &&
+ test x$BUILD_PDFDOC != xno; then
+ BUILDPDFDOC=yes
+fi
+AM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes])
+AC_MSG_RESULT([$BUILDPDFDOC])
+
+AC_MSG_CHECKING([whether to build PostScript documentation])
+if test x$XORG_SGML_PATH != x && test x$DOCBOOKPS != x &&
+ test x$BUILD_PSDOC != xno; then
+ BUILDPSDOC=yes
+fi
+AM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes])
+AC_MSG_RESULT([$BUILDPSDOC])
+
+AC_MSG_CHECKING([whether to build HTML documentation])
+if test x$XORG_SGML_PATH != x && test x$DOCBOOKHTML != x &&
+ test x$BUILD_HTMLDOC != xno; then
+ BUILDHTMLDOC=yes
+fi
+AM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes])
+AC_MSG_RESULT([$BUILDHTMLDOC])
+
+MAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT"
+MAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS"
+MAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF"
+MAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML"
+
+AC_SUBST(MAKE_TEXT)
+AC_SUBST(MAKE_PS)
+AC_SUBST(MAKE_PDF)
+AC_SUBST(MAKE_HTML)
+]) # XORG_CHECK_DOCBOOK
+
+# XORG_WITH_XMLTO([MIN-VERSION], [DEFAULT])
+# ----------------
+# Minimum version: 1.5.0
+# Minimum version for optional DEFAULT argument: 1.11.0
+#
+# Documentation tools are not always available on all platforms and sometimes
+# not at the appropriate level. This macro enables a module to test for the
+# presence of the tool and obtain it's path in separate variables. Coupled with
+# the --with-xmlto option, it allows maximum flexibilty in making decisions
+# as whether or not to use the xmlto package. When DEFAULT is not specified,
+# --with-xmlto assumes 'auto'.
+#
+# Interface to module:
+# HAVE_XMLTO: used in makefiles to conditionally generate documentation
+# XMLTO: returns the path of the xmlto program found
+# returns the path set by the user in the environment
+# --with-xmlto: 'yes' user instructs the module to use xmlto
+# 'no' user instructs the module not to use xmlto
+#
+# Added in version 1.10.0
+# HAVE_XMLTO_TEXT: used in makefiles to conditionally generate text documentation
+# xmlto for text output requires either lynx, links, or w3m browsers
+#
+# If the user sets the value of XMLTO, AC_PATH_PROG skips testing the path.
+#
+AC_DEFUN([XORG_WITH_XMLTO],[
+AC_ARG_VAR([XMLTO], [Path to xmlto command])
+m4_define([_defopt], m4_default([$2], [auto]))
+AC_ARG_WITH(xmlto,
+ AS_HELP_STRING([--with-xmlto],
+ [Use xmlto to regenerate documentation (default: ]_defopt[)]),
+ [use_xmlto=$withval], [use_xmlto=]_defopt)
+m4_undefine([_defopt])
+
+if test "x$use_xmlto" = x"auto"; then
+ AC_PATH_PROG([XMLTO], [xmlto])
+ if test "x$XMLTO" = "x"; then
+ AC_MSG_WARN([xmlto not found - documentation targets will be skipped])
+ have_xmlto=no
+ else
+ have_xmlto=yes
+ fi
+elif test "x$use_xmlto" = x"yes" ; then
+ AC_PATH_PROG([XMLTO], [xmlto])
+ if test "x$XMLTO" = "x"; then
+ AC_MSG_ERROR([--with-xmlto=yes specified but xmlto not found in PATH])
+ fi
+ have_xmlto=yes
+elif test "x$use_xmlto" = x"no" ; then
+ if test "x$XMLTO" != "x"; then
+ AC_MSG_WARN([ignoring XMLTO environment variable since --with-xmlto=no was specified])
+ fi
+ have_xmlto=no
+else
+ AC_MSG_ERROR([--with-xmlto expects 'yes' or 'no'])
+fi
+
+# Test for a minimum version of xmlto, if provided.
+m4_ifval([$1],
+[if test "$have_xmlto" = yes; then
+ # scrape the xmlto version
+ AC_MSG_CHECKING([the xmlto version])
+ xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
+ AC_MSG_RESULT([$xmlto_version])
+ AS_VERSION_COMPARE([$xmlto_version], [$1],
+ [if test "x$use_xmlto" = xauto; then
+ AC_MSG_WARN([xmlto version $xmlto_version found, but $1 needed])
+ have_xmlto=no
+ else
+ AC_MSG_ERROR([xmlto version $xmlto_version found, but $1 needed])
+ fi])
+fi])
+
+# Test for the ability of xmlto to generate a text target
+have_xmlto_text=no
+cat > conftest.xml << "EOF"
+EOF
+AS_IF([test "$have_xmlto" = yes],
+ [AS_IF([$XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1],
+ [have_xmlto_text=yes],
+ [AC_MSG_WARN([xmlto cannot generate text format, this format skipped])])])
+rm -f conftest.xml
+AM_CONDITIONAL([HAVE_XMLTO_TEXT], [test $have_xmlto_text = yes])
+AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = yes])
+]) # XORG_WITH_XMLTO
+
+# XORG_WITH_XSLTPROC([MIN-VERSION], [DEFAULT])
+# --------------------------------------------
+# Minimum version: 1.12.0
+# Minimum version for optional DEFAULT argument: 1.12.0
+#
+# XSLT (Extensible Stylesheet Language Transformations) is a declarative,
+# XML-based language used for the transformation of XML documents.
+# The xsltproc command line tool is for applying XSLT stylesheets to XML documents.
+# It is used under the cover by xmlto to generate html files from DocBook/XML.
+# The XSLT processor is often used as a standalone tool for transformations.
+# It should not be assumed that this tool is used only to work with documnetation.
+# When DEFAULT is not specified, --with-xsltproc assumes 'auto'.
+#
+# Interface to module:
+# HAVE_XSLTPROC: used in makefiles to conditionally generate documentation
+# XSLTPROC: returns the path of the xsltproc program found
+# returns the path set by the user in the environment
+# --with-xsltproc: 'yes' user instructs the module to use xsltproc
+# 'no' user instructs the module not to use xsltproc
+# have_xsltproc: returns yes if xsltproc found in PATH or no
+#
+# If the user sets the value of XSLTPROC, AC_PATH_PROG skips testing the path.
+#
+AC_DEFUN([XORG_WITH_XSLTPROC],[
+AC_ARG_VAR([XSLTPROC], [Path to xsltproc command])
+m4_define([_defopt], m4_default([$2], [auto]))
+AC_ARG_WITH(xsltproc,
+ AS_HELP_STRING([--with-xsltproc],
+ [Use xsltproc for the transformation of XML documents (default: ]_defopt[)]),
+ [use_xsltproc=$withval], [use_xsltproc=]_defopt)
+m4_undefine([_defopt])
+
+if test "x$use_xsltproc" = x"auto"; then
+ AC_PATH_PROG([XSLTPROC], [xsltproc])
+ if test "x$XSLTPROC" = "x"; then
+ AC_MSG_WARN([xsltproc not found - cannot transform XML documents])
+ have_xsltproc=no
+ else
+ have_xsltproc=yes
+ fi
+elif test "x$use_xsltproc" = x"yes" ; then
+ AC_PATH_PROG([XSLTPROC], [xsltproc])
+ if test "x$XSLTPROC" = "x"; then
+ AC_MSG_ERROR([--with-xsltproc=yes specified but xsltproc not found in PATH])
+ fi
+ have_xsltproc=yes
+elif test "x$use_xsltproc" = x"no" ; then
+ if test "x$XSLTPROC" != "x"; then
+ AC_MSG_WARN([ignoring XSLTPROC environment variable since --with-xsltproc=no was specified])
+ fi
+ have_xsltproc=no
+else
+ AC_MSG_ERROR([--with-xsltproc expects 'yes' or 'no'])
+fi
+
+# Checking for minimum version is not implemented
+# but we want to keep the interface consistent with other commands
+m4_ifval([$1],[AC_MSG_WARN(Checking for MIN-VERSION is not implemented.)])
+
+AM_CONDITIONAL([HAVE_XSLTPROC], [test "$have_xsltproc" = yes])
+]) # XORG_WITH_XSLTPROC
+
+
+# XORG_WITH_ASCIIDOC([MIN-VERSION], [DEFAULT])
+# ----------------
+# Minimum version: 1.5.0
+# Minimum version for optional DEFAULT argument: 1.11.0
+#
+# Documentation tools are not always available on all platforms and sometimes
+# not at the appropriate level. This macro enables a module to test for the
+# presence of the tool and obtain it's path in separate variables. Coupled with
+# the --with-asciidoc option, it allows maximum flexibilty in making decisions
+# as whether or not to use the asciidoc package. When DEFAULT is not specified,
+# --with-asciidoc assumes 'auto'.
+#
+# Interface to module:
+# HAVE_ASCIIDOC: used in makefiles to conditionally generate documentation
+# ASCIIDOC: returns the path of the asciidoc program found
+# returns the path set by the user in the environment
+# --with-asciidoc: 'yes' user instructs the module to use asciidoc
+# 'no' user instructs the module not to use asciidoc
+#
+# If the user sets the value of ASCIIDOC, AC_PATH_PROG skips testing the path.
+#
+AC_DEFUN([XORG_WITH_ASCIIDOC],[
+AC_ARG_VAR([ASCIIDOC], [Path to asciidoc command])
+m4_define([_defopt], m4_default([$2], [auto]))
+AC_ARG_WITH(asciidoc,
+ AS_HELP_STRING([--with-asciidoc],
+ [Use asciidoc to regenerate documentation (default: ]_defopt[)]),
+ [use_asciidoc=$withval], [use_asciidoc=]_defopt)
+m4_undefine([_defopt])
+
+if test "x$use_asciidoc" = x"auto"; then
+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
+ if test "x$ASCIIDOC" = "x"; then
+ AC_MSG_WARN([asciidoc not found - documentation targets will be skipped])
+ have_asciidoc=no
+ else
+ have_asciidoc=yes
+ fi
+elif test "x$use_asciidoc" = x"yes" ; then
+ AC_PATH_PROG([ASCIIDOC], [asciidoc])
+ if test "x$ASCIIDOC" = "x"; then
+ AC_MSG_ERROR([--with-asciidoc=yes specified but asciidoc not found in PATH])
+ fi
+ have_asciidoc=yes
+elif test "x$use_asciidoc" = x"no" ; then
+ if test "x$ASCIIDOC" != "x"; then
+ AC_MSG_WARN([ignoring ASCIIDOC environment variable since --with-asciidoc=no was specified])
+ fi
+ have_asciidoc=no
+else
+ AC_MSG_ERROR([--with-asciidoc expects 'yes' or 'no'])
+fi
+m4_ifval([$1],
+[if test "$have_asciidoc" = yes; then
+ # scrape the asciidoc version
+ AC_MSG_CHECKING([the asciidoc version])
+ asciidoc_version=`$ASCIIDOC --version 2>/dev/null | cut -d' ' -f2`
+ AC_MSG_RESULT([$asciidoc_version])
+ AS_VERSION_COMPARE([$asciidoc_version], [$1],
+ [if test "x$use_asciidoc" = xauto; then
+ AC_MSG_WARN([asciidoc version $asciidoc_version found, but $1 needed])
+ have_asciidoc=no
+ else
+ AC_MSG_ERROR([asciidoc version $asciidoc_version found, but $1 needed])
+ fi])
+fi])
+AM_CONDITIONAL([HAVE_ASCIIDOC], [test "$have_asciidoc" = yes])
+]) # XORG_WITH_ASCIIDOC
+
+# XORG_WITH_DOXYGEN([MIN-VERSION], [DEFAULT])
+# --------------------------------
+# Minimum version: 1.5.0
+# Minimum version for optional DEFAULT argument: 1.11.0
+#
+# Documentation tools are not always available on all platforms and sometimes
+# not at the appropriate level. This macro enables a module to test for the
+# presence of the tool and obtain it's path in separate variables. Coupled with
+# the --with-doxygen option, it allows maximum flexibilty in making decisions
+# as whether or not to use the doxygen package. When DEFAULT is not specified,
+# --with-doxygen assumes 'auto'.
+#
+# Interface to module:
+# HAVE_DOXYGEN: used in makefiles to conditionally generate documentation
+# DOXYGEN: returns the path of the doxygen program found
+# returns the path set by the user in the environment
+# --with-doxygen: 'yes' user instructs the module to use doxygen
+# 'no' user instructs the module not to use doxygen
+#
+# If the user sets the value of DOXYGEN, AC_PATH_PROG skips testing the path.
+#
+AC_DEFUN([XORG_WITH_DOXYGEN],[
+AC_ARG_VAR([DOXYGEN], [Path to doxygen command])
+m4_define([_defopt], m4_default([$2], [auto]))
+AC_ARG_WITH(doxygen,
+ AS_HELP_STRING([--with-doxygen],
+ [Use doxygen to regenerate documentation (default: ]_defopt[)]),
+ [use_doxygen=$withval], [use_doxygen=]_defopt)
+m4_undefine([_defopt])
+
+if test "x$use_doxygen" = x"auto"; then
+ AC_PATH_PROG([DOXYGEN], [doxygen])
+ if test "x$DOXYGEN" = "x"; then
+ AC_MSG_WARN([doxygen not found - documentation targets will be skipped])
+ have_doxygen=no
+ else
+ have_doxygen=yes
+ fi
+elif test "x$use_doxygen" = x"yes" ; then
+ AC_PATH_PROG([DOXYGEN], [doxygen])
+ if test "x$DOXYGEN" = "x"; then
+ AC_MSG_ERROR([--with-doxygen=yes specified but doxygen not found in PATH])
+ fi
+ have_doxygen=yes
+elif test "x$use_doxygen" = x"no" ; then
+ if test "x$DOXYGEN" != "x"; then
+ AC_MSG_WARN([ignoring DOXYGEN environment variable since --with-doxygen=no was specified])
+ fi
+ have_doxygen=no
+else
+ AC_MSG_ERROR([--with-doxygen expects 'yes' or 'no'])
+fi
+m4_ifval([$1],
+[if test "$have_doxygen" = yes; then
+ # scrape the doxygen version
+ AC_MSG_CHECKING([the doxygen version])
+ doxygen_version=`$DOXYGEN --version 2>/dev/null`
+ AC_MSG_RESULT([$doxygen_version])
+ AS_VERSION_COMPARE([$doxygen_version], [$1],
+ [if test "x$use_doxygen" = xauto; then
+ AC_MSG_WARN([doxygen version $doxygen_version found, but $1 needed])
+ have_doxygen=no
+ else
+ AC_MSG_ERROR([doxygen version $doxygen_version found, but $1 needed])
+ fi])
+fi])
+AM_CONDITIONAL([HAVE_DOXYGEN], [test "$have_doxygen" = yes])
+]) # XORG_WITH_DOXYGEN
+
+# XORG_WITH_GROFF([DEFAULT])
+# ----------------
+# Minimum version: 1.6.0
+# Minimum version for optional DEFAULT argument: 1.11.0
+#
+# Documentation tools are not always available on all platforms and sometimes
+# not at the appropriate level. This macro enables a module to test for the
+# presence of the tool and obtain it's path in separate variables. Coupled with
+# the --with-groff option, it allows maximum flexibilty in making decisions
+# as whether or not to use the groff package. When DEFAULT is not specified,
+# --with-groff assumes 'auto'.
+#
+# Interface to module:
+# HAVE_GROFF: used in makefiles to conditionally generate documentation
+# HAVE_GROFF_MM: the memorandum macros (-mm) package
+# HAVE_GROFF_MS: the -ms macros package
+# GROFF: returns the path of the groff program found
+# returns the path set by the user in the environment
+# --with-groff: 'yes' user instructs the module to use groff
+# 'no' user instructs the module not to use groff
+#
+# Added in version 1.9.0:
+# HAVE_GROFF_HTML: groff has dependencies to output HTML format:
+# pnmcut pnmcrop pnmtopng pnmtops from the netpbm package.
+# psselect from the psutils package.
+# the ghostcript package. Refer to the grohtml man pages
+#
+# If the user sets the value of GROFF, AC_PATH_PROG skips testing the path.
+#
+# OS and distros often splits groff in a basic and full package, the former
+# having the groff program and the later having devices, fonts and macros
+# Checking for the groff executable is not enough.
+#
+# If macros are missing, we cannot assume that groff is useless, so we don't
+# unset HAVE_GROFF or GROFF env variables.
+# HAVE_GROFF_?? can never be true while HAVE_GROFF is false.
+#
+AC_DEFUN([XORG_WITH_GROFF],[
+AC_ARG_VAR([GROFF], [Path to groff command])
+m4_define([_defopt], m4_default([$1], [auto]))
+AC_ARG_WITH(groff,
+ AS_HELP_STRING([--with-groff],
+ [Use groff to regenerate documentation (default: ]_defopt[)]),
+ [use_groff=$withval], [use_groff=]_defopt)
+m4_undefine([_defopt])
+
+if test "x$use_groff" = x"auto"; then
+ AC_PATH_PROG([GROFF], [groff])
+ if test "x$GROFF" = "x"; then
+ AC_MSG_WARN([groff not found - documentation targets will be skipped])
+ have_groff=no
+ else
+ have_groff=yes
+ fi
+elif test "x$use_groff" = x"yes" ; then
+ AC_PATH_PROG([GROFF], [groff])
+ if test "x$GROFF" = "x"; then
+ AC_MSG_ERROR([--with-groff=yes specified but groff not found in PATH])
+ fi
+ have_groff=yes
+elif test "x$use_groff" = x"no" ; then
+ if test "x$GROFF" != "x"; then
+ AC_MSG_WARN([ignoring GROFF environment variable since --with-groff=no was specified])
+ fi
+ have_groff=no
+else
+ AC_MSG_ERROR([--with-groff expects 'yes' or 'no'])
+fi
+
+# We have groff, test for the presence of the macro packages
+if test "x$have_groff" = x"yes"; then
+ AC_MSG_CHECKING([for ${GROFF} -ms macros])
+ if ${GROFF} -ms -I. /dev/null >/dev/null 2>&1 ; then
+ groff_ms_works=yes
+ else
+ groff_ms_works=no
+ fi
+ AC_MSG_RESULT([$groff_ms_works])
+ AC_MSG_CHECKING([for ${GROFF} -mm macros])
+ if ${GROFF} -mm -I. /dev/null >/dev/null 2>&1 ; then
+ groff_mm_works=yes
+ else
+ groff_mm_works=no
+ fi
+ AC_MSG_RESULT([$groff_mm_works])
+fi
+
+# We have groff, test for HTML dependencies, one command per package
+if test "x$have_groff" = x"yes"; then
+ AC_PATH_PROGS(GS_PATH, [gs gswin32c])
+ AC_PATH_PROG(PNMTOPNG_PATH, [pnmtopng])
+ AC_PATH_PROG(PSSELECT_PATH, [psselect])
+ if test "x$GS_PATH" != "x" -a "x$PNMTOPNG_PATH" != "x" -a "x$PSSELECT_PATH" != "x"; then
+ have_groff_html=yes
+ else
+ have_groff_html=no
+ AC_MSG_WARN([grohtml dependencies not found - HTML Documentation skipped. Refer to grohtml man pages])
+ fi
+fi
+
+# Set Automake conditionals for Makefiles
+AM_CONDITIONAL([HAVE_GROFF], [test "$have_groff" = yes])
+AM_CONDITIONAL([HAVE_GROFF_MS], [test "$groff_ms_works" = yes])
+AM_CONDITIONAL([HAVE_GROFF_MM], [test "$groff_mm_works" = yes])
+AM_CONDITIONAL([HAVE_GROFF_HTML], [test "$have_groff_html" = yes])
+]) # XORG_WITH_GROFF
+
+# XORG_WITH_FOP([DEFAULT])
+# ----------------
+# Minimum version: 1.6.0
+# Minimum version for optional DEFAULT argument: 1.11.0
+#
+# Documentation tools are not always available on all platforms and sometimes
+# not at the appropriate level. This macro enables a module to test for the
+# presence of the tool and obtain it's path in separate variables. Coupled with
+# the --with-fop option, it allows maximum flexibilty in making decisions
+# as whether or not to use the fop package. When DEFAULT is not specified,
+# --with-fop assumes 'auto'.
+#
+# Interface to module:
+# HAVE_FOP: used in makefiles to conditionally generate documentation
+# FOP: returns the path of the fop program found
+# returns the path set by the user in the environment
+# --with-fop: 'yes' user instructs the module to use fop
+# 'no' user instructs the module not to use fop
+#
+# If the user sets the value of FOP, AC_PATH_PROG skips testing the path.
+#
+AC_DEFUN([XORG_WITH_FOP],[
+AC_ARG_VAR([FOP], [Path to fop command])
+m4_define([_defopt], m4_default([$1], [auto]))
+AC_ARG_WITH(fop,
+ AS_HELP_STRING([--with-fop],
+ [Use fop to regenerate documentation (default: ]_defopt[)]),
+ [use_fop=$withval], [use_fop=]_defopt)
+m4_undefine([_defopt])
+
+if test "x$use_fop" = x"auto"; then
+ AC_PATH_PROG([FOP], [fop])
+ if test "x$FOP" = "x"; then
+ AC_MSG_WARN([fop not found - documentation targets will be skipped])
+ have_fop=no
+ else
+ have_fop=yes
+ fi
+elif test "x$use_fop" = x"yes" ; then
+ AC_PATH_PROG([FOP], [fop])
+ if test "x$FOP" = "x"; then
+ AC_MSG_ERROR([--with-fop=yes specified but fop not found in PATH])
+ fi
+ have_fop=yes
+elif test "x$use_fop" = x"no" ; then
+ if test "x$FOP" != "x"; then
+ AC_MSG_WARN([ignoring FOP environment variable since --with-fop=no was specified])
+ fi
+ have_fop=no
+else
+ AC_MSG_ERROR([--with-fop expects 'yes' or 'no'])
+fi
+AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = yes])
+]) # XORG_WITH_FOP
+
+# XORG_WITH_PS2PDF([DEFAULT])
+# ----------------
+# Minimum version: 1.6.0
+# Minimum version for optional DEFAULT argument: 1.11.0
+#
+# Documentation tools are not always available on all platforms and sometimes
+# not at the appropriate level. This macro enables a module to test for the
+# presence of the tool and obtain it's path in separate variables. Coupled with
+# the --with-ps2pdf option, it allows maximum flexibilty in making decisions
+# as whether or not to use the ps2pdf package. When DEFAULT is not specified,
+# --with-ps2pdf assumes 'auto'.
+#
+# Interface to module:
+# HAVE_PS2PDF: used in makefiles to conditionally generate documentation
+# PS2PDF: returns the path of the ps2pdf program found
+# returns the path set by the user in the environment
+# --with-ps2pdf: 'yes' user instructs the module to use ps2pdf
+# 'no' user instructs the module not to use ps2pdf
+#
+# If the user sets the value of PS2PDF, AC_PATH_PROG skips testing the path.
+#
+AC_DEFUN([XORG_WITH_PS2PDF],[
+AC_ARG_VAR([PS2PDF], [Path to ps2pdf command])
+m4_define([_defopt], m4_default([$1], [auto]))
+AC_ARG_WITH(ps2pdf,
+ AS_HELP_STRING([--with-ps2pdf],
+ [Use ps2pdf to regenerate documentation (default: ]_defopt[)]),
+ [use_ps2pdf=$withval], [use_ps2pdf=]_defopt)
+m4_undefine([_defopt])
+
+if test "x$use_ps2pdf" = x"auto"; then
+ AC_PATH_PROG([PS2PDF], [ps2pdf])
+ if test "x$PS2PDF" = "x"; then
+ AC_MSG_WARN([ps2pdf not found - documentation targets will be skipped])
+ have_ps2pdf=no
+ else
+ have_ps2pdf=yes
+ fi
+elif test "x$use_ps2pdf" = x"yes" ; then
+ AC_PATH_PROG([PS2PDF], [ps2pdf])
+ if test "x$PS2PDF" = "x"; then
+ AC_MSG_ERROR([--with-ps2pdf=yes specified but ps2pdf not found in PATH])
+ fi
+ have_ps2pdf=yes
+elif test "x$use_ps2pdf" = x"no" ; then
+ if test "x$PS2PDF" != "x"; then
+ AC_MSG_WARN([ignoring PS2PDF environment variable since --with-ps2pdf=no was specified])
+ fi
+ have_ps2pdf=no
+else
+ AC_MSG_ERROR([--with-ps2pdf expects 'yes' or 'no'])
+fi
+AM_CONDITIONAL([HAVE_PS2PDF], [test "$have_ps2pdf" = yes])
+]) # XORG_WITH_PS2PDF
+
+# XORG_ENABLE_DOCS (enable_docs=yes)
+# ----------------
+# Minimum version: 1.6.0
+#
+# Documentation tools are not always available on all platforms and sometimes
+# not at the appropriate level. This macro enables a builder to skip all
+# documentation targets except traditional man pages.
+# Combined with the specific tool checking macros XORG_WITH_*, it provides
+# maximum flexibilty in controlling documentation building.
+# Refer to:
+# XORG_WITH_XMLTO --with-xmlto
+# XORG_WITH_ASCIIDOC --with-asciidoc
+# XORG_WITH_DOXYGEN --with-doxygen
+# XORG_WITH_FOP --with-fop
+# XORG_WITH_GROFF --with-groff
+# XORG_WITH_PS2PDF --with-ps2pdf
+#
+# Interface to module:
+# ENABLE_DOCS: used in makefiles to conditionally generate documentation
+# --enable-docs: 'yes' user instructs the module to generate docs
+# 'no' user instructs the module not to generate docs
+# parm1: specify the default value, yes or no.
+#
+AC_DEFUN([XORG_ENABLE_DOCS],[
+m4_define([docs_default], m4_default([$1], [yes]))
+AC_ARG_ENABLE(docs,
+ AS_HELP_STRING([--enable-docs],
+ [Enable building the documentation (default: ]docs_default[)]),
+ [build_docs=$enableval], [build_docs=]docs_default)
+m4_undefine([docs_default])
+AM_CONDITIONAL(ENABLE_DOCS, [test x$build_docs = xyes])
+AC_MSG_CHECKING([whether to build documentation])
+AC_MSG_RESULT([$build_docs])
+]) # XORG_ENABLE_DOCS
+
+# XORG_ENABLE_DEVEL_DOCS (enable_devel_docs=yes)
+# ----------------
+# Minimum version: 1.6.0
+#
+# This macro enables a builder to skip all developer documentation.
+# Combined with the specific tool checking macros XORG_WITH_*, it provides
+# maximum flexibilty in controlling documentation building.
+# Refer to:
+# XORG_WITH_XMLTO --with-xmlto
+# XORG_WITH_ASCIIDOC --with-asciidoc
+# XORG_WITH_DOXYGEN --with-doxygen
+# XORG_WITH_FOP --with-fop
+# XORG_WITH_GROFF --with-groff
+# XORG_WITH_PS2PDF --with-ps2pdf
+#
+# Interface to module:
+# ENABLE_DEVEL_DOCS: used in makefiles to conditionally generate developer docs
+# --enable-devel-docs: 'yes' user instructs the module to generate developer docs
+# 'no' user instructs the module not to generate developer docs
+# parm1: specify the default value, yes or no.
+#
+AC_DEFUN([XORG_ENABLE_DEVEL_DOCS],[
+m4_define([devel_default], m4_default([$1], [yes]))
+AC_ARG_ENABLE(devel-docs,
+ AS_HELP_STRING([--enable-devel-docs],
+ [Enable building the developer documentation (default: ]devel_default[)]),
+ [build_devel_docs=$enableval], [build_devel_docs=]devel_default)
+m4_undefine([devel_default])
+AM_CONDITIONAL(ENABLE_DEVEL_DOCS, [test x$build_devel_docs = xyes])
+AC_MSG_CHECKING([whether to build developer documentation])
+AC_MSG_RESULT([$build_devel_docs])
+]) # XORG_ENABLE_DEVEL_DOCS
+
+# XORG_ENABLE_SPECS (enable_specs=yes)
+# ----------------
+# Minimum version: 1.6.0
+#
+# This macro enables a builder to skip all functional specification targets.
+# Combined with the specific tool checking macros XORG_WITH_*, it provides
+# maximum flexibilty in controlling documentation building.
+# Refer to:
+# XORG_WITH_XMLTO --with-xmlto
+# XORG_WITH_ASCIIDOC --with-asciidoc
+# XORG_WITH_DOXYGEN --with-doxygen
+# XORG_WITH_FOP --with-fop
+# XORG_WITH_GROFF --with-groff
+# XORG_WITH_PS2PDF --with-ps2pdf
+#
+# Interface to module:
+# ENABLE_SPECS: used in makefiles to conditionally generate specs
+# --enable-specs: 'yes' user instructs the module to generate specs
+# 'no' user instructs the module not to generate specs
+# parm1: specify the default value, yes or no.
+#
+AC_DEFUN([XORG_ENABLE_SPECS],[
+m4_define([spec_default], m4_default([$1], [yes]))
+AC_ARG_ENABLE(specs,
+ AS_HELP_STRING([--enable-specs],
+ [Enable building the specs (default: ]spec_default[)]),
+ [build_specs=$enableval], [build_specs=]spec_default)
+m4_undefine([spec_default])
+AM_CONDITIONAL(ENABLE_SPECS, [test x$build_specs = xyes])
+AC_MSG_CHECKING([whether to build functional specifications])
+AC_MSG_RESULT([$build_specs])
+]) # XORG_ENABLE_SPECS
+
+# XORG_CHECK_MALLOC_ZERO
+# ----------------------
+# Minimum version: 1.0.0
+#
+# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if
+# malloc(0) returns NULL. Packages should add one of these cflags to
+# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them.
+AC_DEFUN([XORG_CHECK_MALLOC_ZERO],[
+AC_ARG_ENABLE(malloc0returnsnull,
+ AS_HELP_STRING([--enable-malloc0returnsnull],
+ [malloc(0) returns NULL (default: auto)]),
+ [MALLOC_ZERO_RETURNS_NULL=$enableval],
+ [MALLOC_ZERO_RETURNS_NULL=auto])
+
+AC_MSG_CHECKING([whether malloc(0) returns NULL])
+if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
+ AC_RUN_IFELSE([AC_LANG_PROGRAM([
+#include <stdlib.h>
+],[
+ char *m0, *r0, *c0, *p;
+ m0 = malloc(0);
+ p = malloc(10);
+ r0 = realloc(p,0);
+ c0 = calloc(0,10);
+ exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
+])],
+ [MALLOC_ZERO_RETURNS_NULL=yes],
+ [MALLOC_ZERO_RETURNS_NULL=no],
+ [MALLOC_ZERO_RETURNS_NULL=yes])
+fi
+AC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL])
+
+if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
+ MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
+ XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
+ XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
+else
+ MALLOC_ZERO_CFLAGS=""
+ XMALLOC_ZERO_CFLAGS=""
+ XTMALLOC_ZERO_CFLAGS=""
+fi
+
+AC_SUBST([MALLOC_ZERO_CFLAGS])
+AC_SUBST([XMALLOC_ZERO_CFLAGS])
+AC_SUBST([XTMALLOC_ZERO_CFLAGS])
+]) # XORG_CHECK_MALLOC_ZERO
+
+# XORG_WITH_LINT()
+# ----------------
+# Minimum version: 1.1.0
+#
+# This macro enables the use of a tool that flags some suspicious and
+# non-portable constructs (likely to be bugs) in C language source code.
+# It will attempt to locate the tool and use appropriate options.
+# There are various lint type tools on different platforms.
+#
+# Interface to module:
+# LINT: returns the path to the tool found on the platform
+# or the value set to LINT on the configure cmd line
+# also an Automake conditional
+# LINT_FLAGS: an Automake variable with appropriate flags
+#
+# --with-lint: 'yes' user instructs the module to use lint
+# 'no' user instructs the module not to use lint (default)
+#
+# If the user sets the value of LINT, AC_PATH_PROG skips testing the path.
+# If the user sets the value of LINT_FLAGS, they are used verbatim.
+#
+AC_DEFUN([XORG_WITH_LINT],[
+
+AC_ARG_VAR([LINT], [Path to a lint-style command])
+AC_ARG_VAR([LINT_FLAGS], [Flags for the lint-style command])
+AC_ARG_WITH(lint, [AS_HELP_STRING([--with-lint],
+ [Use a lint-style source code checker (default: disabled)])],
+ [use_lint=$withval], [use_lint=no])
+
+# Obtain platform specific info like program name and options
+# The lint program on FreeBSD and NetBSD is different from the one on Solaris
+case $host_os in
+ *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
+ lint_name=splint
+ lint_options="-badflag"
+ ;;
+ *freebsd* | *netbsd*)
+ lint_name=lint
+ lint_options="-u -b"
+ ;;
+ *solaris*)
+ lint_name=lint
+ lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
+ ;;
+esac
+
+# Test for the presence of the program (either guessed by the code or spelled out by the user)
+if test "x$use_lint" = x"yes" ; then
+ AC_PATH_PROG([LINT], [$lint_name])
+ if test "x$LINT" = "x"; then
+ AC_MSG_ERROR([--with-lint=yes specified but lint-style tool not found in PATH])
+ fi
+elif test "x$use_lint" = x"no" ; then
+ if test "x$LINT" != "x"; then
+ AC_MSG_WARN([ignoring LINT environment variable since --with-lint=no was specified])
+ fi
+else
+ AC_MSG_ERROR([--with-lint expects 'yes' or 'no'. Use LINT variable to specify path.])
+fi
+
+# User supplied flags override default flags
+if test "x$LINT_FLAGS" != "x"; then
+ lint_options=$LINT_FLAGS
+fi
+
+AC_SUBST([LINT_FLAGS],[$lint_options])
+AM_CONDITIONAL(LINT, [test "x$LINT" != x])
+
+]) # XORG_WITH_LINT
+
+# XORG_LINT_LIBRARY(LIBNAME)
+# --------------------------
+# Minimum version: 1.1.0
+#
+# Sets up flags for building lint libraries for checking programs that call
+# functions in the library.
+#
+# Interface to module:
+# LINTLIB - Automake variable with the name of lint library file to make
+# MAKE_LINT_LIB - Automake conditional
+#
+# --enable-lint-library: - 'yes' user instructs the module to created a lint library
+# - 'no' user instructs the module not to create a lint library (default)
+
+AC_DEFUN([XORG_LINT_LIBRARY],[
+AC_REQUIRE([XORG_WITH_LINT])
+AC_ARG_ENABLE(lint-library, [AS_HELP_STRING([--enable-lint-library],
+ [Create lint library (default: disabled)])],
+ [make_lint_lib=$enableval], [make_lint_lib=no])
+
+if test "x$make_lint_lib" = x"yes" ; then
+ LINTLIB=llib-l$1.ln
+ if test "x$LINT" = "x"; then
+ AC_MSG_ERROR([Cannot make lint library without --with-lint])
+ fi
+elif test "x$make_lint_lib" != x"no" ; then
+ AC_MSG_ERROR([--enable-lint-library expects 'yes' or 'no'.])
+fi
+
+AC_SUBST(LINTLIB)
+AM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno])
+
+]) # XORG_LINT_LIBRARY
+
+# XORG_CWARNFLAGS
+# ---------------
+# Minimum version: 1.2.0
+#
+# Defines CWARNFLAGS to enable C compiler warnings.
+#
+AC_DEFUN([XORG_CWARNFLAGS], [
+AC_REQUIRE([AC_PROG_CC_C99])
+if test "x$GCC" = xyes ; then
+ CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
+-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
+-Wbad-function-cast -Wformat=2"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*)
+ CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
+ ;;
+ esac
+else
+ AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
+ if test "x$SUNCC" = "xyes"; then
+ CWARNFLAGS="-v"
+ fi
+fi
+AC_SUBST(CWARNFLAGS)
+]) # XORG_CWARNFLAGS
+
+# XORG_STRICT_OPTION
+# -----------------------
+# Minimum version: 1.3.0
+#
+# Add configure option to enable strict compilation
+AC_DEFUN([XORG_STRICT_OPTION], [
+# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
+AC_REQUIRE([AC_PROG_CC_C99])
+AC_REQUIRE([XORG_CWARNFLAGS])
+
+AC_ARG_ENABLE(strict-compilation,
+ AS_HELP_STRING([--enable-strict-compilation],
+ [Enable all warnings from compiler and make them errors (default: disabled)]),
+ [STRICT_COMPILE=$enableval], [STRICT_COMPILE=no])
+if test "x$STRICT_COMPILE" = "xyes"; then
+ AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
+ AC_CHECK_DECL([__INTEL_COMPILER], [INTELCC="yes"], [INTELCC="no"])
+ if test "x$GCC" = xyes ; then
+ STRICT_CFLAGS="-pedantic -Werror"
+ elif test "x$SUNCC" = "xyes"; then
+ STRICT_CFLAGS="-errwarn"
+ elif test "x$INTELCC" = "xyes"; then
+ STRICT_CFLAGS="-Werror"
+ fi
+fi
+CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
+AC_SUBST([CWARNFLAGS])
+]) # XORG_STRICT_OPTION
+
+# XORG_DEFAULT_OPTIONS
+# --------------------
+# Minimum version: 1.3.0
+#
+# Defines default options for X.Org modules.
+#
+AC_DEFUN([XORG_DEFAULT_OPTIONS], [
+AC_REQUIRE([AC_PROG_INSTALL])
+XORG_CWARNFLAGS
+XORG_STRICT_OPTION
+XORG_RELEASE_VERSION
+XORG_CHANGELOG
+XORG_INSTALL
+XORG_MANPAGE_SECTIONS
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
+ [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
+]) # XORG_DEFAULT_OPTIONS
+
+# XORG_INSTALL()
+# ----------------
+# Minimum version: 1.4.0
+#
+# Defines the variable INSTALL_CMD as the command to copy
+# INSTALL from $prefix/share/util-macros.
+#
+AC_DEFUN([XORG_INSTALL], [
+AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
+INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
+mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
+|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
+echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
+AC_SUBST([INSTALL_CMD])
+]) # XORG_INSTALL
+dnl Copyright 2005 Red Hat, Inc
+dnl
+dnl Permission to use, copy, modify, distribute, and sell this software and its
+dnl documentation for any purpose is hereby granted without fee, provided that
+dnl the above copyright notice appear in all copies and that both that
+dnl copyright notice and this permission notice appear in supporting
+dnl documentation.
+dnl
+dnl The above copyright notice and this permission notice shall be included
+dnl in all copies or substantial portions of the Software.
+dnl
+dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
+dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+dnl OTHER DEALINGS IN THE SOFTWARE.
+dnl
+dnl Except as contained in this notice, the name of the copyright holders shall
+dnl not be used in advertising or otherwise to promote the sale, use or
+dnl other dealings in this Software without prior written authorization
+dnl from the copyright holders.
+dnl
+
+# XORG_RELEASE_VERSION
+# --------------------
+# Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use.
+
+AC_DEFUN([XORG_RELEASE_VERSION],[
+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR],
+ [`echo $PACKAGE_VERSION | cut -d . -f 1`],
+ [Major version of this package])
+ PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
+ if test "x$PVM" = "x"; then
+ PVM="0"
+ fi
+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR],
+ [$PVM],
+ [Minor version of this package])
+ PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
+ if test "x$PVP" = "x"; then
+ PVP="0"
+ fi
+ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL],
+ [$PVP],
+ [Patch version of this package])
+])
+
+# XORG_CHANGELOG()
+# ----------------
+# Minimum version: 1.2.0
+#
+# Defines the variable CHANGELOG_CMD as the command to generate
+# ChangeLog from git.
+#
+#
+AC_DEFUN([XORG_CHANGELOG], [
+CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
+mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
+|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
+echo 'git directory not found: installing possibly empty changelog.' >&2)"
+AC_SUBST([CHANGELOG_CMD])
+]) # XORG_CHANGELOG
+
+dnl Copyright 2005 Red Hat, Inc
+dnl
+dnl Permission to use, copy, modify, distribute, and sell this software and its
+dnl documentation for any purpose is hereby granted without fee, provided that
+dnl the above copyright notice appear in all copies and that both that
+dnl copyright notice and this permission notice appear in supporting
+dnl documentation.
+dnl
+dnl The above copyright notice and this permission notice shall be included
+dnl in all copies or substantial portions of the Software.
+dnl
+dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+dnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+dnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
+dnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+dnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+dnl OTHER DEALINGS IN THE SOFTWARE.
+dnl
+dnl Except as contained in this notice, the name of the copyright holders shall
+dnl not be used in advertising or otherwise to promote the sale, use or
+dnl other dealings in this Software without prior written authorization
+dnl from the copyright holders.
+dnl
+
+# XORG_DRIVER_CHECK_EXT()
+# --------------------------
+# Checks for the $1 define in xorg-server.h (from the sdk). If it
+# is defined, then add $1 to $REQUIRED_MODULES.
+
+AC_DEFUN([XORG_DRIVER_CHECK_EXT],[
+ AC_REQUIRE([PKG_PROG_PKG_CONFIG])
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+#include "xorg-server.h"
+#if !defined $1
+#error $1 not defined
+#endif
+ ]])],
+ [_EXT_CHECK=yes],
+ [_EXT_CHECK=no])
+ CFLAGS="$SAVE_CFLAGS"
+ AC_MSG_CHECKING([if $1 is defined])
+ AC_MSG_RESULT([$_EXT_CHECK])
+ if test "$_EXT_CHECK" != no; then
+ REQUIRED_MODULES="$REQUIRED_MODULES $2"
+ fi
+])
+
+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_AUTOMAKE_VERSION(VERSION)
+# ----------------------------
+# Automake X.Y traces this macro to ensure aclocal.m4 has been
+# generated from the m4 files accompanying Automake X.Y.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.11'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.11.1], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.11.1])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
+
+# AM_AUX_DIR_EXPAND -*- Autoconf -*-
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
+# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
+# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
+#
+# Of course, Automake must honor this variable whenever it calls a
+# tool from the auxiliary directory. The problem is that $srcdir (and
+# therefore $ac_aux_dir as well) can be either absolute or relative,
+# depending on how configure is run. This is pretty annoying, since
+# it makes $ac_aux_dir quite unusable in subdirectories: in the top
+# source directory, any form will work fine, but in subdirectories a
+# relative path needs to be adjusted first.
+#
+# $ac_aux_dir/missing
+# fails when called from a subdirectory if $ac_aux_dir is relative
+# $top_srcdir/$ac_aux_dir/missing
+# fails if $ac_aux_dir is absolute,
+# fails when called from a subdirectory in a VPATH build with
+# a relative $ac_aux_dir
+#
+# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
+# are both prefixed by $srcdir. In an in-source build this is usually
+# harmless because $srcdir is `.', but things will broke when you
+# start a VPATH build or use an absolute $srcdir.
+#
+# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
+# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
+# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
+# and then we would define $MISSING as
+# MISSING="\${SHELL} $am_aux_dir/missing"
+# This will work as long as MISSING is not called from configure, because
+# unfortunately $(top_srcdir) has no meaning in configure.
+# However there are other variables, like CC, which are often used in
+# configure, and could therefore not use this "fixed" $ac_aux_dir.
+#
+# Another solution, used here, is to always expand $ac_aux_dir to an
+# absolute PATH. The drawback is that using absolute paths prevent a
+# configured tree to be moved without reconfiguration.
+
+AC_DEFUN([AM_AUX_DIR_EXPAND],
+[dnl Rely on autoconf to set up CDPATH properly.
+AC_PREREQ([2.50])dnl
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+])
+
+# AM_CONDITIONAL -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 9
+
+# AM_CONDITIONAL(NAME, SHELL-CONDITION)
+# -------------------------------------
+# Define a conditional.
+AC_DEFUN([AM_CONDITIONAL],
+[AC_PREREQ(2.52)dnl
+ ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
+ [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
+AC_SUBST([$1_TRUE])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+m4_define([_AM_COND_VALUE_$1], [$2])dnl
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi
+AC_CONFIG_COMMANDS_PRE(
+[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
+ AC_MSG_ERROR([[conditional "$1" was never defined.
+Usually this means the macro was only invoked conditionally.]])
+fi])])
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 10
+
+# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
+# written in clear, in which case automake, when reading aclocal.m4,
+# will think it sees a *use*, and therefore will trigger all it's
+# C support machinery. Also note that it means that autoscan, seeing
+# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
+
+
+# _AM_DEPENDENCIES(NAME)
+# ----------------------
+# See how the compiler implements dependency checking.
+# NAME is "CC", "CXX", "GCJ", or "OBJC".
+# We try a few techniques and use that to set a single cache variable.
+#
+# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
+# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
+# dependency, and given that the user is not expected to run this macro,
+# just rely on AC_PROG_CC.
+AC_DEFUN([_AM_DEPENDENCIES],
+[AC_REQUIRE([AM_SET_DEPDIR])dnl
+AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
+AC_REQUIRE([AM_MAKE_INCLUDE])dnl
+AC_REQUIRE([AM_DEP_TRACK])dnl
+
+ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
+ [$1], CXX, [depcc="$CXX" am_compiler_list=],
+ [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
+ [$1], UPC, [depcc="$UPC" am_compiler_list=],
+ [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
+ [depcc="$$1" am_compiler_list=])
+
+AC_CACHE_CHECK([dependency style of $depcc],
+ [am_cv_$1_dependencies_compiler_type],
+[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_$1_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
+ fi
+ am__universal=false
+ m4_case([$1], [CC],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac],
+ [CXX],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac])
+
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this. Also, some Intel
+ # versions had trouble with output in subdirs
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ msvisualcpp | msvcmsys)
+ # This compiler won't grok `-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_$1_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_$1_dependencies_compiler_type=none
+fi
+])
+AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
+AM_CONDITIONAL([am__fastdep$1], [
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
+])
+
+
+# AM_SET_DEPDIR
+# -------------
+# Choose a directory name for dependency files.
+# This macro is AC_REQUIREd in _AM_DEPENDENCIES
+AC_DEFUN([AM_SET_DEPDIR],
+[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
+])
+
+
+# AM_DEP_TRACK
+# ------------
+AC_DEFUN([AM_DEP_TRACK],
+[AC_ARG_ENABLE(dependency-tracking,
+[ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors])
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
+AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
+AC_SUBST([AMDEPBACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+])
+
+# Generate code to set up dependency tracking. -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+#serial 5
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[{
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ case $CONFIG_FILES in
+ *\'*) eval set x "$CONFIG_FILES" ;;
+ *) set x $CONFIG_FILES ;;
+ esac
+ shift
+ for mf
+ do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`AS_DIRNAME("$mf")`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`AS_DIRNAME(["$file"])`
+ AS_MKDIR_P([$dirpart/$fdir])
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+ done
+}
+])# _AM_OUTPUT_DEPENDENCY_COMMANDS
+
+
+# AM_OUTPUT_DEPENDENCY_COMMANDS
+# -----------------------------
+# This macro should only be invoked once -- use via AC_REQUIRE.
+#
+# This code is only required when automatic dependency tracking
+# is enabled. FIXME. This creates each `.P' file that we will
+# need in order to bootstrap the dependency handling code.
+AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
+[AC_CONFIG_COMMANDS([depfiles],
+ [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
+ [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
+])
+
+# Do all the work for Automake. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 16
+
+# This macro actually does too much. Some checks are only needed if
+# your package does certain things. But this isn't really a big deal.
+
+# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
+# AM_INIT_AUTOMAKE([OPTIONS])
+# -----------------------------------------------
+# The call with PACKAGE and VERSION arguments is the old style
+# call (pre autoconf-2.50), which is being phased out. PACKAGE
+# and VERSION should now be passed to AC_INIT and removed from
+# the call to AM_INIT_AUTOMAKE.
+# We support both call styles for the transition. After
+# the next Automake release, Autoconf can make the AC_INIT
+# arguments mandatory, and then we can depend on a new Autoconf
+# release and drop the old call support.
+AC_DEFUN([AM_INIT_AUTOMAKE],
+[AC_PREREQ([2.62])dnl
+dnl Autoconf wants to disallow AM_ names. We explicitly allow
+dnl the ones we care about.
+m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
+AC_REQUIRE([AC_PROG_INSTALL])dnl
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+AC_SUBST([CYGPATH_W])
+
+# Define the identity of the package.
+dnl Distinguish between old-style and new-style calls.
+m4_ifval([$2],
+[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
+ AC_SUBST([PACKAGE], [$1])dnl
+ AC_SUBST([VERSION], [$2])],
+[_AM_SET_OPTIONS([$1])dnl
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
+ AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
+ AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
+
+_AM_IF_OPTION([no-define],,
+[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
+ AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
+
+# Some tools Automake needs.
+AC_REQUIRE([AM_SANITY_CHECK])dnl
+AC_REQUIRE([AC_ARG_PROGRAM])dnl
+AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
+AM_MISSING_PROG(AUTOCONF, autoconf)
+AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
+AM_MISSING_PROG(AUTOHEADER, autoheader)
+AM_MISSING_PROG(MAKEINFO, makeinfo)
+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
+AC_REQUIRE([AM_PROG_MKDIR_P])dnl
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+AC_REQUIRE([AC_PROG_AWK])dnl
+AC_REQUIRE([AC_PROG_MAKE_SET])dnl
+AC_REQUIRE([AM_SET_LEADING_DOT])dnl
+_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
+ [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
+ [_AM_PROG_TAR([v7])])])
+_AM_IF_OPTION([no-dependencies],,
+[AC_PROVIDE_IFELSE([AC_PROG_CC],
+ [_AM_DEPENDENCIES(CC)],
+ [define([AC_PROG_CC],
+ defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [_AM_DEPENDENCIES(CXX)],
+ [define([AC_PROG_CXX],
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES(OBJC)],
+ [define([AC_PROG_OBJC],
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
+])
+_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
+dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
+dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
+dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
+AC_CONFIG_COMMANDS_PRE(dnl
+[m4_provide_if([_AM_COMPILER_EXEEXT],
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
+])
+
+dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
+dnl mangled by Autoconf and run in a shell conditional statement.
+m4_define([_AC_COMPILER_EXEEXT],
+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
+
+
+# When config.status generates a header, we must update the stamp-h file.
+# This file resides in the same directory as the config header
+# that is generated. The stamp files are numbered to have different names.
+
+# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
+# loop where config.status creates the headers, so we can generate
+# our stamp files there.
+AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
+
+# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+AC_SUBST(install_sh)])
+
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# Check whether the underlying file-system supports filenames
+# with a leading dot. For instance MS-DOS doesn't.
+AC_DEFUN([AM_SET_LEADING_DOT],
+[rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+AC_SUBST([am__leading_dot])])
+
+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
+# From Jim Meyering
+
+# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_MAINTAINER_MODE([DEFAULT-MODE])
+# ----------------------------------
+# Control maintainer-specific portions of Makefiles.
+# Default is to disable them, unless `enable' is passed literally.
+# For symmetry, `disable' may be passed as well. Anyway, the user
+# can override the default with the --enable/--disable switch.
+AC_DEFUN([AM_MAINTAINER_MODE],
+[m4_case(m4_default([$1], [disable]),
+ [enable], [m4_define([am_maintainer_other], [disable])],
+ [disable], [m4_define([am_maintainer_other], [enable])],
+ [m4_define([am_maintainer_other], [enable])
+ m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
+AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
+ dnl maintainer-mode's default is 'disable' unless 'enable' is passed
+ AC_ARG_ENABLE([maintainer-mode],
+[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer],
+ [USE_MAINTAINER_MODE=$enableval],
+ [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
+ AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
+ MAINT=$MAINTAINER_MODE_TRUE
+ AC_SUBST([MAINT])dnl
+]
+)
+
+AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
+
+# Check to see how 'make' treats includes. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# AM_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+AC_MSG_CHECKING([for style of include used by $am_make])
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from `make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+ am__include=include
+ am__quote=
+ _am_result=GNU
+ ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ case `$am_make -s -f confmf 2> /dev/null` in #(
+ *the\ am__doit\ target*)
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ ;;
+ esac
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
+
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
+
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 6
+
+# AM_MISSING_PROG(NAME, PROGRAM)
+# ------------------------------
+AC_DEFUN([AM_MISSING_PROG],
+[AC_REQUIRE([AM_MISSING_HAS_RUN])
+$1=${$1-"${am_missing_run}$2"}
+AC_SUBST($1)])
+
+
+# AM_MISSING_HAS_RUN
+# ------------------
+# Define MISSING if not defined so far and test if it supports --run.
+# If it does, set am_missing_run to use it, otherwise, to nothing.
+AC_DEFUN([AM_MISSING_HAS_RUN],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+AC_REQUIRE_AUX_FILE([missing])dnl
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ AC_MSG_WARN([`missing' script is too old or missing])
+fi
+])
+
+# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_MKDIR_P
+# ---------------
+# Check for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+ [[\\/$]]* | ?:[[\\/]]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 4
+
+# _AM_MANGLE_OPTION(NAME)
+# -----------------------
+AC_DEFUN([_AM_MANGLE_OPTION],
+[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
+
+# _AM_SET_OPTION(NAME)
+# ------------------------------
+# Set option NAME. Presently that only means defining a flag for this option.
+AC_DEFUN([_AM_SET_OPTION],
+[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
+
+# _AM_SET_OPTIONS(OPTIONS)
+# ----------------------------------
+# OPTIONS is a space-separated list of Automake options.
+AC_DEFUN([_AM_SET_OPTIONS],
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+
+# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
+# -------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+AC_DEFUN([_AM_IF_OPTION],
+[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
+
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
+
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
+# Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 5
+
+# AM_SANITY_CHECK
+# ---------------
+AC_DEFUN([AM_SANITY_CHECK],
+[AC_MSG_CHECKING([whether build environment is sane])
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
+esac
+case $srcdir in
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
+ AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
+esac
+
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$[*]" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$[*]" != "X $srcdir/configure conftest.file" \
+ && test "$[*]" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
+alias in your environment])
+ fi
+
+ test "$[2]" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ AC_MSG_ERROR([newly created file is older than distributed files!
+Check your system clock])
+fi
+AC_MSG_RESULT(yes)])
+
+# Copyright (C) 2009 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# AM_SILENT_RULES([DEFAULT])
+# --------------------------
+# Enable less verbose build rules; with the default set to DEFAULT
+# (`yes' being less verbose, `no' or empty being verbose).
+AC_DEFUN([AM_SILENT_RULES],
+[AC_ARG_ENABLE([silent-rules],
+[ --enable-silent-rules less verbose build output (undo: `make V=1')
+ --disable-silent-rules verbose build output (undo: `make V=0')])
+case $enable_silent_rules in
+yes) AM_DEFAULT_VERBOSITY=0;;
+no) AM_DEFAULT_VERBOSITY=1;;
+*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
+esac
+AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
+AM_BACKSLASH='\'
+AC_SUBST([AM_BACKSLASH])dnl
+_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
+])
+
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_PROG_INSTALL_STRIP
+# ---------------------
+# One issue with vendor `install' (even GNU) is that you can't
+# specify the program used to strip binaries. This is especially
+# annoying in cross-compiling environments, where the build's strip
+# is unlikely to handle the host's binaries.
+# Fortunately install-sh will honor a STRIPPROG variable, so we
+# always use install-sh in `make install-strip', and initialize
+# STRIPPROG with the value of the STRIP variable (set by the user).
+AC_DEFUN([AM_PROG_INSTALL_STRIP],
+[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
+if test "$cross_compiling" != no; then
+ AC_CHECK_TOOL([STRIP], [strip], :)
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+AC_SUBST([INSTALL_STRIP_PROGRAM])])
+
+# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# _AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+
+# AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Public sister of _AM_SUBST_NOTMAKE.
+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
+
+# Check how to create a tarball. -*- Autoconf -*-
+
+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 2
+
+# _AM_PROG_TAR(FORMAT)
+# --------------------
+# Check how to create a tarball in format FORMAT.
+# FORMAT should be one of `v7', `ustar', or `pax'.
+#
+# Substitute a variable $(am__tar) that is a command
+# writing to stdout a FORMAT-tarball containing the directory
+# $tardir.
+# tardir=directory && $(am__tar) > result.tar
+#
+# Substitute a variable $(am__untar) that extract such
+# a tarball read from stdin.
+# $(am__untar) < result.tar
+AC_DEFUN([_AM_PROG_TAR],
+[# Always define AMTAR for backward compatibility.
+AM_MISSING_PROG([AMTAR], [tar])
+m4_if([$1], [v7],
+ [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
+ [m4_case([$1], [ustar],, [pax],,
+ [m4_fatal([Unknown tar format])])
+AC_MSG_CHECKING([how to create a $1 tar archive])
+# Loop over all known methods to create a tar archive until one works.
+_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
+_am_tools=${am_cv_prog_tar_$1-$_am_tools}
+# Do not fold the above two line into one, because Tru64 sh and
+# Solaris sh will not grok spaces in the rhs of `-'.
+for _am_tool in $_am_tools
+do
+ case $_am_tool in
+ gnutar)
+ for _am_tar in tar gnutar gtar;
+ do
+ AM_RUN_LOG([$_am_tar --version]) && break
+ done
+ am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
+ am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
+ am__untar="$_am_tar -xf -"
+ ;;
+ plaintar)
+ # Must skip GNU tar: if it does not support --format= it doesn't create
+ # ustar tarball either.
+ (tar --version) >/dev/null 2>&1 && continue
+ am__tar='tar chf - "$$tardir"'
+ am__tar_='tar chf - "$tardir"'
+ am__untar='tar xf -'
+ ;;
+ pax)
+ am__tar='pax -L -x $1 -w "$$tardir"'
+ am__tar_='pax -L -x $1 -w "$tardir"'
+ am__untar='pax -r'
+ ;;
+ cpio)
+ am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
+ am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
+ am__untar='cpio -i -H $1 -d'
+ ;;
+ none)
+ am__tar=false
+ am__tar_=false
+ am__untar=false
+ ;;
+ esac
+
+ # If the value was cached, stop now. We just wanted to have am__tar
+ # and am__untar set.
+ test -n "${am_cv_prog_tar_$1}" && break
+
+ # tar/untar a dummy directory, and stop if the command works
+ rm -rf conftest.dir
+ mkdir conftest.dir
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
+ rm -rf conftest.dir
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
+ fi
+done
+rm -rf conftest.dir
+
+AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
+AC_MSG_RESULT([$am_cv_prog_tar_$1])])
+AC_SUBST([am__tar])
+AC_SUBST([am__untar])
+]) # _AM_PROG_TAR
+
+m4_include([m4/libtool.m4])
+m4_include([m4/ltoptions.m4])
+m4_include([m4/ltsugar.m4])
+m4_include([m4/ltversion.m4])
+m4_include([m4/lt~obsolete.m4])
diff --git a/build-aux/config.guess b/build-aux/config.guess
new file mode 100755
index 0000000..c2246a4
--- /dev/null
+++ b/build-aux/config.guess
@@ -0,0 +1,1502 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+# Free Software Foundation, Inc.
+
+timestamp='2009-12-30'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner. Please send patches (context
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
+# entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
+Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi@noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ELF__
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ exit ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm:riscos:*:*|arm:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
+ echo i386-pc-auroraux${UNAME_RELEASE}
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[456])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep -q __LP64__
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ case ${UNAME_MACHINE} in
+ pc98)
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ *:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ *:Interix*:*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ authenticamd | genuineintel | EM64T)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ arm*:Linux:*:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo frv-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ LIBC=gnu
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:* | mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=${UNAME_MACHINE}el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=${UNAME_MACHINE}
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo or32-unknown-linux-gnu
+ exit ;;
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-gnu
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
+ # Note: whatever this is, it MUST be the same as what config.sub
+ # prints for the "djgpp" host, or else GDB configury will decide that
+ # this is a cross-build.
+ echo i586-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes@openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf@swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ i386)
+ eval $set_cc_for_build
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ UNAME_PROCESSOR="x86_64"
+ fi
+ fi ;;
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
+ exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ c34*)
+ echo c34-convex-bsd
+ exit ;;
+ c38*)
+ echo c38-convex-bsd
+ exit ;;
+ c4*)
+ echo c4-convex-bsd
+ exit ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches@gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/build-aux/config.sub b/build-aux/config.sub
new file mode 100755
index 0000000..c2d1257
--- /dev/null
+++ b/build-aux/config.sub
@@ -0,0 +1,1714 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+# Free Software Foundation, Inc.
+
+timestamp='2010-01-22'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted GNU ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# You can get the latest version of this script from:
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
+Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit ;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+ kopensolaris*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis | -knuth | -cray | -microblaze)
+ os=
+ basic_machine=$1
+ ;;
+ -bluegene*)
+ os=-cnk
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | bfin \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fido | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | lm32 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | mcore | mep | metag \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64octeon | mips64octeonel \
+ | mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | moxie \
+ | mt \
+ | msp430 \
+ | nios | nios2 \
+ | ns16k | ns32k \
+ | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | rx \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu | strongarm \
+ | tahoe | thumb | tic4x | tic80 | tron \
+ | ubicom32 \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | z8k | z80)
+ basic_machine=$basic_machine-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12 | picochip)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* | avr32-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | lm32-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64octeon-* | mips64octeonel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nios-* | nios2-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | pyramid-* \
+ | romp-* | rs6000-* | rx-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ | tile-* | tilegx-* \
+ | tron-* \
+ | ubicom32-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | xstormy16-* | xtensa*-* \
+ | ymp-* \
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aros)
+ basic_machine=i386-pc
+ os=-aros
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ bluegene*)
+ basic_machine=powerpc-ibm
+ os=-cnk
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16)
+ basic_machine=cr16-unknown
+ os=-elf
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ microblaze)
+ basic_machine=microblaze-xilinx
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc) basic_machine=powerpc-unknown
+ ;;
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rdos)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tic54x | c54x*)
+ basic_machine=tic54x-unknown
+ os=-coff
+ ;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
+ # This must be matched before tile*.
+ tilegx*)
+ basic_machine=tilegx-unknown
+ os=-linux-gnu
+ ;;
+ tile*)
+ basic_machine=tile-unknown
+ os=-linux-gnu
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -auroraux)
+ os=-auroraux
+ ;;
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
+ | -sym* | -kopensolaris* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* | -aros* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -os400*)
+ os=-os400
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -tpf*)
+ os=-tpf
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -nacl*)
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ # This also exists in the configure program, but was not the
+ # default.
+ # os=-sunos4
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mep-*)
+ os=-elf
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-haiku)
+ os=-haiku
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-knuth)
+ os=-mmixware
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -cnk*|-aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -os400*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/build-aux/depcomp b/build-aux/depcomp
new file mode 100755
index 0000000..df8eea7
--- /dev/null
+++ b/build-aux/depcomp
@@ -0,0 +1,630 @@
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2009-04-28.21; # UTC
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
+# Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+ depmode Dependency tracking mode.
+ source Source file read by `PROGRAMS ARGS'.
+ object Object file output by `PROGRAMS ARGS'.
+ DEPDIR directory where to store dependencies.
+ depfile Dependency file to output.
+ tmpdepfile Temporary file to use when outputing dependencies.
+ libtool Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "depcomp $scriptversion"
+ exit $?
+ ;;
+esac
+
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+ echo "depcomp: Variables source, object and depmode must be set" 1>&2
+ exit 1
+fi
+
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
+depfile=${depfile-`echo "$object" |
+ sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+
+rm -f "$tmpdepfile"
+
+# Some modes work just like other modes, but use different flags. We
+# parameterize here, but still list the modes in the big case below,
+# to make depend.m4 easier to write. Note that we *cannot* use a case
+# here, because this file can only contain one case statement.
+if test "$depmode" = hp; then
+ # HP compiler uses -M and no extra arg.
+ gccflag=-M
+ depmode=gcc
+fi
+
+if test "$depmode" = dashXmstdout; then
+ # This is just like dashmstdout with a different argument.
+ dashmflag=-xM
+ depmode=dashmstdout
+fi
+
+cygpath_u="cygpath -u -f -"
+if test "$depmode" = msvcmsys; then
+ # This is just like msvisualcpp but w/o cygpath translation.
+ # Just convert the backslash-escaped backslashes to single forward
+ # slashes to satisfy depend.m4
+ cygpath_u="sed s,\\\\\\\\,/,g"
+ depmode=msvisualcpp
+fi
+
+case "$depmode" in
+gcc3)
+## gcc 3 implements dependency tracking that does exactly what
+## we want. Yay! Note: for some reason libtool 1.4 doesn't like
+## it if -MD -MP comes after the -MF stuff. Hmm.
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
+## the command line argument order; so add the flags where they
+## appear in depend2.am. Note that the slowdown incurred here
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
+ for arg
+ do
+ case $arg in
+ -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
+ *) set fnord "$@" "$arg" ;;
+ esac
+ shift # fnord
+ shift # $arg
+ done
+ "$@"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ mv "$tmpdepfile" "$depfile"
+ ;;
+
+gcc)
+## There are various ways to get dependency output from gcc. Here's
+## why we pick this rather obscure method:
+## - Don't want to use -MD because we'd like the dependencies to end
+## up in a subdir. Having to rename by hand is ugly.
+## (We might end up doing this anyway to support other compilers.)
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+## -MM, not -M (despite what the docs say).
+## - Using -M directly means running the compiler twice (even worse
+## than renaming).
+ if test -z "$gccflag"; then
+ gccflag=-MD,
+ fi
+ "$@" -Wp,"$gccflag$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
+## The second -e expression handles DOS-style file names with drive letters.
+ sed -e 's/^[^:]*: / /' \
+ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+## This next piece of magic avoids the `deleted header file' problem.
+## The problem is that when a header file which appears in a .P file
+## is deleted, the dependency causes make to die (because there is
+## typically no way to rebuild the header). We avoid this by adding
+## dummy dependencies for each header file. Too bad gcc doesn't do
+## this for us directly.
+ tr ' ' '
+' < "$tmpdepfile" |
+## Some versions of gcc put a space before the `:'. On the theory
+## that the space means something, we add a space to the output as
+## well.
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$depfile"
+
+ # Clip off the initial element (the dependent). Don't try to be
+ # clever and replace this with sed code, as IRIX sed won't handle
+ # lines with more than a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like `#:fec' to the end of the
+ # dependency line.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+ tr '
+' ' ' >> "$depfile"
+ echo >> "$depfile"
+
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+aix)
+ # The C for AIX Compiler uses -M and outputs the dependencies
+ # in a .u file. In older versions, this file always lives in the
+ # current directory. Also, the AIX compiler puts `$object:' at the
+ # start of each line; $object doesn't have directory information.
+ # Version 6 uses the directory in both cases.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$base.u
+ tmpdepfile3=$dir.libs/$base.u
+ "$@" -Wc,-M
+ else
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$dir$base.u
+ tmpdepfile3=$dir$base.u
+ "$@" -M
+ fi
+ stat=$?
+
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ # Each line is of the form `foo.o: dependent.h'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+icc)
+ # Intel's C compiler understands `-MD -MF file'. However on
+ # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
+ # ICC 7.0 will fill foo.d with something like
+ # foo.o: sub/foo.c
+ # foo.o: sub/foo.h
+ # which is wrong. We want:
+ # sub/foo.o: sub/foo.c
+ # sub/foo.o: sub/foo.h
+ # sub/foo.c:
+ # sub/foo.h:
+ # ICC 7.1 will output
+ # foo.o: sub/foo.c sub/foo.h
+ # and will wrap long lines using \ :
+ # foo.o: sub/foo.c ... \
+ # sub/foo.h ... \
+ # ...
+
+ "$@" -MD -MF "$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ # Each line is of the form `foo.o: dependent.h',
+ # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
+ # Some versions of the HPUX 10.20 sed can't process this invocation
+ # correctly. Breaking it into two sed invocations is a workaround.
+ sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
+ sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp2)
+ # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+ # compilers, which have integrated preprocessors. The correct option
+ # to use with these is +Maked; it writes dependencies to a file named
+ # 'foo.d', which lands next to the object file, wherever that
+ # happens to be.
+ # Much of this is similar to the tru64 case; see comments there.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir.libs/$base.d
+ "$@" -Wc,+Maked
+ else
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir$base.d
+ "$@" +Maked
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
+ # Add `dependent.h:' lines.
+ sed -ne '2,${
+ s/^ *//
+ s/ \\*$//
+ s/$/:/
+ p
+ }' "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile" "$tmpdepfile2"
+ ;;
+
+tru64)
+ # The Tru64 compiler uses -MD to generate dependencies as a side
+ # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+ # dependencies in `foo.d' instead, so we check for that too.
+ # Subdirectories are respected.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+
+ if test "$libtool" = yes; then
+ # With Tru64 cc, shared objects can also be used to make a
+ # static library. This mechanism is used in libtool 1.4 series to
+ # handle both shared and static libraries in a single compilation.
+ # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
+ #
+ # With libtool 1.5 this exception was removed, and libtool now
+ # generates 2 separate objects for the 2 libraries. These two
+ # compilations output dependencies in $dir.libs/$base.o.d and
+ # in $dir$base.o.d. We have to check for both files, because
+ # one of the two compilations can be disabled. We should prefer
+ # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
+ # automatically cleaned when .libs/ is deleted, while ignoring
+ # the former would cause a distcleancheck panic.
+ tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
+ tmpdepfile2=$dir$base.o.d # libtool 1.5
+ tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
+ tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
+ "$@" -Wc,-MD
+ else
+ tmpdepfile1=$dir$base.o.d
+ tmpdepfile2=$dir$base.d
+ tmpdepfile3=$dir$base.d
+ tmpdepfile4=$dir$base.d
+ "$@" -MD
+ fi
+
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+#nosideeffect)
+ # This comment above is used by automake to tell side-effect
+ # dependency tracking mechanisms from slower ones.
+
+dashmstdout)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout, regardless of -o.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ test -z "$dashmflag" && dashmflag=-M
+ # Require at least two characters before searching for `:'
+ # in the target name. This is to cope with DOS-style filenames:
+ # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
+ "$@" $dashmflag |
+ sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ tr ' ' '
+' < "$tmpdepfile" | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+dashXmstdout)
+ # This case only exists to satisfy depend.m4. It is never actually
+ # run, as this mode is specially recognized in the preamble.
+ exit 1
+ ;;
+
+makedepend)
+ "$@" || exit $?
+ # Remove any Libtool call
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+ # X makedepend
+ shift
+ cleared=no eat=no
+ for arg
+ do
+ case $cleared in
+ no)
+ set ""; shift
+ cleared=yes ;;
+ esac
+ if test $eat = yes; then
+ eat=no
+ continue
+ fi
+ case "$arg" in
+ -D*|-I*)
+ set fnord "$@" "$arg"; shift ;;
+ # Strip any option that makedepend may not understand. Remove
+ # the object too, otherwise makedepend will parse it as a source file.
+ -arch)
+ eat=yes ;;
+ -*|$object)
+ ;;
+ *)
+ set fnord "$@" "$arg"; shift ;;
+ esac
+ done
+ obj_suffix=`echo "$object" | sed 's/^.*\././'`
+ touch "$tmpdepfile"
+ ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ sed '1,2d' "$tmpdepfile" | tr ' ' '
+' | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile" "$tmpdepfile".bak
+ ;;
+
+cpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ "$@" -E |
+ sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+ sed '$ s: \\$::' > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ cat < "$tmpdepfile" >> "$depfile"
+ sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvisualcpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ IFS=" "
+ for arg
+ do
+ case "$arg" in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ set fnord "$@"
+ shift
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift
+ shift
+ ;;
+ esac
+ done
+ "$@" -E 2>/dev/null |
+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
+ echo " " >> "$depfile"
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvcmsys)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+none)
+ exec "$@"
+ ;;
+
+*)
+ echo "Unknown depmode $depmode" 1>&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/build-aux/install-sh b/build-aux/install-sh
new file mode 100755
index 0000000..6781b98
--- /dev/null
+++ b/build-aux/install-sh
@@ -0,0 +1,520 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2009-04-28.21; # UTC
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+ test "$posix_glob" != "?" || {
+ if (set -f) 2>/dev/null; then
+ posix_glob=
+ else
+ posix_glob=:
+ fi
+ }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+ --help display this help and exit.
+ --version display version info and exit.
+
+ -c (ignored)
+ -C install only if different (preserve the last data modification time)
+ -d create directories instead of installing files.
+ -g GROUP $chgrpprog installed files to GROUP.
+ -m MODE $chmodprog installed files to MODE.
+ -o USER $chownprog installed files to USER.
+ -s $stripprog installed files.
+ -t DIRECTORY install into DIRECTORY.
+ -T report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+ RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) ;;
+
+ -C) copy_on_change=true;;
+
+ -d) dir_arg=true;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ shift;;
+
+ -o) chowncmd="$chownprog $2"
+ shift;;
+
+ -s) stripcmd=$stripprog;;
+
+ -t) dst_arg=$2
+ shift;;
+
+ -T) no_target_directory=true;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+ shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dst_arg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dst_arg"
+ shift # fnord
+ fi
+ shift # arg
+ dst_arg=$arg
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ trap '(exit $?); exit' 1 2 13 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names starting with `-'.
+ case $src in
+ -*) src=./$src;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dst_arg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+
+ dst=$dst_arg
+ # Protect names starting with `-'.
+ case $dst in
+ -*) dst=./$dst;;
+ esac
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dst_arg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-writeable bit of parent directory when it shouldn't.
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
+ case $ls_ld_tmpdir in
+ d????-?r-*) different_mode=700;;
+ d????-?--*) different_mode=755;;
+ *) false;;
+ esac &&
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+ }
+ }
+ then posix_mkdir=:
+ fi
+ rmdir "$tmpdir/d" "$tmpdir"
+ else
+ # Remove any dirs left behind by ancient mkdir implementations.
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+ fi
+ trap '' 0;;
+ esac;;
+ esac
+
+ if
+ $posix_mkdir && (
+ umask $mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+ )
+ then :
+ else
+
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
+ # or it failed possibly due to a race condition. Create the
+ # directory the slow way, step by step, checking for races as we go.
+
+ case $dstdir in
+ /*) prefix='/';;
+ -*) prefix='./';;
+ *) prefix='';;
+ esac
+
+ eval "$initialize_posix_glob"
+
+ oIFS=$IFS
+ IFS=/
+ $posix_glob set -f
+ set fnord $dstdir
+ shift
+ $posix_glob set +f
+ IFS=$oIFS
+
+ prefixes=
+
+ for d
+ do
+ test -z "$d" && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # If -C, don't bother to copy if it wouldn't change the file.
+ if $copy_on_change &&
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+ eval "$initialize_posix_glob" &&
+ $posix_glob set -f &&
+ set X $old && old=:$2:$4:$5:$6 &&
+ set X $new && new=:$2:$4:$5:$6 &&
+ $posix_glob set +f &&
+
+ test "$old" = "$new" &&
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+ then
+ rm -f "$dsttmp"
+ else
+ # Rename the file to the real destination.
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+ {
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ test ! -f "$dst" ||
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+ } ||
+ { echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ fi || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
new file mode 100755
index 0000000..d88da2c
--- /dev/null
+++ b/build-aux/ltmain.sh
@@ -0,0 +1,8413 @@
+# Generated from ltmain.m4sh.
+
+# ltmain.sh (GNU libtool) 2.2.6b
+# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Usage: $progname [OPTION]... [MODE-ARG]...
+#
+# Provide generalized library-building support services.
+#
+# --config show all configuration variables
+# --debug enable verbose shell tracing
+# -n, --dry-run display commands without modifying any files
+# --features display basic configuration information and exit
+# --mode=MODE use operation mode MODE
+# --preserve-dup-deps don't remove duplicate dependency libraries
+# --quiet, --silent don't print informational messages
+# --tag=TAG use configuration variables from tag TAG
+# -v, --verbose print informational messages (default)
+# --version print version information
+# -h, --help print short or long help message
+#
+# MODE must be one of the following:
+#
+# clean remove files from the build directory
+# compile compile a source file into a libtool object
+# execute automatically set library path, then run a program
+# finish complete the installation of libtool libraries
+# install install libraries or executables
+# link create a library or an executable
+# uninstall remove libraries from an installed directory
+#
+# MODE-ARGS vary depending on the MODE.
+# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
+#
+# When reporting a bug, please describe a test case to reproduce it and
+# include the following information:
+#
+# host-triplet: $host
+# shell: $SHELL
+# compiler: $LTCC
+# compiler flags: $LTCFLAGS
+# linker: $LD (gnu? $with_gnu_ld)
+# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2
+# automake: $automake_version
+# autoconf: $autoconf_version
+#
+# Report bugs to <bug-libtool@gnu.org>.
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION="2.2.6b Debian-2.2.6b-2"
+TIMESTAMP=""
+package_revision=1.3017
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# NLS nuisances: We save the old values to restore during execute mode.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+lt_user_locale=
+lt_safe_locale=
+for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
+ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
+ fi"
+done
+
+$lt_unset CDPATH
+
+
+
+
+
+: ${CP="cp -f"}
+: ${ECHO="echo"}
+: ${EGREP="/bin/grep -E"}
+: ${FGREP="/bin/grep -F"}
+: ${GREP="/bin/grep"}
+: ${LN_S="ln -s"}
+: ${MAKE="make"}
+: ${MKDIR="mkdir"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+: ${SED="/bin/sed"}
+: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+: ${Xsed="$SED -e 1s/^X//"}
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
+EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
+
+exit_status=$EXIT_SUCCESS
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+dirname="s,/[^/]*$,,"
+basename="s,^.*/,,"
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+# Generated shell functions inserted here.
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+# The name of this program:
+# In the unlikely event $progname began with a '-', it would play havoc with
+# func_echo (imagine progname=-n), so we prepend ./ in that case:
+func_dirname_and_basename "$progpath"
+progname=$func_basename_result
+case $progname in
+ -*) progname=./$progname ;;
+esac
+
+# Make sure we have an absolute path for reexecution:
+case $progpath in
+ [\\/]*|[A-Za-z]:\\*) ;;
+ *[\\/]*)
+ progdir=$func_dirname_result
+ progdir=`cd "$progdir" && pwd`
+ progpath="$progdir/$progname"
+ ;;
+ *)
+ save_IFS="$IFS"
+ IFS=:
+ for progdir in $PATH; do
+ IFS="$save_IFS"
+ test -x "$progdir/$progname" && break
+ done
+ IFS="$save_IFS"
+ test -n "$progdir" || progdir=`pwd`
+ progpath="$progdir/$progname"
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed="${SED}"' -e 1s/^X//'
+sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Re-`\' parameter expansions in output of double_quote_subst that were
+# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
+# in input to double_quote_subst, that '$' was protected from expansion.
+# Since each input `\' is now two `\'s, look for any number of runs of
+# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
+bs='\\'
+bs2='\\\\'
+bs4='\\\\\\\\'
+dollar='\$'
+sed_double_backslash="\
+ s/$bs4/&\\
+/g
+ s/^$bs2$dollar/$bs&/
+ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+ s/\n//g"
+
+# Standard options:
+opt_dry_run=false
+opt_help=false
+opt_quiet=false
+opt_verbose=false
+opt_warning=:
+
+# func_echo arg...
+# Echo program name prefixed message, along with the current mode
+# name if it has been set yet.
+func_echo ()
+{
+ $ECHO "$progname${mode+: }$mode: $*"
+}
+
+# func_verbose arg...
+# Echo program name prefixed message in verbose mode only.
+func_verbose ()
+{
+ $opt_verbose && func_echo ${1+"$@"}
+
+ # A bug in bash halts the script if the last line of a function
+ # fails when set -e is in force, so we need another command to
+ # work around that:
+ :
+}
+
+# func_error arg...
+# Echo program name prefixed message to standard error.
+func_error ()
+{
+ $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
+}
+
+# func_warning arg...
+# Echo program name prefixed warning message to standard error.
+func_warning ()
+{
+ $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+
+ # bash bug again:
+ :
+}
+
+# func_fatal_error arg...
+# Echo program name prefixed message to standard error, and exit.
+func_fatal_error ()
+{
+ func_error ${1+"$@"}
+ exit $EXIT_FAILURE
+}
+
+# func_fatal_help arg...
+# Echo program name prefixed message to standard error, followed by
+# a help hint, and exit.
+func_fatal_help ()
+{
+ func_error ${1+"$@"}
+ func_fatal_error "$help"
+}
+help="Try \`$progname --help' for more information." ## default
+
+
+# func_grep expression filename
+# Check whether EXPRESSION matches any line of FILENAME, without output.
+func_grep ()
+{
+ $GREP "$1" "$2" >/dev/null 2>&1
+}
+
+
+# func_mkdir_p directory-path
+# Make sure the entire path to DIRECTORY-PATH is available.
+func_mkdir_p ()
+{
+ my_directory_path="$1"
+ my_dir_list=
+
+ if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
+
+ # Protect directory names starting with `-'
+ case $my_directory_path in
+ -*) my_directory_path="./$my_directory_path" ;;
+ esac
+
+ # While some portion of DIR does not yet exist...
+ while test ! -d "$my_directory_path"; do
+ # ...make a list in topmost first order. Use a colon delimited
+ # list incase some portion of path contains whitespace.
+ my_dir_list="$my_directory_path:$my_dir_list"
+
+ # If the last portion added has no slash in it, the list is done
+ case $my_directory_path in */*) ;; *) break ;; esac
+
+ # ...otherwise throw away the child directory and loop
+ my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
+ done
+ my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
+
+ save_mkdir_p_IFS="$IFS"; IFS=':'
+ for my_dir in $my_dir_list; do
+ IFS="$save_mkdir_p_IFS"
+ # mkdir can fail with a `File exist' error if two processes
+ # try to create one of the directories concurrently. Don't
+ # stop in that case!
+ $MKDIR "$my_dir" 2>/dev/null || :
+ done
+ IFS="$save_mkdir_p_IFS"
+
+ # Bail out if we (or some other process) failed to create a directory.
+ test -d "$my_directory_path" || \
+ func_fatal_error "Failed to create \`$1'"
+ fi
+}
+
+
+# func_mktempdir [string]
+# Make a temporary directory that won't clash with other running
+# libtool processes, and avoids race conditions if possible. If
+# given, STRING is the basename for that directory.
+func_mktempdir ()
+{
+ my_template="${TMPDIR-/tmp}/${1-$progname}"
+
+ if test "$opt_dry_run" = ":"; then
+ # Return a directory name, but don't create it in dry-run mode
+ my_tmpdir="${my_template}-$$"
+ else
+
+ # If mktemp works, use that first and foremost
+ my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
+
+ if test ! -d "$my_tmpdir"; then
+ # Failing that, at least try and use $RANDOM to avoid a race
+ my_tmpdir="${my_template}-${RANDOM-0}$$"
+
+ save_mktempdir_umask=`umask`
+ umask 0077
+ $MKDIR "$my_tmpdir"
+ umask $save_mktempdir_umask
+ fi
+
+ # If we're not in dry-run mode, bomb out on failure
+ test -d "$my_tmpdir" || \
+ func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
+ fi
+
+ $ECHO "X$my_tmpdir" | $Xsed
+}
+
+
+# func_quote_for_eval arg
+# Aesthetically quote ARG to be evaled later.
+# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
+# is double-quoted, suitable for a subsequent eval, whereas
+# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
+# which are still active within double quotes backslashified.
+func_quote_for_eval ()
+{
+ case $1 in
+ *[\\\`\"\$]*)
+ func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
+ *)
+ func_quote_for_eval_unquoted_result="$1" ;;
+ esac
+
+ case $func_quote_for_eval_unquoted_result in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting, command substitution and and variable
+ # expansion for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
+ ;;
+ *)
+ func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
+ esac
+}
+
+
+# func_quote_for_expand arg
+# Aesthetically quote ARG to be evaled later; same as above,
+# but do not quote variable references.
+func_quote_for_expand ()
+{
+ case $1 in
+ *[\\\`\"]*)
+ my_arg=`$ECHO "X$1" | $Xsed \
+ -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
+ *)
+ my_arg="$1" ;;
+ esac
+
+ case $my_arg in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting and command substitution for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ my_arg="\"$my_arg\""
+ ;;
+ esac
+
+ func_quote_for_expand_result="$my_arg"
+}
+
+
+# func_show_eval cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it.
+func_show_eval ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$my_cmd"
+ my_status=$?
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+# func_show_eval_locale cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it. Use the saved locale for evaluation.
+func_show_eval_locale ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$lt_user_locale
+ $my_cmd"
+ my_status=$?
+ eval "$lt_safe_locale"
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+
+
+
+# func_version
+# Echo version message to standard output and exit.
+func_version ()
+{
+ $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
+ s/^# //
+ s/^# *$//
+ s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_usage
+# Echo short help message to standard output and exit.
+func_usage ()
+{
+ $SED -n '/^# Usage:/,/# -h/ {
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
+ }' < "$progpath"
+ $ECHO
+ $ECHO "run \`$progname --help | more' for full usage"
+ exit $?
+}
+
+# func_help
+# Echo long help message to standard output and exit.
+func_help ()
+{
+ $SED -n '/^# Usage:/,/# Report bugs to/ {
+ s/^# //
+ s/^# *$//
+ s*\$progname*'$progname'*
+ s*\$host*'"$host"'*
+ s*\$SHELL*'"$SHELL"'*
+ s*\$LTCC*'"$LTCC"'*
+ s*\$LTCFLAGS*'"$LTCFLAGS"'*
+ s*\$LD*'"$LD"'*
+ s/\$with_gnu_ld/'"$with_gnu_ld"'/
+ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
+ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_missing_arg argname
+# Echo program name prefixed message to standard error and set global
+# exit_cmd.
+func_missing_arg ()
+{
+ func_error "missing argument for $1"
+ exit_cmd=exit
+}
+
+exit_cmd=:
+
+
+
+
+
+# Check that we have a working $ECHO.
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell, and then maybe $ECHO will work.
+ exec $SHELL "$progpath" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<EOF
+$*
+EOF
+ exit $EXIT_SUCCESS
+fi
+
+magic="%%%MAGIC variable%%%"
+magic_exe="%%%MAGIC EXE variable%%%"
+
+# Global variables.
+# $mode is unset
+nonopt=
+execute_dlfiles=
+preserve_args=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+extracted_archives=
+extracted_serial=0
+
+opt_dry_run=false
+opt_duplicate_deps=false
+opt_silent=false
+opt_debug=:
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end. This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+# func_fatal_configuration arg...
+# Echo program name prefixed message to standard error, followed by
+# a configuration failure hint, and exit.
+func_fatal_configuration ()
+{
+ func_error ${1+"$@"}
+ func_error "See the $PACKAGE documentation for more information."
+ func_fatal_error "Fatal configuration error."
+}
+
+
+# func_config
+# Display the configuration for all the tags in this script.
+func_config ()
+{
+ re_begincf='^# ### BEGIN LIBTOOL'
+ re_endcf='^# ### END LIBTOOL'
+
+ # Default configuration.
+ $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
+
+ # Now print the configurations for the tags.
+ for tagname in $taglist; do
+ $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
+ done
+
+ exit $?
+}
+
+# func_features
+# Display the features supported by this script.
+func_features ()
+{
+ $ECHO "host: $host"
+ if test "$build_libtool_libs" = yes; then
+ $ECHO "enable shared libraries"
+ else
+ $ECHO "disable shared libraries"
+ fi
+ if test "$build_old_libs" = yes; then
+ $ECHO "enable static libraries"
+ else
+ $ECHO "disable static libraries"
+ fi
+
+ exit $?
+}
+
+# func_enable_tag tagname
+# Verify that TAGNAME is valid, and either flag an error and exit, or
+# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
+# variable here.
+func_enable_tag ()
+{
+ # Global variable:
+ tagname="$1"
+
+ re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
+ re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
+ sed_extractcf="/$re_begincf/,/$re_endcf/p"
+
+ # Validate tagname.
+ case $tagname in
+ *[!-_A-Za-z0-9,/]*)
+ func_fatal_error "invalid tag name: $tagname"
+ ;;
+ esac
+
+ # Don't test for the "default" C tag, as we know it's
+ # there but not specially marked.
+ case $tagname in
+ CC) ;;
+ *)
+ if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
+ taglist="$taglist $tagname"
+
+ # Evaluate the configuration. Be careful to quote the path
+ # and the sed script, to avoid splitting on whitespace, but
+ # also don't use non-portable quotes within backquotes within
+ # quotes we have to do it in 2 steps:
+ extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
+ eval "$extractedcf"
+ else
+ func_error "ignoring unknown tag $tagname"
+ fi
+ ;;
+ esac
+}
+
+# Parse options once, thoroughly. This comes as soon as possible in
+# the script to make things like `libtool --version' happen quickly.
+{
+
+ # Shorthand for --mode=foo, only valid as the first argument
+ case $1 in
+ clean|clea|cle|cl)
+ shift; set dummy --mode clean ${1+"$@"}; shift
+ ;;
+ compile|compil|compi|comp|com|co|c)
+ shift; set dummy --mode compile ${1+"$@"}; shift
+ ;;
+ execute|execut|execu|exec|exe|ex|e)
+ shift; set dummy --mode execute ${1+"$@"}; shift
+ ;;
+ finish|finis|fini|fin|fi|f)
+ shift; set dummy --mode finish ${1+"$@"}; shift
+ ;;
+ install|instal|insta|inst|ins|in|i)
+ shift; set dummy --mode install ${1+"$@"}; shift
+ ;;
+ link|lin|li|l)
+ shift; set dummy --mode link ${1+"$@"}; shift
+ ;;
+ uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
+ shift; set dummy --mode uninstall ${1+"$@"}; shift
+ ;;
+ esac
+
+ # Parse non-mode specific arguments:
+ while test "$#" -gt 0; do
+ opt="$1"
+ shift
+
+ case $opt in
+ --config) func_config ;;
+
+ --debug) preserve_args="$preserve_args $opt"
+ func_echo "enabling shell trace mode"
+ opt_debug='set -x'
+ $opt_debug
+ ;;
+
+ -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ execute_dlfiles="$execute_dlfiles $1"
+ shift
+ ;;
+
+ --dry-run | -n) opt_dry_run=: ;;
+ --features) func_features ;;
+ --finish) mode="finish" ;;
+
+ --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ case $1 in
+ # Valid mode arguments:
+ clean) ;;
+ compile) ;;
+ execute) ;;
+ finish) ;;
+ install) ;;
+ link) ;;
+ relink) ;;
+ uninstall) ;;
+
+ # Catch anything else as an error
+ *) func_error "invalid argument for $opt"
+ exit_cmd=exit
+ break
+ ;;
+ esac
+
+ mode="$1"
+ shift
+ ;;
+
+ --preserve-dup-deps)
+ opt_duplicate_deps=: ;;
+
+ --quiet|--silent) preserve_args="$preserve_args $opt"
+ opt_silent=:
+ ;;
+
+ --verbose| -v) preserve_args="$preserve_args $opt"
+ opt_silent=false
+ ;;
+
+ --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ preserve_args="$preserve_args $opt $1"
+ func_enable_tag "$1" # tagname is set here
+ shift
+ ;;
+
+ # Separate optargs to long options:
+ -dlopen=*|--mode=*|--tag=*)
+ func_opt_split "$opt"
+ set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
+ shift
+ ;;
+
+ -\?|-h) func_usage ;;
+ --help) opt_help=: ;;
+ --version) func_version ;;
+
+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
+
+ *) nonopt="$opt"
+ break
+ ;;
+ esac
+ done
+
+
+ case $host in
+ *cygwin* | *mingw* | *pw32* | *cegcc*)
+ # don't eliminate duplications in $postdeps and $predeps
+ opt_duplicate_compiler_generated_deps=:
+ ;;
+ *)
+ opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
+ ;;
+ esac
+
+ # Having warned about all mis-specified options, bail out if
+ # anything was wrong.
+ $exit_cmd $EXIT_FAILURE
+}
+
+# func_check_version_match
+# Ensure that we are using m4 macros, and libtool script from the same
+# release of libtool.
+func_check_version_match ()
+{
+ if test "$package_revision" != "$macro_revision"; then
+ if test "$VERSION" != "$macro_version"; then
+ if test -z "$macro_version"; then
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from an older release.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ fi
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
+$progname: of $PACKAGE $VERSION and run autoconf again.
+_LT_EOF
+ fi
+
+ exit $EXIT_MISMATCH
+ fi
+}
+
+
+## ----------- ##
+## Main. ##
+## ----------- ##
+
+$opt_help || {
+ # Sanity checks first:
+ func_check_version_match
+
+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ func_fatal_configuration "not configured to build any kind of library"
+ fi
+
+ test -z "$mode" && func_fatal_error "error: you must specify a MODE."
+
+
+ # Darwin sucks
+ eval std_shrext=\"$shrext_cmds\"
+
+
+ # Only execute mode is allowed to have -dlopen flags.
+ if test -n "$execute_dlfiles" && test "$mode" != execute; then
+ func_error "unrecognized option \`-dlopen'"
+ $ECHO "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Change the help message to a mode-specific one.
+ generic_help="$help"
+ help="Try \`$progname --help --mode=$mode' for more information."
+}
+
+
+# func_lalib_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_lalib_p ()
+{
+ test -f "$1" &&
+ $SED -e 4q "$1" 2>/dev/null \
+ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
+}
+
+# func_lalib_unsafe_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function implements the same check as func_lalib_p without
+# resorting to external programs. To this end, it redirects stdin and
+# closes it afterwards, without saving the original file descriptor.
+# As a safety measure, use it only where a negative result would be
+# fatal anyway. Works if `file' does not exist.
+func_lalib_unsafe_p ()
+{
+ lalib_p=no
+ if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
+ for lalib_p_l in 1 2 3 4
+ do
+ read lalib_p_line
+ case "$lalib_p_line" in
+ \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
+ esac
+ done
+ exec 0<&5 5<&-
+ fi
+ test "$lalib_p" = yes
+}
+
+# func_ltwrapper_script_p file
+# True iff FILE is a libtool wrapper script
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_script_p ()
+{
+ func_lalib_p "$1"
+}
+
+# func_ltwrapper_executable_p file
+# True iff FILE is a libtool wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_executable_p ()
+{
+ func_ltwrapper_exec_suffix=
+ case $1 in
+ *.exe) ;;
+ *) func_ltwrapper_exec_suffix=.exe ;;
+ esac
+ $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
+}
+
+# func_ltwrapper_scriptname file
+# Assumes file is an ltwrapper_executable
+# uses $file to determine the appropriate filename for a
+# temporary ltwrapper_script.
+func_ltwrapper_scriptname ()
+{
+ func_ltwrapper_scriptname_result=""
+ if func_ltwrapper_executable_p "$1"; then
+ func_dirname_and_basename "$1" "" "."
+ func_stripname '' '.exe' "$func_basename_result"
+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
+ fi
+}
+
+# func_ltwrapper_p file
+# True iff FILE is a libtool wrapper script or wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_p ()
+{
+ func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
+}
+
+
+# func_execute_cmds commands fail_cmd
+# Execute tilde-delimited COMMANDS.
+# If FAIL_CMD is given, eval that upon failure.
+# FAIL_CMD may read-access the current command in variable CMD!
+func_execute_cmds ()
+{
+ $opt_debug
+ save_ifs=$IFS; IFS='~'
+ for cmd in $1; do
+ IFS=$save_ifs
+ eval cmd=\"$cmd\"
+ func_show_eval "$cmd" "${2-:}"
+ done
+ IFS=$save_ifs
+}
+
+
+# func_source file
+# Source FILE, adding directory component if necessary.
+# Note that it is not necessary on cygwin/mingw to append a dot to
+# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
+# behavior happens only for exec(3), not for open(2)! Also, sourcing
+# `FILE.' does not work on cygwin managed mounts.
+func_source ()
+{
+ $opt_debug
+ case $1 in
+ */* | *\\*) . "$1" ;;
+ *) . "./$1" ;;
+ esac
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+ $opt_debug
+ if test -n "$available_tags" && test -z "$tagname"; then
+ CC_quoted=
+ for arg in $CC; do
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case $@ in
+ # Blanks in the command may have been stripped by the calling shell,
+ # but not from the CC environment variable when configure was run.
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
+ # Blanks at the start of $base_compile will cause this to fail
+ # if we don't check for them as well.
+ *)
+ for z in $available_tags; do
+ if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+ CC_quoted=
+ for arg in $CC; do
+ # Double-quote args containing other shell metacharacters.
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case "$@ " in
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+ # Assume this is the tagged configuration we want.
+ tagname=$z
+ break
+ ;;
+ esac
+ fi
+ done
+ # If $tagname still isn't set, then no tagged configuration
+ # was found and let the user know that the "--tag" command
+ # line option must be used.
+ if test -z "$tagname"; then
+ func_echo "unable to infer tagged configuration"
+ func_fatal_error "specify a tag with \`--tag'"
+# else
+# func_verbose "using $tagname tagged configuration"
+ fi
+ ;;
+ esac
+ fi
+}
+
+
+
+# func_write_libtool_object output_name pic_name nonpic_name
+# Create a libtool object file (analogous to a ".la" file),
+# but don't create it if we're doing a dry run.
+func_write_libtool_object ()
+{
+ write_libobj=${1}
+ if test "$build_libtool_libs" = yes; then
+ write_lobj=\'${2}\'
+ else
+ write_lobj=none
+ fi
+
+ if test "$build_old_libs" = yes; then
+ write_oldobj=\'${3}\'
+ else
+ write_oldobj=none
+ fi
+
+ $opt_dry_run || {
+ cat >${write_libobj}T <<EOF
+# $write_libobj - a libtool object file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object=$write_lobj
+
+# Name of the non-PIC object
+non_pic_object=$write_oldobj
+
+EOF
+ $MV "${write_libobj}T" "${write_libobj}"
+ }
+}
+
+# func_mode_compile arg...
+func_mode_compile ()
+{
+ $opt_debug
+ # Get the compilation command and the source file.
+ base_compile=
+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
+ suppress_opt=yes
+ suppress_output=
+ arg_mode=normal
+ libobj=
+ later=
+ pie_flag=
+
+ for arg
+ do
+ case $arg_mode in
+ arg )
+ # do not "continue". Instead, add this to base_compile
+ lastarg="$arg"
+ arg_mode=normal
+ ;;
+
+ target )
+ libobj="$arg"
+ arg_mode=normal
+ continue
+ ;;
+
+ normal )
+ # Accept any command-line options.
+ case $arg in
+ -o)
+ test -n "$libobj" && \
+ func_fatal_error "you cannot specify \`-o' more than once"
+ arg_mode=target
+ continue
+ ;;
+
+ -pie | -fpie | -fPIE)
+ pie_flag="$pie_flag $arg"
+ continue
+ ;;
+
+ -shared | -static | -prefer-pic | -prefer-non-pic)
+ later="$later $arg"
+ continue
+ ;;
+
+ -no-suppress)
+ suppress_opt=no
+ continue
+ ;;
+
+ -Xcompiler)
+ arg_mode=arg # the next one goes into the "base_compile" arg list
+ continue # The current "srcfile" will either be retained or
+ ;; # replaced later. I would guess that would be a bug.
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ lastarg=
+ save_ifs="$IFS"; IFS=','
+ for arg in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$arg"
+ lastarg="$lastarg $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$lastarg"
+ lastarg=$func_stripname_result
+
+ # Add the arguments to base_compile.
+ base_compile="$base_compile $lastarg"
+ continue
+ ;;
+
+ *)
+ # Accept the current argument as the source file.
+ # The previous "srcfile" becomes the current argument.
+ #
+ lastarg="$srcfile"
+ srcfile="$arg"
+ ;;
+ esac # case $arg
+ ;;
+ esac # case $arg_mode
+
+ # Aesthetically quote the previous argument.
+ func_quote_for_eval "$lastarg"
+ base_compile="$base_compile $func_quote_for_eval_result"
+ done # for arg
+
+ case $arg_mode in
+ arg)
+ func_fatal_error "you must specify an argument for -Xcompile"
+ ;;
+ target)
+ func_fatal_error "you must specify a target with \`-o'"
+ ;;
+ *)
+ # Get the name of the library object.
+ test -z "$libobj" && {
+ func_basename "$srcfile"
+ libobj="$func_basename_result"
+ }
+ ;;
+ esac
+
+ # Recognize several different file suffixes.
+ # If the user specifies -o file.o, it is replaced with file.lo
+ case $libobj in
+ *.[cCFSifmso] | \
+ *.ada | *.adb | *.ads | *.asm | \
+ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
+ *.[fF][09]? | *.for | *.java | *.obj | *.sx)
+ func_xform "$libobj"
+ libobj=$func_xform_result
+ ;;
+ esac
+
+ case $libobj in
+ *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
+ *)
+ func_fatal_error "cannot determine name of library object from \`$libobj'"
+ ;;
+ esac
+
+ func_infer_tag $base_compile
+
+ for arg in $later; do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ continue
+ ;;
+
+ -static)
+ build_libtool_libs=no
+ build_old_libs=yes
+ continue
+ ;;
+
+ -prefer-pic)
+ pic_mode=yes
+ continue
+ ;;
+
+ -prefer-non-pic)
+ pic_mode=no
+ continue
+ ;;
+ esac
+ done
+
+ func_quote_for_eval "$libobj"
+ test "X$libobj" != "X$func_quote_for_eval_result" \
+ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
+ && func_warning "libobj name \`$libobj' may not contain shell special characters."
+ func_dirname_and_basename "$obj" "/" ""
+ objname="$func_basename_result"
+ xdir="$func_dirname_result"
+ lobj=${xdir}$objdir/$objname
+
+ test -z "$base_compile" && \
+ func_fatal_help "you must specify a compilation command"
+
+ # Delete any leftover library objects.
+ if test "$build_old_libs" = yes; then
+ removelist="$obj $lobj $libobj ${libobj}T"
+ else
+ removelist="$lobj $libobj ${libobj}T"
+ fi
+
+ # On Cygwin there's no "real" PIC flag so we must build both object types
+ case $host_os in
+ cygwin* | mingw* | pw32* | os2* | cegcc*)
+ pic_mode=default
+ ;;
+ esac
+ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
+ # non-PIC code in shared libraries is not supported
+ pic_mode=default
+ fi
+
+ # Calculate the filename of the output object if compiler does
+ # not support -o with -c
+ if test "$compiler_c_o" = no; then
+ output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+ lockfile="$output_obj.lock"
+ else
+ output_obj=
+ need_locks=no
+ lockfile=
+ fi
+
+ # Lock this critical section if it is needed
+ # We use this script file to make the link, it avoids creating a new file
+ if test "$need_locks" = yes; then
+ until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+ func_echo "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+ elif test "$need_locks" = warn; then
+ if test -f "$lockfile"; then
+ $ECHO "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+ removelist="$removelist $output_obj"
+ $ECHO "$srcfile" > "$lockfile"
+ fi
+
+ $opt_dry_run || $RM $removelist
+ removelist="$removelist $lockfile"
+ trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
+
+ if test -n "$fix_srcfile_path"; then
+ eval srcfile=\"$fix_srcfile_path\"
+ fi
+ func_quote_for_eval "$srcfile"
+ qsrcfile=$func_quote_for_eval_result
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ func_mkdir_p "$xdir$objdir"
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
+ fi
+
+ func_show_eval_locale "$command" \
+ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed, then go on to compile the next one
+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+ func_show_eval '$MV "$output_obj" "$lobj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile$pie_flag"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ command="$command -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ command="$command$suppress_output"
+ func_show_eval_locale "$command" \
+ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed
+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+ func_show_eval '$MV "$output_obj" "$obj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+ fi
+
+ $opt_dry_run || {
+ func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ removelist=$lockfile
+ $RM "$lockfile"
+ fi
+ }
+
+ exit $EXIT_SUCCESS
+}
+
+$opt_help || {
+test "$mode" = compile && func_mode_compile ${1+"$@"}
+}
+
+func_mode_help ()
+{
+ # We need to display help for each of the modes.
+ case $mode in
+ "")
+ # Generic help is extracted from the usage comments
+ # at the start of this file.
+ func_help
+ ;;
+
+ clean)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ compile)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+ -o OUTPUT-FILE set the output file name to OUTPUT-FILE
+ -no-suppress do not suppress compiler output for multiple passes
+ -prefer-pic try to building PIC objects only
+ -prefer-non-pic try to building non-PIC objects only
+ -shared do not build a \`.o' file suitable for static linking
+ -static only build a \`.o' file suitable for static linking
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'."
+ ;;
+
+ execute)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+ -dlopen FILE add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+ ;;
+
+ finish)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges. Use
+the \`--dry-run' option if you just want to see what would be executed."
+ ;;
+
+ install)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command. The first component should be
+either the \`install' or \`cp' program.
+
+The following components of INSTALL-COMMAND are treated specially:
+
+ -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+ ;;
+
+ link)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+ -all-static do not do any dynamic linking at all
+ -avoid-version do not add a version suffix if possible
+ -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
+ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
+ -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+ -export-symbols SYMFILE
+ try to export only the symbols listed in SYMFILE
+ -export-symbols-regex REGEX
+ try to export only the symbols matching REGEX
+ -LLIBDIR search LIBDIR for required installed libraries
+ -lNAME OUTPUT-FILE requires the installed library libNAME
+ -module build a library that can dlopened
+ -no-fast-install disable the fast-install mode
+ -no-install link a not-installable executable
+ -no-undefined declare that a library does not refer to external symbols
+ -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
+ -objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
+ -release RELEASE specify package release information
+ -rpath LIBDIR the created library will eventually be installed in LIBDIR
+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
+ -shared only do dynamic linking of libtool libraries
+ -shrext SUFFIX override the standard shared library file extension
+ -static do not do any dynamic linking of uninstalled libtool libraries
+ -static-libtool-libs
+ do not do any dynamic linking of libtool libraries
+ -version-info CURRENT[:REVISION[:AGE]]
+ specify library version info [each variable defaults to 0]
+ -weak LIBNAME declare that the target provides the LIBNAME interface
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename. Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created."
+ ;;
+
+ uninstall)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ *)
+ func_fatal_help "invalid operation mode \`$mode'"
+ ;;
+ esac
+
+ $ECHO
+ $ECHO "Try \`$progname --help' for more information about other modes."
+
+ exit $?
+}
+
+ # Now that we've collected a possible --mode arg, show help if necessary
+ $opt_help && func_mode_help
+
+
+# func_mode_execute arg...
+func_mode_execute ()
+{
+ $opt_debug
+ # The first argument is the command name.
+ cmd="$nonopt"
+ test -z "$cmd" && \
+ func_fatal_help "you must specify a COMMAND"
+
+ # Handle -dlopen flags immediately.
+ for file in $execute_dlfiles; do
+ test -f "$file" \
+ || func_fatal_help "\`$file' is not a file"
+
+ dir=
+ case $file in
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$lib' is not a valid libtool archive"
+
+ # Read the libtool library.
+ dlname=
+ library_names=
+ func_source "$file"
+
+ # Skip this library if it cannot be dlopened.
+ if test -z "$dlname"; then
+ # Warn if it was a shared library.
+ test -n "$library_names" && \
+ func_warning "\`$file' was not linked with \`-export-dynamic'"
+ continue
+ fi
+
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+
+ if test -f "$dir/$objdir/$dlname"; then
+ dir="$dir/$objdir"
+ else
+ if test ! -f "$dir/$dlname"; then
+ func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
+ fi
+ fi
+ ;;
+
+ *.lo)
+ # Just add the directory containing the .lo file.
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ ;;
+
+ *)
+ func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
+ continue
+ ;;
+ esac
+
+ # Get the absolute pathname.
+ absdir=`cd "$dir" && pwd`
+ test -n "$absdir" && dir="$absdir"
+
+ # Now add the directory to shlibpath_var.
+ if eval "test -z \"\$$shlibpath_var\""; then
+ eval "$shlibpath_var=\"\$dir\""
+ else
+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+ fi
+ done
+
+ # This variable tells wrapper scripts just to set shlibpath_var
+ # rather than running their programs.
+ libtool_execute_magic="$magic"
+
+ # Check if any of the arguments is a wrapper script.
+ args=
+ for file
+ do
+ case $file in
+ -*) ;;
+ *)
+ # Do a test to see if this is really a libtool program.
+ if func_ltwrapper_script_p "$file"; then
+ func_source "$file"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ elif func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ func_source "$func_ltwrapper_scriptname_result"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ fi
+ ;;
+ esac
+ # Quote arguments (to preserve shell metacharacters).
+ func_quote_for_eval "$file"
+ args="$args $func_quote_for_eval_result"
+ done
+
+ if test "X$opt_dry_run" = Xfalse; then
+ if test -n "$shlibpath_var"; then
+ # Export the shlibpath_var.
+ eval "export $shlibpath_var"
+ fi
+
+ # Restore saved environment variables
+ for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ else
+ $lt_unset $lt_var
+ fi"
+ done
+
+ # Now prepare to actually exec the command.
+ exec_cmd="\$cmd$args"
+ else
+ # Display what would be done.
+ if test -n "$shlibpath_var"; then
+ eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
+ $ECHO "export $shlibpath_var"
+ fi
+ $ECHO "$cmd$args"
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = execute && func_mode_execute ${1+"$@"}
+
+
+# func_mode_finish arg...
+func_mode_finish ()
+{
+ $opt_debug
+ libdirs="$nonopt"
+ admincmds=
+
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+ for dir
+ do
+ libdirs="$libdirs $dir"
+ done
+
+ for libdir in $libdirs; do
+ if test -n "$finish_cmds"; then
+ # Do each command in the finish commands.
+ func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
+'"$cmd"'"'
+ fi
+ if test -n "$finish_eval"; then
+ # Do the single finish_eval.
+ eval cmds=\"$finish_eval\"
+ $opt_dry_run || eval "$cmds" || admincmds="$admincmds
+ $cmds"
+ fi
+ done
+ fi
+
+ # Exit here if they wanted silent mode.
+ $opt_silent && exit $EXIT_SUCCESS
+
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ $ECHO "Libraries have been installed in:"
+ for libdir in $libdirs; do
+ $ECHO " $libdir"
+ done
+ $ECHO
+ $ECHO "If you ever happen to want to link against installed libraries"
+ $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
+ $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
+ $ECHO "flag during linking and do at least one of the following:"
+ if test -n "$shlibpath_var"; then
+ $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
+ $ECHO " during execution"
+ fi
+ if test -n "$runpath_var"; then
+ $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
+ $ECHO " during linking"
+ fi
+ if test -n "$hardcode_libdir_flag_spec"; then
+ libdir=LIBDIR
+ eval flag=\"$hardcode_libdir_flag_spec\"
+
+ $ECHO " - use the \`$flag' linker flag"
+ fi
+ if test -n "$admincmds"; then
+ $ECHO " - have your system administrator run these commands:$admincmds"
+ fi
+ if test -f /etc/ld.so.conf; then
+ $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+ fi
+ $ECHO
+
+ $ECHO "See any operating system documentation about shared libraries for"
+ case $host in
+ solaris2.[6789]|solaris2.1[0-9])
+ $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
+ $ECHO "pages."
+ ;;
+ *)
+ $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
+ ;;
+ esac
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ exit $EXIT_SUCCESS
+}
+
+test "$mode" = finish && func_mode_finish ${1+"$@"}
+
+
+# func_mode_install arg...
+func_mode_install ()
+{
+ $opt_debug
+ # There may be an optional sh(1) argument at the beginning of
+ # install_prog (especially on Windows NT).
+ if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
+ # Allow the use of GNU shtool's install command.
+ $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
+ # Aesthetically quote it.
+ func_quote_for_eval "$nonopt"
+ install_prog="$func_quote_for_eval_result "
+ arg=$1
+ shift
+ else
+ install_prog=
+ arg=$nonopt
+ fi
+
+ # The real first argument should be the name of the installation program.
+ # Aesthetically quote it.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog$func_quote_for_eval_result"
+
+ # We need to accept at least all the BSD install flags.
+ dest=
+ files=
+ opts=
+ prev=
+ install_type=
+ isdir=no
+ stripme=
+ for arg
+ do
+ if test -n "$dest"; then
+ files="$files $dest"
+ dest=$arg
+ continue
+ fi
+
+ case $arg in
+ -d) isdir=yes ;;
+ -f)
+ case " $install_prog " in
+ *[\\\ /]cp\ *) ;;
+ *) prev=$arg ;;
+ esac
+ ;;
+ -g | -m | -o)
+ prev=$arg
+ ;;
+ -s)
+ stripme=" -s"
+ continue
+ ;;
+ -*)
+ ;;
+ *)
+ # If the previous option needed an argument, then skip it.
+ if test -n "$prev"; then
+ prev=
+ else
+ dest=$arg
+ continue
+ fi
+ ;;
+ esac
+
+ # Aesthetically quote the argument.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog $func_quote_for_eval_result"
+ done
+
+ test -z "$install_prog" && \
+ func_fatal_help "you must specify an install program"
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prev' option requires an argument"
+
+ if test -z "$files"; then
+ if test -z "$dest"; then
+ func_fatal_help "no file or destination specified"
+ else
+ func_fatal_help "you must specify a destination"
+ fi
+ fi
+
+ # Strip any trailing slash from the destination.
+ func_stripname '' '/' "$dest"
+ dest=$func_stripname_result
+
+ # Check to see that the destination is a directory.
+ test -d "$dest" && isdir=yes
+ if test "$isdir" = yes; then
+ destdir="$dest"
+ destname=
+ else
+ func_dirname_and_basename "$dest" "" "."
+ destdir="$func_dirname_result"
+ destname="$func_basename_result"
+
+ # Not a directory, so check to see that there is only one file specified.
+ set dummy $files; shift
+ test "$#" -gt 1 && \
+ func_fatal_help "\`$dest' is not a directory"
+ fi
+ case $destdir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ for file in $files; do
+ case $file in
+ *.lo) ;;
+ *)
+ func_fatal_help "\`$destdir' must be an absolute directory name"
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ staticlibs=
+ future_libdirs=
+ current_libdirs=
+ for file in $files; do
+
+ # Do each installation.
+ case $file in
+ *.$libext)
+ # Do the static libraries later.
+ staticlibs="$staticlibs $file"
+ ;;
+
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$file' is not a valid libtool archive"
+
+ library_names=
+ old_library=
+ relink_command=
+ func_source "$file"
+
+ # Add the libdir to current_libdirs if it is the destination.
+ if test "X$destdir" = "X$libdir"; then
+ case "$current_libdirs " in
+ *" $libdir "*) ;;
+ *) current_libdirs="$current_libdirs $libdir" ;;
+ esac
+ else
+ # Note the libdir as a future libdir.
+ case "$future_libdirs " in
+ *" $libdir "*) ;;
+ *) future_libdirs="$future_libdirs $libdir" ;;
+ esac
+ fi
+
+ func_dirname "$file" "/" ""
+ dir="$func_dirname_result"
+ dir="$dir$objdir"
+
+ if test -n "$relink_command"; then
+ # Determine the prefix the user has applied to our future dir.
+ inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
+
+ # Don't allow the user to place us outside of our expected
+ # location b/c this prevents finding dependent libraries that
+ # are installed to the same prefix.
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+ test "$inst_prefix_dir" = "$destdir" && \
+ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+ else
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
+ fi
+
+ func_warning "relinking \`$file'"
+ func_show_eval "$relink_command" \
+ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
+ fi
+
+ # See the names of the shared library.
+ set dummy $library_names; shift
+ if test -n "$1"; then
+ realname="$1"
+ shift
+
+ srcname="$realname"
+ test -n "$relink_command" && srcname="$realname"T
+
+ # Install the shared library and build the symlinks.
+ func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
+ 'exit $?'
+ tstripme="$stripme"
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ case $realname in
+ *.dll.a)
+ tstripme=""
+ ;;
+ esac
+ ;;
+ esac
+ if test -n "$tstripme" && test -n "$striplib"; then
+ func_show_eval "$striplib $destdir/$realname" 'exit $?'
+ fi
+
+ if test "$#" -gt 0; then
+ # Delete the old symlinks, and create new ones.
+ # Try `ln -sf' first, because the `ln' binary might depend on
+ # the symlink we replace! Solaris /bin/ln does not understand -f,
+ # so we also need to try rm && ln -s.
+ for linkname
+ do
+ test "$linkname" != "$realname" \
+ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+ done
+ fi
+
+ # Do each command in the postinstall commands.
+ lib="$destdir/$realname"
+ func_execute_cmds "$postinstall_cmds" 'exit $?'
+ fi
+
+ # Install the pseudo-library for information purposes.
+ func_basename "$file"
+ name="$func_basename_result"
+ instname="$dir/$name"i
+ func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
+ ;;
+
+ *.lo)
+ # Install (i.e. copy) a libtool object.
+
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # Deduce the name of the destination old-style object file.
+ case $destfile in
+ *.lo)
+ func_lo2o "$destfile"
+ staticdest=$func_lo2o_result
+ ;;
+ *.$objext)
+ staticdest="$destfile"
+ destfile=
+ ;;
+ *)
+ func_fatal_help "cannot copy a libtool object to \`$destfile'"
+ ;;
+ esac
+
+ # Install the libtool object if requested.
+ test -n "$destfile" && \
+ func_show_eval "$install_prog $file $destfile" 'exit $?'
+
+ # Install the old object if enabled.
+ if test "$build_old_libs" = yes; then
+ # Deduce the name of the old-style object file.
+ func_lo2o "$file"
+ staticobj=$func_lo2o_result
+ func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
+ fi
+ exit $EXIT_SUCCESS
+ ;;
+
+ *)
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # If the file is missing, and there is a .exe on the end, strip it
+ # because it is most likely a libtool script we actually want to
+ # install
+ stripped_ext=""
+ case $file in
+ *.exe)
+ if test ! -f "$file"; then
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ stripped_ext=".exe"
+ fi
+ ;;
+ esac
+
+ # Do a test to see if this is really a libtool program.
+ case $host in
+ *cygwin* | *mingw*)
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ wrapper=$func_ltwrapper_scriptname_result
+ else
+ func_stripname '' '.exe' "$file"
+ wrapper=$func_stripname_result
+ fi
+ ;;
+ *)
+ wrapper=$file
+ ;;
+ esac
+ if func_ltwrapper_script_p "$wrapper"; then
+ notinst_deplibs=
+ relink_command=
+
+ func_source "$wrapper"
+
+ # Check the variables that should have been set.
+ test -z "$generated_by_libtool_version" && \
+ func_fatal_error "invalid libtool wrapper script \`$wrapper'"
+
+ finalize=yes
+ for lib in $notinst_deplibs; do
+ # Check to see that each library is installed.
+ libdir=
+ if test -f "$lib"; then
+ func_source "$lib"
+ fi
+ libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
+ if test -n "$libdir" && test ! -f "$libfile"; then
+ func_warning "\`$lib' has not been installed in \`$libdir'"
+ finalize=no
+ fi
+ done
+
+ relink_command=
+ func_source "$wrapper"
+
+ outputname=
+ if test "$fast_install" = no && test -n "$relink_command"; then
+ $opt_dry_run || {
+ if test "$finalize" = yes; then
+ tmpdir=`func_mktempdir`
+ func_basename "$file$stripped_ext"
+ file="$func_basename_result"
+ outputname="$tmpdir/$file"
+ # Replace the output file specification.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
+
+ $opt_silent || {
+ func_quote_for_expand "$relink_command"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ if eval "$relink_command"; then :
+ else
+ func_error "error: relink \`$file' with the above command before installing it"
+ $opt_dry_run || ${RM}r "$tmpdir"
+ continue
+ fi
+ file="$outputname"
+ else
+ func_warning "cannot relink \`$file'"
+ fi
+ }
+ else
+ # Install the binary that we compiled earlier.
+ file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+ fi
+ fi
+
+ # remove .exe since cygwin /usr/bin/install will append another
+ # one anyway
+ case $install_prog,$host in
+ */usr/bin/install*,*cygwin*)
+ case $file:$destfile in
+ *.exe:*.exe)
+ # this is ok
+ ;;
+ *.exe:*)
+ destfile=$destfile.exe
+ ;;
+ *:*.exe)
+ func_stripname '' '.exe' "$destfile"
+ destfile=$func_stripname_result
+ ;;
+ esac
+ ;;
+ esac
+ func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
+ $opt_dry_run || if test -n "$outputname"; then
+ ${RM}r "$tmpdir"
+ fi
+ ;;
+ esac
+ done
+
+ for file in $staticlibs; do
+ func_basename "$file"
+ name="$func_basename_result"
+
+ # Set up the ranlib parameters.
+ oldlib="$destdir/$name"
+
+ func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
+
+ if test -n "$stripme" && test -n "$old_striplib"; then
+ func_show_eval "$old_striplib $oldlib" 'exit $?'
+ fi
+
+ # Do each command in the postinstall commands.
+ func_execute_cmds "$old_postinstall_cmds" 'exit $?'
+ done
+
+ test -n "$future_libdirs" && \
+ func_warning "remember to run \`$progname --finish$future_libdirs'"
+
+ if test -n "$current_libdirs"; then
+ # Maybe just do a dry run.
+ $opt_dry_run && current_libdirs=" -n$current_libdirs"
+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+ else
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = install && func_mode_install ${1+"$@"}
+
+
+# func_generate_dlsyms outputname originator pic_p
+# Extract symbols from dlprefiles and create ${outputname}S.o with
+# a dlpreopen symbol table.
+func_generate_dlsyms ()
+{
+ $opt_debug
+ my_outputname="$1"
+ my_originator="$2"
+ my_pic_p="${3-no}"
+ my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
+ my_dlsyms=
+
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ if test -n "$NM" && test -n "$global_symbol_pipe"; then
+ my_dlsyms="${my_outputname}S.c"
+ else
+ func_error "not configured to extract global symbols from dlpreopened files"
+ fi
+ fi
+
+ if test -n "$my_dlsyms"; then
+ case $my_dlsyms in
+ "") ;;
+ *.c)
+ # Discover the nlist of each of the dlfiles.
+ nlist="$output_objdir/${my_outputname}.nm"
+
+ func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
+
+ # Parse the name list into a source file.
+ func_verbose "creating $output_objdir/$my_dlsyms"
+
+ $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
+/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
+/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+/* External symbol declarations for the compiler. */\
+"
+
+ if test "$dlself" = yes; then
+ func_verbose "generating symbol list for \`$output'"
+
+ $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
+
+ # Add our own program objects to the symbol list.
+ progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ for progfile in $progfiles; do
+ func_verbose "extracting global C symbols from \`$progfile'"
+ $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
+ done
+
+ if test -n "$exclude_expsyms"; then
+ $opt_dry_run || {
+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ if test -n "$export_symbols_regex"; then
+ $opt_dry_run || {
+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ export_symbols="$output_objdir/$outputname.exp"
+ $opt_dry_run || {
+ $RM $export_symbols
+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ else
+ $opt_dry_run || {
+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ case $host in
+ *cygwin | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ fi
+ fi
+
+ for dlprefile in $dlprefiles; do
+ func_verbose "extracting global C symbols from \`$dlprefile'"
+ func_basename "$dlprefile"
+ name="$func_basename_result"
+ $opt_dry_run || {
+ eval '$ECHO ": $name " >> "$nlist"'
+ eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+ }
+ done
+
+ $opt_dry_run || {
+ # Make sure we have at least an empty file.
+ test -f "$nlist" || : > "$nlist"
+
+ if test -n "$exclude_expsyms"; then
+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+ $MV "$nlist"T "$nlist"
+ fi
+
+ # Try sorting and uniquifying the output.
+ if $GREP -v "^: " < "$nlist" |
+ if sort -k 3 </dev/null >/dev/null 2>&1; then
+ sort -k 3
+ else
+ sort +2
+ fi |
+ uniq > "$nlist"S; then
+ :
+ else
+ $GREP -v "^: " < "$nlist" > "$nlist"S
+ fi
+
+ if test -f "$nlist"S; then
+ eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
+ else
+ $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
+ fi
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+
+/* The mapping between symbol names and symbols. */
+typedef struct {
+ const char *name;
+ void *address;
+} lt_dlsymlist;
+"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+/* DATA imports from DLLs on WIN32 con't be const, because
+ runtime relocations are performed -- see ld's documentation
+ on pseudo-relocs. */"
+ lt_dlsym_const= ;;
+ *osf5*)
+ echo >> "$output_objdir/$my_dlsyms" "\
+/* This system does not cope well with relocations in const data */"
+ lt_dlsym_const= ;;
+ *)
+ lt_dlsym_const=const ;;
+ esac
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+extern $lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[];
+$lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[] =
+{\
+ { \"$my_originator\", (void *) 0 },"
+
+ case $need_lib_prefix in
+ no)
+ eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ *)
+ eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ esac
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt_${my_prefix}_LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+ } # !$opt_dry_run
+
+ pic_flag_for_symtable=
+ case "$compile_command " in
+ *" -static "*) ;;
+ *)
+ case $host in
+ # compiling the symbol table file with pic_flag works around
+ # a FreeBSD bug that causes programs to crash when -lm is
+ # linked before any other PIC object. But we must not use
+ # pic_flag when linking with -static. The problem exists in
+ # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+ *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+ pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
+ *-*-hpux*)
+ pic_flag_for_symtable=" $pic_flag" ;;
+ *)
+ if test "X$my_pic_p" != Xno; then
+ pic_flag_for_symtable=" $pic_flag"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ symtab_cflags=
+ for arg in $LTCFLAGS; do
+ case $arg in
+ -pie | -fpie | -fPIE) ;;
+ *) symtab_cflags="$symtab_cflags $arg" ;;
+ esac
+ done
+
+ # Now compile the dynamic symbol file.
+ func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
+
+ # Clean up the generated files.
+ func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
+
+ # Transform the symbol file into the correct name.
+ symfileobj="$output_objdir/${my_outputname}S.$objext"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ if test -f "$output_objdir/$my_outputname.def"; then
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ else
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ fi
+ ;;
+ *)
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ ;;
+ esac
+ ;;
+ *)
+ func_fatal_error "unknown suffix for \`$my_dlsyms'"
+ ;;
+ esac
+ else
+ # We keep going just in case the user didn't refer to
+ # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
+ # really was required.
+
+ # Nullify the symbol file.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
+ fi
+}
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid ()
+{
+ $opt_debug
+ win32_libid_type="unknown"
+ win32_fileres=`file -L $1 2>/dev/null`
+ case $win32_fileres in
+ *ar\ archive\ import\ library*) # definitely import
+ win32_libid_type="x86 archive import"
+ ;;
+ *ar\ archive*) # could be an import, or static
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
+ $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+ win32_nmres=`eval $NM -f posix -A $1 |
+ $SED -n -e '
+ 1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
+ case $win32_nmres in
+ import*) win32_libid_type="x86 archive import";;
+ *) win32_libid_type="x86 archive static";;
+ esac
+ fi
+ ;;
+ *DLL*)
+ win32_libid_type="x86 DLL"
+ ;;
+ *executable*) # but shell scripts are "executable" too...
+ case $win32_fileres in
+ *MS\ Windows\ PE\ Intel*)
+ win32_libid_type="x86 DLL"
+ ;;
+ esac
+ ;;
+ esac
+ $ECHO "$win32_libid_type"
+}
+
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+ $opt_debug
+ f_ex_an_ar_dir="$1"; shift
+ f_ex_an_ar_oldlib="$1"
+ func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
+ if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
+ fi
+}
+
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+ $opt_debug
+ my_gentop="$1"; shift
+ my_oldlibs=${1+"$@"}
+ my_oldobjs=""
+ my_xlib=""
+ my_xabs=""
+ my_xdir=""
+
+ for my_xlib in $my_oldlibs; do
+ # Extract the objects.
+ case $my_xlib in
+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
+ *) my_xabs=`pwd`"/$my_xlib" ;;
+ esac
+ func_basename "$my_xlib"
+ my_xlib="$func_basename_result"
+ my_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ func_arith $extracted_serial + 1
+ extracted_serial=$func_arith_result
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ func_mkdir_p "$my_xdir"
+
+ case $host in
+ *-darwin*)
+ func_verbose "Extracting $my_xabs"
+ # Do not bother doing anything if just a dry run
+ $opt_dry_run || {
+ darwin_orig_dir=`pwd`
+ cd $my_xdir || exit $?
+ darwin_archive=$my_xabs
+ darwin_curdir=`pwd`
+ darwin_base_archive=`basename "$darwin_archive"`
+ darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
+ if test -n "$darwin_arches"; then
+ darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
+ darwin_arch=
+ func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
+ for darwin_arch in $darwin_arches ; do
+ func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ func_extract_an_archive "`pwd`" "${darwin_base_archive}"
+ cd "$darwin_curdir"
+ $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
+ done # $darwin_arches
+ ## Okay now we've a bunch of thin objects, gotta fatten them up :)
+ darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
+ darwin_file=
+ darwin_files=
+ for darwin_file in $darwin_filelist; do
+ darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+ $LIPO -create -output "$darwin_file" $darwin_files
+ done # $darwin_filelist
+ $RM -rf unfat-$$
+ cd "$darwin_orig_dir"
+ else
+ cd $darwin_orig_dir
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ fi # $darwin_arches
+ } # !$opt_dry_run
+ ;;
+ *)
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ ;;
+ esac
+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ done
+
+ func_extract_archives_result="$my_oldobjs"
+}
+
+
+
+# func_emit_wrapper_part1 [arg=no]
+#
+# Emit the first part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part1 ()
+{
+ func_emit_wrapper_part1_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part1_arg1=$1
+ fi
+
+ $ECHO "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='${SED} -e 1s/^X//'
+sed_quote_subst='$sed_quote_subst'
+
+# Be Bourne compatible
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+ # install mode needs the following variables:
+ generated_by_libtool_version='$macro_version'
+ notinst_deplibs='$notinst_deplibs'
+else
+ # When we are sourced in execute mode, \$file and \$ECHO are already set.
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ ECHO=\"$qecho\"
+ file=\"\$0\"
+ # Make sure echo works.
+ if test \"X\$1\" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+ elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
+ # Yippee, \$ECHO works!
+ :
+ else
+ # Restart under the correct shell, and then maybe \$ECHO will work.
+ exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
+ fi
+ fi\
+"
+ $ECHO "\
+
+ # Find the directory that this script lives in.
+ thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
+ test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+ # Follow symbolic links until we get to the real thisdir.
+ file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
+ while test -n \"\$file\"; do
+ destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
+
+ # If there was a directory component, then change thisdir.
+ if test \"x\$destdir\" != \"x\$file\"; then
+ case \"\$destdir\" in
+ [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+ *) thisdir=\"\$thisdir/\$destdir\" ;;
+ esac
+ fi
+
+ file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
+ file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
+ done
+"
+}
+# end: func_emit_wrapper_part1
+
+# func_emit_wrapper_part2 [arg=no]
+#
+# Emit the second part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part2 ()
+{
+ func_emit_wrapper_part2_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part2_arg1=$1
+ fi
+
+ $ECHO "\
+
+ # Usually 'no', except on cygwin/mingw when embedded into
+ # the cwrapper.
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
+ if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
+ # special case for '.'
+ if test \"\$thisdir\" = \".\"; then
+ thisdir=\`pwd\`
+ fi
+ # remove .libs from thisdir
+ case \"\$thisdir\" in
+ *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
+ $objdir ) thisdir=. ;;
+ esac
+ fi
+
+ # Try to get the absolute directory name.
+ absdir=\`cd \"\$thisdir\" && pwd\`
+ test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+ if test "$fast_install" = yes; then
+ $ECHO "\
+ program=lt-'$outputname'$exeext
+ progdir=\"\$thisdir/$objdir\"
+
+ if test ! -f \"\$progdir/\$program\" ||
+ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
+ test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+ file=\"\$\$-\$program\"
+
+ if test ! -d \"\$progdir\"; then
+ $MKDIR \"\$progdir\"
+ else
+ $RM \"\$progdir/\$file\"
+ fi"
+
+ $ECHO "\
+
+ # relink executable if necessary
+ if test -n \"\$relink_command\"; then
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+ else
+ $ECHO \"\$relink_command_output\" >&2
+ $RM \"\$progdir/\$file\"
+ exit 1
+ fi
+ fi
+
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+ { $RM \"\$progdir/\$program\";
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+ $RM \"\$progdir/\$file\"
+ fi"
+ else
+ $ECHO "\
+ program='$outputname'
+ progdir=\"\$thisdir/$objdir\"
+"
+ fi
+
+ $ECHO "\
+
+ if test -f \"\$progdir/\$program\"; then"
+
+ # Export our shlibpath_var if we have one.
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ $ECHO "\
+ # Add our own library path to $shlibpath_var
+ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+ # Some systems cannot cope with colon-terminated $shlibpath_var
+ # The second colon is a workaround for a bug in BeOS R4 sed
+ $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
+
+ export $shlibpath_var
+"
+ fi
+
+ # fixup the dll searchpath if we need to.
+ if test -n "$dllsearchpath"; then
+ $ECHO "\
+ # Add the dll search path components to the executable PATH
+ PATH=$dllsearchpath:\$PATH
+"
+ fi
+
+ $ECHO "\
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ # Run the actual program with our arguments.
+"
+ case $host in
+ # Backslashes separate directories on plain windows
+ *-*-mingw | *-*-os2* | *-cegcc*)
+ $ECHO "\
+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+"
+ ;;
+
+ *)
+ $ECHO "\
+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
+"
+ ;;
+ esac
+ $ECHO "\
+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
+ exit 1
+ fi
+ else
+ # The program doesn't exist.
+ \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
+ \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
+ $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
+ exit 1
+ fi
+fi\
+"
+}
+# end: func_emit_wrapper_part2
+
+
+# func_emit_wrapper [arg=no]
+#
+# Emit a libtool wrapper script on stdout.
+# Don't directly open a file because we may want to
+# incorporate the script contents within a cygwin/mingw
+# wrapper executable. Must ONLY be called from within
+# func_mode_link because it depends on a number of variables
+# set therein.
+#
+# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
+# variable will take. If 'yes', then the emitted script
+# will assume that the directory in which it is stored is
+# the $objdir directory. This is a cygwin/mingw-specific
+# behavior.
+func_emit_wrapper ()
+{
+ func_emit_wrapper_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_arg1=$1
+ fi
+
+ # split this up so that func_emit_cwrapperexe_src
+ # can call each part independently.
+ func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
+ func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
+}
+
+
+# func_to_host_path arg
+#
+# Convert paths to host format when used with build tools.
+# Intended for use with "native" mingw (where libtool itself
+# is running under the msys shell), or in the following cross-
+# build environments:
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+# where wine is equipped with the `winepath' executable.
+# In the native mingw case, the (msys) shell automatically
+# converts paths for any non-msys applications it launches,
+# but that facility isn't available from inside the cwrapper.
+# Similar accommodations are necessary for $host mingw and
+# $build cygwin. Calling this function does no harm for other
+# $host/$build combinations not listed above.
+#
+# ARG is the path (on $build) that should be converted to
+# the proper representation for $host. The result is stored
+# in $func_to_host_path_result.
+func_to_host_path ()
+{
+ func_to_host_path_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ case $build in
+ *mingw* ) # actually, msys
+ # awkward: cmd appends spaces to result
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_path_tmp1=`( cmd //c echo "$1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_path_tmp1=`cygpath -w "$1"`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # Unfortunately, winepath does not exit with a non-zero
+ # error code, so we are forced to check the contents of
+ # stdout. On the other hand, if the command is not
+ # found, the shell will set an exit code of 127 and print
+ # *an error message* to stdout. So we must check for both
+ # error code of zero AND non-empty stdout, which explains
+ # the odd construction:
+ func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
+ if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ else
+ # Allow warning below.
+ func_to_host_path_result=""
+ fi
+ ;;
+ esac
+ if test -z "$func_to_host_path_result" ; then
+ func_error "Could not determine host path corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback:
+ func_to_host_path_result="$1"
+ fi
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_path
+
+# func_to_host_pathlist arg
+#
+# Convert pathlists to host format when used with build tools.
+# See func_to_host_path(), above. This function supports the
+# following $build/$host combinations (but does no harm for
+# combinations not listed here):
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+#
+# Path separators are also converted from $build format to
+# $host format. If ARG begins or ends with a path separator
+# character, it is preserved (but converted to $host format)
+# on output.
+#
+# ARG is a pathlist (on $build) that should be converted to
+# the proper representation on $host. The result is stored
+# in $func_to_host_pathlist_result.
+func_to_host_pathlist ()
+{
+ func_to_host_pathlist_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ # Remove leading and trailing path separator characters from
+ # ARG. msys behavior is inconsistent here, cygpath turns them
+ # into '.;' and ';.', and winepath ignores them completely.
+ func_to_host_pathlist_tmp2="$1"
+ # Once set for this call, this variable should not be
+ # reassigned. It is used in tha fallback case.
+ func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e 's|^:*||' -e 's|:*$||'`
+ case $build in
+ *mingw* ) # Actually, msys.
+ # Awkward: cmd appends spaces to result.
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # unfortunately, winepath doesn't convert pathlists
+ func_to_host_pathlist_result=""
+ func_to_host_pathlist_oldIFS=$IFS
+ IFS=:
+ for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
+ IFS=$func_to_host_pathlist_oldIFS
+ if test -n "$func_to_host_pathlist_f" ; then
+ func_to_host_path "$func_to_host_pathlist_f"
+ if test -n "$func_to_host_path_result" ; then
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_to_host_pathlist_result="$func_to_host_path_result"
+ else
+ func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
+ fi
+ fi
+ fi
+ IFS=:
+ done
+ IFS=$func_to_host_pathlist_oldIFS
+ ;;
+ esac
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_error "Could not determine the host path(s) corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback. This may break if $1 contains DOS-style drive
+ # specifications. The fix is not to complicate the expression
+ # below, but for the user to provide a working wine installation
+ # with winepath so that path translation in the cross-to-mingw
+ # case works properly.
+ lt_replace_pathsep_nix_to_dos="s|:|;|g"
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_replace_pathsep_nix_to_dos"`
+ fi
+ # Now, add the leading and trailing path separators back
+ case "$1" in
+ :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
+ ;;
+ esac
+ case "$1" in
+ *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_pathlist
+
+# func_emit_cwrapperexe_src
+# emit the source code for a wrapper executable on stdout
+# Must ONLY be called from within func_mode_link because
+# it depends on a number of variable set therein.
+func_emit_cwrapperexe_src ()
+{
+ cat <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+ Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+
+ The $output program cannot be directly executed until all the libtool
+ libraries that it depends on are installed.
+
+ This wrapper executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "$SHELL $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat <<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef _MSC_VER
+# include <direct.h>
+# include <process.h>
+# include <io.h>
+# define setmode _setmode
+#else
+# include <unistd.h>
+# include <stdint.h>
+# ifdef __CYGWIN__
+# include <io.h>
+# define HAVE_SETENV
+# ifdef __STRICT_ANSI__
+char *realpath (const char *, char *);
+int putenv (char *);
+int setenv (const char *, const char *, int);
+# endif
+# endif
+#endif
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef S_IXOTH
+# define S_IXOTH 0
+#endif
+#ifndef S_IXGRP
+# define S_IXGRP 0
+#endif
+
+#ifdef _MSC_VER
+# define S_IXUSR _S_IEXEC
+# define stat _stat
+# ifndef _INTPTR_T_DEFINED
+# define intptr_t int
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR
+# define DIR_SEPARATOR '/'
+# define PATH_SEPARATOR ':'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+ defined (__OS2__)
+# define HAVE_DOS_BASED_FILE_SYSTEM
+# define FOPEN_WB "wb"
+# ifndef DIR_SEPARATOR_2
+# define DIR_SEPARATOR_2 '\\'
+# endif
+# ifndef PATH_SEPARATOR_2
+# define PATH_SEPARATOR_2 ';'
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#ifndef PATH_SEPARATOR_2
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
+#else /* PATH_SEPARATOR_2 */
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
+#endif /* PATH_SEPARATOR_2 */
+
+#ifdef __CYGWIN__
+# define FOPEN_WB "wb"
+#endif
+
+#ifndef FOPEN_WB
+# define FOPEN_WB "w"
+#endif
+#ifndef _O_BINARY
+# define _O_BINARY 0
+#endif
+
+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+ if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+#undef LTWRAPPER_DEBUGPRINTF
+#if defined DEBUGWRAPPER
+# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
+static void
+ltwrapper_debugprintf (const char *fmt, ...)
+{
+ va_list args;
+ va_start (args, fmt);
+ (void) vfprintf (stderr, fmt, args);
+ va_end (args);
+}
+#else
+# define LTWRAPPER_DEBUGPRINTF(args)
+#endif
+
+const char *program_name = NULL;
+
+void *xmalloc (size_t num);
+char *xstrdup (const char *string);
+const char *base_name (const char *name);
+char *find_executable (const char *wrapper);
+char *chase_symlinks (const char *pathspec);
+int make_executable (const char *path);
+int check_executable (const char *path);
+char *strendzap (char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+void lt_setenv (const char *name, const char *value);
+char *lt_extend_str (const char *orig_value, const char *add, int to_end);
+void lt_opt_process_env_set (const char *arg);
+void lt_opt_process_env_prepend (const char *arg);
+void lt_opt_process_env_append (const char *arg);
+int lt_split_name_value (const char *arg, char** name, char** value);
+void lt_update_exe_path (const char *name, const char *value);
+void lt_update_lib_path (const char *name, const char *value);
+
+static const char *script_text_part1 =
+EOF
+
+ func_emit_wrapper_part1 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+ cat <<EOF
+
+static const char *script_text_part2 =
+EOF
+ func_emit_wrapper_part2 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+
+ cat <<EOF
+const char * MAGIC_EXE = "$magic_exe";
+const char * LIB_PATH_VARNAME = "$shlibpath_var";
+EOF
+
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ func_to_host_pathlist "$temp_rpath"
+ cat <<EOF
+const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * LIB_PATH_VALUE = "";
+EOF
+ fi
+
+ if test -n "$dllsearchpath"; then
+ func_to_host_pathlist "$dllsearchpath:"
+ cat <<EOF
+const char * EXE_PATH_VARNAME = "PATH";
+const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * EXE_PATH_VARNAME = "";
+const char * EXE_PATH_VALUE = "";
+EOF
+ fi
+
+ if test "$fast_install" = yes; then
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
+EOF
+ else
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
+EOF
+ fi
+
+
+ cat <<"EOF"
+
+#define LTWRAPPER_OPTION_PREFIX "--lt-"
+#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
+
+static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
+static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
+
+static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
+
+static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
+static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
+ /* argument is putenv-style "foo=bar", value of foo is set to bar */
+
+static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
+static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
+ /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
+
+static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
+static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
+ /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
+
+int
+main (int argc, char *argv[])
+{
+ char **newargz;
+ int newargc;
+ char *tmp_pathspec;
+ char *actual_cwrapper_path;
+ char *actual_cwrapper_name;
+ char *target_name;
+ char *lt_argv_zero;
+ intptr_t rval = 127;
+
+ int i;
+
+ program_name = (char *) xstrdup (base_name (argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
+
+ /* very simple arg parsing; don't want to rely on getopt */
+ for (i = 1; i < argc; i++)
+ {
+ if (strcmp (argv[i], dumpscript_opt) == 0)
+ {
+EOF
+ case "$host" in
+ *mingw* | *cygwin* )
+ # make stdout use "unix" line endings
+ echo " setmode(1,_O_BINARY);"
+ ;;
+ esac
+
+ cat <<"EOF"
+ printf ("%s", script_text_part1);
+ printf ("%s", script_text_part2);
+ return 0;
+ }
+ }
+
+ newargz = XMALLOC (char *, argc + 1);
+ tmp_pathspec = find_executable (argv[0]);
+ if (tmp_pathspec == NULL)
+ lt_fatal ("Couldn't find %s", argv[0]);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
+ tmp_pathspec));
+
+ actual_cwrapper_path = chase_symlinks (tmp_pathspec);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
+ actual_cwrapper_path));
+ XFREE (tmp_pathspec);
+
+ actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
+ strendzap (actual_cwrapper_path, actual_cwrapper_name);
+
+ /* wrapper name transforms */
+ strendzap (actual_cwrapper_name, ".exe");
+ tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
+ XFREE (actual_cwrapper_name);
+ actual_cwrapper_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ /* target_name transforms -- use actual target program name; might have lt- prefix */
+ target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
+ strendzap (target_name, ".exe");
+ tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
+ XFREE (target_name);
+ target_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
+ target_name));
+EOF
+
+ cat <<EOF
+ newargz[0] =
+ XMALLOC (char, (strlen (actual_cwrapper_path) +
+ strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
+ strcpy (newargz[0], actual_cwrapper_path);
+ strcat (newargz[0], "$objdir");
+ strcat (newargz[0], "/");
+EOF
+
+ cat <<"EOF"
+ /* stop here, and copy so we don't have to do this twice */
+ tmp_pathspec = xstrdup (newargz[0]);
+
+ /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
+ strcat (newargz[0], actual_cwrapper_name);
+
+ /* DO want the lt- prefix here if it exists, so use target_name */
+ lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
+ XFREE (tmp_pathspec);
+ tmp_pathspec = NULL;
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ {
+ char* p;
+ while ((p = strchr (newargz[0], '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ while ((p = strchr (lt_argv_zero, '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ }
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+ XFREE (target_name);
+ XFREE (actual_cwrapper_path);
+ XFREE (actual_cwrapper_name);
+
+ lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
+ lt_setenv ("DUALCASE", "1"); /* for MSK sh */
+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
+ lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
+
+ newargc=0;
+ for (i = 1; i < argc; i++)
+ {
+ if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
+ {
+ if (argv[i][env_set_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_set_opt_len + 1;
+ lt_opt_process_env_set (p);
+ }
+ else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_set (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_set_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
+ {
+ if (argv[i][env_prepend_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_prepend_opt_len + 1;
+ lt_opt_process_env_prepend (p);
+ }
+ else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_prepend (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_prepend_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
+ {
+ if (argv[i][env_append_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_append_opt_len + 1;
+ lt_opt_process_env_append (p);
+ }
+ else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_append (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_append_opt);
+ continue;
+ }
+ if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
+ {
+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
+ namespace, but it is not one of the ones we know about and
+ have already dealt with, above (inluding dump-script), then
+ report an error. Otherwise, targets might begin to believe
+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
+ namespace. The first time any user complains about this, we'll
+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
+ or a configure.ac-settable value.
+ */
+ lt_fatal ("Unrecognized option in %s namespace: '%s'",
+ ltwrapper_option_prefix, argv[i]);
+ }
+ /* otherwise ... */
+ newargz[++newargc] = xstrdup (argv[i]);
+ }
+ newargz[++newargc] = NULL;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
+ for (i = 0; i < newargc; i++)
+ {
+ LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ /* execv doesn't actually work on mingw as expected on unix */
+ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
+ if (rval == -1)
+ {
+ /* failed to start process */
+ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
+ return 127;
+ }
+ return rval;
+EOF
+ ;;
+ *)
+ cat <<"EOF"
+ execv (lt_argv_zero, newargz);
+ return rval; /* =127, but avoids unused variable warning */
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+ void *p = (void *) malloc (num);
+ if (!p)
+ lt_fatal ("Memory exhausted");
+
+ return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
+ string) : NULL;
+}
+
+const char *
+base_name (const char *name)
+{
+ const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ /* Skip over the disk name in MSDOS pathnames. */
+ if (isalpha ((unsigned char) name[0]) && name[1] == ':')
+ name += 2;
+#endif
+
+ for (base = name; *name; name++)
+ if (IS_DIR_SEPARATOR (*name))
+ base = name + 1;
+ return base;
+}
+
+int
+check_executable (const char *path)
+{
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if ((stat (path, &st) >= 0)
+ && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+ return 1;
+ else
+ return 0;
+}
+
+int
+make_executable (const char *path)
+{
+ int rval = 0;
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if (stat (path, &st) >= 0)
+ {
+ rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
+ }
+ return rval;
+}
+
+/* Searches for the full path of the wrapper. Returns
+ newly allocated full path name if found, NULL otherwise
+ Does not chase symlinks, even on platforms that support them.
+*/
+char *
+find_executable (const char *wrapper)
+{
+ int has_slash = 0;
+ const char *p;
+ const char *p_next;
+ /* static buffer for getcwd */
+ char tmp[LT_PATHMAX + 1];
+ int tmp_len;
+ char *concat_name;
+
+ LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
+ wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
+
+ if ((wrapper == NULL) || (*wrapper == '\0'))
+ return NULL;
+
+ /* Absolute path? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ else
+ {
+#endif
+ if (IS_DIR_SEPARATOR (wrapper[0]))
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ }
+#endif
+
+ for (p = wrapper; *p; p++)
+ if (*p == '/')
+ {
+ has_slash = 1;
+ break;
+ }
+ if (!has_slash)
+ {
+ /* no slashes; search PATH */
+ const char *path = getenv ("PATH");
+ if (path != NULL)
+ {
+ for (p = path; *p; p = p_next)
+ {
+ const char *q;
+ size_t p_len;
+ for (q = p; *q; q++)
+ if (IS_PATH_SEPARATOR (*q))
+ break;
+ p_len = q - p;
+ p_next = (*q == '\0' ? q : q + 1);
+ if (p_len == 0)
+ {
+ /* empty path: current directory */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name =
+ XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+ }
+ else
+ {
+ concat_name =
+ XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, p, p_len);
+ concat_name[p_len] = '/';
+ strcpy (concat_name + p_len + 1, wrapper);
+ }
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ }
+ /* not found in PATH; assume curdir */
+ }
+ /* Relative path | not found in path: prepend cwd */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ return NULL;
+}
+
+char *
+chase_symlinks (const char *pathspec)
+{
+#ifndef S_ISLNK
+ return xstrdup (pathspec);
+#else
+ char buf[LT_PATHMAX];
+ struct stat s;
+ char *tmp_pathspec = xstrdup (pathspec);
+ char *p;
+ int has_symlinks = 0;
+ while (strlen (tmp_pathspec) && !has_symlinks)
+ {
+ LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
+ tmp_pathspec));
+ if (lstat (tmp_pathspec, &s) == 0)
+ {
+ if (S_ISLNK (s.st_mode) != 0)
+ {
+ has_symlinks = 1;
+ break;
+ }
+
+ /* search backwards for last DIR_SEPARATOR */
+ p = tmp_pathspec + strlen (tmp_pathspec) - 1;
+ while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ p--;
+ if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ {
+ /* no more DIR_SEPARATORS left */
+ break;
+ }
+ *p = '\0';
+ }
+ else
+ {
+ char *errstr = strerror (errno);
+ lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
+ }
+ }
+ XFREE (tmp_pathspec);
+
+ if (!has_symlinks)
+ {
+ return xstrdup (pathspec);
+ }
+
+ tmp_pathspec = realpath (pathspec, buf);
+ if (tmp_pathspec == 0)
+ {
+ lt_fatal ("Could not follow symlinks for %s", pathspec);
+ }
+ return xstrdup (tmp_pathspec);
+#endif
+}
+
+char *
+strendzap (char *str, const char *pat)
+{
+ size_t len, patlen;
+
+ assert (str != NULL);
+ assert (pat != NULL);
+
+ len = strlen (str);
+ patlen = strlen (pat);
+
+ if (patlen <= len)
+ {
+ str += len - patlen;
+ if (strcmp (str, pat) == 0)
+ *str = '\0';
+ }
+ return str;
+}
+
+static void
+lt_error_core (int exit_status, const char *mode,
+ const char *message, va_list ap)
+{
+ fprintf (stderr, "%s: %s: ", program_name, mode);
+ vfprintf (stderr, message, ap);
+ fprintf (stderr, ".\n");
+
+ if (exit_status >= 0)
+ exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+ va_list ap;
+ va_start (ap, message);
+ lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
+ va_end (ap);
+}
+
+void
+lt_setenv (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+ {
+#ifdef HAVE_SETENV
+ /* always make a copy, for consistency with !HAVE_SETENV */
+ char *str = xstrdup (value);
+ setenv (name, str, 1);
+#else
+ int len = strlen (name) + 1 + strlen (value) + 1;
+ char *str = XMALLOC (char, len);
+ sprintf (str, "%s=%s", name, value);
+ if (putenv (str) != EXIT_SUCCESS)
+ {
+ XFREE (str);
+ }
+#endif
+ }
+}
+
+char *
+lt_extend_str (const char *orig_value, const char *add, int to_end)
+{
+ char *new_value;
+ if (orig_value && *orig_value)
+ {
+ int orig_value_len = strlen (orig_value);
+ int add_len = strlen (add);
+ new_value = XMALLOC (char, add_len + orig_value_len + 1);
+ if (to_end)
+ {
+ strcpy (new_value, orig_value);
+ strcpy (new_value + orig_value_len, add);
+ }
+ else
+ {
+ strcpy (new_value, add);
+ strcpy (new_value + add_len, orig_value);
+ }
+ }
+ else
+ {
+ new_value = xstrdup (add);
+ }
+ return new_value;
+}
+
+int
+lt_split_name_value (const char *arg, char** name, char** value)
+{
+ const char *p;
+ int len;
+ if (!arg || !*arg)
+ return 1;
+
+ p = strchr (arg, (int)'=');
+
+ if (!p)
+ return 1;
+
+ *value = xstrdup (++p);
+
+ len = strlen (arg) - strlen (*value);
+ *name = XMALLOC (char, len);
+ strncpy (*name, arg, len-1);
+ (*name)[len - 1] = '\0';
+
+ return 0;
+}
+
+void
+lt_opt_process_env_set (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
+ }
+
+ lt_setenv (name, value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_prepend (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_append (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 1);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_update_exe_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ /* some systems can't cope with a ':'-terminated path #' */
+ int len = strlen (new_value);
+ while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
+ {
+ new_value[len-1] = '\0';
+ }
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+void
+lt_update_lib_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+
+EOF
+}
+# end: func_emit_cwrapperexe_src
+
+# func_mode_link arg...
+func_mode_link ()
+{
+ $opt_debug
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args=$nonopt
+ base_compile="$nonopt $@"
+ compile_command=$nonopt
+ finalize_command=$nonopt
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+ new_inherited_linker_flags=
+
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ weak_libs=
+ single_module="${wl}-single_module"
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ break
+ ;;
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ func_warning "complete static linking is impossible in this configuration"
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ build_libtool_libs=no
+ build_old_libs=yes
+ break
+ ;;
+ esac
+ done
+
+ # See if our shared archives depend on static archives.
+ test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+ # Go through the arguments, transforming them on the way.
+ while test "$#" -gt 0; do
+ arg="$1"
+ shift
+ func_quote_for_eval "$arg"
+ qarg=$func_quote_for_eval_unquoted_result
+ func_append libtool_args " $func_quote_for_eval_result"
+
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ case $prev in
+ output)
+ func_append compile_command " @OUTPUT@"
+ func_append finalize_command " @OUTPUT@"
+ ;;
+ esac
+
+ case $prev in
+ dlfiles|dlprefiles)
+ if test "$preload" = no; then
+ # Add the symbol object into the linking commands.
+ func_append compile_command " @SYMFILE@"
+ func_append finalize_command " @SYMFILE@"
+ preload=yes
+ fi
+ case $arg in
+ *.la | *.lo) ;; # We handle these cases below.
+ force)
+ if test "$dlself" = no; then
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ self)
+ if test "$prev" = dlprefiles; then
+ dlself=yes
+ elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
+ dlself=yes
+ else
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ *)
+ if test "$prev" = dlfiles; then
+ dlfiles="$dlfiles $arg"
+ else
+ dlprefiles="$dlprefiles $arg"
+ fi
+ prev=
+ continue
+ ;;
+ esac
+ ;;
+ expsyms)
+ export_symbols="$arg"
+ test -f "$arg" \
+ || func_fatal_error "symbol file \`$arg' does not exist"
+ prev=
+ continue
+ ;;
+ expsyms_regex)
+ export_symbols_regex="$arg"
+ prev=
+ continue
+ ;;
+ framework)
+ case $host in
+ *-*-darwin*)
+ case "$deplibs " in
+ *" $qarg.ltframework "*) ;;
+ *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
+ ;;
+ esac
+ ;;
+ esac
+ prev=
+ continue
+ ;;
+ inst_prefix)
+ inst_prefix_dir="$arg"
+ prev=
+ continue
+ ;;
+ objectlist)
+ if test -f "$arg"; then
+ save_arg=$arg
+ moreargs=
+ for fil in `cat "$save_arg"`
+ do
+# moreargs="$moreargs $fil"
+ arg=$fil
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ done
+ else
+ func_fatal_error "link input file \`$arg' does not exist"
+ fi
+ arg=$save_arg
+ prev=
+ continue
+ ;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
+ release)
+ release="-$arg"
+ prev=
+ continue
+ ;;
+ rpath | xrpath)
+ # We need an absolute path.
+ case $arg in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ if test "$prev" = rpath; then
+ case "$rpath " in
+ *" $arg "*) ;;
+ *) rpath="$rpath $arg" ;;
+ esac
+ else
+ case "$xrpath " in
+ *" $arg "*) ;;
+ *) xrpath="$xrpath $arg" ;;
+ esac
+ fi
+ prev=
+ continue
+ ;;
+ shrext)
+ shrext_cmds="$arg"
+ prev=
+ continue
+ ;;
+ weak)
+ weak_libs="$weak_libs $arg"
+ prev=
+ continue
+ ;;
+ xcclinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xcompiler)
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xlinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $wl$qarg"
+ prev=
+ func_append compile_command " $wl$qarg"
+ func_append finalize_command " $wl$qarg"
+ continue
+ ;;
+ *)
+ eval "$prev=\"\$arg\""
+ prev=
+ continue
+ ;;
+ esac
+ fi # test -n "$prev"
+
+ prevarg="$arg"
+
+ case $arg in
+ -all-static)
+ if test -n "$link_static_flag"; then
+ # See comment for -static flag below, for more details.
+ func_append compile_command " $link_static_flag"
+ func_append finalize_command " $link_static_flag"
+ fi
+ continue
+ ;;
+
+ -allow-undefined)
+ # FIXME: remove this flag sometime in the future.
+ func_fatal_error "\`-allow-undefined' must not be used because it is the default"
+ ;;
+
+ -avoid-version)
+ avoid_version=yes
+ continue
+ ;;
+
+ -dlopen)
+ prev=dlfiles
+ continue
+ ;;
+
+ -dlpreopen)
+ prev=dlprefiles
+ continue
+ ;;
+
+ -export-dynamic)
+ export_dynamic=yes
+ continue
+ ;;
+
+ -export-symbols | -export-symbols-regex)
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ func_fatal_error "more than one -exported-symbols argument is not allowed"
+ fi
+ if test "X$arg" = "X-export-symbols"; then
+ prev=expsyms
+ else
+ prev=expsyms_regex
+ fi
+ continue
+ ;;
+
+ -framework)
+ prev=framework
+ continue
+ ;;
+
+ -inst-prefix-dir)
+ prev=inst_prefix
+ continue
+ ;;
+
+ # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+ # so, if we see these flags be careful not to treat them like -L
+ -L[A-Z][A-Z]*:*)
+ case $with_gcc/$host in
+ no/*-*-irix* | /*-*-irix*)
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ ;;
+ esac
+ continue
+ ;;
+
+ -L*)
+ func_stripname '-L' '' "$arg"
+ dir=$func_stripname_result
+ if test -z "$dir"; then
+ if test "$#" -gt 0; then
+ func_fatal_error "require no space between \`-L' and \`$1'"
+ else
+ func_fatal_error "need path for \`-L' option"
+ fi
+ fi
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ test -z "$absdir" && \
+ func_fatal_error "cannot determine absolute directory name of \`$dir'"
+ dir="$absdir"
+ ;;
+ esac
+ case "$deplibs " in
+ *" -L$dir "*) ;;
+ *)
+ deplibs="$deplibs -L$dir"
+ lib_search_path="$lib_search_path $dir"
+ ;;
+ esac
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$dir:"*) ;;
+ ::) dllsearchpath=$dir;;
+ *) dllsearchpath="$dllsearchpath:$dir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ continue
+ ;;
+
+ -l*)
+ if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
+ # These systems don't actually have a C or math library (as such)
+ continue
+ ;;
+ *-*-os2*)
+ # These systems don't actually have a C library (as such)
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ deplibs="$deplibs System.ltframework"
+ continue
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
+ fi
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
+ -module)
+ module=yes
+ continue
+ ;;
+
+ # Tru64 UNIX uses -model [arg] to determine the layout of C++
+ # classes, name mangling, and exception handling.
+ # Darwin uses the -arch flag to determine output architecture.
+ -model|-arch|-isysroot)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ prev=xcompiler
+ continue
+ ;;
+
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ case "$new_inherited_linker_flags " in
+ *" $arg "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
+ esac
+ continue
+ ;;
+
+ -multi_module)
+ single_module="${wl}-multi_module"
+ continue
+ ;;
+
+ -no-fast-install)
+ fast_install=no
+ continue
+ ;;
+
+ -no-install)
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin in order for the loader to find any dlls it needs.
+ func_warning "\`-no-install' is ignored for $host"
+ func_warning "assuming \`-no-fast-install' instead"
+ fast_install=no
+ ;;
+ *) no_install=yes ;;
+ esac
+ continue
+ ;;
+
+ -no-undefined)
+ allow_undefined=no
+ continue
+ ;;
+
+ -objectlist)
+ prev=objectlist
+ continue
+ ;;
+
+ -o) prev=output ;;
+
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
+ -release)
+ prev=release
+ continue
+ ;;
+
+ -rpath)
+ prev=rpath
+ continue
+ ;;
+
+ -R)
+ prev=xrpath
+ continue
+ ;;
+
+ -R*)
+ func_stripname '-R' '' "$arg"
+ dir=$func_stripname_result
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ continue
+ ;;
+
+ -shared)
+ # The effects of -shared are defined in a previous loop.
+ continue
+ ;;
+
+ -shrext)
+ prev=shrext
+ continue
+ ;;
+
+ -static | -static-libtool-libs)
+ # The effects of -static are defined in a previous loop.
+ # We used to do the same as -all-static on platforms that
+ # didn't have a PIC flag, but the assumption that the effects
+ # would be equivalent was wrong. It would break on at least
+ # Digital Unix and AIX.
+ continue
+ ;;
+
+ -thread-safe)
+ thread_safe=yes
+ continue
+ ;;
+
+ -version-info)
+ prev=vinfo
+ continue
+ ;;
+
+ -version-number)
+ prev=vinfo
+ vinfo_number=yes
+ continue
+ ;;
+
+ -weak)
+ prev=weak
+ continue
+ ;;
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Wl,*)
+ func_stripname '-Wl,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
+ linker_flags="$linker_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Xcompiler)
+ prev=xcompiler
+ continue
+ ;;
+
+ -Xlinker)
+ prev=xlinker
+ continue
+ ;;
+
+ -XCClinker)
+ prev=xcclinker
+ continue
+ ;;
+
+ # -msg_* for osf cc
+ -msg_*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+ # -r[0-9][0-9]* specifies the processor on the SGI compiler
+ # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+ # +DA*, +DD* enable 64-bit mode on the HP compiler
+ # -q* pass through compiler args for the IBM compiler
+ # -m*, -t[45]*, -txscale* pass through architecture-specific
+ # compiler args for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ compiler_flags="$compiler_flags $arg"
+ continue
+ ;;
+
+ # Some other compiler flag.
+ -* | +*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ *.$objext)
+ # A standard object.
+ objs="$objs $arg"
+ ;;
+
+ *.lo)
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ ;;
+
+ *.$libext)
+ # An archive.
+ deplibs="$deplibs $arg"
+ old_deplibs="$old_deplibs $arg"
+ continue
+ ;;
+
+ *.la)
+ # A libtool-controlled library.
+
+ if test "$prev" = dlfiles; then
+ # This library was specified with -dlopen.
+ dlfiles="$dlfiles $arg"
+ prev=
+ elif test "$prev" = dlprefiles; then
+ # The library was specified with -dlpreopen.
+ dlprefiles="$dlprefiles $arg"
+ prev=
+ else
+ deplibs="$deplibs $arg"
+ fi
+ continue
+ ;;
+
+ # Some other compiler argument.
+ *)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+ esac # arg
+
+ # Now actually substitute the argument into the commands.
+ if test -n "$arg"; then
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+ done # argument parsing loop
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prevarg' option requires an argument"
+
+ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
+ eval arg=\"$export_dynamic_flag_spec\"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+
+ oldlibs=
+ # calculate the name of the file, without its directory
+ func_basename "$output"
+ outputname="$func_basename_result"
+ libobjs_save="$libobjs"
+
+ if test -n "$shlibpath_var"; then
+ # get the directories listed in $shlibpath_var
+ eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
+ else
+ shlib_search_path=
+ fi
+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+ func_dirname "$output" "/" ""
+ output_objdir="$func_dirname_result$objdir"
+ # Create the object directory.
+ func_mkdir_p "$output_objdir"
+
+ # Determine the type of output
+ case $output in
+ "")
+ func_fatal_help "you must specify an output file"
+ ;;
+ *.$libext) linkmode=oldlib ;;
+ *.lo | *.$objext) linkmode=obj ;;
+ *.la) linkmode=lib ;;
+ *) linkmode=prog ;; # Anything else should be a program.
+ esac
+
+ specialdeplibs=
+
+ libs=
+ # Find all interdependent deplibs by searching for libraries
+ # that are linked more than once (e.g. -la -lb -la)
+ for deplib in $deplibs; do
+ if $opt_duplicate_deps ; then
+ case "$libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ libs="$libs $deplib"
+ done
+
+ if test "$linkmode" = lib; then
+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ if $opt_duplicate_compiler_generated_deps; then
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+ esac
+ pre_post_deps="$pre_post_deps $pre_post_dep"
+ done
+ fi
+ pre_post_deps=
+ fi
+
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no # whether we're linking any uninstalled libtool libraries
+ notinst_deplibs= # not-installed libtool libraries
+ notinst_path= # paths that contain not-installed libtool libraries
+
+ case $linkmode in
+ lib)
+ passes="conv dlpreopen link"
+ for file in $dlfiles $dlprefiles; do
+ case $file in
+ *.la) ;;
+ *)
+ func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
+ ;;
+ esac
+ done
+ ;;
+ prog)
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes="conv scan dlopen dlpreopen link"
+ ;;
+ *) passes="conv"
+ ;;
+ esac
+
+ for pass in $passes; do
+ # The preopen pass in lib mode reverses $deplibs; put it back here
+ # so that -L comes before libs that need it for instance...
+ if test "$linkmode,$pass" = "lib,link"; then
+ ## FIXME: Find the place where the list is rebuilt in the wrong
+ ## order, and fix it there properly
+ tmp_deplibs=
+ for deplib in $deplibs; do
+ tmp_deplibs="$deplib $tmp_deplibs"
+ done
+ deplibs="$tmp_deplibs"
+ fi
+
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan"; then
+ libs="$deplibs"
+ deplibs=
+ fi
+ if test "$linkmode" = prog; then
+ case $pass in
+ dlopen) libs="$dlfiles" ;;
+ dlpreopen) libs="$dlprefiles" ;;
+ link)
+ libs="$deplibs %DEPLIBS%"
+ test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
+ ;;
+ esac
+ fi
+ if test "$linkmode,$pass" = "lib,dlpreopen"; then
+ # Collect and forward deplibs of preopened libtool libs
+ for lib in $dlprefiles; do
+ # Ignore non-libtool-libs
+ dependency_libs=
+ case $lib in
+ *.la) func_source "$lib" ;;
+ esac
+
+ # Collect preopened libtool deplibs, except any this library
+ # has declared as weak libs
+ for deplib in $dependency_libs; do
+ deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
+ case " $weak_libs " in
+ *" $deplib_base "*) ;;
+ *) deplibs="$deplibs $deplib" ;;
+ esac
+ done
+ done
+ libs="$dlprefiles"
+ fi
+ if test "$pass" = dlopen; then
+ # Collect dlpreopened libraries
+ save_deplibs="$deplibs"
+ deplibs=
+ fi
+
+ for deplib in $libs; do
+ lib=
+ found=no
+ case $deplib in
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags $deplib"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -l*)
+ if test "$linkmode" != lib && test "$linkmode" != prog; then
+ func_warning "\`-l' is ignored for archives/objects"
+ continue
+ fi
+ func_stripname '-l' '' "$deplib"
+ name=$func_stripname_result
+ if test "$linkmode" = lib; then
+ searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
+ else
+ searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
+ fi
+ for searchdir in $searchdirs; do
+ for search_ext in .la $std_shrext .so .a; do
+ # Search the libtool library
+ lib="$searchdir/lib${name}${search_ext}"
+ if test -f "$lib"; then
+ if test "$search_ext" = ".la"; then
+ found=yes
+ else
+ found=no
+ fi
+ break 2
+ fi
+ done
+ done
+ if test "$found" != yes; then
+ # deplib doesn't seem to be a libtool library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ else # deplib is a libtool library
+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+ # We need to do some special things here, and not later.
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $deplib "*)
+ if func_lalib_p "$lib"; then
+ library_names=
+ old_library=
+ func_source "$lib"
+ for l in $old_library $library_names; do
+ ll="$l"
+ done
+ if test "X$ll" = "X$old_library" ; then # only static version available
+ found=no
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+ lib=$ladir/$old_library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ fi
+ fi
+ ;;
+ *) ;;
+ esac
+ fi
+ fi
+ ;; # -l
+ *.ltframework)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -L*)
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ test "$pass" = conv && continue
+ newdependency_libs="$deplib $newdependency_libs"
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ prog)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ if test "$pass" = scan; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ *)
+ func_warning "\`-L' is ignored for archives/objects"
+ ;;
+ esac # linkmode
+ continue
+ ;; # -L
+ -R*)
+ if test "$pass" = link; then
+ func_stripname '-R' '' "$deplib"
+ dir=$func_stripname_result
+ # Make sure the xrpath contains only unique directories.
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ fi
+ deplibs="$deplib $deplibs"
+ continue
+ ;;
+ *.la) lib="$deplib" ;;
+ *.$libext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ case $linkmode in
+ lib)
+ # Linking convenience modules into shared libraries is allowed,
+ # but linking other static libraries is non-portable.
+ case " $dlpreconveniencelibs " in
+ *" $deplib "*) ;;
+ *)
+ valid_a_lib=no
+ case $deplibs_check_method in
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ valid_a_lib=yes
+ fi
+ ;;
+ pass_all)
+ valid_a_lib=yes
+ ;;
+ esac
+ if test "$valid_a_lib" != yes; then
+ $ECHO
+ $ECHO "*** Warning: Trying to link with static lib archive $deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because the file extensions .$libext of this argument makes me believe"
+ $ECHO "*** that it is just a static archive that I should not use here."
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the"
+ $ECHO "*** static library $deplib is not portable!"
+ deplibs="$deplib $deplibs"
+ fi
+ ;;
+ esac
+ continue
+ ;;
+ prog)
+ if test "$pass" != link; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ continue
+ ;;
+ esac # linkmode
+ ;; # *.$libext
+ *.lo | *.$objext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ elif test "$linkmode" = prog; then
+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ # If there is no dlopen support or we're linking statically,
+ # we need to preload.
+ newdlprefiles="$newdlprefiles $deplib"
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ newdlfiles="$newdlfiles $deplib"
+ fi
+ fi
+ continue
+ ;;
+ %DEPLIBS%)
+ alldeplibs=yes
+ continue
+ ;;
+ esac # case $deplib
+
+ if test "$found" = yes || test -f "$lib"; then :
+ else
+ func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
+ fi
+
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$lib" \
+ || func_fatal_error "\`$lib' is not a valid libtool archive"
+
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ inherited_linker_flags=
+ # If the library was installed with an old release of libtool,
+ # it will not redefine variables installed, or shouldnotlink
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+
+
+ # Read the .la file
+ func_source "$lib"
+
+ # Convert "-framework foo" to "foo.ltframework"
+ if test -n "$inherited_linker_flags"; then
+ tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
+ for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
+ case " $new_inherited_linker_flags " in
+ *" $tmp_inherited_linker_flag "*) ;;
+ *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
+ esac
+ done
+ fi
+ dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan" ||
+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
+ test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
+ test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
+ fi
+
+ if test "$pass" = conv; then
+ # Only check for convenience libraries
+ deplibs="$lib $deplibs"
+ if test -z "$libdir"; then
+ if test -z "$old_library"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+ # It is a libtool convenience library, so add in its objects.
+ convenience="$convenience $ladir/$objdir/$old_library"
+ old_convenience="$old_convenience $ladir/$objdir/$old_library"
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ deplibs="$deplib $deplibs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ func_fatal_error "\`$lib' is not a convenience library"
+ fi
+ continue
+ fi # $pass = conv
+
+
+ # Get the name of the library we link against.
+ linklib=
+ for l in $old_library $library_names; do
+ linklib="$l"
+ done
+ if test -z "$linklib"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+
+ # This library was specified with -dlopen.
+ if test "$pass" = dlopen; then
+ if test -z "$libdir"; then
+ func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
+ fi
+ if test -z "$dlname" ||
+ test "$dlopen_support" != yes ||
+ test "$build_libtool_libs" = no; then
+ # If there is no dlname, no dlopen support or we're linking
+ # statically, we need to preload. We also need to preload any
+ # dependent libraries so libltdl's deplib preloader doesn't
+ # bomb out in the load deplibs phase.
+ dlprefiles="$dlprefiles $lib $dependency_libs"
+ else
+ newdlfiles="$newdlfiles $lib"
+ fi
+ continue
+ fi # $pass = dlopen
+
+ # We need an absolute path.
+ case $ladir in
+ [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
+ *)
+ abs_ladir=`cd "$ladir" && pwd`
+ if test -z "$abs_ladir"; then
+ func_warning "cannot determine absolute directory name of \`$ladir'"
+ func_warning "passing it literally to the linker, although it might fail"
+ abs_ladir="$ladir"
+ fi
+ ;;
+ esac
+ func_basename "$lib"
+ laname="$func_basename_result"
+
+ # Find the relevant object directory and library name.
+ if test "X$installed" = Xyes; then
+ if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ func_warning "library \`$lib' was moved."
+ dir="$ladir"
+ absdir="$abs_ladir"
+ libdir="$abs_ladir"
+ else
+ dir="$libdir"
+ absdir="$libdir"
+ fi
+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+ else
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ fi
+ fi # $installed = yes
+ func_stripname 'lib' '.la' "$laname"
+ name=$func_stripname_result
+
+ # This library was specified with -dlpreopen.
+ if test "$pass" = dlpreopen; then
+ if test -z "$libdir" && test "$linkmode" = prog; then
+ func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
+ fi
+ # Prefer using a static library (so that no silly _DYNAMIC symbols
+ # are required to link).
+ if test -n "$old_library"; then
+ newdlprefiles="$newdlprefiles $dir/$old_library"
+ # Keep a list of preopened convenience libraries to check
+ # that they are being used correctly in the link pass.
+ test -z "$libdir" && \
+ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
+ elif test -n "$dlname"; then
+ newdlprefiles="$newdlprefiles $dir/$dlname"
+ else
+ newdlprefiles="$newdlprefiles $dir/$linklib"
+ fi
+ fi # $pass = dlpreopen
+
+ if test -z "$libdir"; then
+ # Link the convenience library
+ if test "$linkmode" = lib; then
+ deplibs="$dir/$old_library $deplibs"
+ elif test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$dir/$old_library $compile_deplibs"
+ finalize_deplibs="$dir/$old_library $finalize_deplibs"
+ else
+ deplibs="$lib $deplibs" # used for prog,scan pass
+ fi
+ continue
+ fi
+
+
+ if test "$linkmode" = prog && test "$pass" != link; then
+ newlib_search_path="$newlib_search_path $ladir"
+ deplibs="$lib $deplibs"
+
+ linkalldeplibs=no
+ if test "$link_all_deplibs" != no || test -z "$library_names" ||
+ test "$build_libtool_libs" = no; then
+ linkalldeplibs=yes
+ fi
+
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ esac
+ # Need to link against all dependency_libs?
+ if test "$linkalldeplibs" = yes; then
+ deplibs="$deplib $deplibs"
+ else
+ # Need to hardcode shared library paths
+ # or/and link against static libraries
+ newdependency_libs="$deplib $newdependency_libs"
+ fi
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done # for deplib
+ continue
+ fi # $linkmode = prog...
+
+ if test "$linkmode,$pass" = "prog,link"; then
+ if test -n "$library_names" &&
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
+ # We need to hardcode the library path
+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
+ # Make sure the rpath contains only unique directories.
+ case "$temp_rpath:" in
+ *"$absdir:"*) ;;
+ *) temp_rpath="$temp_rpath$absdir:" ;;
+ esac
+ fi
+
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi # $linkmode,$pass = prog,link...
+
+ if test "$alldeplibs" = yes &&
+ { test "$deplibs_check_method" = pass_all ||
+ { test "$build_libtool_libs" = yes &&
+ test -n "$library_names"; }; }; then
+ # We only need to search for static libraries
+ continue
+ fi
+ fi
+
+ link_static=no # Whether the deplib will be linked statically
+ use_static_libs=$prefer_static_libs
+ if test "$use_static_libs" = built && test "$installed" = yes; then
+ use_static_libs=no
+ fi
+ if test -n "$library_names" &&
+ { test "$use_static_libs" = no || test -z "$old_library"; }; then
+ case $host in
+ *cygwin* | *mingw* | *cegcc*)
+ # No point in relinking DLLs because paths are not encoded
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=no
+ ;;
+ *)
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=yes
+ fi
+ ;;
+ esac
+ # This is a shared library
+
+ # Warn about portability, can't link against -module's on some
+ # systems (darwin). Don't bleat about dlopened modules though!
+ dlopenmodule=""
+ for dlpremoduletest in $dlprefiles; do
+ if test "X$dlpremoduletest" = "X$lib"; then
+ dlopenmodule="$dlpremoduletest"
+ break
+ fi
+ done
+ if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
+ $ECHO
+ if test "$linkmode" = prog; then
+ $ECHO "*** Warning: Linking the executable $output against the loadable module"
+ else
+ $ECHO "*** Warning: Linking the shared library $output against the loadable module"
+ fi
+ $ECHO "*** $linklib is not portable!"
+ fi
+ if test "$linkmode" = lib &&
+ test "$hardcode_into_libs" = yes; then
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi
+
+ if test -n "$old_archive_from_expsyms_cmds"; then
+ # figure out the soname
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ # use dlname if we got it. it's perfectly good, no?
+ if test -n "$dlname"; then
+ soname="$dlname"
+ elif test -n "$soname_spec"; then
+ # bleh windows
+ case $host in
+ *cygwin* | mingw* | *cegcc*)
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+ esac
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+
+ # Make a new name for the extract_expsyms_cmds to use
+ soroot="$soname"
+ func_basename "$soroot"
+ soname="$func_basename_result"
+ func_stripname 'lib' '.dll' "$soname"
+ newlib=libimp-$func_stripname_result.a
+
+ # If the library has no export list, then create one now
+ if test -f "$output_objdir/$soname-def"; then :
+ else
+ func_verbose "extracting exported symbol list from \`$soname'"
+ func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
+ fi
+
+ # Create $newlib
+ if test -f "$output_objdir/$newlib"; then :; else
+ func_verbose "generating import library for \`$soname'"
+ func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
+ fi
+ # make sure the library variables are pointing to the new library
+ dir=$output_objdir
+ linklib=$newlib
+ fi # test -n "$old_archive_from_expsyms_cmds"
+
+ if test "$linkmode" = prog || test "$mode" != relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ case $hardcode_action in
+ immediate | unsupported)
+ if test "$hardcode_direct" = no; then
+ add="$dir/$linklib"
+ case $host in
+ *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
+ *-*-sysv4*uw2*) add_dir="-L$dir" ;;
+ *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+ *-*-unixware7*) add_dir="-L$dir" ;;
+ *-*-darwin* )
+ # if the lib is a (non-dlopened) module then we can not
+ # link against it, someone is ignoring the earlier warnings
+ if /usr/bin/file -L $add 2> /dev/null |
+ $GREP ": [^:]* bundle" >/dev/null ; then
+ if test "X$dlopenmodule" != "X$lib"; then
+ $ECHO "*** Warning: lib $linklib is a module, not a shared library"
+ if test -z "$old_library" ; then
+ $ECHO
+ $ECHO "*** And there doesn't seem to be a static archive available"
+ $ECHO "*** The link will probably fail, sorry"
+ else
+ add="$dir/$old_library"
+ fi
+ elif test -n "$old_library"; then
+ add="$dir/$old_library"
+ fi
+ fi
+ esac
+ elif test "$hardcode_minus_L" = no; then
+ case $host in
+ *-*-sunos*) add_shlibpath="$dir" ;;
+ esac
+ add_dir="-L$dir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = no; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ relink)
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$dir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$dir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ *) lib_linked=no ;;
+ esac
+
+ if test "$lib_linked" != yes; then
+ func_fatal_configuration "unsupported hardcode properties"
+ fi
+
+ if test -n "$add_shlibpath"; then
+ case :$compile_shlibpath: in
+ *":$add_shlibpath:"*) ;;
+ *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
+ esac
+ fi
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+ test -n "$add" && compile_deplibs="$add $compile_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ if test "$hardcode_direct" != yes &&
+ test "$hardcode_minus_L" != yes &&
+ test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ fi
+ fi
+ fi
+
+ if test "$linkmode" = prog || test "$mode" = relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ # Finalize command for both is simple: just hardcode it.
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$libdir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$libdir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ add="-l$name"
+ elif test "$hardcode_automatic" = yes; then
+ if test -n "$inst_prefix_dir" &&
+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+ add_dir="-L$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ fi
+
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+ test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ fi
+ fi
+ elif test "$linkmode" = prog; then
+ # Here we assume that one of hardcode_direct or hardcode_minus_L
+ # is not unsupported. This is valid on all known static and
+ # shared platforms.
+ if test "$hardcode_direct" != unsupported; then
+ test -n "$old_library" && linklib="$old_library"
+ compile_deplibs="$dir/$linklib $compile_deplibs"
+ finalize_deplibs="$dir/$linklib $finalize_deplibs"
+ else
+ compile_deplibs="-l$name -L$dir $compile_deplibs"
+ finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+ fi
+ elif test "$build_libtool_libs" = yes; then
+ # Not a shared library
+ if test "$deplibs_check_method" != pass_all; then
+ # We're trying link a shared library against a static one
+ # but the system doesn't support it.
+
+ # Just print a warning and add the library to dependency_libs so
+ # that the program can be linked against the static library.
+ $ECHO
+ $ECHO "*** Warning: This system can not link to static lib archive $lib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have."
+ if test "$module" = yes; then
+ $ECHO "*** But as you try to build a module library, libtool will still create "
+ $ECHO "*** a static module, that should work as long as the dlopening application"
+ $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ else
+ deplibs="$dir/$old_library $deplibs"
+ link_static=yes
+ fi
+ fi # link shared/static library?
+
+ if test "$linkmode" = lib; then
+ if test -n "$dependency_libs" &&
+ { test "$hardcode_into_libs" != yes ||
+ test "$build_old_libs" = yes ||
+ test "$link_static" = yes; }; then
+ # Extract -R from dependency_libs
+ temp_deplibs=
+ for libdir in $dependency_libs; do
+ case $libdir in
+ -R*) func_stripname '-R' '' "$libdir"
+ temp_xrpath=$func_stripname_result
+ case " $xrpath " in
+ *" $temp_xrpath "*) ;;
+ *) xrpath="$xrpath $temp_xrpath";;
+ esac;;
+ *) temp_deplibs="$temp_deplibs $libdir";;
+ esac
+ done
+ dependency_libs="$temp_deplibs"
+ fi
+
+ newlib_search_path="$newlib_search_path $absdir"
+ # Link against this library
+ test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+ # ... and its dependency_libs
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ newdependency_libs="$deplib $newdependency_libs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+
+ if test "$link_all_deplibs" != no; then
+ # Add the search paths of all dependency libraries
+ for deplib in $dependency_libs; do
+ path=
+ case $deplib in
+ -L*) path="$deplib" ;;
+ *.la)
+ func_dirname "$deplib" "" "."
+ dir="$func_dirname_result"
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ if test -z "$absdir"; then
+ func_warning "cannot determine absolute directory name of \`$dir'"
+ absdir="$dir"
+ fi
+ ;;
+ esac
+ if $GREP "^installed=no" $deplib > /dev/null; then
+ case $host in
+ *-*-darwin*)
+ depdepl=
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$absdir/$objdir/$depdepl" ; then
+ depdepl="$absdir/$objdir/$depdepl"
+ darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ if test -z "$darwin_install_name"; then
+ darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ fi
+ compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
+ linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
+ path=
+ fi
+ fi
+ ;;
+ *)
+ path="-L$absdir/$objdir"
+ ;;
+ esac
+ else
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ test "$absdir" != "$libdir" && \
+ func_warning "\`$deplib' seems to be moved"
+
+ path="-L$absdir"
+ fi
+ ;;
+ esac
+ case " $deplibs " in
+ *" $path "*) ;;
+ *) deplibs="$path $deplibs" ;;
+ esac
+ done
+ fi # link_all_deplibs != no
+ fi # linkmode = lib
+ done # for deplib in $libs
+ if test "$pass" = link; then
+ if test "$linkmode" = "prog"; then
+ compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
+ finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ fi
+ fi
+ dependency_libs="$newdependency_libs"
+ if test "$pass" = dlpreopen; then
+ # Link the dlpreopened libraries before other libraries
+ for deplib in $save_deplibs; do
+ deplibs="$deplib $deplibs"
+ done
+ fi
+ if test "$pass" != dlopen; then
+ if test "$pass" != conv; then
+ # Make sure lib_search_path contains only unique directories.
+ lib_search_path=
+ for dir in $newlib_search_path; do
+ case "$lib_search_path " in
+ *" $dir "*) ;;
+ *) lib_search_path="$lib_search_path $dir" ;;
+ esac
+ done
+ newlib_search_path=
+ fi
+
+ if test "$linkmode,$pass" != "prog,link"; then
+ vars="deplibs"
+ else
+ vars="compile_deplibs finalize_deplibs"
+ fi
+ for var in $vars dependency_libs; do
+ # Add libraries to $var in reverse order
+ eval tmp_libs=\"\$$var\"
+ new_libs=
+ for deplib in $tmp_libs; do
+ # FIXME: Pedantically, this is the right thing to do, so
+ # that some nasty dependency loop isn't accidentally
+ # broken:
+ #new_libs="$deplib $new_libs"
+ # Pragmatically, this seems to cause very few problems in
+ # practice:
+ case $deplib in
+ -L*) new_libs="$deplib $new_libs" ;;
+ -R*) ;;
+ *)
+ # And here is the reason: when a library appears more
+ # than once as an explicit dependence of a library, or
+ # is implicitly linked in more than once by the
+ # compiler, it is considered special, and multiple
+ # occurrences thereof are not removed. Compare this
+ # with having the same library being listed as a
+ # dependency of multiple other libraries: in this case,
+ # we know (pedantically, we assume) the library does not
+ # need to be listed more than once, so we keep only the
+ # last copy. This is not always right, but it is rare
+ # enough that we require users that really mean to play
+ # such unportable linking tricks to link the library
+ # using -Wl,-lname, so that libtool does not consider it
+ # for duplicate removal.
+ case " $specialdeplibs " in
+ *" $deplib "*) new_libs="$deplib $new_libs" ;;
+ *)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$deplib $new_libs" ;;
+ esac
+ ;;
+ esac
+ ;;
+ esac
+ done
+ tmp_libs=
+ for deplib in $new_libs; do
+ case $deplib in
+ -L*)
+ case " $tmp_libs " in
+ *" $deplib "*) ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ done
+ eval $var=\"$tmp_libs\"
+ done # for var
+ fi
+ # Last step: remove runtime libs from dependency_libs
+ # (they stay in deplibs)
+ tmp_libs=
+ for i in $dependency_libs ; do
+ case " $predeps $postdeps $compiler_lib_search_path " in
+ *" $i "*)
+ i=""
+ ;;
+ esac
+ if test -n "$i" ; then
+ tmp_libs="$tmp_libs $i"
+ fi
+ done
+ dependency_libs=$tmp_libs
+ done # for pass
+ if test "$linkmode" = prog; then
+ dlfiles="$newdlfiles"
+ fi
+ if test "$linkmode" = prog || test "$linkmode" = lib; then
+ dlprefiles="$newdlprefiles"
+ fi
+
+ case $linkmode in
+ oldlib)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for archives"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for archives" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for archives"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for archives"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for archives"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for archives"
+
+ test -n "$export_symbols$export_symbols_regex" && \
+ func_warning "\`-export-symbols' is ignored for archives"
+
+ # Now set the variables for building old libraries.
+ build_libtool_libs=no
+ oldlibs="$output"
+ objs="$objs$old_deplibs"
+ ;;
+
+ lib)
+ # Make sure we only generate libraries of the form `libNAME.la'.
+ case $outputname in
+ lib*)
+ func_stripname 'lib' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ ;;
+ *)
+ test "$module" = no && \
+ func_fatal_help "libtool library \`$output' must begin with \`lib'"
+
+ if test "$need_lib_prefix" != no; then
+ # Add the "lib" prefix for modules if required
+ func_stripname '' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ else
+ func_stripname '' '.la' "$outputname"
+ libname=$func_stripname_result
+ fi
+ ;;
+ esac
+
+ if test -n "$objs"; then
+ if test "$deplibs_check_method" != pass_all; then
+ func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
+ $ECHO "*** objects $objs is not portable!"
+ libobjs="$libobjs $objs"
+ fi
+ fi
+
+ test "$dlself" != no && \
+ func_warning "\`-dlopen self' is ignored for libtool libraries"
+
+ set dummy $rpath
+ shift
+ test "$#" -gt 1 && \
+ func_warning "ignoring multiple \`-rpath's for a libtool library"
+
+ install_libdir="$1"
+
+ oldlibs=
+ if test -z "$rpath"; then
+ if test "$build_libtool_libs" = yes; then
+ # Building a libtool convenience library.
+ # Some compilers have problems with a `.al' extension so
+ # convenience libraries should have the same extension an
+ # archive normally would.
+ oldlibs="$output_objdir/$libname.$libext $oldlibs"
+ build_libtool_libs=convenience
+ build_old_libs=yes
+ fi
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for convenience libraries"
+ else
+
+ # Parse the version information argument.
+ save_ifs="$IFS"; IFS=':'
+ set dummy $vinfo 0 0 0
+ shift
+ IFS="$save_ifs"
+
+ test -n "$7" && \
+ func_fatal_help "too many parameters to \`-version-info'"
+
+ # convert absolute version numbers to libtool ages
+ # this retains compatibility with .la files and attempts
+ # to make the code below a bit more comprehensible
+
+ case $vinfo_number in
+ yes)
+ number_major="$1"
+ number_minor="$2"
+ number_revision="$3"
+ #
+ # There are really only two kinds -- those that
+ # use the current revision as the major version
+ # and those that subtract age and use age as
+ # a minor version. But, then there is irix
+ # which has an extra 1 added just for fun
+ #
+ case $version_type in
+ darwin|linux|osf|windows|none)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+ freebsd-aout|freebsd-elf|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+ ;;
+ irix|nonstopux)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ *)
+ func_fatal_configuration "$modename: unknown library version type \`$version_type'"
+ ;;
+ esac
+ ;;
+ no)
+ current="$1"
+ revision="$2"
+ age="$3"
+ ;;
+ esac
+
+ # Check that each of the things are valid numbers.
+ case $current in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "CURRENT \`$current' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $revision in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "REVISION \`$revision' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $age in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "AGE \`$age' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ if test "$age" -gt "$current"; then
+ func_error "AGE \`$age' is greater than the current interface number \`$current'"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ fi
+
+ # Calculate the version variables.
+ major=
+ versuffix=
+ verstring=
+ case $version_type in
+ none) ;;
+
+ darwin)
+ # Like Linux, but with the current version available in
+ # verstring for coding it into the library header
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ # Darwin ld doesn't like 0 for these options...
+ func_arith $current + 1
+ minor_current=$func_arith_result
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ func_arith $current - $age
+ else
+ func_arith $current - $age + 1
+ fi
+ major=$func_arith_result
+
+ case $version_type in
+ nonstopux) verstring_prefix=nonstopux ;;
+ *) verstring_prefix=sgi ;;
+ esac
+ verstring="$verstring_prefix$major.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$revision
+ while test "$loop" -ne 0; do
+ func_arith $revision - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring_prefix$major.$iface:$verstring"
+ done
+
+ # Before this point, $major must not contain `.'.
+ major=.$major
+ versuffix="$major.$revision"
+ ;;
+
+ linux)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ ;;
+
+ osf)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix=".$current.$age.$revision"
+ verstring="$current.$age.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$age
+ while test "$loop" -ne 0; do
+ func_arith $current - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring:${iface}.0"
+ done
+
+ # Make executables depend on our current version.
+ verstring="$verstring:${current}.0"
+ ;;
+
+ qnx)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ sunos)
+ major=".$current"
+ versuffix=".$current.$revision"
+ ;;
+
+ windows)
+ # Use '-' rather than '.', since we only want one
+ # extension on DOS 8.3 filesystems.
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+
+ *)
+ func_fatal_configuration "unknown library version type \`$version_type'"
+ ;;
+ esac
+
+ # Clear the version info if we defaulted, and they specified a release.
+ if test -z "$vinfo" && test -n "$release"; then
+ major=
+ case $version_type in
+ darwin)
+ # we can't check for "0.0" in archive_cmds due to quoting
+ # problems, so we reset it completely
+ verstring=
+ ;;
+ *)
+ verstring="0.0"
+ ;;
+ esac
+ if test "$need_version" = no; then
+ versuffix=
+ else
+ versuffix=".0.0"
+ fi
+ fi
+
+ # Remove version info from name if versioning should be avoided
+ if test "$avoid_version" = yes && test "$need_version" = no; then
+ major=
+ versuffix=
+ verstring=""
+ fi
+
+ # Check to see if the archive will have undefined symbols.
+ if test "$allow_undefined" = yes; then
+ if test "$allow_undefined_flag" = unsupported; then
+ func_warning "undefined symbols not allowed in $host shared libraries"
+ build_libtool_libs=no
+ build_old_libs=yes
+ fi
+ else
+ # Don't allow undefined symbols.
+ allow_undefined_flag="$no_undefined_flag"
+ fi
+
+ fi
+
+ func_generate_dlsyms "$libname" "$libname" "yes"
+ libobjs="$libobjs $symfileobj"
+ test "X$libobjs" = "X " && libobjs=
+
+ if test "$mode" != relink; then
+ # Remove our outputs, but don't remove object files since they
+ # may have been created when compiling PIC objects.
+ removelist=
+ tempremovelist=`$ECHO "$output_objdir/*"`
+ for p in $tempremovelist; do
+ case $p in
+ *.$objext | *.gcno)
+ ;;
+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if test "X$precious_files_regex" != "X"; then
+ if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
+ fi
+ removelist="$removelist $p"
+ ;;
+ *) ;;
+ esac
+ done
+ test -n "$removelist" && \
+ func_show_eval "${RM}r \$removelist"
+ fi
+
+ # Now set the variables for building old libraries.
+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+ oldlibs="$oldlibs $output_objdir/$libname.$libext"
+
+ # Transform .lo files to .o files.
+ oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
+ fi
+
+ # Eliminate all temporary directories.
+ #for path in $notinst_path; do
+ # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
+ # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
+ # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
+ #done
+
+ if test -n "$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ temp_xrpath=
+ for libdir in $xrpath; do
+ temp_xrpath="$temp_xrpath -R$libdir"
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
+ dependency_libs="$temp_xrpath $dependency_libs"
+ fi
+ fi
+
+ # Make sure dlfiles contains only unique files that won't be dlpreopened
+ old_dlfiles="$dlfiles"
+ dlfiles=
+ for lib in $old_dlfiles; do
+ case " $dlprefiles $dlfiles " in
+ *" $lib "*) ;;
+ *) dlfiles="$dlfiles $lib" ;;
+ esac
+ done
+
+ # Make sure dlprefiles contains only unique files
+ old_dlprefiles="$dlprefiles"
+ dlprefiles=
+ for lib in $old_dlprefiles; do
+ case "$dlprefiles " in
+ *" $lib "*) ;;
+ *) dlprefiles="$dlprefiles $lib" ;;
+ esac
+ done
+
+ if test "$build_libtool_libs" = yes; then
+ if test -n "$rpath"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
+ # these systems don't actually have a c library (as such)!
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C library is in the System framework
+ deplibs="$deplibs System.ltframework"
+ ;;
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test "$build_libtool_need_lc" = "yes"; then
+ deplibs="$deplibs -lc"
+ fi
+ ;;
+ esac
+ fi
+
+ # Transform deplibs into only deplibs that can be linked in shared.
+ name_save=$name
+ libname_save=$libname
+ release_save=$release
+ versuffix_save=$versuffix
+ major_save=$major
+ # I'm not sure if I'm treating the release correctly. I think
+ # release should show up in the -l (ie -lgmp5) so we don't want to
+ # add it in twice. Is that correct?
+ release=""
+ versuffix=""
+ major=""
+ newdeplibs=
+ droppeddeps=no
+ case $deplibs_check_method in
+ pass_all)
+ # Don't check for shared/static. Everything works.
+ # This might be a little naive. We might want to check
+ # whether the library exists or not. But this is on
+ # osf3 & osf4 and I'm not really sure... Just
+ # implementing what was already the behavior.
+ newdeplibs=$deplibs
+ ;;
+ test_compile)
+ # This code stresses the "libraries are programs" paradigm to its
+ # limits. Maybe even breaks it. We compile a program, linking it
+ # against the deplibs as a proxy for the library. Then we can check
+ # whether they linked in statically or dynamically with ldd.
+ $opt_dry_run || $RM conftest.c
+ cat > conftest.c <<EOF
+ int main() { return 0; }
+EOF
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which I believe you do not have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use it for"
+ $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use this one"
+ $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
+ $ECHO "*** make it link in! You will probably need to install it or some"
+ $ECHO "*** library that it depends on before this library will be fully"
+ $ECHO "*** functional. Installing it before continuing would be even better."
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method; shift
+ file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null |
+ $GREP " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
+ $SED -e 10q |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
+ $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
+ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
+ done
+ fi
+ if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
+ $GREP . >/dev/null; then
+ $ECHO
+ if test "X$deplibs_check_method" = "Xnone"; then
+ $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ $ECHO "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ $ECHO "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ fi
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library with the System framework
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ $ECHO
+ $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
+ $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
+ $ECHO "*** a static module, that should work as long as the dlopening"
+ $ECHO "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ $ECHO "*** The inter-library dependencies that have been dropped here will be"
+ $ECHO "*** automatically added whenever a program is linked with this library"
+ $ECHO "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $ECHO
+ $ECHO "*** Since this library must not contain undefined symbols,"
+ $ECHO "*** because either the platform does not support them or"
+ $ECHO "*** it was explicitly requested with -no-undefined,"
+ $ECHO "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ case $host in
+ *-*-darwin*)
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ deplibs="$new_libs"
+
+ # All the library-specific variables (install_libdir is set above).
+ library_names=
+ old_library=
+ dlname=
+
+ # Test again, we may have decided not to build it any more
+ if test "$build_libtool_libs" = yes; then
+ if test "$hardcode_into_libs" = yes; then
+ # Hardcode the library paths
+ hardcode_libdirs=
+ dep_rpath=
+ rpath="$finalize_rpath"
+ test "$mode" != relink && rpath="$compile_rpath$rpath"
+ for libdir in $rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ dep_rpath="$dep_rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ if test -n "$hardcode_libdir_flag_spec_ld"; then
+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+ else
+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+ fi
+ fi
+ if test -n "$runpath_var" && test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+ fi
+ test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+ fi
+
+ shlibpath="$finalize_shlibpath"
+ test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
+ if test -n "$shlibpath"; then
+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+ fi
+
+ # Get the real and link names of the library.
+ eval shared_ext=\"$shrext_cmds\"
+ eval library_names=\"$library_names_spec\"
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+
+ if test -n "$soname_spec"; then
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+ if test -z "$dlname"; then
+ dlname=$soname
+ fi
+
+ lib="$output_objdir/$realname"
+ linknames=
+ for link
+ do
+ linknames="$linknames $link"
+ done
+
+ # Use standard objects if they are pic
+ test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ test "X$libobjs" = "X " && libobjs=
+
+ delfiles=
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
+ export_symbols="$output_objdir/$libname.uexp"
+ delfiles="$delfiles $export_symbols"
+ fi
+
+ orig_export_symbols=
+ case $host_os in
+ cygwin* | mingw* | cegcc*)
+ if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
+ # exporting using user supplied symfile
+ if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
+ # and it's NOT already a .def file. Must figure out
+ # which of the given symbols are data symbols and tag
+ # them as such. So, trigger use of export_symbols_cmds.
+ # export_symbols gets reassigned inside the "prepare
+ # the list of exported symbols" if statement, so the
+ # include_expsyms logic still works.
+ orig_export_symbols="$export_symbols"
+ export_symbols=
+ always_export_symbols=yes
+ fi
+ fi
+ ;;
+ esac
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ cmds=$export_symbols_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ func_len " $cmd"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ func_show_eval "$cmd" 'exit $?'
+ skipped_export=false
+ else
+ # The command line is too long to execute in one step.
+ func_verbose "using reloadable object file for export list..."
+ skipped_export=:
+ # Break out early, otherwise skipped_export may be
+ # set to false by a later but shorter cmd.
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+ fi
+
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+
+ tmp_deplibs=
+ for test_deplib in $deplibs; do
+ case " $convenience " in
+ *" $test_deplib "*) ;;
+ *)
+ tmp_deplibs="$tmp_deplibs $test_deplib"
+ ;;
+ esac
+ done
+ deplibs="$tmp_deplibs"
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec" &&
+ test "$compiler_needs_object" = yes &&
+ test -z "$libobjs"; then
+ # extract the archives, so we have objects to list.
+ # TODO: could optimize this to just extract one archive.
+ whole_archive_flag_spec=
+ fi
+ if test -n "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ else
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ fi
+
+ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
+ eval flag=\"$thread_safe_flag_spec\"
+ linker_flags="$linker_flags $flag"
+ fi
+
+ # Make a backup of the uninstalled library when relinking
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
+ fi
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ eval test_cmds=\"$module_expsym_cmds\"
+ cmds=$module_expsym_cmds
+ else
+ eval test_cmds=\"$module_cmds\"
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ eval test_cmds=\"$archive_expsym_cmds\"
+ cmds=$archive_expsym_cmds
+ else
+ eval test_cmds=\"$archive_cmds\"
+ cmds=$archive_cmds
+ fi
+ fi
+
+ if test "X$skipped_export" != "X:" &&
+ func_len " $test_cmds" &&
+ len=$func_len_result &&
+ test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ :
+ else
+ # The command line is too long to link in one step, link piecewise
+ # or, if using GNU ld and skipped_export is not :, use a linker
+ # script.
+
+ # Save the value of $output and $libobjs because we want to
+ # use them later. If we have whole_archive_flag_spec, we
+ # want to use save_libobjs as it was before
+ # whole_archive_flag_spec was expanded, because we can't
+ # assume the linker understands whole_archive_flag_spec.
+ # This may have to be revisited, in case too many
+ # convenience libraries get linked in and end up exceeding
+ # the spec.
+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ fi
+ save_output=$output
+ output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
+
+ # Clear the reloadable object creation command queue and
+ # initialize k to one.
+ test_cmds=
+ concat_cmds=
+ objlist=
+ last_robj=
+ k=1
+
+ if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
+ output=${output_objdir}/${output_la}.lnkscript
+ func_verbose "creating GNU ld script: $output"
+ $ECHO 'INPUT (' > $output
+ for obj in $save_libobjs
+ do
+ $ECHO "$obj" >> $output
+ done
+ $ECHO ')' >> $output
+ delfiles="$delfiles $output"
+ elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
+ output=${output_objdir}/${output_la}.lnk
+ func_verbose "creating linker input file list: $output"
+ : > $output
+ set x $save_libobjs
+ shift
+ firstobj=
+ if test "$compiler_needs_object" = yes; then
+ firstobj="$1 "
+ shift
+ fi
+ for obj
+ do
+ $ECHO "$obj" >> $output
+ done
+ delfiles="$delfiles $output"
+ output=$firstobj\"$file_list_spec$output\"
+ else
+ if test -n "$save_libobjs"; then
+ func_verbose "creating reloadable object files..."
+ output=$output_objdir/$output_la-${k}.$objext
+ eval test_cmds=\"$reload_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+
+ # Loop over the list of objects to be linked.
+ for obj in $save_libobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ if test "X$objlist" = X ||
+ test "$len" -lt "$max_cmd_len"; then
+ func_append objlist " $obj"
+ else
+ # The command $test_cmds is almost too long, add a
+ # command to the queue.
+ if test "$k" -eq 1 ; then
+ # The first file doesn't have a previous command to add.
+ eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
+ else
+ # All subsequent reloadable object files will link in
+ # the last one created.
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
+ fi
+ last_robj=$output_objdir/$output_la-${k}.$objext
+ func_arith $k + 1
+ k=$func_arith_result
+ output=$output_objdir/$output_la-${k}.$objext
+ objlist=$obj
+ func_len " $last_robj"
+ func_arith $len0 + $func_len_result
+ len=$func_arith_result
+ fi
+ done
+ # Handle the remaining objects by creating one last
+ # reloadable object file. All subsequent reloadable object
+ # files will link in the last one created.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
+ fi
+ delfiles="$delfiles $output"
+
+ else
+ output=
+ fi
+
+ if ${skipped_export-false}; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ libobjs=$output
+ # Append the command to create the export file.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
+ fi
+ fi
+
+ test -n "$save_libobjs" &&
+ func_verbose "creating a temporary reloadable object file: $output"
+
+ # Loop through the commands generated above and execute them.
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $concat_cmds; do
+ IFS="$save_ifs"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ if test -n "$export_symbols_regex" && ${skipped_export-false}; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+
+ if ${skipped_export-false}; then
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+ fi
+
+ libobjs=$output
+ # Restore the value of output.
+ output=$save_output
+
+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ # Expand the library linking commands again to reset the
+ # value of $libobjs for piecewise linking.
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ cmds=$module_expsym_cmds
+ else
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ cmds=$archive_expsym_cmds
+ else
+ cmds=$archive_cmds
+ fi
+ fi
+ fi
+
+ if test -n "$delfiles"; then
+ # Append the command to remove temporary files to $cmds.
+ eval cmds=\"\$cmds~\$RM $delfiles\"
+ fi
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
+
+ if test -n "$convenience"; then
+ if test -z "$whole_archive_flag_spec"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ # Create links to the real library.
+ for linkname in $linknames; do
+ if test "$realname" != "$linkname"; then
+ func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
+ fi
+ done
+
+ # If -module or -export-dynamic was specified, set the dlname.
+ if test "$module" = yes || test "$export_dynamic" = yes; then
+ # On all known operating systems, these are identical.
+ dlname="$soname"
+ fi
+ fi
+ ;;
+
+ obj)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for objects"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for objects" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for objects"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for objects"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for objects"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for objects"
+
+ case $output in
+ *.lo)
+ test -n "$objs$old_deplibs" && \
+ func_fatal_error "cannot build library object \`$output' from non-libtool objects"
+
+ libobj=$output
+ func_lo2o "$libobj"
+ obj=$func_lo2o_result
+ ;;
+ *)
+ libobj=
+ obj="$output"
+ ;;
+ esac
+
+ # Delete the old objects.
+ $opt_dry_run || $RM $obj $libobj
+
+ # Objects from convenience libraries. This assumes
+ # single-version convenience libraries. Whenever we create
+ # different ones for PIC/non-PIC, this we'll have to duplicate
+ # the extraction.
+ reload_conv_objs=
+ gentop=
+ # reload_cmds runs $LD directly, so let us get rid of
+ # -Wl from whole_archive_flag_spec and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ else
+ gentop="$output_objdir/${obj}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ reload_conv_objs="$reload_objs $func_extract_archives_result"
+ fi
+ fi
+
+ # Create the old-style object.
+ reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
+
+ output="$obj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+
+ # Exit if we aren't doing a library object file.
+ if test -z "$libobj"; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$build_libtool_libs" != yes; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ # Create an invalid libtool object if no PIC, so that we don't
+ # accidentally link it into a program.
+ # $show "echo timestamp > $libobj"
+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
+ exit $EXIT_SUCCESS
+ fi
+
+ if test -n "$pic_flag" || test "$pic_mode" != default; then
+ # Only do commands if we really have different PIC objects.
+ reload_objs="$libobjs $reload_conv_objs"
+ output="$libobj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+ fi
+
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ prog)
+ case $host in
+ *cygwin*) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result.exe;;
+ esac
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for programs"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for programs"
+
+ test "$preload" = yes \
+ && test "$dlopen_support" = unknown \
+ && test "$dlopen_self" = unknown \
+ && test "$dlopen_self_static" = unknown && \
+ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ case $host in
+ *-*-darwin*)
+ # Don't allow lazy linking, it breaks C++ global constructors
+ # But is supposedly fixed on 10.4 or later (yay!).
+ if test "$tagname" = CXX ; then
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
+ 10.[0123])
+ compile_command="$compile_command ${wl}-bind_at_load"
+ finalize_command="$finalize_command ${wl}-bind_at_load"
+ ;;
+ esac
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $compile_deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $compile_deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ compile_deplibs="$new_libs"
+
+
+ compile_command="$compile_command $compile_deplibs"
+ finalize_command="$finalize_command $finalize_deplibs"
+
+ if test -n "$rpath$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ for libdir in $rpath $xrpath; do
+ # This is the magic to use -rpath.
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ fi
+
+ # Now hardcode the library paths
+ rpath=
+ hardcode_libdirs=
+ for libdir in $compile_rpath $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$libdir:"*) ;;
+ ::) dllsearchpath=$libdir;;
+ *) dllsearchpath="$dllsearchpath:$libdir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ compile_rpath="$rpath"
+
+ rpath=
+ hardcode_libdirs=
+ for libdir in $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$finalize_perm_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ finalize_rpath="$rpath"
+
+ if test -n "$libobjs" && test "$build_old_libs" = yes; then
+ # Transform all the library objects into standard objects.
+ compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ fi
+
+ func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
+
+ # template prelinking step
+ if test -n "$prelink_cmds"; then
+ func_execute_cmds "$prelink_cmds" 'exit $?'
+ fi
+
+ wrappers_required=yes
+ case $host in
+ *cygwin* | *mingw* )
+ if test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ *cegcc)
+ # Disable wrappers for cegcc, we are cross compiling anyway.
+ wrappers_required=no
+ ;;
+ *)
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ esac
+ if test "$wrappers_required" = no; then
+ # Replace the output file specification.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ link_command="$compile_command$compile_rpath"
+
+ # We have no uninstalled library dependencies, so finalize right now.
+ exit_status=0
+ func_show_eval "$link_command" 'exit_status=$?'
+
+ # Delete the generated files.
+ if test -f "$output_objdir/${outputname}S.${objext}"; then
+ func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
+ fi
+
+ exit $exit_status
+ fi
+
+ if test -n "$compile_shlibpath$finalize_shlibpath"; then
+ compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+ fi
+ if test -n "$finalize_shlibpath"; then
+ finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+ fi
+
+ compile_var=
+ finalize_var=
+ if test -n "$runpath_var"; then
+ if test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ if test -n "$finalize_perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $finalize_perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ fi
+
+ if test "$no_install" = yes; then
+ # We don't need to create a wrapper script.
+ link_command="$compile_var$compile_command$compile_rpath"
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ # Delete the old output file.
+ $opt_dry_run || $RM $output
+ # Link the executable and exit
+ func_show_eval "$link_command" 'exit $?'
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+
+ func_warning "this platform does not like uninstalled shared libraries"
+ func_warning "\`$output' will be relinked during installation"
+ else
+ if test "$fast_install" != no; then
+ link_command="$finalize_var$compile_command$finalize_rpath"
+ if test "$fast_install" = yes; then
+ relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+ else
+ # fast_install is set to needless
+ relink_command=
+ fi
+ else
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+ fi
+ fi
+
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+ # Delete the old output files.
+ $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+ func_show_eval "$link_command" 'exit $?'
+
+ # Now create the wrapper script.
+ func_verbose "creating $output"
+
+ # Quote the relink command for shipping.
+ if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ relink_command="(cd `pwd`; $relink_command)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Quote $ECHO for shipping.
+ if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
+ case $progpath in
+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
+ esac
+ qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
+ else
+ qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Only actually do things if not in dry run mode.
+ $opt_dry_run || {
+ # win32 will think the script is a binary if it has
+ # a .exe suffix, so we strip it off here.
+ case $output in
+ *.exe) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result ;;
+ esac
+ # test for cygwin because mv fails w/o .exe extensions
+ case $host in
+ *cygwin*)
+ exeext=.exe
+ func_stripname '' '.exe' "$outputname"
+ outputname=$func_stripname_result ;;
+ *) exeext= ;;
+ esac
+ case $host in
+ *cygwin* | *mingw* )
+ func_dirname_and_basename "$output" "" "."
+ output_name=$func_basename_result
+ output_path=$func_dirname_result
+ cwrappersource="$output_path/$objdir/lt-$output_name.c"
+ cwrapper="$output_path/$output_name.exe"
+ $RM $cwrappersource $cwrapper
+ trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_cwrapperexe_src > $cwrappersource
+
+ # The wrapper executable is built using the $host compiler,
+ # because it contains $host paths and files. If cross-
+ # compiling, it, like the target executable, must be
+ # executed on the $host or under an emulation environment.
+ $opt_dry_run || {
+ $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
+ $STRIP $cwrapper
+ }
+
+ # Now, create the wrapper script for func_source use:
+ func_ltwrapper_scriptname $cwrapper
+ $RM $func_ltwrapper_scriptname_result
+ trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
+ $opt_dry_run || {
+ # note: this script will not be executed, so do not chmod.
+ if test "x$build" = "x$host" ; then
+ $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+ else
+ func_emit_wrapper no > $func_ltwrapper_scriptname_result
+ fi
+ }
+ ;;
+ * )
+ $RM $output
+ trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_wrapper no > $output
+ chmod +x $output
+ ;;
+ esac
+ }
+ exit $EXIT_SUCCESS
+ ;;
+ esac
+
+ # See if we need to build an old-fashioned archive.
+ for oldlib in $oldlibs; do
+
+ if test "$build_libtool_libs" = convenience; then
+ oldobjs="$libobjs_save $symfileobj"
+ addlibs="$convenience"
+ build_libtool_libs=no
+ else
+ if test "$build_libtool_libs" = module; then
+ oldobjs="$libobjs_save"
+ build_libtool_libs=no
+ else
+ oldobjs="$old_deplibs $non_pic_objects"
+ if test "$preload" = yes && test -f "$symfileobj"; then
+ oldobjs="$oldobjs $symfileobj"
+ fi
+ fi
+ addlibs="$old_convenience"
+ fi
+
+ if test -n "$addlibs"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $addlibs
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # Do each command in the archive commands.
+ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+ cmds=$old_archive_from_new_cmds
+ else
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # POSIX demands no paths to be encoded in archives. We have
+ # to avoid creating archives with duplicate basenames if we
+ # might have to extract them afterwards, e.g., when creating a
+ # static archive out of a convenience library, or when linking
+ # the entirety of a libtool archive into another (currently
+ # not supported by libtool).
+ if (for obj in $oldobjs
+ do
+ func_basename "$obj"
+ $ECHO "$func_basename_result"
+ done | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $ECHO "copying selected object files to avoid basename conflicts..."
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+ func_mkdir_p "$gentop"
+ save_oldobjs=$oldobjs
+ oldobjs=
+ counter=1
+ for obj in $save_oldobjs
+ do
+ func_basename "$obj"
+ objbase="$func_basename_result"
+ case " $oldobjs " in
+ " ") oldobjs=$obj ;;
+ *[\ /]"$objbase "*)
+ while :; do
+ # Make sure we don't pick an alternate name that also
+ # overlaps.
+ newobj=lt$counter-$objbase
+ func_arith $counter + 1
+ counter=$func_arith_result
+ case " $oldobjs " in
+ *[\ /]"$newobj "*) ;;
+ *) if test ! -f "$gentop/$newobj"; then break; fi ;;
+ esac
+ done
+ func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
+ oldobjs="$oldobjs $gentop/$newobj"
+ ;;
+ *) oldobjs="$oldobjs $obj" ;;
+ esac
+ done
+ fi
+ eval cmds=\"$old_archive_cmds\"
+
+ func_len " $cmds"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ cmds=$old_archive_cmds
+ else
+ # the command line is too long to link in one step, link in parts
+ func_verbose "using piecewise archive linking..."
+ save_RANLIB=$RANLIB
+ RANLIB=:
+ objlist=
+ concat_cmds=
+ save_oldobjs=$oldobjs
+ oldobjs=
+ # Is there a better way of finding the last object in the list?
+ for obj in $save_oldobjs
+ do
+ last_oldobj=$obj
+ done
+ eval test_cmds=\"$old_archive_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+ for obj in $save_oldobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ func_append objlist " $obj"
+ if test "$len" -lt "$max_cmd_len"; then
+ :
+ else
+ # the above command should be used before it gets too long
+ oldobjs=$objlist
+ if test "$obj" = "$last_oldobj" ; then
+ RANLIB=$save_RANLIB
+ fi
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+ objlist=
+ len=$len0
+ fi
+ done
+ RANLIB=$save_RANLIB
+ oldobjs=$objlist
+ if test "X$oldobjs" = "X" ; then
+ eval cmds=\"\$concat_cmds\"
+ else
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+ fi
+ fi
+ fi
+ func_execute_cmds "$cmds" 'exit $?'
+ done
+
+ test -n "$generated" && \
+ func_show_eval "${RM}r$generated"
+
+ # Now create the libtool archive.
+ case $output in
+ *.la)
+ old_library=
+ test "$build_old_libs" = yes && old_library="$libname.$libext"
+ func_verbose "creating $output"
+
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ # Quote the link command for shipping.
+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ if test "$hardcode_automatic" = yes ; then
+ relink_command=
+ fi
+
+ # Only create the output if not a dry run.
+ $opt_dry_run || {
+ for installed in no yes; do
+ if test "$installed" = yes; then
+ if test -z "$install_libdir"; then
+ break
+ fi
+ output="$output_objdir/$outputname"i
+ # Replace all uninstalled libtool libraries with the installed ones
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ *.la)
+ func_basename "$deplib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
+ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+
+ for lib in $dlfiles; do
+ case $lib in
+ *.la)
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlfiles="$newdlfiles $libdir/$name"
+ ;;
+ *) newdlfiles="$newdlfiles $lib" ;;
+ esac
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ *.la)
+ # Only pass preopened files to the pseudo-archive (for
+ # eventual linking with the app. that links it) if we
+ # didn't already link the preopened objects directly into
+ # the library:
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlprefiles="$newdlprefiles $libdir/$name"
+ ;;
+ esac
+ done
+ dlprefiles="$newdlprefiles"
+ else
+ newdlfiles=
+ for lib in $dlfiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlfiles="$newdlfiles $abs"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlprefiles="$newdlprefiles $abs"
+ done
+ dlprefiles="$newdlprefiles"
+ fi
+ $RM $output
+ # place dlname in correct position for cygwin
+ tdlname=$dlname
+ case $host,$output,$installed,$module,$dlname in
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+ esac
+ $ECHO > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags='$new_inherited_linker_flags'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Names of additional weak libraries provided by this library
+weak_library_names='$weak_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+ if test "$installed" = no && test "$need_relink" = yes; then
+ $ECHO >> $output "\
+relink_command=\"$relink_command\""
+ fi
+ done
+ }
+
+ # Do a symbolic link so that the libtool archive can be found in
+ # LD_LIBRARY_PATH before the program is installed.
+ func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
+ ;;
+ esac
+ exit $EXIT_SUCCESS
+}
+
+{ test "$mode" = link || test "$mode" = relink; } &&
+ func_mode_link ${1+"$@"}
+
+
+# func_mode_uninstall arg...
+func_mode_uninstall ()
+{
+ $opt_debug
+ RM="$nonopt"
+ files=
+ rmforce=
+ exit_status=0
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ for arg
+ do
+ case $arg in
+ -f) RM="$RM $arg"; rmforce=yes ;;
+ -*) RM="$RM $arg" ;;
+ *) files="$files $arg" ;;
+ esac
+ done
+
+ test -z "$RM" && \
+ func_fatal_help "you must specify an RM program"
+
+ rmdirs=
+
+ origobjdir="$objdir"
+ for file in $files; do
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ if test "X$dir" = X.; then
+ objdir="$origobjdir"
+ else
+ objdir="$dir/$origobjdir"
+ fi
+ func_basename "$file"
+ name="$func_basename_result"
+ test "$mode" = uninstall && objdir="$dir"
+
+ # Remember objdir for removal later, being careful to avoid duplicates
+ if test "$mode" = clean; then
+ case " $rmdirs " in
+ *" $objdir "*) ;;
+ *) rmdirs="$rmdirs $objdir" ;;
+ esac
+ fi
+
+ # Don't error if the file doesn't exist and rm -f was used.
+ if { test -L "$file"; } >/dev/null 2>&1 ||
+ { test -h "$file"; } >/dev/null 2>&1 ||
+ test -f "$file"; then
+ :
+ elif test -d "$file"; then
+ exit_status=1
+ continue
+ elif test "$rmforce" = yes; then
+ continue
+ fi
+
+ rmfiles="$file"
+
+ case $name in
+ *.la)
+ # Possibly a libtool archive, so verify it.
+ if func_lalib_p "$file"; then
+ func_source $dir/$name
+
+ # Delete the libtool libraries and symlinks.
+ for n in $library_names; do
+ rmfiles="$rmfiles $objdir/$n"
+ done
+ test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
+
+ case "$mode" in
+ clean)
+ case " $library_names " in
+ # " " in the beginning catches empty $dlname
+ *" $dlname "*) ;;
+ *) rmfiles="$rmfiles $objdir/$dlname" ;;
+ esac
+ test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+ ;;
+ uninstall)
+ if test -n "$library_names"; then
+ # Do each command in the postuninstall commands.
+ func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+
+ if test -n "$old_library"; then
+ # Do each command in the old_postuninstall commands.
+ func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+ # FIXME: should reinstall the best remaining shared library.
+ ;;
+ esac
+ fi
+ ;;
+
+ *.lo)
+ # Possibly a libtool object, so verify it.
+ if func_lalib_p "$file"; then
+
+ # Read the .lo file
+ func_source $dir/$name
+
+ # Add PIC object to the list of files to remove.
+ if test -n "$pic_object" &&
+ test "$pic_object" != none; then
+ rmfiles="$rmfiles $dir/$pic_object"
+ fi
+
+ # Add non-PIC object to the list of files to remove.
+ if test -n "$non_pic_object" &&
+ test "$non_pic_object" != none; then
+ rmfiles="$rmfiles $dir/$non_pic_object"
+ fi
+ fi
+ ;;
+
+ *)
+ if test "$mode" = clean ; then
+ noexename=$name
+ case $file in
+ *.exe)
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ func_stripname '' '.exe' "$name"
+ noexename=$func_stripname_result
+ # $file with .exe has already been added to rmfiles,
+ # add $file without .exe
+ rmfiles="$rmfiles $file"
+ ;;
+ esac
+ # Do a test to see if this is a libtool program.
+ if func_ltwrapper_p "$file"; then
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ relink_command=
+ func_source $func_ltwrapper_scriptname_result
+ rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
+ else
+ relink_command=
+ func_source $dir/$noexename
+ fi
+
+ # note $name still contains .exe if it was in $file originally
+ # as does the version of $file that was added into $rmfiles
+ rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+ if test "$fast_install" = yes && test -n "$relink_command"; then
+ rmfiles="$rmfiles $objdir/lt-$name"
+ fi
+ if test "X$noexename" != "X$name" ; then
+ rmfiles="$rmfiles $objdir/lt-${noexename}.c"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ func_show_eval "$RM $rmfiles" 'exit_status=1'
+ done
+ objdir="$origobjdir"
+
+ # Try to remove the ${objdir}s in the directories where we deleted files
+ for dir in $rmdirs; do
+ if test -d "$dir"; then
+ func_show_eval "rmdir $dir >/dev/null 2>&1"
+ fi
+ done
+
+ exit $exit_status
+}
+
+{ test "$mode" = uninstall || test "$mode" = clean; } &&
+ func_mode_uninstall ${1+"$@"}
+
+test -z "$mode" && {
+ help="$generic_help"
+ func_fatal_help "you must specify a MODE"
+}
+
+test -z "$exec_cmd" && \
+ func_fatal_help "invalid operation mode \`$mode'"
+
+if test -n "$exec_cmd"; then
+ eval exec "$exec_cmd"
+ exit $EXIT_FAILURE
+fi
+
+exit $exit_status
+
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries. Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them. This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration. But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
+# vi:sw=2
+
diff --git a/build-aux/missing b/build-aux/missing
new file mode 100755
index 0000000..28055d2
--- /dev/null
+++ b/build-aux/missing
@@ -0,0 +1,376 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2009-04-28.21; # UTC
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
+# 2008, 2009 Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case $1 in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -h|--h|--he|--hel|--help)
+ echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+ -h, --help display this help and exit
+ -v, --version output version information and exit
+ --run try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+ aclocal touch file \`aclocal.m4'
+ autoconf touch file \`configure'
+ autoheader touch file \`config.h.in'
+ autom4te touch the output file, or create a stub one
+ automake touch all \`Makefile.in' files
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ flex create \`lex.yy.c', if possible, from existing .c
+ help2man touch the output file
+ lex create \`lex.yy.c', if possible, from existing .c
+ makeinfo touch the output file
+ tar try tar, gnutar, gtar, then tar without non-portable flags
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
+\`g' are ignored when checking the name.
+
+Send bug reports to <bug-automake@gnu.org>."
+ exit $?
+ ;;
+
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "missing $scriptversion (GNU Automake)"
+ exit $?
+ ;;
+
+ -*)
+ echo 1>&2 "$0: Unknown \`$1' option"
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+ ;;
+
+esac
+
+# normalize program name to check for.
+program=`echo "$1" | sed '
+ s/^gnu-//; t
+ s/^gnu//; t
+ s/^g//; t'`
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program). This is about non-GNU programs, so use $1 not
+# $program.
+case $1 in
+ lex*|yacc*)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ tar*)
+ if test -n "$run"; then
+ echo 1>&2 "ERROR: \`tar' requires --run"
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ exit 1
+ fi
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $program in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
+ to install the \`Automake' and \`Perl' packages. Grab them from
+ any GNU archive site."
+ touch aclocal.m4
+ ;;
+
+ autoconf*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`${configure_ac}'. You might want to install the
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ archive site."
+ touch configure
+ ;;
+
+ autoheader*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ from any GNU archive site."
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case $f in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
+ ;;
+
+ automake*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+ You might want to install the \`Automake' and \`Perl' packages.
+ Grab them from any GNU archive site."
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
+ ;;
+
+ autom4te*)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them.
+ You can get \`$1' as part of \`Autoconf' from any GNU
+ archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo "#! /bin/sh"
+ echo "# Created by GNU Automake missing as a replacement of"
+ echo "# $ $@"
+ echo "exit 0"
+ chmod +x $file
+ exit 1
+ fi
+ ;;
+
+ bison*|yacc*)
+ echo 1>&2 "\
+WARNING: \`$1' $msg. You should only need it if
+ you modified a \`.y' file. You may need the \`Bison' package
+ in order for those modifications to take effect. You can get
+ \`Bison' from any GNU archive site."
+ rm -f y.tab.c y.tab.h
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f y.tab.h; then
+ echo >y.tab.h
+ fi
+ if test ! -f y.tab.c; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex*|flex*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.l' file. You may need the \`Flex' package
+ in order for those modifications to take effect. You can get
+ \`Flex' from any GNU archive site."
+ rm -f lex.yy.c
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f lex.yy.c; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a dependency of a manual page. You may need the
+ \`Help2man' package in order for those modifications to take
+ effect. You can get \`Help2man' from any GNU archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit $?
+ fi
+ ;;
+
+ makeinfo*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.texi' or \`.texinfo' file, or any other file
+ indirectly affecting the aspect of the manual. The spurious
+ call might also be the consequence of using a buggy \`make' (AIX,
+ DU, IRIX). You might want to install the \`Texinfo' package or
+ the \`GNU make' package. Grab either from any GNU archive site."
+ # The file to touch is that specified with -o ...
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -z "$file"; then
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '
+ /^@setfilename/{
+ s/.* \([^ ]*\) *$/\1/
+ p
+ q
+ }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
+ touch $file
+ ;;
+
+ tar*)
+ shift
+
+ # We have already tried tar in the generic part.
+ # Look for gnutar/gtar before invocation to avoid ugly error
+ # messages.
+ if (gnutar --version > /dev/null 2>&1); then
+ gnutar "$@" && exit 0
+ fi
+ if (gtar --version > /dev/null 2>&1); then
+ gtar "$@" && exit 0
+ fi
+ firstarg="$1"
+ if shift; then
+ case $firstarg in
+ *o*)
+ firstarg=`echo "$firstarg" | sed s/o//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ case $firstarg in
+ *h*)
+ firstarg=`echo "$firstarg" | sed s/h//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ fi
+
+ echo 1>&2 "\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+ You may want to install GNU tar or Free paxutils, or check the
+ command line arguments."
+ exit 1
+ ;;
+
+ *)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them. Check the \`README' file,
+ it often tells you about the needed prerequisites for installing
+ this package. You may also peek at any GNU archive site, in case
+ some other package would contain this missing \`$1' program."
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/compile b/compile
new file mode 100755
index 0000000..ec64c62
--- /dev/null
+++ b/compile
@@ -0,0 +1,143 @@
+#! /bin/sh
+# Wrapper for compilers which do not understand `-c -o'.
+
+scriptversion=2009-04-28.21; # UTC
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software
+# Foundation, Inc.
+# Written by Tom Tromey <tromey@cygnus.com>.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# This file is maintained in Automake, please report
+# bugs to <bug-automake@gnu.org> or send patches to
+# <automake-patches@gnu.org>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: compile [--help] [--version] PROGRAM [ARGS]
+
+Wrapper for compilers which do not understand `-c -o'.
+Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
+arguments, and rename the output as expected.
+
+If you are trying to build a whole package this is not the
+right script to run: please start by reading the file `INSTALL'.
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "compile $scriptversion"
+ exit $?
+ ;;
+esac
+
+ofile=
+cfile=
+eat=
+
+for arg
+do
+ if test -n "$eat"; then
+ eat=
+ else
+ case $1 in
+ -o)
+ # configure might choose to run compile as `compile cc -o foo foo.c'.
+ # So we strip `-o arg' only if arg is an object.
+ eat=1
+ case $2 in
+ *.o | *.obj)
+ ofile=$2
+ ;;
+ *)
+ set x "$@" -o "$2"
+ shift
+ ;;
+ esac
+ ;;
+ *.c)
+ cfile=$1
+ set x "$@" "$1"
+ shift
+ ;;
+ *)
+ set x "$@" "$1"
+ shift
+ ;;
+ esac
+ fi
+ shift
+done
+
+if test -z "$ofile" || test -z "$cfile"; then
+ # If no `-o' option was seen then we might have been invoked from a
+ # pattern rule where we don't need one. That is ok -- this is a
+ # normal compilation that the losing compiler can handle. If no
+ # `.c' file was seen then we are probably linking. That is also
+ # ok.
+ exec "$@"
+fi
+
+# Name of file we expect compiler to create.
+cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
+
+# Create the lock directory.
+# Note: use `[/\\:.-]' here to ensure that we don't use the same name
+# that we are using for the .o file. Also, base the name on the expected
+# object file name, since that is what matters with a parallel build.
+lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
+while true; do
+ if mkdir "$lockdir" >/dev/null 2>&1; then
+ break
+ fi
+ sleep 1
+done
+# FIXME: race condition here if user kills between mkdir and trap.
+trap "rmdir '$lockdir'; exit 1" 1 2 15
+
+# Run the compile.
+"$@"
+ret=$?
+
+if test -f "$cofile"; then
+ mv "$cofile" "$ofile"
+elif test -f "${cofile}bj"; then
+ mv "${cofile}bj" "$ofile"
+fi
+
+rmdir "$lockdir"
+exit $ret
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/config.guess b/config.guess
new file mode 100755
index 0000000..e3a2116
--- /dev/null
+++ b/config.guess
@@ -0,0 +1,1533 @@
+#! /bin/sh
+# Attempt to guess a canonical system name.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+# Free Software Foundation, Inc.
+
+timestamp='2009-06-10'
+
+# This file is free software; you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Originally written by Per Bothner <per@bothner.com>.
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# This script attempts to guess a canonical system name similar to
+# config.sub. If it succeeds, it prints the system name on stdout, and
+# exits with 0. Otherwise, it exits with 1.
+#
+# The plan is that this can be called by configure scripts if you
+# don't specify an explicit build system type.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION]
+
+Output the configuration name of the system \`$me' is run on.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.guess ($timestamp)
+
+Originally written by Per Bothner.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help" >&2
+ exit 1 ;;
+ * )
+ break ;;
+ esac
+done
+
+if test $# != 0; then
+ echo "$me: too many arguments$help" >&2
+ exit 1
+fi
+
+trap 'exit 1' 1 2 15
+
+# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+# compiler to aid in system detection is discouraged as it requires
+# temporary files to be created and, as you can see below, it is a
+# headache to deal with in a portable fashion.
+
+# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+# use `HOST_CC' if defined, but it is deprecated.
+
+# Portable tmp directory creation inspired by the Autoconf team.
+
+set_cc_for_build='
+trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+: ${TMPDIR=/tmp} ;
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+ { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+ { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+dummy=$tmp/dummy ;
+tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+case $CC_FOR_BUILD,$HOST_CC,$CC in
+ ,,) echo "int x;" > $dummy.c ;
+ for c in cc gcc c89 c99 ; do
+ if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ CC_FOR_BUILD="$c"; break ;
+ fi ;
+ done ;
+ if test x"$CC_FOR_BUILD" = x ; then
+ CC_FOR_BUILD=no_compiler_found ;
+ fi
+ ;;
+ ,,*) CC_FOR_BUILD=$CC ;;
+ ,*,*) CC_FOR_BUILD=$HOST_CC ;;
+esac ; set_cc_for_build= ;'
+
+# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+# (ghazi@noc.rutgers.edu 1994-08-24)
+if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ PATH=$PATH:/.attbin ; export PATH
+fi
+
+UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
+UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+
+# Note: order is significant - the case branches are not exclusive.
+
+case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+ *:NetBSD:*:*)
+ # NetBSD (nbsd) targets should (where applicable) match one or
+ # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
+ # switched to ELF, *-*-netbsd* would select the old
+ # object file format. This provides both forward
+ # compatibility and a consistent mechanism for selecting the
+ # object file format.
+ #
+ # Note: NetBSD doesn't particularly care about the vendor
+ # portion of the name. We always set it to "unknown".
+ sysctl="sysctl -n hw.machine_arch"
+ UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ case "${UNAME_MACHINE_ARCH}" in
+ armeb) machine=armeb-unknown ;;
+ arm*) machine=arm-unknown ;;
+ sh3el) machine=shl-unknown ;;
+ sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
+ *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ esac
+ # The Operating System including object format, if it has switched
+ # to ELF recently, or will in the future.
+ case "${UNAME_MACHINE_ARCH}" in
+ arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ eval $set_cc_for_build
+ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ELF__
+ then
+ # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ # Return netbsd for either. FIX?
+ os=netbsd
+ else
+ os=netbsdelf
+ fi
+ ;;
+ *)
+ os=netbsd
+ ;;
+ esac
+ # The OS release
+ # Debian GNU/NetBSD machines have a different userland, and
+ # thus, need a distinct triplet. However, they do not need
+ # kernel version information, so it can be replaced with a
+ # suitable tag, in the style of linux-gnu.
+ case "${UNAME_VERSION}" in
+ Debian*)
+ release='-gnu'
+ ;;
+ *)
+ release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ ;;
+ esac
+ # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ # contains redundant information, the shorter form:
+ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ echo "${machine}-${os}${release}"
+ exit ;;
+ *:OpenBSD:*:*)
+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
+ exit ;;
+ *:ekkoBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
+ exit ;;
+ *:SolidBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
+ exit ;;
+ macppc:MirBSD:*:*)
+ echo powerpc-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ *:MirBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
+ exit ;;
+ alpha:OSF1:*:*)
+ case $UNAME_RELEASE in
+ *4.0)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ ;;
+ *5.*)
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ ;;
+ esac
+ # According to Compaq, /usr/sbin/psrinfo has been available on
+ # OSF/1 and Tru64 systems produced since 1995. I hope that
+ # covers most systems running today. This code pipes the CPU
+ # types through head -n 1, so we only detect the type of CPU 0.
+ ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ case "$ALPHA_CPU_TYPE" in
+ "EV4 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "EV4.5 (21064)")
+ UNAME_MACHINE="alpha" ;;
+ "LCA4 (21066/21068)")
+ UNAME_MACHINE="alpha" ;;
+ "EV5 (21164)")
+ UNAME_MACHINE="alphaev5" ;;
+ "EV5.6 (21164A)")
+ UNAME_MACHINE="alphaev56" ;;
+ "EV5.6 (21164PC)")
+ UNAME_MACHINE="alphapca56" ;;
+ "EV5.7 (21164PC)")
+ UNAME_MACHINE="alphapca57" ;;
+ "EV6 (21264)")
+ UNAME_MACHINE="alphaev6" ;;
+ "EV6.7 (21264A)")
+ UNAME_MACHINE="alphaev67" ;;
+ "EV6.8CB (21264C)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8AL (21264B)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.8CX (21264D)")
+ UNAME_MACHINE="alphaev68" ;;
+ "EV6.9A (21264/EV69A)")
+ UNAME_MACHINE="alphaev69" ;;
+ "EV7 (21364)")
+ UNAME_MACHINE="alphaev7" ;;
+ "EV7.9 (21364A)")
+ UNAME_MACHINE="alphaev79" ;;
+ esac
+ # A Pn.n version is a patched version.
+ # A Vn.n version is a released version.
+ # A Tn.n version is a released field test version.
+ # A Xn.n version is an unreleased experimental baselevel.
+ # 1.2 uses "1.2" for uname -r.
+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ exit ;;
+ Alpha\ *:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # Should we change UNAME_MACHINE based on the output of uname instead
+ # of the specific Alpha model?
+ echo alpha-pc-interix
+ exit ;;
+ 21064:Windows_NT:50:3)
+ echo alpha-dec-winnt3.5
+ exit ;;
+ Amiga*:UNIX_System_V:4.0:*)
+ echo m68k-unknown-sysv4
+ exit ;;
+ *:[Aa]miga[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-amigaos
+ exit ;;
+ *:[Mm]orph[Oo][Ss]:*:*)
+ echo ${UNAME_MACHINE}-unknown-morphos
+ exit ;;
+ *:OS/390:*:*)
+ echo i370-ibm-openedition
+ exit ;;
+ *:z/VM:*:*)
+ echo s390-ibm-zvmoe
+ exit ;;
+ *:OS400:*:*)
+ echo powerpc-ibm-os400
+ exit ;;
+ arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ echo arm-acorn-riscix${UNAME_RELEASE}
+ exit ;;
+ arm:riscos:*:*|arm:RISCOS:*:*)
+ echo arm-unknown-riscos
+ exit ;;
+ SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ echo hppa1.1-hitachi-hiuxmpp
+ exit ;;
+ Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ echo pyramid-pyramid-sysv3
+ else
+ echo pyramid-pyramid-bsd
+ fi
+ exit ;;
+ NILE*:*:*:dcosx)
+ echo pyramid-pyramid-svr4
+ exit ;;
+ DRS?6000:unix:4.0:6*)
+ echo sparc-icl-nx6
+ exit ;;
+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
+ case `/usr/bin/uname -p` in
+ sparc) echo sparc-icl-nx7; exit ;;
+ esac ;;
+ s390x:SunOS:*:*)
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4H:SunOS:5.*:*)
+ echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
+ eval $set_cc_for_build
+ SUN_ARCH="i386"
+ # If there is a compiler, see if it is configured for 64-bit objects.
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
+ # This test works for both compilers.
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
+ grep IS_64BIT_ARCH >/dev/null
+ then
+ SUN_ARCH="x86_64"
+ fi
+ fi
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:6*:*)
+ # According to config.sub, this is the proper way to canonicalize
+ # SunOS6. Hard to guess exactly what SunOS6 will be like, but
+ # it's likely to be more like Solaris than SunOS4.
+ echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ sun4*:SunOS:*:*)
+ case "`/usr/bin/arch -k`" in
+ Series*|S4*)
+ UNAME_RELEASE=`uname -v`
+ ;;
+ esac
+ # Japanese Language versions have a version number like `4.1.3-JL'.
+ echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ exit ;;
+ sun3*:SunOS:*:*)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ exit ;;
+ sun*:*:4.2BSD:*)
+ UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ case "`/bin/arch`" in
+ sun3)
+ echo m68k-sun-sunos${UNAME_RELEASE}
+ ;;
+ sun4)
+ echo sparc-sun-sunos${UNAME_RELEASE}
+ ;;
+ esac
+ exit ;;
+ aushp:SunOS:*:*)
+ echo sparc-auspex-sunos${UNAME_RELEASE}
+ exit ;;
+ # The situation for MiNT is a little confusing. The machine name
+ # can be virtually everything (everything which is not
+ # "atarist" or "atariste" at least should have a processor
+ # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
+ # to the lowercase version "mint" (or "freemint"). Finally
+ # the system name "TOS" denotes a system which is actually not
+ # MiNT. But MiNT is downward compatible to TOS, so this should
+ # be no problem.
+ atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+ echo m68k-atari-mint${UNAME_RELEASE}
+ exit ;;
+ milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+ echo m68k-milan-mint${UNAME_RELEASE}
+ exit ;;
+ hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+ echo m68k-hades-mint${UNAME_RELEASE}
+ exit ;;
+ *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+ echo m68k-unknown-mint${UNAME_RELEASE}
+ exit ;;
+ m68k:machten:*:*)
+ echo m68k-apple-machten${UNAME_RELEASE}
+ exit ;;
+ powerpc:machten:*:*)
+ echo powerpc-apple-machten${UNAME_RELEASE}
+ exit ;;
+ RISC*:Mach:*:*)
+ echo mips-dec-mach_bsd4.3
+ exit ;;
+ RISC*:ULTRIX:*:*)
+ echo mips-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ VAX*:ULTRIX*:*:*)
+ echo vax-dec-ultrix${UNAME_RELEASE}
+ exit ;;
+ 2020:CLIX:*:* | 2430:CLIX:*:*)
+ echo clipper-intergraph-clix${UNAME_RELEASE}
+ exit ;;
+ mips:*:*:UMIPS | mips:*:*:RISCos)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+#ifdef __cplusplus
+#include <stdio.h> /* for printf() prototype */
+ int main (int argc, char *argv[]) {
+#else
+ int main (argc, argv) int argc; char *argv[]; {
+#endif
+ #if defined (host_mips) && defined (MIPSEB)
+ #if defined (SYSTYPE_SYSV)
+ printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_SVR4)
+ printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ #endif
+ #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ #endif
+ #endif
+ exit (-1);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c &&
+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
+ SYSTEM_NAME=`$dummy $dummyarg` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo mips-mips-riscos${UNAME_RELEASE}
+ exit ;;
+ Motorola:PowerMAX_OS:*:*)
+ echo powerpc-motorola-powermax
+ exit ;;
+ Motorola:*:4.3:PL8-*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ echo powerpc-harris-powermax
+ exit ;;
+ Night_Hawk:Power_UNIX:*:*)
+ echo powerpc-harris-powerunix
+ exit ;;
+ m88k:CX/UX:7*:*)
+ echo m88k-harris-cxux7
+ exit ;;
+ m88k:*:4*:R4*)
+ echo m88k-motorola-sysv4
+ exit ;;
+ m88k:*:3*:R3*)
+ echo m88k-motorola-sysv3
+ exit ;;
+ AViiON:dgux:*:*)
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ then
+ if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ [ ${TARGET_BINARY_INTERFACE}x = x ]
+ then
+ echo m88k-dg-dgux${UNAME_RELEASE}
+ else
+ echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ fi
+ else
+ echo i586-dg-dgux${UNAME_RELEASE}
+ fi
+ exit ;;
+ M88*:DolphinOS:*:*) # DolphinOS (SVR3)
+ echo m88k-dolphin-sysv3
+ exit ;;
+ M88*:*:R3*:*)
+ # Delta 88k system running SVR3
+ echo m88k-motorola-sysv3
+ exit ;;
+ XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ echo m88k-tektronix-sysv3
+ exit ;;
+ Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ echo m68k-tektronix-bsd
+ exit ;;
+ *:IRIX*:*:*)
+ echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ exit ;;
+ ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
+ i*86:AIX:*:*)
+ echo i386-ibm-aix
+ exit ;;
+ ia64:AIX:*:*)
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:2:3)
+ if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <sys/systemcfg.h>
+
+ main()
+ {
+ if (!__power_pc())
+ exit(1);
+ puts("powerpc-ibm-aix3.2.5");
+ exit(0);
+ }
+EOF
+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
+ then
+ echo "$SYSTEM_NAME"
+ else
+ echo rs6000-ibm-aix3.2.5
+ fi
+ elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ echo rs6000-ibm-aix3.2.4
+ else
+ echo rs6000-ibm-aix3.2
+ fi
+ exit ;;
+ *:AIX:*:[456])
+ IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ IBM_ARCH=rs6000
+ else
+ IBM_ARCH=powerpc
+ fi
+ if [ -x /usr/bin/oslevel ] ; then
+ IBM_REV=`/usr/bin/oslevel`
+ else
+ IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ fi
+ echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ exit ;;
+ *:AIX:*:*)
+ echo rs6000-ibm-aix
+ exit ;;
+ ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ echo romp-ibm-bsd4.4
+ exit ;;
+ ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
+ echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
+ exit ;; # report: romp-ibm BSD 4.3
+ *:BOSX:*:*)
+ echo rs6000-bull-bosx
+ exit ;;
+ DPX/2?00:B.O.S.:*:*)
+ echo m68k-bull-sysv3
+ exit ;;
+ 9000/[34]??:4.3bsd:1.*:*)
+ echo m68k-hp-bsd
+ exit ;;
+ hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ echo m68k-hp-bsd4.4
+ exit ;;
+ 9000/[34678]??:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ case "${UNAME_MACHINE}" in
+ 9000/31? ) HP_ARCH=m68000 ;;
+ 9000/[34]?? ) HP_ARCH=m68k ;;
+ 9000/[678][0-9][0-9])
+ if [ -x /usr/bin/getconf ]; then
+ sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "${sc_cpu_version}" in
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "${sc_kernel_bits}" in
+ 32) HP_ARCH="hppa2.0n" ;;
+ 64) HP_ARCH="hppa2.0w" ;;
+ '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
+ esac ;;
+ esac
+ fi
+ if [ "${HP_ARCH}" = "" ]; then
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+
+ #define _HPUX_SOURCE
+ #include <stdlib.h>
+ #include <unistd.h>
+
+ int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
+EOF
+ (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ test -z "$HP_ARCH" && HP_ARCH=hppa
+ fi ;;
+ esac
+ if [ ${HP_ARCH} = "hppa2.0w" ]
+ then
+ eval $set_cc_for_build
+
+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
+ # generating 64-bit code. GNU and HP use different nomenclature:
+ #
+ # $ CC_FOR_BUILD=cc ./config.guess
+ # => hppa2.0w-hp-hpux11.23
+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
+ # => hppa64-hp-hpux11.23
+
+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
+ grep -q __LP64__
+ then
+ HP_ARCH="hppa2.0w"
+ else
+ HP_ARCH="hppa64"
+ fi
+ fi
+ echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ exit ;;
+ ia64:HP-UX:*:*)
+ HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ echo ia64-hp-hpux${HPUX_REV}
+ exit ;;
+ 3050*:HI-UX:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <unistd.h>
+ int
+ main ()
+ {
+ long cpu = sysconf (_SC_CPU_VERSION);
+ /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
+ results, however. */
+ if (CPU_IS_PA_RISC (cpu))
+ {
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ default: puts ("hppa-hitachi-hiuxwe2"); break;
+ }
+ }
+ else if (CPU_IS_HP_MC68K (cpu))
+ puts ("m68k-hitachi-hiuxwe2");
+ else puts ("unknown-hitachi-hiuxwe2");
+ exit (0);
+ }
+EOF
+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+ echo unknown-hitachi-hiuxwe2
+ exit ;;
+ 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ echo hppa1.1-hp-bsd
+ exit ;;
+ 9000/8??:4.3bsd:*:*)
+ echo hppa1.0-hp-bsd
+ exit ;;
+ *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ echo hppa1.0-hp-mpeix
+ exit ;;
+ hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ echo hppa1.1-hp-osf
+ exit ;;
+ hp8??:OSF1:*:*)
+ echo hppa1.0-hp-osf
+ exit ;;
+ i*86:OSF1:*:*)
+ if [ -x /usr/sbin/sysversion ] ; then
+ echo ${UNAME_MACHINE}-unknown-osf1mk
+ else
+ echo ${UNAME_MACHINE}-unknown-osf1
+ fi
+ exit ;;
+ parisc*:Lites*:*:*)
+ echo hppa1.1-hp-lites
+ exit ;;
+ C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ echo c1-convex-bsd
+ exit ;;
+ C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ echo c34-convex-bsd
+ exit ;;
+ C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ echo c38-convex-bsd
+ exit ;;
+ C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ echo c4-convex-bsd
+ exit ;;
+ CRAY*Y-MP:*:*:*)
+ echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*[A-Z]90:*:*:*)
+ echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*TS:*:*:*)
+ echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*T3E:*:*:*)
+ echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ CRAY*SV1:*:*:*)
+ echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ *:UNICOS/mp:*:*)
+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ exit ;;
+ F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ 5000:UNIX_System_V:4.*:*)
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ exit ;;
+ i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ exit ;;
+ sparc*:BSD/OS:*:*)
+ echo sparc-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:BSD/OS:*:*)
+ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ exit ;;
+ *:FreeBSD:*:*)
+ case ${UNAME_MACHINE} in
+ pc98)
+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ amd64)
+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ *)
+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ esac
+ exit ;;
+ i*:CYGWIN*:*)
+ echo ${UNAME_MACHINE}-pc-cygwin
+ exit ;;
+ *:MINGW*:*)
+ echo ${UNAME_MACHINE}-pc-mingw32
+ exit ;;
+ i*:windows32*:*)
+ # uname -m includes "-pc" on this system.
+ echo ${UNAME_MACHINE}-mingw32
+ exit ;;
+ i*:PW*:*)
+ echo ${UNAME_MACHINE}-pc-pw32
+ exit ;;
+ *:Interix*:[3456]*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ EM64T | authenticamd | genuineintel)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
+ [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ echo i${UNAME_MACHINE}-pc-mks
+ exit ;;
+ 8664:Windows_NT:*)
+ echo x86_64-pc-mks
+ exit ;;
+ i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ # How do we know it's Interix rather than the generic POSIX subsystem?
+ # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ # UNAME_MACHINE based on the output of uname instead of i386?
+ echo i586-pc-interix
+ exit ;;
+ i*:UWIN*:*)
+ echo ${UNAME_MACHINE}-pc-uwin
+ exit ;;
+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
+ echo x86_64-unknown-cygwin
+ exit ;;
+ p*:CYGWIN*:*)
+ echo powerpcle-unknown-cygwin
+ exit ;;
+ prep*:SunOS:5.*:*)
+ echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ exit ;;
+ *:GNU:*:*)
+ # the GNU system
+ echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ exit ;;
+ *:GNU/*:*:*)
+ # other systems with GNU libc and userland
+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
+ exit ;;
+ i*86:Minix:*:*)
+ echo ${UNAME_MACHINE}-pc-minix
+ exit ;;
+ arm*:Linux:*:*)
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
+ exit ;;
+ avr32*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ cris:Linux:*:*)
+ echo cris-axis-linux-gnu
+ exit ;;
+ crisv32:Linux:*:*)
+ echo crisv32-axis-linux-gnu
+ exit ;;
+ frv:Linux:*:*)
+ echo frv-unknown-linux-gnu
+ exit ;;
+ ia64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m32r*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ m68*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ mips:Linux:*:* | mips64:Linux:*:*)
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #undef CPU
+ #undef ${UNAME_MACHINE}
+ #undef ${UNAME_MACHINE}el
+ #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ CPU=${UNAME_MACHINE}el
+ #else
+ #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ CPU=${UNAME_MACHINE}
+ #else
+ CPU=
+ #endif
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^CPU/{
+ s: ::g
+ p
+ }'`"
+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
+ ;;
+ or32:Linux:*:*)
+ echo or32-unknown-linux-gnu
+ exit ;;
+ ppc:Linux:*:*)
+ echo powerpc-unknown-linux-gnu
+ exit ;;
+ ppc64:Linux:*:*)
+ echo powerpc64-unknown-linux-gnu
+ exit ;;
+ alpha:Linux:*:*)
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ EV5) UNAME_MACHINE=alphaev5 ;;
+ EV56) UNAME_MACHINE=alphaev56 ;;
+ PCA56) UNAME_MACHINE=alphapca56 ;;
+ PCA57) UNAME_MACHINE=alphapca56 ;;
+ EV6) UNAME_MACHINE=alphaev6 ;;
+ EV67) UNAME_MACHINE=alphaev67 ;;
+ EV68*) UNAME_MACHINE=alphaev68 ;;
+ esac
+ objdump --private-headers /bin/sh | grep -q ld.so.1
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ exit ;;
+ padre:Linux:*:*)
+ echo sparc-unknown-linux-gnu
+ exit ;;
+ parisc:Linux:*:* | hppa:Linux:*:*)
+ # Look for CPU level
+ case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ *) echo hppa-unknown-linux-gnu ;;
+ esac
+ exit ;;
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
+ echo hppa64-unknown-linux-gnu
+ exit ;;
+ s390:Linux:*:* | s390x:Linux:*:*)
+ echo ${UNAME_MACHINE}-ibm-linux
+ exit ;;
+ sh64*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sh*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ sparc:Linux:*:* | sparc64:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ vax:Linux:*:*)
+ echo ${UNAME_MACHINE}-dec-linux-gnu
+ exit ;;
+ x86_64:Linux:*:*)
+ echo x86_64-unknown-linux-gnu
+ exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
+ i*86:Linux:*:*)
+ # The BFD linker knows what the default object file format is, so
+ # first see if it will tell us. cd to the root directory to prevent
+ # problems with other programs or directories called `ld' in the path.
+ # Set LC_ALL=C to ensure ld outputs messages in English.
+ ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+ | sed -ne '/supported targets:/!d
+ s/[ ][ ]*/ /g
+ s/.*supported targets: *//
+ s/ .*//
+ p'`
+ case "$ld_supported_targets" in
+ elf32-i386)
+ TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+ ;;
+ esac
+ # Determine whether the default compiler is a.out or elf
+ eval $set_cc_for_build
+ sed 's/^ //' << EOF >$dummy.c
+ #include <features.h>
+ #ifdef __ELF__
+ # ifdef __GLIBC__
+ # if __GLIBC__ >= 2
+ LIBC=gnu
+ # else
+ LIBC=gnulibc1
+ # endif
+ # else
+ LIBC=gnulibc1
+ # endif
+ #else
+ #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
+ LIBC=gnu
+ #else
+ LIBC=gnuaout
+ #endif
+ #endif
+ #ifdef __dietlibc__
+ LIBC=dietlibc
+ #endif
+EOF
+ eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
+ /^LIBC/{
+ s: ::g
+ p
+ }'`"
+ test x"${LIBC}" != x && {
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
+ exit
+ }
+ test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
+ ;;
+ i*86:DYNIX/ptx:4*:*)
+ # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ # earlier versions are messed up and put the nodename in both
+ # sysname and nodename.
+ echo i386-sequent-sysv4
+ exit ;;
+ i*86:UNIX_SV:4.2MP:2.*)
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
+ # I just have to hope. -- rms.
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ exit ;;
+ i*86:OS/2:*:*)
+ # If we were able to find `uname', then EMX Unix compatibility
+ # is probably installed.
+ echo ${UNAME_MACHINE}-pc-os2-emx
+ exit ;;
+ i*86:XTS-300:*:STOP)
+ echo ${UNAME_MACHINE}-unknown-stop
+ exit ;;
+ i*86:atheos:*:*)
+ echo ${UNAME_MACHINE}-unknown-atheos
+ exit ;;
+ i*86:syllable:*:*)
+ echo ${UNAME_MACHINE}-pc-syllable
+ exit ;;
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
+ echo i386-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ i*86:*DOS:*:*)
+ echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ exit ;;
+ i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ else
+ echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ fi
+ exit ;;
+ i*86:*:5:[678]*)
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ case `/bin/uname -X | grep "^Machine"` in
+ *486*) UNAME_MACHINE=i486 ;;
+ *Pentium) UNAME_MACHINE=i586 ;;
+ *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ esac
+ echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ exit ;;
+ i*86:*:3.2:*)
+ if test -f /usr/options/cb.name; then
+ UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ && UNAME_MACHINE=i586
+ (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ && UNAME_MACHINE=i686
+ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ && UNAME_MACHINE=i686
+ echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ else
+ echo ${UNAME_MACHINE}-pc-sysv32
+ fi
+ exit ;;
+ pc:*:*:*)
+ # Left here for compatibility:
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
+ # Note: whatever this is, it MUST be the same as what config.sub
+ # prints for the "djgpp" host, or else GDB configury will decide that
+ # this is a cross-build.
+ echo i586-pc-msdosdjgpp
+ exit ;;
+ Intel:Mach:3*:*)
+ echo i386-pc-mach3
+ exit ;;
+ paragon:*:*:*)
+ echo i860-intel-osf1
+ exit ;;
+ i860:*:4.*:*) # i860-SVR4
+ if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ else # Add other i860-SVR4 vendors below as they are discovered.
+ echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
+ fi
+ exit ;;
+ mini*:CTIX:SYS*5:*)
+ # "miniframe"
+ echo m68010-convergent-sysv
+ exit ;;
+ mc68k:UNIX:SYSTEM5:3.51m)
+ echo m68k-convergent-sysv
+ exit ;;
+ M680?0:D-NIX:5.3:*)
+ echo m68k-diab-dnix
+ exit ;;
+ M68*:*:R3V[5678]*:*)
+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
+ OS_REL=''
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
+ OS_REL='.3'
+ test -r /etc/.relid \
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ echo m68k-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ mc68030:UNIX_System_V:4.*:*)
+ echo m68k-atari-sysv4
+ exit ;;
+ TSUNAMI:LynxOS:2.*:*)
+ echo sparc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ rs6000:LynxOS:2.*:*)
+ echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
+ echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ exit ;;
+ SM[BE]S:UNIX_SV:*:*)
+ echo mips-dde-sysv${UNAME_RELEASE}
+ exit ;;
+ RM*:ReliantUNIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ RM*:SINIX-*:*:*)
+ echo mips-sni-sysv4
+ exit ;;
+ *:SINIX-*:*:*)
+ if uname -p 2>/dev/null >/dev/null ; then
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ echo ${UNAME_MACHINE}-sni-sysv4
+ else
+ echo ns32k-sni-sysv
+ fi
+ exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
+ *:UNIX_System_V:4*:FTX*)
+ # From Gerald Hewes <hewes@openmarket.com>.
+ # How about differentiating between stratus architectures? -djm
+ echo hppa1.1-stratus-sysv4
+ exit ;;
+ *:*:*:FTX*)
+ # From seanf@swdc.stratus.com.
+ echo i860-stratus-sysv4
+ exit ;;
+ i*86:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo ${UNAME_MACHINE}-stratus-vos
+ exit ;;
+ *:VOS:*:*)
+ # From Paul.Green@stratus.com.
+ echo hppa1.1-stratus-vos
+ exit ;;
+ mc68*:A/UX:*:*)
+ echo m68k-apple-aux${UNAME_RELEASE}
+ exit ;;
+ news*:NEWS-OS:6*:*)
+ echo mips-sony-newsos6
+ exit ;;
+ R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ if [ -d /usr/nec ]; then
+ echo mips-nec-sysv${UNAME_RELEASE}
+ else
+ echo mips-unknown-sysv${UNAME_RELEASE}
+ fi
+ exit ;;
+ BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
+ echo powerpc-be-beos
+ exit ;;
+ BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
+ echo powerpc-apple-beos
+ exit ;;
+ BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
+ echo i586-pc-beos
+ exit ;;
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
+ echo i586-pc-haiku
+ exit ;;
+ SX-4:SUPER-UX:*:*)
+ echo sx4-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-5:SUPER-UX:*:*)
+ echo sx5-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-6:SUPER-UX:*:*)
+ echo sx6-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
+ Power*:Rhapsody:*:*)
+ echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Rhapsody:*:*)
+ echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ exit ;;
+ *:Darwin:*:*)
+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
+ case $UNAME_PROCESSOR in
+ unknown) UNAME_PROCESSOR=powerpc ;;
+ esac
+ echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ exit ;;
+ *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ UNAME_PROCESSOR=`uname -p`
+ if test "$UNAME_PROCESSOR" = "x86"; then
+ UNAME_PROCESSOR=i386
+ UNAME_MACHINE=pc
+ fi
+ echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ exit ;;
+ *:QNX:*:4*)
+ echo i386-pc-qnx
+ exit ;;
+ NSE-?:NONSTOP_KERNEL:*:*)
+ echo nse-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ NSR-?:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk${UNAME_RELEASE}
+ exit ;;
+ *:NonStop-UX:*:*)
+ echo mips-compaq-nonstopux
+ exit ;;
+ BS2000:POSIX*:*:*)
+ echo bs2000-siemens-sysv
+ exit ;;
+ DS/*:UNIX_System_V:*:*)
+ echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ exit ;;
+ *:Plan9:*:*)
+ # "uname -m" is not consistent, so use $cputype instead. 386
+ # is converted to i386 for consistency with other x86
+ # operating systems.
+ if test "$cputype" = "386"; then
+ UNAME_MACHINE=i386
+ else
+ UNAME_MACHINE="$cputype"
+ fi
+ echo ${UNAME_MACHINE}-unknown-plan9
+ exit ;;
+ *:TOPS-10:*:*)
+ echo pdp10-unknown-tops10
+ exit ;;
+ *:TENEX:*:*)
+ echo pdp10-unknown-tenex
+ exit ;;
+ KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ echo pdp10-dec-tops20
+ exit ;;
+ XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ echo pdp10-xkl-tops20
+ exit ;;
+ *:TOPS-20:*:*)
+ echo pdp10-unknown-tops20
+ exit ;;
+ *:ITS:*:*)
+ echo pdp10-unknown-its
+ exit ;;
+ SEI:*:*:SEIUX)
+ echo mips-sei-seiux${UNAME_RELEASE}
+ exit ;;
+ *:DragonFly:*:*)
+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit ;;
+ *:*VMS:*:*)
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "${UNAME_MACHINE}" in
+ A*) echo alpha-dec-vms ; exit ;;
+ I*) echo ia64-dec-vms ; exit ;;
+ V*) echo vax-dec-vms ; exit ;;
+ esac ;;
+ *:XENIX:*:SysV)
+ echo i386-pc-xenix
+ exit ;;
+ i*86:skyos:*:*)
+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
+ exit ;;
+ i*86:rdos:*:*)
+ echo ${UNAME_MACHINE}-pc-rdos
+ exit ;;
+ i*86:AROS:*:*)
+ echo ${UNAME_MACHINE}-pc-aros
+ exit ;;
+esac
+
+#echo '(No uname command or uname output not recognized.)' 1>&2
+#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+
+eval $set_cc_for_build
+cat >$dummy.c <<EOF
+#ifdef _SEQUENT_
+# include <sys/types.h>
+# include <sys/utsname.h>
+#endif
+main ()
+{
+#if defined (sony)
+#if defined (MIPSEB)
+ /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
+ I don't know.... */
+ printf ("mips-sony-bsd\n"); exit (0);
+#else
+#include <sys/param.h>
+ printf ("m68k-sony-newsos%s\n",
+#ifdef NEWSOS4
+ "4"
+#else
+ ""
+#endif
+ ); exit (0);
+#endif
+#endif
+
+#if defined (__arm) && defined (__acorn) && defined (__unix)
+ printf ("arm-acorn-riscix\n"); exit (0);
+#endif
+
+#if defined (hp300) && !defined (hpux)
+ printf ("m68k-hp-bsd\n"); exit (0);
+#endif
+
+#if defined (NeXT)
+#if !defined (__ARCHITECTURE__)
+#define __ARCHITECTURE__ "m68k"
+#endif
+ int version;
+ version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+ if (version < 4)
+ printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+ else
+ printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+ exit (0);
+#endif
+
+#if defined (MULTIMAX) || defined (n16)
+#if defined (UMAXV)
+ printf ("ns32k-encore-sysv\n"); exit (0);
+#else
+#if defined (CMU)
+ printf ("ns32k-encore-mach\n"); exit (0);
+#else
+ printf ("ns32k-encore-bsd\n"); exit (0);
+#endif
+#endif
+#endif
+
+#if defined (__386BSD__)
+ printf ("i386-pc-bsd\n"); exit (0);
+#endif
+
+#if defined (sequent)
+#if defined (i386)
+ printf ("i386-sequent-dynix\n"); exit (0);
+#endif
+#if defined (ns32000)
+ printf ("ns32k-sequent-dynix\n"); exit (0);
+#endif
+#endif
+
+#if defined (_SEQUENT_)
+ struct utsname un;
+
+ uname(&un);
+
+ if (strncmp(un.version, "V2", 2) == 0) {
+ printf ("i386-sequent-ptx2\n"); exit (0);
+ }
+ if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ printf ("i386-sequent-ptx1\n"); exit (0);
+ }
+ printf ("i386-sequent-ptx\n"); exit (0);
+
+#endif
+
+#if defined (vax)
+# if !defined (ultrix)
+# include <sys/param.h>
+# if defined (BSD)
+# if BSD == 43
+ printf ("vax-dec-bsd4.3\n"); exit (0);
+# else
+# if BSD == 199006
+ printf ("vax-dec-bsd4.3reno\n"); exit (0);
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# endif
+# else
+ printf ("vax-dec-bsd\n"); exit (0);
+# endif
+# else
+ printf ("vax-dec-ultrix\n"); exit (0);
+# endif
+#endif
+
+#if defined (alliant) && defined (i860)
+ printf ("i860-alliant-bsd\n"); exit (0);
+#endif
+
+ exit (1);
+}
+EOF
+
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
+ { echo "$SYSTEM_NAME"; exit; }
+
+# Apollos put the system type in the environment.
+
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
+
+# Convex versions that predate uname can use getsysinfo(1)
+
+if [ -x /usr/convex/getsysinfo ]
+then
+ case `getsysinfo -f cpu_type` in
+ c1*)
+ echo c1-convex-bsd
+ exit ;;
+ c2*)
+ if getsysinfo -f scalar_acc
+ then echo c32-convex-bsd
+ else echo c2-convex-bsd
+ fi
+ exit ;;
+ c34*)
+ echo c34-convex-bsd
+ exit ;;
+ c38*)
+ echo c38-convex-bsd
+ exit ;;
+ c4*)
+ echo c4-convex-bsd
+ exit ;;
+ esac
+fi
+
+cat >&2 <<EOF
+$0: unable to guess system type
+
+This script, last modified $timestamp, has failed to recognize
+the operating system you are using. It is advised that you
+download the most up to date version of the config scripts from
+
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
+and
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
+
+If the version you run ($0) is already up to date, please
+send the following data and any information you think might be
+pertinent to <config-patches@gnu.org> in order to provide the needed
+information to handle your system.
+
+config.guess timestamp = $timestamp
+
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
+
+hostinfo = `(hostinfo) 2>/dev/null`
+/bin/universe = `(/bin/universe) 2>/dev/null`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
+/bin/arch = `(/bin/arch) 2>/dev/null`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+
+UNAME_MACHINE = ${UNAME_MACHINE}
+UNAME_RELEASE = ${UNAME_RELEASE}
+UNAME_SYSTEM = ${UNAME_SYSTEM}
+UNAME_VERSION = ${UNAME_VERSION}
+EOF
+
+exit 1
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/config.h.in b/config.h.in
new file mode 100644
index 0000000..c5cbb34
--- /dev/null
+++ b/config.h.in
@@ -0,0 +1,91 @@
+/* config.h.in. Generated from configure.ac by autoheader. */
+
+#include "xorg-server.h"
+
+/* Enable XvMC support */
+#undef ENABLE_XVMC
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#undef HAVE_DLFCN_H
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#undef HAVE_INTTYPES_H
+
+/* Define to 1 if you have the <memory.h> header file. */
+#undef HAVE_MEMORY_H
+
+/* Define to 1 if you have the <stdint.h> header file. */
+#undef HAVE_STDINT_H
+
+/* Define to 1 if you have the <stdlib.h> header file. */
+#undef HAVE_STDLIB_H
+
+/* Define to 1 if you have the <strings.h> header file. */
+#undef HAVE_STRINGS_H
+
+/* Define to 1 if you have the <string.h> header file. */
+#undef HAVE_STRING_H
+
+/* Define to 1 if you have the <sys/stat.h> header file. */
+#undef HAVE_SYS_STAT_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
+
+/* Enable udev-based monitor hotplug detection */
+#undef HAVE_UDEV
+
+/* Define to 1 if you have the <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Assume KMS support */
+#undef KMS_ONLY
+
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#undef LT_OBJDIR
+
+/* Disable internal debugging */
+#undef NDEBUG
+
+/* Name of package */
+#undef PACKAGE
+
+/* Define to the address where bug reports for this package should be sent. */
+#undef PACKAGE_BUGREPORT
+
+/* Define to the full name of this package. */
+#undef PACKAGE_NAME
+
+/* Define to the full name and version of this package. */
+#undef PACKAGE_STRING
+
+/* Define to the one symbol short name of this package. */
+#undef PACKAGE_TARNAME
+
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
+/* Define to the version of this package. */
+#undef PACKAGE_VERSION
+
+/* Major version of this package */
+#undef PACKAGE_VERSION_MAJOR
+
+/* Minor version of this package */
+#undef PACKAGE_VERSION_MINOR
+
+/* Patch version of this package */
+#undef PACKAGE_VERSION_PATCHLEVEL
+
+/* Define to 1 if you have the ANSI C header files. */
+#undef STDC_HEADERS
+
+/* Version number of package */
+#undef VERSION
+
+/* Enable DRI driver support */
+#undef XF86DRI
+
+/* Enable developmental DRI driver support */
+#undef XF86DRI_DEVEL
diff --git a/config.sub b/config.sub
new file mode 100755
index 0000000..eb0389a
--- /dev/null
+++ b/config.sub
@@ -0,0 +1,1693 @@
+#! /bin/sh
+# Configuration validation subroutine script.
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+# Free Software Foundation, Inc.
+
+timestamp='2009-06-11'
+
+# This file is (in principle) common to ALL GNU software.
+# The presence of a machine in this file suggests that SOME GNU software
+# can handle that machine. It does not imply ALL GNU software can.
+#
+# This file is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+# 02110-1301, USA.
+#
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+
+# Please send patches to <config-patches@gnu.org>. Submit a context
+# diff and a properly formatted ChangeLog entry.
+#
+# Configuration subroutine to validate and canonicalize a configuration type.
+# Supply the specified configuration type as an argument.
+# If it is invalid, we print an error message on stderr and exit with code 1.
+# Otherwise, we print the canonical config type on stdout and succeed.
+
+# This file is supposed to be the same for all GNU packages
+# and recognize all the CPU types, system types and aliases
+# that are meaningful with *any* GNU software.
+# Each package is responsible for reporting which valid configurations
+# it does not support. The user should be able to distinguish
+# a failure to support a valid configuration from a meaningless
+# configuration.
+
+# The goal of this file is to map all the various variations of a given
+# machine specification into a single specification in the form:
+# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+# or in some cases, the newer four-part form:
+# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+# It is wrong to echo any other type of specification.
+
+me=`echo "$0" | sed -e 's,.*/,,'`
+
+usage="\
+Usage: $0 [OPTION] CPU-MFR-OPSYS
+ $0 [OPTION] ALIAS
+
+Canonicalize a configuration name.
+
+Operation modes:
+ -h, --help print this help, then exit
+ -t, --time-stamp print date of last modification, then exit
+ -v, --version print version number, then exit
+
+Report bugs and patches to <config-patches@gnu.org>."
+
+version="\
+GNU config.sub ($timestamp)
+
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+
+This is free software; see the source for copying conditions. There is NO
+warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+
+help="
+Try \`$me --help' for more information."
+
+# Parse command line
+while test $# -gt 0 ; do
+ case $1 in
+ --time-stamp | --time* | -t )
+ echo "$timestamp" ; exit ;;
+ --version | -v )
+ echo "$version" ; exit ;;
+ --help | --h* | -h )
+ echo "$usage"; exit ;;
+ -- ) # Stop option processing
+ shift; break ;;
+ - ) # Use stdin as input.
+ break ;;
+ -* )
+ echo "$me: invalid option $1$help"
+ exit 1 ;;
+
+ *local*)
+ # First pass through any local machine types.
+ echo $1
+ exit ;;
+
+ * )
+ break ;;
+ esac
+done
+
+case $# in
+ 0) echo "$me: missing argument$help" >&2
+ exit 1;;
+ 1) ;;
+ *) echo "$me: too many arguments$help" >&2
+ exit 1;;
+esac
+
+# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+# Here we must recognize all the valid KERNEL-OS combinations.
+maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+case $maybe_os in
+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
+ kopensolaris*-gnu* | \
+ storm-chaos* | os2-emx* | rtmk-nova*)
+ os=-$maybe_os
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+ ;;
+ *)
+ basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+ if [ $basic_machine != $1 ]
+ then os=`echo $1 | sed 's/.*-/-/'`
+ else os=; fi
+ ;;
+esac
+
+### Let's recognize common machines as not being operating systems so
+### that things like config.sub decstation-3100 work. We also
+### recognize some manufacturers as not being operating systems, so we
+### can provide default operating systems below.
+case $os in
+ -sun*os*)
+ # Prevent following clause from handling this invalid input.
+ ;;
+ -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ -apple | -axis | -knuth | -cray)
+ os=
+ basic_machine=$1
+ ;;
+ -bluegene*)
+ os=-cnk
+ ;;
+ -sim | -cisco | -oki | -wec | -winbond)
+ os=
+ basic_machine=$1
+ ;;
+ -scout)
+ ;;
+ -wrs)
+ os=-vxworks
+ basic_machine=$1
+ ;;
+ -chorusos*)
+ os=-chorusos
+ basic_machine=$1
+ ;;
+ -chorusrdb)
+ os=-chorusrdb
+ basic_machine=$1
+ ;;
+ -hiux*)
+ os=-hiuxwe2
+ ;;
+ -sco6)
+ os=-sco5v6
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5)
+ os=-sco3.2v5
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco4)
+ os=-sco3.2v4
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2.[4-9]*)
+ os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco3.2v[4-9]*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco5v6*)
+ # Don't forget version if it is 3.2v4 or newer.
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -sco*)
+ os=-sco3.2v2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -udk*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -isc)
+ os=-isc2.2
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -clix*)
+ basic_machine=clipper-intergraph
+ ;;
+ -isc*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ ;;
+ -lynx*)
+ os=-lynxos
+ ;;
+ -ptx*)
+ basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ ;;
+ -windowsnt*)
+ os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ ;;
+ -psos*)
+ os=-psos
+ ;;
+ -mint | -mint[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+esac
+
+# Decode aliases for certain CPU-COMPANY combinations.
+case $basic_machine in
+ # Recognize the basic CPU types without company name.
+ # Some are omitted here because they have special meanings below.
+ 1750a | 580 \
+ | a29k \
+ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ | am33_2.0 \
+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
+ | bfin \
+ | c4x | clipper \
+ | d10v | d30v | dlx | dsp16xx \
+ | fido | fr30 | frv \
+ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ | i370 | i860 | i960 | ia64 \
+ | ip2k | iq2000 \
+ | lm32 \
+ | m32c | m32r | m32rle | m68000 | m68k | m88k \
+ | maxq | mb | microblaze | mcore | mep | metag \
+ | mips | mipsbe | mipseb | mipsel | mipsle \
+ | mips16 \
+ | mips64 | mips64el \
+ | mips64octeon | mips64octeonel \
+ | mips64orion | mips64orionel \
+ | mips64r5900 | mips64r5900el \
+ | mips64vr | mips64vrel \
+ | mips64vr4100 | mips64vr4100el \
+ | mips64vr4300 | mips64vr4300el \
+ | mips64vr5000 | mips64vr5000el \
+ | mips64vr5900 | mips64vr5900el \
+ | mipsisa32 | mipsisa32el \
+ | mipsisa32r2 | mipsisa32r2el \
+ | mipsisa64 | mipsisa64el \
+ | mipsisa64r2 | mipsisa64r2el \
+ | mipsisa64sb1 | mipsisa64sb1el \
+ | mipsisa64sr71k | mipsisa64sr71kel \
+ | mipstx39 | mipstx39el \
+ | mn10200 | mn10300 \
+ | moxie \
+ | mt \
+ | msp430 \
+ | nios | nios2 \
+ | ns16k | ns32k \
+ | or32 \
+ | pdp10 | pdp11 | pj | pjl \
+ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | pyramid \
+ | score \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh64 | sh64le \
+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
+ | spu | strongarm \
+ | tahoe | thumb | tic4x | tic80 | tron \
+ | v850 | v850e \
+ | we32k \
+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | z8k | z80)
+ basic_machine=$basic_machine-unknown
+ ;;
+ m6811 | m68hc11 | m6812 | m68hc12)
+ # Motorola 68HC11/12.
+ basic_machine=$basic_machine-unknown
+ os=-none
+ ;;
+ m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ ;;
+ ms1)
+ basic_machine=mt-unknown
+ ;;
+
+ # We use `pc' rather than `unknown'
+ # because (1) that's what they normally are, and
+ # (2) the word "unknown" tends to confuse beginning users.
+ i*86 | x86_64)
+ basic_machine=$basic_machine-pc
+ ;;
+ # Object if more than one company name word.
+ *-*-*)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+ # Recognize the basic CPU types with company name.
+ 580-* \
+ | a29k-* \
+ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
+ | avr-* | avr32-* \
+ | bfin-* | bs2000-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ | clipper-* | craynv-* | cydra-* \
+ | d10v-* | d30v-* | dlx-* \
+ | elxsi-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
+ | h8300-* | h8500-* \
+ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ | i*86-* | i860-* | i960-* | ia64-* \
+ | ip2k-* | iq2000-* \
+ | lm32-* \
+ | m32c-* | m32r-* | m32rle-* \
+ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
+ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ | mips16-* \
+ | mips64-* | mips64el-* \
+ | mips64octeon-* | mips64octeonel-* \
+ | mips64orion-* | mips64orionel-* \
+ | mips64r5900-* | mips64r5900el-* \
+ | mips64vr-* | mips64vrel-* \
+ | mips64vr4100-* | mips64vr4100el-* \
+ | mips64vr4300-* | mips64vr4300el-* \
+ | mips64vr5000-* | mips64vr5000el-* \
+ | mips64vr5900-* | mips64vr5900el-* \
+ | mipsisa32-* | mipsisa32el-* \
+ | mipsisa32r2-* | mipsisa32r2el-* \
+ | mipsisa64-* | mipsisa64el-* \
+ | mipsisa64r2-* | mipsisa64r2el-* \
+ | mipsisa64sb1-* | mipsisa64sb1el-* \
+ | mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ | mipstx39-* | mipstx39el-* \
+ | mmix-* \
+ | mt-* \
+ | msp430-* \
+ | nios-* | nios2-* \
+ | none-* | np1-* | ns16k-* | ns32k-* \
+ | orion-* \
+ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | pyramid-* \
+ | romp-* | rs6000-* \
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
+ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
+ | sparclite-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
+ | tahoe-* | thumb-* \
+ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
+ | tron-* \
+ | v850-* | v850e-* | vax-* \
+ | we32k-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | xstormy16-* | xtensa*-* \
+ | ymp-* \
+ | z8k-* | z80-*)
+ ;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
+ # Recognize the various machine names and aliases which stand
+ # for a CPU type and a company and sometimes even an OS.
+ 386bsd)
+ basic_machine=i386-unknown
+ os=-bsd
+ ;;
+ 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ basic_machine=m68000-att
+ ;;
+ 3b*)
+ basic_machine=we32k-att
+ ;;
+ a29khif)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ abacus)
+ basic_machine=abacus-unknown
+ ;;
+ adobe68k)
+ basic_machine=m68010-adobe
+ os=-scout
+ ;;
+ alliant | fx80)
+ basic_machine=fx80-alliant
+ ;;
+ altos | altos3068)
+ basic_machine=m68k-altos
+ ;;
+ am29k)
+ basic_machine=a29k-none
+ os=-bsd
+ ;;
+ amd64)
+ basic_machine=x86_64-pc
+ ;;
+ amd64-*)
+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ amdahl)
+ basic_machine=580-amdahl
+ os=-sysv
+ ;;
+ amiga | amiga-*)
+ basic_machine=m68k-unknown
+ ;;
+ amigaos | amigados)
+ basic_machine=m68k-unknown
+ os=-amigaos
+ ;;
+ amigaunix | amix)
+ basic_machine=m68k-unknown
+ os=-sysv4
+ ;;
+ apollo68)
+ basic_machine=m68k-apollo
+ os=-sysv
+ ;;
+ apollo68bsd)
+ basic_machine=m68k-apollo
+ os=-bsd
+ ;;
+ aros)
+ basic_machine=i386-pc
+ os=-aros
+ ;;
+ aux)
+ basic_machine=m68k-apple
+ os=-aux
+ ;;
+ balance)
+ basic_machine=ns32k-sequent
+ os=-dynix
+ ;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ bluegene*)
+ basic_machine=powerpc-ibm
+ os=-cnk
+ ;;
+ c90)
+ basic_machine=c90-cray
+ os=-unicos
+ ;;
+ cegcc)
+ basic_machine=arm-unknown
+ os=-cegcc
+ ;;
+ convex-c1)
+ basic_machine=c1-convex
+ os=-bsd
+ ;;
+ convex-c2)
+ basic_machine=c2-convex
+ os=-bsd
+ ;;
+ convex-c32)
+ basic_machine=c32-convex
+ os=-bsd
+ ;;
+ convex-c34)
+ basic_machine=c34-convex
+ os=-bsd
+ ;;
+ convex-c38)
+ basic_machine=c38-convex
+ os=-bsd
+ ;;
+ cray | j90)
+ basic_machine=j90-cray
+ os=-unicos
+ ;;
+ craynv)
+ basic_machine=craynv-cray
+ os=-unicosmp
+ ;;
+ cr16)
+ basic_machine=cr16-unknown
+ os=-elf
+ ;;
+ crds | unos)
+ basic_machine=m68k-crds
+ ;;
+ crisv32 | crisv32-* | etraxfs*)
+ basic_machine=crisv32-axis
+ ;;
+ cris | cris-* | etrax*)
+ basic_machine=cris-axis
+ ;;
+ crx)
+ basic_machine=crx-unknown
+ os=-elf
+ ;;
+ da30 | da30-*)
+ basic_machine=m68k-da30
+ ;;
+ decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ basic_machine=mips-dec
+ ;;
+ decsystem10* | dec10*)
+ basic_machine=pdp10-dec
+ os=-tops10
+ ;;
+ decsystem20* | dec20*)
+ basic_machine=pdp10-dec
+ os=-tops20
+ ;;
+ delta | 3300 | motorola-3300 | motorola-delta \
+ | 3300-motorola | delta-motorola)
+ basic_machine=m68k-motorola
+ ;;
+ delta88)
+ basic_machine=m88k-motorola
+ os=-sysv3
+ ;;
+ dicos)
+ basic_machine=i686-pc
+ os=-dicos
+ ;;
+ djgpp)
+ basic_machine=i586-pc
+ os=-msdosdjgpp
+ ;;
+ dpx20 | dpx20-*)
+ basic_machine=rs6000-bull
+ os=-bosx
+ ;;
+ dpx2* | dpx2*-bull)
+ basic_machine=m68k-bull
+ os=-sysv3
+ ;;
+ ebmon29k)
+ basic_machine=a29k-amd
+ os=-ebmon
+ ;;
+ elxsi)
+ basic_machine=elxsi-elxsi
+ os=-bsd
+ ;;
+ encore | umax | mmax)
+ basic_machine=ns32k-encore
+ ;;
+ es1800 | OSE68k | ose68k | ose | OSE)
+ basic_machine=m68k-ericsson
+ os=-ose
+ ;;
+ fx2800)
+ basic_machine=i860-alliant
+ ;;
+ genix)
+ basic_machine=ns32k-ns
+ ;;
+ gmicro)
+ basic_machine=tron-gmicro
+ os=-sysv
+ ;;
+ go32)
+ basic_machine=i386-pc
+ os=-go32
+ ;;
+ h3050r* | hiux*)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ h8300hms)
+ basic_machine=h8300-hitachi
+ os=-hms
+ ;;
+ h8300xray)
+ basic_machine=h8300-hitachi
+ os=-xray
+ ;;
+ h8500hms)
+ basic_machine=h8500-hitachi
+ os=-hms
+ ;;
+ harris)
+ basic_machine=m88k-harris
+ os=-sysv3
+ ;;
+ hp300-*)
+ basic_machine=m68k-hp
+ ;;
+ hp300bsd)
+ basic_machine=m68k-hp
+ os=-bsd
+ ;;
+ hp300hpux)
+ basic_machine=m68k-hp
+ os=-hpux
+ ;;
+ hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k2[0-9][0-9] | hp9k31[0-9])
+ basic_machine=m68000-hp
+ ;;
+ hp9k3[2-9][0-9])
+ basic_machine=m68k-hp
+ ;;
+ hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k78[0-9] | hp78[0-9])
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ # FIXME: really hppa2.0-hp
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][13679] | hp8[0-9][13679])
+ basic_machine=hppa1.1-hp
+ ;;
+ hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ basic_machine=hppa1.0-hp
+ ;;
+ hppa-next)
+ os=-nextstep3
+ ;;
+ hppaosf)
+ basic_machine=hppa1.1-hp
+ os=-osf
+ ;;
+ hppro)
+ basic_machine=hppa1.1-hp
+ os=-proelf
+ ;;
+ i370-ibm* | ibm*)
+ basic_machine=i370-ibm
+ ;;
+# I'm not sure what "Sysv32" means. Should this be sysv3.2?
+ i*86v32)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv32
+ ;;
+ i*86v4*)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv4
+ ;;
+ i*86v)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-sysv
+ ;;
+ i*86sol2)
+ basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ os=-solaris2
+ ;;
+ i386mach)
+ basic_machine=i386-mach
+ os=-mach
+ ;;
+ i386-vsta | vsta)
+ basic_machine=i386-unknown
+ os=-vsta
+ ;;
+ iris | iris4d)
+ basic_machine=mips-sgi
+ case $os in
+ -irix*)
+ ;;
+ *)
+ os=-irix4
+ ;;
+ esac
+ ;;
+ isi68 | isi)
+ basic_machine=m68k-isi
+ os=-sysv
+ ;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ m88k-omron*)
+ basic_machine=m88k-omron
+ ;;
+ magnum | m3230)
+ basic_machine=mips-mips
+ os=-sysv
+ ;;
+ merlin)
+ basic_machine=ns32k-utek
+ os=-sysv
+ ;;
+ mingw32)
+ basic_machine=i386-pc
+ os=-mingw32
+ ;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
+ miniframe)
+ basic_machine=m68000-convergent
+ ;;
+ *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ basic_machine=m68k-atari
+ os=-mint
+ ;;
+ mips3*-*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ ;;
+ mips3*)
+ basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ ;;
+ monitor)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ morphos)
+ basic_machine=powerpc-unknown
+ os=-morphos
+ ;;
+ msdos)
+ basic_machine=i386-pc
+ os=-msdos
+ ;;
+ ms1-*)
+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ ;;
+ mvs)
+ basic_machine=i370-ibm
+ os=-mvs
+ ;;
+ ncr3000)
+ basic_machine=i486-ncr
+ os=-sysv4
+ ;;
+ netbsd386)
+ basic_machine=i386-unknown
+ os=-netbsd
+ ;;
+ netwinder)
+ basic_machine=armv4l-rebel
+ os=-linux
+ ;;
+ news | news700 | news800 | news900)
+ basic_machine=m68k-sony
+ os=-newsos
+ ;;
+ news1000)
+ basic_machine=m68030-sony
+ os=-newsos
+ ;;
+ news-3600 | risc-news)
+ basic_machine=mips-sony
+ os=-newsos
+ ;;
+ necv70)
+ basic_machine=v70-nec
+ os=-sysv
+ ;;
+ next | m*-next )
+ basic_machine=m68k-next
+ case $os in
+ -nextstep* )
+ ;;
+ -ns2*)
+ os=-nextstep2
+ ;;
+ *)
+ os=-nextstep3
+ ;;
+ esac
+ ;;
+ nh3000)
+ basic_machine=m68k-harris
+ os=-cxux
+ ;;
+ nh[45]000)
+ basic_machine=m88k-harris
+ os=-cxux
+ ;;
+ nindy960)
+ basic_machine=i960-intel
+ os=-nindy
+ ;;
+ mon960)
+ basic_machine=i960-intel
+ os=-mon960
+ ;;
+ nonstopux)
+ basic_machine=mips-compaq
+ os=-nonstopux
+ ;;
+ np1)
+ basic_machine=np1-gould
+ ;;
+ nsr-tandem)
+ basic_machine=nsr-tandem
+ ;;
+ op50n-* | op60c-*)
+ basic_machine=hppa1.1-oki
+ os=-proelf
+ ;;
+ openrisc | openrisc-*)
+ basic_machine=or32-unknown
+ ;;
+ os400)
+ basic_machine=powerpc-ibm
+ os=-os400
+ ;;
+ OSE68000 | ose68000)
+ basic_machine=m68000-ericsson
+ os=-ose
+ ;;
+ os68k)
+ basic_machine=m68k-none
+ os=-os68k
+ ;;
+ pa-hitachi)
+ basic_machine=hppa1.1-hitachi
+ os=-hiuxwe2
+ ;;
+ paragon)
+ basic_machine=i860-intel
+ os=-osf
+ ;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
+ pbd)
+ basic_machine=sparc-tti
+ ;;
+ pbb)
+ basic_machine=m68k-tti
+ ;;
+ pc532 | pc532-*)
+ basic_machine=ns32k-pc532
+ ;;
+ pc98)
+ basic_machine=i386-pc
+ ;;
+ pc98-*)
+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium | p5 | k5 | k6 | nexgen | viac3)
+ basic_machine=i586-pc
+ ;;
+ pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ basic_machine=i686-pc
+ ;;
+ pentiumii | pentium2 | pentiumiii | pentium3)
+ basic_machine=i686-pc
+ ;;
+ pentium4)
+ basic_machine=i786-pc
+ ;;
+ pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pentium4-*)
+ basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ pn)
+ basic_machine=pn-gould
+ ;;
+ power) basic_machine=power-ibm
+ ;;
+ ppc) basic_machine=powerpc-unknown
+ ;;
+ ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppcle | powerpclittle | ppc-le | powerpc-little)
+ basic_machine=powerpcle-unknown
+ ;;
+ ppcle-* | powerpclittle-*)
+ basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64) basic_machine=powerpc64-unknown
+ ;;
+ ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ basic_machine=powerpc64le-unknown
+ ;;
+ ppc64le-* | powerpc64little-*)
+ basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ;;
+ ps2)
+ basic_machine=i386-ibm
+ ;;
+ pw32)
+ basic_machine=i586-unknown
+ os=-pw32
+ ;;
+ rdos)
+ basic_machine=i386-pc
+ os=-rdos
+ ;;
+ rom68k)
+ basic_machine=m68k-rom68k
+ os=-coff
+ ;;
+ rm[46]00)
+ basic_machine=mips-siemens
+ ;;
+ rtpc | rtpc-*)
+ basic_machine=romp-ibm
+ ;;
+ s390 | s390-*)
+ basic_machine=s390-ibm
+ ;;
+ s390x | s390x-*)
+ basic_machine=s390x-ibm
+ ;;
+ sa29200)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ sb1)
+ basic_machine=mipsisa64sb1-unknown
+ ;;
+ sb1el)
+ basic_machine=mipsisa64sb1el-unknown
+ ;;
+ sde)
+ basic_machine=mipsisa32-sde
+ os=-elf
+ ;;
+ sei)
+ basic_machine=mips-sei
+ os=-seiux
+ ;;
+ sequent)
+ basic_machine=i386-sequent
+ ;;
+ sh)
+ basic_machine=sh-hitachi
+ os=-hms
+ ;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
+ sh64)
+ basic_machine=sh64-unknown
+ ;;
+ sparclite-wrs | simso-wrs)
+ basic_machine=sparclite-wrs
+ os=-vxworks
+ ;;
+ sps7)
+ basic_machine=m68k-bull
+ os=-sysv2
+ ;;
+ spur)
+ basic_machine=spur-unknown
+ ;;
+ st2000)
+ basic_machine=m68k-tandem
+ ;;
+ stratus)
+ basic_machine=i860-stratus
+ os=-sysv4
+ ;;
+ sun2)
+ basic_machine=m68000-sun
+ ;;
+ sun2os3)
+ basic_machine=m68000-sun
+ os=-sunos3
+ ;;
+ sun2os4)
+ basic_machine=m68000-sun
+ os=-sunos4
+ ;;
+ sun3os3)
+ basic_machine=m68k-sun
+ os=-sunos3
+ ;;
+ sun3os4)
+ basic_machine=m68k-sun
+ os=-sunos4
+ ;;
+ sun4os3)
+ basic_machine=sparc-sun
+ os=-sunos3
+ ;;
+ sun4os4)
+ basic_machine=sparc-sun
+ os=-sunos4
+ ;;
+ sun4sol2)
+ basic_machine=sparc-sun
+ os=-solaris2
+ ;;
+ sun3 | sun3-*)
+ basic_machine=m68k-sun
+ ;;
+ sun4)
+ basic_machine=sparc-sun
+ ;;
+ sun386 | sun386i | roadrunner)
+ basic_machine=i386-sun
+ ;;
+ sv1)
+ basic_machine=sv1-cray
+ os=-unicos
+ ;;
+ symmetry)
+ basic_machine=i386-sequent
+ os=-dynix
+ ;;
+ t3e)
+ basic_machine=alphaev5-cray
+ os=-unicos
+ ;;
+ t90)
+ basic_machine=t90-cray
+ os=-unicos
+ ;;
+ tic54x | c54x*)
+ basic_machine=tic54x-unknown
+ os=-coff
+ ;;
+ tic55x | c55x*)
+ basic_machine=tic55x-unknown
+ os=-coff
+ ;;
+ tic6x | c6x*)
+ basic_machine=tic6x-unknown
+ os=-coff
+ ;;
+ tile*)
+ basic_machine=tile-unknown
+ os=-linux-gnu
+ ;;
+ tx39)
+ basic_machine=mipstx39-unknown
+ ;;
+ tx39el)
+ basic_machine=mipstx39el-unknown
+ ;;
+ toad1)
+ basic_machine=pdp10-xkl
+ os=-tops20
+ ;;
+ tower | tower-32)
+ basic_machine=m68k-ncr
+ ;;
+ tpf)
+ basic_machine=s390x-ibm
+ os=-tpf
+ ;;
+ udi29k)
+ basic_machine=a29k-amd
+ os=-udi
+ ;;
+ ultra3)
+ basic_machine=a29k-nyu
+ os=-sym1
+ ;;
+ v810 | necv810)
+ basic_machine=v810-nec
+ os=-none
+ ;;
+ vaxv)
+ basic_machine=vax-dec
+ os=-sysv
+ ;;
+ vms)
+ basic_machine=vax-dec
+ os=-vms
+ ;;
+ vpp*|vx|vx-*)
+ basic_machine=f301-fujitsu
+ ;;
+ vxworks960)
+ basic_machine=i960-wrs
+ os=-vxworks
+ ;;
+ vxworks68)
+ basic_machine=m68k-wrs
+ os=-vxworks
+ ;;
+ vxworks29k)
+ basic_machine=a29k-wrs
+ os=-vxworks
+ ;;
+ w65*)
+ basic_machine=w65-wdc
+ os=-none
+ ;;
+ w89k-*)
+ basic_machine=hppa1.1-winbond
+ os=-proelf
+ ;;
+ xbox)
+ basic_machine=i686-pc
+ os=-mingw32
+ ;;
+ xps | xps100)
+ basic_machine=xps100-honeywell
+ ;;
+ ymp)
+ basic_machine=ymp-cray
+ os=-unicos
+ ;;
+ z8k-*-coff)
+ basic_machine=z8k-unknown
+ os=-sim
+ ;;
+ z80-*-coff)
+ basic_machine=z80-unknown
+ os=-sim
+ ;;
+ none)
+ basic_machine=none-none
+ os=-none
+ ;;
+
+# Here we handle the default manufacturer of certain CPU types. It is in
+# some cases the only manufacturer, in others, it is the most popular.
+ w89k)
+ basic_machine=hppa1.1-winbond
+ ;;
+ op50n)
+ basic_machine=hppa1.1-oki
+ ;;
+ op60c)
+ basic_machine=hppa1.1-oki
+ ;;
+ romp)
+ basic_machine=romp-ibm
+ ;;
+ mmix)
+ basic_machine=mmix-knuth
+ ;;
+ rs6000)
+ basic_machine=rs6000-ibm
+ ;;
+ vax)
+ basic_machine=vax-dec
+ ;;
+ pdp10)
+ # there are many clones, so DEC is not a safe bet
+ basic_machine=pdp10-unknown
+ ;;
+ pdp11)
+ basic_machine=pdp11-dec
+ ;;
+ we32k)
+ basic_machine=we32k-att
+ ;;
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
+ basic_machine=sh-unknown
+ ;;
+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
+ basic_machine=sparc-sun
+ ;;
+ cydra)
+ basic_machine=cydra-cydrome
+ ;;
+ orion)
+ basic_machine=orion-highlevel
+ ;;
+ orion105)
+ basic_machine=clipper-highlevel
+ ;;
+ mac | mpw | mac-mpw)
+ basic_machine=m68k-apple
+ ;;
+ pmac | pmac-mpw)
+ basic_machine=powerpc-apple
+ ;;
+ *-unknown)
+ # Make sure to match an already-canonicalized machine name.
+ ;;
+ *)
+ echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+
+# Here we canonicalize certain aliases for manufacturers.
+case $basic_machine in
+ *-digital*)
+ basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ ;;
+ *-commodore*)
+ basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ ;;
+ *)
+ ;;
+esac
+
+# Decode manufacturer-specific aliases for certain operating systems.
+
+if [ x"$os" != x"" ]
+then
+case $os in
+ # First match some system type aliases
+ # that might get confused with valid system types.
+ # -solaris* is a basic system type, with this one exception.
+ -solaris1 | -solaris1.*)
+ os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ ;;
+ -solaris)
+ os=-solaris2
+ ;;
+ -svr4*)
+ os=-sysv4
+ ;;
+ -unixware*)
+ os=-sysv4.2uw
+ ;;
+ -gnu/linux*)
+ os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ ;;
+ # First accept the basic system types.
+ # The portable systems comes first.
+ # Each alternative MUST END IN A *, to match a version number.
+ # -sysv* is not here because it comes later, after sysvr4.
+ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ | -kopensolaris* \
+ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ | -aos* | -aros* \
+ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+ | -openbsd* | -solidbsd* \
+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ | -chorusos* | -chorusrdb* | -cegcc* \
+ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* \
+ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
+ # Remember, each alternative MUST END IN *, to match a version number.
+ ;;
+ -qnx*)
+ case $basic_machine in
+ x86-* | i*86-*)
+ ;;
+ *)
+ os=-nto$os
+ ;;
+ esac
+ ;;
+ -nto-qnx*)
+ ;;
+ -nto*)
+ os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ ;;
+ -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
+ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ ;;
+ -mac*)
+ os=`echo $os | sed -e 's|mac|macos|'`
+ ;;
+ -linux-dietlibc)
+ os=-linux-dietlibc
+ ;;
+ -linux*)
+ os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ ;;
+ -sunos5*)
+ os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ ;;
+ -sunos6*)
+ os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ ;;
+ -opened*)
+ os=-openedition
+ ;;
+ -os400*)
+ os=-os400
+ ;;
+ -wince*)
+ os=-wince
+ ;;
+ -osfrose*)
+ os=-osfrose
+ ;;
+ -osf*)
+ os=-osf
+ ;;
+ -utek*)
+ os=-bsd
+ ;;
+ -dynix*)
+ os=-bsd
+ ;;
+ -acis*)
+ os=-aos
+ ;;
+ -atheos*)
+ os=-atheos
+ ;;
+ -syllable*)
+ os=-syllable
+ ;;
+ -386bsd)
+ os=-bsd
+ ;;
+ -ctix* | -uts*)
+ os=-sysv
+ ;;
+ -nova*)
+ os=-rtmk-nova
+ ;;
+ -ns2 )
+ os=-nextstep2
+ ;;
+ -nsk*)
+ os=-nsk
+ ;;
+ # Preserve the version number of sinix5.
+ -sinix5.*)
+ os=`echo $os | sed -e 's|sinix|sysv|'`
+ ;;
+ -sinix*)
+ os=-sysv4
+ ;;
+ -tpf*)
+ os=-tpf
+ ;;
+ -triton*)
+ os=-sysv3
+ ;;
+ -oss*)
+ os=-sysv3
+ ;;
+ -svr4)
+ os=-sysv4
+ ;;
+ -svr3)
+ os=-sysv3
+ ;;
+ -sysvr4)
+ os=-sysv4
+ ;;
+ # This must come after -sysvr4.
+ -sysv*)
+ ;;
+ -ose*)
+ os=-ose
+ ;;
+ -es1800*)
+ os=-ose
+ ;;
+ -xenix)
+ os=-xenix
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ os=-mint
+ ;;
+ -aros*)
+ os=-aros
+ ;;
+ -kaos*)
+ os=-kaos
+ ;;
+ -zvmoe)
+ os=-zvmoe
+ ;;
+ -dicos*)
+ os=-dicos
+ ;;
+ -none)
+ ;;
+ *)
+ # Get rid of the `-' at the beginning of $os.
+ os=`echo $os | sed 's/[^-]*-//'`
+ echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ exit 1
+ ;;
+esac
+else
+
+# Here we handle the default operating systems that come with various machines.
+# The value should be what the vendor currently ships out the door with their
+# machine or put another way, the most popular os provided with the machine.
+
+# Note that if you're going to try to match "-MANUFACTURER" here (say,
+# "-sun"), then you have to tell the case statement up towards the top
+# that MANUFACTURER isn't an operating system. Otherwise, code above
+# will signal an error saying that MANUFACTURER isn't an operating
+# system, and we'll never get to this point.
+
+case $basic_machine in
+ score-*)
+ os=-elf
+ ;;
+ spu-*)
+ os=-elf
+ ;;
+ *-acorn)
+ os=-riscix1.2
+ ;;
+ arm*-rebel)
+ os=-linux
+ ;;
+ arm*-semi)
+ os=-aout
+ ;;
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ # This must come before the *-dec entry.
+ pdp10-*)
+ os=-tops20
+ ;;
+ pdp11-*)
+ os=-none
+ ;;
+ *-dec | vax-*)
+ os=-ultrix4.2
+ ;;
+ m68*-apollo)
+ os=-domain
+ ;;
+ i386-sun)
+ os=-sunos4.0.2
+ ;;
+ m68000-sun)
+ os=-sunos3
+ # This also exists in the configure program, but was not the
+ # default.
+ # os=-sunos4
+ ;;
+ m68*-cisco)
+ os=-aout
+ ;;
+ mep-*)
+ os=-elf
+ ;;
+ mips*-cisco)
+ os=-elf
+ ;;
+ mips*-*)
+ os=-elf
+ ;;
+ or32-*)
+ os=-coff
+ ;;
+ *-tti) # must be before sparc entry or we get the wrong os.
+ os=-sysv3
+ ;;
+ sparc-* | *-sun)
+ os=-sunos4.1.1
+ ;;
+ *-be)
+ os=-beos
+ ;;
+ *-haiku)
+ os=-haiku
+ ;;
+ *-ibm)
+ os=-aix
+ ;;
+ *-knuth)
+ os=-mmixware
+ ;;
+ *-wec)
+ os=-proelf
+ ;;
+ *-winbond)
+ os=-proelf
+ ;;
+ *-oki)
+ os=-proelf
+ ;;
+ *-hp)
+ os=-hpux
+ ;;
+ *-hitachi)
+ os=-hiux
+ ;;
+ i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ os=-sysv
+ ;;
+ *-cbm)
+ os=-amigaos
+ ;;
+ *-dg)
+ os=-dgux
+ ;;
+ *-dolphin)
+ os=-sysv3
+ ;;
+ m68k-ccur)
+ os=-rtu
+ ;;
+ m88k-omron*)
+ os=-luna
+ ;;
+ *-next )
+ os=-nextstep
+ ;;
+ *-sequent)
+ os=-ptx
+ ;;
+ *-crds)
+ os=-unos
+ ;;
+ *-ns)
+ os=-genix
+ ;;
+ i370-*)
+ os=-mvs
+ ;;
+ *-next)
+ os=-nextstep3
+ ;;
+ *-gould)
+ os=-sysv
+ ;;
+ *-highlevel)
+ os=-bsd
+ ;;
+ *-encore)
+ os=-bsd
+ ;;
+ *-sgi)
+ os=-irix
+ ;;
+ *-siemens)
+ os=-sysv4
+ ;;
+ *-masscomp)
+ os=-rtu
+ ;;
+ f30[01]-fujitsu | f700-fujitsu)
+ os=-uxpv
+ ;;
+ *-rom68k)
+ os=-coff
+ ;;
+ *-*bug)
+ os=-coff
+ ;;
+ *-apple)
+ os=-macos
+ ;;
+ *-atari*)
+ os=-mint
+ ;;
+ *)
+ os=-none
+ ;;
+esac
+fi
+
+# Here we handle the case where we know the os, and the CPU type, but not the
+# manufacturer. We pick the logical manufacturer.
+vendor=unknown
+case $basic_machine in
+ *-unknown)
+ case $os in
+ -riscix*)
+ vendor=acorn
+ ;;
+ -sunos*)
+ vendor=sun
+ ;;
+ -cnk*|-aix*)
+ vendor=ibm
+ ;;
+ -beos*)
+ vendor=be
+ ;;
+ -hpux*)
+ vendor=hp
+ ;;
+ -mpeix*)
+ vendor=hp
+ ;;
+ -hiux*)
+ vendor=hitachi
+ ;;
+ -unos*)
+ vendor=crds
+ ;;
+ -dgux*)
+ vendor=dg
+ ;;
+ -luna*)
+ vendor=omron
+ ;;
+ -genix*)
+ vendor=ns
+ ;;
+ -mvs* | -opened*)
+ vendor=ibm
+ ;;
+ -os400*)
+ vendor=ibm
+ ;;
+ -ptx*)
+ vendor=sequent
+ ;;
+ -tpf*)
+ vendor=ibm
+ ;;
+ -vxsim* | -vxworks* | -windiss*)
+ vendor=wrs
+ ;;
+ -aux*)
+ vendor=apple
+ ;;
+ -hms*)
+ vendor=hitachi
+ ;;
+ -mpw* | -macos*)
+ vendor=apple
+ ;;
+ -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ vendor=atari
+ ;;
+ -vos*)
+ vendor=stratus
+ ;;
+ esac
+ basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ ;;
+esac
+
+echo $basic_machine$os
+exit
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "timestamp='"
+# time-stamp-format: "%:y-%02m-%02d"
+# time-stamp-end: "'"
+# End:
diff --git a/configure b/configure
new file mode 100755
index 0000000..2a143c8
--- /dev/null
+++ b/configure
@@ -0,0 +1,14413 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.67 for xf86-video-intel 2.15.0.
+#
+# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
+#
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
+# Foundation, Inc.
+#
+#
+# This configure script is free software; the Free Software Foundation
+# gives unlimited permission to copy, distribute and modify it.
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
+
+else
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+ if (eval "$as_required") 2>/dev/null; then :
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
+
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir/$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi; }
+IFS=$as_save_IFS
+
+
+ if test "x$CONFIG_SHELL" != x; then :
+ # We cannot yet assume a decent shell, so we have to provide a
+ # neutralization value for shells without unset; and this also
+ # works around shells that cannot unset nonexistent variables.
+ BASH_ENV=/dev/null
+ ENV=/dev/null
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+ export CONFIG_SHELL
+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
+fi
+
+ if test x$as_have_required = xno; then :
+ $as_echo "$0: This script requires a shell more modern than all"
+ $as_echo "$0: the shells that I found on your system."
+ if test x${ZSH_VERSION+set} = xset ; then
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
+ else
+ $as_echo "$0: Please tell bug-autoconf@gnu.org and
+$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
+$0: about your system, including any error possibly output
+$0: before this message. Then install a modern shell, or
+$0: manually run the script under such a shell if you do
+$0: have one."
+ fi
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
+ sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
+ N
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
+ t loop
+ s/-\n.*//
+ ' >$as_me.lineno &&
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+
+ # Don't try to exec as it changes $[0], causing all sort of problems
+ # (the dirname of $[0] is not the place where we might find the
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
+ # Exit status is that of the last command.
+ exit
+}
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$lt_ECHO in
+X*--fallback-echo)
+ # Remove one level of quotation (which was required for Make).
+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
+ ;;
+esac
+
+ECHO=${lt_ECHO-echo}
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell.
+ exec $SHELL "$0" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<_LT_EOF
+$*
+_LT_EOF
+ exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test -z "$lt_ECHO"; then
+ if test "X${echo_test_string+set}" != Xset; then
+ # find a string as large as possible, as long as the shell can cope with it
+ for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
+ then
+ break
+ fi
+ done
+ fi
+
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ :
+ else
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
+ # backslashes. This makes it impossible to quote backslashes using
+ # echo "$something" | sed 's/\\/\\\\/g'
+ #
+ # So, first we look for a working echo in the user's PATH.
+
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$dir/echo"
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ if test "X$ECHO" = Xecho; then
+ # We didn't find a better echo, so look for alternatives.
+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # This shell has a builtin print -r that does the trick.
+ ECHO='print -r'
+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
+ # If we have ksh, try running configure again with it.
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ export ORIGINAL_CONFIG_SHELL
+ CONFIG_SHELL=/bin/ksh
+ export CONFIG_SHELL
+ exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
+ else
+ # Try using printf.
+ ECHO='printf %s\n'
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # Cool, printf works
+ :
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+ export CONFIG_SHELL
+ SHELL="$CONFIG_SHELL"
+ export SHELL
+ ECHO="$CONFIG_SHELL $0 --fallback-echo"
+ elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$CONFIG_SHELL $0 --fallback-echo"
+ else
+ # maybe with a smaller string...
+ prev=:
+
+ for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
+ then
+ break
+ fi
+ prev="$cmd"
+ done
+
+ if test "$prev" != 'sed 50q "$0"'; then
+ echo_test_string=`eval $prev`
+ export echo_test_string
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
+ else
+ # Oops. We lost completely, so just stick with echo.
+ ECHO=echo
+ fi
+ fi
+ fi
+ fi
+ fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+lt_ECHO=$ECHO
+if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
+ lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
+fi
+
+
+
+
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
+
+# Name of the host.
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
+# so uname gets run too.
+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_clean_files=
+ac_config_libobj_dir=.
+LIBOBJS=
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+
+# Identity of this package.
+PACKAGE_NAME='xf86-video-intel'
+PACKAGE_TARNAME='xf86-video-intel'
+PACKAGE_VERSION='2.15.0'
+PACKAGE_STRING='xf86-video-intel 2.15.0'
+PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
+PACKAGE_URL=''
+
+ac_unique_file="Makefile.am"
+# Factoring default headers for most tests.
+ac_includes_default="\
+#include <stdio.h>
+#ifdef HAVE_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+# include <stddef.h>
+#else
+# ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+# endif
+#endif
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
+# include <memory.h>
+# endif
+# include <string.h>
+#endif
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif"
+
+ac_subst_vars='am__EXEEXT_FALSE
+am__EXEEXT_TRUE
+LTLIBOBJS
+LIBOBJS
+moduledir
+DRIVER_NAME
+KMS_ONLY_FALSE
+KMS_ONLY_TRUE
+XVMC_FALSE
+XVMC_TRUE
+XVMCLIB_LIBS
+XVMCLIB_CFLAGS
+DRI_LIBS
+DRI_CFLAGS
+DRI_FALSE
+DRI_TRUE
+PCIACCESS_LIBS
+PCIACCESS_CFLAGS
+DRM_LIBS
+DRM_CFLAGS
+XORG_LIBS
+XORG_CFLAGS
+UDEV_LIBS
+UDEV_CFLAGS
+HAVE_GEN4ASM_FALSE
+HAVE_GEN4ASM_TRUE
+GEN4ASM_LIBS
+GEN4ASM_CFLAGS
+OTOOL64
+OTOOL
+LIPO
+NMEDIT
+DSYMUTIL
+lt_ECHO
+RANLIB
+AR
+OBJDUMP
+LN_S
+NM
+ac_ct_DUMPBIN
+DUMPBIN
+LD
+FGREP
+LIBTOOL
+MAN_SUBSTS
+XORG_MAN_PAGE
+ADMIN_MAN_DIR
+DRIVER_MAN_DIR
+MISC_MAN_DIR
+FILE_MAN_DIR
+LIB_MAN_DIR
+APP_MAN_DIR
+ADMIN_MAN_SUFFIX
+DRIVER_MAN_SUFFIX
+MISC_MAN_SUFFIX
+FILE_MAN_SUFFIX
+LIB_MAN_SUFFIX
+APP_MAN_SUFFIX
+SED
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+INSTALL_CMD
+PKG_CONFIG_LIBDIR
+PKG_CONFIG_PATH
+PKG_CONFIG
+CHANGELOG_CMD
+CWARNFLAGS
+EGREP
+GREP
+CPP
+am__fastdepCC_FALSE
+am__fastdepCC_TRUE
+CCDEPMODE
+AMDEPBACKSLASH
+AMDEP_FALSE
+AMDEP_TRUE
+am__quote
+am__include
+DEPDIR
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+AM_BACKSLASH
+AM_DEFAULT_VERBOSITY
+MAINT
+MAINTAINER_MODE_FALSE
+MAINTAINER_MODE_TRUE
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
+ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_maintainer_mode
+enable_silent_rules
+enable_dependency_tracking
+enable_strict_compilation
+enable_static
+enable_shared
+with_pic
+enable_fast_install
+with_gnu_ld
+enable_libtool_lock
+with_xorg_module_dir
+enable_dri
+enable_xvmc
+enable_kms_only
+enable_debug
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CPP
+PKG_CONFIG
+PKG_CONFIG_PATH
+PKG_CONFIG_LIBDIR
+GEN4ASM_CFLAGS
+GEN4ASM_LIBS
+UDEV_CFLAGS
+UDEV_LIBS
+XORG_CFLAGS
+XORG_LIBS
+DRM_CFLAGS
+DRM_LIBS
+PCIACCESS_CFLAGS
+PCIACCESS_LIBS
+DRI_CFLAGS
+DRI_LIBS
+XVMCLIB_CFLAGS
+XVMCLIB_LIBS'
+
+
+# Initialize some variables set by options.
+ac_init_help=
+ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
+# The variables have the same names as the options, with
+# dashes changed to underlines.
+cache_file=/dev/null
+exec_prefix=NONE
+no_create=
+no_recursion=
+prefix=NONE
+program_prefix=NONE
+program_suffix=NONE
+program_transform_name=s,x,x,
+silent=
+site=
+srcdir=
+verbose=
+x_includes=NONE
+x_libraries=NONE
+
+# Installation directory options.
+# These are left unexpanded so users can "make install exec_prefix=/foo"
+# and all the variables that are supposed to be based on exec_prefix
+# by default will actually change.
+# Use braces instead of parens because sh, perl, etc. also accept them.
+# (The list follows the same order as the GNU Coding Standards.)
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
+infodir='${datarootdir}/info'
+htmldir='${docdir}'
+dvidir='${docdir}'
+pdfdir='${docdir}'
+psdir='${docdir}'
+libdir='${exec_prefix}/lib'
+localedir='${datarootdir}/locale'
+mandir='${datarootdir}/man'
+
+ac_prev=
+ac_dashdash=
+for ac_option
+do
+ # If the previous option needs an argument, assign it.
+ if test -n "$ac_prev"; then
+ eval $ac_prev=\$ac_option
+ ac_prev=
+ continue
+ fi
+
+ case $ac_option in
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *=) ac_optarg= ;;
+ *) ac_optarg=yes ;;
+ esac
+
+ # Accept the important Cygnus configure options, so we can diagnose typos.
+
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
+
+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
+ ac_prev=bindir ;;
+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+ bindir=$ac_optarg ;;
+
+ -build | --build | --buil | --bui | --bu)
+ ac_prev=build_alias ;;
+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+ build_alias=$ac_optarg ;;
+
+ -cache-file | --cache-file | --cache-fil | --cache-fi \
+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+ ac_prev=cache_file ;;
+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+ cache_file=$ac_optarg ;;
+
+ --config-cache | -C)
+ cache_file=config.cache ;;
+
+ -datadir | --datadir | --datadi | --datad)
+ ac_prev=datadir ;;
+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
+ datadir=$ac_optarg ;;
+
+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
+ | --dataroo | --dataro | --datar)
+ ac_prev=datarootdir ;;
+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
+ datarootdir=$ac_optarg ;;
+
+ -disable-* | --disable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=no ;;
+
+ -docdir | --docdir | --docdi | --doc | --do)
+ ac_prev=docdir ;;
+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
+ docdir=$ac_optarg ;;
+
+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
+ ac_prev=dvidir ;;
+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
+ dvidir=$ac_optarg ;;
+
+ -enable-* | --enable-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=\$ac_optarg ;;
+
+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+ | --exec | --exe | --ex)
+ ac_prev=exec_prefix ;;
+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+ | --exec=* | --exe=* | --ex=*)
+ exec_prefix=$ac_optarg ;;
+
+ -gas | --gas | --ga | --g)
+ # Obsolete; use --with-gas.
+ with_gas=yes ;;
+
+ -help | --help | --hel | --he | -h)
+ ac_init_help=long ;;
+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
+ ac_init_help=recursive ;;
+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
+ ac_init_help=short ;;
+
+ -host | --host | --hos | --ho)
+ ac_prev=host_alias ;;
+ -host=* | --host=* | --hos=* | --ho=*)
+ host_alias=$ac_optarg ;;
+
+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
+ ac_prev=htmldir ;;
+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
+ | --ht=*)
+ htmldir=$ac_optarg ;;
+
+ -includedir | --includedir | --includedi | --included | --include \
+ | --includ | --inclu | --incl | --inc)
+ ac_prev=includedir ;;
+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+ | --includ=* | --inclu=* | --incl=* | --inc=*)
+ includedir=$ac_optarg ;;
+
+ -infodir | --infodir | --infodi | --infod | --info | --inf)
+ ac_prev=infodir ;;
+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+ infodir=$ac_optarg ;;
+
+ -libdir | --libdir | --libdi | --libd)
+ ac_prev=libdir ;;
+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
+ libdir=$ac_optarg ;;
+
+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+ | --libexe | --libex | --libe)
+ ac_prev=libexecdir ;;
+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+ | --libexe=* | --libex=* | --libe=*)
+ libexecdir=$ac_optarg ;;
+
+ -localedir | --localedir | --localedi | --localed | --locale)
+ ac_prev=localedir ;;
+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
+ localedir=$ac_optarg ;;
+
+ -localstatedir | --localstatedir | --localstatedi | --localstated \
+ | --localstate | --localstat | --localsta | --localst | --locals)
+ ac_prev=localstatedir ;;
+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
+ localstatedir=$ac_optarg ;;
+
+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+ ac_prev=mandir ;;
+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+ mandir=$ac_optarg ;;
+
+ -nfp | --nfp | --nf)
+ # Obsolete; use --without-fp.
+ with_fp=no ;;
+
+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+ | --no-cr | --no-c | -n)
+ no_create=yes ;;
+
+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+ no_recursion=yes ;;
+
+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+ | --oldin | --oldi | --old | --ol | --o)
+ ac_prev=oldincludedir ;;
+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+ oldincludedir=$ac_optarg ;;
+
+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+ ac_prev=prefix ;;
+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+ prefix=$ac_optarg ;;
+
+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
+ | --program-pre | --program-pr | --program-p)
+ ac_prev=program_prefix ;;
+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+ program_prefix=$ac_optarg ;;
+
+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
+ | --program-suf | --program-su | --program-s)
+ ac_prev=program_suffix ;;
+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+ program_suffix=$ac_optarg ;;
+
+ -program-transform-name | --program-transform-name \
+ | --program-transform-nam | --program-transform-na \
+ | --program-transform-n | --program-transform- \
+ | --program-transform | --program-transfor \
+ | --program-transfo | --program-transf \
+ | --program-trans | --program-tran \
+ | --progr-tra | --program-tr | --program-t)
+ ac_prev=program_transform_name ;;
+ -program-transform-name=* | --program-transform-name=* \
+ | --program-transform-nam=* | --program-transform-na=* \
+ | --program-transform-n=* | --program-transform-=* \
+ | --program-transform=* | --program-transfor=* \
+ | --program-transfo=* | --program-transf=* \
+ | --program-trans=* | --program-tran=* \
+ | --progr-tra=* | --program-tr=* | --program-t=*)
+ program_transform_name=$ac_optarg ;;
+
+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
+ ac_prev=pdfdir ;;
+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
+ pdfdir=$ac_optarg ;;
+
+ -psdir | --psdir | --psdi | --psd | --ps)
+ ac_prev=psdir ;;
+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
+ psdir=$ac_optarg ;;
+
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ silent=yes ;;
+
+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+ ac_prev=sbindir ;;
+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+ | --sbi=* | --sb=*)
+ sbindir=$ac_optarg ;;
+
+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+ | --sharedst | --shareds | --shared | --share | --shar \
+ | --sha | --sh)
+ ac_prev=sharedstatedir ;;
+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+ | --sha=* | --sh=*)
+ sharedstatedir=$ac_optarg ;;
+
+ -site | --site | --sit)
+ ac_prev=site ;;
+ -site=* | --site=* | --sit=*)
+ site=$ac_optarg ;;
+
+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+ ac_prev=srcdir ;;
+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+ srcdir=$ac_optarg ;;
+
+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+ | --syscon | --sysco | --sysc | --sys | --sy)
+ ac_prev=sysconfdir ;;
+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+ sysconfdir=$ac_optarg ;;
+
+ -target | --target | --targe | --targ | --tar | --ta | --t)
+ ac_prev=target_alias ;;
+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+ target_alias=$ac_optarg ;;
+
+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
+ verbose=yes ;;
+
+ -version | --version | --versio | --versi | --vers | -V)
+ ac_init_version=: ;;
+
+ -with-* | --with-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=\$ac_optarg ;;
+
+ -without-* | --without-*)
+ ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ # Reject names that are not valid shell variable names.
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
+
+ --x)
+ # Obsolete; use --with-x.
+ with_x=yes ;;
+
+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+ | --x-incl | --x-inc | --x-in | --x-i)
+ ac_prev=x_includes ;;
+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+ x_includes=$ac_optarg ;;
+
+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+ ac_prev=x_libraries ;;
+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+ x_libraries=$ac_optarg ;;
+
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
+ ;;
+
+ *=*)
+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
+ # Reject names that are not valid shell variable names.
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ eval $ac_envvar=\$ac_optarg
+ export $ac_envvar ;;
+
+ *)
+ # FIXME: should be removed in autoconf 3.0.
+ $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
+ ;;
+
+ esac
+done
+
+if test -n "$ac_prev"; then
+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
+ as_fn_error $? "missing argument to $ac_option"
+fi
+
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
+ esac
+fi
+
+# Check all directory arguments for consistency.
+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
+ datadir sysconfdir sharedstatedir localstatedir includedir \
+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
+ libdir localedir mandir
+do
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
+ case $ac_val in
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
+ esac
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
+done
+
+# There might be people who depend on the old broken behavior: `$host'
+# used to hold the argument of --host etc.
+# FIXME: To remove some day.
+build=$build_alias
+host=$host_alias
+target=$target_alias
+
+# FIXME: To remove some day.
+if test "x$host_alias" != x; then
+ if test "x$build_alias" = x; then
+ cross_compiling=maybe
+ $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
+ If a cross compiler is detected then cross compile mode will be used" >&2
+ elif test "x$build_alias" != "x$host_alias"; then
+ cross_compiling=yes
+ fi
+fi
+
+ac_tool_prefix=
+test -n "$host_alias" && ac_tool_prefix=$host_alias-
+
+test "$silent" = yes && exec 6>/dev/null
+
+
+ac_pwd=`pwd` && test -n "$ac_pwd" &&
+ac_ls_di=`ls -di .` &&
+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
+ as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error $? "pwd does not report name of working directory"
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+ ac_srcdir_defaulted=yes
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ srcdir=$ac_confdir
+ if test ! -r "$srcdir/$ac_unique_file"; then
+ srcdir=..
+ fi
+else
+ ac_srcdir_defaulted=no
+fi
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+ pwd)`
+# When building in place, set srcdir=.
+if test "$ac_abs_confdir" = "$ac_pwd"; then
+ srcdir=.
+fi
+# Remove unnecessary trailing slashes from srcdir.
+# Double slashes in file names in object file debugging info
+# mess up M-x gdb in Emacs.
+case $srcdir in
+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
+esac
+for ac_var in $ac_precious_vars; do
+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_env_${ac_var}_value=\$${ac_var}
+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
+done
+
+#
+# Report the --help message.
+#
+if test "$ac_init_help" = "long"; then
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+\`configure' configures xf86-video-intel 2.15.0 to adapt to many kinds of systems.
+
+Usage: $0 [OPTION]... [VAR=VALUE]...
+
+To assign environment variables (e.g., CC, CFLAGS...), specify them as
+VAR=VALUE. See below for descriptions of some of the useful variables.
+
+Defaults for the options are specified in brackets.
+
+Configuration:
+ -h, --help display this help and exit
+ --help=short display options specific to this package
+ --help=recursive display the short help of all the included packages
+ -V, --version display version information and exit
+ -q, --quiet, --silent do not print \`checking ...' messages
+ --cache-file=FILE cache test results in FILE [disabled]
+ -C, --config-cache alias for \`--cache-file=config.cache'
+ -n, --no-create do not create output files
+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
+
+Installation directories:
+ --prefix=PREFIX install architecture-independent files in PREFIX
+ [$ac_default_prefix]
+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
+ [PREFIX]
+
+By default, \`make install' will install all the files in
+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
+for instance \`--prefix=\$HOME'.
+
+For better control, use the options below.
+
+Fine tuning of the installation directories:
+ --bindir=DIR user executables [EPREFIX/bin]
+ --sbindir=DIR system admin executables [EPREFIX/sbin]
+ --libexecdir=DIR program executables [EPREFIX/libexec]
+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
+ --libdir=DIR object code libraries [EPREFIX/lib]
+ --includedir=DIR C header files [PREFIX/include]
+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
+ --infodir=DIR info documentation [DATAROOTDIR/info]
+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
+ --mandir=DIR man documentation [DATAROOTDIR/man]
+ --docdir=DIR documentation root
+ [DATAROOTDIR/doc/xf86-video-intel]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
+_ACEOF
+
+ cat <<\_ACEOF
+
+Program names:
+ --program-prefix=PREFIX prepend PREFIX to installed program names
+ --program-suffix=SUFFIX append SUFFIX to installed program names
+ --program-transform-name=PROGRAM run sed PROGRAM on installed program names
+
+System types:
+ --build=BUILD configure for building on BUILD [guessed]
+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+ case $ac_init_help in
+ short | recursive ) echo "Configuration of xf86-video-intel 2.15.0:";;
+ esac
+ cat <<\_ACEOF
+
+Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
+ --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
+ --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-maintainer-mode disable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer
+ --enable-silent-rules less verbose build output (undo: `make V=1')
+ --disable-silent-rules verbose build output (undo: `make V=0')
+ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors
+ --enable-strict-compilation
+ Enable all warnings from compiler and make them
+ errors (default: disabled)
+ --enable-static[=PKGS] build static libraries [default=no]
+ --enable-shared[=PKGS] build shared libraries [default=yes]
+ --enable-fast-install[=PKGS]
+ optimize for fast installation [default=yes]
+ --disable-libtool-lock avoid locking (might break parallel builds)
+ --disable-dri Disable DRI support [[default=auto]]
+ --disable-xvmc Disable XvMC support [[default=yes]]
+ --enable-kms-only Assume KMS support [[default=no]]
+ --enable-debug Enables internal debugging [[default=yes]]
+
+Optional Packages:
+ --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
+ --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
+ --with-pic try to use only PIC/non-PIC objects [default=use
+ both]
+ --with-gnu-ld assume the C compiler uses GNU ld [default=no]
+ --with-xorg-module-dir=DIR
+ Default xorg module directory
+ [[default=$libdir/xorg/modules]]
+
+Some influential environment variables:
+ CC C compiler command
+ CFLAGS C compiler flags
+ LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
+ nonstandard directory <lib dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
+ CPP C preprocessor
+ PKG_CONFIG path to pkg-config utility
+ PKG_CONFIG_PATH
+ directories to add to pkg-config's search path
+ PKG_CONFIG_LIBDIR
+ path overriding pkg-config's built-in search path
+ GEN4ASM_CFLAGS
+ C compiler flags for GEN4ASM, overriding pkg-config
+ GEN4ASM_LIBS
+ linker flags for GEN4ASM, overriding pkg-config
+ UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
+ UDEV_LIBS linker flags for UDEV, overriding pkg-config
+ XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
+ XORG_LIBS linker flags for XORG, overriding pkg-config
+ DRM_CFLAGS C compiler flags for DRM, overriding pkg-config
+ DRM_LIBS linker flags for DRM, overriding pkg-config
+ PCIACCESS_CFLAGS
+ C compiler flags for PCIACCESS, overriding pkg-config
+ PCIACCESS_LIBS
+ linker flags for PCIACCESS, overriding pkg-config
+ DRI_CFLAGS C compiler flags for DRI, overriding pkg-config
+ DRI_LIBS linker flags for DRI, overriding pkg-config
+ XVMCLIB_CFLAGS
+ C compiler flags for XVMCLIB, overriding pkg-config
+ XVMCLIB_LIBS
+ linker flags for XVMCLIB, overriding pkg-config
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
+_ACEOF
+ac_status=$?
+fi
+
+if test "$ac_init_help" = "recursive"; then
+ # If there are subdirs, report their specific --help.
+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+ cd "$ac_dir" || { ac_status=$?; continue; }
+ # Check for guested configure.
+ if test -f "$ac_srcdir/configure.gnu"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
+ elif test -f "$ac_srcdir/configure"; then
+ echo &&
+ $SHELL "$ac_srcdir/configure" --help=recursive
+ else
+ $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+ fi || ac_status=$?
+ cd "$ac_pwd" || { ac_status=$?; break; }
+ done
+fi
+
+test -n "$ac_init_help" && exit $ac_status
+if $ac_init_version; then
+ cat <<\_ACEOF
+xf86-video-intel configure 2.15.0
+generated by GNU Autoconf 2.67
+
+Copyright (C) 2010 Free Software Foundation, Inc.
+This configure script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it.
+_ACEOF
+ exit
+fi
+
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
+
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext
+ if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_compile
+
+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
+# ---------------------------------------------
+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
+# accordingly.
+ac_fn_c_check_decl ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ as_decl_name=`echo $2|sed 's/ *(.*//'`
+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
+if eval "test \"\${$3+set}\"" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+#ifndef $as_decl_name
+#ifdef __cplusplus
+ (void) $as_decl_use;
+#else
+ (void) $as_decl_name;
+#endif
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_decl
+
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } > conftest.i && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_cpp
+
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_run
+
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval "test \"\${$3+set}\"" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ rm -f conftest.$ac_objext conftest$ac_exeext
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+ as_fn_set_status $ac_retval
+
+} # ac_fn_c_try_link
+
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval "test \"\${$3+set}\"" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $2 innocuous_$2
+
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $2 (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef $2
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char $2 ();
+/* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+#if defined __stub_$2 || defined __stub___$2
+choke me
+#endif
+
+int
+main ()
+{
+return $2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
+
+} # ac_fn_c_check_func
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by xf86-video-intel $as_me 2.15.0, which was
+generated by GNU Autoconf 2.67. Invocation command line was
+
+ $ $0 $@
+
+_ACEOF
+exec 5>>config.log
+{
+cat <<_ASUNAME
+## --------- ##
+## Platform. ##
+## --------- ##
+
+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
+uname -m = `(uname -m) 2>/dev/null || echo unknown`
+uname -r = `(uname -r) 2>/dev/null || echo unknown`
+uname -s = `(uname -s) 2>/dev/null || echo unknown`
+uname -v = `(uname -v) 2>/dev/null || echo unknown`
+
+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+
+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
+
+_ASUNAME
+
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ $as_echo "PATH: $as_dir"
+ done
+IFS=$as_save_IFS
+
+} >&5
+
+cat >&5 <<_ACEOF
+
+
+## ----------- ##
+## Core tests. ##
+## ----------- ##
+
+_ACEOF
+
+
+# Keep a trace of the command line.
+# Strip out --no-create and --no-recursion so they do not pile up.
+# Strip out --silent because we don't want to record it for future runs.
+# Also quote any args containing shell meta-characters.
+# Make two passes to allow for proper duplicate-argument suppression.
+ac_configure_args=
+ac_configure_args0=
+ac_configure_args1=
+ac_must_keep_next=false
+for ac_pass in 1 2
+do
+ for ac_arg
+ do
+ case $ac_arg in
+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil)
+ continue ;;
+ *\'*)
+ ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append ac_configure_args1 " '$ac_arg'"
+ if test $ac_must_keep_next = true; then
+ ac_must_keep_next=false # Got value, back to normal.
+ else
+ case $ac_arg in
+ *=* | --config-cache | -C | -disable-* | --disable-* \
+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
+ | -with-* | --with-* | -without-* | --without-* | --x)
+ case "$ac_configure_args0 " in
+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
+ esac
+ ;;
+ -* ) ac_must_keep_next=true ;;
+ esac
+ fi
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
+done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset ac_configure_args1;}
+
+# When interrupted or exit'd, cleanup temporary files, and complete
+# config.log. We remove comments because anyway the quotes in there
+# would cause problems or look ugly.
+# WARNING: Use '\'' to represent an apostrophe within the trap.
+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
+trap 'exit_status=$?
+ # Save into config.log some information that might help in debugging.
+ {
+ echo
+
+ $as_echo "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ echo
+ # The following way of writing the cache mishandles newlines in values,
+(
+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+ (set) 2>&1 |
+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ sed -n \
+ "s/'\''/'\''\\\\'\'''\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
+ ;; #(
+ *)
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+)
+ echo
+
+ $as_echo "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ $as_echo "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ $as_echo "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_echo "$as_me: exit $exit_status"
+ } >&5
+ rm -f core *.core core.conftest.* &&
+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+ exit $exit_status
+' 0
+for ac_signal in 1 2 13 15; do
+ trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
+done
+ac_signal=0
+
+# confdefs.h avoids OS command line length limits that DEFS can exceed.
+rm -f -r conftest* confdefs.h
+
+$as_echo "/* confdefs.h */" > confdefs.h
+
+# Predefined preprocessor variables.
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_NAME "$PACKAGE_NAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION "$PACKAGE_VERSION"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_STRING "$PACKAGE_STRING"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
+_ACEOF
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_URL "$PACKAGE_URL"
+_ACEOF
+
+
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ # We do not want a PATH search for config.site.
+ case $CONFIG_SITE in #((
+ -*) ac_site_file1=./$CONFIG_SITE;;
+ */*) ac_site_file1=$CONFIG_SITE;;
+ *) ac_site_file1=./$CONFIG_SITE;;
+ esac
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
+else
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
+fi
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
+do
+ test "x$ac_site_file" = xNONE && continue
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file" \
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5 ; }
+ fi
+done
+
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
+fi
+
+# Check that the precious variables saved in the cache have kept the same
+# value.
+ac_cache_corrupted=false
+for ac_var in $ac_precious_vars; do
+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
+ eval ac_new_set=\$ac_env_${ac_var}_set
+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
+ eval ac_new_val=\$ac_env_${ac_var}_value
+ case $ac_old_set,$ac_new_set in
+ set,)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,);;
+ *)
+ if test "x$ac_old_val" != "x$ac_new_val"; then
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
+ *) ac_arg=$ac_var=$ac_new_val ;;
+ esac
+ case " $ac_configure_args " in
+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
+ fi
+done
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
+fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+
+ac_config_headers="$ac_config_headers config.h"
+
+ac_aux_dir=
+for ac_dir in build-aux "$srcdir"/build-aux; do
+ if test -f "$ac_dir/install-sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install-sh -c"
+ break
+ elif test -f "$ac_dir/install.sh"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/install.sh -c"
+ break
+ elif test -f "$ac_dir/shtool"; then
+ ac_aux_dir=$ac_dir
+ ac_install_sh="$ac_aux_dir/shtool install -c"
+ break
+ fi
+done
+if test -z "$ac_aux_dir"; then
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
+fi
+
+# These three variables are undocumented and unsupported,
+# and are intended to be withdrawn in a future Autoconf release.
+# They can cause serious problems if a builder's source tree is in a directory
+# whose full name contains unusual characters.
+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
+
+
+
+
+# Initialize Automake
+am__api_version='1.11'
+
+# Find a good install program. We prefer a C program (faster),
+# so one script is as good as another. But avoid the broken or
+# incompatible versions:
+# SysV /etc/install, /usr/sbin/install
+# SunOS /usr/etc/install
+# IRIX /sbin/install
+# AIX /bin/install
+# AmigaOS /C/install, which installs bootblocks on floppy discs
+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+# OS/2's system install, which has a completely different semantic
+# ./install, which can be erroneously created by make from ./install.sh.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if test "${ac_cv_path_install+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ # Account for people who put trailing slashes in PATH elements.
+case $as_dir/ in #((
+ ./ | .// | /[cC]/* | \
+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
+ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
+ /usr/ucb/* ) ;;
+ *)
+ # OSF1 and SCO ODT 3.0 have their own names for install.
+ # Don't use installbsd from OSF since it installs stuff as root
+ # by default.
+ for ac_prog in ginstall scoinst install; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
+ if test $ac_prog = install &&
+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # AIX install. It has an incompatible calling convention.
+ :
+ elif test $ac_prog = install &&
+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
+ # program-specific install script used by HP pwplus--don't use.
+ :
+ else
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
+
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+fi
+ if test "${ac_cv_path_install+set}" = set; then
+ INSTALL=$ac_cv_path_install
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for INSTALL within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ INSTALL=$ac_install_sh
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+$as_echo "$INSTALL" >&6; }
+
+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+# It thinks the first close brace ends the variable substitution.
+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+
+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
+
+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
+$as_echo_n "checking whether build environment is sane... " >&6; }
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[\\\"\#\$\&\'\`$am_lf]*)
+ as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
+esac
+case $srcdir in
+ *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
+ as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
+esac
+
+# Do `set' in a subshell so we don't clobber the current shell's
+# arguments. Must try -L first in case configure is actually a
+# symlink; some systems play weird games with the mod time of symlinks
+# (eg FreeBSD returns the mod time of the symlink's containing
+# directory).
+if (
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
+ if test "$*" = "X"; then
+ # -L didn't work.
+ set X `ls -t "$srcdir/configure" conftest.file`
+ fi
+ rm -f conftest.file
+ if test "$*" != "X $srcdir/configure conftest.file" \
+ && test "$*" != "X conftest.file $srcdir/configure"; then
+
+ # If neither matched, then we have a broken ls. This can happen
+ # if, for instance, CONFIG_SHELL is bash and it inherits a
+ # broken ls alias from the environment. This has actually
+ # happened. Such a system could not be considered "sane".
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
+alias in your environment" "$LINENO" 5
+ fi
+
+ test "$2" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ as_fn_error $? "newly created file is older than distributed files!
+Check your system clock" "$LINENO" 5
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+test "$program_prefix" != NONE &&
+ program_transform_name="s&^&$program_prefix&;$program_transform_name"
+# Use a double $ so make ignores it.
+test "$program_suffix" != NONE &&
+ program_transform_name="s&\$&$program_suffix&;$program_transform_name"
+# Double any \ or $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
+fi
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
+else
+ am_missing_run=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
+$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
+fi
+
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+
+# Installed binaries are usually stripped using `strip' when the user
+# run `make install-strip'. However `strip' might not be the right
+# tool to use in cross-compilation environments, therefore Automake
+# will honor the `STRIP' environment variable to overrule this program.
+if test "$cross_compiling" != no; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_STRIP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if test "${ac_cv_path_mkdir+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+ done
+IFS=$as_save_IFS
+
+fi
+
+ test -d ./--version && rmdir ./--version
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
+ else
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ MKDIR_P="$ac_install_sh -d"
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
+
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+ [\\/$]* | ?:[\\/]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+
+for ac_prog in gawk mawk nawk awk
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AWK+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AWK"; then
+ ac_cv_prog_AWK="$AWK" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$AWK" && break
+done
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat >conftest.make <<\_ACEOF
+SHELL = /bin/sh
+all:
+ @echo '@@@%%%=$(MAKE)=@@@%%%'
+_ACEOF
+# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
+case `${MAKE-make} -f conftest.make 2>/dev/null` in
+ *@@@%%%=?*=@@@%%%*)
+ eval ac_cv_prog_make_${ac_make}_set=yes;;
+ *)
+ eval ac_cv_prog_make_${ac_make}_set=no;;
+esac
+rm -f conftest.make
+fi
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
+fi
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
+else
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
+ fi
+fi
+
+# test whether we have cygpath
+if test -z "$CYGPATH_W"; then
+ if (cygpath --version) >/dev/null 2>/dev/null; then
+ CYGPATH_W='cygpath -w'
+ else
+ CYGPATH_W=echo
+ fi
+fi
+
+
+# Define the identity of the package.
+ PACKAGE='xf86-video-intel'
+ VERSION='2.15.0'
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
+_ACEOF
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
+_ACEOF
+
+# Some tools Automake needs.
+
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
+
+
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
+
+
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
+
+
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
+
+
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
+
+# We need awk for the "check" target. The system "awk" is bad on
+# some platforms.
+# Always define AMTAR for backward compatibility.
+
+AMTAR=${AMTAR-"${am_missing_run}tar"}
+
+am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
+$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
+ # Check whether --enable-maintainer-mode was given.
+if test "${enable_maintainer_mode+set}" = set; then :
+ enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
+else
+ USE_MAINTAINER_MODE=yes
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
+$as_echo "$USE_MAINTAINER_MODE" >&6; }
+ if test $USE_MAINTAINER_MODE = yes; then
+ MAINTAINER_MODE_TRUE=
+ MAINTAINER_MODE_FALSE='#'
+else
+ MAINTAINER_MODE_TRUE='#'
+ MAINTAINER_MODE_FALSE=
+fi
+
+ MAINT=$MAINTAINER_MODE_TRUE
+
+
+
+# Support silent build rules, requires at least automake-1.11. Disable
+# by either passing --disable-silent-rules to configure or passing V=1
+# to make
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then :
+ enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in
+yes) AM_DEFAULT_VERBOSITY=0;;
+no) AM_DEFAULT_VERBOSITY=1;;
+*) AM_DEFAULT_VERBOSITY=0;;
+esac
+AM_BACKSLASH='\'
+
+
+# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
+
+
+
+
+
+
+
+
+
+
+
+
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from `make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+ am__include=include
+ am__quote=
+ _am_result=GNU
+ ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ case `$am_make -s -f confmf 2> /dev/null` in #(
+ *the\ am__doit\ target*)
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ ;;
+ esac
+fi
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+$as_echo "$_am_result" >&6; }
+rm -f confinc confmf
+
+# Check whether --enable-dependency-tracking was given.
+if test "${enable_dependency_tracking+set}" = set; then :
+ enableval=$enable_dependency_tracking;
+fi
+
+if test "x$enable_dependency_tracking" != xno; then
+ am_depcomp="$ac_aux_dir/depcomp"
+ AMDEPBACKSLASH='\'
+fi
+ if test "x$enable_dependency_tracking" != xno; then
+ AMDEP_TRUE=
+ AMDEP_FALSE='#'
+else
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
+fi
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_CC"; then
+ ac_ct_CC=$CC
+ # Extract the first word of "gcc", so it can be a program name with args.
+set dummy gcc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
+fi
+
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
+set dummy ${ac_tool_prefix}cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ fi
+fi
+if test -z "$CC"; then
+ # Extract the first word of "cc", so it can be a program name with args.
+set dummy cc; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+ ac_prog_rejected=no
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
+ ac_prog_rejected=yes
+ continue
+ fi
+ ac_cv_prog_CC="cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+if test $ac_prog_rejected = yes; then
+ # We found a bogon in the path, so make sure we never use it.
+ set dummy $ac_cv_prog_CC
+ shift
+ if test $# != 0; then
+ # We chose a different compiler from the bogus one.
+ # However, it has the same basename, so the bogon will be chosen
+ # first if we set CC to just the basename; use the full file name.
+ shift
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
+ fi
+fi
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$CC"; then
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in cl.exe
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CC" && break
+ done
+fi
+if test -z "$CC"; then
+ ac_ct_CC=$CC
+ for ac_prog in cl.exe
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_CC"; then
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+fi
+
+fi
+
+
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5 ; }
+
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ fi
+ rm -f conftest.er1 conftest.err
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
+
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
+# Try to create an executable without -o first, disregard a.out.
+# It will help us diagnose broken compilers, and finding out an intuition
+# of exeext.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
+
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link_default") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
+# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
+# in a Makefile. We should not override ac_cv_exeext if it was cached,
+# so that the user can short-circuit this test for compilers unknown to
+# Autoconf.
+for ac_file in $ac_files ''
+do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
+ ;;
+ [ab].out )
+ # We found the default executable, but exeext='' is most
+ # certainly right.
+ break;;
+ *.* )
+ if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
+ then :; else
+ ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ fi
+ # We set ac_cv_exeext here because the later test for it is not
+ # safe: cross compilers may not add the suffix if given an `-o'
+ # argument, so we may need to know it at that point already.
+ # Even if this section looks crufty: it has the advantage of
+ # actually working.
+ break;;
+ * )
+ break;;
+ esac
+done
+test "$ac_cv_exeext" = no && ac_cv_exeext=
+
+else
+ ac_file=''
+fi
+if test -z "$ac_file"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+$as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5 ; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ # If both `conftest.exe' and `conftest' are `present' (well, observable)
+# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
+# work properly (i.e., refer to `conftest.exe'), while it won't with
+# `rm'.
+for ac_file in conftest.exe conftest conftest.*; do
+ test -f "$ac_file" || continue
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
+done
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details" "$LINENO" 5 ; }
+fi
+rm -f conftest conftest$ac_cv_exeext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
+
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main ()
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+ { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if { ac_try='./conftest$ac_cv_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5 ; }
+ fi
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
+
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if test "${ac_cv_objext+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.o conftest.obj
+if { { ac_try="$ac_compile"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then :
+ for ac_file in conftest.o conftest.obj conftest.*; do
+ test -f "$ac_file" || continue;
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details" "$LINENO" 5 ; }
+fi
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if test "${ac_cv_c_compiler_gnu+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_compiler_gnu=yes
+else
+ ac_compiler_gnu=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
+else
+ GCC=
+fi
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if test "${ac_cv_prog_cc_g+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_save_c_werror_flag=$ac_c_werror_flag
+ ac_c_werror_flag=yes
+ ac_cv_prog_cc_g=no
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+else
+ CFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+else
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ ac_c_werror_flag=$ac_save_c_werror_flag
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$ac_cv_prog_cc_g" >&6; }
+if test "$ac_test_CFLAGS" = set; then
+ CFLAGS=$ac_save_CFLAGS
+elif test $ac_cv_prog_cc_g = yes; then
+ if test "$GCC" = yes; then
+ CFLAGS="-g -O2"
+ else
+ CFLAGS="-g"
+ fi
+else
+ if test "$GCC" = yes; then
+ CFLAGS="-O2"
+ else
+ CFLAGS=
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if test "${ac_cv_prog_cc_c89+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
+struct buf { int x; };
+FILE * (*rcsopen) (struct buf *, struct stat *, int);
+static char *e (p, i)
+ char **p;
+ int i;
+{
+ return p[i];
+}
+static char *f (char * (*g) (char **, int), char **p, ...)
+{
+ char *s;
+ va_list v;
+ va_start (v,p);
+ s = g (p, va_arg (v,int));
+ va_end (v);
+ return s;
+}
+
+/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
+ function prototypes and stuff, but not '\xHH' hex character constants.
+ These don't provoke an error unfortunately, instead are silently treated
+ as 'x'. The following induces an error, until -std is added to get
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
+ array size at least. It's necessary to write '\x00'==0 to get something
+ that's true only with -std. */
+int osf4_cc_array ['\x00' == 0 ? 1 : -1];
+
+/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
+ inside strings and character constants. */
+#define FOO(x) 'x'
+int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
+
+int test (int i, double x);
+struct s1 {int (*f) (int a);};
+struct s2 {int (*f) (double a);};
+int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
+int argc;
+char **argv;
+int
+main ()
+{
+return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c89=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
+
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+depcc="$CC" am_compiler_list=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
+ # We make a subdir and do the tests there. Otherwise we can end up
+ # making bogus files that we don't know about and never remove. For
+ # instance it was reported that on HP-UX the gcc test will end up
+ # making a dummy file named `D' -- because `-MD' means `put the output
+ # in D'.
+ mkdir conftest.dir
+ # Copy depcomp to subdir because otherwise we won't find it if we're
+ # using a relative directory.
+ cp "$am_depcomp" conftest.dir
+ cd conftest.dir
+ # We will build objects and dependencies in a subdirectory because
+ # it helps to detect inapplicable dependency modes. For instance
+ # both Tru64's cc and ICC support -MD to output dependencies as a
+ # side effect of compilation, but ICC will put the dependencies in
+ # the current directory while Tru64 will put them in the object
+ # directory.
+ mkdir sub
+
+ am_cv_CC_dependencies_compiler_type=none
+ if test "$am_compiler_list" = ""; then
+ am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
+ fi
+ am__universal=false
+ case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac
+
+ for depmode in $am_compiler_list; do
+ # Setup a source with many dependencies, because some compilers
+ # like to wrap large dependency lists on column 80 (with \), and
+ # we should not choose a depcomp mode which is confused by this.
+ #
+ # We need to recreate these files for each test, as the compiler may
+ # overwrite some of them when testing with obscure command lines.
+ # This happens at least with the AIX C compiler.
+ : > sub/conftest.c
+ for i in 1 2 3 4 5 6; do
+ echo '#include "conftst'$i'.h"' >> sub/conftest.c
+ # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
+ # Solaris 8's {/usr,}/bin/sh.
+ touch sub/conftst$i.h
+ done
+ echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
+
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
+ # mode. It turns out that the SunPro C++ compiler does not properly
+ # handle `-M -o', and we need to detect this. Also, some Intel
+ # versions had trouble with output in subdirs
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ nosideeffect)
+ # after this tag, mechanisms are not by side-effect, so they'll
+ # only be used when explicitly requested
+ if test "x$enable_dependency_tracking" = xyes; then
+ continue
+ else
+ break
+ fi
+ ;;
+ msvisualcpp | msvcmsys)
+ # This compiler won't grok `-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
+ # icc doesn't choke on unknown options, it will just issue warnings
+ # or remarks (even with -Werror). So we grep stderr for any message
+ # that says an option was ignored or not supported.
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
+ # icc: Command line warning: ignoring option '-M'; no argument required
+ # The diagnosis changed in icc 8.0:
+ # icc: Command line remark: option '-MP' not supported
+ if (grep 'ignoring option' conftest.err ||
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
+ am_cv_CC_dependencies_compiler_type=$depmode
+ break
+ fi
+ fi
+ done
+
+ cd ..
+ rm -rf conftest.dir
+else
+ am_cv_CC_dependencies_compiler_type=none
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
+
+ if
+ test "x$enable_dependency_tracking" != xno \
+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
+ am__fastdepCC_TRUE=
+ am__fastdepCC_FALSE='#'
+else
+ am__fastdepCC_TRUE='#'
+ am__fastdepCC_FALSE=
+fi
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
+$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
+if test "${ac_cv_prog_cc_c99+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c99=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <wchar.h>
+#include <stdio.h>
+
+// Check varargs macros. These examples are taken from C99 6.10.3.5.
+#define debug(...) fprintf (stderr, __VA_ARGS__)
+#define showlist(...) puts (#__VA_ARGS__)
+#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
+static void
+test_varargs_macros (void)
+{
+ int x = 1234;
+ int y = 5678;
+ debug ("Flag");
+ debug ("X = %d\n", x);
+ showlist (The first, second, and third items.);
+ report (x>y, "x is %d but y is %d", x, y);
+}
+
+// Check long long types.
+#define BIG64 18446744073709551615ull
+#define BIG32 4294967295ul
+#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
+#if !BIG_OK
+ your preprocessor is broken;
+#endif
+#if BIG_OK
+#else
+ your preprocessor is broken;
+#endif
+static long long int bignum = -9223372036854775807LL;
+static unsigned long long int ubignum = BIG64;
+
+struct incomplete_array
+{
+ int datasize;
+ double data[];
+};
+
+struct named_init {
+ int number;
+ const wchar_t *name;
+ double average;
+};
+
+typedef const char *ccp;
+
+static inline int
+test_restrict (ccp restrict text)
+{
+ // See if C++-style comments work.
+ // Iterate through items via the restricted pointer.
+ // Also check for declarations in for loops.
+ for (unsigned int i = 0; *(text+i) != '\0'; ++i)
+ continue;
+ return 0;
+}
+
+// Check varargs and va_copy.
+static void
+test_varargs (const char *format, ...)
+{
+ va_list args;
+ va_start (args, format);
+ va_list args_copy;
+ va_copy (args_copy, args);
+
+ const char *str;
+ int number;
+ float fnumber;
+
+ while (*format)
+ {
+ switch (*format++)
+ {
+ case 's': // string
+ str = va_arg (args_copy, const char *);
+ break;
+ case 'd': // int
+ number = va_arg (args_copy, int);
+ break;
+ case 'f': // float
+ fnumber = va_arg (args_copy, double);
+ break;
+ default:
+ break;
+ }
+ }
+ va_end (args_copy);
+ va_end (args);
+}
+
+int
+main ()
+{
+
+ // Check bool.
+ _Bool success = false;
+
+ // Check restrict.
+ if (test_restrict ("String literal") == 0)
+ success = true;
+ char *restrict newvar = "Another string";
+
+ // Check varargs.
+ test_varargs ("s, d' f .", "string", 65, 34.234);
+ test_varargs_macros ();
+
+ // Check flexible array members.
+ struct incomplete_array *ia =
+ malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
+ ia->datasize = 10;
+ for (int i = 0; i < ia->datasize; ++i)
+ ia->data[i] = i * 1.234;
+
+ // Check named initializers.
+ struct named_init ni = {
+ .number = 34,
+ .name = L"Test wide string",
+ .average = 543.34343,
+ };
+
+ ni.number = 58;
+
+ int dynamic_array[ni.number];
+ dynamic_array[ni.number - 1] = 543;
+
+ // work around unused variable warnings
+ return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
+ || dynamic_array[ni.number - 1] != 543);
+
+ ;
+ return 0;
+}
+_ACEOF
+for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c99=$ac_arg
+fi
+rm -f core conftest.err conftest.$ac_objext
+ test "x$ac_cv_prog_cc_c99" != "xno" && break
+done
+rm -f conftest.$ac_ext
+CC=$ac_save_CC
+
+fi
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c99" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c99"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
+$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c99" != xno; then :
+
+fi
+
+
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
+fi
+if test -z "$CPP"; then
+ if test "${ac_cv_prog_CPP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ # Double quotes because CPP needs to be expanded
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
+ do
+ ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+ break
+fi
+
+ done
+ ac_cv_prog_CPP=$CPP
+
+fi
+ CPP=$ac_cv_prog_CPP
+else
+ ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+$as_echo "$CPP" >&6; }
+ac_preproc_ok=false
+for ac_c_preproc_warn_flag in '' yes
+do
+ # Use a header file that comes with gcc, so configuring glibc
+ # with a fresh cross-compiler works.
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> exists even on freestanding compilers.
+ # On the NeXT, cc -E runs the code through the compiler's parser,
+ # not just through cpp. "Syntax error" is here to catch this case.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+
+else
+ # Broken: fails on valid input.
+continue
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
+fi
+rm -f conftest.err conftest.i conftest.$ac_ext
+
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5 ; }
+fi
+
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if test "${ac_cv_path_GREP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$GREP"; then
+ ac_path_GREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in grep ggrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
+# Check for GNU ac_path_GREP and select it if it is found.
+ # Check for GNU $ac_path_GREP
+case `"$ac_path_GREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'GREP' >> "conftest.nl"
+ "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_GREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_GREP="$ac_path_GREP"
+ ac_path_GREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_GREP=$GREP
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if test "${ac_cv_path_EGREP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ ac_path_EGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in egrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
+# Check for GNU ac_path_EGREP and select it if it is found.
+ # Check for GNU $ac_path_EGREP
+case `"$ac_path_EGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'EGREP' >> "conftest.nl"
+ "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_EGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_EGREP="$ac_path_EGREP"
+ ac_path_EGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_EGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if test "${ac_cv_header_stdc+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stdc=yes
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+
+if test $ac_cv_header_stdc = yes; then
+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <string.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
+
+fi
+
+if test $ac_cv_header_stdc = yes; then
+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then :
+ :
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#if ((' ' & 0x0FF) == 0x020)
+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+#else
+# define ISLOWER(c) \
+ (('a' <= (c) && (c) <= 'i') \
+ || ('j' <= (c) && (c) <= 'r') \
+ || ('s' <= (c) && (c) <= 'z'))
+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
+#endif
+
+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+int
+main ()
+{
+ int i;
+ for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i))
+ || toupper (i) != TOUPPER (i))
+ return 2;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+
+else
+ ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
+
+fi
+
+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
+ inttypes.h stdint.h unistd.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
+fi
+
+done
+
+
+
+
+
+
+
+
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
+set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+PKG_CONFIG=$ac_cv_path_PKG_CONFIG
+if test -n "$PKG_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
+$as_echo "$PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_path_PKG_CONFIG"; then
+ ac_pt_PKG_CONFIG=$PKG_CONFIG
+ # Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $ac_pt_PKG_CONFIG in
+ [\\/]* | ?:[\\/]*)
+ ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
+ ;;
+ *)
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+fi
+ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
+if test -n "$ac_pt_PKG_CONFIG"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
+$as_echo "$ac_pt_PKG_CONFIG" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_pt_PKG_CONFIG" = x; then
+ PKG_CONFIG=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ PKG_CONFIG=$ac_pt_PKG_CONFIG
+ fi
+else
+ PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
+fi
+
+fi
+if test -n "$PKG_CONFIG"; then
+ _pkg_min_version=0.9.0
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
+$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
+ if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ PKG_CONFIG=""
+ fi
+fi
+# Make sure we can run config.sub.
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if test "${ac_cv_build+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
+esac
+build=$ac_cv_build
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if test "${ac_cv_host+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
+esac
+host=$ac_cv_host
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
+if test "${ac_cv_path_SED+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
+ for ac_i in 1 2 3 4 5 6 7; do
+ ac_script="$ac_script$as_nl$ac_script"
+ done
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
+ { ac_script=; unset ac_script;}
+ if test -z "$SED"; then
+ ac_path_SED_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
+# Check for GNU ac_path_SED and select it if it is found.
+ # Check for GNU $ac_path_SED
+case `"$ac_path_SED" --version 2>&1` in
+*GNU*)
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo '' >> "conftest.nl"
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_SED_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_SED="$ac_path_SED"
+ ac_path_SED_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_SED_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_SED"; then
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
+ fi
+else
+ ac_cv_path_SED=$SED
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
+$as_echo "$ac_cv_path_SED" >&6; }
+ SED="$ac_cv_path_SED"
+ rm -f conftest.sed
+
+
+
+
+
+if test "x$GCC" = xyes ; then
+ CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
+-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
+-Wbad-function-cast -Wformat=2"
+ case `$CC -dumpversion` in
+ 3.4.* | 4.*)
+ CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
+ ;;
+ esac
+else
+ ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
+if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
+ SUNCC="yes"
+else
+ SUNCC="no"
+fi
+
+ if test "x$SUNCC" = "xyes"; then
+ CWARNFLAGS="-v"
+ fi
+fi
+
+
+
+# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
+
+
+
+# Check whether --enable-strict-compilation was given.
+if test "${enable_strict_compilation+set}" = set; then :
+ enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
+else
+ STRICT_COMPILE=no
+fi
+
+if test "x$STRICT_COMPILE" = "xyes"; then
+ ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
+if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then :
+ SUNCC="yes"
+else
+ SUNCC="no"
+fi
+
+ ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
+if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then :
+ INTELCC="yes"
+else
+ INTELCC="no"
+fi
+
+ if test "x$GCC" = xyes ; then
+ STRICT_CFLAGS="-pedantic -Werror"
+ elif test "x$SUNCC" = "xyes"; then
+ STRICT_CFLAGS="-errwarn"
+ elif test "x$INTELCC" = "xyes"; then
+ STRICT_CFLAGS="-Werror"
+ fi
+fi
+CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
+_ACEOF
+
+ PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
+ if test "x$PVM" = "x"; then
+ PVM="0"
+ fi
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION_MINOR $PVM
+_ACEOF
+
+ PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
+ if test "x$PVP" = "x"; then
+ PVP="0"
+ fi
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_VERSION_PATCHLEVEL $PVP
+_ACEOF
+
+
+
+CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
+mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
+|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
+echo 'git directory not found: installing possibly empty changelog.' >&2)"
+
+
+
+
+macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
+INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
+mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
+|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
+echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
+
+
+
+
+
+
+if test x$APP_MAN_SUFFIX = x ; then
+ APP_MAN_SUFFIX=1
+fi
+if test x$APP_MAN_DIR = x ; then
+ APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
+fi
+
+if test x$LIB_MAN_SUFFIX = x ; then
+ LIB_MAN_SUFFIX=3
+fi
+if test x$LIB_MAN_DIR = x ; then
+ LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
+fi
+
+if test x$FILE_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) FILE_MAN_SUFFIX=4 ;;
+ *) FILE_MAN_SUFFIX=5 ;;
+ esac
+fi
+if test x$FILE_MAN_DIR = x ; then
+ FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
+fi
+
+if test x$MISC_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) MISC_MAN_SUFFIX=5 ;;
+ *) MISC_MAN_SUFFIX=7 ;;
+ esac
+fi
+if test x$MISC_MAN_DIR = x ; then
+ MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
+fi
+
+if test x$DRIVER_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) DRIVER_MAN_SUFFIX=7 ;;
+ *) DRIVER_MAN_SUFFIX=4 ;;
+ esac
+fi
+if test x$DRIVER_MAN_DIR = x ; then
+ DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
+fi
+
+if test x$ADMIN_MAN_SUFFIX = x ; then
+ case $host_os in
+ solaris*) ADMIN_MAN_SUFFIX=1m ;;
+ *) ADMIN_MAN_SUFFIX=8 ;;
+ esac
+fi
+if test x$ADMIN_MAN_DIR = x ; then
+ ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+XORG_MAN_PAGE="X Version 11"
+
+MAN_SUBSTS="\
+ -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
+ -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
+ -e 's|__xservername__|Xorg|g' \
+ -e 's|__xconfigfile__|xorg.conf|g' \
+ -e 's|__projectroot__|\$(prefix)|g' \
+ -e 's|__apploaddir__|\$(appdefaultdir)|g' \
+ -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
+ -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
+ -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
+ -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
+ -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
+ -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
+
+
+
+# Check whether --enable-silent-rules was given.
+if test "${enable_silent_rules+set}" = set; then :
+ enableval=$enable_silent_rules;
+fi
+
+case $enable_silent_rules in
+yes) AM_DEFAULT_VERBOSITY=0;;
+no) AM_DEFAULT_VERBOSITY=1;;
+*) AM_DEFAULT_VERBOSITY=0;;
+esac
+AM_BACKSLASH='\'
+
+
+
+# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
+
+
+# Initialize libtool
+
+case `pwd` in
+ *\ * | *\ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
+$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
+esac
+
+
+
+macro_version='2.2.6b'
+macro_revision='1.3017'
+
+
+
+
+
+
+
+
+
+
+
+
+
+ltmain="$ac_aux_dir/ltmain.sh"
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
+$as_echo_n "checking for a sed that does not truncate output... " >&6; }
+if test "${ac_cv_path_SED+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
+ for ac_i in 1 2 3 4 5 6 7; do
+ ac_script="$ac_script$as_nl$ac_script"
+ done
+ echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
+ { ac_script=; unset ac_script;}
+ if test -z "$SED"; then
+ ac_path_SED_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
+# Check for GNU ac_path_SED and select it if it is found.
+ # Check for GNU $ac_path_SED
+case `"$ac_path_SED" --version 2>&1` in
+*GNU*)
+ ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo '' >> "conftest.nl"
+ "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_SED_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_SED="$ac_path_SED"
+ ac_path_SED_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_SED_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_SED"; then
+ as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
+ fi
+else
+ ac_cv_path_SED=$SED
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
+$as_echo "$ac_cv_path_SED" >&6; }
+ SED="$ac_cv_path_SED"
+ rm -f conftest.sed
+
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+
+
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
+$as_echo_n "checking for fgrep... " >&6; }
+if test "${ac_cv_path_FGREP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
+ then ac_cv_path_FGREP="$GREP -F"
+ else
+ if test -z "$FGREP"; then
+ ac_path_FGREP_found=false
+ # Loop through the user's path and test for each of PROGNAME-LIST
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in fgrep; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
+ { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
+# Check for GNU ac_path_FGREP and select it if it is found.
+ # Check for GNU $ac_path_FGREP
+case `"$ac_path_FGREP" --version 2>&1` in
+*GNU*)
+ ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
+*)
+ ac_count=0
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_echo 'FGREP' >> "conftest.nl"
+ "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
+ diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ if test $ac_count -gt ${ac_path_FGREP_max-0}; then
+ # Best one so far, save it but keep looking for a better one
+ ac_cv_path_FGREP="$ac_path_FGREP"
+ ac_path_FGREP_max=$ac_count
+ fi
+ # 10*(2^10) chars as input seems more than enough
+ test $ac_count -gt 10 && break
+ done
+ rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
+esac
+
+ $ac_path_FGREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_FGREP"; then
+ as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_FGREP=$FGREP
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
+$as_echo "$ac_cv_path_FGREP" >&6; }
+ FGREP="$ac_cv_path_FGREP"
+
+
+test -z "$GREP" && GREP=grep
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-gnu-ld was given.
+if test "${with_gnu_ld+set}" = set; then :
+ withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
+else
+ with_gnu_ld=no
+fi
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
+$as_echo_n "checking for ld used by $CC... " >&6; }
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [\\/]* | ?:[\\/]*)
+ re_direlt='/[^/][^/]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
+$as_echo_n "checking for GNU ld... " >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
+$as_echo_n "checking for non-GNU ld... " >&6; }
+fi
+if test "${lt_cv_path_LD+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi
+fi
+
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
+$as_echo "$LD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
+$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
+if test "${lt_cv_prog_gnu_ld+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ # I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
+$as_echo "$lt_cv_prog_gnu_ld" >&6; }
+with_gnu_ld=$lt_cv_prog_gnu_ld
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
+$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
+if test "${lt_cv_path_NM+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ : ${lt_cv_path_NM=no}
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
+$as_echo "$lt_cv_path_NM" >&6; }
+if test "$lt_cv_path_NM" != "no"; then
+ NM="$lt_cv_path_NM"
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ if test -n "$ac_tool_prefix"; then
+ for ac_prog in "dumpbin -symbols" "link -dump -symbols"
+ do
+ # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
+set dummy $ac_tool_prefix$ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DUMPBIN"; then
+ ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DUMPBIN=$ac_cv_prog_DUMPBIN
+if test -n "$DUMPBIN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
+$as_echo "$DUMPBIN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$DUMPBIN" && break
+ done
+fi
+if test -z "$DUMPBIN"; then
+ ac_ct_DUMPBIN=$DUMPBIN
+ for ac_prog in "dumpbin -symbols" "link -dump -symbols"
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DUMPBIN"; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
+if test -n "$ac_ct_DUMPBIN"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
+$as_echo "$ac_ct_DUMPBIN" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$ac_ct_DUMPBIN" && break
+done
+
+ if test "x$ac_ct_DUMPBIN" = x; then
+ DUMPBIN=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DUMPBIN=$ac_ct_DUMPBIN
+ fi
+fi
+
+
+ if test "$DUMPBIN" != ":"; then
+ NM="$DUMPBIN"
+ fi
+fi
+test -z "$NM" && NM=nm
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
+$as_echo_n "checking the name lister ($NM) interface... " >&6; }
+if test "${lt_cv_nm_interface+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:5446: $ac_compile\"" >&5)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:5449: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&5
+ (eval echo "\"\$as_me:5452: output\"" >&5)
+ cat conftest.out >&5
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
+$as_echo "$lt_cv_nm_interface" >&6; }
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
+$as_echo_n "checking whether ln -s works... " >&6; }
+LN_S=$as_ln_s
+if test "$LN_S" = "ln -s"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
+$as_echo "no, using $LN_S" >&6; }
+fi
+
+# find the maximum length of command line arguments
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
+$as_echo_n "checking the maximum length of command line arguments... " >&6; }
+if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw* | cegcc*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8 ; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on
+ # massive amounts of additional arguments before passing them to the
+ # linker. It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+
+fi
+
+if test -n $lt_cv_sys_max_cmd_len ; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
+$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
+$as_echo "none" >&6; }
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+
+
+
+
+
+
+: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
+$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
+# Try some XSI features
+xsi_shell=no
+( _lt_dummy="a/b/c"
+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
+ = c,a/b,, \
+ && eval 'test $(( 1 + 1 )) -eq 2 \
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
+ && xsi_shell=yes
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
+$as_echo "$xsi_shell" >&6; }
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
+$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
+lt_shell_append=no
+( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
+ >/dev/null 2>&1 \
+ && lt_shell_append=yes
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
+$as_echo "$lt_shell_append" >&6; }
+
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+
+
+
+
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
+$as_echo_n "checking for $LD option to reload object files... " >&6; }
+if test "${lt_cv_ld_reload_flag+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_reload_flag='-r'
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
+$as_echo "$lt_cv_ld_reload_flag" >&6; }
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
+set dummy ${ac_tool_prefix}objdump; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OBJDUMP"; then
+ ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OBJDUMP=$ac_cv_prog_OBJDUMP
+if test -n "$OBJDUMP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
+$as_echo "$OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OBJDUMP"; then
+ ac_ct_OBJDUMP=$OBJDUMP
+ # Extract the first word of "objdump", so it can be a program name with args.
+set dummy objdump; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OBJDUMP"; then
+ ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_OBJDUMP="objdump"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
+if test -n "$ac_ct_OBJDUMP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
+$as_echo "$ac_ct_OBJDUMP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OBJDUMP" = x; then
+ OBJDUMP="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OBJDUMP=$ac_ct_OBJDUMP
+ fi
+else
+ OBJDUMP="$ac_cv_prog_OBJDUMP"
+fi
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+
+
+
+
+
+
+
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
+$as_echo_n "checking how to recognize dependent libraries... " >&6; }
+if test "${lt_cv_deplibs_check_method+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[4-9]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[45]*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[3-9]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
+$as_echo "$lt_cv_deplibs_check_method" >&6; }
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_AR+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$AR"; then
+ ac_cv_prog_AR="$AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AR="${ac_tool_prefix}ar"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+AR=$ac_cv_prog_AR
+if test -n "$AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
+$as_echo "$AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_AR"; then
+ ac_ct_AR=$AR
+ # Extract the first word of "ar", so it can be a program name with args.
+set dummy ar; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_AR"; then
+ ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_AR="ar"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_AR=$ac_cv_prog_ac_ct_AR
+if test -n "$ac_ct_AR"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
+$as_echo "$ac_ct_AR" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_AR" = x; then
+ AR="false"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ AR=$ac_ct_AR
+ fi
+else
+ AR="$ac_cv_prog_AR"
+fi
+
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+
+
+
+
+
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
+set dummy ${ac_tool_prefix}strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_STRIP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$STRIP"; then
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_STRIP"; then
+ ac_ct_STRIP=$STRIP
+ # Extract the first word of "strip", so it can be a program name with args.
+set dummy strip; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_STRIP"; then
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
+fi
+
+test -z "$STRIP" && STRIP=:
+
+
+
+
+
+
+if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_RANLIB+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$RANLIB"; then
+ ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+RANLIB=$ac_cv_prog_RANLIB
+if test -n "$RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
+$as_echo "$RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_RANLIB"; then
+ ac_ct_RANLIB=$RANLIB
+ # Extract the first word of "ranlib", so it can be a program name with args.
+set dummy ranlib; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_RANLIB"; then
+ ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_RANLIB="ranlib"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
+if test -n "$ac_ct_RANLIB"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
+$as_echo "$ac_ct_RANLIB" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_RANLIB" = x; then
+ RANLIB=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ RANLIB=$ac_ct_RANLIB
+ fi
+else
+ RANLIB="$ac_cv_prog_RANLIB"
+fi
+
+test -z "$RANLIB" && RANLIB=:
+
+
+
+
+
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
+$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
+if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[BCDEGRST]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[BCDT]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[ABCDGISTW]'
+ ;;
+hpux*)
+ if test "$host_cpu" = ia64; then
+ symcode='[ABCDEGRST]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[BCDEGRST]'
+ ;;
+osf*)
+ symcode='[BCDEGQRST]'
+ ;;
+solaris*)
+ symcode='[BDRT]'
+ ;;
+sco3.2v5*)
+ symcode='[DT]'
+ ;;
+sysv4.2uw2*)
+ symcode='[DT]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[ABDT]'
+ ;;
+sysv4)
+ symcode='[DFNSTU]'
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[ABCDGIRSTW]' ;;
+esac
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function
+ # and D for any global variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK '"\
+" {last_section=section; section=\$ 3};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
+ (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<_LT_EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&5
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&5
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
+ fi
+ else
+ echo "$progname: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+
+fi
+
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
+$as_echo "failed" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
+$as_echo "ok" >&6; }
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --enable-libtool-lock was given.
+if test "${enable_libtool_lock+set}" = set; then :
+ enableval=$enable_libtool_lock;
+fi
+
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '#line 6657 "configure"' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
+$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
+if test "${lt_cv_cc_needs_belf+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ lt_cv_cc_needs_belf=yes
+else
+ lt_cv_cc_needs_belf=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
+$as_echo "$lt_cv_cc_needs_belf" >&6; }
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks="$enable_libtool_lock"
+
+
+ case $host_os in
+ rhapsody* | darwin*)
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
+set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$DSYMUTIL"; then
+ ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+DSYMUTIL=$ac_cv_prog_DSYMUTIL
+if test -n "$DSYMUTIL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
+$as_echo "$DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_DSYMUTIL"; then
+ ac_ct_DSYMUTIL=$DSYMUTIL
+ # Extract the first word of "dsymutil", so it can be a program name with args.
+set dummy dsymutil; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_DSYMUTIL"; then
+ ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
+if test -n "$ac_ct_DSYMUTIL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
+$as_echo "$ac_ct_DSYMUTIL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_DSYMUTIL" = x; then
+ DSYMUTIL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ DSYMUTIL=$ac_ct_DSYMUTIL
+ fi
+else
+ DSYMUTIL="$ac_cv_prog_DSYMUTIL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
+set dummy ${ac_tool_prefix}nmedit; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_NMEDIT+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$NMEDIT"; then
+ ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+NMEDIT=$ac_cv_prog_NMEDIT
+if test -n "$NMEDIT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
+$as_echo "$NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_NMEDIT"; then
+ ac_ct_NMEDIT=$NMEDIT
+ # Extract the first word of "nmedit", so it can be a program name with args.
+set dummy nmedit; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_NMEDIT"; then
+ ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_NMEDIT="nmedit"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
+if test -n "$ac_ct_NMEDIT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
+$as_echo "$ac_ct_NMEDIT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_NMEDIT" = x; then
+ NMEDIT=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ NMEDIT=$ac_ct_NMEDIT
+ fi
+else
+ NMEDIT="$ac_cv_prog_NMEDIT"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
+set dummy ${ac_tool_prefix}lipo; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_LIPO+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$LIPO"; then
+ ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+LIPO=$ac_cv_prog_LIPO
+if test -n "$LIPO"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
+$as_echo "$LIPO" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_LIPO"; then
+ ac_ct_LIPO=$LIPO
+ # Extract the first word of "lipo", so it can be a program name with args.
+set dummy lipo; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_LIPO"; then
+ ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_LIPO="lipo"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
+if test -n "$ac_ct_LIPO"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
+$as_echo "$ac_ct_LIPO" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_LIPO" = x; then
+ LIPO=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ LIPO=$ac_ct_LIPO
+ fi
+else
+ LIPO="$ac_cv_prog_LIPO"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OTOOL+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OTOOL"; then
+ ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL=$ac_cv_prog_OTOOL
+if test -n "$OTOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
+$as_echo "$OTOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL"; then
+ ac_ct_OTOOL=$OTOOL
+ # Extract the first word of "otool", so it can be a program name with args.
+set dummy otool; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OTOOL"; then
+ ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_OTOOL="otool"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
+if test -n "$ac_ct_OTOOL"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
+$as_echo "$ac_ct_OTOOL" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL" = x; then
+ OTOOL=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL=$ac_ct_OTOOL
+ fi
+else
+ OTOOL="$ac_cv_prog_OTOOL"
+fi
+
+ if test -n "$ac_tool_prefix"; then
+ # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
+set dummy ${ac_tool_prefix}otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_OTOOL64+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$OTOOL64"; then
+ ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+OTOOL64=$ac_cv_prog_OTOOL64
+if test -n "$OTOOL64"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
+$as_echo "$OTOOL64" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+fi
+if test -z "$ac_cv_prog_OTOOL64"; then
+ ac_ct_OTOOL64=$OTOOL64
+ # Extract the first word of "otool64", so it can be a program name with args.
+set dummy otool64; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$ac_ct_OTOOL64"; then
+ ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_OTOOL64="otool64"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
+if test -n "$ac_ct_OTOOL64"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
+$as_echo "$ac_ct_OTOOL64" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+ if test "x$ac_ct_OTOOL64" = x; then
+ OTOOL64=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ OTOOL64=$ac_ct_OTOOL64
+ fi
+else
+ OTOOL64="$ac_cv_prog_OTOOL64"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
+$as_echo_n "checking for -single_module linker flag... " >&6; }
+if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&5
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&5
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
+$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
+$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
+if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ lt_cv_ld_exported_symbols_list=yes
+else
+ lt_cv_ld_exported_symbols_list=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
+$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
+ case $host_os in
+ rhapsody* | darwin1.[012])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[012]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ if test "$DSYMUTIL" != ":"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+
+for ac_header in dlfcn.h
+do :
+ ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
+"
+if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_DLFCN_H 1
+_ACEOF
+
+fi
+
+done
+
+
+
+# Set options
+# Check whether --enable-static was given.
+if test "${enable_static+set}" = set; then :
+ enableval=$enable_static; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_static=no
+fi
+
+
+
+
+
+
+
+
+
+
+ enable_dlopen=no
+
+
+ enable_win32_dll=no
+
+
+ # Check whether --enable-shared was given.
+if test "${enable_shared+set}" = set; then :
+ enableval=$enable_shared; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_shared=yes
+fi
+
+
+
+
+
+
+
+
+
+
+
+# Check whether --with-pic was given.
+if test "${with_pic+set}" = set; then :
+ withval=$with_pic; pic_mode="$withval"
+else
+ pic_mode=default
+fi
+
+
+test -z "$pic_mode" && pic_mode=default
+
+
+
+
+
+
+
+ # Check whether --enable-fast-install was given.
+if test "${enable_fast_install+set}" = set; then :
+ enableval=$enable_fast_install; p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac
+else
+ enable_fast_install=yes
+fi
+
+
+
+
+
+
+
+
+
+
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+test -z "$LN_S" && LN_S="ln -s"
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
+$as_echo_n "checking for objdir... " >&6; }
+if test "${lt_cv_objdir+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
+$as_echo "$lt_cv_objdir" >&6; }
+objdir=$lt_cv_objdir
+
+
+
+
+
+cat >>confdefs.h <<_ACEOF
+#define LT_OBJDIR "$lt_cv_objdir/"
+_ACEOF
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+for cc_temp in $compiler""; do
+ case $cc_temp in
+ compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
+ distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
+$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/${ac_tool_prefix}file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+
+
+
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
+$as_echo_n "checking for file... " >&6; }
+if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ case $MAGIC_CMD in
+[\\/*] | ?:[\\/]*)
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/file; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/file"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac
+fi
+
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
+$as_echo "$MAGIC_CMD" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ else
+ MAGIC_CMD=:
+ fi
+fi
+
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+
+lt_save_CC="$CC"
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+objext=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+
+
+
+
+
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+
+lt_prog_compiler_no_builtin_flag=
+
+if test "$GCC" = yes; then
+ lt_prog_compiler_no_builtin_flag=' -fno-builtin'
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
+$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
+if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_rtti_exceptions=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="-fno-rtti -fno-exceptions"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:7918: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:7922: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_rtti_exceptions=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
+$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
+
+if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
+ lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
+else
+ :
+fi
+
+fi
+
+
+
+
+
+
+ lt_prog_compiler_wl=
+lt_prog_compiler_pic=
+lt_prog_compiler_static=
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
+$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
+
+ if test "$GCC" = yes; then
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_static='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ lt_prog_compiler_pic='-fno-common'
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[3-9]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ lt_prog_compiler_can_build_shared=no
+ enable_shared=no
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ lt_prog_compiler_pic=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ lt_prog_compiler_pic='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ lt_prog_compiler_wl='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ lt_prog_compiler_static='-Bstatic'
+ else
+ lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ lt_prog_compiler_pic='-DDLL_EXPORT'
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ lt_prog_compiler_pic='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ lt_prog_compiler_static='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ lt_prog_compiler_wl='-Wl,'
+ # PIC (with -KPIC) is the default.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ # old Intel for x86_64 which still supported -KPIC.
+ ecc*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fPIC'
+ lt_prog_compiler_static='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='--shared'
+ lt_prog_compiler_static='--static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-fpic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+ ccc*)
+ lt_prog_compiler_wl='-Wl,'
+ # All Alpha code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+ xl*)
+ # IBM XL C 8.0/Fortran 10.1 on PPC
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-qpic'
+ lt_prog_compiler_static='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ lt_prog_compiler_wl=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ lt_prog_compiler_pic='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ lt_prog_compiler_wl='-Wl,'
+ # All OSF/1 code is PIC.
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ rdos*)
+ lt_prog_compiler_static='-non_shared'
+ ;;
+
+ solaris*)
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95*)
+ lt_prog_compiler_wl='-Qoption ld ';;
+ *)
+ lt_prog_compiler_wl='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ lt_prog_compiler_wl='-Qoption ld '
+ lt_prog_compiler_pic='-PIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ lt_prog_compiler_pic='-Kconform_pic'
+ lt_prog_compiler_static='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_pic='-KPIC'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ unicos*)
+ lt_prog_compiler_wl='-Wl,'
+ lt_prog_compiler_can_build_shared=no
+ ;;
+
+ uts4*)
+ lt_prog_compiler_pic='-pic'
+ lt_prog_compiler_static='-Bstatic'
+ ;;
+
+ *)
+ lt_prog_compiler_can_build_shared=no
+ ;;
+ esac
+ fi
+
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ lt_prog_compiler_pic=
+ ;;
+ *)
+ lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
+ ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
+$as_echo "$lt_prog_compiler_pic" >&6; }
+
+
+
+
+
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$lt_prog_compiler_pic"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
+$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
+if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_pic_works=no
+ ac_outfile=conftest.$ac_objext
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:8257: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&5
+ echo "$as_me:8261: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_pic_works=yes
+ fi
+ fi
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
+$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
+ case $lt_prog_compiler_pic in
+ "" | " "*) ;;
+ *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
+ esac
+else
+ lt_prog_compiler_pic=
+ lt_prog_compiler_can_build_shared=no
+fi
+
+fi
+
+
+
+
+
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
+$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
+if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_static_works=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&5
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ else
+ lt_cv_prog_compiler_static_works=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
+$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
+
+if test x"$lt_cv_prog_compiler_static_works" = xyes; then
+ :
+else
+ lt_prog_compiler_static=
+fi
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:8362: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:8366: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
+$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
+if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ lt_cv_prog_compiler_c_o=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:8417: $lt_compile\"" >&5)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&5
+ echo "$as_me:8421: \$? = $ac_status" >&5
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ lt_cv_prog_compiler_c_o=yes
+ fi
+ fi
+ chmod u+w . 2>&5
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
+$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
+
+
+
+
+hard_links="nottested"
+if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
+$as_echo_n "checking if we can lock with hard links... " >&6; }
+ hard_links=yes
+ $RM conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
+$as_echo "$hard_links" >&6; }
+ if test "$hard_links" = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
+$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
+$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
+
+ runpath_var=
+ allow_undefined_flag=
+ always_export_symbols=no
+ archive_cmds=
+ archive_expsym_cmds=
+ compiler_needs_object=no
+ enable_shared_with_static_runtimes=no
+ export_dynamic_flag_spec=
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ hardcode_automatic=no
+ hardcode_direct=no
+ hardcode_direct_absolute=no
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_flag_spec_ld=
+ hardcode_libdir_separator=
+ hardcode_minus_L=no
+ hardcode_shlibpath_var=unsupported
+ inherit_rpath=no
+ link_all_deplibs=unknown
+ module_cmds=
+ module_expsym_cmds=
+ old_archive_from_new_cmds=
+ old_archive_from_expsyms_cmds=
+ thread_safe_flag_spec=
+ whole_archive_flag_spec=
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ include_expsyms=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ linux* | k*bsd*-gnu)
+ link_all_deplibs=no
+ ;;
+ esac
+
+ ld_shlibs=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ export_dynamic_flag_spec='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ whole_archive_flag_spec=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>&1` in
+ *GNU\ gold*) supports_anon_versioning=yes ;;
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[3-9]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ ;;
+ esac
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ allow_undefined_flag=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
+ # as there is no search path for DLLs.
+ hardcode_libdir_flag_spec='-L$libdir'
+ allow_undefined_flag=unsupported
+ always_export_symbols=no
+ enable_shared_with_static_runtimes=yes
+ export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ interix[3-9]*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
+ tmp_diet=no
+ if test "$host_os" = linux-dietlibc; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test "$tmp_diet" = no
+ then
+ tmp_addflag=
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
+ whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ whole_archive_flag_spec=
+ tmp_sharedflag='--shared' ;;
+ xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ compiler_needs_object=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test "x$supports_anon_versioning" = xyes; then
+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ xlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
+ hardcode_libdir_flag_spec=
+ hardcode_libdir_flag_spec_ld='-rpath $libdir'
+ archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
+ ld_shlibs=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ ld_shlibs=no
+ fi
+ ;;
+ esac
+
+ if test "$ld_shlibs" = no; then
+ runpath_var=
+ hardcode_libdir_flag_spec=
+ export_dynamic_flag_spec=
+ whole_archive_flag_spec=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ allow_undefined_flag=unsupported
+ always_export_symbols=yes
+ archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ hardcode_minus_L=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ hardcode_direct=unsupported
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ archive_cmds=''
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ file_list_spec='${wl}-f,'
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[012]|aix4.[012].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ hardcode_direct=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ hardcode_minus_L=yes
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_libdir_separator=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ link_all_deplibs=no
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ export_dynamic_flag_spec='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ always_export_symbols=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ allow_undefined_flag='-berok'
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
+ allow_undefined_flag="-z nodefs"
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+
+ hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ no_undefined_flag=' ${wl}-bernotok'
+ allow_undefined_flag=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ whole_archive_flag_spec='$convenience'
+ archive_cmds_need_lc=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ archive_expsym_cmds=''
+ ;;
+ m68k)
+ archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ ;;
+ esac
+ ;;
+
+ bsdi[45]*)
+ export_dynamic_flag_spec=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ hardcode_libdir_flag_spec=' '
+ allow_undefined_flag=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ old_archive_from_new_cmds='true'
+ # FIXME: Should let the user specify the lib program.
+ old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ fix_srcfile_path='`cygpath -w "$srcfile"`'
+ enable_shared_with_static_runtimes=yes
+ ;;
+
+ darwin* | rhapsody*)
+
+
+ archive_cmds_need_lc=no
+ hardcode_direct=no
+ hardcode_automatic=yes
+ hardcode_shlibpath_var=unsupported
+ whole_archive_flag_spec=''
+ link_all_deplibs=yes
+ allow_undefined_flag="$_lt_dar_allow_undefined"
+ case $cc_basename in
+ ifort*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test "$_lt_dar_can_shared" = "yes"; then
+ output_verbose_link_cmd=echo
+ archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+
+ else
+ ld_shlibs=no
+ fi
+
+ ;;
+
+ dgux*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ freebsd1*)
+ ld_shlibs=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ export_dynamic_flag_spec='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_flag_spec_ld='+b $libdir'
+ hardcode_libdir_separator=:
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ export_dynamic_flag_spec='${wl}-E'
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
+ hardcode_libdir_separator=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ hardcode_direct=no
+ hardcode_shlibpath_var=no
+ ;;
+ *)
+ hardcode_direct=yes
+ hardcode_direct_absolute=yes
+ export_dynamic_flag_spec='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ hardcode_minus_L=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+int foo(void) {}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS="$save_LDFLAGS"
+ else
+ archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ inherit_rpath=yes
+ link_all_deplibs=yes
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ newsos6)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ hardcode_shlibpath_var=no
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ hardcode_direct=yes
+ hardcode_shlibpath_var=no
+ hardcode_direct_absolute=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ export_dynamic_flag_spec='${wl}-E'
+ else
+ case $host_os in
+ openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
+ archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-R$libdir'
+ ;;
+ *)
+ archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ ld_shlibs=no
+ fi
+ ;;
+
+ os2*)
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_minus_L=yes
+ allow_undefined_flag=unsupported
+ archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_separator=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ else
+ allow_undefined_flag=' -expect_unresolved \*'
+ archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ hardcode_libdir_flag_spec='-rpath $libdir'
+ fi
+ archive_cmds_need_lc='no'
+ hardcode_libdir_separator=:
+ ;;
+
+ solaris*)
+ no_undefined_flag=' -z defs'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+ ;;
+ *)
+ wlarc='${wl}'
+ archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ hardcode_libdir_flag_spec='-R$libdir'
+ hardcode_shlibpath_var=no
+ case $host_os in
+ solaris2.[0-5] | solaris2.[0-5].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ link_all_deplibs=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_direct=yes
+ hardcode_minus_L=yes
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ reload_cmds='$CC -r -o $output$reload_objs'
+ hardcode_direct=no
+ ;;
+ motorola)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_direct=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
+ sysv4.3*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ export_dynamic_flag_spec='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_shlibpath_var=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ ld_shlibs=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
+ no_undefined_flag='${wl}-z,text'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ no_undefined_flag='${wl}-z,text'
+ allow_undefined_flag='${wl}-z,nodefs'
+ archive_cmds_need_lc=no
+ hardcode_shlibpath_var=no
+ hardcode_libdir_flag_spec='${wl}-R,$libdir'
+ hardcode_libdir_separator=':'
+ link_all_deplibs=yes
+ export_dynamic_flag_spec='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ hardcode_libdir_flag_spec='-L$libdir'
+ hardcode_shlibpath_var=no
+ ;;
+
+ *)
+ ld_shlibs=no
+ ;;
+ esac
+
+ if test x$host_vendor = xsni; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ export_dynamic_flag_spec='${wl}-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
+$as_echo "$ld_shlibs" >&6; }
+test "$ld_shlibs" = no && can_build_shared=no
+
+with_gnu_ld=$with_gnu_ld
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$archive_cmds_need_lc" in
+x|xyes)
+ # Assume -lc should be added
+ archive_cmds_need_lc=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $archive_cmds in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
+$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
+ (eval $ac_compile) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$lt_prog_compiler_wl
+ pic_flag=$lt_prog_compiler_pic
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$allow_undefined_flag
+ allow_undefined_flag=
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
+ (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ then
+ archive_cmds_need_lc=no
+ else
+ archive_cmds_need_lc=yes
+ fi
+ allow_undefined_flag=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
+$as_echo "$archive_cmds_need_lc" >&6; }
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
+$as_echo_n "checking dynamic linker characteristics... " >&6; }
+
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[lt_foo]++; }
+ if (lt_freq[lt_foo] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[4-9]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[01] | aix4.[01].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ ;;
+ m68k)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[45]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[123]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[01]* | freebsdelf3.[01]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
+ freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+interix[3-9]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # Some binutils ld are patched to set DT_RUNPATH
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
+ LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
+ shlibpath_overrides_runpath=yes
+fi
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsdelf*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='NetBSD ld.elf_so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+*nto* | *qnx*)
+ version_type=qnx
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='ldqnx.so'
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[89] | openbsd2.[89].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
+$as_echo "$dynamic_linker" >&6; }
+test "$dynamic_linker" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+fi
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
+$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
+hardcode_action=
+if test -n "$hardcode_libdir_flag_spec" ||
+ test -n "$runpath_var" ||
+ test "X$hardcode_automatic" = "Xyes" ; then
+
+ # We can hardcode non-existent directories.
+ if test "$hardcode_direct" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
+ test "$hardcode_minus_L" != no; then
+ # Linking always hardcodes the temporary library directory.
+ hardcode_action=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ hardcode_action=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ hardcode_action=unsupported
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
+$as_echo "$hardcode_action" >&6; }
+
+if test "$hardcode_action" = relink ||
+ test "$inherit_rpath" = yes; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+
+
+
+
+
+
+ if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32* | cegcc*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dl_dlopen=yes
+else
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+
+fi
+
+ ;;
+
+ *)
+ ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
+if test "x$ac_cv_func_shl_load" = x""yes; then :
+ lt_cv_dlopen="shl_load"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
+$as_echo_n "checking for shl_load in -ldld... " >&6; }
+if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char shl_load ();
+int
+main ()
+{
+return shl_load ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dld_shl_load=yes
+else
+ ac_cv_lib_dld_shl_load=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
+$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
+if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
+ lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
+else
+ ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
+if test "x$ac_cv_func_dlopen" = x""yes; then :
+ lt_cv_dlopen="dlopen"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
+$as_echo_n "checking for dlopen in -ldl... " >&6; }
+if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldl $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dl_dlopen=yes
+else
+ ac_cv_lib_dl_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
+$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
+if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
+$as_echo_n "checking for dlopen in -lsvld... " >&6; }
+if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lsvld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dlopen ();
+int
+main ()
+{
+return dlopen ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_svld_dlopen=yes
+else
+ ac_cv_lib_svld_dlopen=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
+$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
+if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
+ lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
+$as_echo_n "checking for dld_link in -ldld... " >&6; }
+if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-ldld $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+/* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+ builtin and then its argument prototype would still apply. */
+#ifdef __cplusplus
+extern "C"
+#endif
+char dld_link ();
+int
+main ()
+{
+return dld_link ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_dld_dld_link=yes
+else
+ ac_cv_lib_dld_dld_link=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
+$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
+if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
+ lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+
+fi
+
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
+$as_echo_n "checking whether a program can dlopen itself... " >&6; }
+if test "${lt_cv_dlopen_self+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+#line 10801 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
+$as_echo "$lt_cv_dlopen_self" >&6; }
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
+$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
+if test "${lt_cv_dlopen_self_static+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test "$cross_compiling" = yes; then :
+ lt_cv_dlopen_self_static=cross
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+#line 10897 "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}
+_LT_EOF
+ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
+ (eval $ac_link) 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&5 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
+ x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
+ esac
+ else :
+ # compilation failed
+ lt_cv_dlopen_self_static=no
+ fi
+fi
+rm -fr conftest*
+
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
+$as_echo "$lt_cv_dlopen_self_static" >&6; }
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+striplib=
+old_striplib=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
+$as_echo_n "checking whether stripping libraries is possible... " >&6; }
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ fi
+ ;;
+ *)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ ;;
+ esac
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+ # Report which library types will actually be built
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
+$as_echo_n "checking if libtool supports shared libraries... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
+$as_echo "$can_build_shared" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
+$as_echo_n "checking whether to build shared libraries... " >&6; }
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[4-9]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
+$as_echo "$enable_shared" >&6; }
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
+$as_echo_n "checking whether to build static libraries... " >&6; }
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
+$as_echo "$enable_static" >&6; }
+
+
+
+
+fi
+ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+CC="$lt_save_CC"
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ac_config_commands="$ac_config_commands libtool"
+
+
+
+
+# Only expand once:
+
+
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GEN4ASM" >&5
+$as_echo_n "checking for GEN4ASM... " >&6; }
+
+if test -n "$GEN4ASM_CFLAGS"; then
+ pkg_cv_GEN4ASM_CFLAGS="$GEN4ASM_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GEN4ASM_CFLAGS=`$PKG_CONFIG --cflags "intel-gen4asm >= 1.1" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$GEN4ASM_LIBS"; then
+ pkg_cv_GEN4ASM_LIBS="$GEN4ASM_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"intel-gen4asm >= 1.1\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "intel-gen4asm >= 1.1") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_GEN4ASM_LIBS=`$PKG_CONFIG --libs "intel-gen4asm >= 1.1" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "intel-gen4asm >= 1.1" 2>&1`
+ else
+ GEN4ASM_PKG_ERRORS=`$PKG_CONFIG --print-errors "intel-gen4asm >= 1.1" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$GEN4ASM_PKG_ERRORS" >&5
+
+ gen4asm=no
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ gen4asm=no
+else
+ GEN4ASM_CFLAGS=$pkg_cv_GEN4ASM_CFLAGS
+ GEN4ASM_LIBS=$pkg_cv_GEN4ASM_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ gen4asm=yes
+fi
+ if test x$gen4asm = xyes; then
+ HAVE_GEN4ASM_TRUE=
+ HAVE_GEN4ASM_FALSE='#'
+else
+ HAVE_GEN4ASM_TRUE='#'
+ HAVE_GEN4ASM_FALSE=
+fi
+
+
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
+$as_echo_n "checking for UDEV... " >&6; }
+
+if test -n "$UDEV_CFLAGS"; then
+ pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$UDEV_LIBS"; then
+ pkg_cv_UDEV_LIBS="$UDEV_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev" 2>&1`
+ else
+ UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$UDEV_PKG_ERRORS" >&5
+
+ udev=no
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ udev=no
+else
+ UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
+ UDEV_LIBS=$pkg_cv_UDEV_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ udev=yes
+fi
+if test x"$udev" = xyes; then
+
+$as_echo "#define HAVE_UDEV 1" >>confdefs.h
+
+fi
+
+
+
+# Define a configure option for an alternate module directory
+
+# Check whether --with-xorg-module-dir was given.
+if test "${with_xorg_module_dir+set}" = set; then :
+ withval=$with_xorg_module_dir; moduledir="$withval"
+else
+ moduledir="$libdir/xorg/modules"
+fi
+
+
+# Check whether --enable-dri was given.
+if test "${enable_dri+set}" = set; then :
+ enableval=$enable_dri; DRI="$enableval"
+else
+ DRI=auto
+fi
+
+
+# Check whether --enable-xvmc was given.
+if test "${enable_xvmc+set}" = set; then :
+ enableval=$enable_xvmc; XVMC="$enableval"
+else
+ XVMC=yes
+fi
+
+
+# Check whether --enable-kms-only was given.
+if test "${enable_kms_only+set}" = set; then :
+ enableval=$enable_kms_only; KMS_ONLY="$enableval"
+else
+ KMS_ONLY=no
+fi
+
+
+# Check whether --enable-debug was given.
+if test "${enable_debug+set}" = set; then :
+ enableval=$enable_debug; DEBUG="$enableval"
+else
+ DEBUG=yes
+fi
+
+
+# Store the list of server defined optional extensions in REQUIRED_MODULES
+
+
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include "xorg-server.h"
+#if !defined RANDR
+#error RANDR not defined
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ _EXT_CHECK=yes
+else
+ _EXT_CHECK=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$SAVE_CFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
+$as_echo_n "checking if RANDR is defined... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
+$as_echo "$_EXT_CHECK" >&6; }
+ if test "$_EXT_CHECK" != no; then
+ REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
+ fi
+
+
+
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include "xorg-server.h"
+#if !defined RENDER
+#error RENDER not defined
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ _EXT_CHECK=yes
+else
+ _EXT_CHECK=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$SAVE_CFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
+$as_echo_n "checking if RENDER is defined... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
+$as_echo "$_EXT_CHECK" >&6; }
+ if test "$_EXT_CHECK" != no; then
+ REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
+ fi
+
+
+
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include "xorg-server.h"
+#if !defined XF86DRI
+#error XF86DRI not defined
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ _EXT_CHECK=yes
+else
+ _EXT_CHECK=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$SAVE_CFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XF86DRI is defined" >&5
+$as_echo_n "checking if XF86DRI is defined... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
+$as_echo "$_EXT_CHECK" >&6; }
+ if test "$_EXT_CHECK" != no; then
+ REQUIRED_MODULES="$REQUIRED_MODULES xextproto x11"
+ fi
+
+
+
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+#include "xorg-server.h"
+#if !defined DPMSExtension
+#error DPMSExtension not defined
+#endif
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ _EXT_CHECK=yes
+else
+ _EXT_CHECK=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$SAVE_CFLAGS"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
+$as_echo_n "checking if DPMSExtension is defined... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
+$as_echo "$_EXT_CHECK" >&6; }
+ if test "$_EXT_CHECK" != no; then
+ REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
+ fi
+
+
+# Obtain compiler/linker options for the driver dependencies
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
+$as_echo_n "checking for XORG... " >&6; }
+
+if test -n "$XORG_CFLAGS"; then
+ pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$XORG_LIBS"; then
+ pkg_cv_XORG_LIBS="$XORG_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
+ else
+ XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$XORG_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
+
+$XORG_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables XORG_CFLAGS
+and XORG_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details." "$LINENO" 5
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables XORG_CFLAGS
+and XORG_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5 ; }
+else
+ XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
+ XORG_LIBS=$pkg_cv_XORG_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRM" >&5
+$as_echo_n "checking for DRM... " >&6; }
+
+if test -n "$DRM_CFLAGS"; then
+ pkg_cv_DRM_CFLAGS="$DRM_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.23\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.23") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.4.23" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$DRM_LIBS"; then
+ pkg_cv_DRM_LIBS="$DRM_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.4.23\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "libdrm >= 2.4.23") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DRM_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.4.23" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ DRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdrm >= 2.4.23" 2>&1`
+ else
+ DRM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdrm >= 2.4.23" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$DRM_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (libdrm >= 2.4.23) were not met:
+
+$DRM_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables DRM_CFLAGS
+and DRM_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details." "$LINENO" 5
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables DRM_CFLAGS
+and DRM_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5 ; }
+else
+ DRM_CFLAGS=$pkg_cv_DRM_CFLAGS
+ DRM_LIBS=$pkg_cv_DRM_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
+$as_echo_n "checking for PCIACCESS... " >&6; }
+
+if test -n "$PCIACCESS_CFLAGS"; then
+ pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$PCIACCESS_LIBS"; then
+ pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.10" 2>&1`
+ else
+ PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.10" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$PCIACCESS_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (pciaccess >= 0.10) were not met:
+
+$PCIACCESS_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables PCIACCESS_CFLAGS
+and PCIACCESS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details." "$LINENO" 5
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables PCIACCESS_CFLAGS
+and PCIACCESS_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5 ; }
+else
+ PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
+ PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+
+sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+
+save_CFLAGS="$CFLAGS"
+CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
+CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
+$as_echo_n "checking whether to include DRI support... " >&6; }
+if test x$DRI != xno; then
+ as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
+$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
+if eval "test \"\${$as_ac_File+set}\"" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ test "$cross_compiling" = yes &&
+ as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
+if test -r "${sdkdir}/dri.h"; then
+ eval "$as_ac_File=yes"
+else
+ eval "$as_ac_File=no"
+fi
+fi
+eval ac_res=\$$as_ac_File
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
+ have_dri_h="yes"
+else
+ have_dri_h="no"
+fi
+
+ as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
+$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
+if eval "test \"\${$as_ac_File+set}\"" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ test "$cross_compiling" = yes &&
+ as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
+if test -r "${sdkdir}/sarea.h"; then
+ eval "$as_ac_File=yes"
+else
+ eval "$as_ac_File=no"
+fi
+fi
+eval ac_res=\$$as_ac_File
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
+ have_sarea_h="yes"
+else
+ have_sarea_h="no"
+fi
+
+ as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
+$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
+if eval "test \"\${$as_ac_File+set}\"" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ test "$cross_compiling" = yes &&
+ as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
+if test -r "${sdkdir}/dristruct.h"; then
+ eval "$as_ac_File=yes"
+else
+ eval "$as_ac_File=no"
+fi
+fi
+eval ac_res=\$$as_ac_File
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
+ have_dristruct_h="yes"
+else
+ have_dristruct_h="no"
+fi
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
+$as_echo_n "checking whether to include DRI support... " >&6; }
+if test x$DRI = xauto; then
+ if test "$have_dri_h" = yes -a \
+ "$have_sarea_h" = yes -a \
+ "$have_dristruct_h" = yes; then
+ DRI="yes"
+ else
+ DRI="no"
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
+$as_echo "$DRI" >&6; }
+CFLAGS="$save_CFLAGS $DEBUGFLAGS"
+
+ if test x$DRI = xyes; then
+ DRI_TRUE=
+ DRI_FALSE='#'
+else
+ DRI_TRUE='#'
+ DRI_FALSE=
+fi
+
+if test "$DRI" = yes; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
+$as_echo_n "checking for DRI... " >&6; }
+
+if test -n "$DRI_CFLAGS"; then
+ pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "xf86driproto" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$DRI_LIBS"; then
+ pkg_cv_DRI_LIBS="$DRI_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xf86driproto\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xf86driproto") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "xf86driproto" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xf86driproto" 2>&1`
+ else
+ DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors "xf86driproto" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$DRI_PKG_ERRORS" >&5
+
+ as_fn_error $? "Package requirements (xf86driproto) were not met:
+
+$DRI_PKG_ERRORS
+
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
+installed software in a non-standard prefix.
+
+Alternatively, you may set the environment variables DRI_CFLAGS
+and DRI_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details." "$LINENO" 5
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
+is in your PATH or set the PKG_CONFIG environment variable to the full
+path to pkg-config.
+
+Alternatively, you may set the environment variables DRI_CFLAGS
+and DRI_LIBS to avoid the need to call pkg-config.
+See the pkg-config man page for more details.
+
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.
+See \`config.log' for more details" "$LINENO" 5 ; }
+else
+ DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
+ DRI_LIBS=$pkg_cv_DRI_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+fi
+
+$as_echo "#define XF86DRI 1" >>confdefs.h
+
+
+$as_echo "#define XF86DRI_DEVEL 1" >>confdefs.h
+
+fi
+
+if test "$XVMC" = yes; then
+
+pkg_failed=no
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XVMCLIB" >&5
+$as_echo_n "checking for XVMCLIB... " >&6; }
+
+if test -n "$XVMCLIB_CFLAGS"; then
+ pkg_cv_XVMCLIB_CFLAGS="$XVMCLIB_CFLAGS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XVMCLIB_CFLAGS=`$PKG_CONFIG --cflags "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+if test -n "$XVMCLIB_LIBS"; then
+ pkg_cv_XVMCLIB_LIBS="$XVMCLIB_LIBS"
+ elif test -n "$PKG_CONFIG"; then
+ if test -n "$PKG_CONFIG" && \
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux\""; } >&5
+ ($PKG_CONFIG --exists --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; then
+ pkg_cv_XVMCLIB_LIBS=`$PKG_CONFIG --libs "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>/dev/null`
+else
+ pkg_failed=yes
+fi
+ else
+ pkg_failed=untried
+fi
+
+
+
+if test $pkg_failed = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
+ _pkg_short_errors_supported=yes
+else
+ _pkg_short_errors_supported=no
+fi
+ if test $_pkg_short_errors_supported = yes; then
+ XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
+ else
+ XVMCLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux" 2>&1`
+ fi
+ # Put the nasty error message in config.log where it belongs
+ echo "$XVMCLIB_PKG_ERRORS" >&5
+
+ XVMC=no
+elif test $pkg_failed = untried; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ XVMC=no
+else
+ XVMCLIB_CFLAGS=$pkg_cv_XVMCLIB_CFLAGS
+ XVMCLIB_LIBS=$pkg_cv_XVMCLIB_LIBS
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ XVMC=yes
+fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XvMC support" >&5
+$as_echo_n "checking whether to include XvMC support... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XVMC" >&5
+$as_echo "$XVMC" >&6; }
+ if test x$XVMC = xyes; then
+ XVMC_TRUE=
+ XVMC_FALSE='#'
+else
+ XVMC_TRUE='#'
+ XVMC_FALSE=
+fi
+
+if test "x$XVMC" = xyes; then
+
+$as_echo "#define ENABLE_XVMC 1" >>confdefs.h
+
+fi
+
+ if test x$KMS_ONLY = xyes; then
+ KMS_ONLY_TRUE=
+ KMS_ONLY_FALSE='#'
+else
+ KMS_ONLY_TRUE='#'
+ KMS_ONLY_FALSE=
+fi
+
+if test "x$KMS_ONLY" = xyes; then
+
+$as_echo "#define KMS_ONLY 1" >>confdefs.h
+
+fi
+
+if test "x$DEBUG" = xno; then
+
+$as_echo "#define NDEBUG 1" >>confdefs.h
+
+fi
+
+DRIVER_NAME=intel
+
+
+
+ac_config_files="$ac_config_files Makefile uxa/Makefile src/Makefile src/xvmc/Makefile src/xvmc/shader/Makefile src/xvmc/shader/mc/Makefile src/xvmc/shader/vld/Makefile src/legacy/Makefile src/legacy/i810/Makefile src/legacy/i810/xvmc/Makefile man/Makefile src/render_program/Makefile"
+
+cat >confcache <<\_ACEOF
+# This file is a shell script that caches the results of configure
+# tests run on this system so they can be shared between configure
+# scripts and configure runs, see configure's option --config-cache.
+# It is not useful on other systems. If it contains results you don't
+# want to keep, you may remove or edit it.
+#
+# config.status only pays attention to the cache file if you give it
+# the --recheck option to rerun configure.
+#
+# `ac_cv_env_foo' variables (set or unset) will be overridden when
+# loading this file, other *unset* `ac_cv_foo' will be assigned the
+# following values.
+
+_ACEOF
+
+# The following way of writing the cache mishandles newlines in values,
+# but we know of no workaround that is simple, portable, and efficient.
+# So, we kill variables containing newlines.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+(
+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
+ eval ac_val=\$$ac_var
+ case $ac_val in #(
+ *${as_nl}*)
+ case $ac_var in #(
+ *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
+ (set) 2>&1 |
+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
+ *${as_nl}ac_space=\ *)
+ # `set' does not quote correctly, so add quotes: double-quote
+ # substitution turns \\\\ into \\, and sed turns \\ into \.
+ sed -n \
+ "s/'/'\\\\''/g;
+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
+ ;; #(
+ *)
+ # `set' quotes correctly as required by POSIX, so do not add quotes.
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
+ ;;
+ esac |
+ sort
+) |
+ sed '
+ /^ac_cv_env_/b end
+ t clear
+ :clear
+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+ t end
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ test "x$cache_file" != "x/dev/null" &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ cat confcache >$cache_file
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
+ fi
+fi
+rm -f confcache
+
+test "x$prefix" = xNONE && prefix=$ac_default_prefix
+# Let make expand exec_prefix.
+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+
+DEFS=-DHAVE_CONFIG_H
+
+ac_libobjs=
+ac_ltlibobjs=
+U=
+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
+ # 1. Remove the extension, and $U if already installed.
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
+ # will be set to the directory where LIBOBJS objects are built.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+ if test -n "$EXEEXT"; then
+ am__EXEEXT_TRUE=
+ am__EXEEXT_FALSE='#'
+else
+ am__EXEEXT_TRUE='#'
+ am__EXEEXT_FALSE=
+fi
+
+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
+ as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
+ as_fn_error $? "conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
+ as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${HAVE_GEN4ASM_TRUE}" && test -z "${HAVE_GEN4ASM_FALSE}"; then
+ as_fn_error $? "conditional \"HAVE_GEN4ASM\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
+ as_fn_error $? "conditional \"DRI\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${XVMC_TRUE}" && test -z "${XVMC_FALSE}"; then
+ as_fn_error $? "conditional \"XVMC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+if test -z "${KMS_ONLY_TRUE}" && test -z "${KMS_ONLY_FALSE}"; then
+ as_fn_error $? "conditional \"KMS_ONLY\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
+
+: ${CONFIG_STATUS=./config.status}
+ac_write_fail=0
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate the current configuration.
+# Compiler output produced by configure, useful for debugging
+# configure, is in config.log if it exists.
+
+debug=false
+ac_cs_recheck=false
+ac_cs_silent=false
+
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
+fi
+
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
+fi
+
+
+# IFS
+# We need space, tab and new line, in precisely that order. Quoting is
+# there to prevent editors from complaining about space-tab.
+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
+# splitting by setting IFS to empty value.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+case $0 in #((
+ *[\\/]* ) as_myself=$0 ;;
+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
+ done
+IFS=$as_save_IFS
+
+ ;;
+esac
+# We did not find ourselves, most probably we were run as `sh COMMAND'
+# in which case we are not to be found in the path.
+if test "x$as_myself" = x; then
+ as_myself=$0
+fi
+if test ! -f "$as_myself"; then
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
+done
+PS1='$ '
+PS2='> '
+PS4='+ '
+
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
+
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+if expr a : '\(a\)' >/dev/null 2>&1 &&
+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
+ as_expr=expr
+else
+ as_expr=false
+fi
+
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
+ as_basename=basename
+else
+ as_basename=false
+fi
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# Avoid depending upon Character Ranges.
+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
+as_cr_digits='0123456789'
+as_cr_alnum=$as_cr_Letters$as_cr_digits
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ if ln -s conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s='ln -s'
+ # ... but there are two gotchas:
+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
+ # In both cases, we have to default to `cp -p'.
+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
+ as_ln_s='cp -p'
+ elif ln conf$$.file conf$$ 2>/dev/null; then
+ as_ln_s=ln
+ else
+ as_ln_s='cp -p'
+ fi
+else
+ as_ln_s='cp -p'
+fi
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
+ *) as_qdir=$as_dir;;
+ esac
+ as_dirs="'$as_qdir' $as_dirs"
+ as_dir=`$as_dirname -- "$as_dir" ||
+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_dir" : 'X\(//\)[^/]' \| \
+ X"$as_dir" : 'X\(//\)$' \| \
+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_dir" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ test -d "$as_dir" && break
+ done
+ test -z "$as_dirs" || eval "mkdir $as_dirs"
+ } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+if mkdir -p . 2>/dev/null; then
+ as_mkdir_p='mkdir -p "$as_dir"'
+else
+ test -d ./-p && rmdir ./-p
+ as_mkdir_p=false
+fi
+
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
+
+# Sed expression to map a string onto a valid CPP name.
+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
+
+# Sed expression to map a string onto a valid variable name.
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
+
+
+exec 6>&1
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# Save the log message, to keep $0 and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.
+ac_log="
+This file was extended by xf86-video-intel $as_me 2.15.0, which was
+generated by GNU Autoconf 2.67. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+ CONFIG_HEADERS = $CONFIG_HEADERS
+ CONFIG_LINKS = $CONFIG_LINKS
+ CONFIG_COMMANDS = $CONFIG_COMMANDS
+ $ $0 $@
+
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
+_ACEOF
+
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
+
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
+
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ac_cs_usage="\
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
+
+Usage: $0 [OPTION]... [TAG]...
+
+ -h, --help print this help, then exit
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ do not print progress messages
+ -d, --debug don't remove temporary files
+ --recheck update $as_me by reconfiguring in the same conditions
+ --file=FILE[:TEMPLATE]
+ instantiate the configuration file FILE
+ --header=FILE[:TEMPLATE]
+ instantiate the configuration header FILE
+
+Configuration files:
+$config_files
+
+Configuration headers:
+$config_headers
+
+Configuration commands:
+$config_commands
+
+Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
+ac_cs_version="\\
+xf86-video-intel config.status 2.15.0
+configured by $0, generated by GNU Autoconf 2.67,
+ with options \\"\$ac_cs_config\\"
+
+Copyright (C) 2010 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
+ac_need_defaults=:
+while test $# != 0
+do
+ case $1 in
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
+ ac_shift=:
+ ;;
+ *)
+ ac_option=$1
+ ac_optarg=$2
+ ac_shift=shift
+ ;;
+ esac
+
+ case $ac_option in
+ # Handling of the options.
+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+ ac_cs_recheck=: ;;
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
+ debug=: ;;
+ --file | --fil | --fi | --f )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --header | --heade | --head | --hea )
+ $ac_shift
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
+ ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+ --help | --hel | -h )
+ $as_echo "$ac_cs_usage"; exit ;;
+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
+ ac_cs_silent=: ;;
+
+ # This is an error.
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
+
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
+
+ esac
+ shift
+done
+
+ac_configure_extra_args=
+
+if $ac_cs_silent; then
+ exec 6>/dev/null
+ ac_configure_extra_args="$ac_configure_extra_args --silent"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+if \$ac_cs_recheck; then
+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
+fi
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
+
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+#
+# INIT-COMMANDS
+#
+AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
+
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
+macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
+enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
+enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
+pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
+enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
+host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
+host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
+host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
+build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
+build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
+build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
+SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
+Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
+GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
+EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
+FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
+LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
+NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
+LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
+max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
+ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
+exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
+lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
+lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
+lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
+reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
+reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
+deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
+file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
+AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
+AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
+STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
+RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
+old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
+CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
+compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
+GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
+objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
+SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
+ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
+MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
+lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
+lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
+need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
+DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
+NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
+LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
+OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
+OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
+libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
+shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
+enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
+export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
+whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
+compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
+old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
+allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
+no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
+inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
+link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
+fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
+always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
+export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
+include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
+prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
+variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
+need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
+need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
+version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
+runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
+shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
+shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
+libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
+library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
+soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
+postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
+finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
+sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
+sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
+hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
+enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
+enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
+enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
+old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
+striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
+
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# Quote evaled strings.
+for var in SED \
+GREP \
+EGREP \
+FGREP \
+LD \
+NM \
+LN_S \
+lt_SP2NL \
+lt_NL2SP \
+reload_flag \
+OBJDUMP \
+deplibs_check_method \
+file_magic_cmd \
+AR \
+AR_FLAGS \
+STRIP \
+RANLIB \
+CC \
+CFLAGS \
+compiler \
+lt_cv_sys_global_symbol_pipe \
+lt_cv_sys_global_symbol_to_cdecl \
+lt_cv_sys_global_symbol_to_c_name_address \
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
+SHELL \
+ECHO \
+lt_prog_compiler_no_builtin_flag \
+lt_prog_compiler_wl \
+lt_prog_compiler_pic \
+lt_prog_compiler_static \
+lt_cv_prog_compiler_c_o \
+need_locks \
+DSYMUTIL \
+NMEDIT \
+LIPO \
+OTOOL \
+OTOOL64 \
+shrext_cmds \
+export_dynamic_flag_spec \
+whole_archive_flag_spec \
+compiler_needs_object \
+with_gnu_ld \
+allow_undefined_flag \
+no_undefined_flag \
+hardcode_libdir_flag_spec \
+hardcode_libdir_flag_spec_ld \
+hardcode_libdir_separator \
+fix_srcfile_path \
+exclude_expsyms \
+include_expsyms \
+file_list_spec \
+variables_saved_for_relink \
+libname_spec \
+library_names_spec \
+soname_spec \
+finish_eval \
+old_striplib \
+striplib; do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in reload_cmds \
+old_postinstall_cmds \
+old_postuninstall_cmds \
+old_archive_cmds \
+extract_expsyms_cmds \
+old_archive_from_new_cmds \
+old_archive_from_expsyms_cmds \
+archive_cmds \
+archive_expsym_cmds \
+module_cmds \
+module_expsym_cmds \
+export_symbols_cmds \
+prelink_cmds \
+postinstall_cmds \
+postuninstall_cmds \
+finish_cmds \
+sys_lib_search_path_spec \
+sys_lib_dlsearch_path_spec; do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[\\\\\\\`\\"\\\$]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Fix-up fallback echo if it was mangled by the above quoting rules.
+case \$lt_ECHO in
+*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
+ ;;
+esac
+
+ac_aux_dir='$ac_aux_dir'
+xsi_shell='$xsi_shell'
+lt_shell_append='$lt_shell_append'
+
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ TIMESTAMP='$TIMESTAMP'
+ RM='$RM'
+ ofile='$ofile'
+
+
+
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+
+# Handling of arguments.
+for ac_config_target in $ac_config_targets
+do
+ case $ac_config_target in
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "uxa/Makefile") CONFIG_FILES="$CONFIG_FILES uxa/Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "src/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/Makefile" ;;
+ "src/xvmc/shader/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/Makefile" ;;
+ "src/xvmc/shader/mc/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/mc/Makefile" ;;
+ "src/xvmc/shader/vld/Makefile") CONFIG_FILES="$CONFIG_FILES src/xvmc/shader/vld/Makefile" ;;
+ "src/legacy/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/Makefile" ;;
+ "src/legacy/i810/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/Makefile" ;;
+ "src/legacy/i810/xvmc/Makefile") CONFIG_FILES="$CONFIG_FILES src/legacy/i810/xvmc/Makefile" ;;
+ "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
+ "src/render_program/Makefile") CONFIG_FILES="$CONFIG_FILES src/render_program/Makefile" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
+ esac
+done
+
+
+# If the user did not use the arguments to specify the items to instantiate,
+# then the envvar interface is used. Set only those that are not.
+# We use the long form for the default assignment because of an extremely
+# bizarre bug on SunOS 4.1.3.
+if $ac_need_defaults; then
+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
+ test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
+ test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
+fi
+
+# Have a temporary directory for convenience. Make it in the build tree
+# simply because there is no reason against having it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Hook for its removal unless debugging.
+# Note that there is a small window in which the directory will not be cleaned:
+# after its creation but before its name has been assigned to `$tmp'.
+$debug ||
+{
+ tmp=
+ trap 'exit_status=$?
+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
+}
+# Create a (secure) tmp directory for tmp files.
+
+{
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -n "$tmp" && test -d "$tmp"
+} ||
+{
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = ""
+
+}
+{
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
+}
+
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
+_ACEOF
+
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
+# trailing colons and then remove the whole line if VPATH becomes empty
+# (actually we leave an empty line to preserve line numbers).
+if test "x$srcdir" = x.; then
+ ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}'
+fi
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
+_ACEOF
+
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_t=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_t"; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = ""
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # Replace #undef with comments. This is necessary, for example,
+ # in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
+ :[FH]-) ac_tag=-:-;;
+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
+ esac
+ ac_save_IFS=$IFS
+ IFS=:
+ set x $ac_tag
+ IFS=$ac_save_IFS
+ shift
+ ac_file=$1
+ shift
+
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$tmp/stdin";;
+ *) # Look for the file first in the build tree, then in the source tree
+ # (if the path is not absolute). The absolute path cannot be DOS-style,
+ # because $ac_f cannot contain `:'.
+ test -f "$ac_f" ||
+ case $ac_f in
+ [\\/$]*) false;;
+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
+ esac ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
+ done
+
+ # Let's still pretend it is `configure' which instantiates (i.e., don't
+ # use $as_me), people would be surprised to read:
+ # /* config.h. Generated by config.status. */
+ configure_input='Generated from '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ esac
+ ;;
+ esac
+
+ ac_dir=`$as_dirname -- "$ac_file" ||
+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$ac_file" : 'X\(//\)[^/]' \| \
+ X"$ac_file" : 'X\(//\)$' \| \
+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$ac_file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir="$ac_dir"; as_fn_mkdir_p
+ ac_builddir=.
+
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
+ case $ac_top_builddir_sub in
+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
+ esac ;;
+esac
+ac_abs_top_builddir=$ac_pwd
+ac_abs_builddir=$ac_pwd$ac_dir_suffix
+# for backward compatibility:
+ac_top_builddir=$ac_top_build_prefix
+
+case $srcdir in
+ .) # We are building in place.
+ ac_srcdir=.
+ ac_top_srcdir=$ac_top_builddir_sub
+ ac_abs_top_srcdir=$ac_pwd ;;
+ [\\/]* | ?:[\\/]* ) # Absolute name.
+ ac_srcdir=$srcdir$ac_dir_suffix;
+ ac_top_srcdir=$srcdir
+ ac_abs_top_srcdir=$srcdir ;;
+ *) # Relative name.
+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
+ ac_top_srcdir=$ac_top_build_prefix$srcdir
+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
+esac
+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
+
+
+ case $ac_mode in
+ :F)
+ #
+ # CONFIG_FILE
+ #
+
+ case $INSTALL in
+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
+ esac
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# If the template does not know about datarootdir, expand it.
+# FIXME: This hack should be removed a few years after 2.60.
+ac_datarootdir_hack=; ac_datarootdir_seen=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ ac_datarootdir_hack='
+ s&@datadir@&$datadir&g
+ s&@docdir@&$docdir&g
+ s&@infodir@&$infodir&g
+ s&@localedir@&$localedir&g
+ s&@mandir@&$mandir&g
+ s&\\\${datarootdir}&$datarootdir&g' ;;
+esac
+_ACEOF
+
+# Neutralize VPATH when `$srcdir' = `.'.
+# Shell code in configure.ac might set extrasub.
+# FIXME: do we really want to maintain this feature?
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
+$extrasub
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+:t
+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;t t
+s&@srcdir@&$ac_srcdir&;t t
+s&@abs_srcdir@&$ac_abs_srcdir&;t t
+s&@top_srcdir@&$ac_top_srcdir&;t t
+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
+s&@builddir@&$ac_builddir&;t t
+s&@abs_builddir@&$ac_abs_builddir&;t t
+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
+s&@INSTALL@&$ac_INSTALL&;t t
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&2;}
+
+ rm -f "$tmp/stdin"
+ case $ac_file in
+ -) cat "$tmp/out" && rm -f "$tmp/out";;
+ *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
+ if test x"$ac_file" != x-; then
+ {
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
+ } >"$tmp/config.h" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
+ else
+ rm -f "$ac_file"
+ mv "$tmp/config.h" "$ac_file" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ fi
+ else
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error $? "could not create -" "$LINENO" 5
+ fi
+# Compute "$ac_file"'s index in $config_headers.
+_am_arg="$ac_file"
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
+ X"$_am_arg" : 'X\(//\)$' \| \
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$_am_arg" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`/stamp-h$_am_stamp_count
+ ;;
+
+ :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
+$as_echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
+
+
+ case $ac_file$ac_mode in
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ case $CONFIG_FILES in
+ *\'*) eval set x "$CONFIG_FILES" ;;
+ *) set x $CONFIG_FILES ;;
+ esac
+ shift
+ for mf
+ do
+ # Strip MF so we end up with the name of the file.
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
+ # Check whether this is an Automake generated Makefile or not.
+ # We used to match only the files named `Makefile.in', but
+ # some people rename them; so instead we look at the file content.
+ # Grep'ing the first line is not enough: some people post-process
+ # each Makefile.in and add a new line on top of each file to say so.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
+ dirpart=`$as_dirname -- "$mf" ||
+$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$mf" : 'X\(//\)[^/]' \| \
+ X"$mf" : 'X\(//\)$' \| \
+ X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$mf" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ else
+ continue
+ fi
+ # Extract the definition of DEPDIR, am__include, and am__quote
+ # from the Makefile without running `make'.
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
+ test -z "$DEPDIR" && continue
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
+ test -z "am__include" && continue
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
+ # When using ansi2knr, U may be empty or an underscore; expand it
+ U=`sed -n 's/^U = //p' < "$mf"`
+ # Find all dependency output files, they are included files with
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
+ # simplest approach to changing $(DEPDIR) to its actual value in the
+ # expansion.
+ for file in `sed -n "
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
+ # Make sure the directory exists.
+ test -f "$dirpart/$file" && continue
+ fdir=`$as_dirname -- "$file" ||
+$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$file" : 'X\(//\)[^/]' \| \
+ X"$file" : 'X\(//\)$' \| \
+ X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$file" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+ as_dir=$dirpart/$fdir; as_fn_mkdir_p
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
+ done
+ done
+}
+ ;;
+ "libtool":C)
+
+ # See if we are running on zsh, and set the options which allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile="${ofile}T"
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+# The names of the tagged configurations supported by this script.
+available_tags=""
+
+# ### BEGIN LIBTOOL CONFIG
+
+# Which release of libtool.m4 was used?
+macro_version=$macro_version
+macro_revision=$macro_revision
+
+# Whether or not to build static libraries.
+build_old_libs=$enable_static
+
+# Whether or not to build shared libraries.
+build_libtool_libs=$enable_shared
+
+# What type of objects to build.
+pic_mode=$pic_mode
+
+# Whether or not to optimize for fast installation.
+fast_install=$enable_fast_install
+
+# The host system.
+host_alias=$host_alias
+host=$host
+host_os=$host_os
+
+# The build system.
+build_alias=$build_alias
+build=$build
+build_os=$build_os
+
+# A sed program that does not truncate output.
+SED=$lt_SED
+
+# Sed that helps us avoid accidentally triggering echo(1) options like -n.
+Xsed="\$SED -e 1s/^X//"
+
+# A grep program that handles long lines.
+GREP=$lt_GREP
+
+# An ERE matcher.
+EGREP=$lt_EGREP
+
+# A literal string matcher.
+FGREP=$lt_FGREP
+
+# A BSD- or MS-compatible name lister.
+NM=$lt_NM
+
+# Whether we need soft or hard links.
+LN_S=$lt_LN_S
+
+# What is the maximum length of a command?
+max_cmd_len=$max_cmd_len
+
+# Object file suffix (normally "o").
+objext=$ac_objext
+
+# Executable file suffix (normally "").
+exeext=$exeext
+
+# whether the shell understands "unset".
+lt_unset=$lt_unset
+
+# turn spaces into newlines.
+SP2NL=$lt_lt_SP2NL
+
+# turn newlines into spaces.
+NL2SP=$lt_lt_NL2SP
+
+# How to create reloadable object files.
+reload_flag=$lt_reload_flag
+reload_cmds=$lt_reload_cmds
+
+# An object symbol dumper.
+OBJDUMP=$lt_OBJDUMP
+
+# Method to check whether dependent libraries are shared objects.
+deplibs_check_method=$lt_deplibs_check_method
+
+# Command to use when deplibs_check_method == "file_magic".
+file_magic_cmd=$lt_file_magic_cmd
+
+# The archiver.
+AR=$lt_AR
+AR_FLAGS=$lt_AR_FLAGS
+
+# A symbol stripping program.
+STRIP=$lt_STRIP
+
+# Commands used to install an old-style archive.
+RANLIB=$lt_RANLIB
+old_postinstall_cmds=$lt_old_postinstall_cmds
+old_postuninstall_cmds=$lt_old_postuninstall_cmds
+
+# A C compiler.
+LTCC=$lt_CC
+
+# LTCC compiler flags.
+LTCFLAGS=$lt_CFLAGS
+
+# Take the output of nm and produce a listing of raw symbols and C names.
+global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
+
+# Transform the output of nm in a proper C declaration.
+global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
+
+# Transform the output of nm in a C name address pair.
+global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
+
+# Transform the output of nm in a C name address pair when lib prefix is needed.
+global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
+
+# The name of the directory that contains temporary libtool files.
+objdir=$objdir
+
+# Shell to use when invoking shell scripts.
+SHELL=$lt_SHELL
+
+# An echo program that does not interpret backslashes.
+ECHO=$lt_ECHO
+
+# Used to examine libraries when file_magic_cmd begins with "file".
+MAGIC_CMD=$MAGIC_CMD
+
+# Must we lock files when doing compilation?
+need_locks=$lt_need_locks
+
+# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
+DSYMUTIL=$lt_DSYMUTIL
+
+# Tool to change global to local symbols on Mac OS X.
+NMEDIT=$lt_NMEDIT
+
+# Tool to manipulate fat objects and archives on Mac OS X.
+LIPO=$lt_LIPO
+
+# ldd/readelf like tool for Mach-O binaries on Mac OS X.
+OTOOL=$lt_OTOOL
+
+# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
+OTOOL64=$lt_OTOOL64
+
+# Old archive suffix (normally "a").
+libext=$libext
+
+# Shared library suffix (normally ".so").
+shrext_cmds=$lt_shrext_cmds
+
+# The commands to extract the exported symbol list from a shared archive.
+extract_expsyms_cmds=$lt_extract_expsyms_cmds
+
+# Variables whose values should be saved in libtool wrapper scripts and
+# restored at link time.
+variables_saved_for_relink=$lt_variables_saved_for_relink
+
+# Do we need the "lib" prefix for modules?
+need_lib_prefix=$need_lib_prefix
+
+# Do we need a version for libraries?
+need_version=$need_version
+
+# Library versioning type.
+version_type=$version_type
+
+# Shared library runtime path variable.
+runpath_var=$runpath_var
+
+# Shared library path variable.
+shlibpath_var=$shlibpath_var
+
+# Is shlibpath searched before the hard-coded library search path?
+shlibpath_overrides_runpath=$shlibpath_overrides_runpath
+
+# Format of library name prefix.
+libname_spec=$lt_libname_spec
+
+# List of archive names. First name is the real one, the rest are links.
+# The last name is the one that the linker finds with -lNAME
+library_names_spec=$lt_library_names_spec
+
+# The coded name of the library, if different from the real name.
+soname_spec=$lt_soname_spec
+
+# Command to use after installation of a shared archive.
+postinstall_cmds=$lt_postinstall_cmds
+
+# Command to use after uninstallation of a shared archive.
+postuninstall_cmds=$lt_postuninstall_cmds
+
+# Commands used to finish a libtool library installation in a directory.
+finish_cmds=$lt_finish_cmds
+
+# As "finish_cmds", except a single script fragment to be evaled but
+# not shown.
+finish_eval=$lt_finish_eval
+
+# Whether we should hardcode library paths into libraries.
+hardcode_into_libs=$hardcode_into_libs
+
+# Compile-time system search path for libraries.
+sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
+
+# Run-time system search path for libraries.
+sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
+
+# Whether dlopen is supported.
+dlopen_support=$enable_dlopen
+
+# Whether dlopen of programs is supported.
+dlopen_self=$enable_dlopen_self
+
+# Whether dlopen of statically linked programs is supported.
+dlopen_self_static=$enable_dlopen_self_static
+
+# Commands to strip libraries.
+old_striplib=$lt_old_striplib
+striplib=$lt_striplib
+
+
+# The linker used to build libraries.
+LD=$lt_LD
+
+# Commands used to build an old-style archive.
+old_archive_cmds=$lt_old_archive_cmds
+
+# A language specific compiler.
+CC=$lt_compiler
+
+# Is the compiler the GNU compiler?
+with_gcc=$GCC
+
+# Compiler flag to turn off builtin functions.
+no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
+
+# How to pass a linker flag through the compiler.
+wl=$lt_lt_prog_compiler_wl
+
+# Additional compiler flags for building library objects.
+pic_flag=$lt_lt_prog_compiler_pic
+
+# Compiler flag to prevent dynamic linking.
+link_static_flag=$lt_lt_prog_compiler_static
+
+# Does compiler simultaneously support -c and -o options?
+compiler_c_o=$lt_lt_cv_prog_compiler_c_o
+
+# Whether or not to add -lc for building shared libraries.
+build_libtool_need_lc=$archive_cmds_need_lc
+
+# Whether or not to disallow shared libs when runtime libs are static.
+allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
+
+# Compiler flag to allow reflexive dlopens.
+export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
+
+# Compiler flag to generate shared objects directly from archives.
+whole_archive_flag_spec=$lt_whole_archive_flag_spec
+
+# Whether the compiler copes with passing no objects directly.
+compiler_needs_object=$lt_compiler_needs_object
+
+# Create an old-style archive from a shared archive.
+old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
+
+# Create a temporary old-style archive to link instead of a shared archive.
+old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
+
+# Commands used to build a shared archive.
+archive_cmds=$lt_archive_cmds
+archive_expsym_cmds=$lt_archive_expsym_cmds
+
+# Commands used to build a loadable module if different from building
+# a shared archive.
+module_cmds=$lt_module_cmds
+module_expsym_cmds=$lt_module_expsym_cmds
+
+# Whether we are building with GNU ld or not.
+with_gnu_ld=$lt_with_gnu_ld
+
+# Flag that allows shared libraries with undefined symbols to be built.
+allow_undefined_flag=$lt_allow_undefined_flag
+
+# Flag that enforces no undefined symbols.
+no_undefined_flag=$lt_no_undefined_flag
+
+# Flag to hardcode \$libdir into a binary during linking.
+# This must work even if \$libdir does not exist
+hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
+
+# If ld is used when linking, flag to hardcode \$libdir into a binary
+# during linking. This must work even if \$libdir does not exist.
+hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
+
+# Whether we need a single "-rpath" flag with a separated argument.
+hardcode_libdir_separator=$lt_hardcode_libdir_separator
+
+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
+# DIR into the resulting binary.
+hardcode_direct=$hardcode_direct
+
+# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
+# DIR into the resulting binary and the resulting library dependency is
+# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
+# library is relocated.
+hardcode_direct_absolute=$hardcode_direct_absolute
+
+# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+# into the resulting binary.
+hardcode_minus_L=$hardcode_minus_L
+
+# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+# into the resulting binary.
+hardcode_shlibpath_var=$hardcode_shlibpath_var
+
+# Set to "yes" if building a shared library automatically hardcodes DIR
+# into the library and all subsequent libraries and executables linked
+# against it.
+hardcode_automatic=$hardcode_automatic
+
+# Set to yes if linker adds runtime paths of dependent libraries
+# to runtime path list.
+inherit_rpath=$inherit_rpath
+
+# Whether libtool must link a program against all its dependency libraries.
+link_all_deplibs=$link_all_deplibs
+
+# Fix the shell variable \$srcfile for the compiler.
+fix_srcfile_path=$lt_fix_srcfile_path
+
+# Set to "yes" if exported symbols are required.
+always_export_symbols=$always_export_symbols
+
+# The commands to list exported symbols.
+export_symbols_cmds=$lt_export_symbols_cmds
+
+# Symbols that should not be listed in the preloaded symbols.
+exclude_expsyms=$lt_exclude_expsyms
+
+# Symbols that must always be exported.
+include_expsyms=$lt_include_expsyms
+
+# Commands necessary for linking programs (against libraries) with templates.
+prelink_cmds=$lt_prelink_cmds
+
+# Specify filename containing input files.
+file_list_spec=$lt_file_list_spec
+
+# How to hardcode a shared library path into an executable.
+hardcode_action=$hardcode_action
+
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+
+ltmain="$ac_aux_dir/ltmain.sh"
+
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ case $xsi_shell in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result="${1##*/}"
+}
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+ func_basename_result="${1##*/}"
+}
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+func_stripname ()
+{
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+ # positional parameters, so assign one to ordinary parameter first.
+ func_stripname_result=${3}
+ func_stripname_result=${func_stripname_result#"${1}"}
+ func_stripname_result=${func_stripname_result%"${2}"}
+}
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=${1%%=*}
+ func_opt_split_arg=${1#*=}
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ case ${1} in
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
+ *) func_lo2o_result=${1} ;;
+ esac
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=${1%.*}.lo
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=$(( $* ))
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=${#1}
+}
+
+_LT_EOF
+ ;;
+ *) # Bourne compatible functions.
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+# func_strip_suffix prefix name
+func_stripname ()
+{
+ case ${2} in
+ .*) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
+ *) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
+ esac
+}
+
+# sed scripts:
+my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
+my_sed_long_arg='1s/^-[^=]*=//'
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=`expr "$@"`
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
+}
+
+_LT_EOF
+esac
+
+case $lt_shell_append in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$1+=\$2"
+}
+_LT_EOF
+ ;;
+ *)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$1=\$$1\$2"
+}
+
+_LT_EOF
+ ;;
+ esac
+
+
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" ||
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+
+ ;;
+
+ esac
+done # for ac_tag
+
+
+as_fn_exit 0
+_ACEOF
+ac_clean_files=$ac_clean_files_save
+
+test $ac_write_fail = 0 ||
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
+
+# configure is writing to config.log, and then calls config.status.
+# config.status does its own redirection, appending to config.log.
+# Unfortunately, on DOS this fails, as config.log is still kept open
+# by configure, so config.status won't be able to write to it; its
+# output is simply discarded. So we exec the FD to /dev/null,
+# effectively closing config.log, so it can be properly (re)opened and
+# appended to by config.status. When coming back to configure, we
+# need to make the FD available again.
+if test "$no_create" != yes; then
+ ac_cs_success=:
+ ac_config_status_args=
+ test "$silent" = yes &&
+ ac_config_status_args="$ac_config_status_args --quiet"
+ exec 5>/dev/null
+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
+ exec 5>>config.log
+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
+ # would make configure fail if this is the last instruction.
+ $ac_cs_success || as_fn_exit 1
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
+fi
+
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..fd5a3cf
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,184 @@
+# Copyright 2005 Adam Jackson.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# on the rights to use, copy, modify, merge, publish, distribute, sub
+# license, and/or sell copies of the Software, and to permit persons to whom
+# the Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Process this file with autoconf to produce a configure script
+
+# Initialize Autoconf
+AC_PREREQ([2.63])
+AC_INIT([xf86-video-intel],
+ [2.15.0],
+ [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
+ [xf86-video-intel])
+AC_CONFIG_SRCDIR([Makefile.am])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_AUX_DIR([build-aux])
+AC_CONFIG_MACRO_DIR([m4])
+
+# Initialize Automake
+AM_INIT_AUTOMAKE([1.10 foreign dist-bzip2])
+AM_MAINTAINER_MODE([enable])
+
+# Support silent build rules, requires at least automake-1.11. Disable
+# by either passing --disable-silent-rules to configure or passing V=1
+# to make
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
+m4_ifndef([XORG_MACROS_VERSION],
+ [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen.
+ Hint: either install from source, git://anongit.freedesktop.org/xorg/util/macros or,
+ depending on you distribution, try package 'xutils-dev' or 'xorg-x11-util-macros'])])
+
+XORG_MACROS_VERSION(1.8)
+XORG_DEFAULT_OPTIONS
+
+# Require X.Org server macros (i.e. XORG_DRIVER_CHECK_EXT) to check for required modules
+m4_ifndef([XORG_DRIVER_CHECK_EXT],
+ [m4_fatal([must install xorg-server macros before running autoconf/autogen.
+ Hint: either install from source, git://anongit.freedesktop.org/xorg/xserver or,
+ depending on your distribution, try package 'xserver-xorg-dev' or 'xorg-x11-server-devel'])])
+
+# Initialize libtool
+LT_PREREQ([2.2])
+LT_INIT([disable-static])
+
+PKG_CHECK_MODULES(GEN4ASM, [intel-gen4asm >= 1.1], [gen4asm=yes], [gen4asm=no])
+AM_CONDITIONAL(HAVE_GEN4ASM, test x$gen4asm = xyes)
+
+PKG_CHECK_MODULES(UDEV, [libudev], [udev=yes], [udev=no])
+if test x"$udev" = xyes; then
+ AC_DEFINE(HAVE_UDEV,1,[Enable udev-based monitor hotplug detection])
+fi
+
+AH_TOP([#include "xorg-server.h"])
+
+# Define a configure option for an alternate module directory
+AC_ARG_WITH(xorg-module-dir,
+ AS_HELP_STRING([--with-xorg-module-dir=DIR],
+ [Default xorg module directory [[default=$libdir/xorg/modules]]]),
+ [moduledir="$withval"],
+ [moduledir="$libdir/xorg/modules"])
+
+AC_ARG_ENABLE(dri, AS_HELP_STRING([--disable-dri],
+ [Disable DRI support [[default=auto]]]),
+ [DRI="$enableval"],
+ [DRI=auto])
+
+AC_ARG_ENABLE(xvmc, AS_HELP_STRING([--disable-xvmc],
+ [Disable XvMC support [[default=yes]]]),
+ [XVMC="$enableval"],
+ [XVMC=yes])
+
+AC_ARG_ENABLE(kms-only, AS_HELP_STRING([--enable-kms-only],
+ [Assume KMS support [[default=no]]]),
+ [KMS_ONLY="$enableval"],
+ [KMS_ONLY=no])
+
+AC_ARG_ENABLE(debug,
+ AS_HELP_STRING([--enable-debug],
+ [Enables internal debugging [[default=yes]]]),
+ [DEBUG="$enableval"],
+ [DEBUG=yes])
+
+# Store the list of server defined optional extensions in REQUIRED_MODULES
+XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
+XORG_DRIVER_CHECK_EXT(RENDER, renderproto)
+XORG_DRIVER_CHECK_EXT(XF86DRI, xextproto x11)
+XORG_DRIVER_CHECK_EXT(DPMSExtension, xextproto)
+
+# Obtain compiler/linker options for the driver dependencies
+PKG_CHECK_MODULES(XORG, [xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES])
+PKG_CHECK_MODULES(DRM, [libdrm >= 2.4.23])
+PKG_CHECK_MODULES(PCIACCESS, [pciaccess >= 0.10])
+
+sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
+
+save_CFLAGS="$CFLAGS"
+CFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
+CPPFLAGS="$XORG_CFLAGS $DRI_CFLAGS $DRM_CFLAGS"
+AC_MSG_CHECKING([whether to include DRI support])
+if test x$DRI != xno; then
+ AC_CHECK_FILE([${sdkdir}/dri.h],
+ [have_dri_h="yes"], [have_dri_h="no"])
+ AC_CHECK_FILE([${sdkdir}/sarea.h],
+ [have_sarea_h="yes"], [have_sarea_h="no"])
+ AC_CHECK_FILE([${sdkdir}/dristruct.h],
+ [have_dristruct_h="yes"], [have_dristruct_h="no"])
+fi
+AC_MSG_CHECKING([whether to include DRI support])
+if test x$DRI = xauto; then
+ if test "$have_dri_h" = yes -a \
+ "$have_sarea_h" = yes -a \
+ "$have_dristruct_h" = yes; then
+ DRI="yes"
+ else
+ DRI="no"
+ fi
+fi
+AC_MSG_RESULT([$DRI])
+CFLAGS="$save_CFLAGS $DEBUGFLAGS"
+
+AM_CONDITIONAL(DRI, test x$DRI = xyes)
+if test "$DRI" = yes; then
+ PKG_CHECK_MODULES(DRI, [xf86driproto])
+ AC_DEFINE(XF86DRI,1,[Enable DRI driver support])
+ AC_DEFINE(XF86DRI_DEVEL,1,[Enable developmental DRI driver support])
+fi
+
+if test "$XVMC" = yes; then
+ PKG_CHECK_MODULES(XVMCLIB,
+ [xvmc xext xfixes dri2proto x11-xcb xcb-dri2 xcb-aux],
+ [XVMC=yes], [XVMC=no])
+fi
+AC_MSG_CHECKING([whether to include XvMC support])
+AC_MSG_RESULT([$XVMC])
+AM_CONDITIONAL(XVMC, test x$XVMC = xyes)
+if test "x$XVMC" = xyes; then
+ AC_DEFINE(ENABLE_XVMC,1,[Enable XvMC support])
+fi
+
+AM_CONDITIONAL(KMS_ONLY, test x$KMS_ONLY = xyes)
+if test "x$KMS_ONLY" = xyes; then
+ AC_DEFINE(KMS_ONLY,1,[Assume KMS support])
+fi
+
+if test "x$DEBUG" = xno; then
+ AC_DEFINE(NDEBUG,1,[Disable internal debugging])
+fi
+
+DRIVER_NAME=intel
+AC_SUBST([DRIVER_NAME])
+AC_SUBST([moduledir])
+
+AC_CONFIG_FILES([
+ Makefile
+ uxa/Makefile
+ src/Makefile
+ src/xvmc/Makefile
+ src/xvmc/shader/Makefile
+ src/xvmc/shader/mc/Makefile
+ src/xvmc/shader/vld/Makefile
+ src/legacy/Makefile
+ src/legacy/i810/Makefile
+ src/legacy/i810/xvmc/Makefile
+ man/Makefile
+ src/render_program/Makefile
+])
+AC_OUTPUT
diff --git a/depcomp b/depcomp
new file mode 100755
index 0000000..df8eea7
--- /dev/null
+++ b/depcomp
@@ -0,0 +1,630 @@
+#! /bin/sh
+# depcomp - compile a program generating dependencies as side-effects
+
+scriptversion=2009-04-28.21; # UTC
+
+# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
+# Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
+
+case $1 in
+ '')
+ echo "$0: No command. Try \`$0 --help' for more information." 1>&2
+ exit 1;
+ ;;
+ -h | --h*)
+ cat <<\EOF
+Usage: depcomp [--help] [--version] PROGRAM [ARGS]
+
+Run PROGRAMS ARGS to compile a file, generating dependencies
+as side-effects.
+
+Environment variables:
+ depmode Dependency tracking mode.
+ source Source file read by `PROGRAMS ARGS'.
+ object Object file output by `PROGRAMS ARGS'.
+ DEPDIR directory where to store dependencies.
+ depfile Dependency file to output.
+ tmpdepfile Temporary file to use when outputing dependencies.
+ libtool Whether libtool is used (yes/no).
+
+Report bugs to <bug-automake@gnu.org>.
+EOF
+ exit $?
+ ;;
+ -v | --v*)
+ echo "depcomp $scriptversion"
+ exit $?
+ ;;
+esac
+
+if test -z "$depmode" || test -z "$source" || test -z "$object"; then
+ echo "depcomp: Variables source, object and depmode must be set" 1>&2
+ exit 1
+fi
+
+# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
+depfile=${depfile-`echo "$object" |
+ sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
+tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
+
+rm -f "$tmpdepfile"
+
+# Some modes work just like other modes, but use different flags. We
+# parameterize here, but still list the modes in the big case below,
+# to make depend.m4 easier to write. Note that we *cannot* use a case
+# here, because this file can only contain one case statement.
+if test "$depmode" = hp; then
+ # HP compiler uses -M and no extra arg.
+ gccflag=-M
+ depmode=gcc
+fi
+
+if test "$depmode" = dashXmstdout; then
+ # This is just like dashmstdout with a different argument.
+ dashmflag=-xM
+ depmode=dashmstdout
+fi
+
+cygpath_u="cygpath -u -f -"
+if test "$depmode" = msvcmsys; then
+ # This is just like msvisualcpp but w/o cygpath translation.
+ # Just convert the backslash-escaped backslashes to single forward
+ # slashes to satisfy depend.m4
+ cygpath_u="sed s,\\\\\\\\,/,g"
+ depmode=msvisualcpp
+fi
+
+case "$depmode" in
+gcc3)
+## gcc 3 implements dependency tracking that does exactly what
+## we want. Yay! Note: for some reason libtool 1.4 doesn't like
+## it if -MD -MP comes after the -MF stuff. Hmm.
+## Unfortunately, FreeBSD c89 acceptance of flags depends upon
+## the command line argument order; so add the flags where they
+## appear in depend2.am. Note that the slowdown incurred here
+## affects only configure: in makefiles, %FASTDEP% shortcuts this.
+ for arg
+ do
+ case $arg in
+ -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
+ *) set fnord "$@" "$arg" ;;
+ esac
+ shift # fnord
+ shift # $arg
+ done
+ "$@"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ mv "$tmpdepfile" "$depfile"
+ ;;
+
+gcc)
+## There are various ways to get dependency output from gcc. Here's
+## why we pick this rather obscure method:
+## - Don't want to use -MD because we'd like the dependencies to end
+## up in a subdir. Having to rename by hand is ugly.
+## (We might end up doing this anyway to support other compilers.)
+## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
+## -MM, not -M (despite what the docs say).
+## - Using -M directly means running the compiler twice (even worse
+## than renaming).
+ if test -z "$gccflag"; then
+ gccflag=-MD,
+ fi
+ "$@" -Wp,"$gccflag$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
+## The second -e expression handles DOS-style file names with drive letters.
+ sed -e 's/^[^:]*: / /' \
+ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
+## This next piece of magic avoids the `deleted header file' problem.
+## The problem is that when a header file which appears in a .P file
+## is deleted, the dependency causes make to die (because there is
+## typically no way to rebuild the header). We avoid this by adding
+## dummy dependencies for each header file. Too bad gcc doesn't do
+## this for us directly.
+ tr ' ' '
+' < "$tmpdepfile" |
+## Some versions of gcc put a space before the `:'. On the theory
+## that the space means something, we add a space to the output as
+## well.
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+sgi)
+ if test "$libtool" = yes; then
+ "$@" "-Wp,-MDupdate,$tmpdepfile"
+ else
+ "$@" -MDupdate "$tmpdepfile"
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+
+ if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
+ echo "$object : \\" > "$depfile"
+
+ # Clip off the initial element (the dependent). Don't try to be
+ # clever and replace this with sed code, as IRIX sed won't handle
+ # lines with more than a fixed number of characters (4096 in
+ # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
+ # the IRIX cc adds comments like `#:fec' to the end of the
+ # dependency line.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
+ tr '
+' ' ' >> "$depfile"
+ echo >> "$depfile"
+
+ # The second pass generates a dummy entry for each header file.
+ tr ' ' '
+' < "$tmpdepfile" \
+ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
+ >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+aix)
+ # The C for AIX Compiler uses -M and outputs the dependencies
+ # in a .u file. In older versions, this file always lives in the
+ # current directory. Also, the AIX compiler puts `$object:' at the
+ # start of each line; $object doesn't have directory information.
+ # Version 6 uses the directory in both cases.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$base.u
+ tmpdepfile3=$dir.libs/$base.u
+ "$@" -Wc,-M
+ else
+ tmpdepfile1=$dir$base.u
+ tmpdepfile2=$dir$base.u
+ tmpdepfile3=$dir$base.u
+ "$@" -M
+ fi
+ stat=$?
+
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ # Each line is of the form `foo.o: dependent.h'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ # The sourcefile does not contain any dependencies, so just
+ # store a dummy comment line, to avoid errors with the Makefile
+ # "include basename.Plo" scheme.
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+icc)
+ # Intel's C compiler understands `-MD -MF file'. However on
+ # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
+ # ICC 7.0 will fill foo.d with something like
+ # foo.o: sub/foo.c
+ # foo.o: sub/foo.h
+ # which is wrong. We want:
+ # sub/foo.o: sub/foo.c
+ # sub/foo.o: sub/foo.h
+ # sub/foo.c:
+ # sub/foo.h:
+ # ICC 7.1 will output
+ # foo.o: sub/foo.c sub/foo.h
+ # and will wrap long lines using \ :
+ # foo.o: sub/foo.c ... \
+ # sub/foo.h ... \
+ # ...
+
+ "$@" -MD -MF "$tmpdepfile"
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile"
+ exit $stat
+ fi
+ rm -f "$depfile"
+ # Each line is of the form `foo.o: dependent.h',
+ # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
+ # Do two passes, one to just change these to
+ # `$object: dependent.h' and one to simply `dependent.h:'.
+ sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
+ # Some versions of the HPUX 10.20 sed can't process this invocation
+ # correctly. Breaking it into two sed invocations is a workaround.
+ sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
+ sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+hp2)
+ # The "hp" stanza above does not work with aCC (C++) and HP's ia64
+ # compilers, which have integrated preprocessors. The correct option
+ # to use with these is +Maked; it writes dependencies to a file named
+ # 'foo.d', which lands next to the object file, wherever that
+ # happens to be.
+ # Much of this is similar to the tru64 case; see comments there.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+ if test "$libtool" = yes; then
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir.libs/$base.d
+ "$@" -Wc,+Maked
+ else
+ tmpdepfile1=$dir$base.d
+ tmpdepfile2=$dir$base.d
+ "$@" +Maked
+ fi
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
+ # Add `dependent.h:' lines.
+ sed -ne '2,${
+ s/^ *//
+ s/ \\*$//
+ s/$/:/
+ p
+ }' "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile" "$tmpdepfile2"
+ ;;
+
+tru64)
+ # The Tru64 compiler uses -MD to generate dependencies as a side
+ # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
+ # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
+ # dependencies in `foo.d' instead, so we check for that too.
+ # Subdirectories are respected.
+ dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
+ test "x$dir" = "x$object" && dir=
+ base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
+
+ if test "$libtool" = yes; then
+ # With Tru64 cc, shared objects can also be used to make a
+ # static library. This mechanism is used in libtool 1.4 series to
+ # handle both shared and static libraries in a single compilation.
+ # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
+ #
+ # With libtool 1.5 this exception was removed, and libtool now
+ # generates 2 separate objects for the 2 libraries. These two
+ # compilations output dependencies in $dir.libs/$base.o.d and
+ # in $dir$base.o.d. We have to check for both files, because
+ # one of the two compilations can be disabled. We should prefer
+ # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
+ # automatically cleaned when .libs/ is deleted, while ignoring
+ # the former would cause a distcleancheck panic.
+ tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
+ tmpdepfile2=$dir$base.o.d # libtool 1.5
+ tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
+ tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
+ "$@" -Wc,-MD
+ else
+ tmpdepfile1=$dir$base.o.d
+ tmpdepfile2=$dir$base.d
+ tmpdepfile3=$dir$base.d
+ tmpdepfile4=$dir$base.d
+ "$@" -MD
+ fi
+
+ stat=$?
+ if test $stat -eq 0; then :
+ else
+ rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ exit $stat
+ fi
+
+ for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
+ do
+ test -f "$tmpdepfile" && break
+ done
+ if test -f "$tmpdepfile"; then
+ sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
+ # That's a tab and a space in the [].
+ sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
+ else
+ echo "#dummy" > "$depfile"
+ fi
+ rm -f "$tmpdepfile"
+ ;;
+
+#nosideeffect)
+ # This comment above is used by automake to tell side-effect
+ # dependency tracking mechanisms from slower ones.
+
+dashmstdout)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout, regardless of -o.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ test -z "$dashmflag" && dashmflag=-M
+ # Require at least two characters before searching for `:'
+ # in the target name. This is to cope with DOS-style filenames:
+ # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
+ "$@" $dashmflag |
+ sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ tr ' ' '
+' < "$tmpdepfile" | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+dashXmstdout)
+ # This case only exists to satisfy depend.m4. It is never actually
+ # run, as this mode is specially recognized in the preamble.
+ exit 1
+ ;;
+
+makedepend)
+ "$@" || exit $?
+ # Remove any Libtool call
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+ # X makedepend
+ shift
+ cleared=no eat=no
+ for arg
+ do
+ case $cleared in
+ no)
+ set ""; shift
+ cleared=yes ;;
+ esac
+ if test $eat = yes; then
+ eat=no
+ continue
+ fi
+ case "$arg" in
+ -D*|-I*)
+ set fnord "$@" "$arg"; shift ;;
+ # Strip any option that makedepend may not understand. Remove
+ # the object too, otherwise makedepend will parse it as a source file.
+ -arch)
+ eat=yes ;;
+ -*|$object)
+ ;;
+ *)
+ set fnord "$@" "$arg"; shift ;;
+ esac
+ done
+ obj_suffix=`echo "$object" | sed 's/^.*\././'`
+ touch "$tmpdepfile"
+ ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
+ rm -f "$depfile"
+ cat < "$tmpdepfile" > "$depfile"
+ sed '1,2d' "$tmpdepfile" | tr ' ' '
+' | \
+## Some versions of the HPUX 10.20 sed can't process this invocation
+## correctly. Breaking it into two sed invocations is a workaround.
+ sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile" "$tmpdepfile".bak
+ ;;
+
+cpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ # Remove `-o $object'.
+ IFS=" "
+ for arg
+ do
+ case $arg in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift # fnord
+ shift # $arg
+ ;;
+ esac
+ done
+
+ "$@" -E |
+ sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
+ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
+ sed '$ s: \\$::' > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ cat < "$tmpdepfile" >> "$depfile"
+ sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvisualcpp)
+ # Important note: in order to support this mode, a compiler *must*
+ # always write the preprocessed file to stdout.
+ "$@" || exit $?
+
+ # Remove the call to Libtool.
+ if test "$libtool" = yes; then
+ while test "X$1" != 'X--mode=compile'; do
+ shift
+ done
+ shift
+ fi
+
+ IFS=" "
+ for arg
+ do
+ case "$arg" in
+ -o)
+ shift
+ ;;
+ $object)
+ shift
+ ;;
+ "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
+ set fnord "$@"
+ shift
+ shift
+ ;;
+ *)
+ set fnord "$@" "$arg"
+ shift
+ shift
+ ;;
+ esac
+ done
+ "$@" -E 2>/dev/null |
+ sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
+ rm -f "$depfile"
+ echo "$object : \\" > "$depfile"
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
+ echo " " >> "$depfile"
+ sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
+ rm -f "$tmpdepfile"
+ ;;
+
+msvcmsys)
+ # This case exists only to let depend.m4 do its work. It works by
+ # looking at the text of this script. This case will never be run,
+ # since it is checked for above.
+ exit 1
+ ;;
+
+none)
+ exec "$@"
+ ;;
+
+*)
+ echo "Unknown depmode $depmode" 1>&2
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/install-sh b/install-sh
new file mode 100755
index 0000000..6781b98
--- /dev/null
+++ b/install-sh
@@ -0,0 +1,520 @@
+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2009-04-28.21; # UTC
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=" "" $nl"
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=${DOITPROG-}
+if test -z "$doit"; then
+ doit_exec=exec
+else
+ doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+chgrpprog=${CHGRPPROG-chgrp}
+chmodprog=${CHMODPROG-chmod}
+chownprog=${CHOWNPROG-chown}
+cmpprog=${CMPPROG-cmp}
+cpprog=${CPPROG-cp}
+mkdirprog=${MKDIRPROG-mkdir}
+mvprog=${MVPROG-mv}
+rmprog=${RMPROG-rm}
+stripprog=${STRIPPROG-strip}
+
+posix_glob='?'
+initialize_posix_glob='
+ test "$posix_glob" != "?" || {
+ if (set -f) 2>/dev/null; then
+ posix_glob=
+ else
+ posix_glob=:
+ fi
+ }
+'
+
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chgrpcmd=
+chmodcmd=$chmodprog
+chowncmd=
+mvcmd=$mvprog
+rmcmd="$rmprog -f"
+stripcmd=
+
+src=
+dst=
+dir_arg=
+dst_arg=
+
+copy_on_change=false
+no_target_directory=
+
+usage="\
+Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+ or: $0 [OPTION]... SRCFILES... DIRECTORY
+ or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+ or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+ --help display this help and exit.
+ --version display version info and exit.
+
+ -c (ignored)
+ -C install only if different (preserve the last data modification time)
+ -d create directories instead of installing files.
+ -g GROUP $chgrpprog installed files to GROUP.
+ -m MODE $chmodprog installed files to MODE.
+ -o USER $chownprog installed files to USER.
+ -s $stripprog installed files.
+ -t DIRECTORY install into DIRECTORY.
+ -T report an error if DSTFILE is a directory.
+
+Environment variables override the default commands:
+ CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
+ RMPROG STRIPPROG
+"
+
+while test $# -ne 0; do
+ case $1 in
+ -c) ;;
+
+ -C) copy_on_change=true;;
+
+ -d) dir_arg=true;;
+
+ -g) chgrpcmd="$chgrpprog $2"
+ shift;;
+
+ --help) echo "$usage"; exit $?;;
+
+ -m) mode=$2
+ case $mode in
+ *' '* | *' '* | *'
+'* | *'*'* | *'?'* | *'['*)
+ echo "$0: invalid mode: $mode" >&2
+ exit 1;;
+ esac
+ shift;;
+
+ -o) chowncmd="$chownprog $2"
+ shift;;
+
+ -s) stripcmd=$stripprog;;
+
+ -t) dst_arg=$2
+ shift;;
+
+ -T) no_target_directory=true;;
+
+ --version) echo "$0 $scriptversion"; exit $?;;
+
+ --) shift
+ break;;
+
+ -*) echo "$0: invalid option: $1" >&2
+ exit 1;;
+
+ *) break;;
+ esac
+ shift
+done
+
+if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
+ # When -d is used, all remaining arguments are directories to create.
+ # When -t is used, the destination is already specified.
+ # Otherwise, the last argument is the destination. Remove it from $@.
+ for arg
+ do
+ if test -n "$dst_arg"; then
+ # $@ is not empty: it contains at least $arg.
+ set fnord "$@" "$dst_arg"
+ shift # fnord
+ fi
+ shift # arg
+ dst_arg=$arg
+ done
+fi
+
+if test $# -eq 0; then
+ if test -z "$dir_arg"; then
+ echo "$0: no input file specified." >&2
+ exit 1
+ fi
+ # It's OK to call `install-sh -d' without argument.
+ # This can happen when creating conditional directories.
+ exit 0
+fi
+
+if test -z "$dir_arg"; then
+ trap '(exit $?); exit' 1 2 13 15
+
+ # Set umask so as not to create temps with too-generous modes.
+ # However, 'strip' requires both read and write access to temps.
+ case $mode in
+ # Optimize common cases.
+ *644) cp_umask=133;;
+ *755) cp_umask=22;;
+
+ *[0-7])
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw='% 200'
+ fi
+ cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+ *)
+ if test -z "$stripcmd"; then
+ u_plus_rw=
+ else
+ u_plus_rw=,u+rw
+ fi
+ cp_umask=$mode$u_plus_rw;;
+ esac
+fi
+
+for src
+do
+ # Protect names starting with `-'.
+ case $src in
+ -*) src=./$src;;
+ esac
+
+ if test -n "$dir_arg"; then
+ dst=$src
+ dstdir=$dst
+ test -d "$dstdir"
+ dstdir_status=$?
+ else
+
+ # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
+ # might cause directories to be created, which would be especially bad
+ # if $src (and thus $dsttmp) contains '*'.
+ if test ! -f "$src" && test ! -d "$src"; then
+ echo "$0: $src does not exist." >&2
+ exit 1
+ fi
+
+ if test -z "$dst_arg"; then
+ echo "$0: no destination specified." >&2
+ exit 1
+ fi
+
+ dst=$dst_arg
+ # Protect names starting with `-'.
+ case $dst in
+ -*) dst=./$dst;;
+ esac
+
+ # If destination is a directory, append the input filename; won't work
+ # if double slashes aren't ignored.
+ if test -d "$dst"; then
+ if test -n "$no_target_directory"; then
+ echo "$0: $dst_arg: Is a directory" >&2
+ exit 1
+ fi
+ dstdir=$dst
+ dst=$dstdir/`basename "$src"`
+ dstdir_status=0
+ else
+ # Prefer dirname, but fall back on a substitute if dirname fails.
+ dstdir=`
+ (dirname "$dst") 2>/dev/null ||
+ expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$dst" : 'X\(//\)[^/]' \| \
+ X"$dst" : 'X\(//\)$' \| \
+ X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
+ echo X"$dst" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'
+ `
+
+ test -d "$dstdir"
+ dstdir_status=$?
+ fi
+ fi
+
+ obsolete_mkdir_used=false
+
+ if test $dstdir_status != 0; then
+ case $posix_mkdir in
+ '')
+ # Create intermediate dirs using mode 755 as modified by the umask.
+ # This is like FreeBSD 'install' as of 1997-10-28.
+ umask=`umask`
+ case $stripcmd.$umask in
+ # Optimize common cases.
+ *[2367][2367]) mkdir_umask=$umask;;
+ .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+ *[0-7])
+ mkdir_umask=`expr $umask + 22 \
+ - $umask % 100 % 40 + $umask % 20 \
+ - $umask % 10 % 4 + $umask % 2
+ `;;
+ *) mkdir_umask=$umask,go-w;;
+ esac
+
+ # With -d, create the new directory with the user-specified mode.
+ # Otherwise, rely on $mkdir_umask.
+ if test -n "$dir_arg"; then
+ mkdir_mode=-m$mode
+ else
+ mkdir_mode=
+ fi
+
+ posix_mkdir=false
+ case $umask in
+ *[123567][0-7][0-7])
+ # POSIX mkdir -p sets u+wx bits regardless of umask, which
+ # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
+ ;;
+ *)
+ tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
+
+ if (umask $mkdir_umask &&
+ exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
+ then
+ if test -z "$dir_arg" || {
+ # Check for POSIX incompatibilities with -m.
+ # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+ # other-writeable bit of parent directory when it shouldn't.
+ # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+ ls_ld_tmpdir=`ls -ld "$tmpdir"`
+ case $ls_ld_tmpdir in
+ d????-?r-*) different_mode=700;;
+ d????-?--*) different_mode=755;;
+ *) false;;
+ esac &&
+ $mkdirprog -m$different_mode -p -- "$tmpdir" && {
+ ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
+ test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
+ }
+ }
+ then posix_mkdir=:
+ fi
+ rmdir "$tmpdir/d" "$tmpdir"
+ else
+ # Remove any dirs left behind by ancient mkdir implementations.
+ rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
+ fi
+ trap '' 0;;
+ esac;;
+ esac
+
+ if
+ $posix_mkdir && (
+ umask $mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
+ )
+ then :
+ else
+
+ # The umask is ridiculous, or mkdir does not conform to POSIX,
+ # or it failed possibly due to a race condition. Create the
+ # directory the slow way, step by step, checking for races as we go.
+
+ case $dstdir in
+ /*) prefix='/';;
+ -*) prefix='./';;
+ *) prefix='';;
+ esac
+
+ eval "$initialize_posix_glob"
+
+ oIFS=$IFS
+ IFS=/
+ $posix_glob set -f
+ set fnord $dstdir
+ shift
+ $posix_glob set +f
+ IFS=$oIFS
+
+ prefixes=
+
+ for d
+ do
+ test -z "$d" && continue
+
+ prefix=$prefix$d
+ if test -d "$prefix"; then
+ prefixes=
+ else
+ if $posix_mkdir; then
+ (umask=$mkdir_umask &&
+ $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
+ # Don't fail if two instances are running concurrently.
+ test -d "$prefix" || exit 1
+ else
+ case $prefix in
+ *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
+ *) qprefix=$prefix;;
+ esac
+ prefixes="$prefixes '$qprefix'"
+ fi
+ fi
+ prefix=$prefix/
+ done
+
+ if test -n "$prefixes"; then
+ # Don't fail if two instances are running concurrently.
+ (umask $mkdir_umask &&
+ eval "\$doit_exec \$mkdirprog $prefixes") ||
+ test -d "$dstdir" || exit 1
+ obsolete_mkdir_used=true
+ fi
+ fi
+ fi
+
+ if test -n "$dir_arg"; then
+ { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
+ { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
+ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
+ else
+
+ # Make a couple of temp file names in the proper directory.
+ dsttmp=$dstdir/_inst.$$_
+ rmtmp=$dstdir/_rm.$$_
+
+ # Trap to clean up those temp files at exit.
+ trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
+
+ # Copy the file name to the temp name.
+ (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
+
+ # and set any options; do chmod last to preserve setuid bits.
+ #
+ # If any of these fail, we abort the whole thing. If we want to
+ # ignore errors from any of these, just make sure not to ignore
+ # errors from the above "$doit $cpprog $src $dsttmp" command.
+ #
+ { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
+ { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
+ { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
+ { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
+
+ # If -C, don't bother to copy if it wouldn't change the file.
+ if $copy_on_change &&
+ old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
+ new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
+
+ eval "$initialize_posix_glob" &&
+ $posix_glob set -f &&
+ set X $old && old=:$2:$4:$5:$6 &&
+ set X $new && new=:$2:$4:$5:$6 &&
+ $posix_glob set +f &&
+
+ test "$old" = "$new" &&
+ $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
+ then
+ rm -f "$dsttmp"
+ else
+ # Rename the file to the real destination.
+ $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
+
+ # The rename failed, perhaps because mv can't rename something else
+ # to itself, or perhaps because mv is so ancient that it does not
+ # support -f.
+ {
+ # Now remove or move aside any old file at destination location.
+ # We try this two ways since rm can't unlink itself on some
+ # systems and the destination file might be busy for other
+ # reasons. In this case, the final cleanup might fail but the new
+ # file should still install successfully.
+ {
+ test ! -f "$dst" ||
+ $doit $rmcmd -f "$dst" 2>/dev/null ||
+ { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
+ { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
+ } ||
+ { echo "$0: cannot unlink or rename $dst" >&2
+ (exit 1); exit 1
+ }
+ } &&
+
+ # Now rename the file to the real destination.
+ $doit $mvcmd "$dsttmp" "$dst"
+ }
+ fi || exit 1
+
+ trap '' 0
+ fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/ltmain.sh b/ltmain.sh
new file mode 100755
index 0000000..d88da2c
--- /dev/null
+++ b/ltmain.sh
@@ -0,0 +1,8413 @@
+# Generated from ltmain.m4sh.
+
+# ltmain.sh (GNU libtool) 2.2.6b
+# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
+
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+# GNU Libtool is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html,
+# or obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+# Usage: $progname [OPTION]... [MODE-ARG]...
+#
+# Provide generalized library-building support services.
+#
+# --config show all configuration variables
+# --debug enable verbose shell tracing
+# -n, --dry-run display commands without modifying any files
+# --features display basic configuration information and exit
+# --mode=MODE use operation mode MODE
+# --preserve-dup-deps don't remove duplicate dependency libraries
+# --quiet, --silent don't print informational messages
+# --tag=TAG use configuration variables from tag TAG
+# -v, --verbose print informational messages (default)
+# --version print version information
+# -h, --help print short or long help message
+#
+# MODE must be one of the following:
+#
+# clean remove files from the build directory
+# compile compile a source file into a libtool object
+# execute automatically set library path, then run a program
+# finish complete the installation of libtool libraries
+# install install libraries or executables
+# link create a library or an executable
+# uninstall remove libraries from an installed directory
+#
+# MODE-ARGS vary depending on the MODE.
+# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
+#
+# When reporting a bug, please describe a test case to reproduce it and
+# include the following information:
+#
+# host-triplet: $host
+# shell: $SHELL
+# compiler: $LTCC
+# compiler flags: $LTCFLAGS
+# linker: $LD (gnu? $with_gnu_ld)
+# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2
+# automake: $automake_version
+# autoconf: $autoconf_version
+#
+# Report bugs to <bug-libtool@gnu.org>.
+
+PROGRAM=ltmain.sh
+PACKAGE=libtool
+VERSION="2.2.6b Debian-2.2.6b-2"
+TIMESTAMP=""
+package_revision=1.3017
+
+# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# NLS nuisances: We save the old values to restore during execute mode.
+# Only set LANG and LC_ALL to C if already set.
+# These must not be set unconditionally because not all systems understand
+# e.g. LANG=C (notably SCO).
+lt_user_locale=
+lt_safe_locale=
+for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+do
+ eval "if test \"\${$lt_var+set}\" = set; then
+ save_$lt_var=\$$lt_var
+ $lt_var=C
+ export $lt_var
+ lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
+ lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
+ fi"
+done
+
+$lt_unset CDPATH
+
+
+
+
+
+: ${CP="cp -f"}
+: ${ECHO="echo"}
+: ${EGREP="/bin/grep -E"}
+: ${FGREP="/bin/grep -F"}
+: ${GREP="/bin/grep"}
+: ${LN_S="ln -s"}
+: ${MAKE="make"}
+: ${MKDIR="mkdir"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+: ${SED="/bin/sed"}
+: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
+: ${Xsed="$SED -e 1s/^X//"}
+
+# Global variables:
+EXIT_SUCCESS=0
+EXIT_FAILURE=1
+EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
+EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
+
+exit_status=$EXIT_SUCCESS
+
+# Make sure IFS has a sensible default
+lt_nl='
+'
+IFS=" $lt_nl"
+
+dirname="s,/[^/]*$,,"
+basename="s,^.*/,,"
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+# Generated shell functions inserted here.
+
+# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
+# is ksh but when the shell is invoked as "sh" and the current value of
+# the _XPG environment variable is not equal to 1 (one), the special
+# positional parameter $0, within a function call, is the name of the
+# function.
+progpath="$0"
+
+# The name of this program:
+# In the unlikely event $progname began with a '-', it would play havoc with
+# func_echo (imagine progname=-n), so we prepend ./ in that case:
+func_dirname_and_basename "$progpath"
+progname=$func_basename_result
+case $progname in
+ -*) progname=./$progname ;;
+esac
+
+# Make sure we have an absolute path for reexecution:
+case $progpath in
+ [\\/]*|[A-Za-z]:\\*) ;;
+ *[\\/]*)
+ progdir=$func_dirname_result
+ progdir=`cd "$progdir" && pwd`
+ progpath="$progdir/$progname"
+ ;;
+ *)
+ save_IFS="$IFS"
+ IFS=:
+ for progdir in $PATH; do
+ IFS="$save_IFS"
+ test -x "$progdir/$progname" && break
+ done
+ IFS="$save_IFS"
+ test -n "$progdir" || progdir=`pwd`
+ progpath="$progdir/$progname"
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed="${SED}"' -e 1s/^X//'
+sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\(["`\\]\)/\\\1/g'
+
+# Re-`\' parameter expansions in output of double_quote_subst that were
+# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
+# in input to double_quote_subst, that '$' was protected from expansion.
+# Since each input `\' is now two `\'s, look for any number of runs of
+# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
+bs='\\'
+bs2='\\\\'
+bs4='\\\\\\\\'
+dollar='\$'
+sed_double_backslash="\
+ s/$bs4/&\\
+/g
+ s/^$bs2$dollar/$bs&/
+ s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
+ s/\n//g"
+
+# Standard options:
+opt_dry_run=false
+opt_help=false
+opt_quiet=false
+opt_verbose=false
+opt_warning=:
+
+# func_echo arg...
+# Echo program name prefixed message, along with the current mode
+# name if it has been set yet.
+func_echo ()
+{
+ $ECHO "$progname${mode+: }$mode: $*"
+}
+
+# func_verbose arg...
+# Echo program name prefixed message in verbose mode only.
+func_verbose ()
+{
+ $opt_verbose && func_echo ${1+"$@"}
+
+ # A bug in bash halts the script if the last line of a function
+ # fails when set -e is in force, so we need another command to
+ # work around that:
+ :
+}
+
+# func_error arg...
+# Echo program name prefixed message to standard error.
+func_error ()
+{
+ $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
+}
+
+# func_warning arg...
+# Echo program name prefixed warning message to standard error.
+func_warning ()
+{
+ $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
+
+ # bash bug again:
+ :
+}
+
+# func_fatal_error arg...
+# Echo program name prefixed message to standard error, and exit.
+func_fatal_error ()
+{
+ func_error ${1+"$@"}
+ exit $EXIT_FAILURE
+}
+
+# func_fatal_help arg...
+# Echo program name prefixed message to standard error, followed by
+# a help hint, and exit.
+func_fatal_help ()
+{
+ func_error ${1+"$@"}
+ func_fatal_error "$help"
+}
+help="Try \`$progname --help' for more information." ## default
+
+
+# func_grep expression filename
+# Check whether EXPRESSION matches any line of FILENAME, without output.
+func_grep ()
+{
+ $GREP "$1" "$2" >/dev/null 2>&1
+}
+
+
+# func_mkdir_p directory-path
+# Make sure the entire path to DIRECTORY-PATH is available.
+func_mkdir_p ()
+{
+ my_directory_path="$1"
+ my_dir_list=
+
+ if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
+
+ # Protect directory names starting with `-'
+ case $my_directory_path in
+ -*) my_directory_path="./$my_directory_path" ;;
+ esac
+
+ # While some portion of DIR does not yet exist...
+ while test ! -d "$my_directory_path"; do
+ # ...make a list in topmost first order. Use a colon delimited
+ # list incase some portion of path contains whitespace.
+ my_dir_list="$my_directory_path:$my_dir_list"
+
+ # If the last portion added has no slash in it, the list is done
+ case $my_directory_path in */*) ;; *) break ;; esac
+
+ # ...otherwise throw away the child directory and loop
+ my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
+ done
+ my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
+
+ save_mkdir_p_IFS="$IFS"; IFS=':'
+ for my_dir in $my_dir_list; do
+ IFS="$save_mkdir_p_IFS"
+ # mkdir can fail with a `File exist' error if two processes
+ # try to create one of the directories concurrently. Don't
+ # stop in that case!
+ $MKDIR "$my_dir" 2>/dev/null || :
+ done
+ IFS="$save_mkdir_p_IFS"
+
+ # Bail out if we (or some other process) failed to create a directory.
+ test -d "$my_directory_path" || \
+ func_fatal_error "Failed to create \`$1'"
+ fi
+}
+
+
+# func_mktempdir [string]
+# Make a temporary directory that won't clash with other running
+# libtool processes, and avoids race conditions if possible. If
+# given, STRING is the basename for that directory.
+func_mktempdir ()
+{
+ my_template="${TMPDIR-/tmp}/${1-$progname}"
+
+ if test "$opt_dry_run" = ":"; then
+ # Return a directory name, but don't create it in dry-run mode
+ my_tmpdir="${my_template}-$$"
+ else
+
+ # If mktemp works, use that first and foremost
+ my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
+
+ if test ! -d "$my_tmpdir"; then
+ # Failing that, at least try and use $RANDOM to avoid a race
+ my_tmpdir="${my_template}-${RANDOM-0}$$"
+
+ save_mktempdir_umask=`umask`
+ umask 0077
+ $MKDIR "$my_tmpdir"
+ umask $save_mktempdir_umask
+ fi
+
+ # If we're not in dry-run mode, bomb out on failure
+ test -d "$my_tmpdir" || \
+ func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
+ fi
+
+ $ECHO "X$my_tmpdir" | $Xsed
+}
+
+
+# func_quote_for_eval arg
+# Aesthetically quote ARG to be evaled later.
+# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
+# is double-quoted, suitable for a subsequent eval, whereas
+# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
+# which are still active within double quotes backslashified.
+func_quote_for_eval ()
+{
+ case $1 in
+ *[\\\`\"\$]*)
+ func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
+ *)
+ func_quote_for_eval_unquoted_result="$1" ;;
+ esac
+
+ case $func_quote_for_eval_unquoted_result in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting, command substitution and and variable
+ # expansion for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
+ ;;
+ *)
+ func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
+ esac
+}
+
+
+# func_quote_for_expand arg
+# Aesthetically quote ARG to be evaled later; same as above,
+# but do not quote variable references.
+func_quote_for_expand ()
+{
+ case $1 in
+ *[\\\`\"]*)
+ my_arg=`$ECHO "X$1" | $Xsed \
+ -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
+ *)
+ my_arg="$1" ;;
+ esac
+
+ case $my_arg in
+ # Double-quote args containing shell metacharacters to delay
+ # word splitting and command substitution for a subsequent eval.
+ # Many Bourne shells cannot handle close brackets correctly
+ # in scan sets, so we specify it separately.
+ *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
+ my_arg="\"$my_arg\""
+ ;;
+ esac
+
+ func_quote_for_expand_result="$my_arg"
+}
+
+
+# func_show_eval cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it.
+func_show_eval ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$my_cmd"
+ my_status=$?
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+# func_show_eval_locale cmd [fail_exp]
+# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
+# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
+# is given, then evaluate it. Use the saved locale for evaluation.
+func_show_eval_locale ()
+{
+ my_cmd="$1"
+ my_fail_exp="${2-:}"
+
+ ${opt_silent-false} || {
+ func_quote_for_expand "$my_cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+
+ if ${opt_dry_run-false}; then :; else
+ eval "$lt_user_locale
+ $my_cmd"
+ my_status=$?
+ eval "$lt_safe_locale"
+ if test "$my_status" -eq 0; then :; else
+ eval "(exit $my_status); $my_fail_exp"
+ fi
+ fi
+}
+
+
+
+
+
+# func_version
+# Echo version message to standard output and exit.
+func_version ()
+{
+ $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
+ s/^# //
+ s/^# *$//
+ s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_usage
+# Echo short help message to standard output and exit.
+func_usage ()
+{
+ $SED -n '/^# Usage:/,/# -h/ {
+ s/^# //
+ s/^# *$//
+ s/\$progname/'$progname'/
+ p
+ }' < "$progpath"
+ $ECHO
+ $ECHO "run \`$progname --help | more' for full usage"
+ exit $?
+}
+
+# func_help
+# Echo long help message to standard output and exit.
+func_help ()
+{
+ $SED -n '/^# Usage:/,/# Report bugs to/ {
+ s/^# //
+ s/^# *$//
+ s*\$progname*'$progname'*
+ s*\$host*'"$host"'*
+ s*\$SHELL*'"$SHELL"'*
+ s*\$LTCC*'"$LTCC"'*
+ s*\$LTCFLAGS*'"$LTCFLAGS"'*
+ s*\$LD*'"$LD"'*
+ s/\$with_gnu_ld/'"$with_gnu_ld"'/
+ s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
+ s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
+ p
+ }' < "$progpath"
+ exit $?
+}
+
+# func_missing_arg argname
+# Echo program name prefixed message to standard error and set global
+# exit_cmd.
+func_missing_arg ()
+{
+ func_error "missing argument for $1"
+ exit_cmd=exit
+}
+
+exit_cmd=:
+
+
+
+
+
+# Check that we have a working $ECHO.
+if test "X$1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X$1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell, and then maybe $ECHO will work.
+ exec $SHELL "$progpath" --no-reexec ${1+"$@"}
+fi
+
+if test "X$1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<EOF
+$*
+EOF
+ exit $EXIT_SUCCESS
+fi
+
+magic="%%%MAGIC variable%%%"
+magic_exe="%%%MAGIC EXE variable%%%"
+
+# Global variables.
+# $mode is unset
+nonopt=
+execute_dlfiles=
+preserve_args=
+lo2o="s/\\.lo\$/.${objext}/"
+o2lo="s/\\.${objext}\$/.lo/"
+extracted_archives=
+extracted_serial=0
+
+opt_dry_run=false
+opt_duplicate_deps=false
+opt_silent=false
+opt_debug=:
+
+# If this variable is set in any of the actions, the command in it
+# will be execed at the end. This prevents here-documents from being
+# left over by shells.
+exec_cmd=
+
+# func_fatal_configuration arg...
+# Echo program name prefixed message to standard error, followed by
+# a configuration failure hint, and exit.
+func_fatal_configuration ()
+{
+ func_error ${1+"$@"}
+ func_error "See the $PACKAGE documentation for more information."
+ func_fatal_error "Fatal configuration error."
+}
+
+
+# func_config
+# Display the configuration for all the tags in this script.
+func_config ()
+{
+ re_begincf='^# ### BEGIN LIBTOOL'
+ re_endcf='^# ### END LIBTOOL'
+
+ # Default configuration.
+ $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
+
+ # Now print the configurations for the tags.
+ for tagname in $taglist; do
+ $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
+ done
+
+ exit $?
+}
+
+# func_features
+# Display the features supported by this script.
+func_features ()
+{
+ $ECHO "host: $host"
+ if test "$build_libtool_libs" = yes; then
+ $ECHO "enable shared libraries"
+ else
+ $ECHO "disable shared libraries"
+ fi
+ if test "$build_old_libs" = yes; then
+ $ECHO "enable static libraries"
+ else
+ $ECHO "disable static libraries"
+ fi
+
+ exit $?
+}
+
+# func_enable_tag tagname
+# Verify that TAGNAME is valid, and either flag an error and exit, or
+# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
+# variable here.
+func_enable_tag ()
+{
+ # Global variable:
+ tagname="$1"
+
+ re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
+ re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
+ sed_extractcf="/$re_begincf/,/$re_endcf/p"
+
+ # Validate tagname.
+ case $tagname in
+ *[!-_A-Za-z0-9,/]*)
+ func_fatal_error "invalid tag name: $tagname"
+ ;;
+ esac
+
+ # Don't test for the "default" C tag, as we know it's
+ # there but not specially marked.
+ case $tagname in
+ CC) ;;
+ *)
+ if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
+ taglist="$taglist $tagname"
+
+ # Evaluate the configuration. Be careful to quote the path
+ # and the sed script, to avoid splitting on whitespace, but
+ # also don't use non-portable quotes within backquotes within
+ # quotes we have to do it in 2 steps:
+ extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
+ eval "$extractedcf"
+ else
+ func_error "ignoring unknown tag $tagname"
+ fi
+ ;;
+ esac
+}
+
+# Parse options once, thoroughly. This comes as soon as possible in
+# the script to make things like `libtool --version' happen quickly.
+{
+
+ # Shorthand for --mode=foo, only valid as the first argument
+ case $1 in
+ clean|clea|cle|cl)
+ shift; set dummy --mode clean ${1+"$@"}; shift
+ ;;
+ compile|compil|compi|comp|com|co|c)
+ shift; set dummy --mode compile ${1+"$@"}; shift
+ ;;
+ execute|execut|execu|exec|exe|ex|e)
+ shift; set dummy --mode execute ${1+"$@"}; shift
+ ;;
+ finish|finis|fini|fin|fi|f)
+ shift; set dummy --mode finish ${1+"$@"}; shift
+ ;;
+ install|instal|insta|inst|ins|in|i)
+ shift; set dummy --mode install ${1+"$@"}; shift
+ ;;
+ link|lin|li|l)
+ shift; set dummy --mode link ${1+"$@"}; shift
+ ;;
+ uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
+ shift; set dummy --mode uninstall ${1+"$@"}; shift
+ ;;
+ esac
+
+ # Parse non-mode specific arguments:
+ while test "$#" -gt 0; do
+ opt="$1"
+ shift
+
+ case $opt in
+ --config) func_config ;;
+
+ --debug) preserve_args="$preserve_args $opt"
+ func_echo "enabling shell trace mode"
+ opt_debug='set -x'
+ $opt_debug
+ ;;
+
+ -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ execute_dlfiles="$execute_dlfiles $1"
+ shift
+ ;;
+
+ --dry-run | -n) opt_dry_run=: ;;
+ --features) func_features ;;
+ --finish) mode="finish" ;;
+
+ --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ case $1 in
+ # Valid mode arguments:
+ clean) ;;
+ compile) ;;
+ execute) ;;
+ finish) ;;
+ install) ;;
+ link) ;;
+ relink) ;;
+ uninstall) ;;
+
+ # Catch anything else as an error
+ *) func_error "invalid argument for $opt"
+ exit_cmd=exit
+ break
+ ;;
+ esac
+
+ mode="$1"
+ shift
+ ;;
+
+ --preserve-dup-deps)
+ opt_duplicate_deps=: ;;
+
+ --quiet|--silent) preserve_args="$preserve_args $opt"
+ opt_silent=:
+ ;;
+
+ --verbose| -v) preserve_args="$preserve_args $opt"
+ opt_silent=false
+ ;;
+
+ --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
+ preserve_args="$preserve_args $opt $1"
+ func_enable_tag "$1" # tagname is set here
+ shift
+ ;;
+
+ # Separate optargs to long options:
+ -dlopen=*|--mode=*|--tag=*)
+ func_opt_split "$opt"
+ set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
+ shift
+ ;;
+
+ -\?|-h) func_usage ;;
+ --help) opt_help=: ;;
+ --version) func_version ;;
+
+ -*) func_fatal_help "unrecognized option \`$opt'" ;;
+
+ *) nonopt="$opt"
+ break
+ ;;
+ esac
+ done
+
+
+ case $host in
+ *cygwin* | *mingw* | *pw32* | *cegcc*)
+ # don't eliminate duplications in $postdeps and $predeps
+ opt_duplicate_compiler_generated_deps=:
+ ;;
+ *)
+ opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
+ ;;
+ esac
+
+ # Having warned about all mis-specified options, bail out if
+ # anything was wrong.
+ $exit_cmd $EXIT_FAILURE
+}
+
+# func_check_version_match
+# Ensure that we are using m4 macros, and libtool script from the same
+# release of libtool.
+func_check_version_match ()
+{
+ if test "$package_revision" != "$macro_revision"; then
+ if test "$VERSION" != "$macro_version"; then
+ if test -z "$macro_version"; then
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from an older release.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
+$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
+$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
+$progname: and run autoconf again.
+_LT_EOF
+ fi
+ else
+ cat >&2 <<_LT_EOF
+$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
+$progname: but the definition of this LT_INIT comes from revision $macro_revision.
+$progname: You should recreate aclocal.m4 with macros from revision $package_revision
+$progname: of $PACKAGE $VERSION and run autoconf again.
+_LT_EOF
+ fi
+
+ exit $EXIT_MISMATCH
+ fi
+}
+
+
+## ----------- ##
+## Main. ##
+## ----------- ##
+
+$opt_help || {
+ # Sanity checks first:
+ func_check_version_match
+
+ if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
+ func_fatal_configuration "not configured to build any kind of library"
+ fi
+
+ test -z "$mode" && func_fatal_error "error: you must specify a MODE."
+
+
+ # Darwin sucks
+ eval std_shrext=\"$shrext_cmds\"
+
+
+ # Only execute mode is allowed to have -dlopen flags.
+ if test -n "$execute_dlfiles" && test "$mode" != execute; then
+ func_error "unrecognized option \`-dlopen'"
+ $ECHO "$help" 1>&2
+ exit $EXIT_FAILURE
+ fi
+
+ # Change the help message to a mode-specific one.
+ generic_help="$help"
+ help="Try \`$progname --help --mode=$mode' for more information."
+}
+
+
+# func_lalib_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_lalib_p ()
+{
+ test -f "$1" &&
+ $SED -e 4q "$1" 2>/dev/null \
+ | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
+}
+
+# func_lalib_unsafe_p file
+# True iff FILE is a libtool `.la' library or `.lo' object file.
+# This function implements the same check as func_lalib_p without
+# resorting to external programs. To this end, it redirects stdin and
+# closes it afterwards, without saving the original file descriptor.
+# As a safety measure, use it only where a negative result would be
+# fatal anyway. Works if `file' does not exist.
+func_lalib_unsafe_p ()
+{
+ lalib_p=no
+ if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
+ for lalib_p_l in 1 2 3 4
+ do
+ read lalib_p_line
+ case "$lalib_p_line" in
+ \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
+ esac
+ done
+ exec 0<&5 5<&-
+ fi
+ test "$lalib_p" = yes
+}
+
+# func_ltwrapper_script_p file
+# True iff FILE is a libtool wrapper script
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_script_p ()
+{
+ func_lalib_p "$1"
+}
+
+# func_ltwrapper_executable_p file
+# True iff FILE is a libtool wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_executable_p ()
+{
+ func_ltwrapper_exec_suffix=
+ case $1 in
+ *.exe) ;;
+ *) func_ltwrapper_exec_suffix=.exe ;;
+ esac
+ $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
+}
+
+# func_ltwrapper_scriptname file
+# Assumes file is an ltwrapper_executable
+# uses $file to determine the appropriate filename for a
+# temporary ltwrapper_script.
+func_ltwrapper_scriptname ()
+{
+ func_ltwrapper_scriptname_result=""
+ if func_ltwrapper_executable_p "$1"; then
+ func_dirname_and_basename "$1" "" "."
+ func_stripname '' '.exe' "$func_basename_result"
+ func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
+ fi
+}
+
+# func_ltwrapper_p file
+# True iff FILE is a libtool wrapper script or wrapper executable
+# This function is only a basic sanity check; it will hardly flush out
+# determined imposters.
+func_ltwrapper_p ()
+{
+ func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
+}
+
+
+# func_execute_cmds commands fail_cmd
+# Execute tilde-delimited COMMANDS.
+# If FAIL_CMD is given, eval that upon failure.
+# FAIL_CMD may read-access the current command in variable CMD!
+func_execute_cmds ()
+{
+ $opt_debug
+ save_ifs=$IFS; IFS='~'
+ for cmd in $1; do
+ IFS=$save_ifs
+ eval cmd=\"$cmd\"
+ func_show_eval "$cmd" "${2-:}"
+ done
+ IFS=$save_ifs
+}
+
+
+# func_source file
+# Source FILE, adding directory component if necessary.
+# Note that it is not necessary on cygwin/mingw to append a dot to
+# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
+# behavior happens only for exec(3), not for open(2)! Also, sourcing
+# `FILE.' does not work on cygwin managed mounts.
+func_source ()
+{
+ $opt_debug
+ case $1 in
+ */* | *\\*) . "$1" ;;
+ *) . "./$1" ;;
+ esac
+}
+
+
+# func_infer_tag arg
+# Infer tagged configuration to use if any are available and
+# if one wasn't chosen via the "--tag" command line option.
+# Only attempt this if the compiler in the base compile
+# command doesn't match the default compiler.
+# arg is usually of the form 'gcc ...'
+func_infer_tag ()
+{
+ $opt_debug
+ if test -n "$available_tags" && test -z "$tagname"; then
+ CC_quoted=
+ for arg in $CC; do
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case $@ in
+ # Blanks in the command may have been stripped by the calling shell,
+ # but not from the CC environment variable when configure was run.
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
+ # Blanks at the start of $base_compile will cause this to fail
+ # if we don't check for them as well.
+ *)
+ for z in $available_tags; do
+ if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
+ # Evaluate the configuration.
+ eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
+ CC_quoted=
+ for arg in $CC; do
+ # Double-quote args containing other shell metacharacters.
+ func_quote_for_eval "$arg"
+ CC_quoted="$CC_quoted $func_quote_for_eval_result"
+ done
+ case "$@ " in
+ " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
+ # The compiler in the base compile command matches
+ # the one in the tagged configuration.
+ # Assume this is the tagged configuration we want.
+ tagname=$z
+ break
+ ;;
+ esac
+ fi
+ done
+ # If $tagname still isn't set, then no tagged configuration
+ # was found and let the user know that the "--tag" command
+ # line option must be used.
+ if test -z "$tagname"; then
+ func_echo "unable to infer tagged configuration"
+ func_fatal_error "specify a tag with \`--tag'"
+# else
+# func_verbose "using $tagname tagged configuration"
+ fi
+ ;;
+ esac
+ fi
+}
+
+
+
+# func_write_libtool_object output_name pic_name nonpic_name
+# Create a libtool object file (analogous to a ".la" file),
+# but don't create it if we're doing a dry run.
+func_write_libtool_object ()
+{
+ write_libobj=${1}
+ if test "$build_libtool_libs" = yes; then
+ write_lobj=\'${2}\'
+ else
+ write_lobj=none
+ fi
+
+ if test "$build_old_libs" = yes; then
+ write_oldobj=\'${3}\'
+ else
+ write_oldobj=none
+ fi
+
+ $opt_dry_run || {
+ cat >${write_libobj}T <<EOF
+# $write_libobj - a libtool object file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# Name of the PIC object.
+pic_object=$write_lobj
+
+# Name of the non-PIC object
+non_pic_object=$write_oldobj
+
+EOF
+ $MV "${write_libobj}T" "${write_libobj}"
+ }
+}
+
+# func_mode_compile arg...
+func_mode_compile ()
+{
+ $opt_debug
+ # Get the compilation command and the source file.
+ base_compile=
+ srcfile="$nonopt" # always keep a non-empty value in "srcfile"
+ suppress_opt=yes
+ suppress_output=
+ arg_mode=normal
+ libobj=
+ later=
+ pie_flag=
+
+ for arg
+ do
+ case $arg_mode in
+ arg )
+ # do not "continue". Instead, add this to base_compile
+ lastarg="$arg"
+ arg_mode=normal
+ ;;
+
+ target )
+ libobj="$arg"
+ arg_mode=normal
+ continue
+ ;;
+
+ normal )
+ # Accept any command-line options.
+ case $arg in
+ -o)
+ test -n "$libobj" && \
+ func_fatal_error "you cannot specify \`-o' more than once"
+ arg_mode=target
+ continue
+ ;;
+
+ -pie | -fpie | -fPIE)
+ pie_flag="$pie_flag $arg"
+ continue
+ ;;
+
+ -shared | -static | -prefer-pic | -prefer-non-pic)
+ later="$later $arg"
+ continue
+ ;;
+
+ -no-suppress)
+ suppress_opt=no
+ continue
+ ;;
+
+ -Xcompiler)
+ arg_mode=arg # the next one goes into the "base_compile" arg list
+ continue # The current "srcfile" will either be retained or
+ ;; # replaced later. I would guess that would be a bug.
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ lastarg=
+ save_ifs="$IFS"; IFS=','
+ for arg in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$arg"
+ lastarg="$lastarg $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$lastarg"
+ lastarg=$func_stripname_result
+
+ # Add the arguments to base_compile.
+ base_compile="$base_compile $lastarg"
+ continue
+ ;;
+
+ *)
+ # Accept the current argument as the source file.
+ # The previous "srcfile" becomes the current argument.
+ #
+ lastarg="$srcfile"
+ srcfile="$arg"
+ ;;
+ esac # case $arg
+ ;;
+ esac # case $arg_mode
+
+ # Aesthetically quote the previous argument.
+ func_quote_for_eval "$lastarg"
+ base_compile="$base_compile $func_quote_for_eval_result"
+ done # for arg
+
+ case $arg_mode in
+ arg)
+ func_fatal_error "you must specify an argument for -Xcompile"
+ ;;
+ target)
+ func_fatal_error "you must specify a target with \`-o'"
+ ;;
+ *)
+ # Get the name of the library object.
+ test -z "$libobj" && {
+ func_basename "$srcfile"
+ libobj="$func_basename_result"
+ }
+ ;;
+ esac
+
+ # Recognize several different file suffixes.
+ # If the user specifies -o file.o, it is replaced with file.lo
+ case $libobj in
+ *.[cCFSifmso] | \
+ *.ada | *.adb | *.ads | *.asm | \
+ *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
+ *.[fF][09]? | *.for | *.java | *.obj | *.sx)
+ func_xform "$libobj"
+ libobj=$func_xform_result
+ ;;
+ esac
+
+ case $libobj in
+ *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
+ *)
+ func_fatal_error "cannot determine name of library object from \`$libobj'"
+ ;;
+ esac
+
+ func_infer_tag $base_compile
+
+ for arg in $later; do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ continue
+ ;;
+
+ -static)
+ build_libtool_libs=no
+ build_old_libs=yes
+ continue
+ ;;
+
+ -prefer-pic)
+ pic_mode=yes
+ continue
+ ;;
+
+ -prefer-non-pic)
+ pic_mode=no
+ continue
+ ;;
+ esac
+ done
+
+ func_quote_for_eval "$libobj"
+ test "X$libobj" != "X$func_quote_for_eval_result" \
+ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
+ && func_warning "libobj name \`$libobj' may not contain shell special characters."
+ func_dirname_and_basename "$obj" "/" ""
+ objname="$func_basename_result"
+ xdir="$func_dirname_result"
+ lobj=${xdir}$objdir/$objname
+
+ test -z "$base_compile" && \
+ func_fatal_help "you must specify a compilation command"
+
+ # Delete any leftover library objects.
+ if test "$build_old_libs" = yes; then
+ removelist="$obj $lobj $libobj ${libobj}T"
+ else
+ removelist="$lobj $libobj ${libobj}T"
+ fi
+
+ # On Cygwin there's no "real" PIC flag so we must build both object types
+ case $host_os in
+ cygwin* | mingw* | pw32* | os2* | cegcc*)
+ pic_mode=default
+ ;;
+ esac
+ if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
+ # non-PIC code in shared libraries is not supported
+ pic_mode=default
+ fi
+
+ # Calculate the filename of the output object if compiler does
+ # not support -o with -c
+ if test "$compiler_c_o" = no; then
+ output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
+ lockfile="$output_obj.lock"
+ else
+ output_obj=
+ need_locks=no
+ lockfile=
+ fi
+
+ # Lock this critical section if it is needed
+ # We use this script file to make the link, it avoids creating a new file
+ if test "$need_locks" = yes; then
+ until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
+ func_echo "Waiting for $lockfile to be removed"
+ sleep 2
+ done
+ elif test "$need_locks" = warn; then
+ if test -f "$lockfile"; then
+ $ECHO "\
+*** ERROR, $lockfile exists and contains:
+`cat $lockfile 2>/dev/null`
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+ removelist="$removelist $output_obj"
+ $ECHO "$srcfile" > "$lockfile"
+ fi
+
+ $opt_dry_run || $RM $removelist
+ removelist="$removelist $lockfile"
+ trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
+
+ if test -n "$fix_srcfile_path"; then
+ eval srcfile=\"$fix_srcfile_path\"
+ fi
+ func_quote_for_eval "$srcfile"
+ qsrcfile=$func_quote_for_eval_result
+
+ # Only build a PIC object if we are building libtool libraries.
+ if test "$build_libtool_libs" = yes; then
+ # Without this assignment, base_compile gets emptied.
+ fbsd_hideous_sh_bug=$base_compile
+
+ if test "$pic_mode" != no; then
+ command="$base_compile $qsrcfile $pic_flag"
+ else
+ # Don't build PIC code
+ command="$base_compile $qsrcfile"
+ fi
+
+ func_mkdir_p "$xdir$objdir"
+
+ if test -z "$output_obj"; then
+ # Place PIC objects in $objdir
+ command="$command -o $lobj"
+ fi
+
+ func_show_eval_locale "$command" \
+ 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed, then go on to compile the next one
+ if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
+ func_show_eval '$MV "$output_obj" "$lobj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+
+ # Allow error messages only from the first compilation.
+ if test "$suppress_opt" = yes; then
+ suppress_output=' >/dev/null 2>&1'
+ fi
+ fi
+
+ # Only build a position-dependent object if we build old libraries.
+ if test "$build_old_libs" = yes; then
+ if test "$pic_mode" != yes; then
+ # Don't build PIC code
+ command="$base_compile $qsrcfile$pie_flag"
+ else
+ command="$base_compile $qsrcfile $pic_flag"
+ fi
+ if test "$compiler_c_o" = yes; then
+ command="$command -o $obj"
+ fi
+
+ # Suppress compiler output if we already did a PIC compilation.
+ command="$command$suppress_output"
+ func_show_eval_locale "$command" \
+ '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
+
+ if test "$need_locks" = warn &&
+ test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
+ $ECHO "\
+*** ERROR, $lockfile contains:
+`cat $lockfile 2>/dev/null`
+
+but it should contain:
+$srcfile
+
+This indicates that another process is trying to use the same
+temporary object file, and libtool could not work around it because
+your compiler does not support \`-c' and \`-o' together. If you
+repeat this compilation, it may succeed, by chance, but you had better
+avoid parallel builds (make -j) in this platform, or get a better
+compiler."
+
+ $opt_dry_run || $RM $removelist
+ exit $EXIT_FAILURE
+ fi
+
+ # Just move the object if needed
+ if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
+ func_show_eval '$MV "$output_obj" "$obj"' \
+ 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
+ fi
+ fi
+
+ $opt_dry_run || {
+ func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
+
+ # Unlock the critical section if it was locked
+ if test "$need_locks" != no; then
+ removelist=$lockfile
+ $RM "$lockfile"
+ fi
+ }
+
+ exit $EXIT_SUCCESS
+}
+
+$opt_help || {
+test "$mode" = compile && func_mode_compile ${1+"$@"}
+}
+
+func_mode_help ()
+{
+ # We need to display help for each of the modes.
+ case $mode in
+ "")
+ # Generic help is extracted from the usage comments
+ # at the start of this file.
+ func_help
+ ;;
+
+ clean)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
+
+Remove files from the build directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, object or program, all the files associated
+with it are deleted. Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ compile)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
+
+Compile a source file into a libtool library object.
+
+This mode accepts the following additional options:
+
+ -o OUTPUT-FILE set the output file name to OUTPUT-FILE
+ -no-suppress do not suppress compiler output for multiple passes
+ -prefer-pic try to building PIC objects only
+ -prefer-non-pic try to building non-PIC objects only
+ -shared do not build a \`.o' file suitable for static linking
+ -static only build a \`.o' file suitable for static linking
+
+COMPILE-COMMAND is a command to be used in creating a \`standard' object file
+from the given SOURCEFILE.
+
+The output file name is determined by removing the directory component from
+SOURCEFILE, then substituting the C source code suffix \`.c' with the
+library object suffix, \`.lo'."
+ ;;
+
+ execute)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
+
+Automatically set library path, then run a program.
+
+This mode accepts the following additional options:
+
+ -dlopen FILE add the directory containing FILE to the library path
+
+This mode sets the library path environment variable according to \`-dlopen'
+flags.
+
+If any of the ARGS are libtool executable wrappers, then they are translated
+into their corresponding uninstalled binary, and any of their required library
+directories are added to the library path.
+
+Then, COMMAND is executed, with ARGS as arguments."
+ ;;
+
+ finish)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
+
+Complete the installation of libtool libraries.
+
+Each LIBDIR is a directory that contains libtool libraries.
+
+The commands that this mode executes may require superuser privileges. Use
+the \`--dry-run' option if you just want to see what would be executed."
+ ;;
+
+ install)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
+
+Install executables or libraries.
+
+INSTALL-COMMAND is the installation command. The first component should be
+either the \`install' or \`cp' program.
+
+The following components of INSTALL-COMMAND are treated specially:
+
+ -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
+
+The rest of the components are interpreted as arguments to that command (only
+BSD-compatible install options are recognized)."
+ ;;
+
+ link)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
+
+Link object files or libraries together to form another library, or to
+create an executable program.
+
+LINK-COMMAND is a command using the C compiler that you would use to create
+a program from several object files.
+
+The following components of LINK-COMMAND are treated specially:
+
+ -all-static do not do any dynamic linking at all
+ -avoid-version do not add a version suffix if possible
+ -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
+ -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
+ -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
+ -export-symbols SYMFILE
+ try to export only the symbols listed in SYMFILE
+ -export-symbols-regex REGEX
+ try to export only the symbols matching REGEX
+ -LLIBDIR search LIBDIR for required installed libraries
+ -lNAME OUTPUT-FILE requires the installed library libNAME
+ -module build a library that can dlopened
+ -no-fast-install disable the fast-install mode
+ -no-install link a not-installable executable
+ -no-undefined declare that a library does not refer to external symbols
+ -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
+ -objectlist FILE Use a list of object files found in FILE to specify objects
+ -precious-files-regex REGEX
+ don't remove output files matching REGEX
+ -release RELEASE specify package release information
+ -rpath LIBDIR the created library will eventually be installed in LIBDIR
+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
+ -shared only do dynamic linking of libtool libraries
+ -shrext SUFFIX override the standard shared library file extension
+ -static do not do any dynamic linking of uninstalled libtool libraries
+ -static-libtool-libs
+ do not do any dynamic linking of libtool libraries
+ -version-info CURRENT[:REVISION[:AGE]]
+ specify library version info [each variable defaults to 0]
+ -weak LIBNAME declare that the target provides the LIBNAME interface
+
+All other options (arguments beginning with \`-') are ignored.
+
+Every other argument is treated as a filename. Files ending in \`.la' are
+treated as uninstalled libtool libraries, other files are standard or library
+object files.
+
+If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
+only library objects (\`.lo' files) may be specified, and \`-rpath' is
+required, except when creating a convenience library.
+
+If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
+using \`ar' and \`ranlib', or on Windows using \`lib'.
+
+If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
+is created, otherwise an executable program is created."
+ ;;
+
+ uninstall)
+ $ECHO \
+"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
+
+Remove libraries from an installation directory.
+
+RM is the name of the program to use to delete files associated with each FILE
+(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
+to RM.
+
+If FILE is a libtool library, all the files associated with it are deleted.
+Otherwise, only FILE itself is deleted using RM."
+ ;;
+
+ *)
+ func_fatal_help "invalid operation mode \`$mode'"
+ ;;
+ esac
+
+ $ECHO
+ $ECHO "Try \`$progname --help' for more information about other modes."
+
+ exit $?
+}
+
+ # Now that we've collected a possible --mode arg, show help if necessary
+ $opt_help && func_mode_help
+
+
+# func_mode_execute arg...
+func_mode_execute ()
+{
+ $opt_debug
+ # The first argument is the command name.
+ cmd="$nonopt"
+ test -z "$cmd" && \
+ func_fatal_help "you must specify a COMMAND"
+
+ # Handle -dlopen flags immediately.
+ for file in $execute_dlfiles; do
+ test -f "$file" \
+ || func_fatal_help "\`$file' is not a file"
+
+ dir=
+ case $file in
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$lib' is not a valid libtool archive"
+
+ # Read the libtool library.
+ dlname=
+ library_names=
+ func_source "$file"
+
+ # Skip this library if it cannot be dlopened.
+ if test -z "$dlname"; then
+ # Warn if it was a shared library.
+ test -n "$library_names" && \
+ func_warning "\`$file' was not linked with \`-export-dynamic'"
+ continue
+ fi
+
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+
+ if test -f "$dir/$objdir/$dlname"; then
+ dir="$dir/$objdir"
+ else
+ if test ! -f "$dir/$dlname"; then
+ func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
+ fi
+ fi
+ ;;
+
+ *.lo)
+ # Just add the directory containing the .lo file.
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ ;;
+
+ *)
+ func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
+ continue
+ ;;
+ esac
+
+ # Get the absolute pathname.
+ absdir=`cd "$dir" && pwd`
+ test -n "$absdir" && dir="$absdir"
+
+ # Now add the directory to shlibpath_var.
+ if eval "test -z \"\$$shlibpath_var\""; then
+ eval "$shlibpath_var=\"\$dir\""
+ else
+ eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
+ fi
+ done
+
+ # This variable tells wrapper scripts just to set shlibpath_var
+ # rather than running their programs.
+ libtool_execute_magic="$magic"
+
+ # Check if any of the arguments is a wrapper script.
+ args=
+ for file
+ do
+ case $file in
+ -*) ;;
+ *)
+ # Do a test to see if this is really a libtool program.
+ if func_ltwrapper_script_p "$file"; then
+ func_source "$file"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ elif func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ func_source "$func_ltwrapper_scriptname_result"
+ # Transform arg to wrapped name.
+ file="$progdir/$program"
+ fi
+ ;;
+ esac
+ # Quote arguments (to preserve shell metacharacters).
+ func_quote_for_eval "$file"
+ args="$args $func_quote_for_eval_result"
+ done
+
+ if test "X$opt_dry_run" = Xfalse; then
+ if test -n "$shlibpath_var"; then
+ # Export the shlibpath_var.
+ eval "export $shlibpath_var"
+ fi
+
+ # Restore saved environment variables
+ for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
+ do
+ eval "if test \"\${save_$lt_var+set}\" = set; then
+ $lt_var=\$save_$lt_var; export $lt_var
+ else
+ $lt_unset $lt_var
+ fi"
+ done
+
+ # Now prepare to actually exec the command.
+ exec_cmd="\$cmd$args"
+ else
+ # Display what would be done.
+ if test -n "$shlibpath_var"; then
+ eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
+ $ECHO "export $shlibpath_var"
+ fi
+ $ECHO "$cmd$args"
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = execute && func_mode_execute ${1+"$@"}
+
+
+# func_mode_finish arg...
+func_mode_finish ()
+{
+ $opt_debug
+ libdirs="$nonopt"
+ admincmds=
+
+ if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
+ for dir
+ do
+ libdirs="$libdirs $dir"
+ done
+
+ for libdir in $libdirs; do
+ if test -n "$finish_cmds"; then
+ # Do each command in the finish commands.
+ func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
+'"$cmd"'"'
+ fi
+ if test -n "$finish_eval"; then
+ # Do the single finish_eval.
+ eval cmds=\"$finish_eval\"
+ $opt_dry_run || eval "$cmds" || admincmds="$admincmds
+ $cmds"
+ fi
+ done
+ fi
+
+ # Exit here if they wanted silent mode.
+ $opt_silent && exit $EXIT_SUCCESS
+
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ $ECHO "Libraries have been installed in:"
+ for libdir in $libdirs; do
+ $ECHO " $libdir"
+ done
+ $ECHO
+ $ECHO "If you ever happen to want to link against installed libraries"
+ $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
+ $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
+ $ECHO "flag during linking and do at least one of the following:"
+ if test -n "$shlibpath_var"; then
+ $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
+ $ECHO " during execution"
+ fi
+ if test -n "$runpath_var"; then
+ $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
+ $ECHO " during linking"
+ fi
+ if test -n "$hardcode_libdir_flag_spec"; then
+ libdir=LIBDIR
+ eval flag=\"$hardcode_libdir_flag_spec\"
+
+ $ECHO " - use the \`$flag' linker flag"
+ fi
+ if test -n "$admincmds"; then
+ $ECHO " - have your system administrator run these commands:$admincmds"
+ fi
+ if test -f /etc/ld.so.conf; then
+ $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
+ fi
+ $ECHO
+
+ $ECHO "See any operating system documentation about shared libraries for"
+ case $host in
+ solaris2.[6789]|solaris2.1[0-9])
+ $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
+ $ECHO "pages."
+ ;;
+ *)
+ $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
+ ;;
+ esac
+ $ECHO "X----------------------------------------------------------------------" | $Xsed
+ exit $EXIT_SUCCESS
+}
+
+test "$mode" = finish && func_mode_finish ${1+"$@"}
+
+
+# func_mode_install arg...
+func_mode_install ()
+{
+ $opt_debug
+ # There may be an optional sh(1) argument at the beginning of
+ # install_prog (especially on Windows NT).
+ if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
+ # Allow the use of GNU shtool's install command.
+ $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
+ # Aesthetically quote it.
+ func_quote_for_eval "$nonopt"
+ install_prog="$func_quote_for_eval_result "
+ arg=$1
+ shift
+ else
+ install_prog=
+ arg=$nonopt
+ fi
+
+ # The real first argument should be the name of the installation program.
+ # Aesthetically quote it.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog$func_quote_for_eval_result"
+
+ # We need to accept at least all the BSD install flags.
+ dest=
+ files=
+ opts=
+ prev=
+ install_type=
+ isdir=no
+ stripme=
+ for arg
+ do
+ if test -n "$dest"; then
+ files="$files $dest"
+ dest=$arg
+ continue
+ fi
+
+ case $arg in
+ -d) isdir=yes ;;
+ -f)
+ case " $install_prog " in
+ *[\\\ /]cp\ *) ;;
+ *) prev=$arg ;;
+ esac
+ ;;
+ -g | -m | -o)
+ prev=$arg
+ ;;
+ -s)
+ stripme=" -s"
+ continue
+ ;;
+ -*)
+ ;;
+ *)
+ # If the previous option needed an argument, then skip it.
+ if test -n "$prev"; then
+ prev=
+ else
+ dest=$arg
+ continue
+ fi
+ ;;
+ esac
+
+ # Aesthetically quote the argument.
+ func_quote_for_eval "$arg"
+ install_prog="$install_prog $func_quote_for_eval_result"
+ done
+
+ test -z "$install_prog" && \
+ func_fatal_help "you must specify an install program"
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prev' option requires an argument"
+
+ if test -z "$files"; then
+ if test -z "$dest"; then
+ func_fatal_help "no file or destination specified"
+ else
+ func_fatal_help "you must specify a destination"
+ fi
+ fi
+
+ # Strip any trailing slash from the destination.
+ func_stripname '' '/' "$dest"
+ dest=$func_stripname_result
+
+ # Check to see that the destination is a directory.
+ test -d "$dest" && isdir=yes
+ if test "$isdir" = yes; then
+ destdir="$dest"
+ destname=
+ else
+ func_dirname_and_basename "$dest" "" "."
+ destdir="$func_dirname_result"
+ destname="$func_basename_result"
+
+ # Not a directory, so check to see that there is only one file specified.
+ set dummy $files; shift
+ test "$#" -gt 1 && \
+ func_fatal_help "\`$dest' is not a directory"
+ fi
+ case $destdir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ for file in $files; do
+ case $file in
+ *.lo) ;;
+ *)
+ func_fatal_help "\`$destdir' must be an absolute directory name"
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ staticlibs=
+ future_libdirs=
+ current_libdirs=
+ for file in $files; do
+
+ # Do each installation.
+ case $file in
+ *.$libext)
+ # Do the static libraries later.
+ staticlibs="$staticlibs $file"
+ ;;
+
+ *.la)
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$file" \
+ || func_fatal_help "\`$file' is not a valid libtool archive"
+
+ library_names=
+ old_library=
+ relink_command=
+ func_source "$file"
+
+ # Add the libdir to current_libdirs if it is the destination.
+ if test "X$destdir" = "X$libdir"; then
+ case "$current_libdirs " in
+ *" $libdir "*) ;;
+ *) current_libdirs="$current_libdirs $libdir" ;;
+ esac
+ else
+ # Note the libdir as a future libdir.
+ case "$future_libdirs " in
+ *" $libdir "*) ;;
+ *) future_libdirs="$future_libdirs $libdir" ;;
+ esac
+ fi
+
+ func_dirname "$file" "/" ""
+ dir="$func_dirname_result"
+ dir="$dir$objdir"
+
+ if test -n "$relink_command"; then
+ # Determine the prefix the user has applied to our future dir.
+ inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
+
+ # Don't allow the user to place us outside of our expected
+ # location b/c this prevents finding dependent libraries that
+ # are installed to the same prefix.
+ # At present, this check doesn't affect windows .dll's that
+ # are installed into $libdir/../bin (currently, that works fine)
+ # but it's something to keep an eye on.
+ test "$inst_prefix_dir" = "$destdir" && \
+ func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
+
+ if test -n "$inst_prefix_dir"; then
+ # Stick the inst_prefix_dir data into the link command.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
+ else
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
+ fi
+
+ func_warning "relinking \`$file'"
+ func_show_eval "$relink_command" \
+ 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
+ fi
+
+ # See the names of the shared library.
+ set dummy $library_names; shift
+ if test -n "$1"; then
+ realname="$1"
+ shift
+
+ srcname="$realname"
+ test -n "$relink_command" && srcname="$realname"T
+
+ # Install the shared library and build the symlinks.
+ func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
+ 'exit $?'
+ tstripme="$stripme"
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ case $realname in
+ *.dll.a)
+ tstripme=""
+ ;;
+ esac
+ ;;
+ esac
+ if test -n "$tstripme" && test -n "$striplib"; then
+ func_show_eval "$striplib $destdir/$realname" 'exit $?'
+ fi
+
+ if test "$#" -gt 0; then
+ # Delete the old symlinks, and create new ones.
+ # Try `ln -sf' first, because the `ln' binary might depend on
+ # the symlink we replace! Solaris /bin/ln does not understand -f,
+ # so we also need to try rm && ln -s.
+ for linkname
+ do
+ test "$linkname" != "$realname" \
+ && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
+ done
+ fi
+
+ # Do each command in the postinstall commands.
+ lib="$destdir/$realname"
+ func_execute_cmds "$postinstall_cmds" 'exit $?'
+ fi
+
+ # Install the pseudo-library for information purposes.
+ func_basename "$file"
+ name="$func_basename_result"
+ instname="$dir/$name"i
+ func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
+ ;;
+
+ *.lo)
+ # Install (i.e. copy) a libtool object.
+
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # Deduce the name of the destination old-style object file.
+ case $destfile in
+ *.lo)
+ func_lo2o "$destfile"
+ staticdest=$func_lo2o_result
+ ;;
+ *.$objext)
+ staticdest="$destfile"
+ destfile=
+ ;;
+ *)
+ func_fatal_help "cannot copy a libtool object to \`$destfile'"
+ ;;
+ esac
+
+ # Install the libtool object if requested.
+ test -n "$destfile" && \
+ func_show_eval "$install_prog $file $destfile" 'exit $?'
+
+ # Install the old object if enabled.
+ if test "$build_old_libs" = yes; then
+ # Deduce the name of the old-style object file.
+ func_lo2o "$file"
+ staticobj=$func_lo2o_result
+ func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
+ fi
+ exit $EXIT_SUCCESS
+ ;;
+
+ *)
+ # Figure out destination file name, if it wasn't already specified.
+ if test -n "$destname"; then
+ destfile="$destdir/$destname"
+ else
+ func_basename "$file"
+ destfile="$func_basename_result"
+ destfile="$destdir/$destfile"
+ fi
+
+ # If the file is missing, and there is a .exe on the end, strip it
+ # because it is most likely a libtool script we actually want to
+ # install
+ stripped_ext=""
+ case $file in
+ *.exe)
+ if test ! -f "$file"; then
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ stripped_ext=".exe"
+ fi
+ ;;
+ esac
+
+ # Do a test to see if this is really a libtool program.
+ case $host in
+ *cygwin* | *mingw*)
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ wrapper=$func_ltwrapper_scriptname_result
+ else
+ func_stripname '' '.exe' "$file"
+ wrapper=$func_stripname_result
+ fi
+ ;;
+ *)
+ wrapper=$file
+ ;;
+ esac
+ if func_ltwrapper_script_p "$wrapper"; then
+ notinst_deplibs=
+ relink_command=
+
+ func_source "$wrapper"
+
+ # Check the variables that should have been set.
+ test -z "$generated_by_libtool_version" && \
+ func_fatal_error "invalid libtool wrapper script \`$wrapper'"
+
+ finalize=yes
+ for lib in $notinst_deplibs; do
+ # Check to see that each library is installed.
+ libdir=
+ if test -f "$lib"; then
+ func_source "$lib"
+ fi
+ libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
+ if test -n "$libdir" && test ! -f "$libfile"; then
+ func_warning "\`$lib' has not been installed in \`$libdir'"
+ finalize=no
+ fi
+ done
+
+ relink_command=
+ func_source "$wrapper"
+
+ outputname=
+ if test "$fast_install" = no && test -n "$relink_command"; then
+ $opt_dry_run || {
+ if test "$finalize" = yes; then
+ tmpdir=`func_mktempdir`
+ func_basename "$file$stripped_ext"
+ file="$func_basename_result"
+ outputname="$tmpdir/$file"
+ # Replace the output file specification.
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
+
+ $opt_silent || {
+ func_quote_for_expand "$relink_command"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ if eval "$relink_command"; then :
+ else
+ func_error "error: relink \`$file' with the above command before installing it"
+ $opt_dry_run || ${RM}r "$tmpdir"
+ continue
+ fi
+ file="$outputname"
+ else
+ func_warning "cannot relink \`$file'"
+ fi
+ }
+ else
+ # Install the binary that we compiled earlier.
+ file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
+ fi
+ fi
+
+ # remove .exe since cygwin /usr/bin/install will append another
+ # one anyway
+ case $install_prog,$host in
+ */usr/bin/install*,*cygwin*)
+ case $file:$destfile in
+ *.exe:*.exe)
+ # this is ok
+ ;;
+ *.exe:*)
+ destfile=$destfile.exe
+ ;;
+ *:*.exe)
+ func_stripname '' '.exe' "$destfile"
+ destfile=$func_stripname_result
+ ;;
+ esac
+ ;;
+ esac
+ func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
+ $opt_dry_run || if test -n "$outputname"; then
+ ${RM}r "$tmpdir"
+ fi
+ ;;
+ esac
+ done
+
+ for file in $staticlibs; do
+ func_basename "$file"
+ name="$func_basename_result"
+
+ # Set up the ranlib parameters.
+ oldlib="$destdir/$name"
+
+ func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
+
+ if test -n "$stripme" && test -n "$old_striplib"; then
+ func_show_eval "$old_striplib $oldlib" 'exit $?'
+ fi
+
+ # Do each command in the postinstall commands.
+ func_execute_cmds "$old_postinstall_cmds" 'exit $?'
+ done
+
+ test -n "$future_libdirs" && \
+ func_warning "remember to run \`$progname --finish$future_libdirs'"
+
+ if test -n "$current_libdirs"; then
+ # Maybe just do a dry run.
+ $opt_dry_run && current_libdirs=" -n$current_libdirs"
+ exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
+ else
+ exit $EXIT_SUCCESS
+ fi
+}
+
+test "$mode" = install && func_mode_install ${1+"$@"}
+
+
+# func_generate_dlsyms outputname originator pic_p
+# Extract symbols from dlprefiles and create ${outputname}S.o with
+# a dlpreopen symbol table.
+func_generate_dlsyms ()
+{
+ $opt_debug
+ my_outputname="$1"
+ my_originator="$2"
+ my_pic_p="${3-no}"
+ my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
+ my_dlsyms=
+
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ if test -n "$NM" && test -n "$global_symbol_pipe"; then
+ my_dlsyms="${my_outputname}S.c"
+ else
+ func_error "not configured to extract global symbols from dlpreopened files"
+ fi
+ fi
+
+ if test -n "$my_dlsyms"; then
+ case $my_dlsyms in
+ "") ;;
+ *.c)
+ # Discover the nlist of each of the dlfiles.
+ nlist="$output_objdir/${my_outputname}.nm"
+
+ func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
+
+ # Parse the name list into a source file.
+ func_verbose "creating $output_objdir/$my_dlsyms"
+
+ $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
+/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
+/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
+
+#ifdef __cplusplus
+extern \"C\" {
+#endif
+
+/* External symbol declarations for the compiler. */\
+"
+
+ if test "$dlself" = yes; then
+ func_verbose "generating symbol list for \`$output'"
+
+ $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
+
+ # Add our own program objects to the symbol list.
+ progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ for progfile in $progfiles; do
+ func_verbose "extracting global C symbols from \`$progfile'"
+ $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
+ done
+
+ if test -n "$exclude_expsyms"; then
+ $opt_dry_run || {
+ eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ if test -n "$export_symbols_regex"; then
+ $opt_dry_run || {
+ eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ }
+ fi
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ export_symbols="$output_objdir/$outputname.exp"
+ $opt_dry_run || {
+ $RM $export_symbols
+ eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ else
+ $opt_dry_run || {
+ eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
+ eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
+ eval '$MV "$nlist"T "$nlist"'
+ case $host in
+ *cygwin | *mingw* | *cegcc* )
+ eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
+ eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
+ ;;
+ esac
+ }
+ fi
+ fi
+
+ for dlprefile in $dlprefiles; do
+ func_verbose "extracting global C symbols from \`$dlprefile'"
+ func_basename "$dlprefile"
+ name="$func_basename_result"
+ $opt_dry_run || {
+ eval '$ECHO ": $name " >> "$nlist"'
+ eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
+ }
+ done
+
+ $opt_dry_run || {
+ # Make sure we have at least an empty file.
+ test -f "$nlist" || : > "$nlist"
+
+ if test -n "$exclude_expsyms"; then
+ $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
+ $MV "$nlist"T "$nlist"
+ fi
+
+ # Try sorting and uniquifying the output.
+ if $GREP -v "^: " < "$nlist" |
+ if sort -k 3 </dev/null >/dev/null 2>&1; then
+ sort -k 3
+ else
+ sort +2
+ fi |
+ uniq > "$nlist"S; then
+ :
+ else
+ $GREP -v "^: " < "$nlist" > "$nlist"S
+ fi
+
+ if test -f "$nlist"S; then
+ eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
+ else
+ $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
+ fi
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+
+/* The mapping between symbol names and symbols. */
+typedef struct {
+ const char *name;
+ void *address;
+} lt_dlsymlist;
+"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+/* DATA imports from DLLs on WIN32 con't be const, because
+ runtime relocations are performed -- see ld's documentation
+ on pseudo-relocs. */"
+ lt_dlsym_const= ;;
+ *osf5*)
+ echo >> "$output_objdir/$my_dlsyms" "\
+/* This system does not cope well with relocations in const data */"
+ lt_dlsym_const= ;;
+ *)
+ lt_dlsym_const=const ;;
+ esac
+
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+extern $lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[];
+$lt_dlsym_const lt_dlsymlist
+lt_${my_prefix}_LTX_preloaded_symbols[] =
+{\
+ { \"$my_originator\", (void *) 0 },"
+
+ case $need_lib_prefix in
+ no)
+ eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ *)
+ eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
+ ;;
+ esac
+ $ECHO >> "$output_objdir/$my_dlsyms" "\
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt_${my_prefix}_LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif\
+"
+ } # !$opt_dry_run
+
+ pic_flag_for_symtable=
+ case "$compile_command " in
+ *" -static "*) ;;
+ *)
+ case $host in
+ # compiling the symbol table file with pic_flag works around
+ # a FreeBSD bug that causes programs to crash when -lm is
+ # linked before any other PIC object. But we must not use
+ # pic_flag when linking with -static. The problem exists in
+ # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
+ *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
+ pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
+ *-*-hpux*)
+ pic_flag_for_symtable=" $pic_flag" ;;
+ *)
+ if test "X$my_pic_p" != Xno; then
+ pic_flag_for_symtable=" $pic_flag"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ symtab_cflags=
+ for arg in $LTCFLAGS; do
+ case $arg in
+ -pie | -fpie | -fPIE) ;;
+ *) symtab_cflags="$symtab_cflags $arg" ;;
+ esac
+ done
+
+ # Now compile the dynamic symbol file.
+ func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
+
+ # Clean up the generated files.
+ func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
+
+ # Transform the symbol file into the correct name.
+ symfileobj="$output_objdir/${my_outputname}S.$objext"
+ case $host in
+ *cygwin* | *mingw* | *cegcc* )
+ if test -f "$output_objdir/$my_outputname.def"; then
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
+ else
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ fi
+ ;;
+ *)
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
+ ;;
+ esac
+ ;;
+ *)
+ func_fatal_error "unknown suffix for \`$my_dlsyms'"
+ ;;
+ esac
+ else
+ # We keep going just in case the user didn't refer to
+ # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
+ # really was required.
+
+ # Nullify the symbol file.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
+ finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
+ fi
+}
+
+# func_win32_libid arg
+# return the library type of file 'arg'
+#
+# Need a lot of goo to handle *both* DLLs and import libs
+# Has to be a shell function in order to 'eat' the argument
+# that is supplied when $file_magic_command is called.
+func_win32_libid ()
+{
+ $opt_debug
+ win32_libid_type="unknown"
+ win32_fileres=`file -L $1 2>/dev/null`
+ case $win32_fileres in
+ *ar\ archive\ import\ library*) # definitely import
+ win32_libid_type="x86 archive import"
+ ;;
+ *ar\ archive*) # could be an import, or static
+ if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
+ $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
+ win32_nmres=`eval $NM -f posix -A $1 |
+ $SED -n -e '
+ 1,100{
+ / I /{
+ s,.*,import,
+ p
+ q
+ }
+ }'`
+ case $win32_nmres in
+ import*) win32_libid_type="x86 archive import";;
+ *) win32_libid_type="x86 archive static";;
+ esac
+ fi
+ ;;
+ *DLL*)
+ win32_libid_type="x86 DLL"
+ ;;
+ *executable*) # but shell scripts are "executable" too...
+ case $win32_fileres in
+ *MS\ Windows\ PE\ Intel*)
+ win32_libid_type="x86 DLL"
+ ;;
+ esac
+ ;;
+ esac
+ $ECHO "$win32_libid_type"
+}
+
+
+
+# func_extract_an_archive dir oldlib
+func_extract_an_archive ()
+{
+ $opt_debug
+ f_ex_an_ar_dir="$1"; shift
+ f_ex_an_ar_oldlib="$1"
+ func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
+ if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
+ fi
+}
+
+
+# func_extract_archives gentop oldlib ...
+func_extract_archives ()
+{
+ $opt_debug
+ my_gentop="$1"; shift
+ my_oldlibs=${1+"$@"}
+ my_oldobjs=""
+ my_xlib=""
+ my_xabs=""
+ my_xdir=""
+
+ for my_xlib in $my_oldlibs; do
+ # Extract the objects.
+ case $my_xlib in
+ [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
+ *) my_xabs=`pwd`"/$my_xlib" ;;
+ esac
+ func_basename "$my_xlib"
+ my_xlib="$func_basename_result"
+ my_xlib_u=$my_xlib
+ while :; do
+ case " $extracted_archives " in
+ *" $my_xlib_u "*)
+ func_arith $extracted_serial + 1
+ extracted_serial=$func_arith_result
+ my_xlib_u=lt$extracted_serial-$my_xlib ;;
+ *) break ;;
+ esac
+ done
+ extracted_archives="$extracted_archives $my_xlib_u"
+ my_xdir="$my_gentop/$my_xlib_u"
+
+ func_mkdir_p "$my_xdir"
+
+ case $host in
+ *-darwin*)
+ func_verbose "Extracting $my_xabs"
+ # Do not bother doing anything if just a dry run
+ $opt_dry_run || {
+ darwin_orig_dir=`pwd`
+ cd $my_xdir || exit $?
+ darwin_archive=$my_xabs
+ darwin_curdir=`pwd`
+ darwin_base_archive=`basename "$darwin_archive"`
+ darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
+ if test -n "$darwin_arches"; then
+ darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
+ darwin_arch=
+ func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
+ for darwin_arch in $darwin_arches ; do
+ func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
+ cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
+ func_extract_an_archive "`pwd`" "${darwin_base_archive}"
+ cd "$darwin_curdir"
+ $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
+ done # $darwin_arches
+ ## Okay now we've a bunch of thin objects, gotta fatten them up :)
+ darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
+ darwin_file=
+ darwin_files=
+ for darwin_file in $darwin_filelist; do
+ darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
+ $LIPO -create -output "$darwin_file" $darwin_files
+ done # $darwin_filelist
+ $RM -rf unfat-$$
+ cd "$darwin_orig_dir"
+ else
+ cd $darwin_orig_dir
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ fi # $darwin_arches
+ } # !$opt_dry_run
+ ;;
+ *)
+ func_extract_an_archive "$my_xdir" "$my_xabs"
+ ;;
+ esac
+ my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
+ done
+
+ func_extract_archives_result="$my_oldobjs"
+}
+
+
+
+# func_emit_wrapper_part1 [arg=no]
+#
+# Emit the first part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part1 ()
+{
+ func_emit_wrapper_part1_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part1_arg1=$1
+ fi
+
+ $ECHO "\
+#! $SHELL
+
+# $output - temporary wrapper script for $objdir/$outputname
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# The $output program cannot be directly executed until all the libtool
+# libraries that it depends on are installed.
+#
+# This wrapper script should never be moved out of the build directory.
+# If it is, it will not operate correctly.
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+Xsed='${SED} -e 1s/^X//'
+sed_quote_subst='$sed_quote_subst'
+
+# Be Bourne compatible
+if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
+ # is contrary to our usage. Disable this feature.
+ alias -g '\${1+\"\$@\"}'='\"\$@\"'
+ setopt NO_GLOB_SUBST
+else
+ case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
+fi
+BIN_SH=xpg4; export BIN_SH # for Tru64
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+relink_command=\"$relink_command\"
+
+# This environment variable determines our operation mode.
+if test \"\$libtool_install_magic\" = \"$magic\"; then
+ # install mode needs the following variables:
+ generated_by_libtool_version='$macro_version'
+ notinst_deplibs='$notinst_deplibs'
+else
+ # When we are sourced in execute mode, \$file and \$ECHO are already set.
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ ECHO=\"$qecho\"
+ file=\"\$0\"
+ # Make sure echo works.
+ if test \"X\$1\" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+ elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
+ # Yippee, \$ECHO works!
+ :
+ else
+ # Restart under the correct shell, and then maybe \$ECHO will work.
+ exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
+ fi
+ fi\
+"
+ $ECHO "\
+
+ # Find the directory that this script lives in.
+ thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
+ test \"x\$thisdir\" = \"x\$file\" && thisdir=.
+
+ # Follow symbolic links until we get to the real thisdir.
+ file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
+ while test -n \"\$file\"; do
+ destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
+
+ # If there was a directory component, then change thisdir.
+ if test \"x\$destdir\" != \"x\$file\"; then
+ case \"\$destdir\" in
+ [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
+ *) thisdir=\"\$thisdir/\$destdir\" ;;
+ esac
+ fi
+
+ file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
+ file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
+ done
+"
+}
+# end: func_emit_wrapper_part1
+
+# func_emit_wrapper_part2 [arg=no]
+#
+# Emit the second part of a libtool wrapper script on stdout.
+# For more information, see the description associated with
+# func_emit_wrapper(), below.
+func_emit_wrapper_part2 ()
+{
+ func_emit_wrapper_part2_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_part2_arg1=$1
+ fi
+
+ $ECHO "\
+
+ # Usually 'no', except on cygwin/mingw when embedded into
+ # the cwrapper.
+ WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
+ if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
+ # special case for '.'
+ if test \"\$thisdir\" = \".\"; then
+ thisdir=\`pwd\`
+ fi
+ # remove .libs from thisdir
+ case \"\$thisdir\" in
+ *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
+ $objdir ) thisdir=. ;;
+ esac
+ fi
+
+ # Try to get the absolute directory name.
+ absdir=\`cd \"\$thisdir\" && pwd\`
+ test -n \"\$absdir\" && thisdir=\"\$absdir\"
+"
+
+ if test "$fast_install" = yes; then
+ $ECHO "\
+ program=lt-'$outputname'$exeext
+ progdir=\"\$thisdir/$objdir\"
+
+ if test ! -f \"\$progdir/\$program\" ||
+ { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
+ test \"X\$file\" != \"X\$progdir/\$program\"; }; then
+
+ file=\"\$\$-\$program\"
+
+ if test ! -d \"\$progdir\"; then
+ $MKDIR \"\$progdir\"
+ else
+ $RM \"\$progdir/\$file\"
+ fi"
+
+ $ECHO "\
+
+ # relink executable if necessary
+ if test -n \"\$relink_command\"; then
+ if relink_command_output=\`eval \$relink_command 2>&1\`; then :
+ else
+ $ECHO \"\$relink_command_output\" >&2
+ $RM \"\$progdir/\$file\"
+ exit 1
+ fi
+ fi
+
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
+ { $RM \"\$progdir/\$program\";
+ $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
+ $RM \"\$progdir/\$file\"
+ fi"
+ else
+ $ECHO "\
+ program='$outputname'
+ progdir=\"\$thisdir/$objdir\"
+"
+ fi
+
+ $ECHO "\
+
+ if test -f \"\$progdir/\$program\"; then"
+
+ # Export our shlibpath_var if we have one.
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ $ECHO "\
+ # Add our own library path to $shlibpath_var
+ $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
+
+ # Some systems cannot cope with colon-terminated $shlibpath_var
+ # The second colon is a workaround for a bug in BeOS R4 sed
+ $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
+
+ export $shlibpath_var
+"
+ fi
+
+ # fixup the dll searchpath if we need to.
+ if test -n "$dllsearchpath"; then
+ $ECHO "\
+ # Add the dll search path components to the executable PATH
+ PATH=$dllsearchpath:\$PATH
+"
+ fi
+
+ $ECHO "\
+ if test \"\$libtool_execute_magic\" != \"$magic\"; then
+ # Run the actual program with our arguments.
+"
+ case $host in
+ # Backslashes separate directories on plain windows
+ *-*-mingw | *-*-os2* | *-cegcc*)
+ $ECHO "\
+ exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
+"
+ ;;
+
+ *)
+ $ECHO "\
+ exec \"\$progdir/\$program\" \${1+\"\$@\"}
+"
+ ;;
+ esac
+ $ECHO "\
+ \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
+ exit 1
+ fi
+ else
+ # The program doesn't exist.
+ \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
+ \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
+ $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
+ exit 1
+ fi
+fi\
+"
+}
+# end: func_emit_wrapper_part2
+
+
+# func_emit_wrapper [arg=no]
+#
+# Emit a libtool wrapper script on stdout.
+# Don't directly open a file because we may want to
+# incorporate the script contents within a cygwin/mingw
+# wrapper executable. Must ONLY be called from within
+# func_mode_link because it depends on a number of variables
+# set therein.
+#
+# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
+# variable will take. If 'yes', then the emitted script
+# will assume that the directory in which it is stored is
+# the $objdir directory. This is a cygwin/mingw-specific
+# behavior.
+func_emit_wrapper ()
+{
+ func_emit_wrapper_arg1=no
+ if test -n "$1" ; then
+ func_emit_wrapper_arg1=$1
+ fi
+
+ # split this up so that func_emit_cwrapperexe_src
+ # can call each part independently.
+ func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
+ func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
+}
+
+
+# func_to_host_path arg
+#
+# Convert paths to host format when used with build tools.
+# Intended for use with "native" mingw (where libtool itself
+# is running under the msys shell), or in the following cross-
+# build environments:
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+# where wine is equipped with the `winepath' executable.
+# In the native mingw case, the (msys) shell automatically
+# converts paths for any non-msys applications it launches,
+# but that facility isn't available from inside the cwrapper.
+# Similar accommodations are necessary for $host mingw and
+# $build cygwin. Calling this function does no harm for other
+# $host/$build combinations not listed above.
+#
+# ARG is the path (on $build) that should be converted to
+# the proper representation for $host. The result is stored
+# in $func_to_host_path_result.
+func_to_host_path ()
+{
+ func_to_host_path_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ case $build in
+ *mingw* ) # actually, msys
+ # awkward: cmd appends spaces to result
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_path_tmp1=`( cmd //c echo "$1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_path_tmp1=`cygpath -w "$1"`
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # Unfortunately, winepath does not exit with a non-zero
+ # error code, so we are forced to check the contents of
+ # stdout. On the other hand, if the command is not
+ # found, the shell will set an exit code of 127 and print
+ # *an error message* to stdout. So we must check for both
+ # error code of zero AND non-empty stdout, which explains
+ # the odd construction:
+ func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
+ if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
+ func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ else
+ # Allow warning below.
+ func_to_host_path_result=""
+ fi
+ ;;
+ esac
+ if test -z "$func_to_host_path_result" ; then
+ func_error "Could not determine host path corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback:
+ func_to_host_path_result="$1"
+ fi
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_path
+
+# func_to_host_pathlist arg
+#
+# Convert pathlists to host format when used with build tools.
+# See func_to_host_path(), above. This function supports the
+# following $build/$host combinations (but does no harm for
+# combinations not listed here):
+# $build $host
+# mingw (msys) mingw [e.g. native]
+# cygwin mingw
+# *nix + wine mingw
+#
+# Path separators are also converted from $build format to
+# $host format. If ARG begins or ends with a path separator
+# character, it is preserved (but converted to $host format)
+# on output.
+#
+# ARG is a pathlist (on $build) that should be converted to
+# the proper representation on $host. The result is stored
+# in $func_to_host_pathlist_result.
+func_to_host_pathlist ()
+{
+ func_to_host_pathlist_result="$1"
+ if test -n "$1" ; then
+ case $host in
+ *mingw* )
+ lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
+ # Remove leading and trailing path separator characters from
+ # ARG. msys behavior is inconsistent here, cygpath turns them
+ # into '.;' and ';.', and winepath ignores them completely.
+ func_to_host_pathlist_tmp2="$1"
+ # Once set for this call, this variable should not be
+ # reassigned. It is used in tha fallback case.
+ func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e 's|^:*||' -e 's|:*$||'`
+ case $build in
+ *mingw* ) # Actually, msys.
+ # Awkward: cmd appends spaces to result.
+ lt_sed_strip_trailing_spaces="s/[ ]*\$//"
+ func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ *cygwin* )
+ func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
+ $SED -e "$lt_sed_naive_backslashify"`
+ ;;
+ * )
+ # unfortunately, winepath doesn't convert pathlists
+ func_to_host_pathlist_result=""
+ func_to_host_pathlist_oldIFS=$IFS
+ IFS=:
+ for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
+ IFS=$func_to_host_pathlist_oldIFS
+ if test -n "$func_to_host_pathlist_f" ; then
+ func_to_host_path "$func_to_host_pathlist_f"
+ if test -n "$func_to_host_path_result" ; then
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_to_host_pathlist_result="$func_to_host_path_result"
+ else
+ func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
+ fi
+ fi
+ fi
+ IFS=:
+ done
+ IFS=$func_to_host_pathlist_oldIFS
+ ;;
+ esac
+ if test -z "$func_to_host_pathlist_result" ; then
+ func_error "Could not determine the host path(s) corresponding to"
+ func_error " '$1'"
+ func_error "Continuing, but uninstalled executables may not work."
+ # Fallback. This may break if $1 contains DOS-style drive
+ # specifications. The fix is not to complicate the expression
+ # below, but for the user to provide a working wine installation
+ # with winepath so that path translation in the cross-to-mingw
+ # case works properly.
+ lt_replace_pathsep_nix_to_dos="s|:|;|g"
+ func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
+ $SED -e "$lt_replace_pathsep_nix_to_dos"`
+ fi
+ # Now, add the leading and trailing path separators back
+ case "$1" in
+ :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
+ ;;
+ esac
+ case "$1" in
+ *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+}
+# end: func_to_host_pathlist
+
+# func_emit_cwrapperexe_src
+# emit the source code for a wrapper executable on stdout
+# Must ONLY be called from within func_mode_link because
+# it depends on a number of variable set therein.
+func_emit_cwrapperexe_src ()
+{
+ cat <<EOF
+
+/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
+ Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+
+ The $output program cannot be directly executed until all the libtool
+ libraries that it depends on are installed.
+
+ This wrapper executable should never be moved out of the build directory.
+ If it is, it will not operate correctly.
+
+ Currently, it simply execs the wrapper *script* "$SHELL $output",
+ but could eventually absorb all of the scripts functionality and
+ exec $objdir/$outputname directly.
+*/
+EOF
+ cat <<"EOF"
+#include <stdio.h>
+#include <stdlib.h>
+#ifdef _MSC_VER
+# include <direct.h>
+# include <process.h>
+# include <io.h>
+# define setmode _setmode
+#else
+# include <unistd.h>
+# include <stdint.h>
+# ifdef __CYGWIN__
+# include <io.h>
+# define HAVE_SETENV
+# ifdef __STRICT_ANSI__
+char *realpath (const char *, char *);
+int putenv (char *);
+int setenv (const char *, const char *, int);
+# endif
+# endif
+#endif
+#include <malloc.h>
+#include <stdarg.h>
+#include <assert.h>
+#include <string.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+
+#if defined(PATH_MAX)
+# define LT_PATHMAX PATH_MAX
+#elif defined(MAXPATHLEN)
+# define LT_PATHMAX MAXPATHLEN
+#else
+# define LT_PATHMAX 1024
+#endif
+
+#ifndef S_IXOTH
+# define S_IXOTH 0
+#endif
+#ifndef S_IXGRP
+# define S_IXGRP 0
+#endif
+
+#ifdef _MSC_VER
+# define S_IXUSR _S_IEXEC
+# define stat _stat
+# ifndef _INTPTR_T_DEFINED
+# define intptr_t int
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR
+# define DIR_SEPARATOR '/'
+# define PATH_SEPARATOR ':'
+#endif
+
+#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
+ defined (__OS2__)
+# define HAVE_DOS_BASED_FILE_SYSTEM
+# define FOPEN_WB "wb"
+# ifndef DIR_SEPARATOR_2
+# define DIR_SEPARATOR_2 '\\'
+# endif
+# ifndef PATH_SEPARATOR_2
+# define PATH_SEPARATOR_2 ';'
+# endif
+#endif
+
+#ifndef DIR_SEPARATOR_2
+# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
+#else /* DIR_SEPARATOR_2 */
+# define IS_DIR_SEPARATOR(ch) \
+ (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
+#endif /* DIR_SEPARATOR_2 */
+
+#ifndef PATH_SEPARATOR_2
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
+#else /* PATH_SEPARATOR_2 */
+# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
+#endif /* PATH_SEPARATOR_2 */
+
+#ifdef __CYGWIN__
+# define FOPEN_WB "wb"
+#endif
+
+#ifndef FOPEN_WB
+# define FOPEN_WB "w"
+#endif
+#ifndef _O_BINARY
+# define _O_BINARY 0
+#endif
+
+#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
+#define XFREE(stale) do { \
+ if (stale) { free ((void *) stale); stale = 0; } \
+} while (0)
+
+#undef LTWRAPPER_DEBUGPRINTF
+#if defined DEBUGWRAPPER
+# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
+static void
+ltwrapper_debugprintf (const char *fmt, ...)
+{
+ va_list args;
+ va_start (args, fmt);
+ (void) vfprintf (stderr, fmt, args);
+ va_end (args);
+}
+#else
+# define LTWRAPPER_DEBUGPRINTF(args)
+#endif
+
+const char *program_name = NULL;
+
+void *xmalloc (size_t num);
+char *xstrdup (const char *string);
+const char *base_name (const char *name);
+char *find_executable (const char *wrapper);
+char *chase_symlinks (const char *pathspec);
+int make_executable (const char *path);
+int check_executable (const char *path);
+char *strendzap (char *str, const char *pat);
+void lt_fatal (const char *message, ...);
+void lt_setenv (const char *name, const char *value);
+char *lt_extend_str (const char *orig_value, const char *add, int to_end);
+void lt_opt_process_env_set (const char *arg);
+void lt_opt_process_env_prepend (const char *arg);
+void lt_opt_process_env_append (const char *arg);
+int lt_split_name_value (const char *arg, char** name, char** value);
+void lt_update_exe_path (const char *name, const char *value);
+void lt_update_lib_path (const char *name, const char *value);
+
+static const char *script_text_part1 =
+EOF
+
+ func_emit_wrapper_part1 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+ cat <<EOF
+
+static const char *script_text_part2 =
+EOF
+ func_emit_wrapper_part2 yes |
+ $SED -e 's/\([\\"]\)/\\\1/g' \
+ -e 's/^/ "/' -e 's/$/\\n"/'
+ echo ";"
+
+ cat <<EOF
+const char * MAGIC_EXE = "$magic_exe";
+const char * LIB_PATH_VARNAME = "$shlibpath_var";
+EOF
+
+ if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
+ func_to_host_pathlist "$temp_rpath"
+ cat <<EOF
+const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * LIB_PATH_VALUE = "";
+EOF
+ fi
+
+ if test -n "$dllsearchpath"; then
+ func_to_host_pathlist "$dllsearchpath:"
+ cat <<EOF
+const char * EXE_PATH_VARNAME = "PATH";
+const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
+EOF
+ else
+ cat <<"EOF"
+const char * EXE_PATH_VARNAME = "";
+const char * EXE_PATH_VALUE = "";
+EOF
+ fi
+
+ if test "$fast_install" = yes; then
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
+EOF
+ else
+ cat <<EOF
+const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
+EOF
+ fi
+
+
+ cat <<"EOF"
+
+#define LTWRAPPER_OPTION_PREFIX "--lt-"
+#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
+
+static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
+static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
+
+static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
+
+static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
+static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
+ /* argument is putenv-style "foo=bar", value of foo is set to bar */
+
+static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
+static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
+ /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
+
+static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
+static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
+ /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
+
+int
+main (int argc, char *argv[])
+{
+ char **newargz;
+ int newargc;
+ char *tmp_pathspec;
+ char *actual_cwrapper_path;
+ char *actual_cwrapper_name;
+ char *target_name;
+ char *lt_argv_zero;
+ intptr_t rval = 127;
+
+ int i;
+
+ program_name = (char *) xstrdup (base_name (argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
+ LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
+
+ /* very simple arg parsing; don't want to rely on getopt */
+ for (i = 1; i < argc; i++)
+ {
+ if (strcmp (argv[i], dumpscript_opt) == 0)
+ {
+EOF
+ case "$host" in
+ *mingw* | *cygwin* )
+ # make stdout use "unix" line endings
+ echo " setmode(1,_O_BINARY);"
+ ;;
+ esac
+
+ cat <<"EOF"
+ printf ("%s", script_text_part1);
+ printf ("%s", script_text_part2);
+ return 0;
+ }
+ }
+
+ newargz = XMALLOC (char *, argc + 1);
+ tmp_pathspec = find_executable (argv[0]);
+ if (tmp_pathspec == NULL)
+ lt_fatal ("Couldn't find %s", argv[0]);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
+ tmp_pathspec));
+
+ actual_cwrapper_path = chase_symlinks (tmp_pathspec);
+ LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
+ actual_cwrapper_path));
+ XFREE (tmp_pathspec);
+
+ actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
+ strendzap (actual_cwrapper_path, actual_cwrapper_name);
+
+ /* wrapper name transforms */
+ strendzap (actual_cwrapper_name, ".exe");
+ tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
+ XFREE (actual_cwrapper_name);
+ actual_cwrapper_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ /* target_name transforms -- use actual target program name; might have lt- prefix */
+ target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
+ strendzap (target_name, ".exe");
+ tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
+ XFREE (target_name);
+ target_name = tmp_pathspec;
+ tmp_pathspec = 0;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
+ target_name));
+EOF
+
+ cat <<EOF
+ newargz[0] =
+ XMALLOC (char, (strlen (actual_cwrapper_path) +
+ strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
+ strcpy (newargz[0], actual_cwrapper_path);
+ strcat (newargz[0], "$objdir");
+ strcat (newargz[0], "/");
+EOF
+
+ cat <<"EOF"
+ /* stop here, and copy so we don't have to do this twice */
+ tmp_pathspec = xstrdup (newargz[0]);
+
+ /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
+ strcat (newargz[0], actual_cwrapper_name);
+
+ /* DO want the lt- prefix here if it exists, so use target_name */
+ lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
+ XFREE (tmp_pathspec);
+ tmp_pathspec = NULL;
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ {
+ char* p;
+ while ((p = strchr (newargz[0], '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ while ((p = strchr (lt_argv_zero, '\\')) != NULL)
+ {
+ *p = '/';
+ }
+ }
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+ XFREE (target_name);
+ XFREE (actual_cwrapper_path);
+ XFREE (actual_cwrapper_name);
+
+ lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
+ lt_setenv ("DUALCASE", "1"); /* for MSK sh */
+ lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
+ lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
+
+ newargc=0;
+ for (i = 1; i < argc; i++)
+ {
+ if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
+ {
+ if (argv[i][env_set_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_set_opt_len + 1;
+ lt_opt_process_env_set (p);
+ }
+ else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_set (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_set_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
+ {
+ if (argv[i][env_prepend_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_prepend_opt_len + 1;
+ lt_opt_process_env_prepend (p);
+ }
+ else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_prepend (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_prepend_opt);
+ continue;
+ }
+ if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
+ {
+ if (argv[i][env_append_opt_len] == '=')
+ {
+ const char *p = argv[i] + env_append_opt_len + 1;
+ lt_opt_process_env_append (p);
+ }
+ else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
+ {
+ lt_opt_process_env_append (argv[++i]); /* don't copy */
+ }
+ else
+ lt_fatal ("%s missing required argument", env_append_opt);
+ continue;
+ }
+ if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
+ {
+ /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
+ namespace, but it is not one of the ones we know about and
+ have already dealt with, above (inluding dump-script), then
+ report an error. Otherwise, targets might begin to believe
+ they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
+ namespace. The first time any user complains about this, we'll
+ need to make LTWRAPPER_OPTION_PREFIX a configure-time option
+ or a configure.ac-settable value.
+ */
+ lt_fatal ("Unrecognized option in %s namespace: '%s'",
+ ltwrapper_option_prefix, argv[i]);
+ }
+ /* otherwise ... */
+ newargz[++newargc] = xstrdup (argv[i]);
+ }
+ newargz[++newargc] = NULL;
+
+ LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
+ for (i = 0; i < newargc; i++)
+ {
+ LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
+ }
+
+EOF
+
+ case $host_os in
+ mingw*)
+ cat <<"EOF"
+ /* execv doesn't actually work on mingw as expected on unix */
+ rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
+ if (rval == -1)
+ {
+ /* failed to start process */
+ LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
+ return 127;
+ }
+ return rval;
+EOF
+ ;;
+ *)
+ cat <<"EOF"
+ execv (lt_argv_zero, newargz);
+ return rval; /* =127, but avoids unused variable warning */
+EOF
+ ;;
+ esac
+
+ cat <<"EOF"
+}
+
+void *
+xmalloc (size_t num)
+{
+ void *p = (void *) malloc (num);
+ if (!p)
+ lt_fatal ("Memory exhausted");
+
+ return p;
+}
+
+char *
+xstrdup (const char *string)
+{
+ return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
+ string) : NULL;
+}
+
+const char *
+base_name (const char *name)
+{
+ const char *base;
+
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ /* Skip over the disk name in MSDOS pathnames. */
+ if (isalpha ((unsigned char) name[0]) && name[1] == ':')
+ name += 2;
+#endif
+
+ for (base = name; *name; name++)
+ if (IS_DIR_SEPARATOR (*name))
+ base = name + 1;
+ return base;
+}
+
+int
+check_executable (const char *path)
+{
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if ((stat (path, &st) >= 0)
+ && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
+ return 1;
+ else
+ return 0;
+}
+
+int
+make_executable (const char *path)
+{
+ int rval = 0;
+ struct stat st;
+
+ LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
+ path ? (*path ? path : "EMPTY!") : "NULL!"));
+ if ((!path) || (!*path))
+ return 0;
+
+ if (stat (path, &st) >= 0)
+ {
+ rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
+ }
+ return rval;
+}
+
+/* Searches for the full path of the wrapper. Returns
+ newly allocated full path name if found, NULL otherwise
+ Does not chase symlinks, even on platforms that support them.
+*/
+char *
+find_executable (const char *wrapper)
+{
+ int has_slash = 0;
+ const char *p;
+ const char *p_next;
+ /* static buffer for getcwd */
+ char tmp[LT_PATHMAX + 1];
+ int tmp_len;
+ char *concat_name;
+
+ LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
+ wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
+
+ if ((wrapper == NULL) || (*wrapper == '\0'))
+ return NULL;
+
+ /* Absolute path? */
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ else
+ {
+#endif
+ if (IS_DIR_SEPARATOR (wrapper[0]))
+ {
+ concat_name = xstrdup (wrapper);
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
+ }
+#endif
+
+ for (p = wrapper; *p; p++)
+ if (*p == '/')
+ {
+ has_slash = 1;
+ break;
+ }
+ if (!has_slash)
+ {
+ /* no slashes; search PATH */
+ const char *path = getenv ("PATH");
+ if (path != NULL)
+ {
+ for (p = path; *p; p = p_next)
+ {
+ const char *q;
+ size_t p_len;
+ for (q = p; *q; q++)
+ if (IS_PATH_SEPARATOR (*q))
+ break;
+ p_len = q - p;
+ p_next = (*q == '\0' ? q : q + 1);
+ if (p_len == 0)
+ {
+ /* empty path: current directory */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name =
+ XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+ }
+ else
+ {
+ concat_name =
+ XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, p, p_len);
+ concat_name[p_len] = '/';
+ strcpy (concat_name + p_len + 1, wrapper);
+ }
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ }
+ }
+ /* not found in PATH; assume curdir */
+ }
+ /* Relative path | not found in path: prepend cwd */
+ if (getcwd (tmp, LT_PATHMAX) == NULL)
+ lt_fatal ("getcwd failed");
+ tmp_len = strlen (tmp);
+ concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
+ memcpy (concat_name, tmp, tmp_len);
+ concat_name[tmp_len] = '/';
+ strcpy (concat_name + tmp_len + 1, wrapper);
+
+ if (check_executable (concat_name))
+ return concat_name;
+ XFREE (concat_name);
+ return NULL;
+}
+
+char *
+chase_symlinks (const char *pathspec)
+{
+#ifndef S_ISLNK
+ return xstrdup (pathspec);
+#else
+ char buf[LT_PATHMAX];
+ struct stat s;
+ char *tmp_pathspec = xstrdup (pathspec);
+ char *p;
+ int has_symlinks = 0;
+ while (strlen (tmp_pathspec) && !has_symlinks)
+ {
+ LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
+ tmp_pathspec));
+ if (lstat (tmp_pathspec, &s) == 0)
+ {
+ if (S_ISLNK (s.st_mode) != 0)
+ {
+ has_symlinks = 1;
+ break;
+ }
+
+ /* search backwards for last DIR_SEPARATOR */
+ p = tmp_pathspec + strlen (tmp_pathspec) - 1;
+ while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ p--;
+ if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
+ {
+ /* no more DIR_SEPARATORS left */
+ break;
+ }
+ *p = '\0';
+ }
+ else
+ {
+ char *errstr = strerror (errno);
+ lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
+ }
+ }
+ XFREE (tmp_pathspec);
+
+ if (!has_symlinks)
+ {
+ return xstrdup (pathspec);
+ }
+
+ tmp_pathspec = realpath (pathspec, buf);
+ if (tmp_pathspec == 0)
+ {
+ lt_fatal ("Could not follow symlinks for %s", pathspec);
+ }
+ return xstrdup (tmp_pathspec);
+#endif
+}
+
+char *
+strendzap (char *str, const char *pat)
+{
+ size_t len, patlen;
+
+ assert (str != NULL);
+ assert (pat != NULL);
+
+ len = strlen (str);
+ patlen = strlen (pat);
+
+ if (patlen <= len)
+ {
+ str += len - patlen;
+ if (strcmp (str, pat) == 0)
+ *str = '\0';
+ }
+ return str;
+}
+
+static void
+lt_error_core (int exit_status, const char *mode,
+ const char *message, va_list ap)
+{
+ fprintf (stderr, "%s: %s: ", program_name, mode);
+ vfprintf (stderr, message, ap);
+ fprintf (stderr, ".\n");
+
+ if (exit_status >= 0)
+ exit (exit_status);
+}
+
+void
+lt_fatal (const char *message, ...)
+{
+ va_list ap;
+ va_start (ap, message);
+ lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
+ va_end (ap);
+}
+
+void
+lt_setenv (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+ {
+#ifdef HAVE_SETENV
+ /* always make a copy, for consistency with !HAVE_SETENV */
+ char *str = xstrdup (value);
+ setenv (name, str, 1);
+#else
+ int len = strlen (name) + 1 + strlen (value) + 1;
+ char *str = XMALLOC (char, len);
+ sprintf (str, "%s=%s", name, value);
+ if (putenv (str) != EXIT_SUCCESS)
+ {
+ XFREE (str);
+ }
+#endif
+ }
+}
+
+char *
+lt_extend_str (const char *orig_value, const char *add, int to_end)
+{
+ char *new_value;
+ if (orig_value && *orig_value)
+ {
+ int orig_value_len = strlen (orig_value);
+ int add_len = strlen (add);
+ new_value = XMALLOC (char, add_len + orig_value_len + 1);
+ if (to_end)
+ {
+ strcpy (new_value, orig_value);
+ strcpy (new_value + orig_value_len, add);
+ }
+ else
+ {
+ strcpy (new_value, add);
+ strcpy (new_value + add_len, orig_value);
+ }
+ }
+ else
+ {
+ new_value = xstrdup (add);
+ }
+ return new_value;
+}
+
+int
+lt_split_name_value (const char *arg, char** name, char** value)
+{
+ const char *p;
+ int len;
+ if (!arg || !*arg)
+ return 1;
+
+ p = strchr (arg, (int)'=');
+
+ if (!p)
+ return 1;
+
+ *value = xstrdup (++p);
+
+ len = strlen (arg) - strlen (*value);
+ *name = XMALLOC (char, len);
+ strncpy (*name, arg, len-1);
+ (*name)[len - 1] = '\0';
+
+ return 0;
+}
+
+void
+lt_opt_process_env_set (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
+ }
+
+ lt_setenv (name, value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_prepend (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_opt_process_env_append (const char *arg)
+{
+ char *name = NULL;
+ char *value = NULL;
+ char *new_value = NULL;
+
+ if (lt_split_name_value (arg, &name, &value) != 0)
+ {
+ XFREE (name);
+ XFREE (value);
+ lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
+ }
+
+ new_value = lt_extend_str (getenv (name), value, 1);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ XFREE (name);
+ XFREE (value);
+}
+
+void
+lt_update_exe_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ /* some systems can't cope with a ':'-terminated path #' */
+ int len = strlen (new_value);
+ while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
+ {
+ new_value[len-1] = '\0';
+ }
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+void
+lt_update_lib_path (const char *name, const char *value)
+{
+ LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
+ (name ? name : "<NULL>"),
+ (value ? value : "<NULL>")));
+
+ if (name && *name && value && *value)
+ {
+ char *new_value = lt_extend_str (getenv (name), value, 0);
+ lt_setenv (name, new_value);
+ XFREE (new_value);
+ }
+}
+
+
+EOF
+}
+# end: func_emit_cwrapperexe_src
+
+# func_mode_link arg...
+func_mode_link ()
+{
+ $opt_debug
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ # It is impossible to link a dll without this setting, and
+ # we shouldn't force the makefile maintainer to figure out
+ # which system we are compiling for in order to pass an extra
+ # flag for every libtool invocation.
+ # allow_undefined=no
+
+ # FIXME: Unfortunately, there are problems with the above when trying
+ # to make a dll which has undefined symbols, in which case not
+ # even a static library is built. For now, we need to specify
+ # -no-undefined on the libtool link line when we can be certain
+ # that all symbols are satisfied, otherwise we get a static library.
+ allow_undefined=yes
+ ;;
+ *)
+ allow_undefined=yes
+ ;;
+ esac
+ libtool_args=$nonopt
+ base_compile="$nonopt $@"
+ compile_command=$nonopt
+ finalize_command=$nonopt
+
+ compile_rpath=
+ finalize_rpath=
+ compile_shlibpath=
+ finalize_shlibpath=
+ convenience=
+ old_convenience=
+ deplibs=
+ old_deplibs=
+ compiler_flags=
+ linker_flags=
+ dllsearchpath=
+ lib_search_path=`pwd`
+ inst_prefix_dir=
+ new_inherited_linker_flags=
+
+ avoid_version=no
+ dlfiles=
+ dlprefiles=
+ dlself=no
+ export_dynamic=no
+ export_symbols=
+ export_symbols_regex=
+ generated=
+ libobjs=
+ ltlibs=
+ module=no
+ no_install=no
+ objs=
+ non_pic_objects=
+ precious_files_regex=
+ prefer_static_libs=no
+ preload=no
+ prev=
+ prevarg=
+ release=
+ rpath=
+ xrpath=
+ perm_rpath=
+ temp_rpath=
+ thread_safe=no
+ vinfo=
+ vinfo_number=no
+ weak_libs=
+ single_module="${wl}-single_module"
+ func_infer_tag $base_compile
+
+ # We need to know -static, to get the right output filenames.
+ for arg
+ do
+ case $arg in
+ -shared)
+ test "$build_libtool_libs" != yes && \
+ func_fatal_configuration "can not build a shared library"
+ build_old_libs=no
+ break
+ ;;
+ -all-static | -static | -static-libtool-libs)
+ case $arg in
+ -all-static)
+ if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
+ func_warning "complete static linking is impossible in this configuration"
+ fi
+ if test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ -static)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=built
+ ;;
+ -static-libtool-libs)
+ if test -z "$pic_flag" && test -n "$link_static_flag"; then
+ dlopen_self=$dlopen_self_static
+ fi
+ prefer_static_libs=yes
+ ;;
+ esac
+ build_libtool_libs=no
+ build_old_libs=yes
+ break
+ ;;
+ esac
+ done
+
+ # See if our shared archives depend on static archives.
+ test -n "$old_archive_from_new_cmds" && build_old_libs=yes
+
+ # Go through the arguments, transforming them on the way.
+ while test "$#" -gt 0; do
+ arg="$1"
+ shift
+ func_quote_for_eval "$arg"
+ qarg=$func_quote_for_eval_unquoted_result
+ func_append libtool_args " $func_quote_for_eval_result"
+
+ # If the previous option needs an argument, assign it.
+ if test -n "$prev"; then
+ case $prev in
+ output)
+ func_append compile_command " @OUTPUT@"
+ func_append finalize_command " @OUTPUT@"
+ ;;
+ esac
+
+ case $prev in
+ dlfiles|dlprefiles)
+ if test "$preload" = no; then
+ # Add the symbol object into the linking commands.
+ func_append compile_command " @SYMFILE@"
+ func_append finalize_command " @SYMFILE@"
+ preload=yes
+ fi
+ case $arg in
+ *.la | *.lo) ;; # We handle these cases below.
+ force)
+ if test "$dlself" = no; then
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ self)
+ if test "$prev" = dlprefiles; then
+ dlself=yes
+ elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
+ dlself=yes
+ else
+ dlself=needless
+ export_dynamic=yes
+ fi
+ prev=
+ continue
+ ;;
+ *)
+ if test "$prev" = dlfiles; then
+ dlfiles="$dlfiles $arg"
+ else
+ dlprefiles="$dlprefiles $arg"
+ fi
+ prev=
+ continue
+ ;;
+ esac
+ ;;
+ expsyms)
+ export_symbols="$arg"
+ test -f "$arg" \
+ || func_fatal_error "symbol file \`$arg' does not exist"
+ prev=
+ continue
+ ;;
+ expsyms_regex)
+ export_symbols_regex="$arg"
+ prev=
+ continue
+ ;;
+ framework)
+ case $host in
+ *-*-darwin*)
+ case "$deplibs " in
+ *" $qarg.ltframework "*) ;;
+ *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
+ ;;
+ esac
+ ;;
+ esac
+ prev=
+ continue
+ ;;
+ inst_prefix)
+ inst_prefix_dir="$arg"
+ prev=
+ continue
+ ;;
+ objectlist)
+ if test -f "$arg"; then
+ save_arg=$arg
+ moreargs=
+ for fil in `cat "$save_arg"`
+ do
+# moreargs="$moreargs $fil"
+ arg=$fil
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ done
+ else
+ func_fatal_error "link input file \`$arg' does not exist"
+ fi
+ arg=$save_arg
+ prev=
+ continue
+ ;;
+ precious_regex)
+ precious_files_regex="$arg"
+ prev=
+ continue
+ ;;
+ release)
+ release="-$arg"
+ prev=
+ continue
+ ;;
+ rpath | xrpath)
+ # We need an absolute path.
+ case $arg in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ if test "$prev" = rpath; then
+ case "$rpath " in
+ *" $arg "*) ;;
+ *) rpath="$rpath $arg" ;;
+ esac
+ else
+ case "$xrpath " in
+ *" $arg "*) ;;
+ *) xrpath="$xrpath $arg" ;;
+ esac
+ fi
+ prev=
+ continue
+ ;;
+ shrext)
+ shrext_cmds="$arg"
+ prev=
+ continue
+ ;;
+ weak)
+ weak_libs="$weak_libs $arg"
+ prev=
+ continue
+ ;;
+ xcclinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xcompiler)
+ compiler_flags="$compiler_flags $qarg"
+ prev=
+ func_append compile_command " $qarg"
+ func_append finalize_command " $qarg"
+ continue
+ ;;
+ xlinker)
+ linker_flags="$linker_flags $qarg"
+ compiler_flags="$compiler_flags $wl$qarg"
+ prev=
+ func_append compile_command " $wl$qarg"
+ func_append finalize_command " $wl$qarg"
+ continue
+ ;;
+ *)
+ eval "$prev=\"\$arg\""
+ prev=
+ continue
+ ;;
+ esac
+ fi # test -n "$prev"
+
+ prevarg="$arg"
+
+ case $arg in
+ -all-static)
+ if test -n "$link_static_flag"; then
+ # See comment for -static flag below, for more details.
+ func_append compile_command " $link_static_flag"
+ func_append finalize_command " $link_static_flag"
+ fi
+ continue
+ ;;
+
+ -allow-undefined)
+ # FIXME: remove this flag sometime in the future.
+ func_fatal_error "\`-allow-undefined' must not be used because it is the default"
+ ;;
+
+ -avoid-version)
+ avoid_version=yes
+ continue
+ ;;
+
+ -dlopen)
+ prev=dlfiles
+ continue
+ ;;
+
+ -dlpreopen)
+ prev=dlprefiles
+ continue
+ ;;
+
+ -export-dynamic)
+ export_dynamic=yes
+ continue
+ ;;
+
+ -export-symbols | -export-symbols-regex)
+ if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
+ func_fatal_error "more than one -exported-symbols argument is not allowed"
+ fi
+ if test "X$arg" = "X-export-symbols"; then
+ prev=expsyms
+ else
+ prev=expsyms_regex
+ fi
+ continue
+ ;;
+
+ -framework)
+ prev=framework
+ continue
+ ;;
+
+ -inst-prefix-dir)
+ prev=inst_prefix
+ continue
+ ;;
+
+ # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
+ # so, if we see these flags be careful not to treat them like -L
+ -L[A-Z][A-Z]*:*)
+ case $with_gcc/$host in
+ no/*-*-irix* | /*-*-irix*)
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ ;;
+ esac
+ continue
+ ;;
+
+ -L*)
+ func_stripname '-L' '' "$arg"
+ dir=$func_stripname_result
+ if test -z "$dir"; then
+ if test "$#" -gt 0; then
+ func_fatal_error "require no space between \`-L' and \`$1'"
+ else
+ func_fatal_error "need path for \`-L' option"
+ fi
+ fi
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ test -z "$absdir" && \
+ func_fatal_error "cannot determine absolute directory name of \`$dir'"
+ dir="$absdir"
+ ;;
+ esac
+ case "$deplibs " in
+ *" -L$dir "*) ;;
+ *)
+ deplibs="$deplibs -L$dir"
+ lib_search_path="$lib_search_path $dir"
+ ;;
+ esac
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$dir:"*) ;;
+ ::) dllsearchpath=$dir;;
+ *) dllsearchpath="$dllsearchpath:$dir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ continue
+ ;;
+
+ -l*)
+ if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
+ # These systems don't actually have a C or math library (as such)
+ continue
+ ;;
+ *-*-os2*)
+ # These systems don't actually have a C library (as such)
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C and math libraries are in the System framework
+ deplibs="$deplibs System.ltframework"
+ continue
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ test "X$arg" = "X-lc" && continue
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ test "X$arg" = "X-lc" && continue
+ ;;
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+ esac
+ fi
+ deplibs="$deplibs $arg"
+ continue
+ ;;
+
+ -module)
+ module=yes
+ continue
+ ;;
+
+ # Tru64 UNIX uses -model [arg] to determine the layout of C++
+ # classes, name mangling, and exception handling.
+ # Darwin uses the -arch flag to determine output architecture.
+ -model|-arch|-isysroot)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ prev=xcompiler
+ continue
+ ;;
+
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ compiler_flags="$compiler_flags $arg"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ case "$new_inherited_linker_flags " in
+ *" $arg "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
+ esac
+ continue
+ ;;
+
+ -multi_module)
+ single_module="${wl}-multi_module"
+ continue
+ ;;
+
+ -no-fast-install)
+ fast_install=no
+ continue
+ ;;
+
+ -no-install)
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
+ # The PATH hackery in wrapper scripts is required on Windows
+ # and Darwin in order for the loader to find any dlls it needs.
+ func_warning "\`-no-install' is ignored for $host"
+ func_warning "assuming \`-no-fast-install' instead"
+ fast_install=no
+ ;;
+ *) no_install=yes ;;
+ esac
+ continue
+ ;;
+
+ -no-undefined)
+ allow_undefined=no
+ continue
+ ;;
+
+ -objectlist)
+ prev=objectlist
+ continue
+ ;;
+
+ -o) prev=output ;;
+
+ -precious-files-regex)
+ prev=precious_regex
+ continue
+ ;;
+
+ -release)
+ prev=release
+ continue
+ ;;
+
+ -rpath)
+ prev=rpath
+ continue
+ ;;
+
+ -R)
+ prev=xrpath
+ continue
+ ;;
+
+ -R*)
+ func_stripname '-R' '' "$arg"
+ dir=$func_stripname_result
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) ;;
+ *)
+ func_fatal_error "only absolute run-paths are allowed"
+ ;;
+ esac
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ continue
+ ;;
+
+ -shared)
+ # The effects of -shared are defined in a previous loop.
+ continue
+ ;;
+
+ -shrext)
+ prev=shrext
+ continue
+ ;;
+
+ -static | -static-libtool-libs)
+ # The effects of -static are defined in a previous loop.
+ # We used to do the same as -all-static on platforms that
+ # didn't have a PIC flag, but the assumption that the effects
+ # would be equivalent was wrong. It would break on at least
+ # Digital Unix and AIX.
+ continue
+ ;;
+
+ -thread-safe)
+ thread_safe=yes
+ continue
+ ;;
+
+ -version-info)
+ prev=vinfo
+ continue
+ ;;
+
+ -version-number)
+ prev=vinfo
+ vinfo_number=yes
+ continue
+ ;;
+
+ -weak)
+ prev=weak
+ continue
+ ;;
+
+ -Wc,*)
+ func_stripname '-Wc,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Wl,*)
+ func_stripname '-Wl,' '' "$arg"
+ args=$func_stripname_result
+ arg=
+ save_ifs="$IFS"; IFS=','
+ for flag in $args; do
+ IFS="$save_ifs"
+ func_quote_for_eval "$flag"
+ arg="$arg $wl$func_quote_for_eval_result"
+ compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
+ linker_flags="$linker_flags $func_quote_for_eval_result"
+ done
+ IFS="$save_ifs"
+ func_stripname ' ' '' "$arg"
+ arg=$func_stripname_result
+ ;;
+
+ -Xcompiler)
+ prev=xcompiler
+ continue
+ ;;
+
+ -Xlinker)
+ prev=xlinker
+ continue
+ ;;
+
+ -XCClinker)
+ prev=xcclinker
+ continue
+ ;;
+
+ # -msg_* for osf cc
+ -msg_*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
+ # -r[0-9][0-9]* specifies the processor on the SGI compiler
+ # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
+ # +DA*, +DD* enable 64-bit mode on the HP compiler
+ # -q* pass through compiler args for the IBM compiler
+ # -m*, -t[45]*, -txscale* pass through architecture-specific
+ # compiler args for GCC
+ # -F/path gives path to uninstalled frameworks, gcc on darwin
+ # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
+ # @file GCC response files
+ -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
+ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ compiler_flags="$compiler_flags $arg"
+ continue
+ ;;
+
+ # Some other compiler flag.
+ -* | +*)
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+
+ *.$objext)
+ # A standard object.
+ objs="$objs $arg"
+ ;;
+
+ *.lo)
+ # A libtool-controlled object.
+
+ # Check to see that this really is a libtool object.
+ if func_lalib_unsafe_p "$arg"; then
+ pic_object=
+ non_pic_object=
+
+ # Read the .lo file
+ func_source "$arg"
+
+ if test -z "$pic_object" ||
+ test -z "$non_pic_object" ||
+ test "$pic_object" = none &&
+ test "$non_pic_object" = none; then
+ func_fatal_error "cannot find name of object for \`$arg'"
+ fi
+
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ if test "$pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ pic_object="$xdir$pic_object"
+
+ if test "$prev" = dlfiles; then
+ if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
+ dlfiles="$dlfiles $pic_object"
+ prev=
+ continue
+ else
+ # If libtool objects are unsupported, then we need to preload.
+ prev=dlprefiles
+ fi
+ fi
+
+ # CHECK ME: I think I busted this. -Ossama
+ if test "$prev" = dlprefiles; then
+ # Preload the old-style object.
+ dlprefiles="$dlprefiles $pic_object"
+ prev=
+ fi
+
+ # A PIC object.
+ func_append libobjs " $pic_object"
+ arg="$pic_object"
+ fi
+
+ # Non-PIC object.
+ if test "$non_pic_object" != none; then
+ # Prepend the subdirectory the object is found in.
+ non_pic_object="$xdir$non_pic_object"
+
+ # A standard non-PIC object
+ func_append non_pic_objects " $non_pic_object"
+ if test -z "$pic_object" || test "$pic_object" = none ; then
+ arg="$non_pic_object"
+ fi
+ else
+ # If the PIC object exists, use it instead.
+ # $xdir was prepended to $pic_object above.
+ non_pic_object="$pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ fi
+ else
+ # Only an error if not doing a dry-run.
+ if $opt_dry_run; then
+ # Extract subdirectory from the argument.
+ func_dirname "$arg" "/" ""
+ xdir="$func_dirname_result"
+
+ func_lo2o "$arg"
+ pic_object=$xdir$objdir/$func_lo2o_result
+ non_pic_object=$xdir$func_lo2o_result
+ func_append libobjs " $pic_object"
+ func_append non_pic_objects " $non_pic_object"
+ else
+ func_fatal_error "\`$arg' is not a valid libtool object"
+ fi
+ fi
+ ;;
+
+ *.$libext)
+ # An archive.
+ deplibs="$deplibs $arg"
+ old_deplibs="$old_deplibs $arg"
+ continue
+ ;;
+
+ *.la)
+ # A libtool-controlled library.
+
+ if test "$prev" = dlfiles; then
+ # This library was specified with -dlopen.
+ dlfiles="$dlfiles $arg"
+ prev=
+ elif test "$prev" = dlprefiles; then
+ # The library was specified with -dlpreopen.
+ dlprefiles="$dlprefiles $arg"
+ prev=
+ else
+ deplibs="$deplibs $arg"
+ fi
+ continue
+ ;;
+
+ # Some other compiler argument.
+ *)
+ # Unknown arguments in both finalize_command and compile_command need
+ # to be aesthetically quoted because they are evaled later.
+ func_quote_for_eval "$arg"
+ arg="$func_quote_for_eval_result"
+ ;;
+ esac # arg
+
+ # Now actually substitute the argument into the commands.
+ if test -n "$arg"; then
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+ done # argument parsing loop
+
+ test -n "$prev" && \
+ func_fatal_help "the \`$prevarg' option requires an argument"
+
+ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
+ eval arg=\"$export_dynamic_flag_spec\"
+ func_append compile_command " $arg"
+ func_append finalize_command " $arg"
+ fi
+
+ oldlibs=
+ # calculate the name of the file, without its directory
+ func_basename "$output"
+ outputname="$func_basename_result"
+ libobjs_save="$libobjs"
+
+ if test -n "$shlibpath_var"; then
+ # get the directories listed in $shlibpath_var
+ eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
+ else
+ shlib_search_path=
+ fi
+ eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
+ eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
+
+ func_dirname "$output" "/" ""
+ output_objdir="$func_dirname_result$objdir"
+ # Create the object directory.
+ func_mkdir_p "$output_objdir"
+
+ # Determine the type of output
+ case $output in
+ "")
+ func_fatal_help "you must specify an output file"
+ ;;
+ *.$libext) linkmode=oldlib ;;
+ *.lo | *.$objext) linkmode=obj ;;
+ *.la) linkmode=lib ;;
+ *) linkmode=prog ;; # Anything else should be a program.
+ esac
+
+ specialdeplibs=
+
+ libs=
+ # Find all interdependent deplibs by searching for libraries
+ # that are linked more than once (e.g. -la -lb -la)
+ for deplib in $deplibs; do
+ if $opt_duplicate_deps ; then
+ case "$libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ libs="$libs $deplib"
+ done
+
+ if test "$linkmode" = lib; then
+ libs="$predeps $libs $compiler_lib_search_path $postdeps"
+
+ # Compute libraries that are listed more than once in $predeps
+ # $postdeps and mark them as special (i.e., whose duplicates are
+ # not to be eliminated).
+ pre_post_deps=
+ if $opt_duplicate_compiler_generated_deps; then
+ for pre_post_dep in $predeps $postdeps; do
+ case "$pre_post_deps " in
+ *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
+ esac
+ pre_post_deps="$pre_post_deps $pre_post_dep"
+ done
+ fi
+ pre_post_deps=
+ fi
+
+ deplibs=
+ newdependency_libs=
+ newlib_search_path=
+ need_relink=no # whether we're linking any uninstalled libtool libraries
+ notinst_deplibs= # not-installed libtool libraries
+ notinst_path= # paths that contain not-installed libtool libraries
+
+ case $linkmode in
+ lib)
+ passes="conv dlpreopen link"
+ for file in $dlfiles $dlprefiles; do
+ case $file in
+ *.la) ;;
+ *)
+ func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
+ ;;
+ esac
+ done
+ ;;
+ prog)
+ compile_deplibs=
+ finalize_deplibs=
+ alldeplibs=no
+ newdlfiles=
+ newdlprefiles=
+ passes="conv scan dlopen dlpreopen link"
+ ;;
+ *) passes="conv"
+ ;;
+ esac
+
+ for pass in $passes; do
+ # The preopen pass in lib mode reverses $deplibs; put it back here
+ # so that -L comes before libs that need it for instance...
+ if test "$linkmode,$pass" = "lib,link"; then
+ ## FIXME: Find the place where the list is rebuilt in the wrong
+ ## order, and fix it there properly
+ tmp_deplibs=
+ for deplib in $deplibs; do
+ tmp_deplibs="$deplib $tmp_deplibs"
+ done
+ deplibs="$tmp_deplibs"
+ fi
+
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan"; then
+ libs="$deplibs"
+ deplibs=
+ fi
+ if test "$linkmode" = prog; then
+ case $pass in
+ dlopen) libs="$dlfiles" ;;
+ dlpreopen) libs="$dlprefiles" ;;
+ link)
+ libs="$deplibs %DEPLIBS%"
+ test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
+ ;;
+ esac
+ fi
+ if test "$linkmode,$pass" = "lib,dlpreopen"; then
+ # Collect and forward deplibs of preopened libtool libs
+ for lib in $dlprefiles; do
+ # Ignore non-libtool-libs
+ dependency_libs=
+ case $lib in
+ *.la) func_source "$lib" ;;
+ esac
+
+ # Collect preopened libtool deplibs, except any this library
+ # has declared as weak libs
+ for deplib in $dependency_libs; do
+ deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
+ case " $weak_libs " in
+ *" $deplib_base "*) ;;
+ *) deplibs="$deplibs $deplib" ;;
+ esac
+ done
+ done
+ libs="$dlprefiles"
+ fi
+ if test "$pass" = dlopen; then
+ # Collect dlpreopened libraries
+ save_deplibs="$deplibs"
+ deplibs=
+ fi
+
+ for deplib in $libs; do
+ lib=
+ found=no
+ case $deplib in
+ -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags $deplib"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -l*)
+ if test "$linkmode" != lib && test "$linkmode" != prog; then
+ func_warning "\`-l' is ignored for archives/objects"
+ continue
+ fi
+ func_stripname '-l' '' "$deplib"
+ name=$func_stripname_result
+ if test "$linkmode" = lib; then
+ searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
+ else
+ searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
+ fi
+ for searchdir in $searchdirs; do
+ for search_ext in .la $std_shrext .so .a; do
+ # Search the libtool library
+ lib="$searchdir/lib${name}${search_ext}"
+ if test -f "$lib"; then
+ if test "$search_ext" = ".la"; then
+ found=yes
+ else
+ found=no
+ fi
+ break 2
+ fi
+ done
+ done
+ if test "$found" != yes; then
+ # deplib doesn't seem to be a libtool library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ else # deplib is a libtool library
+ # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
+ # We need to do some special things here, and not later.
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $deplib "*)
+ if func_lalib_p "$lib"; then
+ library_names=
+ old_library=
+ func_source "$lib"
+ for l in $old_library $library_names; do
+ ll="$l"
+ done
+ if test "X$ll" = "X$old_library" ; then # only static version available
+ found=no
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+ lib=$ladir/$old_library
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
+ fi
+ continue
+ fi
+ fi
+ ;;
+ *) ;;
+ esac
+ fi
+ fi
+ ;; # -l
+ *.ltframework)
+ if test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ deplibs="$deplib $deplibs"
+ if test "$linkmode" = lib ; then
+ case "$new_inherited_linker_flags " in
+ *" $deplib "*) ;;
+ * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
+ esac
+ fi
+ fi
+ continue
+ ;;
+ -L*)
+ case $linkmode in
+ lib)
+ deplibs="$deplib $deplibs"
+ test "$pass" = conv && continue
+ newdependency_libs="$deplib $newdependency_libs"
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ prog)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ if test "$pass" = scan; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ *)
+ func_warning "\`-L' is ignored for archives/objects"
+ ;;
+ esac # linkmode
+ continue
+ ;; # -L
+ -R*)
+ if test "$pass" = link; then
+ func_stripname '-R' '' "$deplib"
+ dir=$func_stripname_result
+ # Make sure the xrpath contains only unique directories.
+ case "$xrpath " in
+ *" $dir "*) ;;
+ *) xrpath="$xrpath $dir" ;;
+ esac
+ fi
+ deplibs="$deplib $deplibs"
+ continue
+ ;;
+ *.la) lib="$deplib" ;;
+ *.$libext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ continue
+ fi
+ case $linkmode in
+ lib)
+ # Linking convenience modules into shared libraries is allowed,
+ # but linking other static libraries is non-portable.
+ case " $dlpreconveniencelibs " in
+ *" $deplib "*) ;;
+ *)
+ valid_a_lib=no
+ case $deplibs_check_method in
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
+ | $EGREP "$match_pattern_regex" > /dev/null; then
+ valid_a_lib=yes
+ fi
+ ;;
+ pass_all)
+ valid_a_lib=yes
+ ;;
+ esac
+ if test "$valid_a_lib" != yes; then
+ $ECHO
+ $ECHO "*** Warning: Trying to link with static lib archive $deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because the file extensions .$libext of this argument makes me believe"
+ $ECHO "*** that it is just a static archive that I should not use here."
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the"
+ $ECHO "*** static library $deplib is not portable!"
+ deplibs="$deplib $deplibs"
+ fi
+ ;;
+ esac
+ continue
+ ;;
+ prog)
+ if test "$pass" != link; then
+ deplibs="$deplib $deplibs"
+ else
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ fi
+ continue
+ ;;
+ esac # linkmode
+ ;; # *.$libext
+ *.lo | *.$objext)
+ if test "$pass" = conv; then
+ deplibs="$deplib $deplibs"
+ elif test "$linkmode" = prog; then
+ if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
+ # If there is no dlopen support or we're linking statically,
+ # we need to preload.
+ newdlprefiles="$newdlprefiles $deplib"
+ compile_deplibs="$deplib $compile_deplibs"
+ finalize_deplibs="$deplib $finalize_deplibs"
+ else
+ newdlfiles="$newdlfiles $deplib"
+ fi
+ fi
+ continue
+ ;;
+ %DEPLIBS%)
+ alldeplibs=yes
+ continue
+ ;;
+ esac # case $deplib
+
+ if test "$found" = yes || test -f "$lib"; then :
+ else
+ func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
+ fi
+
+ # Check to see that this really is a libtool archive.
+ func_lalib_unsafe_p "$lib" \
+ || func_fatal_error "\`$lib' is not a valid libtool archive"
+
+ func_dirname "$lib" "" "."
+ ladir="$func_dirname_result"
+
+ dlname=
+ dlopen=
+ dlpreopen=
+ libdir=
+ library_names=
+ old_library=
+ inherited_linker_flags=
+ # If the library was installed with an old release of libtool,
+ # it will not redefine variables installed, or shouldnotlink
+ installed=yes
+ shouldnotlink=no
+ avoidtemprpath=
+
+
+ # Read the .la file
+ func_source "$lib"
+
+ # Convert "-framework foo" to "foo.ltframework"
+ if test -n "$inherited_linker_flags"; then
+ tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
+ for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
+ case " $new_inherited_linker_flags " in
+ *" $tmp_inherited_linker_flag "*) ;;
+ *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
+ esac
+ done
+ fi
+ dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ if test "$linkmode,$pass" = "lib,link" ||
+ test "$linkmode,$pass" = "prog,scan" ||
+ { test "$linkmode" != prog && test "$linkmode" != lib; }; then
+ test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
+ test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
+ fi
+
+ if test "$pass" = conv; then
+ # Only check for convenience libraries
+ deplibs="$lib $deplibs"
+ if test -z "$libdir"; then
+ if test -z "$old_library"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+ # It is a libtool convenience library, so add in its objects.
+ convenience="$convenience $ladir/$objdir/$old_library"
+ old_convenience="$old_convenience $ladir/$objdir/$old_library"
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ deplibs="$deplib $deplibs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+ elif test "$linkmode" != prog && test "$linkmode" != lib; then
+ func_fatal_error "\`$lib' is not a convenience library"
+ fi
+ continue
+ fi # $pass = conv
+
+
+ # Get the name of the library we link against.
+ linklib=
+ for l in $old_library $library_names; do
+ linklib="$l"
+ done
+ if test -z "$linklib"; then
+ func_fatal_error "cannot find name of link library for \`$lib'"
+ fi
+
+ # This library was specified with -dlopen.
+ if test "$pass" = dlopen; then
+ if test -z "$libdir"; then
+ func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
+ fi
+ if test -z "$dlname" ||
+ test "$dlopen_support" != yes ||
+ test "$build_libtool_libs" = no; then
+ # If there is no dlname, no dlopen support or we're linking
+ # statically, we need to preload. We also need to preload any
+ # dependent libraries so libltdl's deplib preloader doesn't
+ # bomb out in the load deplibs phase.
+ dlprefiles="$dlprefiles $lib $dependency_libs"
+ else
+ newdlfiles="$newdlfiles $lib"
+ fi
+ continue
+ fi # $pass = dlopen
+
+ # We need an absolute path.
+ case $ladir in
+ [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
+ *)
+ abs_ladir=`cd "$ladir" && pwd`
+ if test -z "$abs_ladir"; then
+ func_warning "cannot determine absolute directory name of \`$ladir'"
+ func_warning "passing it literally to the linker, although it might fail"
+ abs_ladir="$ladir"
+ fi
+ ;;
+ esac
+ func_basename "$lib"
+ laname="$func_basename_result"
+
+ # Find the relevant object directory and library name.
+ if test "X$installed" = Xyes; then
+ if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ func_warning "library \`$lib' was moved."
+ dir="$ladir"
+ absdir="$abs_ladir"
+ libdir="$abs_ladir"
+ else
+ dir="$libdir"
+ absdir="$libdir"
+ fi
+ test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
+ else
+ if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
+ dir="$ladir"
+ absdir="$abs_ladir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ else
+ dir="$ladir/$objdir"
+ absdir="$abs_ladir/$objdir"
+ # Remove this search path later
+ notinst_path="$notinst_path $abs_ladir"
+ fi
+ fi # $installed = yes
+ func_stripname 'lib' '.la' "$laname"
+ name=$func_stripname_result
+
+ # This library was specified with -dlpreopen.
+ if test "$pass" = dlpreopen; then
+ if test -z "$libdir" && test "$linkmode" = prog; then
+ func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
+ fi
+ # Prefer using a static library (so that no silly _DYNAMIC symbols
+ # are required to link).
+ if test -n "$old_library"; then
+ newdlprefiles="$newdlprefiles $dir/$old_library"
+ # Keep a list of preopened convenience libraries to check
+ # that they are being used correctly in the link pass.
+ test -z "$libdir" && \
+ dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
+ # Otherwise, use the dlname, so that lt_dlopen finds it.
+ elif test -n "$dlname"; then
+ newdlprefiles="$newdlprefiles $dir/$dlname"
+ else
+ newdlprefiles="$newdlprefiles $dir/$linklib"
+ fi
+ fi # $pass = dlpreopen
+
+ if test -z "$libdir"; then
+ # Link the convenience library
+ if test "$linkmode" = lib; then
+ deplibs="$dir/$old_library $deplibs"
+ elif test "$linkmode,$pass" = "prog,link"; then
+ compile_deplibs="$dir/$old_library $compile_deplibs"
+ finalize_deplibs="$dir/$old_library $finalize_deplibs"
+ else
+ deplibs="$lib $deplibs" # used for prog,scan pass
+ fi
+ continue
+ fi
+
+
+ if test "$linkmode" = prog && test "$pass" != link; then
+ newlib_search_path="$newlib_search_path $ladir"
+ deplibs="$lib $deplibs"
+
+ linkalldeplibs=no
+ if test "$link_all_deplibs" != no || test -z "$library_names" ||
+ test "$build_libtool_libs" = no; then
+ linkalldeplibs=yes
+ fi
+
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ -L*) func_stripname '-L' '' "$deplib"
+ newlib_search_path="$newlib_search_path $func_stripname_result"
+ ;;
+ esac
+ # Need to link against all dependency_libs?
+ if test "$linkalldeplibs" = yes; then
+ deplibs="$deplib $deplibs"
+ else
+ # Need to hardcode shared library paths
+ # or/and link against static libraries
+ newdependency_libs="$deplib $newdependency_libs"
+ fi
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done # for deplib
+ continue
+ fi # $linkmode = prog...
+
+ if test "$linkmode,$pass" = "prog,link"; then
+ if test -n "$library_names" &&
+ { { test "$prefer_static_libs" = no ||
+ test "$prefer_static_libs,$installed" = "built,yes"; } ||
+ test -z "$old_library"; }; then
+ # We need to hardcode the library path
+ if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
+ # Make sure the rpath contains only unique directories.
+ case "$temp_rpath:" in
+ *"$absdir:"*) ;;
+ *) temp_rpath="$temp_rpath$absdir:" ;;
+ esac
+ fi
+
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi # $linkmode,$pass = prog,link...
+
+ if test "$alldeplibs" = yes &&
+ { test "$deplibs_check_method" = pass_all ||
+ { test "$build_libtool_libs" = yes &&
+ test -n "$library_names"; }; }; then
+ # We only need to search for static libraries
+ continue
+ fi
+ fi
+
+ link_static=no # Whether the deplib will be linked statically
+ use_static_libs=$prefer_static_libs
+ if test "$use_static_libs" = built && test "$installed" = yes; then
+ use_static_libs=no
+ fi
+ if test -n "$library_names" &&
+ { test "$use_static_libs" = no || test -z "$old_library"; }; then
+ case $host in
+ *cygwin* | *mingw* | *cegcc*)
+ # No point in relinking DLLs because paths are not encoded
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=no
+ ;;
+ *)
+ if test "$installed" = no; then
+ notinst_deplibs="$notinst_deplibs $lib"
+ need_relink=yes
+ fi
+ ;;
+ esac
+ # This is a shared library
+
+ # Warn about portability, can't link against -module's on some
+ # systems (darwin). Don't bleat about dlopened modules though!
+ dlopenmodule=""
+ for dlpremoduletest in $dlprefiles; do
+ if test "X$dlpremoduletest" = "X$lib"; then
+ dlopenmodule="$dlpremoduletest"
+ break
+ fi
+ done
+ if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
+ $ECHO
+ if test "$linkmode" = prog; then
+ $ECHO "*** Warning: Linking the executable $output against the loadable module"
+ else
+ $ECHO "*** Warning: Linking the shared library $output against the loadable module"
+ fi
+ $ECHO "*** $linklib is not portable!"
+ fi
+ if test "$linkmode" = lib &&
+ test "$hardcode_into_libs" = yes; then
+ # Hardcode the library path.
+ # Skip directories that are in the system default run-time
+ # search path.
+ case " $sys_lib_dlsearch_path " in
+ *" $absdir "*) ;;
+ *)
+ case "$compile_rpath " in
+ *" $absdir "*) ;;
+ *) compile_rpath="$compile_rpath $absdir"
+ esac
+ ;;
+ esac
+ case " $sys_lib_dlsearch_path " in
+ *" $libdir "*) ;;
+ *)
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir"
+ esac
+ ;;
+ esac
+ fi
+
+ if test -n "$old_archive_from_expsyms_cmds"; then
+ # figure out the soname
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ # use dlname if we got it. it's perfectly good, no?
+ if test -n "$dlname"; then
+ soname="$dlname"
+ elif test -n "$soname_spec"; then
+ # bleh windows
+ case $host in
+ *cygwin* | mingw* | *cegcc*)
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+ esac
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+
+ # Make a new name for the extract_expsyms_cmds to use
+ soroot="$soname"
+ func_basename "$soroot"
+ soname="$func_basename_result"
+ func_stripname 'lib' '.dll' "$soname"
+ newlib=libimp-$func_stripname_result.a
+
+ # If the library has no export list, then create one now
+ if test -f "$output_objdir/$soname-def"; then :
+ else
+ func_verbose "extracting exported symbol list from \`$soname'"
+ func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
+ fi
+
+ # Create $newlib
+ if test -f "$output_objdir/$newlib"; then :; else
+ func_verbose "generating import library for \`$soname'"
+ func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
+ fi
+ # make sure the library variables are pointing to the new library
+ dir=$output_objdir
+ linklib=$newlib
+ fi # test -n "$old_archive_from_expsyms_cmds"
+
+ if test "$linkmode" = prog || test "$mode" != relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ lib_linked=yes
+ case $hardcode_action in
+ immediate | unsupported)
+ if test "$hardcode_direct" = no; then
+ add="$dir/$linklib"
+ case $host in
+ *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
+ *-*-sysv4*uw2*) add_dir="-L$dir" ;;
+ *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
+ *-*-unixware7*) add_dir="-L$dir" ;;
+ *-*-darwin* )
+ # if the lib is a (non-dlopened) module then we can not
+ # link against it, someone is ignoring the earlier warnings
+ if /usr/bin/file -L $add 2> /dev/null |
+ $GREP ": [^:]* bundle" >/dev/null ; then
+ if test "X$dlopenmodule" != "X$lib"; then
+ $ECHO "*** Warning: lib $linklib is a module, not a shared library"
+ if test -z "$old_library" ; then
+ $ECHO
+ $ECHO "*** And there doesn't seem to be a static archive available"
+ $ECHO "*** The link will probably fail, sorry"
+ else
+ add="$dir/$old_library"
+ fi
+ elif test -n "$old_library"; then
+ add="$dir/$old_library"
+ fi
+ fi
+ esac
+ elif test "$hardcode_minus_L" = no; then
+ case $host in
+ *-*-sunos*) add_shlibpath="$dir" ;;
+ esac
+ add_dir="-L$dir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = no; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ relink)
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$dir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$dir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ add_shlibpath="$dir"
+ add="-l$name"
+ else
+ lib_linked=no
+ fi
+ ;;
+ *) lib_linked=no ;;
+ esac
+
+ if test "$lib_linked" != yes; then
+ func_fatal_configuration "unsupported hardcode properties"
+ fi
+
+ if test -n "$add_shlibpath"; then
+ case :$compile_shlibpath: in
+ *":$add_shlibpath:"*) ;;
+ *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
+ esac
+ fi
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
+ test -n "$add" && compile_deplibs="$add $compile_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ if test "$hardcode_direct" != yes &&
+ test "$hardcode_minus_L" != yes &&
+ test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ fi
+ fi
+ fi
+
+ if test "$linkmode" = prog || test "$mode" = relink; then
+ add_shlibpath=
+ add_dir=
+ add=
+ # Finalize command for both is simple: just hardcode it.
+ if test "$hardcode_direct" = yes &&
+ test "$hardcode_direct_absolute" = no; then
+ add="$libdir/$linklib"
+ elif test "$hardcode_minus_L" = yes; then
+ add_dir="-L$libdir"
+ add="-l$name"
+ elif test "$hardcode_shlibpath_var" = yes; then
+ case :$finalize_shlibpath: in
+ *":$libdir:"*) ;;
+ *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
+ esac
+ add="-l$name"
+ elif test "$hardcode_automatic" = yes; then
+ if test -n "$inst_prefix_dir" &&
+ test -f "$inst_prefix_dir$libdir/$linklib" ; then
+ add="$inst_prefix_dir$libdir/$linklib"
+ else
+ add="$libdir/$linklib"
+ fi
+ else
+ # We cannot seem to hardcode it, guess we'll fake it.
+ add_dir="-L$libdir"
+ # Try looking first in the location we're being installed to.
+ if test -n "$inst_prefix_dir"; then
+ case $libdir in
+ [\\/]*)
+ add_dir="$add_dir -L$inst_prefix_dir$libdir"
+ ;;
+ esac
+ fi
+ add="-l$name"
+ fi
+
+ if test "$linkmode" = prog; then
+ test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
+ test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
+ else
+ test -n "$add_dir" && deplibs="$add_dir $deplibs"
+ test -n "$add" && deplibs="$add $deplibs"
+ fi
+ fi
+ elif test "$linkmode" = prog; then
+ # Here we assume that one of hardcode_direct or hardcode_minus_L
+ # is not unsupported. This is valid on all known static and
+ # shared platforms.
+ if test "$hardcode_direct" != unsupported; then
+ test -n "$old_library" && linklib="$old_library"
+ compile_deplibs="$dir/$linklib $compile_deplibs"
+ finalize_deplibs="$dir/$linklib $finalize_deplibs"
+ else
+ compile_deplibs="-l$name -L$dir $compile_deplibs"
+ finalize_deplibs="-l$name -L$dir $finalize_deplibs"
+ fi
+ elif test "$build_libtool_libs" = yes; then
+ # Not a shared library
+ if test "$deplibs_check_method" != pass_all; then
+ # We're trying link a shared library against a static one
+ # but the system doesn't support it.
+
+ # Just print a warning and add the library to dependency_libs so
+ # that the program can be linked against the static library.
+ $ECHO
+ $ECHO "*** Warning: This system can not link to static lib archive $lib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have."
+ if test "$module" = yes; then
+ $ECHO "*** But as you try to build a module library, libtool will still create "
+ $ECHO "*** a static module, that should work as long as the dlopening application"
+ $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ else
+ deplibs="$dir/$old_library $deplibs"
+ link_static=yes
+ fi
+ fi # link shared/static library?
+
+ if test "$linkmode" = lib; then
+ if test -n "$dependency_libs" &&
+ { test "$hardcode_into_libs" != yes ||
+ test "$build_old_libs" = yes ||
+ test "$link_static" = yes; }; then
+ # Extract -R from dependency_libs
+ temp_deplibs=
+ for libdir in $dependency_libs; do
+ case $libdir in
+ -R*) func_stripname '-R' '' "$libdir"
+ temp_xrpath=$func_stripname_result
+ case " $xrpath " in
+ *" $temp_xrpath "*) ;;
+ *) xrpath="$xrpath $temp_xrpath";;
+ esac;;
+ *) temp_deplibs="$temp_deplibs $libdir";;
+ esac
+ done
+ dependency_libs="$temp_deplibs"
+ fi
+
+ newlib_search_path="$newlib_search_path $absdir"
+ # Link against this library
+ test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
+ # ... and its dependency_libs
+ tmp_libs=
+ for deplib in $dependency_libs; do
+ newdependency_libs="$deplib $newdependency_libs"
+ if $opt_duplicate_deps ; then
+ case "$tmp_libs " in
+ *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
+ esac
+ fi
+ tmp_libs="$tmp_libs $deplib"
+ done
+
+ if test "$link_all_deplibs" != no; then
+ # Add the search paths of all dependency libraries
+ for deplib in $dependency_libs; do
+ path=
+ case $deplib in
+ -L*) path="$deplib" ;;
+ *.la)
+ func_dirname "$deplib" "" "."
+ dir="$func_dirname_result"
+ # We need an absolute path.
+ case $dir in
+ [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
+ *)
+ absdir=`cd "$dir" && pwd`
+ if test -z "$absdir"; then
+ func_warning "cannot determine absolute directory name of \`$dir'"
+ absdir="$dir"
+ fi
+ ;;
+ esac
+ if $GREP "^installed=no" $deplib > /dev/null; then
+ case $host in
+ *-*-darwin*)
+ depdepl=
+ eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
+ if test -n "$deplibrary_names" ; then
+ for tmp in $deplibrary_names ; do
+ depdepl=$tmp
+ done
+ if test -f "$absdir/$objdir/$depdepl" ; then
+ depdepl="$absdir/$objdir/$depdepl"
+ darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ if test -z "$darwin_install_name"; then
+ darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
+ fi
+ compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
+ linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
+ path=
+ fi
+ fi
+ ;;
+ *)
+ path="-L$absdir/$objdir"
+ ;;
+ esac
+ else
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ test "$absdir" != "$libdir" && \
+ func_warning "\`$deplib' seems to be moved"
+
+ path="-L$absdir"
+ fi
+ ;;
+ esac
+ case " $deplibs " in
+ *" $path "*) ;;
+ *) deplibs="$path $deplibs" ;;
+ esac
+ done
+ fi # link_all_deplibs != no
+ fi # linkmode = lib
+ done # for deplib in $libs
+ if test "$pass" = link; then
+ if test "$linkmode" = "prog"; then
+ compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
+ finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
+ else
+ compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ fi
+ fi
+ dependency_libs="$newdependency_libs"
+ if test "$pass" = dlpreopen; then
+ # Link the dlpreopened libraries before other libraries
+ for deplib in $save_deplibs; do
+ deplibs="$deplib $deplibs"
+ done
+ fi
+ if test "$pass" != dlopen; then
+ if test "$pass" != conv; then
+ # Make sure lib_search_path contains only unique directories.
+ lib_search_path=
+ for dir in $newlib_search_path; do
+ case "$lib_search_path " in
+ *" $dir "*) ;;
+ *) lib_search_path="$lib_search_path $dir" ;;
+ esac
+ done
+ newlib_search_path=
+ fi
+
+ if test "$linkmode,$pass" != "prog,link"; then
+ vars="deplibs"
+ else
+ vars="compile_deplibs finalize_deplibs"
+ fi
+ for var in $vars dependency_libs; do
+ # Add libraries to $var in reverse order
+ eval tmp_libs=\"\$$var\"
+ new_libs=
+ for deplib in $tmp_libs; do
+ # FIXME: Pedantically, this is the right thing to do, so
+ # that some nasty dependency loop isn't accidentally
+ # broken:
+ #new_libs="$deplib $new_libs"
+ # Pragmatically, this seems to cause very few problems in
+ # practice:
+ case $deplib in
+ -L*) new_libs="$deplib $new_libs" ;;
+ -R*) ;;
+ *)
+ # And here is the reason: when a library appears more
+ # than once as an explicit dependence of a library, or
+ # is implicitly linked in more than once by the
+ # compiler, it is considered special, and multiple
+ # occurrences thereof are not removed. Compare this
+ # with having the same library being listed as a
+ # dependency of multiple other libraries: in this case,
+ # we know (pedantically, we assume) the library does not
+ # need to be listed more than once, so we keep only the
+ # last copy. This is not always right, but it is rare
+ # enough that we require users that really mean to play
+ # such unportable linking tricks to link the library
+ # using -Wl,-lname, so that libtool does not consider it
+ # for duplicate removal.
+ case " $specialdeplibs " in
+ *" $deplib "*) new_libs="$deplib $new_libs" ;;
+ *)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$deplib $new_libs" ;;
+ esac
+ ;;
+ esac
+ ;;
+ esac
+ done
+ tmp_libs=
+ for deplib in $new_libs; do
+ case $deplib in
+ -L*)
+ case " $tmp_libs " in
+ *" $deplib "*) ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ ;;
+ *) tmp_libs="$tmp_libs $deplib" ;;
+ esac
+ done
+ eval $var=\"$tmp_libs\"
+ done # for var
+ fi
+ # Last step: remove runtime libs from dependency_libs
+ # (they stay in deplibs)
+ tmp_libs=
+ for i in $dependency_libs ; do
+ case " $predeps $postdeps $compiler_lib_search_path " in
+ *" $i "*)
+ i=""
+ ;;
+ esac
+ if test -n "$i" ; then
+ tmp_libs="$tmp_libs $i"
+ fi
+ done
+ dependency_libs=$tmp_libs
+ done # for pass
+ if test "$linkmode" = prog; then
+ dlfiles="$newdlfiles"
+ fi
+ if test "$linkmode" = prog || test "$linkmode" = lib; then
+ dlprefiles="$newdlprefiles"
+ fi
+
+ case $linkmode in
+ oldlib)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for archives"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for archives" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for archives"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for archives"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for archives"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for archives"
+
+ test -n "$export_symbols$export_symbols_regex" && \
+ func_warning "\`-export-symbols' is ignored for archives"
+
+ # Now set the variables for building old libraries.
+ build_libtool_libs=no
+ oldlibs="$output"
+ objs="$objs$old_deplibs"
+ ;;
+
+ lib)
+ # Make sure we only generate libraries of the form `libNAME.la'.
+ case $outputname in
+ lib*)
+ func_stripname 'lib' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ ;;
+ *)
+ test "$module" = no && \
+ func_fatal_help "libtool library \`$output' must begin with \`lib'"
+
+ if test "$need_lib_prefix" != no; then
+ # Add the "lib" prefix for modules if required
+ func_stripname '' '.la' "$outputname"
+ name=$func_stripname_result
+ eval shared_ext=\"$shrext_cmds\"
+ eval libname=\"$libname_spec\"
+ else
+ func_stripname '' '.la' "$outputname"
+ libname=$func_stripname_result
+ fi
+ ;;
+ esac
+
+ if test -n "$objs"; then
+ if test "$deplibs_check_method" != pass_all; then
+ func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
+ else
+ $ECHO
+ $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
+ $ECHO "*** objects $objs is not portable!"
+ libobjs="$libobjs $objs"
+ fi
+ fi
+
+ test "$dlself" != no && \
+ func_warning "\`-dlopen self' is ignored for libtool libraries"
+
+ set dummy $rpath
+ shift
+ test "$#" -gt 1 && \
+ func_warning "ignoring multiple \`-rpath's for a libtool library"
+
+ install_libdir="$1"
+
+ oldlibs=
+ if test -z "$rpath"; then
+ if test "$build_libtool_libs" = yes; then
+ # Building a libtool convenience library.
+ # Some compilers have problems with a `.al' extension so
+ # convenience libraries should have the same extension an
+ # archive normally would.
+ oldlibs="$output_objdir/$libname.$libext $oldlibs"
+ build_libtool_libs=convenience
+ build_old_libs=yes
+ fi
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for convenience libraries"
+ else
+
+ # Parse the version information argument.
+ save_ifs="$IFS"; IFS=':'
+ set dummy $vinfo 0 0 0
+ shift
+ IFS="$save_ifs"
+
+ test -n "$7" && \
+ func_fatal_help "too many parameters to \`-version-info'"
+
+ # convert absolute version numbers to libtool ages
+ # this retains compatibility with .la files and attempts
+ # to make the code below a bit more comprehensible
+
+ case $vinfo_number in
+ yes)
+ number_major="$1"
+ number_minor="$2"
+ number_revision="$3"
+ #
+ # There are really only two kinds -- those that
+ # use the current revision as the major version
+ # and those that subtract age and use age as
+ # a minor version. But, then there is irix
+ # which has an extra 1 added just for fun
+ #
+ case $version_type in
+ darwin|linux|osf|windows|none)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_revision"
+ ;;
+ freebsd-aout|freebsd-elf|sunos)
+ current="$number_major"
+ revision="$number_minor"
+ age="0"
+ ;;
+ irix|nonstopux)
+ func_arith $number_major + $number_minor
+ current=$func_arith_result
+ age="$number_minor"
+ revision="$number_minor"
+ lt_irix_increment=no
+ ;;
+ *)
+ func_fatal_configuration "$modename: unknown library version type \`$version_type'"
+ ;;
+ esac
+ ;;
+ no)
+ current="$1"
+ revision="$2"
+ age="$3"
+ ;;
+ esac
+
+ # Check that each of the things are valid numbers.
+ case $current in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "CURRENT \`$current' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $revision in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "REVISION \`$revision' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ case $age in
+ 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
+ *)
+ func_error "AGE \`$age' must be a nonnegative integer"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ ;;
+ esac
+
+ if test "$age" -gt "$current"; then
+ func_error "AGE \`$age' is greater than the current interface number \`$current'"
+ func_fatal_error "\`$vinfo' is not valid version information"
+ fi
+
+ # Calculate the version variables.
+ major=
+ versuffix=
+ verstring=
+ case $version_type in
+ none) ;;
+
+ darwin)
+ # Like Linux, but with the current version available in
+ # verstring for coding it into the library header
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ # Darwin ld doesn't like 0 for these options...
+ func_arith $current + 1
+ minor_current=$func_arith_result
+ xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
+ verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
+ ;;
+
+ freebsd-aout)
+ major=".$current"
+ versuffix=".$current.$revision";
+ ;;
+
+ freebsd-elf)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ irix | nonstopux)
+ if test "X$lt_irix_increment" = "Xno"; then
+ func_arith $current - $age
+ else
+ func_arith $current - $age + 1
+ fi
+ major=$func_arith_result
+
+ case $version_type in
+ nonstopux) verstring_prefix=nonstopux ;;
+ *) verstring_prefix=sgi ;;
+ esac
+ verstring="$verstring_prefix$major.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$revision
+ while test "$loop" -ne 0; do
+ func_arith $revision - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring_prefix$major.$iface:$verstring"
+ done
+
+ # Before this point, $major must not contain `.'.
+ major=.$major
+ versuffix="$major.$revision"
+ ;;
+
+ linux)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix="$major.$age.$revision"
+ ;;
+
+ osf)
+ func_arith $current - $age
+ major=.$func_arith_result
+ versuffix=".$current.$age.$revision"
+ verstring="$current.$age.$revision"
+
+ # Add in all the interfaces that we are compatible with.
+ loop=$age
+ while test "$loop" -ne 0; do
+ func_arith $current - $loop
+ iface=$func_arith_result
+ func_arith $loop - 1
+ loop=$func_arith_result
+ verstring="$verstring:${iface}.0"
+ done
+
+ # Make executables depend on our current version.
+ verstring="$verstring:${current}.0"
+ ;;
+
+ qnx)
+ major=".$current"
+ versuffix=".$current"
+ ;;
+
+ sunos)
+ major=".$current"
+ versuffix=".$current.$revision"
+ ;;
+
+ windows)
+ # Use '-' rather than '.', since we only want one
+ # extension on DOS 8.3 filesystems.
+ func_arith $current - $age
+ major=$func_arith_result
+ versuffix="-$major"
+ ;;
+
+ *)
+ func_fatal_configuration "unknown library version type \`$version_type'"
+ ;;
+ esac
+
+ # Clear the version info if we defaulted, and they specified a release.
+ if test -z "$vinfo" && test -n "$release"; then
+ major=
+ case $version_type in
+ darwin)
+ # we can't check for "0.0" in archive_cmds due to quoting
+ # problems, so we reset it completely
+ verstring=
+ ;;
+ *)
+ verstring="0.0"
+ ;;
+ esac
+ if test "$need_version" = no; then
+ versuffix=
+ else
+ versuffix=".0.0"
+ fi
+ fi
+
+ # Remove version info from name if versioning should be avoided
+ if test "$avoid_version" = yes && test "$need_version" = no; then
+ major=
+ versuffix=
+ verstring=""
+ fi
+
+ # Check to see if the archive will have undefined symbols.
+ if test "$allow_undefined" = yes; then
+ if test "$allow_undefined_flag" = unsupported; then
+ func_warning "undefined symbols not allowed in $host shared libraries"
+ build_libtool_libs=no
+ build_old_libs=yes
+ fi
+ else
+ # Don't allow undefined symbols.
+ allow_undefined_flag="$no_undefined_flag"
+ fi
+
+ fi
+
+ func_generate_dlsyms "$libname" "$libname" "yes"
+ libobjs="$libobjs $symfileobj"
+ test "X$libobjs" = "X " && libobjs=
+
+ if test "$mode" != relink; then
+ # Remove our outputs, but don't remove object files since they
+ # may have been created when compiling PIC objects.
+ removelist=
+ tempremovelist=`$ECHO "$output_objdir/*"`
+ for p in $tempremovelist; do
+ case $p in
+ *.$objext | *.gcno)
+ ;;
+ $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
+ if test "X$precious_files_regex" != "X"; then
+ if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
+ then
+ continue
+ fi
+ fi
+ removelist="$removelist $p"
+ ;;
+ *) ;;
+ esac
+ done
+ test -n "$removelist" && \
+ func_show_eval "${RM}r \$removelist"
+ fi
+
+ # Now set the variables for building old libraries.
+ if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
+ oldlibs="$oldlibs $output_objdir/$libname.$libext"
+
+ # Transform .lo files to .o files.
+ oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
+ fi
+
+ # Eliminate all temporary directories.
+ #for path in $notinst_path; do
+ # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
+ # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
+ # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
+ #done
+
+ if test -n "$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ temp_xrpath=
+ for libdir in $xrpath; do
+ temp_xrpath="$temp_xrpath -R$libdir"
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
+ dependency_libs="$temp_xrpath $dependency_libs"
+ fi
+ fi
+
+ # Make sure dlfiles contains only unique files that won't be dlpreopened
+ old_dlfiles="$dlfiles"
+ dlfiles=
+ for lib in $old_dlfiles; do
+ case " $dlprefiles $dlfiles " in
+ *" $lib "*) ;;
+ *) dlfiles="$dlfiles $lib" ;;
+ esac
+ done
+
+ # Make sure dlprefiles contains only unique files
+ old_dlprefiles="$dlprefiles"
+ dlprefiles=
+ for lib in $old_dlprefiles; do
+ case "$dlprefiles " in
+ *" $lib "*) ;;
+ *) dlprefiles="$dlprefiles $lib" ;;
+ esac
+ done
+
+ if test "$build_libtool_libs" = yes; then
+ if test -n "$rpath"; then
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
+ # these systems don't actually have a c library (as such)!
+ ;;
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # Rhapsody C library is in the System framework
+ deplibs="$deplibs System.ltframework"
+ ;;
+ *-*-netbsd*)
+ # Don't link with libc until the a.out ld.so is fixed.
+ ;;
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
+ *-*-sco3.2v5* | *-*-sco5v6*)
+ # Causes problems with __ctype
+ ;;
+ *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
+ # Compiler inserts libc in the correct place for threads to work
+ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test "$build_libtool_need_lc" = "yes"; then
+ deplibs="$deplibs -lc"
+ fi
+ ;;
+ esac
+ fi
+
+ # Transform deplibs into only deplibs that can be linked in shared.
+ name_save=$name
+ libname_save=$libname
+ release_save=$release
+ versuffix_save=$versuffix
+ major_save=$major
+ # I'm not sure if I'm treating the release correctly. I think
+ # release should show up in the -l (ie -lgmp5) so we don't want to
+ # add it in twice. Is that correct?
+ release=""
+ versuffix=""
+ major=""
+ newdeplibs=
+ droppeddeps=no
+ case $deplibs_check_method in
+ pass_all)
+ # Don't check for shared/static. Everything works.
+ # This might be a little naive. We might want to check
+ # whether the library exists or not. But this is on
+ # osf3 & osf4 and I'm not really sure... Just
+ # implementing what was already the behavior.
+ newdeplibs=$deplibs
+ ;;
+ test_compile)
+ # This code stresses the "libraries are programs" paradigm to its
+ # limits. Maybe even breaks it. We compile a program, linking it
+ # against the deplibs as a proxy for the library. Then we can check
+ # whether they linked in statically or dynamically with ldd.
+ $opt_dry_run || $RM conftest.c
+ cat > conftest.c <<EOF
+ int main() { return 0; }
+EOF
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
+ ldd_output=`ldd conftest`
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which I believe you do not have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use it for"
+ $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
+ fi
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ else
+ # Error occurred in the first compile. Let's try to salvage
+ # the situation: Compile a separate program for each library.
+ for i in $deplibs; do
+ case $i in
+ -l*)
+ func_stripname -l '' "$i"
+ name=$func_stripname_result
+ $opt_dry_run || $RM conftest
+ if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
+ ldd_output=`ldd conftest`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $i "*)
+ newdeplibs="$newdeplibs $i"
+ i=""
+ ;;
+ esac
+ fi
+ if test -n "$i" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
+ set dummy $deplib_matches; shift
+ deplib_match=$1
+ if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
+ newdeplibs="$newdeplibs $i"
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: dynamic linker does not accept needed library $i."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because a test_compile did reveal that the linker did not use this one"
+ $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
+ fi
+ fi
+ else
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
+ $ECHO "*** make it link in! You will probably need to install it or some"
+ $ECHO "*** library that it depends on before this library will be fully"
+ $ECHO "*** functional. Installing it before continuing would be even better."
+ fi
+ ;;
+ *)
+ newdeplibs="$newdeplibs $i"
+ ;;
+ esac
+ done
+ fi
+ ;;
+ file_magic*)
+ set dummy $deplibs_check_method; shift
+ file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ # Follow soft links.
+ if ls -lLd "$potent_lib" 2>/dev/null |
+ $GREP " -> " >/dev/null; then
+ continue
+ fi
+ # The statement above tries to avoid entering an
+ # endless loop below, in case of cyclic links.
+ # We might still enter an endless loop, since a link
+ # loop can be closed while we follow links,
+ # but so what?
+ potlib="$potent_lib"
+ while test -h "$potlib" 2>/dev/null; do
+ potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
+ case $potliblink in
+ [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
+ *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
+ esac
+ done
+ if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
+ $SED -e 10q |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a file magic. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ match_pattern*)
+ set dummy $deplibs_check_method; shift
+ match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
+ for a_deplib in $deplibs; do
+ case $a_deplib in
+ -l*)
+ func_stripname -l '' "$a_deplib"
+ name=$func_stripname_result
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ case " $predeps $postdeps " in
+ *" $a_deplib "*)
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ ;;
+ esac
+ fi
+ if test -n "$a_deplib" ; then
+ libname=`eval "\\$ECHO \"$libname_spec\""`
+ for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
+ potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
+ for potent_lib in $potential_libs; do
+ potlib="$potent_lib" # see symlink-check above in file_magic test
+ if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
+ $EGREP "$match_pattern_regex" > /dev/null; then
+ newdeplibs="$newdeplibs $a_deplib"
+ a_deplib=""
+ break 2
+ fi
+ done
+ done
+ fi
+ if test -n "$a_deplib" ; then
+ droppeddeps=yes
+ $ECHO
+ $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
+ $ECHO "*** I have the capability to make that library automatically link in when"
+ $ECHO "*** you link to this library. But I can only do this if you have a"
+ $ECHO "*** shared version of the library, which you do not appear to have"
+ $ECHO "*** because I did check the linker path looking for a file starting"
+ if test -z "$potlib" ; then
+ $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
+ else
+ $ECHO "*** with $libname and none of the candidates passed a file format test"
+ $ECHO "*** using a regex pattern. Last file checked: $potlib"
+ fi
+ fi
+ ;;
+ *)
+ # Add a -L argument.
+ newdeplibs="$newdeplibs $a_deplib"
+ ;;
+ esac
+ done # Gone through all deplibs.
+ ;;
+ none | unknown | *)
+ newdeplibs=""
+ tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
+ -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
+ if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
+ for i in $predeps $postdeps ; do
+ # can't use Xsed below, because $i might contain '/'
+ tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
+ done
+ fi
+ if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
+ $GREP . >/dev/null; then
+ $ECHO
+ if test "X$deplibs_check_method" = "Xnone"; then
+ $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
+ else
+ $ECHO "*** Warning: inter-library dependencies are not known to be supported."
+ fi
+ $ECHO "*** All declared inter-library dependencies are being dropped."
+ droppeddeps=yes
+ fi
+ ;;
+ esac
+ versuffix=$versuffix_save
+ major=$major_save
+ release=$release_save
+ libname=$libname_save
+ name=$name_save
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library with the System framework
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ if test "$droppeddeps" = yes; then
+ if test "$module" = yes; then
+ $ECHO
+ $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
+ $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
+ $ECHO "*** a static module, that should work as long as the dlopening"
+ $ECHO "*** application is linked with the -dlopen flag."
+ if test -z "$global_symbol_pipe"; then
+ $ECHO
+ $ECHO "*** However, this would only work if libtool was able to extract symbol"
+ $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
+ $ECHO "*** not find such a program. So, this module is probably useless."
+ $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
+ fi
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ else
+ $ECHO "*** The inter-library dependencies that have been dropped here will be"
+ $ECHO "*** automatically added whenever a program is linked with this library"
+ $ECHO "*** or is declared to -dlopen it."
+
+ if test "$allow_undefined" = no; then
+ $ECHO
+ $ECHO "*** Since this library must not contain undefined symbols,"
+ $ECHO "*** because either the platform does not support them or"
+ $ECHO "*** it was explicitly requested with -no-undefined,"
+ $ECHO "*** libtool will only create a static version of it."
+ if test "$build_old_libs" = no; then
+ oldlibs="$output_objdir/$libname.$libext"
+ build_libtool_libs=module
+ build_old_libs=yes
+ else
+ build_libtool_libs=no
+ fi
+ fi
+ fi
+ fi
+ # Done checking deplibs!
+ deplibs=$newdeplibs
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ case $host in
+ *-*-darwin*)
+ newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ deplibs="$new_libs"
+
+ # All the library-specific variables (install_libdir is set above).
+ library_names=
+ old_library=
+ dlname=
+
+ # Test again, we may have decided not to build it any more
+ if test "$build_libtool_libs" = yes; then
+ if test "$hardcode_into_libs" = yes; then
+ # Hardcode the library paths
+ hardcode_libdirs=
+ dep_rpath=
+ rpath="$finalize_rpath"
+ test "$mode" != relink && rpath="$compile_rpath$rpath"
+ for libdir in $rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ dep_rpath="$dep_rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ if test -n "$hardcode_libdir_flag_spec_ld"; then
+ eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
+ else
+ eval dep_rpath=\"$hardcode_libdir_flag_spec\"
+ fi
+ fi
+ if test -n "$runpath_var" && test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
+ fi
+ test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
+ fi
+
+ shlibpath="$finalize_shlibpath"
+ test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
+ if test -n "$shlibpath"; then
+ eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
+ fi
+
+ # Get the real and link names of the library.
+ eval shared_ext=\"$shrext_cmds\"
+ eval library_names=\"$library_names_spec\"
+ set dummy $library_names
+ shift
+ realname="$1"
+ shift
+
+ if test -n "$soname_spec"; then
+ eval soname=\"$soname_spec\"
+ else
+ soname="$realname"
+ fi
+ if test -z "$dlname"; then
+ dlname=$soname
+ fi
+
+ lib="$output_objdir/$realname"
+ linknames=
+ for link
+ do
+ linknames="$linknames $link"
+ done
+
+ # Use standard objects if they are pic
+ test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ test "X$libobjs" = "X " && libobjs=
+
+ delfiles=
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
+ export_symbols="$output_objdir/$libname.uexp"
+ delfiles="$delfiles $export_symbols"
+ fi
+
+ orig_export_symbols=
+ case $host_os in
+ cygwin* | mingw* | cegcc*)
+ if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
+ # exporting using user supplied symfile
+ if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
+ # and it's NOT already a .def file. Must figure out
+ # which of the given symbols are data symbols and tag
+ # them as such. So, trigger use of export_symbols_cmds.
+ # export_symbols gets reassigned inside the "prepare
+ # the list of exported symbols" if statement, so the
+ # include_expsyms logic still works.
+ orig_export_symbols="$export_symbols"
+ export_symbols=
+ always_export_symbols=yes
+ fi
+ fi
+ ;;
+ esac
+
+ # Prepare the list of exported symbols
+ if test -z "$export_symbols"; then
+ if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ cmds=$export_symbols_cmds
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ func_len " $cmd"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ func_show_eval "$cmd" 'exit $?'
+ skipped_export=false
+ else
+ # The command line is too long to execute in one step.
+ func_verbose "using reloadable object file for export list..."
+ skipped_export=:
+ # Break out early, otherwise skipped_export may be
+ # set to false by a later but shorter cmd.
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+ fi
+
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+
+ tmp_deplibs=
+ for test_deplib in $deplibs; do
+ case " $convenience " in
+ *" $test_deplib "*) ;;
+ *)
+ tmp_deplibs="$tmp_deplibs $test_deplib"
+ ;;
+ esac
+ done
+ deplibs="$tmp_deplibs"
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec" &&
+ test "$compiler_needs_object" = yes &&
+ test -z "$libobjs"; then
+ # extract the archives, so we have objects to list.
+ # TODO: could optimize this to just extract one archive.
+ whole_archive_flag_spec=
+ fi
+ if test -n "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ else
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ fi
+
+ if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
+ eval flag=\"$thread_safe_flag_spec\"
+ linker_flags="$linker_flags $flag"
+ fi
+
+ # Make a backup of the uninstalled library when relinking
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
+ fi
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ eval test_cmds=\"$module_expsym_cmds\"
+ cmds=$module_expsym_cmds
+ else
+ eval test_cmds=\"$module_cmds\"
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ eval test_cmds=\"$archive_expsym_cmds\"
+ cmds=$archive_expsym_cmds
+ else
+ eval test_cmds=\"$archive_cmds\"
+ cmds=$archive_cmds
+ fi
+ fi
+
+ if test "X$skipped_export" != "X:" &&
+ func_len " $test_cmds" &&
+ len=$func_len_result &&
+ test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ :
+ else
+ # The command line is too long to link in one step, link piecewise
+ # or, if using GNU ld and skipped_export is not :, use a linker
+ # script.
+
+ # Save the value of $output and $libobjs because we want to
+ # use them later. If we have whole_archive_flag_spec, we
+ # want to use save_libobjs as it was before
+ # whole_archive_flag_spec was expanded, because we can't
+ # assume the linker understands whole_archive_flag_spec.
+ # This may have to be revisited, in case too many
+ # convenience libraries get linked in and end up exceeding
+ # the spec.
+ if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
+ save_libobjs=$libobjs
+ fi
+ save_output=$output
+ output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
+
+ # Clear the reloadable object creation command queue and
+ # initialize k to one.
+ test_cmds=
+ concat_cmds=
+ objlist=
+ last_robj=
+ k=1
+
+ if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
+ output=${output_objdir}/${output_la}.lnkscript
+ func_verbose "creating GNU ld script: $output"
+ $ECHO 'INPUT (' > $output
+ for obj in $save_libobjs
+ do
+ $ECHO "$obj" >> $output
+ done
+ $ECHO ')' >> $output
+ delfiles="$delfiles $output"
+ elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
+ output=${output_objdir}/${output_la}.lnk
+ func_verbose "creating linker input file list: $output"
+ : > $output
+ set x $save_libobjs
+ shift
+ firstobj=
+ if test "$compiler_needs_object" = yes; then
+ firstobj="$1 "
+ shift
+ fi
+ for obj
+ do
+ $ECHO "$obj" >> $output
+ done
+ delfiles="$delfiles $output"
+ output=$firstobj\"$file_list_spec$output\"
+ else
+ if test -n "$save_libobjs"; then
+ func_verbose "creating reloadable object files..."
+ output=$output_objdir/$output_la-${k}.$objext
+ eval test_cmds=\"$reload_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+
+ # Loop over the list of objects to be linked.
+ for obj in $save_libobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ if test "X$objlist" = X ||
+ test "$len" -lt "$max_cmd_len"; then
+ func_append objlist " $obj"
+ else
+ # The command $test_cmds is almost too long, add a
+ # command to the queue.
+ if test "$k" -eq 1 ; then
+ # The first file doesn't have a previous command to add.
+ eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
+ else
+ # All subsequent reloadable object files will link in
+ # the last one created.
+ eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
+ fi
+ last_robj=$output_objdir/$output_la-${k}.$objext
+ func_arith $k + 1
+ k=$func_arith_result
+ output=$output_objdir/$output_la-${k}.$objext
+ objlist=$obj
+ func_len " $last_robj"
+ func_arith $len0 + $func_len_result
+ len=$func_arith_result
+ fi
+ done
+ # Handle the remaining objects by creating one last
+ # reloadable object file. All subsequent reloadable object
+ # files will link in the last one created.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
+ fi
+ delfiles="$delfiles $output"
+
+ else
+ output=
+ fi
+
+ if ${skipped_export-false}; then
+ func_verbose "generating symbol list for \`$libname.la'"
+ export_symbols="$output_objdir/$libname.exp"
+ $opt_dry_run || $RM $export_symbols
+ libobjs=$output
+ # Append the command to create the export file.
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
+ if test -n "$last_robj"; then
+ eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
+ fi
+ fi
+
+ test -n "$save_libobjs" &&
+ func_verbose "creating a temporary reloadable object file: $output"
+
+ # Loop through the commands generated above and execute them.
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $concat_cmds; do
+ IFS="$save_ifs"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ if test -n "$export_symbols_regex" && ${skipped_export-false}; then
+ func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
+ func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
+ fi
+ fi
+
+ if ${skipped_export-false}; then
+ if test -n "$export_symbols" && test -n "$include_expsyms"; then
+ tmp_export_symbols="$export_symbols"
+ test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
+ $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
+ fi
+
+ if test -n "$orig_export_symbols"; then
+ # The given exports_symbols file has to be filtered, so filter it.
+ func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
+ # FIXME: $output_objdir/$libname.filter potentially contains lots of
+ # 's' commands which not all seds can handle. GNU sed should be fine
+ # though. Also, the filter scales superlinearly with the number of
+ # global variables. join(1) would be nice here, but unfortunately
+ # isn't a blessed tool.
+ $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
+ delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
+ export_symbols=$output_objdir/$libname.def
+ $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
+ fi
+ fi
+
+ libobjs=$output
+ # Restore the value of output.
+ output=$save_output
+
+ if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
+ eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+ # Expand the library linking commands again to reset the
+ # value of $libobjs for piecewise linking.
+
+ # Do each of the archive commands.
+ if test "$module" = yes && test -n "$module_cmds" ; then
+ if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
+ cmds=$module_expsym_cmds
+ else
+ cmds=$module_cmds
+ fi
+ else
+ if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
+ cmds=$archive_expsym_cmds
+ else
+ cmds=$archive_cmds
+ fi
+ fi
+ fi
+
+ if test -n "$delfiles"; then
+ # Append the command to remove temporary files to $cmds.
+ eval cmds=\"\$cmds~\$RM $delfiles\"
+ fi
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ libobjs="$libobjs $func_extract_archives_result"
+ test "X$libobjs" = "X " && libobjs=
+ fi
+
+ save_ifs="$IFS"; IFS='~'
+ for cmd in $cmds; do
+ IFS="$save_ifs"
+ eval cmd=\"$cmd\"
+ $opt_silent || {
+ func_quote_for_expand "$cmd"
+ eval "func_echo $func_quote_for_expand_result"
+ }
+ $opt_dry_run || eval "$cmd" || {
+ lt_exit=$?
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ ( cd "$output_objdir" && \
+ $RM "${realname}T" && \
+ $MV "${realname}U" "$realname" )
+ fi
+
+ exit $lt_exit
+ }
+ done
+ IFS="$save_ifs"
+
+ # Restore the uninstalled library and exit
+ if test "$mode" = relink; then
+ $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
+
+ if test -n "$convenience"; then
+ if test -z "$whole_archive_flag_spec"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ # Create links to the real library.
+ for linkname in $linknames; do
+ if test "$realname" != "$linkname"; then
+ func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
+ fi
+ done
+
+ # If -module or -export-dynamic was specified, set the dlname.
+ if test "$module" = yes || test "$export_dynamic" = yes; then
+ # On all known operating systems, these are identical.
+ dlname="$soname"
+ fi
+ fi
+ ;;
+
+ obj)
+ if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
+ func_warning "\`-dlopen' is ignored for objects"
+ fi
+
+ case " $deplibs" in
+ *\ -l* | *\ -L*)
+ func_warning "\`-l' and \`-L' are ignored for objects" ;;
+ esac
+
+ test -n "$rpath" && \
+ func_warning "\`-rpath' is ignored for objects"
+
+ test -n "$xrpath" && \
+ func_warning "\`-R' is ignored for objects"
+
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for objects"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for objects"
+
+ case $output in
+ *.lo)
+ test -n "$objs$old_deplibs" && \
+ func_fatal_error "cannot build library object \`$output' from non-libtool objects"
+
+ libobj=$output
+ func_lo2o "$libobj"
+ obj=$func_lo2o_result
+ ;;
+ *)
+ libobj=
+ obj="$output"
+ ;;
+ esac
+
+ # Delete the old objects.
+ $opt_dry_run || $RM $obj $libobj
+
+ # Objects from convenience libraries. This assumes
+ # single-version convenience libraries. Whenever we create
+ # different ones for PIC/non-PIC, this we'll have to duplicate
+ # the extraction.
+ reload_conv_objs=
+ gentop=
+ # reload_cmds runs $LD directly, so let us get rid of
+ # -Wl from whole_archive_flag_spec and hope we can get by with
+ # turning comma into space..
+ wl=
+
+ if test -n "$convenience"; then
+ if test -n "$whole_archive_flag_spec"; then
+ eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
+ reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
+ else
+ gentop="$output_objdir/${obj}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $convenience
+ reload_conv_objs="$reload_objs $func_extract_archives_result"
+ fi
+ fi
+
+ # Create the old-style object.
+ reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
+
+ output="$obj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+
+ # Exit if we aren't doing a library object file.
+ if test -z "$libobj"; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$build_libtool_libs" != yes; then
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ # Create an invalid libtool object if no PIC, so that we don't
+ # accidentally link it into a program.
+ # $show "echo timestamp > $libobj"
+ # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
+ exit $EXIT_SUCCESS
+ fi
+
+ if test -n "$pic_flag" || test "$pic_mode" != default; then
+ # Only do commands if we really have different PIC objects.
+ reload_objs="$libobjs $reload_conv_objs"
+ output="$libobj"
+ func_execute_cmds "$reload_cmds" 'exit $?'
+ fi
+
+ if test -n "$gentop"; then
+ func_show_eval '${RM}r "$gentop"'
+ fi
+
+ exit $EXIT_SUCCESS
+ ;;
+
+ prog)
+ case $host in
+ *cygwin*) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result.exe;;
+ esac
+ test -n "$vinfo" && \
+ func_warning "\`-version-info' is ignored for programs"
+
+ test -n "$release" && \
+ func_warning "\`-release' is ignored for programs"
+
+ test "$preload" = yes \
+ && test "$dlopen_support" = unknown \
+ && test "$dlopen_self" = unknown \
+ && test "$dlopen_self_static" = unknown && \
+ func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
+
+ case $host in
+ *-*-rhapsody* | *-*-darwin1.[012])
+ # On Rhapsody replace the C library is the System framework
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
+ ;;
+ esac
+
+ case $host in
+ *-*-darwin*)
+ # Don't allow lazy linking, it breaks C++ global constructors
+ # But is supposedly fixed on 10.4 or later (yay!).
+ if test "$tagname" = CXX ; then
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
+ 10.[0123])
+ compile_command="$compile_command ${wl}-bind_at_load"
+ finalize_command="$finalize_command ${wl}-bind_at_load"
+ ;;
+ esac
+ fi
+ # Time to change all our "foo.ltframework" stuff back to "-framework foo"
+ compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
+ ;;
+ esac
+
+
+ # move library search paths that coincide with paths to not yet
+ # installed libraries to the beginning of the library search list
+ new_libs=
+ for path in $notinst_path; do
+ case " $new_libs " in
+ *" -L$path/$objdir "*) ;;
+ *)
+ case " $compile_deplibs " in
+ *" -L$path/$objdir "*)
+ new_libs="$new_libs -L$path/$objdir" ;;
+ esac
+ ;;
+ esac
+ done
+ for deplib in $compile_deplibs; do
+ case $deplib in
+ -L*)
+ case " $new_libs " in
+ *" $deplib "*) ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ ;;
+ *) new_libs="$new_libs $deplib" ;;
+ esac
+ done
+ compile_deplibs="$new_libs"
+
+
+ compile_command="$compile_command $compile_deplibs"
+ finalize_command="$finalize_command $finalize_deplibs"
+
+ if test -n "$rpath$xrpath"; then
+ # If the user specified any rpath flags, then add them.
+ for libdir in $rpath $xrpath; do
+ # This is the magic to use -rpath.
+ case "$finalize_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_rpath="$finalize_rpath $libdir" ;;
+ esac
+ done
+ fi
+
+ # Now hardcode the library paths
+ rpath=
+ hardcode_libdirs=
+ for libdir in $compile_rpath $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$perm_rpath " in
+ *" $libdir "*) ;;
+ *) perm_rpath="$perm_rpath $libdir" ;;
+ esac
+ fi
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+ testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
+ case :$dllsearchpath: in
+ *":$libdir:"*) ;;
+ ::) dllsearchpath=$libdir;;
+ *) dllsearchpath="$dllsearchpath:$libdir";;
+ esac
+ case :$dllsearchpath: in
+ *":$testbindir:"*) ;;
+ ::) dllsearchpath=$testbindir;;
+ *) dllsearchpath="$dllsearchpath:$testbindir";;
+ esac
+ ;;
+ esac
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ compile_rpath="$rpath"
+
+ rpath=
+ hardcode_libdirs=
+ for libdir in $finalize_rpath; do
+ if test -n "$hardcode_libdir_flag_spec"; then
+ if test -n "$hardcode_libdir_separator"; then
+ if test -z "$hardcode_libdirs"; then
+ hardcode_libdirs="$libdir"
+ else
+ # Just accumulate the unique libdirs.
+ case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
+ *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
+ ;;
+ *)
+ hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
+ ;;
+ esac
+ fi
+ else
+ eval flag=\"$hardcode_libdir_flag_spec\"
+ rpath="$rpath $flag"
+ fi
+ elif test -n "$runpath_var"; then
+ case "$finalize_perm_rpath " in
+ *" $libdir "*) ;;
+ *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
+ esac
+ fi
+ done
+ # Substitute the hardcoded libdirs into the rpath.
+ if test -n "$hardcode_libdir_separator" &&
+ test -n "$hardcode_libdirs"; then
+ libdir="$hardcode_libdirs"
+ eval rpath=\" $hardcode_libdir_flag_spec\"
+ fi
+ finalize_rpath="$rpath"
+
+ if test -n "$libobjs" && test "$build_old_libs" = yes; then
+ # Transform all the library objects into standard objects.
+ compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
+ fi
+
+ func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
+
+ # template prelinking step
+ if test -n "$prelink_cmds"; then
+ func_execute_cmds "$prelink_cmds" 'exit $?'
+ fi
+
+ wrappers_required=yes
+ case $host in
+ *cygwin* | *mingw* )
+ if test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ *cegcc)
+ # Disable wrappers for cegcc, we are cross compiling anyway.
+ wrappers_required=no
+ ;;
+ *)
+ if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
+ wrappers_required=no
+ fi
+ ;;
+ esac
+ if test "$wrappers_required" = no; then
+ # Replace the output file specification.
+ compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ link_command="$compile_command$compile_rpath"
+
+ # We have no uninstalled library dependencies, so finalize right now.
+ exit_status=0
+ func_show_eval "$link_command" 'exit_status=$?'
+
+ # Delete the generated files.
+ if test -f "$output_objdir/${outputname}S.${objext}"; then
+ func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
+ fi
+
+ exit $exit_status
+ fi
+
+ if test -n "$compile_shlibpath$finalize_shlibpath"; then
+ compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
+ fi
+ if test -n "$finalize_shlibpath"; then
+ finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
+ fi
+
+ compile_var=
+ finalize_var=
+ if test -n "$runpath_var"; then
+ if test -n "$perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ if test -n "$finalize_perm_rpath"; then
+ # We should set the runpath_var.
+ rpath=
+ for dir in $finalize_perm_rpath; do
+ rpath="$rpath$dir:"
+ done
+ finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
+ fi
+ fi
+
+ if test "$no_install" = yes; then
+ # We don't need to create a wrapper script.
+ link_command="$compile_var$compile_command$compile_rpath"
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
+ # Delete the old output file.
+ $opt_dry_run || $RM $output
+ # Link the executable and exit
+ func_show_eval "$link_command" 'exit $?'
+ exit $EXIT_SUCCESS
+ fi
+
+ if test "$hardcode_action" = relink; then
+ # Fast installation is not supported
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+
+ func_warning "this platform does not like uninstalled shared libraries"
+ func_warning "\`$output' will be relinked during installation"
+ else
+ if test "$fast_install" != no; then
+ link_command="$finalize_var$compile_command$finalize_rpath"
+ if test "$fast_install" = yes; then
+ relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
+ else
+ # fast_install is set to needless
+ relink_command=
+ fi
+ else
+ link_command="$compile_var$compile_command$compile_rpath"
+ relink_command="$finalize_var$finalize_command$finalize_rpath"
+ fi
+ fi
+
+ # Replace the output file specification.
+ link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
+
+ # Delete the old output files.
+ $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
+
+ func_show_eval "$link_command" 'exit $?'
+
+ # Now create the wrapper script.
+ func_verbose "creating $output"
+
+ # Quote the relink command for shipping.
+ if test -n "$relink_command"; then
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ relink_command="(cd `pwd`; $relink_command)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Quote $ECHO for shipping.
+ if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
+ case $progpath in
+ [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
+ *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
+ esac
+ qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
+ else
+ qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
+ fi
+
+ # Only actually do things if not in dry run mode.
+ $opt_dry_run || {
+ # win32 will think the script is a binary if it has
+ # a .exe suffix, so we strip it off here.
+ case $output in
+ *.exe) func_stripname '' '.exe' "$output"
+ output=$func_stripname_result ;;
+ esac
+ # test for cygwin because mv fails w/o .exe extensions
+ case $host in
+ *cygwin*)
+ exeext=.exe
+ func_stripname '' '.exe' "$outputname"
+ outputname=$func_stripname_result ;;
+ *) exeext= ;;
+ esac
+ case $host in
+ *cygwin* | *mingw* )
+ func_dirname_and_basename "$output" "" "."
+ output_name=$func_basename_result
+ output_path=$func_dirname_result
+ cwrappersource="$output_path/$objdir/lt-$output_name.c"
+ cwrapper="$output_path/$output_name.exe"
+ $RM $cwrappersource $cwrapper
+ trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_cwrapperexe_src > $cwrappersource
+
+ # The wrapper executable is built using the $host compiler,
+ # because it contains $host paths and files. If cross-
+ # compiling, it, like the target executable, must be
+ # executed on the $host or under an emulation environment.
+ $opt_dry_run || {
+ $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
+ $STRIP $cwrapper
+ }
+
+ # Now, create the wrapper script for func_source use:
+ func_ltwrapper_scriptname $cwrapper
+ $RM $func_ltwrapper_scriptname_result
+ trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
+ $opt_dry_run || {
+ # note: this script will not be executed, so do not chmod.
+ if test "x$build" = "x$host" ; then
+ $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
+ else
+ func_emit_wrapper no > $func_ltwrapper_scriptname_result
+ fi
+ }
+ ;;
+ * )
+ $RM $output
+ trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
+
+ func_emit_wrapper no > $output
+ chmod +x $output
+ ;;
+ esac
+ }
+ exit $EXIT_SUCCESS
+ ;;
+ esac
+
+ # See if we need to build an old-fashioned archive.
+ for oldlib in $oldlibs; do
+
+ if test "$build_libtool_libs" = convenience; then
+ oldobjs="$libobjs_save $symfileobj"
+ addlibs="$convenience"
+ build_libtool_libs=no
+ else
+ if test "$build_libtool_libs" = module; then
+ oldobjs="$libobjs_save"
+ build_libtool_libs=no
+ else
+ oldobjs="$old_deplibs $non_pic_objects"
+ if test "$preload" = yes && test -f "$symfileobj"; then
+ oldobjs="$oldobjs $symfileobj"
+ fi
+ fi
+ addlibs="$old_convenience"
+ fi
+
+ if test -n "$addlibs"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $addlibs
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # Do each command in the archive commands.
+ if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
+ cmds=$old_archive_from_new_cmds
+ else
+
+ # Add any objects from preloaded convenience libraries
+ if test -n "$dlprefiles"; then
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+
+ func_extract_archives $gentop $dlprefiles
+ oldobjs="$oldobjs $func_extract_archives_result"
+ fi
+
+ # POSIX demands no paths to be encoded in archives. We have
+ # to avoid creating archives with duplicate basenames if we
+ # might have to extract them afterwards, e.g., when creating a
+ # static archive out of a convenience library, or when linking
+ # the entirety of a libtool archive into another (currently
+ # not supported by libtool).
+ if (for obj in $oldobjs
+ do
+ func_basename "$obj"
+ $ECHO "$func_basename_result"
+ done | sort | sort -uc >/dev/null 2>&1); then
+ :
+ else
+ $ECHO "copying selected object files to avoid basename conflicts..."
+ gentop="$output_objdir/${outputname}x"
+ generated="$generated $gentop"
+ func_mkdir_p "$gentop"
+ save_oldobjs=$oldobjs
+ oldobjs=
+ counter=1
+ for obj in $save_oldobjs
+ do
+ func_basename "$obj"
+ objbase="$func_basename_result"
+ case " $oldobjs " in
+ " ") oldobjs=$obj ;;
+ *[\ /]"$objbase "*)
+ while :; do
+ # Make sure we don't pick an alternate name that also
+ # overlaps.
+ newobj=lt$counter-$objbase
+ func_arith $counter + 1
+ counter=$func_arith_result
+ case " $oldobjs " in
+ *[\ /]"$newobj "*) ;;
+ *) if test ! -f "$gentop/$newobj"; then break; fi ;;
+ esac
+ done
+ func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
+ oldobjs="$oldobjs $gentop/$newobj"
+ ;;
+ *) oldobjs="$oldobjs $obj" ;;
+ esac
+ done
+ fi
+ eval cmds=\"$old_archive_cmds\"
+
+ func_len " $cmds"
+ len=$func_len_result
+ if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
+ cmds=$old_archive_cmds
+ else
+ # the command line is too long to link in one step, link in parts
+ func_verbose "using piecewise archive linking..."
+ save_RANLIB=$RANLIB
+ RANLIB=:
+ objlist=
+ concat_cmds=
+ save_oldobjs=$oldobjs
+ oldobjs=
+ # Is there a better way of finding the last object in the list?
+ for obj in $save_oldobjs
+ do
+ last_oldobj=$obj
+ done
+ eval test_cmds=\"$old_archive_cmds\"
+ func_len " $test_cmds"
+ len0=$func_len_result
+ len=$len0
+ for obj in $save_oldobjs
+ do
+ func_len " $obj"
+ func_arith $len + $func_len_result
+ len=$func_arith_result
+ func_append objlist " $obj"
+ if test "$len" -lt "$max_cmd_len"; then
+ :
+ else
+ # the above command should be used before it gets too long
+ oldobjs=$objlist
+ if test "$obj" = "$last_oldobj" ; then
+ RANLIB=$save_RANLIB
+ fi
+ test -z "$concat_cmds" || concat_cmds=$concat_cmds~
+ eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
+ objlist=
+ len=$len0
+ fi
+ done
+ RANLIB=$save_RANLIB
+ oldobjs=$objlist
+ if test "X$oldobjs" = "X" ; then
+ eval cmds=\"\$concat_cmds\"
+ else
+ eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
+ fi
+ fi
+ fi
+ func_execute_cmds "$cmds" 'exit $?'
+ done
+
+ test -n "$generated" && \
+ func_show_eval "${RM}r$generated"
+
+ # Now create the libtool archive.
+ case $output in
+ *.la)
+ old_library=
+ test "$build_old_libs" = yes && old_library="$libname.$libext"
+ func_verbose "creating $output"
+
+ # Preserve any variables that may affect compiler behavior
+ for var in $variables_saved_for_relink; do
+ if eval test -z \"\${$var+set}\"; then
+ relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
+ elif eval var_value=\$$var; test -z "$var_value"; then
+ relink_command="$var=; export $var; $relink_command"
+ else
+ func_quote_for_eval "$var_value"
+ relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
+ fi
+ done
+ # Quote the link command for shipping.
+ relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
+ relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
+ if test "$hardcode_automatic" = yes ; then
+ relink_command=
+ fi
+
+ # Only create the output if not a dry run.
+ $opt_dry_run || {
+ for installed in no yes; do
+ if test "$installed" = yes; then
+ if test -z "$install_libdir"; then
+ break
+ fi
+ output="$output_objdir/$outputname"i
+ # Replace all uninstalled libtool libraries with the installed ones
+ newdependency_libs=
+ for deplib in $dependency_libs; do
+ case $deplib in
+ *.la)
+ func_basename "$deplib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$deplib' is not a valid libtool archive"
+ newdependency_libs="$newdependency_libs $libdir/$name"
+ ;;
+ *) newdependency_libs="$newdependency_libs $deplib" ;;
+ esac
+ done
+ dependency_libs="$newdependency_libs"
+ newdlfiles=
+
+ for lib in $dlfiles; do
+ case $lib in
+ *.la)
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlfiles="$newdlfiles $libdir/$name"
+ ;;
+ *) newdlfiles="$newdlfiles $lib" ;;
+ esac
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ *.la)
+ # Only pass preopened files to the pseudo-archive (for
+ # eventual linking with the app. that links it) if we
+ # didn't already link the preopened objects directly into
+ # the library:
+ func_basename "$lib"
+ name="$func_basename_result"
+ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
+ test -z "$libdir" && \
+ func_fatal_error "\`$lib' is not a valid libtool archive"
+ newdlprefiles="$newdlprefiles $libdir/$name"
+ ;;
+ esac
+ done
+ dlprefiles="$newdlprefiles"
+ else
+ newdlfiles=
+ for lib in $dlfiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlfiles="$newdlfiles $abs"
+ done
+ dlfiles="$newdlfiles"
+ newdlprefiles=
+ for lib in $dlprefiles; do
+ case $lib in
+ [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
+ *) abs=`pwd`"/$lib" ;;
+ esac
+ newdlprefiles="$newdlprefiles $abs"
+ done
+ dlprefiles="$newdlprefiles"
+ fi
+ $RM $output
+ # place dlname in correct position for cygwin
+ tdlname=$dlname
+ case $host,$output,$installed,$module,$dlname in
+ *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
+ esac
+ $ECHO > $output "\
+# $outputname - a libtool library file
+# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='$tdlname'
+
+# Names of this library.
+library_names='$library_names'
+
+# The name of the static archive.
+old_library='$old_library'
+
+# Linker flags that can not go in dependency_libs.
+inherited_linker_flags='$new_inherited_linker_flags'
+
+# Libraries that this one depends upon.
+dependency_libs='$dependency_libs'
+
+# Names of additional weak libraries provided by this library
+weak_library_names='$weak_libs'
+
+# Version information for $libname.
+current=$current
+age=$age
+revision=$revision
+
+# Is this an already installed library?
+installed=$installed
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=$module
+
+# Files to dlopen/dlpreopen
+dlopen='$dlfiles'
+dlpreopen='$dlprefiles'
+
+# Directory that this library needs to be installed in:
+libdir='$install_libdir'"
+ if test "$installed" = no && test "$need_relink" = yes; then
+ $ECHO >> $output "\
+relink_command=\"$relink_command\""
+ fi
+ done
+ }
+
+ # Do a symbolic link so that the libtool archive can be found in
+ # LD_LIBRARY_PATH before the program is installed.
+ func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
+ ;;
+ esac
+ exit $EXIT_SUCCESS
+}
+
+{ test "$mode" = link || test "$mode" = relink; } &&
+ func_mode_link ${1+"$@"}
+
+
+# func_mode_uninstall arg...
+func_mode_uninstall ()
+{
+ $opt_debug
+ RM="$nonopt"
+ files=
+ rmforce=
+ exit_status=0
+
+ # This variable tells wrapper scripts just to set variables rather
+ # than running their programs.
+ libtool_install_magic="$magic"
+
+ for arg
+ do
+ case $arg in
+ -f) RM="$RM $arg"; rmforce=yes ;;
+ -*) RM="$RM $arg" ;;
+ *) files="$files $arg" ;;
+ esac
+ done
+
+ test -z "$RM" && \
+ func_fatal_help "you must specify an RM program"
+
+ rmdirs=
+
+ origobjdir="$objdir"
+ for file in $files; do
+ func_dirname "$file" "" "."
+ dir="$func_dirname_result"
+ if test "X$dir" = X.; then
+ objdir="$origobjdir"
+ else
+ objdir="$dir/$origobjdir"
+ fi
+ func_basename "$file"
+ name="$func_basename_result"
+ test "$mode" = uninstall && objdir="$dir"
+
+ # Remember objdir for removal later, being careful to avoid duplicates
+ if test "$mode" = clean; then
+ case " $rmdirs " in
+ *" $objdir "*) ;;
+ *) rmdirs="$rmdirs $objdir" ;;
+ esac
+ fi
+
+ # Don't error if the file doesn't exist and rm -f was used.
+ if { test -L "$file"; } >/dev/null 2>&1 ||
+ { test -h "$file"; } >/dev/null 2>&1 ||
+ test -f "$file"; then
+ :
+ elif test -d "$file"; then
+ exit_status=1
+ continue
+ elif test "$rmforce" = yes; then
+ continue
+ fi
+
+ rmfiles="$file"
+
+ case $name in
+ *.la)
+ # Possibly a libtool archive, so verify it.
+ if func_lalib_p "$file"; then
+ func_source $dir/$name
+
+ # Delete the libtool libraries and symlinks.
+ for n in $library_names; do
+ rmfiles="$rmfiles $objdir/$n"
+ done
+ test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
+
+ case "$mode" in
+ clean)
+ case " $library_names " in
+ # " " in the beginning catches empty $dlname
+ *" $dlname "*) ;;
+ *) rmfiles="$rmfiles $objdir/$dlname" ;;
+ esac
+ test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+ ;;
+ uninstall)
+ if test -n "$library_names"; then
+ # Do each command in the postuninstall commands.
+ func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+
+ if test -n "$old_library"; then
+ # Do each command in the old_postuninstall commands.
+ func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
+ fi
+ # FIXME: should reinstall the best remaining shared library.
+ ;;
+ esac
+ fi
+ ;;
+
+ *.lo)
+ # Possibly a libtool object, so verify it.
+ if func_lalib_p "$file"; then
+
+ # Read the .lo file
+ func_source $dir/$name
+
+ # Add PIC object to the list of files to remove.
+ if test -n "$pic_object" &&
+ test "$pic_object" != none; then
+ rmfiles="$rmfiles $dir/$pic_object"
+ fi
+
+ # Add non-PIC object to the list of files to remove.
+ if test -n "$non_pic_object" &&
+ test "$non_pic_object" != none; then
+ rmfiles="$rmfiles $dir/$non_pic_object"
+ fi
+ fi
+ ;;
+
+ *)
+ if test "$mode" = clean ; then
+ noexename=$name
+ case $file in
+ *.exe)
+ func_stripname '' '.exe' "$file"
+ file=$func_stripname_result
+ func_stripname '' '.exe' "$name"
+ noexename=$func_stripname_result
+ # $file with .exe has already been added to rmfiles,
+ # add $file without .exe
+ rmfiles="$rmfiles $file"
+ ;;
+ esac
+ # Do a test to see if this is a libtool program.
+ if func_ltwrapper_p "$file"; then
+ if func_ltwrapper_executable_p "$file"; then
+ func_ltwrapper_scriptname "$file"
+ relink_command=
+ func_source $func_ltwrapper_scriptname_result
+ rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
+ else
+ relink_command=
+ func_source $dir/$noexename
+ fi
+
+ # note $name still contains .exe if it was in $file originally
+ # as does the version of $file that was added into $rmfiles
+ rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
+ if test "$fast_install" = yes && test -n "$relink_command"; then
+ rmfiles="$rmfiles $objdir/lt-$name"
+ fi
+ if test "X$noexename" != "X$name" ; then
+ rmfiles="$rmfiles $objdir/lt-${noexename}.c"
+ fi
+ fi
+ fi
+ ;;
+ esac
+ func_show_eval "$RM $rmfiles" 'exit_status=1'
+ done
+ objdir="$origobjdir"
+
+ # Try to remove the ${objdir}s in the directories where we deleted files
+ for dir in $rmdirs; do
+ if test -d "$dir"; then
+ func_show_eval "rmdir $dir >/dev/null 2>&1"
+ fi
+ done
+
+ exit $exit_status
+}
+
+{ test "$mode" = uninstall || test "$mode" = clean; } &&
+ func_mode_uninstall ${1+"$@"}
+
+test -z "$mode" && {
+ help="$generic_help"
+ func_fatal_help "you must specify a MODE"
+}
+
+test -z "$exec_cmd" && \
+ func_fatal_help "invalid operation mode \`$mode'"
+
+if test -n "$exec_cmd"; then
+ eval exec "$exec_cmd"
+ exit $EXIT_FAILURE
+fi
+
+exit $exit_status
+
+
+# The TAGs below are defined such that we never get into a situation
+# in which we disable both kinds of libraries. Given conflicting
+# choices, we go for a static library, that is the most portable,
+# since we can't tell whether shared libraries were disabled because
+# the user asked for that or because the platform doesn't support
+# them. This is particularly important on AIX, because we don't
+# support having both static and shared libraries enabled at the same
+# time on that platform, so we default to a shared-only configuration.
+# If a disable-shared tag is given, we'll fallback to a static-only
+# configuration. But we'll never go from static-only to shared-only.
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
+build_libtool_libs=no
+build_old_libs=yes
+# ### END LIBTOOL TAG CONFIG: disable-shared
+
+# ### BEGIN LIBTOOL TAG CONFIG: disable-static
+build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
+# ### END LIBTOOL TAG CONFIG: disable-static
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# End:
+# vi:sw=2
+
diff --git a/m4/libtool.m4 b/m4/libtool.m4
new file mode 100644
index 0000000..a3fee53
--- /dev/null
+++ b/m4/libtool.m4
@@ -0,0 +1,7377 @@
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
+#
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+m4_define([_LT_COPYING], [dnl
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
+# 2006, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gordon Matzigkeit, 1996
+#
+# This file is part of GNU Libtool.
+#
+# GNU Libtool is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# As a special exception to the GNU General Public License,
+# if you distribute this file as part of a program or library that
+# is built using GNU Libtool, you may include this file under the
+# same distribution terms that you use for the rest of that program.
+#
+# GNU Libtool is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Libtool; see the file COPYING. If not, a copy
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
+# obtained by writing to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+])
+
+# serial 56 LT_INIT
+
+
+# LT_PREREQ(VERSION)
+# ------------------
+# Complain and exit if this libtool version is less that VERSION.
+m4_defun([LT_PREREQ],
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
+ [m4_default([$3],
+ [m4_fatal([Libtool version $1 or higher is required],
+ 63)])],
+ [$2])])
+
+
+# _LT_CHECK_BUILDDIR
+# ------------------
+# Complain if the absolute build directory name contains unusual characters
+m4_defun([_LT_CHECK_BUILDDIR],
+[case `pwd` in
+ *\ * | *\ *)
+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
+esac
+])
+
+
+# LT_INIT([OPTIONS])
+# ------------------
+AC_DEFUN([LT_INIT],
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
+AC_BEFORE([$0], [LT_LANG])dnl
+AC_BEFORE([$0], [LT_OUTPUT])dnl
+AC_BEFORE([$0], [LTDL_INIT])dnl
+m4_require([_LT_CHECK_BUILDDIR])dnl
+
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
+dnl unless we require an AC_DEFUNed macro:
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
+AC_REQUIRE([LTSUGAR_VERSION])dnl
+AC_REQUIRE([LTVERSION_VERSION])dnl
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
+m4_require([_LT_PROG_LTMAIN])dnl
+
+dnl Parse OPTIONS
+_LT_SET_OPTIONS([$0], [$1])
+
+# This can be used to rebuild libtool when needed
+LIBTOOL_DEPS="$ltmain"
+
+# Always use our own libtool.
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+AC_SUBST(LIBTOOL)dnl
+
+_LT_SETUP
+
+# Only expand once:
+m4_define([LT_INIT])
+])# LT_INIT
+
+# Old names:
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
+
+
+# _LT_CC_BASENAME(CC)
+# -------------------
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
+m4_defun([_LT_CC_BASENAME],
+[for cc_temp in $1""; do
+ case $cc_temp in
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
+ \-*) ;;
+ *) break;;
+ esac
+done
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
+])
+
+
+# _LT_FILEUTILS_DEFAULTS
+# ----------------------
+# It is okay to use these file commands and assume they have been set
+# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
+m4_defun([_LT_FILEUTILS_DEFAULTS],
+[: ${CP="cp -f"}
+: ${MV="mv -f"}
+: ${RM="rm -f"}
+])# _LT_FILEUTILS_DEFAULTS
+
+
+# _LT_SETUP
+# ---------
+m4_defun([_LT_SETUP],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+_LT_DECL([], [host_alias], [0], [The host system])dnl
+_LT_DECL([], [host], [0])dnl
+_LT_DECL([], [host_os], [0])dnl
+dnl
+_LT_DECL([], [build_alias], [0], [The build system])dnl
+_LT_DECL([], [build], [0])dnl
+_LT_DECL([], [build_os], [0])dnl
+dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+dnl
+AC_REQUIRE([AC_PROG_LN_S])dnl
+test -z "$LN_S" && LN_S="ln -s"
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
+dnl
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
+dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
+m4_require([_LT_CMD_RELOAD])dnl
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+
+_LT_CONFIG_LIBTOOL_INIT([
+# See if we are running on zsh, and set the options which allow our
+# commands through without removal of \ escapes INIT.
+if test -n "\${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+])
+if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+fi
+
+_LT_CHECK_OBJDIR
+
+m4_require([_LT_TAG_COMPILER])dnl
+_LT_PROG_ECHO_BACKSLASH
+
+case $host_os in
+aix3*)
+ # AIX sometimes has problems with the GCC collect2 program. For some
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
+ # vanish in a puff of smoke.
+ if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+ fi
+ ;;
+esac
+
+# Sed substitution that helps us do robust quoting. It backslashifies
+# metacharacters that are still active within double-quoted strings.
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
+
+# Same as above, but do not quote variable references.
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
+
+# Sed substitution to delay expansion of an escaped shell variable in a
+# double_quote_subst'ed string.
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
+
+# Sed substitution to delay expansion of an escaped single quote.
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
+
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
+# Global variables:
+ofile=libtool
+can_build_shared=yes
+
+# All known linkers require a `.a' archive for static linking (except MSVC,
+# which needs '.lib').
+libext=a
+
+with_gnu_ld="$lt_cv_prog_gnu_ld"
+
+old_CC="$CC"
+old_CFLAGS="$CFLAGS"
+
+# Set sane defaults for various variables
+test -z "$CC" && CC=cc
+test -z "$LTCC" && LTCC=$CC
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
+test -z "$LD" && LD=ld
+test -z "$ac_objext" && ac_objext=o
+
+_LT_CC_BASENAME([$compiler])
+
+# Only perform the check for file, if the check method requires it
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
+case $deplibs_check_method in
+file_magic*)
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
+ _LT_PATH_MAGIC
+ fi
+ ;;
+esac
+
+# Use C for the default configuration in the libtool script
+LT_SUPPORTED_TAG([CC])
+_LT_LANG_C_CONFIG
+_LT_LANG_DEFAULT_CONFIG
+_LT_CONFIG_COMMANDS
+])# _LT_SETUP
+
+
+# _LT_PROG_LTMAIN
+# ---------------
+# Note that this code is called both from `configure', and `config.status'
+# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
+# `config.status' has no value for ac_aux_dir unless we are using Automake,
+# so we pass a copy along to make sure it has a sensible value anyway.
+m4_defun([_LT_PROG_LTMAIN],
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
+ltmain="$ac_aux_dir/ltmain.sh"
+])# _LT_PROG_LTMAIN
+
+
+## ------------------------------------- ##
+## Accumulate code for creating libtool. ##
+## ------------------------------------- ##
+
+# So that we can recreate a full libtool script including additional
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
+# in macros and then make a single call at the end using the `libtool'
+# label.
+
+
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
+# ----------------------------------------
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
+
+
+# _LT_CONFIG_LIBTOOL([COMMANDS])
+# ------------------------------
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
+m4_define([_LT_CONFIG_LIBTOOL],
+[m4_ifval([$1],
+ [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
+ [$1
+])])])
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
+
+
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
+# -----------------------------------------------------
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
+[_LT_CONFIG_LIBTOOL([$1])
+_LT_CONFIG_LIBTOOL_INIT([$2])
+])
+
+
+# _LT_FORMAT_COMMENT([COMMENT])
+# -----------------------------
+# Add leading comment marks to the start of each line, and a trailing
+# full-stop to the whole comment if one is not present already.
+m4_define([_LT_FORMAT_COMMENT],
+[m4_ifval([$1], [
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
+ [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
+)])
+
+
+
+## ------------------------ ##
+## FIXME: Eliminate VARNAME ##
+## ------------------------ ##
+
+
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
+# -------------------------------------------------------------------
+# CONFIGNAME is the name given to the value in the libtool script.
+# VARNAME is the (base) name used in the configure script.
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
+# VARNAME. Any other value will be used directly.
+m4_define([_LT_DECL],
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
+ [m4_ifval([$1], [$1], [$2])])
+ lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
+ m4_ifval([$4],
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
+ lt_dict_add_subkey([lt_decl_dict], [$2],
+ [tagged?], [m4_ifval([$5], [yes], [no])])])
+])
+
+
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
+# --------------------------------------------------------
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
+
+
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_tag_varnames],
+[_lt_decl_filter([tagged?], [yes], $@)])
+
+
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
+# ---------------------------------------------------------
+m4_define([_lt_decl_filter],
+[m4_case([$#],
+ [0], [m4_fatal([$0: too few arguments: $#])],
+ [1], [m4_fatal([$0: too few arguments: $#: $1])],
+ [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
+ [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl
+])
+
+
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
+# --------------------------------------------------
+m4_define([lt_decl_quote_varnames],
+[_lt_decl_filter([value], [1], $@)])
+
+
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_dquote_varnames],
+[_lt_decl_filter([value], [2], $@)])
+
+
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
+# ---------------------------------------------------
+m4_define([lt_decl_varnames_tagged],
+[m4_assert([$# <= 2])dnl
+_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
+ m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
+m4_define([_lt_decl_varnames_tagged],
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
+
+
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
+# ------------------------------------------------
+m4_define([lt_decl_all_varnames],
+[_$0(m4_quote(m4_default([$1], [[, ]])),
+ m4_if([$2], [],
+ m4_quote(lt_decl_varnames),
+ m4_quote(m4_shift($@))))[]dnl
+])
+m4_define([_lt_decl_all_varnames],
+[lt_join($@, lt_decl_varnames_tagged([$1],
+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
+])
+
+
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
+# ------------------------------------
+# Quote a variable value, and forward it to `config.status' so that its
+# declaration there will have the same value as in `configure'. VARNAME
+# must have a single quote delimited value for this to work.
+m4_define([_LT_CONFIG_STATUS_DECLARE],
+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
+
+
+# _LT_CONFIG_STATUS_DECLARATIONS
+# ------------------------------
+# We delimit libtool config variables with single quotes, so when
+# we write them to config.status, we have to be sure to quote all
+# embedded single quotes properly. In configure, this macro expands
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
+#
+# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAGS
+# ----------------
+# Output comment and list of tags supported by the script
+m4_defun([_LT_LIBTOOL_TAGS],
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
+available_tags="_LT_TAGS"dnl
+])
+
+
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
+# -----------------------------------
+# Extract the dictionary values for VARNAME (optionally with TAG) and
+# expand to a commented shell variable setting:
+#
+# # Some comment about what VAR is for.
+# visible_name=$lt_internal_name
+m4_define([_LT_LIBTOOL_DECLARE],
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
+ [description])))[]dnl
+m4_pushdef([_libtool_name],
+ m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
+ [0], [_libtool_name=[$]$1],
+ [1], [_libtool_name=$lt_[]$1],
+ [2], [_libtool_name=$lt_[]$1],
+ [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
+])
+
+
+# _LT_LIBTOOL_CONFIG_VARS
+# -----------------------
+# Produce commented declarations of non-tagged libtool config variables
+# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
+# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
+[m4_foreach([_lt_var],
+ m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
+
+
+# _LT_LIBTOOL_TAG_VARS(TAG)
+# -------------------------
+m4_define([_LT_LIBTOOL_TAG_VARS],
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
+
+
+# _LT_TAGVAR(VARNAME, [TAGNAME])
+# ------------------------------
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
+
+
+# _LT_CONFIG_COMMANDS
+# -------------------
+# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
+# variables for single and double quote escaping we saved from calls
+# to _LT_DECL, we can put quote escaped variables declarations
+# into `config.status', and then the shell code to quote escape them in
+# for loops in `config.status'. Finally, any additional code accumulated
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
+m4_defun([_LT_CONFIG_COMMANDS],
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
+ dnl If the libtool generation code has been placed in $CONFIG_LT,
+ dnl instead of duplicating it all over again into config.status,
+ dnl then we will have config.status run $CONFIG_LT later, so it
+ dnl needs to know what name is stored there:
+ [AC_CONFIG_COMMANDS([libtool],
+ [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
+ dnl If the libtool generation code is destined for config.status,
+ dnl expand the accumulated commands and init code now:
+ [AC_CONFIG_COMMANDS([libtool],
+ [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
+])#_LT_CONFIG_COMMANDS
+
+
+# Initialize.
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
+[
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+sed_quote_subst='$sed_quote_subst'
+double_quote_subst='$double_quote_subst'
+delay_variable_subst='$delay_variable_subst'
+_LT_CONFIG_STATUS_DECLARATIONS
+LTCC='$LTCC'
+LTCFLAGS='$LTCFLAGS'
+compiler='$compiler_DEFAULT'
+
+# Quote evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_quote_varnames); do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Double-quote double-evaled strings.
+for var in lt_decl_all_varnames([[ \
+]], lt_decl_dquote_varnames); do
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
+ *[[\\\\\\\`\\"\\\$]]*)
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
+ ;;
+ *)
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
+ ;;
+ esac
+done
+
+# Fix-up fallback echo if it was mangled by the above quoting rules.
+case \$lt_ECHO in
+*'\\\[$]0 --fallback-echo"')dnl "
+ lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
+ ;;
+esac
+
+_LT_OUTPUT_LIBTOOL_INIT
+])
+
+
+# LT_OUTPUT
+# ---------
+# This macro allows early generation of the libtool script (before
+# AC_OUTPUT is called), incase it is used in configure for compilation
+# tests.
+AC_DEFUN([LT_OUTPUT],
+[: ${CONFIG_LT=./config.lt}
+AC_MSG_NOTICE([creating $CONFIG_LT])
+cat >"$CONFIG_LT" <<_LTEOF
+#! $SHELL
+# Generated by $as_me.
+# Run this file to recreate a libtool stub with the current configuration.
+
+lt_cl_silent=false
+SHELL=\${CONFIG_SHELL-$SHELL}
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AS_SHELL_SANITIZE
+_AS_PREPARE
+
+exec AS_MESSAGE_FD>&1
+exec AS_MESSAGE_LOG_FD>>config.log
+{
+ echo
+ AS_BOX([Running $as_me.])
+} >&AS_MESSAGE_LOG_FD
+
+lt_cl_help="\
+\`$as_me' creates a local libtool stub from the current configuration,
+for use in further configure time tests before the real libtool is
+generated.
+
+Usage: $[0] [[OPTIONS]]
+
+ -h, --help print this help, then exit
+ -V, --version print version number, then exit
+ -q, --quiet do not print progress messages
+ -d, --debug don't remove temporary files
+
+Report bugs to <bug-libtool@gnu.org>."
+
+lt_cl_version="\
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
+configured by $[0], generated by m4_PACKAGE_STRING.
+
+Copyright (C) 2008 Free Software Foundation, Inc.
+This config.lt script is free software; the Free Software Foundation
+gives unlimited permision to copy, distribute and modify it."
+
+while test $[#] != 0
+do
+ case $[1] in
+ --version | --v* | -V )
+ echo "$lt_cl_version"; exit 0 ;;
+ --help | --h* | -h )
+ echo "$lt_cl_help"; exit 0 ;;
+ --debug | --d* | -d )
+ debug=: ;;
+ --quiet | --q* | --silent | --s* | -q )
+ lt_cl_silent=: ;;
+
+ -*) AC_MSG_ERROR([unrecognized option: $[1]
+Try \`$[0] --help' for more information.]) ;;
+
+ *) AC_MSG_ERROR([unrecognized argument: $[1]
+Try \`$[0] --help' for more information.]) ;;
+ esac
+ shift
+done
+
+if $lt_cl_silent; then
+ exec AS_MESSAGE_FD>/dev/null
+fi
+_LTEOF
+
+cat >>"$CONFIG_LT" <<_LTEOF
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
+_LTEOF
+
+cat >>"$CONFIG_LT" <<\_LTEOF
+AC_MSG_NOTICE([creating $ofile])
+_LT_OUTPUT_LIBTOOL_COMMANDS
+AS_EXIT(0)
+_LTEOF
+chmod +x "$CONFIG_LT"
+
+# configure is writing to config.log, but config.lt does its own redirection,
+# appending to config.log, which fails on DOS, as config.log is still kept
+# open by configure. Here we exec the FD to /dev/null, effectively closing
+# config.log, so it can be properly (re)opened and appended to by config.lt.
+if test "$no_create" != yes; then
+ lt_cl_success=:
+ test "$silent" = yes &&
+ lt_config_lt_args="$lt_config_lt_args --quiet"
+ exec AS_MESSAGE_LOG_FD>/dev/null
+ $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
+ exec AS_MESSAGE_LOG_FD>>config.log
+ $lt_cl_success || AS_EXIT(1)
+fi
+])# LT_OUTPUT
+
+
+# _LT_CONFIG(TAG)
+# ---------------
+# If TAG is the built-in tag, create an initial libtool script with a
+# default configuration from the untagged config vars. Otherwise add code
+# to config.status for appending the configuration named by TAG from the
+# matching tagged config vars.
+m4_defun([_LT_CONFIG],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_CONFIG_SAVE_COMMANDS([
+ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
+ m4_if(_LT_TAG, [C], [
+ # See if we are running on zsh, and set the options which allow our
+ # commands through without removal of \ escapes.
+ if test -n "${ZSH_VERSION+set}" ; then
+ setopt NO_GLOB_SUBST
+ fi
+
+ cfgfile="${ofile}T"
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
+ $RM "$cfgfile"
+
+ cat <<_LT_EOF >> "$cfgfile"
+#! $SHELL
+
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
+#
+_LT_COPYING
+_LT_LIBTOOL_TAGS
+
+# ### BEGIN LIBTOOL CONFIG
+_LT_LIBTOOL_CONFIG_VARS
+_LT_LIBTOOL_TAG_VARS
+# ### END LIBTOOL CONFIG
+
+_LT_EOF
+
+ case $host_os in
+ aix3*)
+ cat <<\_LT_EOF >> "$cfgfile"
+# AIX sometimes has problems with the GCC collect2 program. For some
+# reason, if we set the COLLECT_NAMES environment variable, the problems
+# vanish in a puff of smoke.
+if test "X${COLLECT_NAMES+set}" != Xset; then
+ COLLECT_NAMES=
+ export COLLECT_NAMES
+fi
+_LT_EOF
+ ;;
+ esac
+
+ _LT_PROG_LTMAIN
+
+ # We use sed instead of cat because bash on DJGPP gets confused if
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
+ # text mode, it properly converts lines to CR/LF. This bash problem
+ # is reportedly fixed, but why not run on old versions too?
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ _LT_PROG_XSI_SHELLFNS
+
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
+ || (rm -f "$cfgfile"; exit 1)
+
+ mv -f "$cfgfile" "$ofile" ||
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
+ chmod +x "$ofile"
+],
+[cat <<_LT_EOF >> "$ofile"
+
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
+dnl in a comment (ie after a #).
+# ### BEGIN LIBTOOL TAG CONFIG: $1
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
+# ### END LIBTOOL TAG CONFIG: $1
+_LT_EOF
+])dnl /m4_if
+],
+[m4_if([$1], [], [
+ PACKAGE='$PACKAGE'
+ VERSION='$VERSION'
+ TIMESTAMP='$TIMESTAMP'
+ RM='$RM'
+ ofile='$ofile'], [])
+])dnl /_LT_CONFIG_SAVE_COMMANDS
+])# _LT_CONFIG
+
+
+# LT_SUPPORTED_TAG(TAG)
+# ---------------------
+# Trace this macro to discover what tags are supported by the libtool
+# --tag option, using:
+# autoconf --trace 'LT_SUPPORTED_TAG:$1'
+AC_DEFUN([LT_SUPPORTED_TAG], [])
+
+
+# C support is built-in for now
+m4_define([_LT_LANG_C_enabled], [])
+m4_define([_LT_TAGS], [])
+
+
+# LT_LANG(LANG)
+# -------------
+# Enable libtool support for the given language if not already enabled.
+AC_DEFUN([LT_LANG],
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
+m4_case([$1],
+ [C], [_LT_LANG(C)],
+ [C++], [_LT_LANG(CXX)],
+ [Java], [_LT_LANG(GCJ)],
+ [Fortran 77], [_LT_LANG(F77)],
+ [Fortran], [_LT_LANG(FC)],
+ [Windows Resource], [_LT_LANG(RC)],
+ [m4_ifdef([_LT_LANG_]$1[_CONFIG],
+ [_LT_LANG($1)],
+ [m4_fatal([$0: unsupported language: "$1"])])])dnl
+])# LT_LANG
+
+
+# _LT_LANG(LANGNAME)
+# ------------------
+m4_defun([_LT_LANG],
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
+ [LT_SUPPORTED_TAG([$1])dnl
+ m4_append([_LT_TAGS], [$1 ])dnl
+ m4_define([_LT_LANG_]$1[_enabled], [])dnl
+ _LT_LANG_$1_CONFIG($1)])dnl
+])# _LT_LANG
+
+
+# _LT_LANG_DEFAULT_CONFIG
+# -----------------------
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
+ [LT_LANG(CXX)],
+ [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_F77],
+ [LT_LANG(F77)],
+ [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
+
+AC_PROVIDE_IFELSE([AC_PROG_FC],
+ [LT_LANG(FC)],
+ [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
+
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
+dnl pulling things in needlessly.
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
+ [LT_LANG(GCJ)],
+ [m4_ifdef([AC_PROG_GCJ],
+ [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([A][M_PROG_GCJ],
+ [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
+ m4_ifdef([LT_PROG_GCJ],
+ [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
+
+AC_PROVIDE_IFELSE([LT_PROG_RC],
+ [LT_LANG(RC)],
+ [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
+])# _LT_LANG_DEFAULT_CONFIG
+
+# Obsolete macros:
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
+
+
+# _LT_TAG_COMPILER
+# ----------------
+m4_defun([_LT_TAG_COMPILER],
+[AC_REQUIRE([AC_PROG_CC])dnl
+
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
+
+# If no C compiler was specified, use CC.
+LTCC=${LTCC-"$CC"}
+
+# If no C compiler flags were specified, use CFLAGS.
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
+
+# Allow CC to be a program name with arguments.
+compiler=$CC
+])# _LT_TAG_COMPILER
+
+
+# _LT_COMPILER_BOILERPLATE
+# ------------------------
+# Check for compiler boilerplate output or warnings with
+# the simple compiler test code.
+m4_defun([_LT_COMPILER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_compiler_boilerplate=`cat conftest.err`
+$RM conftest*
+])# _LT_COMPILER_BOILERPLATE
+
+
+# _LT_LINKER_BOILERPLATE
+# ----------------------
+# Check for linker boilerplate output or warnings with
+# the simple link test code.
+m4_defun([_LT_LINKER_BOILERPLATE],
+[m4_require([_LT_DECL_SED])dnl
+ac_outfile=conftest.$ac_objext
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
+_lt_linker_boilerplate=`cat conftest.err`
+$RM -r conftest*
+])# _LT_LINKER_BOILERPLATE
+
+# _LT_REQUIRED_DARWIN_CHECKS
+# -------------------------
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
+ case $host_os in
+ rhapsody* | darwin*)
+ AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
+ AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
+ AC_CHECK_TOOL([LIPO], [lipo], [:])
+ AC_CHECK_TOOL([OTOOL], [otool], [:])
+ AC_CHECK_TOOL([OTOOL64], [otool64], [:])
+ _LT_DECL([], [DSYMUTIL], [1],
+ [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
+ _LT_DECL([], [NMEDIT], [1],
+ [Tool to change global to local symbols on Mac OS X])
+ _LT_DECL([], [LIPO], [1],
+ [Tool to manipulate fat objects and archives on Mac OS X])
+ _LT_DECL([], [OTOOL], [1],
+ [ldd/readelf like tool for Mach-O binaries on Mac OS X])
+ _LT_DECL([], [OTOOL64], [1],
+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
+
+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
+ [lt_cv_apple_cc_single_mod=no
+ if test -z "${LT_MULTI_MODULE}"; then
+ # By default we will add the -single_module flag. You can override
+ # by either setting the environment variable LT_MULTI_MODULE
+ # non-empty at configure time, or by adding -multi_module to the
+ # link flags.
+ rm -rf libconftest.dylib*
+ echo "int foo(void){return 1;}" > conftest.c
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
+ _lt_result=$?
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
+ lt_cv_apple_cc_single_mod=yes
+ else
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ fi
+ rm -rf libconftest.dylib*
+ rm -f conftest.*
+ fi])
+ AC_CACHE_CHECK([for -exported_symbols_list linker flag],
+ [lt_cv_ld_exported_symbols_list],
+ [lt_cv_ld_exported_symbols_list=no
+ save_LDFLAGS=$LDFLAGS
+ echo "_main" > conftest.sym
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [lt_cv_ld_exported_symbols_list=yes],
+ [lt_cv_ld_exported_symbols_list=no])
+ LDFLAGS="$save_LDFLAGS"
+ ])
+ case $host_os in
+ rhapsody* | darwin1.[[012]])
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
+ darwin1.*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ darwin*) # darwin 5.x on
+ # if running on 10.5 or later, the deployment target defaults
+ # to the OS version, if on x86, and 10.4, the deployment
+ # target defaults to 10.4. Don't you love it?
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
+ 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ 10.[[012]]*)
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
+ 10.*)
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
+ esac
+ ;;
+ esac
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
+ _lt_dar_single_mod='$single_module'
+ fi
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
+ else
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
+ fi
+ if test "$DSYMUTIL" != ":"; then
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
+ else
+ _lt_dsymutil=
+ fi
+ ;;
+ esac
+])
+
+
+# _LT_DARWIN_LINKER_FEATURES
+# --------------------------
+# Checks for linker and compiler features on darwin
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
+[
+ m4_require([_LT_REQUIRED_DARWIN_CHECKS])
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
+ case $cc_basename in
+ ifort*) _lt_dar_can_shared=yes ;;
+ *) _lt_dar_can_shared=$GCC ;;
+ esac
+ if test "$_lt_dar_can_shared" = "yes"; then
+ output_verbose_link_cmd=echo
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
+ _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
+ _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
+ m4_if([$1], [CXX],
+[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
+ _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
+ fi
+],[])
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+])
+
+# _LT_SYS_MODULE_PATH_AIX
+# -----------------------
+# Links a minimal program and checks the executable
+# for the system default hardcoded library path. In most cases,
+# this is /usr/lib:/lib, but when the MPI compilers are used
+# the location of the communication and MPI libs are included too.
+# If we don't find anything, use the default library path according
+# to the aix ld manual.
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
+[m4_require([_LT_DECL_SED])dnl
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
+lt_aix_libpath_sed='
+ /Import File Strings/,/^$/ {
+ /^0/ {
+ s/^0 *\(.*\)$/\1/
+ p
+ }
+ }'
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+# Check for a 64-bit object if we didn't find anything.
+if test -z "$aix_libpath"; then
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
+fi],[])
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
+])# _LT_SYS_MODULE_PATH_AIX
+
+
+# _LT_SHELL_INIT(ARG)
+# -------------------
+m4_define([_LT_SHELL_INIT],
+[ifdef([AC_DIVERSION_NOTICE],
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
+ [AC_DIVERT_PUSH(NOTICE)])
+$1
+AC_DIVERT_POP
+])# _LT_SHELL_INIT
+
+
+# _LT_PROG_ECHO_BACKSLASH
+# -----------------------
+# Add some code to the start of the generated configure script which
+# will find an echo command which doesn't interpret backslashes.
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
+[_LT_SHELL_INIT([
+# Check that we are running under the correct shell.
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+case X$lt_ECHO in
+X*--fallback-echo)
+ # Remove one level of quotation (which was required for Make).
+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
+ ;;
+esac
+
+ECHO=${lt_ECHO-echo}
+if test "X[$]1" = X--no-reexec; then
+ # Discard the --no-reexec flag, and continue.
+ shift
+elif test "X[$]1" = X--fallback-echo; then
+ # Avoid inline document here, it may be left over
+ :
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
+ # Yippee, $ECHO works!
+ :
+else
+ # Restart under the correct shell.
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
+fi
+
+if test "X[$]1" = X--fallback-echo; then
+ # used as fallback echo
+ shift
+ cat <<_LT_EOF
+[$]*
+_LT_EOF
+ exit 0
+fi
+
+# The HP-UX ksh and POSIX shell print the target directory to stdout
+# if CDPATH is set.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test -z "$lt_ECHO"; then
+ if test "X${echo_test_string+set}" != Xset; then
+ # find a string as large as possible, as long as the shell can cope with it
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
+ then
+ break
+ fi
+ done
+ fi
+
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ :
+ else
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
+ # backslashes. This makes it impossible to quote backslashes using
+ # echo "$something" | sed 's/\\/\\\\/g'
+ #
+ # So, first we look for a working echo in the user's PATH.
+
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for dir in $PATH /usr/ucb; do
+ IFS="$lt_save_ifs"
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$dir/echo"
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+
+ if test "X$ECHO" = Xecho; then
+ # We didn't find a better echo, so look for alternatives.
+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # This shell has a builtin print -r that does the trick.
+ ECHO='print -r'
+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
+ # If we have ksh, try running configure again with it.
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
+ export ORIGINAL_CONFIG_SHELL
+ CONFIG_SHELL=/bin/ksh
+ export CONFIG_SHELL
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
+ else
+ # Try using printf.
+ ECHO='printf %s\n'
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ # Cool, printf works
+ :
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
+ export CONFIG_SHELL
+ SHELL="$CONFIG_SHELL"
+ export SHELL
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
+ test "X$echo_testing_string" = 'X\t' &&
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
+ test "X$echo_testing_string" = "X$echo_test_string"; then
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
+ else
+ # maybe with a smaller string...
+ prev=:
+
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
+ then
+ break
+ fi
+ prev="$cmd"
+ done
+
+ if test "$prev" != 'sed 50q "[$]0"'; then
+ echo_test_string=`eval $prev`
+ export echo_test_string
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
+ else
+ # Oops. We lost completely, so just stick with echo.
+ ECHO=echo
+ fi
+ fi
+ fi
+ fi
+ fi
+fi
+
+# Copy echo and quote the copy suitably for passing to libtool from
+# the Makefile, instead of quoting the original, which is used later.
+lt_ECHO=$ECHO
+if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
+ lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
+fi
+
+AC_SUBST(lt_ECHO)
+])
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
+_LT_DECL([], [ECHO], [1],
+ [An echo program that does not interpret backslashes])
+])# _LT_PROG_ECHO_BACKSLASH
+
+
+# _LT_ENABLE_LOCK
+# ---------------
+m4_defun([_LT_ENABLE_LOCK],
+[AC_ARG_ENABLE([libtool-lock],
+ [AS_HELP_STRING([--disable-libtool-lock],
+ [avoid locking (might break parallel builds)])])
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
+
+# Some flags need to be propagated to the compiler or linker for good
+# libtool support.
+case $host in
+ia64-*-hpux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *ELF-32*)
+ HPUX_IA64_MODE="32"
+ ;;
+ *ELF-64*)
+ HPUX_IA64_MODE="64"
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+*-*-irix6*)
+ # Find out which ABI we are using.
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -melf32bsmip"
+ ;;
+ *N32*)
+ LD="${LD-ld} -melf32bmipn32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -melf64bmip"
+ ;;
+ esac
+ else
+ case `/usr/bin/file conftest.$ac_objext` in
+ *32-bit*)
+ LD="${LD-ld} -32"
+ ;;
+ *N32*)
+ LD="${LD-ld} -n32"
+ ;;
+ *64-bit*)
+ LD="${LD-ld} -64"
+ ;;
+ esac
+ fi
+ fi
+ rm -rf conftest*
+ ;;
+
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *32-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_i386_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_i386"
+ ;;
+ ppc64-*linux*|powerpc64-*linux*)
+ LD="${LD-ld} -m elf32ppclinux"
+ ;;
+ s390x-*linux*)
+ LD="${LD-ld} -m elf_s390"
+ ;;
+ sparc64-*linux*)
+ LD="${LD-ld} -m elf32_sparc"
+ ;;
+ esac
+ ;;
+ *64-bit*)
+ case $host in
+ x86_64-*kfreebsd*-gnu)
+ LD="${LD-ld} -m elf_x86_64_fbsd"
+ ;;
+ x86_64-*linux*)
+ LD="${LD-ld} -m elf_x86_64"
+ ;;
+ ppc*-*linux*|powerpc*-*linux*)
+ LD="${LD-ld} -m elf64ppc"
+ ;;
+ s390*-*linux*|s390*-*tpf*)
+ LD="${LD-ld} -m elf64_s390"
+ ;;
+ sparc*-*linux*)
+ LD="${LD-ld} -m elf64_sparc"
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+
+*-*-sco3.2v5*)
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
+ SAVE_CFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -belf"
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
+ [AC_LANG_PUSH(C)
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
+ AC_LANG_POP])
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
+ CFLAGS="$SAVE_CFLAGS"
+ fi
+ ;;
+sparc*-*solaris*)
+ # Find out which ABI we are using.
+ echo 'int i;' > conftest.$ac_ext
+ if AC_TRY_EVAL(ac_compile); then
+ case `/usr/bin/file conftest.o` in
+ *64-bit*)
+ case $lt_cv_prog_gnu_ld in
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
+ *)
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
+ LD="${LD-ld} -64"
+ fi
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ rm -rf conftest*
+ ;;
+esac
+
+need_locks="$enable_libtool_lock"
+])# _LT_ENABLE_LOCK
+
+
+# _LT_CMD_OLD_ARCHIVE
+# -------------------
+m4_defun([_LT_CMD_OLD_ARCHIVE],
+[AC_CHECK_TOOL(AR, ar, false)
+test -z "$AR" && AR=ar
+test -z "$AR_FLAGS" && AR_FLAGS=cru
+_LT_DECL([], [AR], [1], [The archiver])
+_LT_DECL([], [AR_FLAGS], [1])
+
+AC_CHECK_TOOL(STRIP, strip, :)
+test -z "$STRIP" && STRIP=:
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
+
+AC_CHECK_TOOL(RANLIB, ranlib, :)
+test -z "$RANLIB" && RANLIB=:
+_LT_DECL([], [RANLIB], [1],
+ [Commands used to install an old-style archive])
+
+# Determine commands to create old-style static archives.
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
+old_postinstall_cmds='chmod 644 $oldlib'
+old_postuninstall_cmds=
+
+if test -n "$RANLIB"; then
+ case $host_os in
+ openbsd*)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
+ ;;
+ *)
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
+ ;;
+ esac
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
+fi
+_LT_DECL([], [old_postinstall_cmds], [2])
+_LT_DECL([], [old_postuninstall_cmds], [2])
+_LT_TAGDECL([], [old_archive_cmds], [2],
+ [Commands used to build an old-style archive])
+])# _LT_CMD_OLD_ARCHIVE
+
+
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------------------
+# Check whether the given compiler option works
+AC_DEFUN([_LT_COMPILER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+ lt_compiler_flag="$3"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ # The option is referenced via a variable to avoid confusing sed.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>conftest.err)
+ ac_status=$?
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s "$ac_outfile"; then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings other than the usual output.
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ fi
+ $RM conftest*
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$5], , :, [$5])
+else
+ m4_if([$6], , :, [$6])
+fi
+])# _LT_COMPILER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
+
+
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
+# [ACTION-SUCCESS], [ACTION-FAILURE])
+# ----------------------------------------------------
+# Check whether the given linker option works
+AC_DEFUN([_LT_LINKER_OPTION],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_CACHE_CHECK([$1], [$2],
+ [$2=no
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $3"
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
+ # The linker can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ if test -s conftest.err; then
+ # Append any errors to the config.log.
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
+ if diff conftest.exp conftest.er2 >/dev/null; then
+ $2=yes
+ fi
+ else
+ $2=yes
+ fi
+ fi
+ $RM -r conftest*
+ LDFLAGS="$save_LDFLAGS"
+])
+
+if test x"[$]$2" = xyes; then
+ m4_if([$4], , :, [$4])
+else
+ m4_if([$5], , :, [$5])
+fi
+])# _LT_LINKER_OPTION
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
+
+
+# LT_CMD_MAX_LEN
+#---------------
+AC_DEFUN([LT_CMD_MAX_LEN],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+# find the maximum length of command line arguments
+AC_MSG_CHECKING([the maximum length of command line arguments])
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
+ i=0
+ teststring="ABCD"
+
+ case $build_os in
+ msdosdjgpp*)
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
+ # during glob expansion). Even if it were fixed, the result of this
+ # check would be larger than it should be.
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
+ ;;
+
+ gnu*)
+ # Under GNU Hurd, this test is not required because there is
+ # no limit to the length of command line arguments.
+ # Libtool will interpret -1 as no limit whatsoever
+ lt_cv_sys_max_cmd_len=-1;
+ ;;
+
+ cygwin* | mingw* | cegcc*)
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
+ # about 5 minutes as the teststring grows exponentially.
+ # Worse, since 9x/ME are not pre-emptively multitasking,
+ # you end up with a "frozen" computer, even though with patience
+ # the test eventually succeeds (with a max line length of 256k).
+ # Instead, let's just punt: use the minimum linelength reported by
+ # all of the supported platforms: 8192 (on NT/2K/XP).
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ amigaos*)
+ # On AmigaOS with pdksh, this test takes hours, literally.
+ # So we just punt and use a minimum line length of 8192.
+ lt_cv_sys_max_cmd_len=8192;
+ ;;
+
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+ # This has been around since 386BSD, at least. Likely further.
+ if test -x /sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
+ elif test -x /usr/sbin/sysctl; then
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
+ else
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
+ fi
+ # And add a safety zone
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ ;;
+
+ interix*)
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
+ lt_cv_sys_max_cmd_len=196608
+ ;;
+
+ osf*)
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
+ # nice to cause kernel panics so lets avoid the loop below.
+ # First set a reasonable default.
+ lt_cv_sys_max_cmd_len=16384
+ #
+ if test -x /sbin/sysconfig; then
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
+ esac
+ fi
+ ;;
+ sco3.2v5*)
+ lt_cv_sys_max_cmd_len=102400
+ ;;
+ sysv5* | sco5v6* | sysv4.2uw2*)
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
+ if test -n "$kargmax"; then
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
+ else
+ lt_cv_sys_max_cmd_len=32768
+ fi
+ ;;
+ *)
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
+ if test -n "$lt_cv_sys_max_cmd_len"; then
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
+ else
+ # Make teststring a little bigger before we do anything with it.
+ # a 1K string should be a reasonable start.
+ for i in 1 2 3 4 5 6 7 8 ; do
+ teststring=$teststring$teststring
+ done
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
+ # If test is not a shell built-in, we'll probably end up computing a
+ # maximum length that is only half of the actual maximum length, but
+ # we can't tell.
+ while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
+ test $i != 17 # 1/2 MB should be enough
+ do
+ i=`expr $i + 1`
+ teststring=$teststring$teststring
+ done
+ # Only check the string length outside the loop.
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
+ teststring=
+ # Add a significant safety factor because C++ compilers can tack on
+ # massive amounts of additional arguments before passing them to the
+ # linker. It appears as though 1/2 is a usable value.
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
+ fi
+ ;;
+ esac
+])
+if test -n $lt_cv_sys_max_cmd_len ; then
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
+else
+ AC_MSG_RESULT(none)
+fi
+max_cmd_len=$lt_cv_sys_max_cmd_len
+_LT_DECL([], [max_cmd_len], [0],
+ [What is the maximum length of a command?])
+])# LT_CMD_MAX_LEN
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
+
+
+# _LT_HEADER_DLFCN
+# ----------------
+m4_defun([_LT_HEADER_DLFCN],
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
+])# _LT_HEADER_DLFCN
+
+
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
+# ----------------------------------------------------------------
+m4_defun([_LT_TRY_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "$cross_compiling" = yes; then :
+ [$4]
+else
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
+ lt_status=$lt_dlunknown
+ cat > conftest.$ac_ext <<_LT_EOF
+[#line __oline__ "configure"
+#include "confdefs.h"
+
+#if HAVE_DLFCN_H
+#include <dlfcn.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef RTLD_GLOBAL
+# define LT_DLGLOBAL RTLD_GLOBAL
+#else
+# ifdef DL_GLOBAL
+# define LT_DLGLOBAL DL_GLOBAL
+# else
+# define LT_DLGLOBAL 0
+# endif
+#endif
+
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
+ find out it does not work in some platform. */
+#ifndef LT_DLLAZY_OR_NOW
+# ifdef RTLD_LAZY
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
+# else
+# ifdef DL_LAZY
+# define LT_DLLAZY_OR_NOW DL_LAZY
+# else
+# ifdef RTLD_NOW
+# define LT_DLLAZY_OR_NOW RTLD_NOW
+# else
+# ifdef DL_NOW
+# define LT_DLLAZY_OR_NOW DL_NOW
+# else
+# define LT_DLLAZY_OR_NOW 0
+# endif
+# endif
+# endif
+# endif
+#endif
+
+void fnord() { int i=42;}
+int main ()
+{
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
+ int status = $lt_dlunknown;
+
+ if (self)
+ {
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
+ /* dlclose (self); */
+ }
+ else
+ puts (dlerror ());
+
+ return status;
+}]
+_LT_EOF
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
+ lt_status=$?
+ case x$lt_status in
+ x$lt_dlno_uscore) $1 ;;
+ x$lt_dlneed_uscore) $2 ;;
+ x$lt_dlunknown|x*) $3 ;;
+ esac
+ else :
+ # compilation failed
+ $3
+ fi
+fi
+rm -fr conftest*
+])# _LT_TRY_DLOPEN_SELF
+
+
+# LT_SYS_DLOPEN_SELF
+# ------------------
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
+[m4_require([_LT_HEADER_DLFCN])dnl
+if test "x$enable_dlopen" != xyes; then
+ enable_dlopen=unknown
+ enable_dlopen_self=unknown
+ enable_dlopen_self_static=unknown
+else
+ lt_cv_dlopen=no
+ lt_cv_dlopen_libs=
+
+ case $host_os in
+ beos*)
+ lt_cv_dlopen="load_add_on"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ;;
+
+ mingw* | pw32* | cegcc*)
+ lt_cv_dlopen="LoadLibrary"
+ lt_cv_dlopen_libs=
+ ;;
+
+ cygwin*)
+ lt_cv_dlopen="dlopen"
+ lt_cv_dlopen_libs=
+ ;;
+
+ darwin*)
+ # if libdl is installed we need to link against it
+ AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
+ lt_cv_dlopen="dyld"
+ lt_cv_dlopen_libs=
+ lt_cv_dlopen_self=yes
+ ])
+ ;;
+
+ *)
+ AC_CHECK_FUNC([shl_load],
+ [lt_cv_dlopen="shl_load"],
+ [AC_CHECK_LIB([dld], [shl_load],
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
+ [AC_CHECK_FUNC([dlopen],
+ [lt_cv_dlopen="dlopen"],
+ [AC_CHECK_LIB([dl], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
+ [AC_CHECK_LIB([svld], [dlopen],
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
+ [AC_CHECK_LIB([dld], [dld_link],
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
+ ])
+ ])
+ ])
+ ])
+ ])
+ ;;
+ esac
+
+ if test "x$lt_cv_dlopen" != xno; then
+ enable_dlopen=yes
+ else
+ enable_dlopen=no
+ fi
+
+ case $lt_cv_dlopen in
+ dlopen)
+ save_CPPFLAGS="$CPPFLAGS"
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
+
+ save_LDFLAGS="$LDFLAGS"
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
+
+ save_LIBS="$LIBS"
+ LIBS="$lt_cv_dlopen_libs $LIBS"
+
+ AC_CACHE_CHECK([whether a program can dlopen itself],
+ lt_cv_dlopen_self, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
+ ])
+
+ if test "x$lt_cv_dlopen_self" = xyes; then
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
+ lt_cv_dlopen_self_static, [dnl
+ _LT_TRY_DLOPEN_SELF(
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
+ ])
+ fi
+
+ CPPFLAGS="$save_CPPFLAGS"
+ LDFLAGS="$save_LDFLAGS"
+ LIBS="$save_LIBS"
+ ;;
+ esac
+
+ case $lt_cv_dlopen_self in
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
+ *) enable_dlopen_self=unknown ;;
+ esac
+
+ case $lt_cv_dlopen_self_static in
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
+ *) enable_dlopen_self_static=unknown ;;
+ esac
+fi
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
+ [Whether dlopen is supported])
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
+ [Whether dlopen of programs is supported])
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
+ [Whether dlopen of statically linked programs is supported])
+])# LT_SYS_DLOPEN_SELF
+
+# Old name:
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
+
+
+# _LT_COMPILER_C_O([TAGNAME])
+# ---------------------------
+# Check to see if options -c and -o are simultaneously supported by compiler.
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
+m4_defun([_LT_COMPILER_C_O],
+[m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
+ $RM -r conftest 2>/dev/null
+ mkdir conftest
+ cd conftest
+ mkdir out
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
+ # Insert the option either (1) after the last *FLAGS variable, or
+ # (2) before a word containing "conftest.", or (3) at the end.
+ # Note that $ac_compile itself does not contain backslashes and begins
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
+ lt_compile=`echo "$ac_compile" | $SED \
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
+ -e 's:$: $lt_compiler_flag:'`
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$lt_compile" 2>out/conftest.err)
+ ac_status=$?
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
+ then
+ # The compiler can only warn and ignore the option if not recognized
+ # So say no if there are warnings
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
+ _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+ fi
+ fi
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
+ $RM conftest*
+ # SGI C++ compiler will create directory out/ii_files/ for
+ # template instantiation
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
+ $RM out/* && rmdir out
+ cd ..
+ $RM -r conftest
+ $RM conftest*
+])
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
+ [Does compiler simultaneously support -c and -o options?])
+])# _LT_COMPILER_C_O
+
+
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
+# ----------------------------------
+# Check to see if we can do hard links to lock some files if needed
+m4_defun([_LT_COMPILER_FILE_LOCKS],
+[m4_require([_LT_ENABLE_LOCK])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+_LT_COMPILER_C_O([$1])
+
+hard_links="nottested"
+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
+ # do not overwrite the value of need_locks provided by the user
+ AC_MSG_CHECKING([if we can lock with hard links])
+ hard_links=yes
+ $RM conftest*
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ touch conftest.a
+ ln conftest.a conftest.b 2>&5 || hard_links=no
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
+ AC_MSG_RESULT([$hard_links])
+ if test "$hard_links" = no; then
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
+ need_locks=warn
+ fi
+else
+ need_locks=no
+fi
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
+])# _LT_COMPILER_FILE_LOCKS
+
+
+# _LT_CHECK_OBJDIR
+# ----------------
+m4_defun([_LT_CHECK_OBJDIR],
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
+[rm -f .libs 2>/dev/null
+mkdir .libs 2>/dev/null
+if test -d .libs; then
+ lt_cv_objdir=.libs
+else
+ # MS-DOS does not allow filenames that begin with a dot.
+ lt_cv_objdir=_libs
+fi
+rmdir .libs 2>/dev/null])
+objdir=$lt_cv_objdir
+_LT_DECL([], [objdir], [0],
+ [The name of the directory that contains temporary libtool files])dnl
+m4_pattern_allow([LT_OBJDIR])dnl
+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
+ [Define to the sub-directory in which libtool stores uninstalled libraries.])
+])# _LT_CHECK_OBJDIR
+
+
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
+# --------------------------------------
+# Check hardcoding attributes.
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
+_LT_TAGVAR(hardcode_action, $1)=
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||
+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
+
+ # We can hardcode non-existent directories.
+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
+ # have to relink, otherwise we might link with an installed library
+ # when we should be linking with a yet-to-be-installed one
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
+ # Linking always hardcodes the temporary library directory.
+ _LT_TAGVAR(hardcode_action, $1)=relink
+ else
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
+ _LT_TAGVAR(hardcode_action, $1)=immediate
+ fi
+else
+ # We cannot hardcode anything, or else we can only hardcode existing
+ # directories.
+ _LT_TAGVAR(hardcode_action, $1)=unsupported
+fi
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
+
+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
+ # Fast installation is not supported
+ enable_fast_install=no
+elif test "$shlibpath_overrides_runpath" = yes ||
+ test "$enable_shared" = no; then
+ # Fast installation is not necessary
+ enable_fast_install=needless
+fi
+_LT_TAGDECL([], [hardcode_action], [0],
+ [How to hardcode a shared library path into an executable])
+])# _LT_LINKER_HARDCODE_LIBPATH
+
+
+# _LT_CMD_STRIPLIB
+# ----------------
+m4_defun([_LT_CMD_STRIPLIB],
+[m4_require([_LT_DECL_EGREP])
+striplib=
+old_striplib=
+AC_MSG_CHECKING([whether stripping libraries is possible])
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
+ AC_MSG_RESULT([yes])
+else
+# FIXME - insert some real tests, host_os isn't really good enough
+ case $host_os in
+ darwin*)
+ if test -n "$STRIP" ; then
+ striplib="$STRIP -x"
+ old_striplib="$STRIP -S"
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ ;;
+ *)
+ AC_MSG_RESULT([no])
+ ;;
+ esac
+fi
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
+_LT_DECL([], [striplib], [1])
+])# _LT_CMD_STRIPLIB
+
+
+# _LT_SYS_DYNAMIC_LINKER([TAG])
+# -----------------------------
+# PORTME Fill in your ld.so characteristics
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_OBJDUMP])dnl
+m4_require([_LT_DECL_SED])dnl
+AC_MSG_CHECKING([dynamic linker characteristics])
+m4_if([$1],
+ [], [
+if test "$GCC" = yes; then
+ case $host_os in
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
+ *) lt_awk_arg="/^libraries:/" ;;
+ esac
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
+ # if the path contains ";" then we assume it to be the separator
+ # otherwise default to the standard path separator (i.e. ":") - it is
+ # assumed that no part of a normal pathname contains ";" but that should
+ # okay in the real world where ";" in dirpaths is itself problematic.
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ # Ok, now we have the path, separated by spaces, we can step through it
+ # and add multilib dir if necessary.
+ lt_tmp_lt_search_path_spec=
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
+ for lt_sys_path in $lt_search_path_spec; do
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
+ else
+ test -d "$lt_sys_path" && \
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
+ fi
+ done
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
+BEGIN {RS=" "; FS="/|\n";} {
+ lt_foo="";
+ lt_count=0;
+ for (lt_i = NF; lt_i > 0; lt_i--) {
+ if ($lt_i != "" && $lt_i != ".") {
+ if ($lt_i == "..") {
+ lt_count++;
+ } else {
+ if (lt_count == 0) {
+ lt_foo="/" $lt_i lt_foo;
+ } else {
+ lt_count--;
+ }
+ }
+ }
+ }
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
+}'`
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
+else
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
+fi])
+library_names_spec=
+libname_spec='lib$name'
+soname_spec=
+shrext_cmds=".so"
+postinstall_cmds=
+postuninstall_cmds=
+finish_cmds=
+finish_eval=
+shlibpath_var=
+shlibpath_overrides_runpath=unknown
+version_type=none
+dynamic_linker="$host_os ld.so"
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
+need_lib_prefix=unknown
+hardcode_into_libs=no
+
+# when you set need_version to no, make sure it does not cause -set_version
+# flags to be left without arguments
+need_version=unknown
+
+case $host_os in
+aix3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
+ shlibpath_var=LIBPATH
+
+ # AIX 3 has no versioning support, so we append a major version to the name.
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+
+aix[[4-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ hardcode_into_libs=yes
+ if test "$host_cpu" = ia64; then
+ # AIX 5 supports IA64
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ else
+ # With GCC up to 2.95.x, collect2 would create an import file
+ # for dependence libraries. The import file would start with
+ # the line `#! .'. This would cause the generated library to
+ # depend on `.', always an invalid library. This was fixed in
+ # development snapshots of GCC prior to 3.0.
+ case $host_os in
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
+ echo ' yes '
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
+ :
+ else
+ can_build_shared=no
+ fi
+ ;;
+ esac
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
+ # soname into executable. Probably we can add versioning support to
+ # collect2, so additional links can be useful in future.
+ if test "$aix_use_runtimelinking" = yes; then
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
+ # instead of lib<name>.a to let people know that these are not
+ # typical AIX shared libraries.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ else
+ # We preserve .a as extension for shared libraries through AIX4.2
+ # and later when we are not doing run time linking.
+ library_names_spec='${libname}${release}.a $libname.a'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ fi
+ shlibpath_var=LIBPATH
+ fi
+ ;;
+
+amigaos*)
+ case $host_cpu in
+ powerpc)
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ ;;
+ m68k)
+ library_names_spec='$libname.ixlibrary $libname.a'
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
+ finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
+ ;;
+ esac
+ ;;
+
+beos*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
+bsdi[[45]]*)
+ version_type=linux
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
+ # the default ld.so.conf also contains /usr/contrib/lib and
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
+ # libtool to hard-code these into programs
+ ;;
+
+cygwin* | mingw* | pw32* | cegcc*)
+ version_type=windows
+ shrext_cmds=".dll"
+ need_version=no
+ need_lib_prefix=no
+
+ case $GCC,$host_os in
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
+ library_names_spec='$libname.dll.a'
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
+ postinstall_cmds='base_file=`basename \${file}`~
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
+ dldir=$destdir/`dirname \$dlpath`~
+ test -d \$dldir || mkdir -p \$dldir~
+ $install_prog $dir/$dlname \$dldir/$dlname~
+ chmod a+x \$dldir/$dlname~
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
+ fi'
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
+ dlpath=$dir/\$dldll~
+ $RM \$dlpath'
+ shlibpath_overrides_runpath=yes
+
+ case $host_os in
+ cygwin*)
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
+ ;;
+ mingw* | cegcc*)
+ # MinGW DLLs use traditional 'lib' prefix
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
+ # It is most probably a Windows format PATH printed by
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
+ # path with ; separators, and with drive letters. We can handle the
+ # drive letters (cygwin fileutils understands them), so leave them,
+ # especially as we might pass files found there to a mingw objdump,
+ # which wouldn't understand a cygwinified path. Ahh.
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
+ else
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
+ fi
+ ;;
+ pw32*)
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
+ ;;
+ esac
+ ;;
+
+ *)
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
+ ;;
+ esac
+ dynamic_linker='Win32 ld.exe'
+ # FIXME: first we should search . and the directory the executable is in
+ shlibpath_var=PATH
+ ;;
+
+darwin* | rhapsody*)
+ dynamic_linker="$host_os dyld"
+ version_type=darwin
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
+ soname_spec='${libname}${release}${major}$shared_ext'
+ shlibpath_overrides_runpath=yes
+ shlibpath_var=DYLD_LIBRARY_PATH
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
+m4_if([$1], [],[
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
+ ;;
+
+dgux*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+freebsd1*)
+ dynamic_linker=no
+ ;;
+
+freebsd* | dragonfly*)
+ # DragonFly does not have aout. When/if they implement a new
+ # versioning mechanism, adjust this.
+ if test -x /usr/bin/objformat; then
+ objformat=`/usr/bin/objformat`
+ else
+ case $host_os in
+ freebsd[[123]]*) objformat=aout ;;
+ *) objformat=elf ;;
+ esac
+ fi
+ version_type=freebsd-$objformat
+ case $version_type in
+ freebsd-elf*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ need_version=no
+ need_lib_prefix=no
+ ;;
+ freebsd-*)
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ need_version=yes
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_os in
+ freebsd2*)
+ shlibpath_overrides_runpath=yes
+ ;;
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+ *) # from 4.6 on, and DragonFly
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+ esac
+ ;;
+
+gnu*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ hardcode_into_libs=yes
+ ;;
+
+hpux9* | hpux10* | hpux11*)
+ # Give a soname corresponding to the major version so that dld.sl refuses to
+ # link against other versions.
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ case $host_cpu in
+ ia64*)
+ shrext_cmds='.so'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.so"
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ if test "X$HPUX_IA64_MODE" = X32; then
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
+ else
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
+ fi
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ hppa*64*)
+ shrext_cmds='.sl'
+ hardcode_into_libs=yes
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
+ ;;
+ *)
+ shrext_cmds='.sl'
+ dynamic_linker="$host_os dld.sl"
+ shlibpath_var=SHLIB_PATH
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ ;;
+ esac
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
+ postinstall_cmds='chmod 555 $lib'
+ ;;
+
+interix[[3-9]]*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $host_os in
+ nonstopux*) version_type=nonstopux ;;
+ *)
+ if test "$lt_cv_prog_gnu_ld" = yes; then
+ version_type=linux
+ else
+ version_type=irix
+ fi ;;
+ esac
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
+ case $host_os in
+ irix5* | nonstopux*)
+ libsuff= shlibsuff=
+ ;;
+ *)
+ case $LD in # libtool.m4 will add one of these switches to LD
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
+ libsuff= shlibsuff= libmagic=32-bit;;
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
+ *) libsuff= shlibsuff= libmagic=never-match;;
+ esac
+ ;;
+ esac
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
+ hardcode_into_libs=yes
+ ;;
+
+# No shared lib support for Linux oldld, aout, or coff.
+linux*oldld* | linux*aout* | linux*coff*)
+ dynamic_linker=no
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ # Some binutils ld are patched to set DT_RUNPATH
+ save_LDFLAGS=$LDFLAGS
+ save_libdir=$libdir
+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
+ [shlibpath_overrides_runpath=yes])])
+ LDFLAGS=$save_LDFLAGS
+ libdir=$save_libdir
+
+ # This implies no fast_install, which is unacceptable.
+ # Some rework will be needed to allow for fast_install
+ # before this can be enabled.
+ hardcode_into_libs=yes
+
+ # Append ld.so.conf contents to the search path
+ if test -f /etc/ld.so.conf; then
+ lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
+ fi
+
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
+ # powerpc, because MkLinux only supported shared libraries with the
+ # GNU dynamic linker. Since this was broken with cross compilers,
+ # most powerpc-linux boxes support dynamic linking these days and
+ # people can always --disable-shared, the test was removed, and we
+ # assume the GNU/Linux dynamic linker is in use.
+ dynamic_linker='GNU/Linux ld.so'
+ ;;
+
+netbsdelf*-gnu)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='NetBSD ld.elf_so'
+ ;;
+
+netbsd*)
+ version_type=sunos
+ need_lib_prefix=no
+ need_version=no
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ dynamic_linker='NetBSD (a.out) ld.so'
+ else
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ dynamic_linker='NetBSD ld.elf_so'
+ fi
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ ;;
+
+newsos6)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ ;;
+
+*nto* | *qnx*)
+ version_type=qnx
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ dynamic_linker='ldqnx.so'
+ ;;
+
+openbsd*)
+ version_type=sunos
+ sys_lib_dlsearch_path_spec="/usr/lib"
+ need_lib_prefix=no
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
+ case $host_os in
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
+ *) need_version=no ;;
+ esac
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ case $host_os in
+ openbsd2.[[89]] | openbsd2.[[89]].*)
+ shlibpath_overrides_runpath=no
+ ;;
+ *)
+ shlibpath_overrides_runpath=yes
+ ;;
+ esac
+ else
+ shlibpath_overrides_runpath=yes
+ fi
+ ;;
+
+os2*)
+ libname_spec='$name'
+ shrext_cmds=".dll"
+ need_lib_prefix=no
+ library_names_spec='$libname${shared_ext} $libname.a'
+ dynamic_linker='OS/2 ld.exe'
+ shlibpath_var=LIBPATH
+ ;;
+
+osf3* | osf4* | osf5*)
+ version_type=osf
+ need_lib_prefix=no
+ need_version=no
+ soname_spec='${libname}${release}${shared_ext}$major'
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
+ ;;
+
+rdos*)
+ dynamic_linker=no
+ ;;
+
+solaris*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ # ldd complains unless libraries are executable
+ postinstall_cmds='chmod +x $lib'
+ ;;
+
+sunos4*)
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ if test "$with_gnu_ld" = yes; then
+ need_lib_prefix=no
+ fi
+ need_version=yes
+ ;;
+
+sysv4 | sysv4.3*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ case $host_vendor in
+ sni)
+ shlibpath_overrides_runpath=no
+ need_lib_prefix=no
+ runpath_var=LD_RUN_PATH
+ ;;
+ siemens)
+ need_lib_prefix=no
+ ;;
+ motorola)
+ need_lib_prefix=no
+ need_version=no
+ shlibpath_overrides_runpath=no
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
+ ;;
+ esac
+ ;;
+
+sysv4*MP*)
+ if test -d /usr/nec ;then
+ version_type=linux
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
+ soname_spec='$libname${shared_ext}.$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ fi
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ version_type=freebsd-elf
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=yes
+ hardcode_into_libs=yes
+ if test "$with_gnu_ld" = yes; then
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
+ else
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
+ case $host_os in
+ sco3.2v5*)
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
+ ;;
+ esac
+ fi
+ sys_lib_dlsearch_path_spec='/usr/lib'
+ ;;
+
+tpf*)
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ shlibpath_var=LD_LIBRARY_PATH
+ shlibpath_overrides_runpath=no
+ hardcode_into_libs=yes
+ ;;
+
+uts4*)
+ version_type=linux
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LD_LIBRARY_PATH
+ ;;
+
+*)
+ dynamic_linker=no
+ ;;
+esac
+AC_MSG_RESULT([$dynamic_linker])
+test "$dynamic_linker" = no && can_build_shared=no
+
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
+if test "$GCC" = yes; then
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
+fi
+
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
+fi
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
+fi
+
+_LT_DECL([], [variables_saved_for_relink], [1],
+ [Variables whose values should be saved in libtool wrapper scripts and
+ restored at link time])
+_LT_DECL([], [need_lib_prefix], [0],
+ [Do we need the "lib" prefix for modules?])
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
+_LT_DECL([], [version_type], [0], [Library versioning type])
+_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
+ [Is shlibpath searched before the hard-coded library search path?])
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
+_LT_DECL([], [library_names_spec], [1],
+ [[List of archive names. First name is the real one, the rest are links.
+ The last name is the one that the linker finds with -lNAME]])
+_LT_DECL([], [soname_spec], [1],
+ [[The coded name of the library, if different from the real name]])
+_LT_DECL([], [postinstall_cmds], [2],
+ [Command to use after installation of a shared archive])
+_LT_DECL([], [postuninstall_cmds], [2],
+ [Command to use after uninstallation of a shared archive])
+_LT_DECL([], [finish_cmds], [2],
+ [Commands used to finish a libtool library installation in a directory])
+_LT_DECL([], [finish_eval], [1],
+ [[As "finish_cmds", except a single script fragment to be evaled but
+ not shown]])
+_LT_DECL([], [hardcode_into_libs], [0],
+ [Whether we should hardcode library paths into libraries])
+_LT_DECL([], [sys_lib_search_path_spec], [2],
+ [Compile-time system search path for libraries])
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
+ [Run-time system search path for libraries])
+])# _LT_SYS_DYNAMIC_LINKER
+
+
+# _LT_PATH_TOOL_PREFIX(TOOL)
+# --------------------------
+# find a file program which can recognize shared library
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
+[m4_require([_LT_DECL_EGREP])dnl
+AC_MSG_CHECKING([for $1])
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
+[case $MAGIC_CMD in
+[[\\/*] | ?:[\\/]*])
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
+ ;;
+*)
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+dnl $ac_dummy forces splitting on constant user-supplied paths.
+dnl POSIX.2 word splitting is done only on the output of word expansions,
+dnl not every word. This closes a longstanding sh security hole.
+ ac_dummy="m4_if([$2], , $PATH, [$2])"
+ for ac_dir in $ac_dummy; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f $ac_dir/$1; then
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
+ if test -n "$file_magic_test_file"; then
+ case $deplibs_check_method in
+ "file_magic "*)
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
+ $EGREP "$file_magic_regex" > /dev/null; then
+ :
+ else
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the command libtool uses to detect shared libraries,
+*** $file_magic_cmd, produces output that libtool cannot recognize.
+*** The result is that libtool may fail to recognize shared libraries
+*** as such. This will affect the creation of libtool libraries that
+*** depend on shared libraries, but programs linked with such libtool
+*** libraries will work regardless of this problem. Nevertheless, you
+*** may want to report the problem to your system manager and/or to
+*** bug-libtool@gnu.org
+
+_LT_EOF
+ fi ;;
+ esac
+ fi
+ break
+ fi
+ done
+ IFS="$lt_save_ifs"
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
+ ;;
+esac])
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
+if test -n "$MAGIC_CMD"; then
+ AC_MSG_RESULT($MAGIC_CMD)
+else
+ AC_MSG_RESULT(no)
+fi
+_LT_DECL([], [MAGIC_CMD], [0],
+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl
+])# _LT_PATH_TOOL_PREFIX
+
+# Old name:
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
+
+
+# _LT_PATH_MAGIC
+# --------------
+# find a file program which can recognize a shared library
+m4_defun([_LT_PATH_MAGIC],
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
+if test -z "$lt_cv_path_MAGIC_CMD"; then
+ if test -n "$ac_tool_prefix"; then
+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
+ else
+ MAGIC_CMD=:
+ fi
+fi
+])# _LT_PATH_MAGIC
+
+
+# LT_PATH_LD
+# ----------
+# find the pathname to the GNU or non-GNU linker
+AC_DEFUN([LT_PATH_LD],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+
+AC_ARG_WITH([gnu-ld],
+ [AS_HELP_STRING([--with-gnu-ld],
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
+ [test "$withval" = no || with_gnu_ld=yes],
+ [with_gnu_ld=no])dnl
+
+ac_prog=ld
+if test "$GCC" = yes; then
+ # Check if gcc -print-prog-name=ld gives a path.
+ AC_MSG_CHECKING([for ld used by $CC])
+ case $host in
+ *-*-mingw*)
+ # gcc leaves a trailing carriage return which upsets mingw
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
+ *)
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
+ esac
+ case $ac_prog in
+ # Accept absolute paths.
+ [[\\/]]* | ?:[[\\/]]*)
+ re_direlt='/[[^/]][[^/]]*/\.\./'
+ # Canonicalize the pathname of ld
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
+ done
+ test -z "$LD" && LD="$ac_prog"
+ ;;
+ "")
+ # If it fails, then pretend we aren't using GCC.
+ ac_prog=ld
+ ;;
+ *)
+ # If it is relative, then search for the first ld in PATH.
+ with_gnu_ld=unknown
+ ;;
+ esac
+elif test "$with_gnu_ld" = yes; then
+ AC_MSG_CHECKING([for GNU ld])
+else
+ AC_MSG_CHECKING([for non-GNU ld])
+fi
+AC_CACHE_VAL(lt_cv_path_LD,
+[if test -z "$LD"; then
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
+ lt_cv_path_LD="$ac_dir/$ac_prog"
+ # Check to see if the program is GNU ld. I'd rather use --version,
+ # but apparently some variants of GNU ld only accept -v.
+ # Break only if it was the GNU/non-GNU ld that we prefer.
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
+ *GNU* | *'with BFD'*)
+ test "$with_gnu_ld" != no && break
+ ;;
+ *)
+ test "$with_gnu_ld" != yes && break
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+else
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
+fi])
+LD="$lt_cv_path_LD"
+if test -n "$LD"; then
+ AC_MSG_RESULT($LD)
+else
+ AC_MSG_RESULT(no)
+fi
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
+_LT_PATH_LD_GNU
+AC_SUBST([LD])
+
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
+])# LT_PATH_LD
+
+# Old names:
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_LD], [])
+dnl AC_DEFUN([AC_PROG_LD], [])
+
+
+# _LT_PATH_LD_GNU
+#- --------------
+m4_defun([_LT_PATH_LD_GNU],
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
+case `$LD -v 2>&1 </dev/null` in
+*GNU* | *'with BFD'*)
+ lt_cv_prog_gnu_ld=yes
+ ;;
+*)
+ lt_cv_prog_gnu_ld=no
+ ;;
+esac])
+with_gnu_ld=$lt_cv_prog_gnu_ld
+])# _LT_PATH_LD_GNU
+
+
+# _LT_CMD_RELOAD
+# --------------
+# find reload flag for linker
+# -- PORTME Some linkers may need a different reload flag.
+m4_defun([_LT_CMD_RELOAD],
+[AC_CACHE_CHECK([for $LD option to reload object files],
+ lt_cv_ld_reload_flag,
+ [lt_cv_ld_reload_flag='-r'])
+reload_flag=$lt_cv_ld_reload_flag
+case $reload_flag in
+"" | " "*) ;;
+*) reload_flag=" $reload_flag" ;;
+esac
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
+case $host_os in
+ darwin*)
+ if test "$GCC" = yes; then
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
+ else
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ fi
+ ;;
+esac
+_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
+_LT_DECL([], [reload_cmds], [2])dnl
+])# _LT_CMD_RELOAD
+
+
+# _LT_CHECK_MAGIC_METHOD
+# ----------------------
+# how to check for library dependencies
+# -- PORTME fill in with the dynamic library characteristics
+m4_defun([_LT_CHECK_MAGIC_METHOD],
+[m4_require([_LT_DECL_EGREP])
+m4_require([_LT_DECL_OBJDUMP])
+AC_CACHE_CHECK([how to recognize dependent libraries],
+lt_cv_deplibs_check_method,
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
+lt_cv_file_magic_test_file=
+lt_cv_deplibs_check_method='unknown'
+# Need to set the preceding variable on all platforms that support
+# interlibrary dependencies.
+# 'none' -- dependencies not supported.
+# `unknown' -- same as none, but documents that we really don't know.
+# 'pass_all' -- all dependencies passed with no checks.
+# 'test_compile' -- check by making test program.
+# 'file_magic [[regex]]' -- check by looking for files in library path
+# which responds to the $file_magic_cmd with a given extended regex.
+# If you have `file' or equivalent on your system and you're not sure
+# whether `pass_all' will *always* work, you probably want this one.
+
+case $host_os in
+aix[[4-9]]*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+beos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+bsdi[[45]]*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
+ lt_cv_file_magic_test_file=/shlib/libc.so
+ ;;
+
+cygwin*)
+ # func_win32_libid is a shell function defined in ltmain.sh
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ ;;
+
+mingw* | pw32*)
+ # Base MSYS/MinGW do not provide the 'file' command needed by
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
+ # unless we find 'file', for example because we are cross-compiling.
+ if ( file / ) >/dev/null 2>&1; then
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
+ lt_cv_file_magic_cmd='func_win32_libid'
+ else
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ fi
+ ;;
+
+cegcc)
+ # use the weaker test based on 'objdump'. See mingw*.
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
+ ;;
+
+darwin* | rhapsody*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+freebsd* | dragonfly*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ case $host_cpu in
+ i*86 )
+ # Not sure whether the presence of OpenBSD here was a mistake.
+ # Let's accept both of them until this is cleared up.
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
+ ;;
+ esac
+ else
+ lt_cv_deplibs_check_method=pass_all
+ fi
+ ;;
+
+gnu*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+hpux10.20* | hpux11*)
+ lt_cv_file_magic_cmd=/usr/bin/file
+ case $host_cpu in
+ ia64*)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
+ ;;
+ hppa*64*)
+ [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
+ ;;
+ *)
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
+ ;;
+ esac
+ ;;
+
+interix[[3-9]]*)
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
+ ;;
+
+irix5* | irix6* | nonstopux*)
+ case $LD in
+ *-32|*"-32 ") libmagic=32-bit;;
+ *-n32|*"-n32 ") libmagic=N32;;
+ *-64|*"-64 ") libmagic=64-bit;;
+ *) libmagic=never-match;;
+ esac
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+# This must be Linux ELF.
+linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
+ fi
+ ;;
+
+newos6*)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
+ lt_cv_file_magic_cmd=/usr/bin/file
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
+ ;;
+
+*nto* | *qnx*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+openbsd*)
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
+ else
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
+ fi
+ ;;
+
+osf3* | osf4* | osf5*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+rdos*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+solaris*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+
+sysv4 | sysv4.3*)
+ case $host_vendor in
+ motorola)
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
+ ;;
+ ncr)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ sequent)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
+ ;;
+ sni)
+ lt_cv_file_magic_cmd='/bin/file'
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
+ lt_cv_file_magic_test_file=/lib/libc.so
+ ;;
+ siemens)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ pc)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+ esac
+ ;;
+
+tpf*)
+ lt_cv_deplibs_check_method=pass_all
+ ;;
+esac
+])
+file_magic_cmd=$lt_cv_file_magic_cmd
+deplibs_check_method=$lt_cv_deplibs_check_method
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
+
+_LT_DECL([], [deplibs_check_method], [1],
+ [Method to check whether dependent libraries are shared objects])
+_LT_DECL([], [file_magic_cmd], [1],
+ [Command to use when deplibs_check_method == "file_magic"])
+])# _LT_CHECK_MAGIC_METHOD
+
+
+# LT_PATH_NM
+# ----------
+# find the pathname to a BSD- or MS-compatible name lister
+AC_DEFUN([LT_PATH_NM],
+[AC_REQUIRE([AC_PROG_CC])dnl
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
+[if test -n "$NM"; then
+ # Let the user override the test.
+ lt_cv_path_NM="$NM"
+else
+ lt_nm_to_check="${ac_tool_prefix}nm"
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
+ lt_nm_to_check="$lt_nm_to_check nm"
+ fi
+ for lt_tmp_nm in $lt_nm_to_check; do
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
+ IFS="$lt_save_ifs"
+ test -z "$ac_dir" && ac_dir=.
+ tmp_nm="$ac_dir/$lt_tmp_nm"
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
+ # Check to see if the nm accepts a BSD-compat flag.
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
+ # nm: unknown option "B" ignored
+ # Tru64's nm complains that /dev/null is an invalid object file
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
+ */dev/null* | *'Invalid file or object type'*)
+ lt_cv_path_NM="$tmp_nm -B"
+ break
+ ;;
+ *)
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
+ */dev/null*)
+ lt_cv_path_NM="$tmp_nm -p"
+ break
+ ;;
+ *)
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
+ continue # so that we can try to find one that supports BSD flags
+ ;;
+ esac
+ ;;
+ esac
+ fi
+ done
+ IFS="$lt_save_ifs"
+ done
+ : ${lt_cv_path_NM=no}
+fi])
+if test "$lt_cv_path_NM" != "no"; then
+ NM="$lt_cv_path_NM"
+else
+ # Didn't find any BSD compatible name lister, look for dumpbin.
+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
+ AC_SUBST([DUMPBIN])
+ if test "$DUMPBIN" != ":"; then
+ NM="$DUMPBIN"
+ fi
+fi
+test -z "$NM" && NM=nm
+AC_SUBST([NM])
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
+
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
+ [lt_cv_nm_interface="BSD nm"
+ echo "int some_variable = 0;" > conftest.$ac_ext
+ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$ac_compile" 2>conftest.err)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
+ cat conftest.err >&AS_MESSAGE_LOG_FD
+ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
+ cat conftest.out >&AS_MESSAGE_LOG_FD
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
+ lt_cv_nm_interface="MS dumpbin"
+ fi
+ rm -f conftest*])
+])# LT_PATH_NM
+
+# Old names:
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_PROG_NM], [])
+dnl AC_DEFUN([AC_PROG_NM], [])
+
+
+# LT_LIB_M
+# --------
+# check for math library
+AC_DEFUN([LT_LIB_M],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+LIBM=
+case $host in
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
+ # These system don't have libm, or don't need it
+ ;;
+*-ncr-sysv4.3*)
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
+ ;;
+*)
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
+ ;;
+esac
+AC_SUBST([LIBM])
+])# LT_LIB_M
+
+# Old name:
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
+
+
+# _LT_COMPILER_NO_RTTI([TAGNAME])
+# -------------------------------
+m4_defun([_LT_COMPILER_NO_RTTI],
+[m4_require([_LT_TAG_COMPILER])dnl
+
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+
+if test "$GCC" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+
+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
+ lt_cv_prog_compiler_rtti_exceptions,
+ [-fno-rtti -fno-exceptions], [],
+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
+fi
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
+ [Compiler flag to turn off builtin functions])
+])# _LT_COMPILER_NO_RTTI
+
+
+# _LT_CMD_GLOBAL_SYMBOLS
+# ----------------------
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+AC_REQUIRE([AC_PROG_CC])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+AC_REQUIRE([LT_PATH_LD])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+
+# Check for command to grab the raw symbol name followed by C symbol from nm.
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
+[
+# These are sane defaults that work on at least a few old systems.
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
+
+# Character class describing NM global symbol codes.
+symcode='[[BCDEGRST]]'
+
+# Regexp to match symbols that can be accessed directly from C.
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
+
+# Define system-specific variables.
+case $host_os in
+aix*)
+ symcode='[[BCDT]]'
+ ;;
+cygwin* | mingw* | pw32* | cegcc*)
+ symcode='[[ABCDGISTW]]'
+ ;;
+hpux*)
+ if test "$host_cpu" = ia64; then
+ symcode='[[ABCDEGRST]]'
+ fi
+ ;;
+irix* | nonstopux*)
+ symcode='[[BCDEGRST]]'
+ ;;
+osf*)
+ symcode='[[BCDEGQRST]]'
+ ;;
+solaris*)
+ symcode='[[BDRT]]'
+ ;;
+sco3.2v5*)
+ symcode='[[DT]]'
+ ;;
+sysv4.2uw2*)
+ symcode='[[DT]]'
+ ;;
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
+ symcode='[[ABDT]]'
+ ;;
+sysv4)
+ symcode='[[DFNSTU]]'
+ ;;
+esac
+
+# If we're using GNU nm, then use its standard symbol codes.
+case `$NM -V 2>&1` in
+*GNU* | *'with BFD'*)
+ symcode='[[ABCDGIRSTW]]' ;;
+esac
+
+# Transform an extracted symbol line into a proper C declaration.
+# Some systems (esp. on ia64) link data and code symbols differently,
+# so use this general approach.
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
+
+# Transform an extracted symbol line into symbol name and symbol address
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
+lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
+
+# Handle CRLF in mingw tool chain
+opt_cr=
+case $build_os in
+mingw*)
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
+ ;;
+esac
+
+# Try without a prefix underscore, then with it.
+for ac_symprfx in "" "_"; do
+
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
+
+ # Write the raw and C identifiers.
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
+ # Fake it for dumpbin and say T for any non-static function
+ # and D for any global variable.
+ # Also find C++ and __fastcall symbols from MSVC++,
+ # which start with @ or ?.
+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
+" {last_section=section; section=\$ 3};"\
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
+" \$ 0!~/External *\|/{next};"\
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
+" {if(hide[section]) next};"\
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
+" ' prfx=^$ac_symprfx]"
+ else
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
+ fi
+
+ # Check to see that the pipe works correctly.
+ pipe_works=no
+
+ rm -f conftest*
+ cat > conftest.$ac_ext <<_LT_EOF
+#ifdef __cplusplus
+extern "C" {
+#endif
+char nm_test_var;
+void nm_test_func(void);
+void nm_test_func(void){}
+#ifdef __cplusplus
+}
+#endif
+int main(){nm_test_var='a';nm_test_func();return(0);}
+_LT_EOF
+
+ if AC_TRY_EVAL(ac_compile); then
+ # Now try to grab the symbols.
+ nlist=conftest.nm
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
+ # Try sorting and uniquifying the output.
+ if sort "$nlist" | uniq > "$nlist"T; then
+ mv -f "$nlist"T "$nlist"
+ else
+ rm -f "$nlist"T
+ fi
+
+ # Make sure that we snagged all the symbols we need.
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
+ cat <<_LT_EOF > conftest.$ac_ext
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+_LT_EOF
+ # Now generate the symbol file.
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
+
+ cat <<_LT_EOF >> conftest.$ac_ext
+
+/* The mapping between symbol names and symbols. */
+const struct {
+ const char *name;
+ void *address;
+}
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
+{
+ { "@PROGRAM@", (void *) 0 },
+_LT_EOF
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
+ cat <<\_LT_EOF >> conftest.$ac_ext
+ {0, (void *) 0}
+};
+
+/* This works around a problem in FreeBSD linker */
+#ifdef FREEBSD_WORKAROUND
+static const void *lt_preloaded_setup() {
+ return lt__PROGRAM__LTX_preloaded_symbols;
+}
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+_LT_EOF
+ # Now try linking the two files.
+ mv conftest.$ac_objext conftstm.$ac_objext
+ lt_save_LIBS="$LIBS"
+ lt_save_CFLAGS="$CFLAGS"
+ LIBS="conftstm.$ac_objext"
+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
+ pipe_works=yes
+ fi
+ LIBS="$lt_save_LIBS"
+ CFLAGS="$lt_save_CFLAGS"
+ else
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
+ fi
+ else
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
+ cat conftest.$ac_ext >&5
+ fi
+ rm -rf conftest* conftst*
+
+ # Do not use the global_symbol_pipe unless it works.
+ if test "$pipe_works" = yes; then
+ break
+ else
+ lt_cv_sys_global_symbol_pipe=
+ fi
+done
+])
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
+ lt_cv_sys_global_symbol_to_cdecl=
+fi
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
+ AC_MSG_RESULT(failed)
+else
+ AC_MSG_RESULT(ok)
+fi
+
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
+ [Take the output of nm and produce a listing of raw symbols and C names])
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
+ [Transform the output of nm in a proper C declaration])
+_LT_DECL([global_symbol_to_c_name_address],
+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
+ [Transform the output of nm in a C name address pair])
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
+ [Transform the output of nm in a C name address pair when lib prefix is needed])
+]) # _LT_CMD_GLOBAL_SYMBOLS
+
+
+# _LT_COMPILER_PIC([TAGNAME])
+# ---------------------------
+m4_defun([_LT_COMPILER_PIC],
+[m4_require([_LT_TAG_COMPILER])dnl
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
+
+AC_MSG_CHECKING([for $compiler option to produce PIC])
+m4_if([$1], [CXX], [
+ # C++ specific cases for pic, static, wl, etc.
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+ *djgpp*)
+ # DJGPP does not support shared libraries at all
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ case $host_os in
+ aix[[4-9]]*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+ chorus*)
+ case $cc_basename in
+ cxch68*)
+ # Green Hills C++ Compiler
+ # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
+ ;;
+ esac
+ ;;
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ freebsd* | dragonfly*)
+ # FreeBSD uses GNU C++
+ ;;
+ hpux9* | hpux10* | hpux11*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ fi
+ ;;
+ aCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ interix*)
+ # This is c89, which is MS Visual C++ (no shared libs)
+ # Anyone wants to do a port?
+ ;;
+ irix5* | irix6* | nonstopux*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ # CC pic flag -KPIC is the default.
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ KCC*)
+ # KAI C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ ecpc* )
+ # old Intel C++ for x86_64 which still supported -KPIC.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ icpc* )
+ # Intel C++, used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ cxx*)
+ # Compaq C++
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xlc* | xlC*)
+ # IBM XL 8.0 on PPC
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+ lynxos*)
+ ;;
+ m88k*)
+ ;;
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ netbsd* | netbsdelf*-gnu)
+ ;;
+ *qnx* | *nto*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ cxx*)
+ # Digital/Compaq C++
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # Make sure the PIC flag is empty. It appears that all Alpha
+ # Linux and Compaq Tru64 Unix objects are PIC.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ psos*)
+ ;;
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ lcc*)
+ # Lucid
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ esac
+ ;;
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ ;;
+ *)
+ ;;
+ esac
+ ;;
+ vxworks*)
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+],
+[
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+
+ case $host_os in
+ aix*)
+ # All AIX code is PIC.
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ m68k)
+ # FIXME: we need at least 68020 code to build shared libraries, but
+ # adding the `-m68020' flag to GCC prevents building anything better,
+ # like `-m68040'.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
+ ;;
+ esac
+ ;;
+
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
+ # PIC is the default for these OSes.
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
+ # (--disable-auto-import) libraries
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ darwin* | rhapsody*)
+ # PIC is the default on this platform
+ # Common symbols not allowed in MH_DYLIB files
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
+ ;;
+
+ hpux*)
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
+ # sets the default TLS model and affects inlining.
+ case $host_cpu in
+ hppa*64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
+
+ msdosdjgpp*)
+ # Just because we use GCC doesn't mean we suddenly get shared libraries
+ # on systems that don't support them.
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ enable_shared=no
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
+ fi
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ ;;
+ esac
+ else
+ # PORTME Check for flag to pass linker flags through the system compiler.
+ case $host_os in
+ aix*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ if test "$host_cpu" = ia64; then
+ # AIX 5 now supports IA64 processor
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ else
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
+ fi
+ ;;
+
+ mingw* | cygwin* | pw32* | os2* | cegcc*)
+ # This hack is so that the source file can tell whether it is being
+ # built for inclusion in a dll (and should export symbols for example).
+ m4_if([$1], [GCJ], [],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
+ ;;
+
+ hpux9* | hpux10* | hpux11*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
+ # not for PA HP-UX.
+ case $host_cpu in
+ hppa*64*|ia64*)
+ # +Z the default
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
+ ;;
+ esac
+ # Is there a better lt_prog_compiler_static that works with the bundled CC?
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # PIC (with -KPIC) is the default.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ # old Intel for x86_64 which still supported -KPIC.
+ ecc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # icc used to be incompatible with GCC.
+ # ICC 10 doesn't accept -KPIC any more.
+ icc* | ifort*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+ ;;
+ # Lahey Fortran 8.1.
+ lf95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
+ ;;
+ pgcc* | pgf77* | pgf90* | pgf95*)
+ # Portland Group compilers (*not* the Pentium gcc compiler,
+ # which looks to be a dead project)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+ ccc*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All Alpha code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+ xl*)
+ # IBM XL C 8.0/Fortran 10.1 on PPC
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C 5.9
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ ;;
+ *Sun\ F*)
+ # Sun Fortran 8.3 passes all unrecognized flags to the linker
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *nto* | *qnx*)
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
+ # it will coredump.
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
+ ;;
+
+ osf3* | osf4* | osf5*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ # All OSF/1 code is PIC.
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ rdos*)
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ case $cc_basename in
+ f77* | f90* | f95*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4 | sysv4.2uw2* | sysv4.3*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec ;then
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ fi
+ ;;
+
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ unicos*)
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+ ;;
+
+ *)
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
+ ;;
+ esac
+ fi
+])
+case $host_os in
+ # For platforms which do not support PIC, -DPIC is meaningless:
+ *djgpp*)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ ;;
+ *)
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
+ ;;
+esac
+AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
+_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
+ [How to pass a linker flag through the compiler])
+
+#
+# Check to make sure the PIC flag actually works.
+#
+if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
+ _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
+ [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
+ [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
+ [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
+ "" | " "*) ;;
+ *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
+ esac],
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
+ _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
+fi
+_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
+ [Additional compiler flags for building library objects])
+
+#
+# Check to make sure the static flag actually works.
+#
+wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
+_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
+ _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
+ $lt_tmp_static_flag,
+ [],
+ [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
+_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
+ [Compiler flag to prevent dynamic linking])
+])# _LT_COMPILER_PIC
+
+
+# _LT_LINKER_SHLIBS([TAGNAME])
+# ----------------------------
+# See if the linker supports building shared libraries.
+m4_defun([_LT_LINKER_SHLIBS],
+[AC_REQUIRE([LT_PATH_LD])dnl
+AC_REQUIRE([LT_PATH_NM])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+m4_require([_LT_DECL_SED])dnl
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
+m4_require([_LT_TAG_COMPILER])dnl
+AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+m4_if([$1], [CXX], [
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ case $host_os in
+ aix[[4-9]]*)
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ ;;
+ pw32*)
+ _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
+ ;;
+ cygwin* | mingw* | cegcc*)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ linux* | k*bsd*-gnu)
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ ;;
+ esac
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+], [
+ runpath_var=
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(archive_cmds, $1)=
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_TAGVAR(compiler_needs_object, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(hardcode_automatic, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ _LT_TAGVAR(hardcode_minus_L, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ _LT_TAGVAR(inherit_rpath, $1)=no
+ _LT_TAGVAR(link_all_deplibs, $1)=unknown
+ _LT_TAGVAR(module_cmds, $1)=
+ _LT_TAGVAR(module_expsym_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)=
+ _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
+ _LT_TAGVAR(thread_safe_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ # include_expsyms should be a list of space-separated symbols to be *always*
+ # included in the symbol list
+ _LT_TAGVAR(include_expsyms, $1)=
+ # exclude_expsyms can be an extended regexp of symbols to exclude
+ # it will be wrapped by ` (' and `)$', so one must not match beginning or
+ # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
+ # as well as any symbol that contains `d'.
+ _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
+ # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
+ # platforms (ab)use it in PIC code, but their linkers get confused if
+ # the symbol is explicitly referenced. Since portable code cannot
+ # rely on this symbol name, it's probably fine to never include it in
+ # preloaded symbol tables.
+ # Exclude shared library initialization/finalization symbols.
+dnl Note also adjust exclude_expsyms for C++ above.
+ extract_expsyms_cmds=
+
+ case $host_os in
+ cygwin* | mingw* | pw32* | cegcc*)
+ # FIXME: the MSVC++ port hasn't been tested in a loooong time
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ if test "$GCC" != yes; then
+ with_gnu_ld=no
+ fi
+ ;;
+ interix*)
+ # we just hope/assume this is gcc and not c89 (= MSVC++)
+ with_gnu_ld=yes
+ ;;
+ openbsd*)
+ with_gnu_ld=no
+ ;;
+ linux* | k*bsd*-gnu)
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ ;;
+ esac
+
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ if test "$with_gnu_ld" = yes; then
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ wlarc='${wl}'
+
+ # Set some defaults for GNU ld with shared library support. These
+ # are reset later if shared libraries are not supported. Putting them
+ # here allows them to be overridden if necessary.
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ supports_anon_versioning=no
+ case `$LD -v 2>&1` in
+ *GNU\ gold*) supports_anon_versioning=yes ;;
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
+ *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
+ *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
+ *\ 2.11.*) ;; # other 2.11 versions
+ *) supports_anon_versioning=yes ;;
+ esac
+
+ # See if GNU ld supports shared libraries.
+ case $host_os in
+ aix[[3-9]]*)
+ # On AIX/PPC, the GNU linker is very broken
+ if test "$host_cpu" != ia64; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: the GNU linker, at least up to release 2.9.1, is reported
+*** to be unable to reliably create shared libraries on AIX.
+*** Therefore, libtool is disabling shared libraries support. If you
+*** really care for shared libraries, you may want to modify your PATH
+*** so that a non-GNU linker is found, and then restart.
+
+_LT_EOF
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+
+ gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
+ tmp_diet=no
+ if test "$host_os" = linux-dietlibc; then
+ case $cc_basename in
+ diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
+ esac
+ fi
+ if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
+ && test "$tmp_diet" = no
+ then
+ tmp_addflag=
+ tmp_sharedflag='-shared'
+ case $cc_basename,$host_cpu in
+ pgcc*) # Portland Group C compiler
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag'
+ ;;
+ pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ tmp_addflag=' $pic_flag -Mnomain' ;;
+ ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
+ tmp_addflag=' -i_dynamic' ;;
+ efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
+ tmp_addflag=' -i_dynamic -nofor_main' ;;
+ ifc* | ifort*) # Intel Fortran compiler
+ tmp_addflag=' -nofor_main' ;;
+ lf95*) # Lahey Fortran 8.1
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ tmp_sharedflag='--shared' ;;
+ xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
+ tmp_sharedflag='-qmkshrobj'
+ tmp_addflag= ;;
+ esac
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*) # Sun C 5.9
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+ tmp_sharedflag='-G' ;;
+ *Sun\ F*) # Sun Fortran 8.3
+ tmp_sharedflag='-G' ;;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+
+ case $cc_basename in
+ xlf*)
+ # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ esac
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
+ wlarc=
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ fi
+ ;;
+
+ solaris*)
+ if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: The releases 2.8.* of the GNU linker cannot reliably
+*** create shared libraries on Solaris systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.9.1 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
+ case `$LD -v 2>&1` in
+ *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ cat <<_LT_EOF 1>&2
+
+*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
+*** reliably create shared libraries on SCO systems. Therefore, libtool
+*** is disabling shared libraries support. We urge you to upgrade GNU
+*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
+*** your PATH or compiler configuration so that the native linker is
+*** used, and then restart.
+
+_LT_EOF
+ ;;
+ *)
+ # For security reasons, it is highly recommended that you always
+ # use absolute paths for naming shared libraries, and exclude the
+ # DT_RUNPATH tag from executables and libraries. But doing so
+ # requires that you compile everything twice, which is a pain.
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ sunos4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+
+ if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
+ runpath_var=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ # PORTME fill in a description of your system's linker (not GNU ld)
+ case $host_os in
+ aix3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
+ # Note: this linker hardcodes the directories in LIBPATH if there
+ # are no directories specified by -L.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
+ # Neither direct hardcoding nor static linking is supported with a
+ # broken collect2.
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ # If we're using GNU nm, then we don't want the "-C" option.
+ # -C means demangle to AIX nm, but means don't demangle with GNU nm
+ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ else
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
+ fi
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
+ aix_use_runtimelinking=yes
+ break
+ fi
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GCC" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ ;;
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=no
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ amigaos*)
+ case $host_cpu in
+ powerpc)
+ # see comment about AmigaOS4 .so support
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)=''
+ ;;
+ m68k)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ ;;
+
+ bsdi[[45]]*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # When not using gcc, we currently assume that we are using
+ # Microsoft Visual C++.
+ # hardcode_libdir_flag_spec is actually meaningless, as there is
+ # no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Tell ltmain to make .lib files, not .a files.
+ libext=lib
+ # Tell ltmain to make .dll files, not .so files.
+ shrext_cmds=".dll"
+ # FIXME: Setting linknames here is a bad hack.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
+ # The linker will automatically build a .lib file if we build a DLL.
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
+ # FIXME: Should let the user specify the lib program.
+ _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
+ _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+ ;;
+
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ freebsd1*)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
+ # support. Future versions do this automatically, but an explicit c++rt0.o
+ # does not break anything, and helps significantly (at the cost of a little
+ # extra space).
+ freebsd2.2*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # Unfortunately, older versions of FreeBSD 2 do not have this feature.
+ freebsd2*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
+ freebsd* | dragonfly*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ hpux9*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+
+ hpux10*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ fi
+ ;;
+
+ hpux11*)
+ if test "$GCC" = yes -a "$with_gnu_ld" = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ else
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ fi
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+
+ # hardcode_minus_L: Not really in the search PATH,
+ # but as the default location of the library.
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ ;;
+ esac
+ fi
+ ;;
+
+ irix5* | irix6* | nonstopux*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ # Try to use the -exported_symbol ld option, if it does not
+ # work, assume that -exports_file does not work either and
+ # implicitly export all symbols.
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
+ AC_LINK_IFELSE(int foo(void) {},
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
+ )
+ LDFLAGS="$save_LDFLAGS"
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ netbsd* | netbsdelf*-gnu)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ newsos6)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *nto* | *qnx*)
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ else
+ case $host_os in
+ openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ ;;
+ esac
+ fi
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ os2*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
+ _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
+ ;;
+
+ osf3*)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ osf4* | osf5*) # as osf3* with the addition of -msym flag
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ else
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
+ $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
+
+ # Both c and cxx compiler support -rpath directly
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ fi
+ _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ ;;
+
+ solaris*)
+ _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
+ if test "$GCC" = yes; then
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ else
+ case `$CC -V 2>&1` in
+ *"Compilers 5.0"*)
+ wlarc=''
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
+ ;;
+ *)
+ wlarc='${wl}'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
+ ;;
+ esac
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'. GCC discards it without `$wl',
+ # but is careful enough not to reorder.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ fi
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+
+ sunos4*)
+ if test "x$host_vendor" = xsequent; then
+ # Use $CC to link under sequent, because it throws in some extra .o
+ # files that make .init and .fini sections work.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
+ fi
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4)
+ case $host_vendor in
+ sni)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
+ ;;
+ siemens)
+ ## LD is ld it makes a PLAMLIB
+ ## CC just makes a GrossModule.
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ ;;
+ motorola)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ sysv4.3*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
+ ;;
+
+ sysv4*MP*)
+ if test -d /usr/nec; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var=LD_RUN_PATH
+ hardcode_runpath_var=yes
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ fi
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ if test "$GCC" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ fi
+ ;;
+
+ uts4*)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+
+ *)
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ if test x$host_vendor = xsni; then
+ case $host in
+ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
+ ;;
+ esac
+ fi
+ fi
+])
+AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
+
+_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
+_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
+_LT_DECL([], [extract_expsyms_cmds], [2],
+ [The commands to extract the exported symbol list from a shared archive])
+
+#
+# Do we need to explicitly link libc?
+#
+case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
+x|xyes)
+ # Assume -lc should be added
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+
+ if test "$enable_shared" = yes && test "$GCC" = yes; then
+ case $_LT_TAGVAR(archive_cmds, $1) in
+ *'~'*)
+ # FIXME: we may have to deal with multi-command sequences.
+ ;;
+ '$CC '*)
+ # Test whether the compiler implicitly links with -lc since on some
+ # systems, -lgcc has to come before -lc. If gcc already passes -lc
+ # to ld, don't add -lc before -lgcc.
+ AC_MSG_CHECKING([whether -lc should be explicitly linked in])
+ $RM conftest*
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+
+ if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
+ soname=conftest
+ lib=conftest
+ libobjs=conftest.$ac_objext
+ deplibs=
+ wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
+ pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
+ compiler_flags=-v
+ linker_flags=-v
+ verstring=
+ output_objdir=.
+ libname=conftest
+ lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
+ _LT_TAGVAR(allow_undefined_flag, $1)=
+ if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
+ then
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ else
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ fi
+ _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
+ else
+ cat conftest.err 1>&5
+ fi
+ $RM conftest*
+ AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
+ ;;
+ esac
+ fi
+ ;;
+esac
+
+_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
+ [Whether or not to add -lc for building shared libraries])
+_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
+ [enable_shared_with_static_runtimes], [0],
+ [Whether or not to disallow shared libs when runtime libs are static])
+_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
+ [Compiler flag to allow reflexive dlopens])
+_LT_TAGDECL([], [whole_archive_flag_spec], [1],
+ [Compiler flag to generate shared objects directly from archives])
+_LT_TAGDECL([], [compiler_needs_object], [1],
+ [Whether the compiler copes with passing no objects directly])
+_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
+ [Create an old-style archive from a shared archive])
+_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
+ [Create a temporary old-style archive to link instead of a shared archive])
+_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
+_LT_TAGDECL([], [archive_expsym_cmds], [2])
+_LT_TAGDECL([], [module_cmds], [2],
+ [Commands used to build a loadable module if different from building
+ a shared archive.])
+_LT_TAGDECL([], [module_expsym_cmds], [2])
+_LT_TAGDECL([], [with_gnu_ld], [1],
+ [Whether we are building with GNU ld or not])
+_LT_TAGDECL([], [allow_undefined_flag], [1],
+ [Flag that allows shared libraries with undefined symbols to be built])
+_LT_TAGDECL([], [no_undefined_flag], [1],
+ [Flag that enforces no undefined symbols])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
+ [Flag to hardcode $libdir into a binary during linking.
+ This must work even if $libdir does not exist])
+_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
+ [[If ld is used when linking, flag to hardcode $libdir into a binary
+ during linking. This must work even if $libdir does not exist]])
+_LT_TAGDECL([], [hardcode_libdir_separator], [1],
+ [Whether we need a single "-rpath" flag with a separated argument])
+_LT_TAGDECL([], [hardcode_direct], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary])
+_LT_TAGDECL([], [hardcode_direct_absolute], [0],
+ [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
+ DIR into the resulting binary and the resulting library dependency is
+ "absolute", i.e impossible to change by setting ${shlibpath_var} if the
+ library is relocated])
+_LT_TAGDECL([], [hardcode_minus_L], [0],
+ [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
+ [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
+ into the resulting binary])
+_LT_TAGDECL([], [hardcode_automatic], [0],
+ [Set to "yes" if building a shared library automatically hardcodes DIR
+ into the library and all subsequent libraries and executables linked
+ against it])
+_LT_TAGDECL([], [inherit_rpath], [0],
+ [Set to yes if linker adds runtime paths of dependent libraries
+ to runtime path list])
+_LT_TAGDECL([], [link_all_deplibs], [0],
+ [Whether libtool must link a program against all its dependency libraries])
+_LT_TAGDECL([], [fix_srcfile_path], [1],
+ [Fix the shell variable $srcfile for the compiler])
+_LT_TAGDECL([], [always_export_symbols], [0],
+ [Set to "yes" if exported symbols are required])
+_LT_TAGDECL([], [export_symbols_cmds], [2],
+ [The commands to list exported symbols])
+_LT_TAGDECL([], [exclude_expsyms], [1],
+ [Symbols that should not be listed in the preloaded symbols])
+_LT_TAGDECL([], [include_expsyms], [1],
+ [Symbols that must always be exported])
+_LT_TAGDECL([], [prelink_cmds], [2],
+ [Commands necessary for linking programs (against libraries) with templates])
+_LT_TAGDECL([], [file_list_spec], [1],
+ [Specify filename containing input files])
+dnl FIXME: Not yet implemented
+dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
+dnl [Compiler flag to generate thread safe objects])
+])# _LT_LINKER_SHLIBS
+
+
+# _LT_LANG_C_CONFIG([TAG])
+# ------------------------
+# Ensure that the configuration variables for a C compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_C_CONFIG],
+[m4_require([_LT_DECL_EGREP])dnl
+lt_save_CC="$CC"
+AC_LANG_PUSH(C)
+
+# Source file extension for C test sources.
+ac_ext=c
+
+# Object file extension for compiled C test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="int some_variable = 0;"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='int main(){return(0);}'
+
+_LT_TAG_COMPILER
+# Save the default compiler, since it gets overwritten when the other
+# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
+compiler_DEFAULT=$CC
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+ LT_SYS_DLOPEN_SELF
+ _LT_CMD_STRIPLIB
+
+ # Report which library types will actually be built
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_CONFIG($1)
+fi
+AC_LANG_POP
+CC="$lt_save_CC"
+])# _LT_LANG_C_CONFIG
+
+
+# _LT_PROG_CXX
+# ------------
+# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
+# compiler, we have our own version here.
+m4_defun([_LT_PROG_CXX],
+[
+pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
+AC_PROG_CXX
+if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
+ ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
+ (test "X$CXX" != "Xg++"))) ; then
+ AC_PROG_CXXCPP
+else
+ _lt_caught_CXX_error=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_CXX
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_CXX], [])
+
+
+# _LT_LANG_CXX_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a C++ compiler are suitably
+# defined. These variables are subsequently used by _LT_CONFIG to write
+# the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_CXX_CONFIG],
+[AC_REQUIRE([_LT_PROG_CXX])dnl
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+m4_require([_LT_DECL_EGREP])dnl
+
+AC_LANG_PUSH(C++)
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(compiler_needs_object, $1)=no
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for C++ test sources.
+ac_ext=cpp
+
+# Object file extension for compiled C++ test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the CXX compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_caught_CXX_error" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="int some_variable = 0;"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC=$CC
+ lt_save_LD=$LD
+ lt_save_GCC=$GCC
+ GCC=$GXX
+ lt_save_with_gnu_ld=$with_gnu_ld
+ lt_save_path_LD=$lt_cv_path_LD
+ if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
+ lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
+ else
+ $as_unset lt_cv_prog_gnu_ld
+ fi
+ if test -n "${lt_cv_path_LDCXX+set}"; then
+ lt_cv_path_LD=$lt_cv_path_LDCXX
+ else
+ $as_unset lt_cv_path_LD
+ fi
+ test -z "${LDCXX+set}" || LD=$LDCXX
+ CC=${CXX-"c++"}
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ # We don't want -fno-exception when compiling C++ code, so set the
+ # no_builtin_flag separately
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
+ else
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
+ fi
+
+ if test "$GXX" = yes; then
+ # Set up default GNU C++ configuration
+
+ LT_PATH_LD
+
+ # Check if GNU C++ uses GNU ld as the underlying linker, since the
+ # archiving commands below assume that GNU ld is being used.
+ if test "$with_gnu_ld" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # If archive_cmds runs LD, not CC, wlarc should be empty
+ # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
+ # investigate it a little bit more. (MM)
+ wlarc='${wl}'
+
+ # ancient GNU ld didn't support --whole-archive et. al.
+ if eval "`$CC -print-prog-name=ld` --help 2>&1" |
+ $GREP 'no-whole-archive' > /dev/null; then
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ else
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=
+ fi
+ else
+ with_gnu_ld=no
+ wlarc=
+
+ # A generic and very simple default shared library creation
+ # command for GNU C++ for the case where it uses the native
+ # linker, instead of GNU ld. If possible, this setting should
+ # overridden to take advantage of the native linker features on
+ # the platform it is being used on.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ fi
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+
+ else
+ GXX=no
+ with_gnu_ld=no
+ wlarc=
+ fi
+
+ # PORTME: fill in a description of your system's C++ link characteristics
+ AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ case $host_os in
+ aix3*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" = ia64; then
+ # On IA64, the linker does run time linking by default, so we don't
+ # have to do anything special.
+ aix_use_runtimelinking=no
+ exp_sym_flag='-Bexport'
+ no_entry_flag=""
+ else
+ aix_use_runtimelinking=no
+
+ # Test if we are trying to use run time linking or normal
+ # AIX style linking. If -brtl is somewhere in LDFLAGS, we
+ # need to do runtime linking.
+ case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
+ for ld_flag in $LDFLAGS; do
+ case $ld_flag in
+ *-brtl*)
+ aix_use_runtimelinking=yes
+ break
+ ;;
+ esac
+ done
+ ;;
+ esac
+
+ exp_sym_flag='-bexport'
+ no_entry_flag='-bnoentry'
+ fi
+
+ # When large executables or shared objects are built, AIX ld can
+ # have problems creating the table of contents. If linking a library
+ # or program results in "error TOC overflow" add -mminimal-toc to
+ # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
+ # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
+
+ _LT_TAGVAR(archive_cmds, $1)=''
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
+
+ if test "$GXX" = yes; then
+ case $host_os in aix4.[[012]]|aix4.[[012]].*)
+ # We only want to do this on AIX 4.2 and lower, the check
+ # below for broken collect2 doesn't work under 4.3+
+ collect2name=`${CC} -print-prog-name=collect2`
+ if test -f "$collect2name" &&
+ strings "$collect2name" | $GREP resolve_lib_name >/dev/null
+ then
+ # We have reworked collect2
+ :
+ else
+ # We have old collect2
+ _LT_TAGVAR(hardcode_direct, $1)=unsupported
+ # It fails to find uninstalled libraries when the uninstalled
+ # path is not listed in the libpath. Setting hardcode_minus_L
+ # to unsupported forces relinking
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ fi
+ esac
+ shared_flag='-shared'
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag="$shared_flag "'${wl}-G'
+ fi
+ else
+ # not using gcc
+ if test "$host_cpu" = ia64; then
+ # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
+ # chokes on -Wl,-G. The following line is correct:
+ shared_flag='-G'
+ else
+ if test "$aix_use_runtimelinking" = yes; then
+ shared_flag='${wl}-G'
+ else
+ shared_flag='${wl}-bM:SRE'
+ fi
+ fi
+ fi
+
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
+ # It seems that -bexpall does not export symbols beginning with
+ # underscore (_), so it is better to generate a list of symbols to
+ # export.
+ _LT_TAGVAR(always_export_symbols, $1)=yes
+ if test "$aix_use_runtimelinking" = yes; then
+ # Warning - without using the other runtime loading flags (-brtl),
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
+ # Determine the default libpath from the value encoded in an empty
+ # executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
+ else
+ if test "$host_cpu" = ia64; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
+ _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
+ else
+ # Determine the default libpath from the value encoded in an
+ # empty executable.
+ _LT_SYS_MODULE_PATH_AIX
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
+ # Warning - without using the other run time loading flags,
+ # -berok will link without error, but may produce a broken library.
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
+ # Exported symbols can be pulled into shared objects from archives
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
+ # This is similar to how AIX traditionally builds its shared
+ # libraries.
+ _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
+ fi
+ fi
+ ;;
+
+ beos*)
+ if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
+ # support --undefined. This deserves some investigation. FIXME
+ _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ chorus*)
+ case $cc_basename in
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ cygwin* | mingw* | pw32* | cegcc*)
+ # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
+ # as there is no search path for DLLs.
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
+ _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
+
+ if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ # If the export-symbols file already is a .def file (1st line
+ # is EXPORTS), use it as is; otherwise, prepend...
+ _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
+ cp $export_symbols $output_objdir/$soname.def;
+ else
+ echo EXPORTS > $output_objdir/$soname.def;
+ cat $export_symbols >> $output_objdir/$soname.def;
+ fi~
+ $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ darwin* | rhapsody*)
+ _LT_DARWIN_LINKER_FEATURES($1)
+ ;;
+
+ dgux*)
+ case $cc_basename in
+ ec++*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ ghcx*)
+ # Green Hills C++ Compiler
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ freebsd[[12]]*)
+ # C++ shared libraries reported to be fairly broken before
+ # switch to ELF
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ freebsd-elf*)
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ ;;
+
+ freebsd* | dragonfly*)
+ # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
+ # conventions
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ gnu*)
+ ;;
+
+ hpux9*)
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ hpux10*|hpux11*)
+ if test $with_gnu_ld = no; then
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+ ;;
+ *)
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ ;;
+ esac
+ fi
+ case $host_cpu in
+ hppa*64*|ia64*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
+ # but as the default
+ # location of the library.
+ ;;
+ esac
+
+ case $cc_basename in
+ CC*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ aCC*)
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test $with_gnu_ld = no; then
+ case $host_cpu in
+ hppa*64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ ia64*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ ;;
+ esac
+ fi
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ interix[[3-9]]*)
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
+ # Instead, shared libraries are loaded at an image base (0x10000000 by
+ # default) and relocated if they conflict, which is a slow very memory
+ # consuming and fragmenting process. To avoid this, we pick a random,
+ # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
+ # time. Moving up from 0x10000000 also allows more sbrk(2) space.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
+ ;;
+ irix5* | irix6*)
+ case $cc_basename in
+ CC*)
+ # SGI C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+
+ # Archives containing C++ object files must be created using
+ # "CC -ar", where "CC" is the IRIX C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
+ ;;
+ *)
+ if test "$GXX" = yes; then
+ if test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ else
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
+ fi
+ fi
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ ;;
+ esac
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+ _LT_TAGVAR(inherit_rpath, $1)=yes
+ ;;
+
+ linux* | k*bsd*-gnu | kopensolaris*-gnu)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+
+ # Archives containing C++ object files must be created using
+ # "CC -Bstatic", where "CC" is the KAI C++ compiler.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
+ ;;
+ icpc* | ecpc* )
+ # Intel C++
+ with_gnu_ld=yes
+ # version 8.0 and above of icpc choke on multiply defined symbols
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
+ # earlier do not add the objects themselves.
+ case `$CC -V 2>&1` in
+ *"Version 7."*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # Version 8.0 or newer
+ tmp_idyn=
+ case $host_cpu in
+ ia64*) tmp_idyn=' -i_dynamic';;
+ esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+ ;;
+ pgCC* | pgcpp*)
+ # Portland Group C++ compiler
+ case `$CC -V` in
+ *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
+ _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
+ compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
+ _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
+ $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
+ $RANLIB $oldlib'
+ _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
+ rm -rf $tpldir~
+ $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
+ $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ *) # Version 6 will use weak symbols
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ ;;
+ cxx*)
+ # Compaq C++
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
+
+ runpath_var=LD_RUN_PATH
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ xl*)
+ # IBM XL 8.0 on PPC, with GNU ld
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ if test "x$supports_anon_versioning" = xyes; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
+ cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
+ echo "local: *; };" >> $output_objdir/$libname.ver~
+ $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
+ fi
+ ;;
+ *)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
+ _LT_TAGVAR(compiler_needs_object, $1)=yes
+
+ # Not sure whether something based on
+ # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
+ # would be better.
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
+ lynxos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ m88k*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ mvs*)
+ case $cc_basename in
+ cxx*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ netbsd*)
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
+ wlarc=
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ fi
+ # Workaround some broken pre-1.5 toolchains
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
+ ;;
+
+ *nto* | *qnx*)
+ _LT_TAGVAR(ld_shlibs, $1)=yes
+ ;;
+
+ openbsd2*)
+ # C++ shared libraries are fairly broken
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ openbsd*)
+ if test -f /usr/libexec/ld.so; then
+ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+ _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
+ fi
+ output_verbose_link_cmd=echo
+ else
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+
+ osf3* | osf4* | osf5*)
+ case $cc_basename in
+ KCC*)
+ # Kuck and Associates, Inc. (KAI) C++ Compiler
+
+ # KCC will only create a shared library if the output file
+ # ends with ".so" (or ".sl" for HP-UX), so rename the library
+ # to its proper name (with version) after linking.
+ _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Archives containing C++ object files must be created using
+ # the KAI C++ compiler.
+ case $host in
+ osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
+ *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
+ esac
+ ;;
+ RCC*)
+ # Rational C++ 2.4.1
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ cxx*)
+ case $host in
+ osf3*)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ ;;
+ *)
+ _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
+ echo "-hidden">> $lib.exp~
+ $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
+ $RM $lib.exp'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ #
+ # There doesn't appear to be a way to prevent this compiler from
+ # explicitly linking system object files so we need to strip them
+ # from the output so that they don't get included in the library
+ # dependencies.
+ output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
+ ;;
+ *)
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
+ case $host in
+ osf3*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
+ ;;
+ esac
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=:
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+
+ else
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ fi
+ ;;
+ esac
+ ;;
+
+ psos*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ sunos4*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.x
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ lcc*)
+ # Lucid
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ solaris*)
+ case $cc_basename in
+ CC*)
+ # Sun C++ 4.2, 5.x and Centerline C++
+ _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
+ _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ # The compiler driver will combine and reorder linker options,
+ # but understands `-z linker_flag'.
+ # Supported since Solaris 2.6 (maybe 2.5.1?)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
+ ;;
+ esac
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+
+ output_verbose_link_cmd='echo'
+
+ # Archives containing C++ object files must be created using
+ # "CC -xar", where "CC" is the Sun C++ compiler. This is
+ # necessary to make sure instantiated templates are included
+ # in the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
+ ;;
+ gcx*)
+ # Green Hills C++ Compiler
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+
+ # The C++ compiler must be used to create the archive.
+ _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
+ ;;
+ *)
+ # GNU C++ compiler with Solaris linker
+ if test "$GXX" = yes && test "$with_gnu_ld" = no; then
+ _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
+ if $CC --version | $GREP -v '^2\.7' > /dev/null; then
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+ else
+ # g++ 2.7 appears to require `-G' NOT `-shared' on this
+ # platform.
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
+ $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
+
+ # Commands to make compiler produce verbose output that lists
+ # what "hidden" libraries, object files and flags are used when
+ # linking a shared library.
+ output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
+ fi
+
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
+ case $host_os in
+ solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
+ *)
+ _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
+ ;;
+ esac
+ fi
+ ;;
+ esac
+ ;;
+
+ sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ sysv5* | sco3.2v5* | sco5v6*)
+ # Note: We can NOT use -z defs as we might desire, because we do not
+ # link with -lc, and that would cause any symbols used from libc to
+ # always be unresolved, which means just about no library would
+ # ever link correctly. If we're not using GNU ld we use -z text
+ # though, which does catch some bad symbols but isn't as heavy-handed
+ # as -z defs.
+ _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
+ _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
+ runpath_var='LD_RUN_PATH'
+
+ case $cc_basename in
+ CC*)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ *)
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
+ ;;
+ esac
+ ;;
+
+ tandem*)
+ case $cc_basename in
+ NCC*)
+ # NonStop-UX NCC 3.20
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+ ;;
+
+ vxworks*)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+
+ *)
+ # FIXME: insert proper C++ library support
+ _LT_TAGVAR(ld_shlibs, $1)=no
+ ;;
+ esac
+
+ AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
+ test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
+
+ _LT_TAGVAR(GCC, $1)="$GXX"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ CC=$lt_save_CC
+ LDCXX=$LD
+ LD=$lt_save_LD
+ GCC=$lt_save_GCC
+ with_gnu_ld=$lt_save_with_gnu_ld
+ lt_cv_path_LDCXX=$lt_cv_path_LD
+ lt_cv_path_LD=$lt_save_path_LD
+ lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
+ lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
+fi # test "$_lt_caught_CXX_error" != yes
+
+AC_LANG_POP
+])# _LT_LANG_CXX_CONFIG
+
+
+# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
+# ---------------------------------
+# Figure out "hidden" library dependencies from verbose
+# compiler output when linking a shared library.
+# Parse the compiler output and extract the necessary
+# objects, libraries and library flags.
+m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
+# Dependencies to place before and after the object being linked:
+_LT_TAGVAR(predep_objects, $1)=
+_LT_TAGVAR(postdep_objects, $1)=
+_LT_TAGVAR(predeps, $1)=
+_LT_TAGVAR(postdeps, $1)=
+_LT_TAGVAR(compiler_lib_search_path, $1)=
+
+dnl we can't use the lt_simple_compile_test_code here,
+dnl because it contains code intended for an executable,
+dnl not a library. It's possible we should let each
+dnl tag define a new lt_????_link_test_code variable,
+dnl but it's only used here...
+m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
+int a;
+void foo (void) { a = 0; }
+_LT_EOF
+], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
+class Foo
+{
+public:
+ Foo (void) { a = 0; }
+private:
+ int a;
+};
+_LT_EOF
+], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer*4 a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
+ subroutine foo
+ implicit none
+ integer a
+ a=0
+ return
+ end
+_LT_EOF
+], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
+public class foo {
+ private int a;
+ public void bar (void) {
+ a = 0;
+ }
+};
+_LT_EOF
+])
+dnl Parse the compiler output and extract the necessary
+dnl objects, libraries and library flags.
+if AC_TRY_EVAL(ac_compile); then
+ # Parse the compiler output and extract the necessary
+ # objects, libraries and library flags.
+
+ # Sentinel used to keep track of whether or not we are before
+ # the conftest object file.
+ pre_test_object_deps_done=no
+
+ for p in `eval "$output_verbose_link_cmd"`; do
+ case $p in
+
+ -L* | -R* | -l*)
+ # Some compilers place space between "-{L,R}" and the path.
+ # Remove the space.
+ if test $p = "-L" ||
+ test $p = "-R"; then
+ prev=$p
+ continue
+ else
+ prev=
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ case $p in
+ -L* | -R*)
+ # Internal compiler library paths should come after those
+ # provided the user. The postdeps already come after the
+ # user supplied libs so there is no need to process them.
+ if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
+ fi
+ ;;
+ # The "-l" case would never come before the object being
+ # linked, so don't bother handling this case.
+ esac
+ else
+ if test -z "$_LT_TAGVAR(postdeps, $1)"; then
+ _LT_TAGVAR(postdeps, $1)="${prev}${p}"
+ else
+ _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
+ fi
+ fi
+ ;;
+
+ *.$objext)
+ # This assumes that the test object file only shows up
+ # once in the compiler output.
+ if test "$p" = "conftest.$objext"; then
+ pre_test_object_deps_done=yes
+ continue
+ fi
+
+ if test "$pre_test_object_deps_done" = no; then
+ if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
+ _LT_TAGVAR(predep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
+ fi
+ else
+ if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
+ _LT_TAGVAR(postdep_objects, $1)="$p"
+ else
+ _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
+ fi
+ fi
+ ;;
+
+ *) ;; # Ignore the rest.
+
+ esac
+ done
+
+ # Clean up.
+ rm -f a.out a.exe
+else
+ echo "libtool.m4: error: problem compiling $1 test program"
+fi
+
+$RM -f confest.$objext
+
+# PORTME: override above test on systems where it is broken
+m4_if([$1], [CXX],
+[case $host_os in
+interix[[3-9]]*)
+ # Interix 3.5 installs completely hosed .la files for C++, so rather than
+ # hack all around it, let's just trust "g++" to DTRT.
+ _LT_TAGVAR(predep_objects,$1)=
+ _LT_TAGVAR(postdep_objects,$1)=
+ _LT_TAGVAR(postdeps,$1)=
+ ;;
+
+linux*)
+ case `$CC -V 2>&1 | sed 5q` in
+ *Sun\ C*)
+ # Sun C++ 5.9
+
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+
+solaris*)
+ case $cc_basename in
+ CC*)
+ # The more standards-conforming stlport4 library is
+ # incompatible with the Cstd library. Avoid specifying
+ # it if it's in CXXFLAGS. Ignore libCrun as
+ # -library=stlport4 depends on it.
+ case " $CXX $CXXFLAGS " in
+ *" -library=stlport4 "*)
+ solaris_use_stlport4=yes
+ ;;
+ esac
+
+ # Adding this requires a known-good setup of shared libraries for
+ # Sun compiler versions before 5.6, else PIC objects from an old
+ # archive will be linked into the output, leading to subtle bugs.
+ if test "$solaris_use_stlport4" != yes; then
+ _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
+ fi
+ ;;
+ esac
+ ;;
+esac
+])
+
+case " $_LT_TAGVAR(postdeps, $1) " in
+*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
+esac
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=
+if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
+ _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
+fi
+_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
+ [The directories searched by this compiler when creating a shared library])
+_LT_TAGDECL([], [predep_objects], [1],
+ [Dependencies to place before and after the objects being linked to
+ create a shared library])
+_LT_TAGDECL([], [postdep_objects], [1])
+_LT_TAGDECL([], [predeps], [1])
+_LT_TAGDECL([], [postdeps], [1])
+_LT_TAGDECL([], [compiler_lib_search_path], [1],
+ [The library search path used internally by the compiler when linking
+ a shared library])
+])# _LT_SYS_HIDDEN_LIBDEPS
+
+
+# _LT_PROG_F77
+# ------------
+# Since AC_PROG_F77 is broken, in that it returns the empty string
+# if there is no fortran compiler, we have our own version here.
+m4_defun([_LT_PROG_F77],
+[
+pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
+AC_PROG_F77
+if test -z "$F77" || test "X$F77" = "Xno"; then
+ _lt_disable_F77=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_F77
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_F77], [])
+
+
+# _LT_LANG_F77_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for a Fortran 77 compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_F77_CONFIG],
+[AC_REQUIRE([_LT_PROG_F77])dnl
+AC_LANG_PUSH(Fortran 77)
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for f77 test sources.
+ac_ext=f
+
+# Object file extension for compiled f77 test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the F77 compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_F77" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ CC=${F77-"f77"}
+ compiler=$CC
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+ GCC=$G77
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$G77"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC="$lt_save_CC"
+fi # test "$_lt_disable_F77" != yes
+
+AC_LANG_POP
+])# _LT_LANG_F77_CONFIG
+
+
+# _LT_PROG_FC
+# -----------
+# Since AC_PROG_FC is broken, in that it returns the empty string
+# if there is no fortran compiler, we have our own version here.
+m4_defun([_LT_PROG_FC],
+[
+pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
+AC_PROG_FC
+if test -z "$FC" || test "X$FC" = "Xno"; then
+ _lt_disable_FC=yes
+fi
+popdef([AC_MSG_ERROR])
+])# _LT_PROG_FC
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([_LT_PROG_FC], [])
+
+
+# _LT_LANG_FC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for a Fortran compiler are
+# suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_FC_CONFIG],
+[AC_REQUIRE([_LT_PROG_FC])dnl
+AC_LANG_PUSH(Fortran)
+
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+_LT_TAGVAR(allow_undefined_flag, $1)=
+_LT_TAGVAR(always_export_symbols, $1)=no
+_LT_TAGVAR(archive_expsym_cmds, $1)=
+_LT_TAGVAR(export_dynamic_flag_spec, $1)=
+_LT_TAGVAR(hardcode_direct, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=no
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+_LT_TAGVAR(hardcode_libdir_separator, $1)=
+_LT_TAGVAR(hardcode_minus_L, $1)=no
+_LT_TAGVAR(hardcode_automatic, $1)=no
+_LT_TAGVAR(inherit_rpath, $1)=no
+_LT_TAGVAR(module_cmds, $1)=
+_LT_TAGVAR(module_expsym_cmds, $1)=
+_LT_TAGVAR(link_all_deplibs, $1)=unknown
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(no_undefined_flag, $1)=
+_LT_TAGVAR(whole_archive_flag_spec, $1)=
+_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
+
+# Source file extension for fc test sources.
+ac_ext=${ac_fc_srcext-f}
+
+# Object file extension for compiled fc test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# No sense in running all these tests if we already determined that
+# the FC compiler isn't working. Some variables (like enable_shared)
+# are currently assumed to apply to all compilers on this platform,
+# and will be corrupted by setting them based on a non-working compiler.
+if test "$_lt_disable_FC" != yes; then
+ # Code to be used in simple compile tests
+ lt_simple_compile_test_code="\
+ subroutine t
+ return
+ end
+"
+
+ # Code to be used in simple link tests
+ lt_simple_link_test_code="\
+ program t
+ end
+"
+
+ # ltmain only uses $CC for tagged configurations so make sure $CC is set.
+ _LT_TAG_COMPILER
+
+ # save warnings/boilerplate of simple test code
+ _LT_COMPILER_BOILERPLATE
+ _LT_LINKER_BOILERPLATE
+
+ # Allow CC to be a program name with arguments.
+ lt_save_CC="$CC"
+ lt_save_GCC=$GCC
+ CC=${FC-"f95"}
+ compiler=$CC
+ GCC=$ac_cv_fc_compiler_gnu
+
+ _LT_TAGVAR(compiler, $1)=$CC
+ _LT_CC_BASENAME([$compiler])
+
+ if test -n "$compiler"; then
+ AC_MSG_CHECKING([if libtool supports shared libraries])
+ AC_MSG_RESULT([$can_build_shared])
+
+ AC_MSG_CHECKING([whether to build shared libraries])
+ test "$can_build_shared" = "no" && enable_shared=no
+
+ # On AIX, shared libraries and static libraries use the same namespace, and
+ # are all built from PIC.
+ case $host_os in
+ aix3*)
+ test "$enable_shared" = yes && enable_static=no
+ if test -n "$RANLIB"; then
+ archive_cmds="$archive_cmds~\$RANLIB \$lib"
+ postinstall_cmds='$RANLIB $lib'
+ fi
+ ;;
+ aix[[4-9]]*)
+ if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
+ test "$enable_shared" = yes && enable_static=no
+ fi
+ ;;
+ esac
+ AC_MSG_RESULT([$enable_shared])
+
+ AC_MSG_CHECKING([whether to build static libraries])
+ # Make sure either enable_shared or enable_static is yes.
+ test "$enable_shared" = yes || enable_static=yes
+ AC_MSG_RESULT([$enable_static])
+
+ _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
+ _LT_TAGVAR(LD, $1)="$LD"
+
+ ## CAVEAT EMPTOR:
+ ## There is no encapsulation within the following macros, do not change
+ ## the running order or otherwise move them around unless you know exactly
+ ## what you are doing...
+ _LT_SYS_HIDDEN_LIBDEPS($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_SYS_DYNAMIC_LINKER($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+ fi # test -n "$compiler"
+
+ GCC=$lt_save_GCC
+ CC="$lt_save_CC"
+fi # test "$_lt_disable_FC" != yes
+
+AC_LANG_POP
+])# _LT_LANG_FC_CONFIG
+
+
+# _LT_LANG_GCJ_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Java Compiler compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_GCJ_CONFIG],
+[AC_REQUIRE([LT_PROG_GCJ])dnl
+AC_LANG_SAVE
+
+# Source file extension for Java test sources.
+ac_ext=java
+
+# Object file extension for compiled Java test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="class foo {}"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GCJ-"gcj"}
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)="$LD"
+_LT_CC_BASENAME([$compiler])
+
+# GCJ did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+ _LT_COMPILER_NO_RTTI($1)
+ _LT_COMPILER_PIC($1)
+ _LT_COMPILER_C_O($1)
+ _LT_COMPILER_FILE_LOCKS($1)
+ _LT_LINKER_SHLIBS($1)
+ _LT_LINKER_HARDCODE_LIBPATH($1)
+
+ _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC="$lt_save_CC"
+])# _LT_LANG_GCJ_CONFIG
+
+
+# _LT_LANG_RC_CONFIG([TAG])
+# -------------------------
+# Ensure that the configuration variables for the Windows resource compiler
+# are suitably defined. These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_RC_CONFIG],
+[AC_REQUIRE([LT_PROG_RC])dnl
+AC_LANG_SAVE
+
+# Source file extension for RC test sources.
+ac_ext=rc
+
+# Object file extension for compiled RC test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
+
+# Code to be used in simple link tests
+lt_simple_link_test_code="$lt_simple_compile_test_code"
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC="$CC"
+lt_save_GCC=$GCC
+GCC=
+CC=${RC-"windres"}
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_CC_BASENAME([$compiler])
+_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
+
+if test -n "$compiler"; then
+ :
+ _LT_CONFIG($1)
+fi
+
+GCC=$lt_save_GCC
+AC_LANG_RESTORE
+CC="$lt_save_CC"
+])# _LT_LANG_RC_CONFIG
+
+
+# LT_PROG_GCJ
+# -----------
+AC_DEFUN([LT_PROG_GCJ],
+[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
+ [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
+ [AC_CHECK_TOOL(GCJ, gcj,)
+ test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
+ AC_SUBST(GCJFLAGS)])])[]dnl
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
+
+
+# LT_PROG_RC
+# ----------
+AC_DEFUN([LT_PROG_RC],
+[AC_CHECK_TOOL(RC, windres,)
+])
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_RC], [])
+
+
+# _LT_DECL_EGREP
+# --------------
+# If we don't have a new enough Autoconf to choose the best grep
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_EGREP],
+[AC_REQUIRE([AC_PROG_EGREP])dnl
+AC_REQUIRE([AC_PROG_FGREP])dnl
+test -z "$GREP" && GREP=grep
+_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
+_LT_DECL([], [EGREP], [1], [An ERE matcher])
+_LT_DECL([], [FGREP], [1], [A literal string matcher])
+dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
+AC_SUBST([GREP])
+])
+
+
+# _LT_DECL_OBJDUMP
+# --------------
+# If we don't have a new enough Autoconf to choose the best objdump
+# available, choose the one first in the user's PATH.
+m4_defun([_LT_DECL_OBJDUMP],
+[AC_CHECK_TOOL(OBJDUMP, objdump, false)
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
+AC_SUBST([OBJDUMP])
+])
+
+
+# _LT_DECL_SED
+# ------------
+# Check for a fully-functional sed program, that truncates
+# as few characters as possible. Prefer GNU sed if found.
+m4_defun([_LT_DECL_SED],
+[AC_PROG_SED
+test -z "$SED" && SED=sed
+Xsed="$SED -e 1s/^X//"
+_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
+_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
+ [Sed that helps us avoid accidentally triggering echo(1) options like -n])
+])# _LT_DECL_SED
+
+m4_ifndef([AC_PROG_SED], [
+############################################################
+# NOTE: This macro has been submitted for inclusion into #
+# GNU Autoconf as AC_PROG_SED. When it is available in #
+# a released version of Autoconf we should remove this #
+# macro and use it instead. #
+############################################################
+
+m4_defun([AC_PROG_SED],
+[AC_MSG_CHECKING([for a sed that does not truncate output])
+AC_CACHE_VAL(lt_cv_path_SED,
+[# Loop through the user's path and test for sed and gsed.
+# Then use that list of sed's as ones to test for truncation.
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for lt_ac_prog in sed gsed; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
+ lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
+ fi
+ done
+ done
+done
+IFS=$as_save_IFS
+lt_ac_max=0
+lt_ac_count=0
+# Add /usr/xpg4/bin/sed as it is typically found on Solaris
+# along with /bin/sed that truncates output.
+for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
+ test ! -f $lt_ac_sed && continue
+ cat /dev/null > conftest.in
+ lt_ac_count=0
+ echo $ECHO_N "0123456789$ECHO_C" >conftest.in
+ # Check for GNU sed and select it if it is found.
+ if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
+ lt_cv_path_SED=$lt_ac_sed
+ break
+ fi
+ while true; do
+ cat conftest.in conftest.in >conftest.tmp
+ mv conftest.tmp conftest.in
+ cp conftest.in conftest.nl
+ echo >>conftest.nl
+ $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
+ cmp -s conftest.out conftest.nl || break
+ # 10000 chars as input seems more than enough
+ test $lt_ac_count -gt 10 && break
+ lt_ac_count=`expr $lt_ac_count + 1`
+ if test $lt_ac_count -gt $lt_ac_max; then
+ lt_ac_max=$lt_ac_count
+ lt_cv_path_SED=$lt_ac_sed
+ fi
+ done
+done
+])
+SED=$lt_cv_path_SED
+AC_SUBST([SED])
+AC_MSG_RESULT([$SED])
+])#AC_PROG_SED
+])#m4_ifndef
+
+# Old name:
+AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([LT_AC_PROG_SED], [])
+
+
+# _LT_CHECK_SHELL_FEATURES
+# ------------------------
+# Find out whether the shell is Bourne or XSI compatible,
+# or has some other useful features.
+m4_defun([_LT_CHECK_SHELL_FEATURES],
+[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
+# Try some XSI features
+xsi_shell=no
+( _lt_dummy="a/b/c"
+ test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
+ = c,a/b,, \
+ && eval 'test $(( 1 + 1 )) -eq 2 \
+ && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
+ && xsi_shell=yes
+AC_MSG_RESULT([$xsi_shell])
+_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
+
+AC_MSG_CHECKING([whether the shell understands "+="])
+lt_shell_append=no
+( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
+ >/dev/null 2>&1 \
+ && lt_shell_append=yes
+AC_MSG_RESULT([$lt_shell_append])
+_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
+
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+ lt_unset=unset
+else
+ lt_unset=false
+fi
+_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
+
+# test EBCDIC or ASCII
+case `echo X|tr X '\101'` in
+ A) # ASCII based system
+ # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
+ lt_SP2NL='tr \040 \012'
+ lt_NL2SP='tr \015\012 \040\040'
+ ;;
+ *) # EBCDIC based system
+ lt_SP2NL='tr \100 \n'
+ lt_NL2SP='tr \r\n \100\100'
+ ;;
+esac
+_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
+_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
+])# _LT_CHECK_SHELL_FEATURES
+
+
+# _LT_PROG_XSI_SHELLFNS
+# ---------------------
+# Bourne and XSI compatible variants of some useful shell functions.
+m4_defun([_LT_PROG_XSI_SHELLFNS],
+[case $xsi_shell in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result="${1##*/}"
+}
+
+# func_dirname_and_basename file append nondir_replacement
+# perform func_basename and func_dirname in a single function
+# call:
+# dirname: Compute the dirname of FILE. If nonempty,
+# add APPEND to the result, otherwise set result
+# to NONDIR_REPLACEMENT.
+# value returned in "$func_dirname_result"
+# basename: Compute filename of FILE.
+# value retuned in "$func_basename_result"
+# Implementation must be kept synchronized with func_dirname
+# and func_basename. For efficiency, we do not delegate to
+# those functions but instead duplicate the functionality here.
+func_dirname_and_basename ()
+{
+ case ${1} in
+ */*) func_dirname_result="${1%/*}${2}" ;;
+ * ) func_dirname_result="${3}" ;;
+ esac
+ func_basename_result="${1##*/}"
+}
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+func_stripname ()
+{
+ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
+ # positional parameters, so assign one to ordinary parameter first.
+ func_stripname_result=${3}
+ func_stripname_result=${func_stripname_result#"${1}"}
+ func_stripname_result=${func_stripname_result%"${2}"}
+}
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=${1%%=*}
+ func_opt_split_arg=${1#*=}
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ case ${1} in
+ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
+ *) func_lo2o_result=${1} ;;
+ esac
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=${1%.*}.lo
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=$(( $[*] ))
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=${#1}
+}
+
+_LT_EOF
+ ;;
+ *) # Bourne compatible functions.
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_dirname file append nondir_replacement
+# Compute the dirname of FILE. If nonempty, add APPEND to the result,
+# otherwise set result to NONDIR_REPLACEMENT.
+func_dirname ()
+{
+ # Extract subdirectory from the argument.
+ func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
+ if test "X$func_dirname_result" = "X${1}"; then
+ func_dirname_result="${3}"
+ else
+ func_dirname_result="$func_dirname_result${2}"
+ fi
+}
+
+# func_basename file
+func_basename ()
+{
+ func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
+}
+
+dnl func_dirname_and_basename
+dnl A portable version of this function is already defined in general.m4sh
+dnl so there is no need for it here.
+
+# func_stripname prefix suffix name
+# strip PREFIX and SUFFIX off of NAME.
+# PREFIX and SUFFIX must not contain globbing or regex special
+# characters, hashes, percent signs, but SUFFIX may contain a leading
+# dot (in which case that matches only a dot).
+# func_strip_suffix prefix name
+func_stripname ()
+{
+ case ${2} in
+ .*) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
+ *) func_stripname_result=`$ECHO "X${3}" \
+ | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
+ esac
+}
+
+# sed scripts:
+my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
+my_sed_long_arg='1s/^-[[^=]]*=//'
+
+# func_opt_split
+func_opt_split ()
+{
+ func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
+ func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
+}
+
+# func_lo2o object
+func_lo2o ()
+{
+ func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
+}
+
+# func_xform libobj-or-source
+func_xform ()
+{
+ func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
+}
+
+# func_arith arithmetic-term...
+func_arith ()
+{
+ func_arith_result=`expr "$[@]"`
+}
+
+# func_len string
+# STRING may not start with a hyphen.
+func_len ()
+{
+ func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
+}
+
+_LT_EOF
+esac
+
+case $lt_shell_append in
+ yes)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$[1]+=\$[2]"
+}
+_LT_EOF
+ ;;
+ *)
+ cat << \_LT_EOF >> "$cfgfile"
+
+# func_append var value
+# Append VALUE to the end of shell variable VAR.
+func_append ()
+{
+ eval "$[1]=\$$[1]\$[2]"
+}
+
+_LT_EOF
+ ;;
+ esac
+])
diff --git a/m4/ltoptions.m4 b/m4/ltoptions.m4
new file mode 100644
index 0000000..34151a3
--- /dev/null
+++ b/m4/ltoptions.m4
@@ -0,0 +1,368 @@
+# Helper functions for option handling. -*- Autoconf -*-
+#
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 6 ltoptions.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
+
+
+# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
+# ------------------------------------------
+m4_define([_LT_MANGLE_OPTION],
+[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
+
+
+# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
+# ---------------------------------------
+# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
+# matching handler defined, dispatch to it. Other OPTION-NAMEs are
+# saved as a flag.
+m4_define([_LT_SET_OPTION],
+[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
+m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
+ _LT_MANGLE_DEFUN([$1], [$2]),
+ [m4_warning([Unknown $1 option `$2'])])[]dnl
+])
+
+
+# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
+# ------------------------------------------------------------
+# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
+m4_define([_LT_IF_OPTION],
+[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
+
+
+# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
+# -------------------------------------------------------
+# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
+# are set.
+m4_define([_LT_UNLESS_OPTIONS],
+[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+ [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
+ [m4_define([$0_found])])])[]dnl
+m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
+])[]dnl
+])
+
+
+# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
+# ----------------------------------------
+# OPTION-LIST is a space-separated list of Libtool options associated
+# with MACRO-NAME. If any OPTION has a matching handler declared with
+# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
+# the unknown option and exit.
+m4_defun([_LT_SET_OPTIONS],
+[# Set options
+m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
+ [_LT_SET_OPTION([$1], _LT_Option)])
+
+m4_if([$1],[LT_INIT],[
+ dnl
+ dnl Simply set some default values (i.e off) if boolean options were not
+ dnl specified:
+ _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
+ ])
+ _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
+ ])
+ dnl
+ dnl If no reference was made to various pairs of opposing options, then
+ dnl we run the default mode handler for the pair. For example, if neither
+ dnl `shared' nor `disable-shared' was passed, we enable building of shared
+ dnl archives by default:
+ _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
+ _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
+ _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
+ _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
+ [_LT_ENABLE_FAST_INSTALL])
+ ])
+])# _LT_SET_OPTIONS
+
+
+## --------------------------------- ##
+## Macros to handle LT_INIT options. ##
+## --------------------------------- ##
+
+# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
+# -----------------------------------------
+m4_define([_LT_MANGLE_DEFUN],
+[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
+
+
+# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
+# -----------------------------------------------
+m4_define([LT_OPTION_DEFINE],
+[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
+])# LT_OPTION_DEFINE
+
+
+# dlopen
+# ------
+LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
+])
+
+AU_DEFUN([AC_LIBTOOL_DLOPEN],
+[_LT_SET_OPTION([LT_INIT], [dlopen])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `dlopen' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
+
+
+# win32-dll
+# ---------
+# Declare package support for building win32 dll's.
+LT_OPTION_DEFINE([LT_INIT], [win32-dll],
+[enable_win32_dll=yes
+
+case $host in
+*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
+ AC_CHECK_TOOL(AS, as, false)
+ AC_CHECK_TOOL(DLLTOOL, dlltool, false)
+ AC_CHECK_TOOL(OBJDUMP, objdump, false)
+ ;;
+esac
+
+test -z "$AS" && AS=as
+_LT_DECL([], [AS], [0], [Assembler program])dnl
+
+test -z "$DLLTOOL" && DLLTOOL=dlltool
+_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
+
+test -z "$OBJDUMP" && OBJDUMP=objdump
+_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
+])# win32-dll
+
+AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
+_LT_SET_OPTION([LT_INIT], [win32-dll])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `win32-dll' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
+
+
+# _LT_ENABLE_SHARED([DEFAULT])
+# ----------------------------
+# implement the --enable-shared flag, and supports the `shared' and
+# `disable-shared' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_SHARED],
+[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([shared],
+ [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
+ [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_shared=yes ;;
+ no) enable_shared=no ;;
+ *)
+ enable_shared=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_shared=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
+
+ _LT_DECL([build_libtool_libs], [enable_shared], [0],
+ [Whether or not to build shared libraries])
+])# _LT_ENABLE_SHARED
+
+LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
+])
+
+AC_DEFUN([AC_DISABLE_SHARED],
+[_LT_SET_OPTION([LT_INIT], [disable-shared])
+])
+
+AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
+AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_SHARED], [])
+dnl AC_DEFUN([AM_DISABLE_SHARED], [])
+
+
+
+# _LT_ENABLE_STATIC([DEFAULT])
+# ----------------------------
+# implement the --enable-static flag, and support the `static' and
+# `disable-static' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_STATIC],
+[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([static],
+ [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
+ [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_static=yes ;;
+ no) enable_static=no ;;
+ *)
+ enable_static=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_static=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
+
+ _LT_DECL([build_old_libs], [enable_static], [0],
+ [Whether or not to build static libraries])
+])# _LT_ENABLE_STATIC
+
+LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
+
+# Old names:
+AC_DEFUN([AC_ENABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
+])
+
+AC_DEFUN([AC_DISABLE_STATIC],
+[_LT_SET_OPTION([LT_INIT], [disable-static])
+])
+
+AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
+AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AM_ENABLE_STATIC], [])
+dnl AC_DEFUN([AM_DISABLE_STATIC], [])
+
+
+
+# _LT_ENABLE_FAST_INSTALL([DEFAULT])
+# ----------------------------------
+# implement the --enable-fast-install flag, and support the `fast-install'
+# and `disable-fast-install' LT_INIT options.
+# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
+m4_define([_LT_ENABLE_FAST_INSTALL],
+[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
+AC_ARG_ENABLE([fast-install],
+ [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
+ [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
+ [p=${PACKAGE-default}
+ case $enableval in
+ yes) enable_fast_install=yes ;;
+ no) enable_fast_install=no ;;
+ *)
+ enable_fast_install=no
+ # Look at the argument we got. We use all the common list separators.
+ lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
+ for pkg in $enableval; do
+ IFS="$lt_save_ifs"
+ if test "X$pkg" = "X$p"; then
+ enable_fast_install=yes
+ fi
+ done
+ IFS="$lt_save_ifs"
+ ;;
+ esac],
+ [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
+
+_LT_DECL([fast_install], [enable_fast_install], [0],
+ [Whether or not to optimize for fast installation])dnl
+])# _LT_ENABLE_FAST_INSTALL
+
+LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
+LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
+
+# Old names:
+AU_DEFUN([AC_ENABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the `fast-install' option into LT_INIT's first parameter.])
+])
+
+AU_DEFUN([AC_DISABLE_FAST_INSTALL],
+[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you put
+the `disable-fast-install' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
+dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
+
+
+# _LT_WITH_PIC([MODE])
+# --------------------
+# implement the --with-pic flag, and support the `pic-only' and `no-pic'
+# LT_INIT options.
+# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
+m4_define([_LT_WITH_PIC],
+[AC_ARG_WITH([pic],
+ [AS_HELP_STRING([--with-pic],
+ [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
+ [pic_mode="$withval"],
+ [pic_mode=default])
+
+test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
+
+_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
+])# _LT_WITH_PIC
+
+LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
+LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
+
+# Old name:
+AU_DEFUN([AC_LIBTOOL_PICMODE],
+[_LT_SET_OPTION([LT_INIT], [pic-only])
+AC_DIAGNOSE([obsolete],
+[$0: Remove this warning and the call to _LT_SET_OPTION when you
+put the `pic-only' option into LT_INIT's first parameter.])
+])
+
+dnl aclocal-1.4 backwards compatibility:
+dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
+
+## ----------------- ##
+## LTDL_INIT Options ##
+## ----------------- ##
+
+m4_define([_LTDL_MODE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
+ [m4_define([_LTDL_MODE], [nonrecursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [recursive],
+ [m4_define([_LTDL_MODE], [recursive])])
+LT_OPTION_DEFINE([LTDL_INIT], [subproject],
+ [m4_define([_LTDL_MODE], [subproject])])
+
+m4_define([_LTDL_TYPE], [])
+LT_OPTION_DEFINE([LTDL_INIT], [installable],
+ [m4_define([_LTDL_TYPE], [installable])])
+LT_OPTION_DEFINE([LTDL_INIT], [convenience],
+ [m4_define([_LTDL_TYPE], [convenience])])
diff --git a/m4/ltsugar.m4 b/m4/ltsugar.m4
new file mode 100644
index 0000000..9000a05
--- /dev/null
+++ b/m4/ltsugar.m4
@@ -0,0 +1,123 @@
+# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
+#
+# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+# Written by Gary V. Vaughan, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 6 ltsugar.m4
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
+
+
+# lt_join(SEP, ARG1, [ARG2...])
+# -----------------------------
+# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
+# associated separator.
+# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
+# versions in m4sugar had bugs.
+m4_define([lt_join],
+[m4_if([$#], [1], [],
+ [$#], [2], [[$2]],
+ [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
+m4_define([_lt_join],
+[m4_if([$#$2], [2], [],
+ [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
+
+
+# lt_car(LIST)
+# lt_cdr(LIST)
+# ------------
+# Manipulate m4 lists.
+# These macros are necessary as long as will still need to support
+# Autoconf-2.59 which quotes differently.
+m4_define([lt_car], [[$1]])
+m4_define([lt_cdr],
+[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
+ [$#], 1, [],
+ [m4_dquote(m4_shift($@))])])
+m4_define([lt_unquote], $1)
+
+
+# lt_append(MACRO-NAME, STRING, [SEPARATOR])
+# ------------------------------------------
+# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
+# Note that neither SEPARATOR nor STRING are expanded; they are appended
+# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
+# No SEPARATOR is output if MACRO-NAME was previously undefined (different
+# than defined and empty).
+#
+# This macro is needed until we can rely on Autoconf 2.62, since earlier
+# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
+m4_define([lt_append],
+[m4_define([$1],
+ m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
+
+
+
+# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
+# ----------------------------------------------------------
+# Produce a SEP delimited list of all paired combinations of elements of
+# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
+# has the form PREFIXmINFIXSUFFIXn.
+# Needed until we can rely on m4_combine added in Autoconf 2.62.
+m4_define([lt_combine],
+[m4_if(m4_eval([$# > 3]), [1],
+ [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
+[[m4_foreach([_Lt_prefix], [$2],
+ [m4_foreach([_Lt_suffix],
+ ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
+ [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
+
+
+# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
+# -----------------------------------------------------------------------
+# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
+# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
+m4_define([lt_if_append_uniq],
+[m4_ifdef([$1],
+ [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
+ [lt_append([$1], [$2], [$3])$4],
+ [$5])],
+ [lt_append([$1], [$2], [$3])$4])])
+
+
+# lt_dict_add(DICT, KEY, VALUE)
+# -----------------------------
+m4_define([lt_dict_add],
+[m4_define([$1($2)], [$3])])
+
+
+# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
+# --------------------------------------------
+m4_define([lt_dict_add_subkey],
+[m4_define([$1($2:$3)], [$4])])
+
+
+# lt_dict_fetch(DICT, KEY, [SUBKEY])
+# ----------------------------------
+m4_define([lt_dict_fetch],
+[m4_ifval([$3],
+ m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
+ m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
+
+
+# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
+# -----------------------------------------------------------------
+m4_define([lt_if_dict_fetch],
+[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
+ [$5],
+ [$6])])
+
+
+# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
+# --------------------------------------------------------------
+m4_define([lt_dict_filter],
+[m4_if([$5], [], [],
+ [lt_join(m4_quote(m4_default([$4], [[, ]])),
+ lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
+ [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
+])
diff --git a/m4/ltversion.m4 b/m4/ltversion.m4
new file mode 100644
index 0000000..f3c5309
--- /dev/null
+++ b/m4/ltversion.m4
@@ -0,0 +1,23 @@
+# ltversion.m4 -- version numbers -*- Autoconf -*-
+#
+# Copyright (C) 2004 Free Software Foundation, Inc.
+# Written by Scott James Remnant, 2004
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# Generated from ltversion.in.
+
+# serial 3017 ltversion.m4
+# This file is part of GNU Libtool
+
+m4_define([LT_PACKAGE_VERSION], [2.2.6b])
+m4_define([LT_PACKAGE_REVISION], [1.3017])
+
+AC_DEFUN([LTVERSION_VERSION],
+[macro_version='2.2.6b'
+macro_revision='1.3017'
+_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
+_LT_DECL(, macro_revision, 0)
+])
diff --git a/m4/lt~obsolete.m4 b/m4/lt~obsolete.m4
new file mode 100644
index 0000000..637bb20
--- /dev/null
+++ b/m4/lt~obsolete.m4
@@ -0,0 +1,92 @@
+# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
+#
+# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
+# Written by Scott James Remnant, 2004.
+#
+# This file is free software; the Free Software Foundation gives
+# unlimited permission to copy and/or distribute it, with or without
+# modifications, as long as this notice is preserved.
+
+# serial 4 lt~obsolete.m4
+
+# These exist entirely to fool aclocal when bootstrapping libtool.
+#
+# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
+# which have later been changed to m4_define as they aren't part of the
+# exported API, or moved to Autoconf or Automake where they belong.
+#
+# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
+# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
+# using a macro with the same name in our local m4/libtool.m4 it'll
+# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
+# and doesn't know about Autoconf macros at all.)
+#
+# So we provide this file, which has a silly filename so it's always
+# included after everything else. This provides aclocal with the
+# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
+# because those macros already exist, or will be overwritten later.
+# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
+#
+# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
+# Yes, that means every name once taken will need to remain here until
+# we give up compatibility with versions before 1.7, at which point
+# we need to keep only those names which we still refer to.
+
+# This is to help aclocal find these macros, as it can't see m4_define.
+AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
+
+m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
+m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
+m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
+m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
+m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
+m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
+m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
+m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
+m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
+m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
+m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
+m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
+m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
+m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
+m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
+m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
+m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
+m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
+m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
+m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
+m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
+m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
+m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
+m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
+m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
+m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
+m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
+m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
+m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
+m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
+m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
+m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
+m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
+m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
+m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
+m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
+m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
+m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
+m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
+m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
+m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
+m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
+m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
+m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
+m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
+m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
+m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
+m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
+m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
+m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
diff --git a/man/Makefile.am b/man/Makefile.am
new file mode 100644
index 0000000..9ca5ff6
--- /dev/null
+++ b/man/Makefile.am
@@ -0,0 +1,37 @@
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+
+drivermandir = $(DRIVER_MAN_DIR)
+driverman_DATA = $(DRIVER_NAME).$(DRIVER_MAN_SUFFIX)
+
+EXTRA_DIST = $(DRIVER_NAME).man
+
+CLEANFILES = $(driverman_DATA)
+
+# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
+
+
+SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
+
+.man.$(DRIVER_MAN_SUFFIX):
+ $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
diff --git a/man/Makefile.in b/man/Makefile.in
new file mode 100644
index 0000000..fc64b47
--- /dev/null
+++ b/man/Makefile.in
@@ -0,0 +1,477 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+#
+# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = man
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(drivermandir)"
+DATA = $(driverman_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+drivermandir = $(DRIVER_MAN_DIR)
+driverman_DATA = $(DRIVER_NAME).$(DRIVER_MAN_SUFFIX)
+EXTRA_DIST = $(DRIVER_NAME).man
+CLEANFILES = $(driverman_DATA)
+
+# String replacements in MAN_SUBSTS now come from xorg-macros.m4 via configure
+SUFFIXES = .$(DRIVER_MAN_SUFFIX) .man
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .$(DRIVER_MAN_SUFFIX) .man
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign man/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign man/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+install-drivermanDATA: $(driverman_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(drivermandir)" || $(MKDIR_P) "$(DESTDIR)$(drivermandir)"
+ @list='$(driverman_DATA)'; test -n "$(drivermandir)" || list=; \
+ for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(drivermandir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(drivermandir)" || exit $$?; \
+ done
+
+uninstall-drivermanDATA:
+ @$(NORMAL_UNINSTALL)
+ @list='$(driverman_DATA)'; test -n "$(drivermandir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ test -n "$$files" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(drivermandir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(drivermandir)" && rm -f $$files
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(DATA)
+installdirs:
+ for dir in "$(DESTDIR)$(drivermandir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-drivermanDATA
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-drivermanDATA
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ distclean distclean-generic distclean-libtool distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-drivermanDATA install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ uninstall uninstall-am uninstall-drivermanDATA
+
+
+.man.$(DRIVER_MAN_SUFFIX):
+ $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/man/intel.man b/man/intel.man
new file mode 100644
index 0000000..85e2b2e
--- /dev/null
+++ b/man/intel.man
@@ -0,0 +1,416 @@
+.\" shorthand for double quote that works everywhere.
+.ds q \N'34'
+.TH intel __drivermansuffix__ __vendorversion__
+.SH NAME
+intel \- Intel integrated graphics chipsets
+.SH SYNOPSIS
+.nf
+.B "Section \*qDevice\*q"
+.BI " Identifier \*q" devname \*q
+.B " Driver \*qintel\*q"
+\ \ ...
+.B EndSection
+.fi
+.SH DESCRIPTION
+.B intel
+is an __xservername__ driver for Intel integrated graphics chipsets.
+The driver supports depths 8, 15, 16 and 24. All visual types are
+supported in depth 8. For the i810/i815 other depths support the
+TrueColor and DirectColor visuals. For the i830M and later, only the
+TrueColor visual is supported for depths greater than 8. The driver
+supports hardware accelerated 3D via the Direct Rendering Infrastructure
+(DRI), but only in depth 16 for the i810/i815 and depths 16 and 24 for
+the 830M and later.
+.SH SUPPORTED HARDWARE
+.B intel
+supports the i810, i810-DC100, i810e, i815, i830M, 845G, 852GM, 855GM,
+865G, 915G, 915GM, 945G, 945GM, 965G, 965Q, 946GZ, 965GM, 945GME,
+G33, Q33, Q35, G35, GM45, G45, Q45, G43, G41 chipsets, and Pineview-M in
+Atom N400 series, Pineview-D in Atom D400/D500 series.
+
+.SH CONFIGURATION DETAILS
+Please refer to __xconfigfile__(__filemansuffix__) for general configuration
+details. This section only covers configuration details specific to this
+driver.
+.PP
+The Intel 8xx and 9xx families of integrated graphics chipsets have a unified
+memory architecture meaning that system memory is used as video RAM. For the
+i810 and i815 family of chipsets, operating system support for allocating system
+memory is required in order to use this driver. For the 830M
+and later, this is required in order for the driver to use more video RAM
+than has been pre-allocated at boot time by the BIOS. This is usually
+achieved with an "agpgart" or "agp" kernel driver. Linux, FreeBSD, OpenBSD,
+NetBSD, and Solaris have such kernel drivers available.
+.PP
+By default, the i810/i815 will use 8 MB of system memory for graphics if AGP
+allocable memory is < 128 MB, 16 MB if < 192 MB or 24 MB if higher. Use the
+.B VideoRam
+option to change the default value.
+.PP
+For the 830M and later, the driver will automatically size its memory
+allocation according to the features it will support. Therefore, the
+.B VideoRam
+option, which in the past had been necessary to allow more than some small
+amount of memory to be allocated, is now ignored.
+.PP
+The following driver
+.B Options
+are supported
+.TP
+.BI "Option \*qColorKey\*q \*q" integer \*q
+This sets the default pixel value for the YUV video overlay key.
+.IP
+Default: undefined.
+.TP
+.BI "Option \*qDRI\*q \*q" boolean \*q
+Disable or enable DRI support.
+.IP
+Default: DRI is enabled for configurations where it is supported.
+
+.PP
+The following driver
+.B Options
+are supported for the i810 and i815 chipsets:
+.TP
+.BI "Option \*qCacheLines\*q \*q" integer \*q
+This allows the user to change the amount of graphics memory used for
+2D acceleration and video when XAA acceleration is enabled. Decreasing this
+amount leaves more for 3D textures. Increasing it can improve 2D performance
+at the expense of 3D performance.
+.IP
+Default: depends on the resolution, depth, and available video memory. The
+driver attempts to allocate space for at 3 screenfuls of pixmaps plus an
+HD-sized XV video. The default used for a specific configuration can be found
+by examining the __xservername__ log file.
+.TP
+.BI "Option \*qDDC\*q \*q" boolean \*q
+Disable or enable DDC support.
+.IP
+Default: enabled.
+.TP
+.BI "Option \*qDac6Bit\*q \*q" boolean \*q
+Enable or disable 6-bits per RGB for 8-bit modes.
+.IP
+Default: 8-bits per RGB for 8-bit modes.
+.TP
+.BI "Option \*qXvMCSurfaces\*q \*q" integer \*q
+This option enables XvMC. The integer parameter specifies the number of
+surfaces to use. Valid values are 6 and 7.
+.IP
+Default: XvMC is disabled.
+.TP
+.BI "VideoRam " integer
+This option specifies the amount of system memory to use for graphics, in KB.
+.IP
+The default is 8192 if AGP allocable memory is < 128 MB, 16384 if < 192 MB,
+24576 if higher. DRI require at least a value of 16384. Higher values may give
+better 3D performance, at expense of available system memory.
+.TP
+.BI "Option \*qNoAccel\*q \*q" boolean \*q
+Disable or enable acceleration.
+.IP
+Default: acceleration is enabled.
+
+.PP
+The following driver
+.B Options
+are supported for the 830M and later chipsets:
+.TP
+.BI "Option \*qVideoKey\*q \*q" integer \*q
+This is the same as the
+.B \*qColorKey\*q
+option described above. It is provided for compatibility with most
+other drivers.
+.TP
+.BI "Option \*qXvPreferOverlay\*q \*q" boolean \*q
+Make hardware overlay be the first XV adaptor.
+The overlay behaves incorrectly in the presence of compositing, but some prefer
+it due to it syncing to vblank in the absence of compositing. While most
+XV-using applications have options to select which XV adaptor to use, this
+option can be used to place the overlay first for applications which don't
+have options for selecting adaptors.
+.IP
+Default: Textured video adaptor is preferred.
+.TP
+.BI "Option \*qFallbackDebug\*q \*q" boolean \*q
+Enable printing of debugging information on acceleration fallbacks to the
+server log.
+.IP
+Default: Disabled
+.TP
+.BI "Option \*qDebugFlushBatches\*q \*q" boolean \*q
+Flush the batch buffer after every single operation.
+.IP
+Default: Disabled
+.TP
+.BI "Option \*qDebugFlushCaches\*q \*q" boolean \*q
+Include an MI_FLUSH at the end of every batch buffer to force data to
+be flushed out of cache and into memory before the completion of the
+batch.
+.IP
+Default: Disabled
+.TP
+.BI "Option \*qDebugWait\*q \*q" boolean \*q
+Wait for the completion of every batch buffer before continuing,
+i.e. perform synchronous rendering.
+.IP
+Default: Disabled
+.TP
+.BI "Option \*qShadow\*q \*q" boolean \*q
+This option controls the use of GPU acceleration and placement of auxiliary
+buffers in memory. Enabling the Shadow will disable all use of the GPU for
+RENDER acceleration and force software-fallbacks for all but updating the
+scan-out buffer. Hardware overlay is still supported so Xv will continue to
+playback videos using the GPU, but GL will be forced to use software
+rasterisation as well. This is a last resort measure for systems with
+crippling bugs, such as early 8xx chipsets. It is still hoped that we will
+find a workaround to enable as much hardware acceleration on those
+architectures as is possible, but until then, using a shadow buffer should
+maintain system stability.
+.IP
+Default: Disabled
+.TP
+.BI "Option \*qSwapbuffersWait\*q \*q" boolean \*q
+This option controls the behavior of glXSwapBuffers and glXCopySubBufferMESA
+calls by GL applications. If enabled, the calls will avoid tearing by making
+sure the display scanline is outside of the area to be copied before the copy
+occurs. If disabled, no scanline synchronization is performed, meaning tearing
+will likely occur. Note that when enabled, this option can adversely affect
+the framerate of applications that render frames at less than refresh rate.
+.IP
+Default: enabled.
+.TP
+.BI "Option \*qTiling\*q \*q" boolean \*q
+This option controls whether memory buffers for Pixmaps are allocated in tiled mode. In
+most cases (especially for complex rendering), tiling dramatically improves
+performance.
+.IP
+Default: enabled.
+.TP
+.BI "Option \*qLinearFramebuffer\*q \*q" boolean \*q
+This option controls whether the memory for the scanout (also known as the
+front or frame buffer) is allocated in linear memory. A tiled framebuffer is
+required for power conservation features, but for certain system configurations
+you may wish to override this and force a linear layout.
+.IP
+Default: disabled
+.TP
+.BI "Option \*qRelaxedFencing\*q \*q" boolean \*q
+This option controls whether we attempt to allocate the minimal amount of
+memory required for the buffers. The reduction in working set has a substantial
+improvement on system performance. However, this has been demonstrate to be
+buggy on older hardware (845-865 and 915-945, but ok on PineView and later)
+so on those chipsets defaults to off.
+.IP
+Default: Enabled for G33 (includes PineView), and later, class machines.
+.TP
+.BI "Option \*qXvMC\*q \*q" boolean \*q
+Enable XvMC driver. Current support MPEG2 MC on 915/945 and G33 series.
+User should provide absolute path to libIntelXvMC.so in XvMCConfig file.
+.IP
+Default: Disabled.
+.TP
+.BI "Option \*qHotPlug\*q \*q" boolean \*q
+This option controls whether the driver automatically notifies
+applications when monitors are connected or disconnected.
+.IP
+Default: enabled.
+
+.SH OUTPUT CONFIGURATION
+On 830M and better chipsets, the driver supports runtime configuration of
+detected outputs. You can use the
+.B xrandr
+tool to control outputs on the command line as follows:
+
+.RS
+.B xrandr \-\-output
+.I output
+.B \-\-set
+.I property value
+.RE
+
+Note that you may need to quote property and value arguments that contain spaces.
+Each output listed below may have one or more properties associated
+with it (like a binary EDID block if one is found). Some outputs have
+unique properties which are described below. See the "MULTIHEAD
+CONFIGURATIONS" section below for additional information.
+.SS "VGA"
+VGA output port (typically exposed via an HD15 connector).
+
+.SS "LVDS"
+Low Voltage Differential Signalling output (typically a laptop LCD panel). Available properties:
+
+.PP
+.B BACKLIGHT
+- current backlight level (adjustable)
+.TP 2
+By adjusting the BACKLIGHT property, the brightness on the LVDS output can be adjusted. In some cases, this property may be unavailable (for example if your platform uses an external microcontroller to control the backlight).
+
+.PP
+.B scaling mode
+- control LCD panel scaling mode
+.TP 2
+When the currently selected display mode differs from the native panel resolution, various scaling options are available. These include
+.RS
+.PP
+.B Center
+.TP 4
+Simply center the image on-screen without scaling. This is the only scaling mode that guarantees a one-to-one correspondence between native and displayed pixels, but some portions of the panel may be unused (so-called "letterboxing").
+.PP
+.B Full aspect
+.TP 4
+Scale the image as much as possible while preserving aspect ratio. Pixels may not be displayed one-to-one (there may be some blurriness). Some portions of the panel may be unused if the aspect ratio of the selected mode does not match that of the panel.
+.PP
+.B Full
+.TP 4
+Scale the image to the panel size without regard to aspect ratio. This is the only mode which guarantees that every pixel of the panel will be used. But the displayed image may be distorted by stretching either horizontally or vertically, and pixels may not be displayed one-to-one (there may be some blurriness).
+.RE
+
+The precise names of these options may differ depending on the kernel
+video driver, (but the functionality should be similar). See the output of
+.B xrandr \-\-prop
+for a list of currently available scaling modes.
+.SS "TV"
+Integrated TV output. Available properties include:
+
+.PP
+.B BOTTOM, RIGHT, TOP, LEFT
+- margins
+.TP 2
+Adjusting these properties allows you to control the placement of your TV output buffer on the screen. The options with the same name can also be set in xorg.conf with integer value.
+
+.PP
+.B BRIGHTNESS
+- TV brightness, range 0-255
+.TP 2
+Adjust TV brightness, default value is 128.
+
+.PP
+.B CONTRAST
+- TV contrast, range 0-255
+.TP 2
+Adjust TV contrast, default value is 1.0 in chipset specific format.
+
+.PP
+.B SATURATION
+- TV saturation, range 0-255
+.TP 2
+Adjust TV saturation, default value is 1.0 in chipset specific format.
+
+.PP
+.B HUE
+- TV hue, range 0-255
+.TP 2
+Adjust TV hue, default value is 0.
+
+.PP
+.B TV_FORMAT
+- output standard
+.TP 2
+This property allows you to control the output standard used on your TV output port. You can select between NTSC-M, NTSC-443, NTSC-J, PAL-M, PAL-N, and PAL.
+
+.PP
+.B TV_Connector
+- connector type
+.TP 2
+This config option should be added to xorg.conf TV monitor's section, it allows you to force the TV output connector type, which bypass load detect and TV will always be taken as connected. You can select between S-Video, Composite and Component.
+
+.SS "TMDS-1"
+First DVI SDVO output
+
+.SS "TMDS-2"
+Second DVI SDVO output
+
+.SS "TMDS-1", "TMDS-2", "HDMI-1", "HDMI-2"
+DVI/HDMI outputs. Avaliable common properties include:
+.PP
+.B BROADCAST_RGB
+- method used to set RGB color range(full range 0-255, not full range 16-235)
+.TP 2
+Adjusting this propertie allows you to set RGB color range on each channel in order to match HDTV requirment(default 0 for full range). Setting 1 means RGB color range is 16-235, 0 means RGB color range is 0-255 on each channel.
+
+.PP
+SDVO and DVO TV outputs are not supported by the driver at this time.
+
+.PP
+See __xconfigfile__(__filemansuffix__) for information on associating Monitor
+sections with these outputs for configuration. Associating Monitor sections
+with each output can be helpful if you need to ignore a specific output, for
+example, or statically configure an extended desktop monitor layout.
+
+.SH MULTIHEAD CONFIGURATIONS
+
+The number of independent outputs is dictated by the number of CRTCs
+(in X parlance) a given chip supports. Most recent Intel chips have
+two CRTCs, meaning that two separate framebuffers can be displayed
+simultaneously, in an extended desktop configuration. If a chip
+supports more outputs than it has CRTCs (say local flat panel, VGA and
+TV in the case of many outputs), two of the outputs will have to be
+"cloned", meaning that they display the same framebuffer contents (or
+one displays a subset of another's framebuffer if the modes aren't
+equal).
+
+You can use the "xrandr" tool, or various desktop utilities, to change
+your output configuration at runtime. To statically configure your
+outputs, you can use the "Monitor-<type>" options along with
+additional monitor sections in your xorg.conf to create your screen
+topology. The example below puts the VGA output to the right of the
+builtin laptop screen, both running at 1024x768.
+
+.nf
+.B "Section \*qMonitor\*q"
+.BI " Identifier \*qLaptop FooBar Internal Display\*q"
+.BI " Option \*qPosition\*q \*q0 0\*q"
+.B "EndSection"
+
+.B "Section \*qMonitor\*q"
+.BI " Identifier \*qSome Random CRT\*q"
+.BI " Option \*qPosition\*q \*q1024 0\*q"
+.BI " Option \*qRightOf\*q \*qLaptop FoodBar Internal Display\*q"
+.B "EndSection"
+
+.B "Section \*qDevice\*q"
+.BI " Driver \*qintel\*q"
+.BI " Option \*qmonitor-LVDS\*q \*qLaptop FooBar Internal Display\*q"
+.BI " Option \*qmonitor-VGA\*q \*qSome Random CRT\*q"
+.B "EndSection"
+
+.SH TEXTURED VIDEO ATTRIBUTES
+The driver supports the following X11 Xv attributes for Textured Video.
+You can use the "xvattr" tool to query/set those attributes at runtime.
+
+.SS "XV_SYNC_TO_VBLANK"
+XV_SYNC_TO_VBLANK is used to control whether textured adapter synchronizes
+the screen update to the vblank to eliminate tearing. It is a Boolean
+attribute with values of 0 (never sync) or 1 (always sync). An historic
+value of -1 (sync for large windows only) will now be interpreted as 1,
+(since the current approach for sync is not costly even with small
+video windows).
+
+.SS "XV_BRIGHTNESS"
+
+.SS "XV_CONTRAST"
+
+.SH REPORTING BUGS
+
+The xf86-video-intel driver is part of the X.Org and Freedesktop.org
+umbrella projects. Details on bug reporting can be found at
+http://www.intellinuxgraphics.org/how_to_report_bug.html. Mailing
+lists are also commonly used to report experiences and ask questions
+about configuration and other topics. See lists.freedesktop.org for
+more information (the xorg@lists.freedesktop.org mailing list is the
+most appropriate place to ask X.Org and driver related questions).
+
+.SH "SEE ALSO"
+__xservername__(__appmansuffix__), __xconfigfile__(__filemansuffix__), Xserver(__appmansuffix__), X(__miscmansuffix__)
+.SH AUTHORS
+Authors include: Keith Whitwell, and also Jonathan Bian, Matthew J Sottek,
+Jeff Hartmann, Mark Vojkovich, Alan Hourihane, H. J. Lu. 830M and 845G
+support reworked for XFree86 4.3 by David Dawes and Keith Whitwell. 852GM,
+855GM, and 865G support added by David Dawes and Keith Whitwell. 915G,
+915GM, 945G, 945GM, 965G, 965Q and 946GZ support added by Alan Hourihane and
+Keith Whitwell. Lid status support added by Alan Hourihane. Textured video
+support for 915G and later chips, RandR 1.2 and hardware modesetting added
+by Eric Anholt and Keith Packard. EXA and Render acceleration added by Wang
+Zhenyu. TV out support added by Zou Nan Hai and Keith Packard. 965GM, G33,
+Q33, and Q35 support added by Wang Zhenyu.
diff --git a/missing b/missing
new file mode 100755
index 0000000..28055d2
--- /dev/null
+++ b/missing
@@ -0,0 +1,376 @@
+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2009-04-28.21; # UTC
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
+# 2008, 2009 Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+ configure_ac=configure.ac
+else
+ configure_ac=configure.in
+fi
+
+msg="missing on your system"
+
+case $1 in
+--run)
+ # Try to run requested program, and just exit if it succeeds.
+ run=
+ shift
+ "$@" && exit 0
+ # Exit code 63 means version mismatch. This often happens
+ # when the user try to use an ancient version of a tool on
+ # a file that requires a minimum version. In this case we
+ # we should proceed has if the program had been absent, or
+ # if --run hadn't been passed.
+ if test $? = 63; then
+ run=:
+ msg="probably too old"
+ fi
+ ;;
+
+ -h|--h|--he|--hel|--help)
+ echo "\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+ -h, --help display this help and exit
+ -v, --version output version information and exit
+ --run try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+ aclocal touch file \`aclocal.m4'
+ autoconf touch file \`configure'
+ autoheader touch file \`config.h.in'
+ autom4te touch the output file, or create a stub one
+ automake touch all \`Makefile.in' files
+ bison create \`y.tab.[ch]', if possible, from existing .[ch]
+ flex create \`lex.yy.c', if possible, from existing .c
+ help2man touch the output file
+ lex create \`lex.yy.c', if possible, from existing .c
+ makeinfo touch the output file
+ tar try tar, gnutar, gtar, then tar without non-portable flags
+ yacc create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
+\`g' are ignored when checking the name.
+
+Send bug reports to <bug-automake@gnu.org>."
+ exit $?
+ ;;
+
+ -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+ echo "missing $scriptversion (GNU Automake)"
+ exit $?
+ ;;
+
+ -*)
+ echo 1>&2 "$0: Unknown \`$1' option"
+ echo 1>&2 "Try \`$0 --help' for more information"
+ exit 1
+ ;;
+
+esac
+
+# normalize program name to check for.
+program=`echo "$1" | sed '
+ s/^gnu-//; t
+ s/^gnu//; t
+ s/^g//; t'`
+
+# Now exit if we have it, but it failed. Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program). This is about non-GNU programs, so use $1 not
+# $program.
+case $1 in
+ lex*|yacc*)
+ # Not GNU programs, they don't have --version.
+ ;;
+
+ tar*)
+ if test -n "$run"; then
+ echo 1>&2 "ERROR: \`tar' requires --run"
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ exit 1
+ fi
+ ;;
+
+ *)
+ if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
+ # We have it, but it failed.
+ exit 1
+ elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
+ # Could not run --version or --help. This is probably someone
+ # running `$TOOL --version' or `$TOOL --help' to check whether
+ # $TOOL exists and not knowing $TOOL uses missing.
+ exit 1
+ fi
+ ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $program in
+ aclocal*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acinclude.m4' or \`${configure_ac}'. You might want
+ to install the \`Automake' and \`Perl' packages. Grab them from
+ any GNU archive site."
+ touch aclocal.m4
+ ;;
+
+ autoconf*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`${configure_ac}'. You might want to install the
+ \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
+ archive site."
+ touch configure
+ ;;
+
+ autoheader*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`acconfig.h' or \`${configure_ac}'. You might want
+ to install the \`Autoconf' and \`GNU m4' packages. Grab them
+ from any GNU archive site."
+ files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+ test -z "$files" && files="config.h"
+ touch_files=
+ for f in $files; do
+ case $f in
+ *:*) touch_files="$touch_files "`echo "$f" |
+ sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+ *) touch_files="$touch_files $f.in";;
+ esac
+ done
+ touch $touch_files
+ ;;
+
+ automake*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+ You might want to install the \`Automake' and \`Perl' packages.
+ Grab them from any GNU archive site."
+ find . -type f -name Makefile.am -print |
+ sed 's/\.am$/.in/' |
+ while read f; do touch "$f"; done
+ ;;
+
+ autom4te*)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, but is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them.
+ You can get \`$1' as part of \`Autoconf' from any GNU
+ archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo "#! /bin/sh"
+ echo "# Created by GNU Automake missing as a replacement of"
+ echo "# $ $@"
+ echo "exit 0"
+ chmod +x $file
+ exit 1
+ fi
+ ;;
+
+ bison*|yacc*)
+ echo 1>&2 "\
+WARNING: \`$1' $msg. You should only need it if
+ you modified a \`.y' file. You may need the \`Bison' package
+ in order for those modifications to take effect. You can get
+ \`Bison' from any GNU archive site."
+ rm -f y.tab.c y.tab.h
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.y)
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.c
+ fi
+ SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" y.tab.h
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f y.tab.h; then
+ echo >y.tab.h
+ fi
+ if test ! -f y.tab.c; then
+ echo 'main() { return 0; }' >y.tab.c
+ fi
+ ;;
+
+ lex*|flex*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.l' file. You may need the \`Flex' package
+ in order for those modifications to take effect. You can get
+ \`Flex' from any GNU archive site."
+ rm -f lex.yy.c
+ if test $# -ne 1; then
+ eval LASTARG="\${$#}"
+ case $LASTARG in
+ *.l)
+ SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
+ if test -f "$SRCFILE"; then
+ cp "$SRCFILE" lex.yy.c
+ fi
+ ;;
+ esac
+ fi
+ if test ! -f lex.yy.c; then
+ echo 'main() { return 0; }' >lex.yy.c
+ fi
+ ;;
+
+ help2man*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a dependency of a manual page. You may need the
+ \`Help2man' package in order for those modifications to take
+ effect. You can get \`Help2man' from any GNU archive site."
+
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -f "$file"; then
+ touch $file
+ else
+ test -z "$file" || exec >$file
+ echo ".ab help2man is required to generate this page"
+ exit $?
+ fi
+ ;;
+
+ makeinfo*)
+ echo 1>&2 "\
+WARNING: \`$1' is $msg. You should only need it if
+ you modified a \`.texi' or \`.texinfo' file, or any other file
+ indirectly affecting the aspect of the manual. The spurious
+ call might also be the consequence of using a buggy \`make' (AIX,
+ DU, IRIX). You might want to install the \`Texinfo' package or
+ the \`GNU make' package. Grab either from any GNU archive site."
+ # The file to touch is that specified with -o ...
+ file=`echo "$*" | sed -n "$sed_output"`
+ test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
+ if test -z "$file"; then
+ # ... or it is the one specified with @setfilename ...
+ infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
+ file=`sed -n '
+ /^@setfilename/{
+ s/.* \([^ ]*\) *$/\1/
+ p
+ q
+ }' $infile`
+ # ... or it is derived from the source name (dir/f.texi becomes f.info)
+ test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
+ fi
+ # If the file does not exist, the user really needs makeinfo;
+ # let's fail without touching anything.
+ test -f $file || exit 1
+ touch $file
+ ;;
+
+ tar*)
+ shift
+
+ # We have already tried tar in the generic part.
+ # Look for gnutar/gtar before invocation to avoid ugly error
+ # messages.
+ if (gnutar --version > /dev/null 2>&1); then
+ gnutar "$@" && exit 0
+ fi
+ if (gtar --version > /dev/null 2>&1); then
+ gtar "$@" && exit 0
+ fi
+ firstarg="$1"
+ if shift; then
+ case $firstarg in
+ *o*)
+ firstarg=`echo "$firstarg" | sed s/o//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ case $firstarg in
+ *h*)
+ firstarg=`echo "$firstarg" | sed s/h//`
+ tar "$firstarg" "$@" && exit 0
+ ;;
+ esac
+ fi
+
+ echo 1>&2 "\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+ You may want to install GNU tar or Free paxutils, or check the
+ command line arguments."
+ exit 1
+ ;;
+
+ *)
+ echo 1>&2 "\
+WARNING: \`$1' is needed, and is $msg.
+ You might have modified some files without having the
+ proper tools for further handling them. Check the \`README' file,
+ it often tells you about the needed prerequisites for installing
+ this package. You may also peek at any GNU archive site, in case
+ some other package would contain this missing \`$1' program."
+ exit 1
+ ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: "scriptversion="
+# time-stamp-format: "%:y-%02m-%02d.%02H"
+# time-stamp-time-zone: "UTC"
+# time-stamp-end: "; # UTC"
+# End:
diff --git a/packaging/disable-page-flipping.patch b/packaging/disable-page-flipping.patch
new file mode 100644
index 0000000..911c93f
--- /dev/null
+++ b/packaging/disable-page-flipping.patch
@@ -0,0 +1,30 @@
+diff --git a/src/intel_display.c b/src/intel_display.c
+index 5d85baa..009e79e 100644
+--- a/src/intel_display.c
++++ b/src/intel_display.c
+@@ -1528,7 +1528,7 @@ Bool intel_mode_pre_init(ScrnInfoPtr scrn, int fd, int cpp)
+ gp.value = &has_flipping;
+ (void)drmCommandWriteRead(intel->drmSubFD, DRM_I915_GETPARAM, &gp,
+ sizeof(gp));
+- if (has_flipping) {
++ if (!has_flipping) {
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Kernel page flipping support detected, enabling\n");
+ intel->use_pageflipping = TRUE;
+diff --git a/src/intel_dri.c b/src/intel_dri.c
+index db1f81a..8e297b0 100644
+--- a/src/intel_dri.c
++++ b/src/intel_dri.c
+@@ -1065,6 +1065,12 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)
+ info.numDrivers = 1;
+ info.driverNames = driverNames;
+ driverNames[0] = info.driverName;
++ } else {
++ info.version = 4;
++ info.GetMSC = I830DRI2GetMSC;
++ info.numDrivers = 1;
++ info.driverNames = driverNames;
++ driverNames[0] = info.driverName;
+ }
+ #endif
+
diff --git a/packaging/xorg-x11-drv-intel.spec b/packaging/xorg-x11-drv-intel.spec
new file mode 100644
index 0000000..1628d9d
--- /dev/null
+++ b/packaging/xorg-x11-drv-intel.spec
@@ -0,0 +1,62 @@
+Name: xorg-x11-drv-intel
+Summary: Xorg X11 Intel video driver
+Version: 2.15.0
+Release: 1
+Group: System/X Hardware Support
+License: MIT
+URL: http://www.x.org/
+Source0: http://xorg.freedesktop.org/archive/individual/driver/xf86-video-intel-%{version}.tar.bz2
+# >> gbp-patch-tags # auto-added by gbp
+Patch0: disable-page-flipping.patch
+# << gbp-patch-tags # auto-added by gbp
+Requires: xorg-server
+Requires: pciutils
+BuildRequires: pkgconfig(xorg-server)
+BuildRequires: pkgconfig(libdrm)
+BuildRequires: pkgconfig(xf86driproto)
+BuildRequires: pkgconfig(xvmc)
+BuildRequires: pkgconfig(gl)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(xproto)
+BuildRequires: pkgconfig(fontsproto)
+BuildRequires: pkgconfig(randrproto)
+BuildRequires: pkgconfig(renderproto)
+BuildRequires: pkgconfig(xextproto)
+BuildRequires: pkgconfig(glproto)
+BuildRequires: pkgconfig(xineramaproto)
+BuildRequires: pkgconfig(xi)
+BuildRequires: pkgconfig(dri2proto)
+BuildRequires: pkgconfig(xext)
+BuildRequires: pkgconfig(xfixes)
+BuildRequires: pkgconfig(libudev)
+
+ExclusiveArch: ia64 x86_64 %{ix86}
+
+
+%description
+Xorg Intel video driver
+
+
+
+%prep
+%setup -q -n xf86-video-intel-%{version}
+# >> gbp-apply-patches # auto-added by gbp
+%patch0 -p1
+# << gbp-apply-patches # auto-added by gbp
+
+%build
+CFLAGS="$CFLAGS -I/usr/include/X11"
+%configure --enable-dri \
+ --enable-kms-only
+
+make V=1 %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+
+%remove_docs
+
+%files
+%(pkg-config xorg-server --variable=moduledir )/drivers/intel_drv.so
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..abb03c3
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,83 @@
+# Copyright 2005 Adam Jackson.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# on the rights to use, copy, modify, merge, publish, distribute, sub
+# license, and/or sell copies of the Software, and to permit persons to whom
+# the Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+SUBDIRS = xvmc render_program legacy
+
+# this is obnoxious:
+# -module lets us name the module exactly how we want
+# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
+# _ladir passes a dummy rpath to libtool so the thing will actually link
+# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
+
+AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @UDEV_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
+ @PCIACCESS_CFLAGS@ -I$(top_srcdir)/uxa -I$(top_srcdir)/src/render_program
+
+intel_drv_la_LTLIBRARIES = intel_drv.la
+intel_drv_la_LDFLAGS = -module -avoid-version
+intel_drv_ladir = @moduledir@/drivers
+intel_drv_la_LIBADD = @UDEV_LIBS@ -lm @DRM_LIBS@ -ldrm_intel ../uxa/libuxa.la legacy/liblegacy.la
+intel_drv_la_LIBADD += @PCIACCESS_LIBS@
+
+NULL:=#
+
+intel_drv_la_SOURCES = \
+ brw_defines.h \
+ brw_structs.h \
+ common.h \
+ intel.h \
+ intel_module.c \
+ intel_batchbuffer.c \
+ intel_batchbuffer.h \
+ intel_display.c \
+ intel_driver.c \
+ intel_driver.h \
+ intel_memory.c \
+ intel_shadow.c \
+ intel_uxa.c \
+ intel_video.c \
+ intel_video.h \
+ i830_3d.c \
+ i830_render.c \
+ i830_reg.h \
+ i915_3d.h \
+ i915_reg.h \
+ i915_3d.c \
+ i915_render.c \
+ i915_video.c \
+ i965_reg.h \
+ i965_video.c \
+ i965_render.c \
+ $(NULL)
+
+if DRI
+intel_drv_la_SOURCES += \
+ intel_dri.c \
+ $(NULL)
+intel_drv_la_LIBADD += \
+ $(DRI_LIBS) \
+ $(NULL)
+endif
+
+if XVMC
+intel_drv_la_SOURCES += \
+ intel_hwmc.h \
+ intel_hwmc.c \
+ $(NULL)
+endif
diff --git a/src/Makefile.in b/src/Makefile.in
new file mode 100644
index 0000000..76f5db7
--- /dev/null
+++ b/src/Makefile.in
@@ -0,0 +1,817 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Copyright 2005 Adam Jackson.
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# on the rights to use, copy, modify, merge, publish, distribute, sub
+# license, and/or sell copies of the Software, and to permit persons to whom
+# the Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice (including the next
+# paragraph) shall be included in all copies or substantial portions of the
+# Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+@DRI_TRUE@am__append_1 = \
+@DRI_TRUE@ intel_dri.c \
+@DRI_TRUE@ $(NULL)
+
+@DRI_TRUE@am__append_2 = \
+@DRI_TRUE@ $(DRI_LIBS) \
+@DRI_TRUE@ $(NULL)
+
+@XVMC_TRUE@am__append_3 = \
+@XVMC_TRUE@ intel_hwmc.h \
+@XVMC_TRUE@ intel_hwmc.c \
+@XVMC_TRUE@ $(NULL)
+
+subdir = src
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(intel_drv_ladir)"
+LTLIBRARIES = $(intel_drv_la_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+@DRI_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) \
+@DRI_TRUE@ $(am__DEPENDENCIES_1)
+intel_drv_la_DEPENDENCIES = ../uxa/libuxa.la legacy/liblegacy.la \
+ $(am__DEPENDENCIES_2)
+am__intel_drv_la_SOURCES_DIST = brw_defines.h brw_structs.h common.h \
+ intel.h intel_module.c intel_batchbuffer.c intel_batchbuffer.h \
+ intel_display.c intel_driver.c intel_driver.h intel_memory.c \
+ intel_shadow.c intel_uxa.c intel_video.c intel_video.h \
+ i830_3d.c i830_render.c i830_reg.h i915_3d.h i915_reg.h \
+ i915_3d.c i915_render.c i915_video.c i965_reg.h i965_video.c \
+ i965_render.c intel_dri.c intel_hwmc.h intel_hwmc.c
+am__objects_1 =
+@DRI_TRUE@am__objects_2 = intel_dri.lo $(am__objects_1)
+@XVMC_TRUE@am__objects_3 = intel_hwmc.lo $(am__objects_1)
+am_intel_drv_la_OBJECTS = intel_module.lo intel_batchbuffer.lo \
+ intel_display.lo intel_driver.lo intel_memory.lo \
+ intel_shadow.lo intel_uxa.lo intel_video.lo i830_3d.lo \
+ i830_render.lo i915_3d.lo i915_render.lo i915_video.lo \
+ i965_video.lo i965_render.lo $(am__objects_1) $(am__objects_2) \
+ $(am__objects_3)
+intel_drv_la_OBJECTS = $(am_intel_drv_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+intel_drv_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(intel_drv_la_LDFLAGS) $(LDFLAGS) -o $@
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+SOURCES = $(intel_drv_la_SOURCES)
+DIST_SOURCES = $(am__intel_drv_la_SOURCES_DIST)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = xvmc render_program legacy
+
+# this is obnoxious:
+# -module lets us name the module exactly how we want
+# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
+# _ladir passes a dummy rpath to libtool so the thing will actually link
+# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
+AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @UDEV_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
+ @PCIACCESS_CFLAGS@ -I$(top_srcdir)/uxa -I$(top_srcdir)/src/render_program
+
+intel_drv_la_LTLIBRARIES = intel_drv.la
+intel_drv_la_LDFLAGS = -module -avoid-version
+intel_drv_ladir = @moduledir@/drivers
+intel_drv_la_LIBADD = @UDEV_LIBS@ -lm @DRM_LIBS@ -ldrm_intel \
+ ../uxa/libuxa.la legacy/liblegacy.la @PCIACCESS_LIBS@ \
+ $(am__append_2)
+NULL := #
+intel_drv_la_SOURCES = brw_defines.h brw_structs.h common.h intel.h \
+ intel_module.c intel_batchbuffer.c intel_batchbuffer.h \
+ intel_display.c intel_driver.c intel_driver.h intel_memory.c \
+ intel_shadow.c intel_uxa.c intel_video.c intel_video.h \
+ i830_3d.c i830_render.c i830_reg.h i915_3d.h i915_reg.h \
+ i915_3d.c i915_render.c i915_video.c i965_reg.h i965_video.c \
+ i965_render.c $(NULL) $(am__append_1) $(am__append_3)
+all: all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-intel_drv_laLTLIBRARIES: $(intel_drv_la_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(intel_drv_ladir)" || $(MKDIR_P) "$(DESTDIR)$(intel_drv_ladir)"
+ @list='$(intel_drv_la_LTLIBRARIES)'; test -n "$(intel_drv_ladir)" || list=; \
+ list2=; for p in $$list; do \
+ if test -f $$p; then \
+ list2="$$list2 $$p"; \
+ else :; fi; \
+ done; \
+ test -z "$$list2" || { \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(intel_drv_ladir)'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(intel_drv_ladir)"; \
+ }
+
+uninstall-intel_drv_laLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(intel_drv_la_LTLIBRARIES)'; test -n "$(intel_drv_ladir)" || list=; \
+ for p in $$list; do \
+ $(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(intel_drv_ladir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(intel_drv_ladir)/$$f"; \
+ done
+
+clean-intel_drv_laLTLIBRARIES:
+ -test -z "$(intel_drv_la_LTLIBRARIES)" || rm -f $(intel_drv_la_LTLIBRARIES)
+ @list='$(intel_drv_la_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+intel_drv.la: $(intel_drv_la_OBJECTS) $(intel_drv_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(intel_drv_la_LINK) -rpath $(intel_drv_ladir) $(intel_drv_la_OBJECTS) $(intel_drv_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i830_3d.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i830_render.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i915_3d.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i915_render.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i915_video.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i965_render.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i965_video.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_batchbuffer.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_display.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_dri.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_driver.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_hwmc.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_memory.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_module.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_shadow.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_uxa.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_video.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(intel_drv_ladir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-intel_drv_laLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am: install-intel_drv_laLTLIBRARIES
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-intel_drv_laLTLIBRARIES
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic \
+ clean-intel_drv_laLTLIBRARIES clean-libtool ctags \
+ ctags-recursive distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-intel_drv_laLTLIBRARIES install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
+ uninstall uninstall-am uninstall-intel_drv_laLTLIBRARIES
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/brw_defines.h b/src/brw_defines.h
new file mode 100644
index 0000000..0df2491
--- /dev/null
+++ b/src/brw_defines.h
@@ -0,0 +1,874 @@
+ /**************************************************************************
+ *
+ * Copyright 2005 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ **************************************************************************/
+
+#ifndef BRW_DEFINES_H
+#define BRW_DEFINES_H
+
+/*
+ */
+#if 0
+#define MI_NOOP 0x00
+#define MI_USER_INTERRUPT 0x02
+#define MI_WAIT_FOR_EVENT 0x03
+#define MI_FLUSH 0x04
+#define MI_REPORT_HEAD 0x07
+#define MI_ARB_ON_OFF 0x08
+#define MI_BATCH_BUFFER_END 0x0A
+#define MI_OVERLAY_FLIP 0x11
+#define MI_LOAD_SCAN_LINES_INCL 0x12
+#define MI_LOAD_SCAN_LINES_EXCL 0x13
+#define MI_DISPLAY_BUFFER_INFO 0x14
+#define MI_SET_CONTEXT 0x18
+#define MI_STORE_DATA_IMM 0x20
+#define MI_STORE_DATA_INDEX 0x21
+#define MI_LOAD_REGISTER_IMM 0x22
+#define MI_STORE_REGISTER_MEM 0x24
+#define MI_BATCH_BUFFER_START 0x31
+
+#define MI_SYNCHRONOUS_FLIP 0x0
+#define MI_ASYNCHRONOUS_FLIP 0x1
+
+#define MI_BUFFER_SECURE 0x0
+#define MI_BUFFER_NONSECURE 0x1
+
+#define MI_ARBITRATE_AT_CHAIN_POINTS 0x0
+#define MI_ARBITRATE_BETWEEN_INSTS 0x1
+#define MI_NO_ARBITRATION 0x3
+
+#define MI_CONDITION_CODE_WAIT_DISABLED 0x0
+#define MI_CONDITION_CODE_WAIT_0 0x1
+#define MI_CONDITION_CODE_WAIT_1 0x2
+#define MI_CONDITION_CODE_WAIT_2 0x3
+#define MI_CONDITION_CODE_WAIT_3 0x4
+#define MI_CONDITION_CODE_WAIT_4 0x5
+
+#define MI_DISPLAY_PIPE_A 0x0
+#define MI_DISPLAY_PIPE_B 0x1
+
+#define MI_DISPLAY_PLANE_A 0x0
+#define MI_DISPLAY_PLANE_B 0x1
+#define MI_DISPLAY_PLANE_C 0x2
+
+#define MI_STANDARD_FLIP 0x0
+#define MI_ENQUEUE_FLIP_PERFORM_BASE_FRAME_NUMBER_LOAD 0x1
+#define MI_ENQUEUE_FLIP_TARGET_FRAME_NUMBER_RELATIVE 0x2
+#define MI_ENQUEUE_FLIP_ABSOLUTE_TARGET_FRAME_NUMBER 0x3
+
+#define MI_PHYSICAL_ADDRESS 0x0
+#define MI_VIRTUAL_ADDRESS 0x1
+
+#define MI_BUFFER_MEMORY_MAIN 0x0
+#define MI_BUFFER_MEMORY_GTT 0x2
+#define MI_BUFFER_MEMORY_PER_PROCESS_GTT 0x3
+
+#define MI_FLIP_CONTINUE 0x0
+#define MI_FLIP_ON 0x1
+#define MI_FLIP_OFF 0x2
+
+#define MI_UNTRUSTED_REGISTER_SPACE 0x0
+#define MI_TRUSTED_REGISTER_SPACE 0x1
+#endif
+
+/* 3D state:
+ */
+#define _3DOP_3DSTATE_PIPELINED 0x0
+#define _3DOP_3DSTATE_NONPIPELINED 0x1
+#define _3DOP_3DCONTROL 0x2
+#define _3DOP_3DPRIMITIVE 0x3
+
+#define _3DSTATE_PIPELINED_POINTERS 0x00
+#define _3DSTATE_BINDING_TABLE_POINTERS 0x01
+#define _3DSTATE_VERTEX_BUFFERS 0x08
+#define _3DSTATE_VERTEX_ELEMENTS 0x09
+#define _3DSTATE_INDEX_BUFFER 0x0A
+#define _3DSTATE_VF_STATISTICS 0x0B
+#define _3DSTATE_DRAWING_RECTANGLE 0x00
+#define _3DSTATE_CONSTANT_COLOR 0x01
+#define _3DSTATE_SAMPLER_PALETTE_LOAD 0x02
+#define _3DSTATE_CHROMA_KEY 0x04
+#define _3DSTATE_DEPTH_BUFFER 0x05
+#define _3DSTATE_POLY_STIPPLE_OFFSET 0x06
+#define _3DSTATE_POLY_STIPPLE_PATTERN 0x07
+#define _3DSTATE_LINE_STIPPLE 0x08
+#define _3DSTATE_GLOBAL_DEPTH_OFFSET_CLAMP 0x09
+#define _3DCONTROL 0x00
+#define _3DPRIMITIVE 0x00
+
+#define PIPE_CONTROL_NOWRITE 0x00
+#define PIPE_CONTROL_WRITEIMMEDIATE 0x01
+#define PIPE_CONTROL_WRITEDEPTH 0x02
+#define PIPE_CONTROL_WRITETIMESTAMP 0x03
+
+#define PIPE_CONTROL_GTTWRITE_PROCESS_LOCAL 0x00
+#define PIPE_CONTROL_GTTWRITE_GLOBAL 0x01
+
+#define _3DPRIM_POINTLIST 0x01
+#define _3DPRIM_LINELIST 0x02
+#define _3DPRIM_LINESTRIP 0x03
+#define _3DPRIM_TRILIST 0x04
+#define _3DPRIM_TRISTRIP 0x05
+#define _3DPRIM_TRIFAN 0x06
+#define _3DPRIM_QUADLIST 0x07
+#define _3DPRIM_QUADSTRIP 0x08
+#define _3DPRIM_LINELIST_ADJ 0x09
+#define _3DPRIM_LINESTRIP_ADJ 0x0A
+#define _3DPRIM_TRILIST_ADJ 0x0B
+#define _3DPRIM_TRISTRIP_ADJ 0x0C
+#define _3DPRIM_TRISTRIP_REVERSE 0x0D
+#define _3DPRIM_POLYGON 0x0E
+#define _3DPRIM_RECTLIST 0x0F
+#define _3DPRIM_LINELOOP 0x10
+#define _3DPRIM_POINTLIST_BF 0x11
+#define _3DPRIM_LINESTRIP_CONT 0x12
+#define _3DPRIM_LINESTRIP_BF 0x13
+#define _3DPRIM_LINESTRIP_CONT_BF 0x14
+#define _3DPRIM_TRIFAN_NOSTIPPLE 0x15
+
+#define _3DPRIM_VERTEXBUFFER_ACCESS_SEQUENTIAL 0
+#define _3DPRIM_VERTEXBUFFER_ACCESS_RANDOM 1
+
+#define BRW_ANISORATIO_2 0
+#define BRW_ANISORATIO_4 1
+#define BRW_ANISORATIO_6 2
+#define BRW_ANISORATIO_8 3
+#define BRW_ANISORATIO_10 4
+#define BRW_ANISORATIO_12 5
+#define BRW_ANISORATIO_14 6
+#define BRW_ANISORATIO_16 7
+
+#define BRW_BLENDFACTOR_ONE 0x1
+#define BRW_BLENDFACTOR_SRC_COLOR 0x2
+#define BRW_BLENDFACTOR_SRC_ALPHA 0x3
+#define BRW_BLENDFACTOR_DST_ALPHA 0x4
+#define BRW_BLENDFACTOR_DST_COLOR 0x5
+#define BRW_BLENDFACTOR_SRC_ALPHA_SATURATE 0x6
+#define BRW_BLENDFACTOR_CONST_COLOR 0x7
+#define BRW_BLENDFACTOR_CONST_ALPHA 0x8
+#define BRW_BLENDFACTOR_SRC1_COLOR 0x9
+#define BRW_BLENDFACTOR_SRC1_ALPHA 0x0A
+#define BRW_BLENDFACTOR_ZERO 0x11
+#define BRW_BLENDFACTOR_INV_SRC_COLOR 0x12
+#define BRW_BLENDFACTOR_INV_SRC_ALPHA 0x13
+#define BRW_BLENDFACTOR_INV_DST_ALPHA 0x14
+#define BRW_BLENDFACTOR_INV_DST_COLOR 0x15
+#define BRW_BLENDFACTOR_INV_CONST_COLOR 0x17
+#define BRW_BLENDFACTOR_INV_CONST_ALPHA 0x18
+#define BRW_BLENDFACTOR_INV_SRC1_COLOR 0x19
+#define BRW_BLENDFACTOR_INV_SRC1_ALPHA 0x1A
+
+#define BRW_BLENDFUNCTION_ADD 0
+#define BRW_BLENDFUNCTION_SUBTRACT 1
+#define BRW_BLENDFUNCTION_REVERSE_SUBTRACT 2
+#define BRW_BLENDFUNCTION_MIN 3
+#define BRW_BLENDFUNCTION_MAX 4
+
+#define BRW_ALPHATEST_FORMAT_UNORM8 0
+#define BRW_ALPHATEST_FORMAT_FLOAT32 1
+
+#define BRW_CHROMAKEY_KILL_ON_ANY_MATCH 0
+#define BRW_CHROMAKEY_REPLACE_BLACK 1
+
+#define BRW_CLIP_API_OGL 0
+#define BRW_CLIP_API_DX 1
+
+#define BRW_CLIPMODE_NORMAL 0
+#define BRW_CLIPMODE_CLIP_ALL 1
+#define BRW_CLIPMODE_CLIP_NON_REJECTED 2
+#define BRW_CLIPMODE_REJECT_ALL 3
+#define BRW_CLIPMODE_ACCEPT_ALL 4
+
+#define BRW_CLIP_NDCSPACE 0
+#define BRW_CLIP_SCREENSPACE 1
+
+#define BRW_COMPAREFUNCTION_ALWAYS 0
+#define BRW_COMPAREFUNCTION_NEVER 1
+#define BRW_COMPAREFUNCTION_LESS 2
+#define BRW_COMPAREFUNCTION_EQUAL 3
+#define BRW_COMPAREFUNCTION_LEQUAL 4
+#define BRW_COMPAREFUNCTION_GREATER 5
+#define BRW_COMPAREFUNCTION_NOTEQUAL 6
+#define BRW_COMPAREFUNCTION_GEQUAL 7
+
+#define BRW_COVERAGE_PIXELS_HALF 0
+#define BRW_COVERAGE_PIXELS_1 1
+#define BRW_COVERAGE_PIXELS_2 2
+#define BRW_COVERAGE_PIXELS_4 3
+
+#define BRW_CULLMODE_BOTH 0
+#define BRW_CULLMODE_NONE 1
+#define BRW_CULLMODE_FRONT 2
+#define BRW_CULLMODE_BACK 3
+
+#define BRW_DEFAULTCOLOR_R8G8B8A8_UNORM 0
+#define BRW_DEFAULTCOLOR_R32G32B32A32_FLOAT 1
+
+#define BRW_DEPTHFORMAT_D32_FLOAT_S8X24_UINT 0
+#define BRW_DEPTHFORMAT_D32_FLOAT 1
+#define BRW_DEPTHFORMAT_D24_UNORM_S8_UINT 2
+#define BRW_DEPTHFORMAT_D16_UNORM 5
+
+#define BRW_FLOATING_POINT_IEEE_754 0
+#define BRW_FLOATING_POINT_NON_IEEE_754 1
+
+#define BRW_FRONTWINDING_CW 0
+#define BRW_FRONTWINDING_CCW 1
+
+#define BRW_INDEX_BYTE 0
+#define BRW_INDEX_WORD 1
+#define BRW_INDEX_DWORD 2
+
+#define BRW_LOGICOPFUNCTION_CLEAR 0
+#define BRW_LOGICOPFUNCTION_NOR 1
+#define BRW_LOGICOPFUNCTION_AND_INVERTED 2
+#define BRW_LOGICOPFUNCTION_COPY_INVERTED 3
+#define BRW_LOGICOPFUNCTION_AND_REVERSE 4
+#define BRW_LOGICOPFUNCTION_INVERT 5
+#define BRW_LOGICOPFUNCTION_XOR 6
+#define BRW_LOGICOPFUNCTION_NAND 7
+#define BRW_LOGICOPFUNCTION_AND 8
+#define BRW_LOGICOPFUNCTION_EQUIV 9
+#define BRW_LOGICOPFUNCTION_NOOP 10
+#define BRW_LOGICOPFUNCTION_OR_INVERTED 11
+#define BRW_LOGICOPFUNCTION_COPY 12
+#define BRW_LOGICOPFUNCTION_OR_REVERSE 13
+#define BRW_LOGICOPFUNCTION_OR 14
+#define BRW_LOGICOPFUNCTION_SET 15
+
+#define BRW_MAPFILTER_NEAREST 0x0
+#define BRW_MAPFILTER_LINEAR 0x1
+#define BRW_MAPFILTER_ANISOTROPIC 0x2
+
+#define BRW_MIPFILTER_NONE 0
+#define BRW_MIPFILTER_NEAREST 1
+#define BRW_MIPFILTER_LINEAR 3
+
+#define BRW_POLYGON_FRONT_FACING 0
+#define BRW_POLYGON_BACK_FACING 1
+
+#define BRW_PREFILTER_ALWAYS 0x0
+#define BRW_PREFILTER_NEVER 0x1
+#define BRW_PREFILTER_LESS 0x2
+#define BRW_PREFILTER_EQUAL 0x3
+#define BRW_PREFILTER_LEQUAL 0x4
+#define BRW_PREFILTER_GREATER 0x5
+#define BRW_PREFILTER_NOTEQUAL 0x6
+#define BRW_PREFILTER_GEQUAL 0x7
+
+#define BRW_PROVOKING_VERTEX_0 0
+#define BRW_PROVOKING_VERTEX_1 1
+#define BRW_PROVOKING_VERTEX_2 2
+
+#define BRW_RASTRULE_UPPER_LEFT 0
+#define BRW_RASTRULE_UPPER_RIGHT 1
+
+#define BRW_RENDERTARGET_CLAMPRANGE_UNORM 0
+#define BRW_RENDERTARGET_CLAMPRANGE_SNORM 1
+#define BRW_RENDERTARGET_CLAMPRANGE_FORMAT 2
+
+#define BRW_STENCILOP_KEEP 0
+#define BRW_STENCILOP_ZERO 1
+#define BRW_STENCILOP_REPLACE 2
+#define BRW_STENCILOP_INCRSAT 3
+#define BRW_STENCILOP_DECRSAT 4
+#define BRW_STENCILOP_INCR 5
+#define BRW_STENCILOP_DECR 6
+#define BRW_STENCILOP_INVERT 7
+
+#define BRW_SURFACE_MIPMAPLAYOUT_BELOW 0
+#define BRW_SURFACE_MIPMAPLAYOUT_RIGHT 1
+
+#define BRW_SURFACEFORMAT_R32G32B32A32_FLOAT 0x000
+#define BRW_SURFACEFORMAT_R32G32B32A32_SINT 0x001
+#define BRW_SURFACEFORMAT_R32G32B32A32_UINT 0x002
+#define BRW_SURFACEFORMAT_R32G32B32A32_UNORM 0x003
+#define BRW_SURFACEFORMAT_R32G32B32A32_SNORM 0x004
+#define BRW_SURFACEFORMAT_R64G64_FLOAT 0x005
+#define BRW_SURFACEFORMAT_R32G32B32X32_FLOAT 0x006
+#define BRW_SURFACEFORMAT_R32G32B32A32_SSCALED 0x007
+#define BRW_SURFACEFORMAT_R32G32B32A32_USCALED 0x008
+#define BRW_SURFACEFORMAT_R32G32B32_FLOAT 0x040
+#define BRW_SURFACEFORMAT_R32G32B32_SINT 0x041
+#define BRW_SURFACEFORMAT_R32G32B32_UINT 0x042
+#define BRW_SURFACEFORMAT_R32G32B32_UNORM 0x043
+#define BRW_SURFACEFORMAT_R32G32B32_SNORM 0x044
+#define BRW_SURFACEFORMAT_R32G32B32_SSCALED 0x045
+#define BRW_SURFACEFORMAT_R32G32B32_USCALED 0x046
+#define BRW_SURFACEFORMAT_R16G16B16A16_UNORM 0x080
+#define BRW_SURFACEFORMAT_R16G16B16A16_SNORM 0x081
+#define BRW_SURFACEFORMAT_R16G16B16A16_SINT 0x082
+#define BRW_SURFACEFORMAT_R16G16B16A16_UINT 0x083
+#define BRW_SURFACEFORMAT_R16G16B16A16_FLOAT 0x084
+#define BRW_SURFACEFORMAT_R32G32_FLOAT 0x085
+#define BRW_SURFACEFORMAT_R32G32_SINT 0x086
+#define BRW_SURFACEFORMAT_R32G32_UINT 0x087
+#define BRW_SURFACEFORMAT_R32_FLOAT_X8X24_TYPELESS 0x088
+#define BRW_SURFACEFORMAT_X32_TYPELESS_G8X24_UINT 0x089
+#define BRW_SURFACEFORMAT_L32A32_FLOAT 0x08A
+#define BRW_SURFACEFORMAT_R32G32_UNORM 0x08B
+#define BRW_SURFACEFORMAT_R32G32_SNORM 0x08C
+#define BRW_SURFACEFORMAT_R64_FLOAT 0x08D
+#define BRW_SURFACEFORMAT_R16G16B16X16_UNORM 0x08E
+#define BRW_SURFACEFORMAT_R16G16B16X16_FLOAT 0x08F
+#define BRW_SURFACEFORMAT_A32X32_FLOAT 0x090
+#define BRW_SURFACEFORMAT_L32X32_FLOAT 0x091
+#define BRW_SURFACEFORMAT_I32X32_FLOAT 0x092
+#define BRW_SURFACEFORMAT_R16G16B16A16_SSCALED 0x093
+#define BRW_SURFACEFORMAT_R16G16B16A16_USCALED 0x094
+#define BRW_SURFACEFORMAT_R32G32_SSCALED 0x095
+#define BRW_SURFACEFORMAT_R32G32_USCALED 0x096
+#define BRW_SURFACEFORMAT_B8G8R8A8_UNORM 0x0C0
+#define BRW_SURFACEFORMAT_B8G8R8A8_UNORM_SRGB 0x0C1
+#define BRW_SURFACEFORMAT_R10G10B10A2_UNORM 0x0C2
+#define BRW_SURFACEFORMAT_R10G10B10A2_UNORM_SRGB 0x0C3
+#define BRW_SURFACEFORMAT_R10G10B10A2_UINT 0x0C4
+#define BRW_SURFACEFORMAT_R10G10B10_SNORM_A2_UNORM 0x0C5
+#define BRW_SURFACEFORMAT_R8G8B8A8_UNORM 0x0C7
+#define BRW_SURFACEFORMAT_R8G8B8A8_UNORM_SRGB 0x0C8
+#define BRW_SURFACEFORMAT_R8G8B8A8_SNORM 0x0C9
+#define BRW_SURFACEFORMAT_R8G8B8A8_SINT 0x0CA
+#define BRW_SURFACEFORMAT_R8G8B8A8_UINT 0x0CB
+#define BRW_SURFACEFORMAT_R16G16_UNORM 0x0CC
+#define BRW_SURFACEFORMAT_R16G16_SNORM 0x0CD
+#define BRW_SURFACEFORMAT_R16G16_SINT 0x0CE
+#define BRW_SURFACEFORMAT_R16G16_UINT 0x0CF
+#define BRW_SURFACEFORMAT_R16G16_FLOAT 0x0D0
+#define BRW_SURFACEFORMAT_B10G10R10A2_UNORM 0x0D1
+#define BRW_SURFACEFORMAT_B10G10R10A2_UNORM_SRGB 0x0D2
+#define BRW_SURFACEFORMAT_R11G11B10_FLOAT 0x0D3
+#define BRW_SURFACEFORMAT_R32_SINT 0x0D6
+#define BRW_SURFACEFORMAT_R32_UINT 0x0D7
+#define BRW_SURFACEFORMAT_R32_FLOAT 0x0D8
+#define BRW_SURFACEFORMAT_R24_UNORM_X8_TYPELESS 0x0D9
+#define BRW_SURFACEFORMAT_X24_TYPELESS_G8_UINT 0x0DA
+#define BRW_SURFACEFORMAT_L16A16_UNORM 0x0DF
+#define BRW_SURFACEFORMAT_I24X8_UNORM 0x0E0
+#define BRW_SURFACEFORMAT_L24X8_UNORM 0x0E1
+#define BRW_SURFACEFORMAT_A24X8_UNORM 0x0E2
+#define BRW_SURFACEFORMAT_I32_FLOAT 0x0E3
+#define BRW_SURFACEFORMAT_L32_FLOAT 0x0E4
+#define BRW_SURFACEFORMAT_A32_FLOAT 0x0E5
+#define BRW_SURFACEFORMAT_B8G8R8X8_UNORM 0x0E9
+#define BRW_SURFACEFORMAT_B8G8R8X8_UNORM_SRGB 0x0EA
+#define BRW_SURFACEFORMAT_R8G8B8X8_UNORM 0x0EB
+#define BRW_SURFACEFORMAT_R8G8B8X8_UNORM_SRGB 0x0EC
+#define BRW_SURFACEFORMAT_R9G9B9E5_SHAREDEXP 0x0ED
+#define BRW_SURFACEFORMAT_B10G10R10X2_UNORM 0x0EE
+#define BRW_SURFACEFORMAT_L16A16_FLOAT 0x0F0
+#define BRW_SURFACEFORMAT_R32_UNORM 0x0F1
+#define BRW_SURFACEFORMAT_R32_SNORM 0x0F2
+#define BRW_SURFACEFORMAT_R10G10B10X2_USCALED 0x0F3
+#define BRW_SURFACEFORMAT_R8G8B8A8_SSCALED 0x0F4
+#define BRW_SURFACEFORMAT_R8G8B8A8_USCALED 0x0F5
+#define BRW_SURFACEFORMAT_R16G16_SSCALED 0x0F6
+#define BRW_SURFACEFORMAT_R16G16_USCALED 0x0F7
+#define BRW_SURFACEFORMAT_R32_SSCALED 0x0F8
+#define BRW_SURFACEFORMAT_R32_USCALED 0x0F9
+#define BRW_SURFACEFORMAT_B5G6R5_UNORM 0x100
+#define BRW_SURFACEFORMAT_B5G6R5_UNORM_SRGB 0x101
+#define BRW_SURFACEFORMAT_B5G5R5A1_UNORM 0x102
+#define BRW_SURFACEFORMAT_B5G5R5A1_UNORM_SRGB 0x103
+#define BRW_SURFACEFORMAT_B4G4R4A4_UNORM 0x104
+#define BRW_SURFACEFORMAT_B4G4R4A4_UNORM_SRGB 0x105
+#define BRW_SURFACEFORMAT_R8G8_UNORM 0x106
+#define BRW_SURFACEFORMAT_R8G8_SNORM 0x107
+#define BRW_SURFACEFORMAT_R8G8_SINT 0x108
+#define BRW_SURFACEFORMAT_R8G8_UINT 0x109
+#define BRW_SURFACEFORMAT_R16_UNORM 0x10A
+#define BRW_SURFACEFORMAT_R16_SNORM 0x10B
+#define BRW_SURFACEFORMAT_R16_SINT 0x10C
+#define BRW_SURFACEFORMAT_R16_UINT 0x10D
+#define BRW_SURFACEFORMAT_R16_FLOAT 0x10E
+#define BRW_SURFACEFORMAT_I16_UNORM 0x111
+#define BRW_SURFACEFORMAT_L16_UNORM 0x112
+#define BRW_SURFACEFORMAT_A16_UNORM 0x113
+#define BRW_SURFACEFORMAT_L8A8_UNORM 0x114
+#define BRW_SURFACEFORMAT_I16_FLOAT 0x115
+#define BRW_SURFACEFORMAT_L16_FLOAT 0x116
+#define BRW_SURFACEFORMAT_A16_FLOAT 0x117
+#define BRW_SURFACEFORMAT_R5G5_SNORM_B6_UNORM 0x119
+#define BRW_SURFACEFORMAT_B5G5R5X1_UNORM 0x11A
+#define BRW_SURFACEFORMAT_B5G5R5X1_UNORM_SRGB 0x11B
+#define BRW_SURFACEFORMAT_R8G8_SSCALED 0x11C
+#define BRW_SURFACEFORMAT_R8G8_USCALED 0x11D
+#define BRW_SURFACEFORMAT_R16_SSCALED 0x11E
+#define BRW_SURFACEFORMAT_R16_USCALED 0x11F
+#define BRW_SURFACEFORMAT_R8_UNORM 0x140
+#define BRW_SURFACEFORMAT_R8_SNORM 0x141
+#define BRW_SURFACEFORMAT_R8_SINT 0x142
+#define BRW_SURFACEFORMAT_R8_UINT 0x143
+#define BRW_SURFACEFORMAT_A8_UNORM 0x144
+#define BRW_SURFACEFORMAT_I8_UNORM 0x145
+#define BRW_SURFACEFORMAT_L8_UNORM 0x146
+#define BRW_SURFACEFORMAT_P4A4_UNORM 0x147
+#define BRW_SURFACEFORMAT_A4P4_UNORM 0x148
+#define BRW_SURFACEFORMAT_R8_SSCALED 0x149
+#define BRW_SURFACEFORMAT_R8_USCALED 0x14A
+#define BRW_SURFACEFORMAT_R1_UINT 0x181
+#define BRW_SURFACEFORMAT_YCRCB_NORMAL 0x182
+#define BRW_SURFACEFORMAT_YCRCB_SWAPUVY 0x183
+#define BRW_SURFACEFORMAT_BC1_UNORM 0x186
+#define BRW_SURFACEFORMAT_BC2_UNORM 0x187
+#define BRW_SURFACEFORMAT_BC3_UNORM 0x188
+#define BRW_SURFACEFORMAT_BC4_UNORM 0x189
+#define BRW_SURFACEFORMAT_BC5_UNORM 0x18A
+#define BRW_SURFACEFORMAT_BC1_UNORM_SRGB 0x18B
+#define BRW_SURFACEFORMAT_BC2_UNORM_SRGB 0x18C
+#define BRW_SURFACEFORMAT_BC3_UNORM_SRGB 0x18D
+#define BRW_SURFACEFORMAT_MONO8 0x18E
+#define BRW_SURFACEFORMAT_YCRCB_SWAPUV 0x18F
+#define BRW_SURFACEFORMAT_YCRCB_SWAPY 0x190
+#define BRW_SURFACEFORMAT_DXT1_RGB 0x191
+#define BRW_SURFACEFORMAT_FXT1 0x192
+#define BRW_SURFACEFORMAT_R8G8B8_UNORM 0x193
+#define BRW_SURFACEFORMAT_R8G8B8_SNORM 0x194
+#define BRW_SURFACEFORMAT_R8G8B8_SSCALED 0x195
+#define BRW_SURFACEFORMAT_R8G8B8_USCALED 0x196
+#define BRW_SURFACEFORMAT_R64G64B64A64_FLOAT 0x197
+#define BRW_SURFACEFORMAT_R64G64B64_FLOAT 0x198
+#define BRW_SURFACEFORMAT_BC4_SNORM 0x199
+#define BRW_SURFACEFORMAT_BC5_SNORM 0x19A
+#define BRW_SURFACEFORMAT_R16G16B16_UNORM 0x19C
+#define BRW_SURFACEFORMAT_R16G16B16_SNORM 0x19D
+#define BRW_SURFACEFORMAT_R16G16B16_SSCALED 0x19E
+#define BRW_SURFACEFORMAT_R16G16B16_USCALED 0x19F
+
+#define BRW_SURFACERETURNFORMAT_FLOAT32 0
+#define BRW_SURFACERETURNFORMAT_S1 1
+
+#define BRW_SURFACE_1D 0
+#define BRW_SURFACE_2D 1
+#define BRW_SURFACE_3D 2
+#define BRW_SURFACE_CUBE 3
+#define BRW_SURFACE_BUFFER 4
+#define BRW_SURFACE_NULL 7
+
+#define BRW_BORDER_COLOR_MODE_DEFAULT 0
+#define BRW_BORDER_COLOR_MODE_LEGACY 1
+
+#define BRW_TEXCOORDMODE_WRAP 0
+#define BRW_TEXCOORDMODE_MIRROR 1
+#define BRW_TEXCOORDMODE_CLAMP 2
+#define BRW_TEXCOORDMODE_CUBE 3
+#define BRW_TEXCOORDMODE_CLAMP_BORDER 4
+#define BRW_TEXCOORDMODE_MIRROR_ONCE 5
+
+#define BRW_THREAD_PRIORITY_NORMAL 0
+#define BRW_THREAD_PRIORITY_HIGH 1
+
+#define BRW_TILEWALK_XMAJOR 0
+#define BRW_TILEWALK_YMAJOR 1
+
+#define BRW_VERTEX_SUBPIXEL_PRECISION_8BITS 0
+#define BRW_VERTEX_SUBPIXEL_PRECISION_4BITS 1
+
+#define BRW_VERTEXBUFFER_ACCESS_VERTEXDATA 0
+#define BRW_VERTEXBUFFER_ACCESS_INSTANCEDATA 1
+
+#define BRW_VFCOMPONENT_NOSTORE 0
+#define BRW_VFCOMPONENT_STORE_SRC 1
+#define BRW_VFCOMPONENT_STORE_0 2
+#define BRW_VFCOMPONENT_STORE_1_FLT 3
+#define BRW_VFCOMPONENT_STORE_1_INT 4
+#define BRW_VFCOMPONENT_STORE_VID 5
+#define BRW_VFCOMPONENT_STORE_IID 6
+#define BRW_VFCOMPONENT_STORE_PID 7
+
+
+
+/* Execution Unit (EU) defines
+ */
+
+#define BRW_ALIGN_1 0
+#define BRW_ALIGN_16 1
+
+#define BRW_ADDRESS_DIRECT 0
+#define BRW_ADDRESS_REGISTER_INDIRECT_REGISTER 1
+
+#define BRW_CHANNEL_X 0
+#define BRW_CHANNEL_Y 1
+#define BRW_CHANNEL_Z 2
+#define BRW_CHANNEL_W 3
+
+#define BRW_COMPRESSION_NONE 0
+#define BRW_COMPRESSION_2NDHALF 1
+#define BRW_COMPRESSION_COMPRESSED 2
+
+#define BRW_CONDITIONAL_NONE 0
+#define BRW_CONDITIONAL_Z 1
+#define BRW_CONDITIONAL_NZ 2
+#define BRW_CONDITIONAL_EQ 1 /* Z */
+#define BRW_CONDITIONAL_NEQ 2 /* NZ */
+#define BRW_CONDITIONAL_G 3
+#define BRW_CONDITIONAL_GE 4
+#define BRW_CONDITIONAL_L 5
+#define BRW_CONDITIONAL_LE 6
+#define BRW_CONDITIONAL_C 7
+#define BRW_CONDITIONAL_O 8
+
+#define BRW_DEBUG_NONE 0
+#define BRW_DEBUG_BREAKPOINT 1
+
+#define BRW_DEPENDENCY_NORMAL 0
+#define BRW_DEPENDENCY_NOTCLEARED 1
+#define BRW_DEPENDENCY_NOTCHECKED 2
+#define BRW_DEPENDENCY_DISABLE 3
+
+#define BRW_EXECUTE_1 0
+#define BRW_EXECUTE_2 1
+#define BRW_EXECUTE_4 2
+#define BRW_EXECUTE_8 3
+#define BRW_EXECUTE_16 4
+#define BRW_EXECUTE_32 5
+
+#define BRW_HORIZONTAL_STRIDE_0 0
+#define BRW_HORIZONTAL_STRIDE_1 1
+#define BRW_HORIZONTAL_STRIDE_2 2
+#define BRW_HORIZONTAL_STRIDE_4 3
+
+#define BRW_INSTRUCTION_NORMAL 0
+#define BRW_INSTRUCTION_SATURATE 1
+
+#define BRW_MASK_ENABLE 0
+#define BRW_MASK_DISABLE 1
+
+#define BRW_OPCODE_MOV 1
+#define BRW_OPCODE_SEL 2
+#define BRW_OPCODE_NOT 4
+#define BRW_OPCODE_AND 5
+#define BRW_OPCODE_OR 6
+#define BRW_OPCODE_XOR 7
+#define BRW_OPCODE_SHR 8
+#define BRW_OPCODE_SHL 9
+#define BRW_OPCODE_RSR 10
+#define BRW_OPCODE_RSL 11
+#define BRW_OPCODE_ASR 12
+#define BRW_OPCODE_CMP 16
+#define BRW_OPCODE_JMPI 32
+#define BRW_OPCODE_IF 34
+#define BRW_OPCODE_IFF 35
+#define BRW_OPCODE_ELSE 36
+#define BRW_OPCODE_ENDIF 37
+#define BRW_OPCODE_DO 38
+#define BRW_OPCODE_WHILE 39
+#define BRW_OPCODE_BREAK 40
+#define BRW_OPCODE_CONTINUE 41
+#define BRW_OPCODE_HALT 42
+#define BRW_OPCODE_MSAVE 44
+#define BRW_OPCODE_MRESTORE 45
+#define BRW_OPCODE_PUSH 46
+#define BRW_OPCODE_POP 47
+#define BRW_OPCODE_WAIT 48
+#define BRW_OPCODE_SEND 49
+#define BRW_OPCODE_ADD 64
+#define BRW_OPCODE_MUL 65
+#define BRW_OPCODE_AVG 66
+#define BRW_OPCODE_FRC 67
+#define BRW_OPCODE_RNDU 68
+#define BRW_OPCODE_RNDD 69
+#define BRW_OPCODE_RNDE 70
+#define BRW_OPCODE_RNDZ 71
+#define BRW_OPCODE_MAC 72
+#define BRW_OPCODE_MACH 73
+#define BRW_OPCODE_LZD 74
+#define BRW_OPCODE_SAD2 80
+#define BRW_OPCODE_SADA2 81
+#define BRW_OPCODE_DP4 84
+#define BRW_OPCODE_DPH 85
+#define BRW_OPCODE_DP3 86
+#define BRW_OPCODE_DP2 87
+#define BRW_OPCODE_DPA2 88
+#define BRW_OPCODE_LINE 89
+#define BRW_OPCODE_NOP 126
+
+#define BRW_PREDICATE_NONE 0
+#define BRW_PREDICATE_NORMAL 1
+#define BRW_PREDICATE_ALIGN1_ANYV 2
+#define BRW_PREDICATE_ALIGN1_ALLV 3
+#define BRW_PREDICATE_ALIGN1_ANY2H 4
+#define BRW_PREDICATE_ALIGN1_ALL2H 5
+#define BRW_PREDICATE_ALIGN1_ANY4H 6
+#define BRW_PREDICATE_ALIGN1_ALL4H 7
+#define BRW_PREDICATE_ALIGN1_ANY8H 8
+#define BRW_PREDICATE_ALIGN1_ALL8H 9
+#define BRW_PREDICATE_ALIGN1_ANY16H 10
+#define BRW_PREDICATE_ALIGN1_ALL16H 11
+#define BRW_PREDICATE_ALIGN16_REPLICATE_X 2
+#define BRW_PREDICATE_ALIGN16_REPLICATE_Y 3
+#define BRW_PREDICATE_ALIGN16_REPLICATE_Z 4
+#define BRW_PREDICATE_ALIGN16_REPLICATE_W 5
+#define BRW_PREDICATE_ALIGN16_ANY4H 6
+#define BRW_PREDICATE_ALIGN16_ALL4H 7
+
+#define BRW_ARCHITECTURE_REGISTER_FILE 0
+#define BRW_GENERAL_REGISTER_FILE 1
+#define BRW_MESSAGE_REGISTER_FILE 2
+#define BRW_IMMEDIATE_VALUE 3
+
+#define BRW_REGISTER_TYPE_UD 0
+#define BRW_REGISTER_TYPE_D 1
+#define BRW_REGISTER_TYPE_UW 2
+#define BRW_REGISTER_TYPE_W 3
+#define BRW_REGISTER_TYPE_UB 4
+#define BRW_REGISTER_TYPE_B 5
+#define BRW_REGISTER_TYPE_VF 5 /* packed float vector, immediates only? */
+#define BRW_REGISTER_TYPE_HF 6
+#define BRW_REGISTER_TYPE_V 6 /* packed int vector, immediates only, uword dest only */
+#define BRW_REGISTER_TYPE_F 7
+
+#define BRW_ARF_NULL 0x00
+#define BRW_ARF_ADDRESS 0x10
+#define BRW_ARF_ACCUMULATOR 0x20
+#define BRW_ARF_FLAG 0x30
+#define BRW_ARF_MASK 0x40
+#define BRW_ARF_MASK_STACK 0x50
+#define BRW_ARF_MASK_STACK_DEPTH 0x60
+#define BRW_ARF_STATE 0x70
+#define BRW_ARF_CONTROL 0x80
+#define BRW_ARF_NOTIFICATION_COUNT 0x90
+#define BRW_ARF_IP 0xA0
+
+#define BRW_AMASK 0
+#define BRW_IMASK 1
+#define BRW_LMASK 2
+#define BRW_CMASK 3
+
+
+
+#define BRW_THREAD_NORMAL 0
+#define BRW_THREAD_ATOMIC 1
+#define BRW_THREAD_SWITCH 2
+
+#define BRW_VERTICAL_STRIDE_0 0
+#define BRW_VERTICAL_STRIDE_1 1
+#define BRW_VERTICAL_STRIDE_2 2
+#define BRW_VERTICAL_STRIDE_4 3
+#define BRW_VERTICAL_STRIDE_8 4
+#define BRW_VERTICAL_STRIDE_16 5
+#define BRW_VERTICAL_STRIDE_32 6
+#define BRW_VERTICAL_STRIDE_64 7
+#define BRW_VERTICAL_STRIDE_128 8
+#define BRW_VERTICAL_STRIDE_256 9
+#define BRW_VERTICAL_STRIDE_ONE_DIMENSIONAL 0xF
+
+#define BRW_WIDTH_1 0
+#define BRW_WIDTH_2 1
+#define BRW_WIDTH_4 2
+#define BRW_WIDTH_8 3
+#define BRW_WIDTH_16 4
+
+#define BRW_STATELESS_BUFFER_BOUNDARY_1K 0
+#define BRW_STATELESS_BUFFER_BOUNDARY_2K 1
+#define BRW_STATELESS_BUFFER_BOUNDARY_4K 2
+#define BRW_STATELESS_BUFFER_BOUNDARY_8K 3
+#define BRW_STATELESS_BUFFER_BOUNDARY_16K 4
+#define BRW_STATELESS_BUFFER_BOUNDARY_32K 5
+#define BRW_STATELESS_BUFFER_BOUNDARY_64K 6
+#define BRW_STATELESS_BUFFER_BOUNDARY_128K 7
+#define BRW_STATELESS_BUFFER_BOUNDARY_256K 8
+#define BRW_STATELESS_BUFFER_BOUNDARY_512K 9
+#define BRW_STATELESS_BUFFER_BOUNDARY_1M 10
+#define BRW_STATELESS_BUFFER_BOUNDARY_2M 11
+
+#define BRW_POLYGON_FACING_FRONT 0
+#define BRW_POLYGON_FACING_BACK 1
+
+#define BRW_MESSAGE_TARGET_NULL 0
+#define BRW_MESSAGE_TARGET_MATH 1
+#define BRW_MESSAGE_TARGET_SAMPLER 2
+#define BRW_MESSAGE_TARGET_GATEWAY 3
+#define BRW_MESSAGE_TARGET_DATAPORT_READ 4
+#define BRW_MESSAGE_TARGET_DATAPORT_WRITE 5
+#define BRW_MESSAGE_TARGET_URB 6
+#define BRW_MESSAGE_TARGET_THREAD_SPAWNER 7
+
+#define BRW_SAMPLER_RETURN_FORMAT_FLOAT32 0
+#define BRW_SAMPLER_RETURN_FORMAT_UINT32 2
+#define BRW_SAMPLER_RETURN_FORMAT_SINT32 3
+
+#define BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE 0
+#define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE 0
+#define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_BIAS 0
+#define BRW_SAMPLER_MESSAGE_SIMD8_KILLPIX 1
+#define BRW_SAMPLER_MESSAGE_SIMD4X2_SAMPLE_LOD 1
+#define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_LOD 1
+#define BRW_SAMPLER_MESSAGE_SIMD4X2_SAMPLE_GRADIENTS 2
+#define BRW_SAMPLER_MESSAGE_SIMD8_SAMPLE_GRADIENTS 2
+#define BRW_SAMPLER_MESSAGE_SIMD4X2_SAMPLE_COMPARE 0
+#define BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_COMPARE 2
+#define BRW_SAMPLER_MESSAGE_SIMD4X2_RESINFO 2
+#define BRW_SAMPLER_MESSAGE_SIMD8_RESINFO 2
+#define BRW_SAMPLER_MESSAGE_SIMD16_RESINFO 2
+#define BRW_SAMPLER_MESSAGE_SIMD4X2_LD 3
+#define BRW_SAMPLER_MESSAGE_SIMD8_LD 3
+#define BRW_SAMPLER_MESSAGE_SIMD16_LD 3
+
+#define BRW_DATAPORT_OWORD_BLOCK_1_OWORDLOW 0
+#define BRW_DATAPORT_OWORD_BLOCK_1_OWORDHIGH 1
+#define BRW_DATAPORT_OWORD_BLOCK_2_OWORDS 2
+#define BRW_DATAPORT_OWORD_BLOCK_4_OWORDS 3
+#define BRW_DATAPORT_OWORD_BLOCK_8_OWORDS 4
+
+#define BRW_DATAPORT_OWORD_DUAL_BLOCK_1OWORD 0
+#define BRW_DATAPORT_OWORD_DUAL_BLOCK_4OWORDS 2
+
+#define BRW_DATAPORT_DWORD_SCATTERED_BLOCK_8DWORDS 2
+#define BRW_DATAPORT_DWORD_SCATTERED_BLOCK_16DWORDS 3
+
+#define BRW_DATAPORT_READ_MESSAGE_OWORD_BLOCK_READ 0
+#define BRW_DATAPORT_READ_MESSAGE_OWORD_DUAL_BLOCK_READ 1
+#define BRW_DATAPORT_READ_MESSAGE_DWORD_BLOCK_READ 2
+#define BRW_DATAPORT_READ_MESSAGE_DWORD_SCATTERED_READ 3
+
+#define BRW_DATAPORT_READ_TARGET_DATA_CACHE 0
+#define BRW_DATAPORT_READ_TARGET_RENDER_CACHE 1
+#define BRW_DATAPORT_READ_TARGET_SAMPLER_CACHE 2
+
+#define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD16_SINGLE_SOURCE 0
+#define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD16_SINGLE_SOURCE_REPLICATED 1
+#define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD8_DUAL_SOURCE_SUBSPAN01 2
+#define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD8_DUAL_SOURCE_SUBSPAN23 3
+#define BRW_DATAPORT_RENDER_TARGET_WRITE_SIMD8_SINGLE_SOURCE_SUBSPAN01 4
+
+#define BRW_DATAPORT_WRITE_MESSAGE_OWORD_BLOCK_WRITE 0
+#define BRW_DATAPORT_WRITE_MESSAGE_OWORD_DUAL_BLOCK_WRITE 1
+#define BRW_DATAPORT_WRITE_MESSAGE_DWORD_BLOCK_WRITE 2
+#define BRW_DATAPORT_WRITE_MESSAGE_DWORD_SCATTERED_WRITE 3
+#define BRW_DATAPORT_WRITE_MESSAGE_RENDER_TARGET_WRITE 4
+#define BRW_DATAPORT_WRITE_MESSAGE_STREAMED_VERTEX_BUFFER_WRITE 5
+#define BRW_DATAPORT_WRITE_MESSAGE_FLUSH_RENDER_CACHE 7
+
+#define BRW_MATH_FUNCTION_INV 1
+#define BRW_MATH_FUNCTION_LOG 2
+#define BRW_MATH_FUNCTION_EXP 3
+#define BRW_MATH_FUNCTION_SQRT 4
+#define BRW_MATH_FUNCTION_RSQ 5
+#define BRW_MATH_FUNCTION_SIN 6 /* was 7 */
+#define BRW_MATH_FUNCTION_COS 7 /* was 8 */
+#define BRW_MATH_FUNCTION_SINCOS 8 /* was 6 */
+#define BRW_MATH_FUNCTION_TAN 9
+#define BRW_MATH_FUNCTION_POW 10
+#define BRW_MATH_FUNCTION_INT_DIV_QUOTIENT_AND_REMAINDER 11
+#define BRW_MATH_FUNCTION_INT_DIV_QUOTIENT 12
+#define BRW_MATH_FUNCTION_INT_DIV_REMAINDER 13
+
+#define BRW_MATH_INTEGER_UNSIGNED 0
+#define BRW_MATH_INTEGER_SIGNED 1
+
+#define BRW_MATH_PRECISION_FULL 0
+#define BRW_MATH_PRECISION_PARTIAL 1
+
+#define BRW_MATH_SATURATE_NONE 0
+#define BRW_MATH_SATURATE_SATURATE 1
+
+#define BRW_MATH_DATA_VECTOR 0
+#define BRW_MATH_DATA_SCALAR 1
+
+#define BRW_URB_OPCODE_WRITE 0
+
+#define BRW_URB_SWIZZLE_NONE 0
+#define BRW_URB_SWIZZLE_INTERLEAVE 1
+#define BRW_URB_SWIZZLE_TRANSPOSE 2
+
+#define BRW_SCRATCH_SPACE_SIZE_1K 0
+#define BRW_SCRATCH_SPACE_SIZE_2K 1
+#define BRW_SCRATCH_SPACE_SIZE_4K 2
+#define BRW_SCRATCH_SPACE_SIZE_8K 3
+#define BRW_SCRATCH_SPACE_SIZE_16K 4
+#define BRW_SCRATCH_SPACE_SIZE_32K 5
+#define BRW_SCRATCH_SPACE_SIZE_64K 6
+#define BRW_SCRATCH_SPACE_SIZE_128K 7
+#define BRW_SCRATCH_SPACE_SIZE_256K 8
+#define BRW_SCRATCH_SPACE_SIZE_512K 9
+#define BRW_SCRATCH_SPACE_SIZE_1M 10
+#define BRW_SCRATCH_SPACE_SIZE_2M 11
+
+
+
+
+#define CMD_URB_FENCE 0x6000
+#define CMD_CONST_BUFFER_STATE 0x6001
+#define CMD_CONST_BUFFER 0x6002
+
+#define CMD_STATE_BASE_ADDRESS 0x6101
+#define CMD_STATE_INSN_POINTER 0x6102
+#define CMD_PIPELINE_SELECT 0x6104
+
+#define CMD_PIPELINED_STATE_POINTERS 0x7800
+#define CMD_BINDING_TABLE_PTRS 0x7801
+#define CMD_VERTEX_BUFFER 0x7808
+#define CMD_VERTEX_ELEMENT 0x7809
+#define CMD_INDEX_BUFFER 0x780a
+#define CMD_VF_STATISTICS 0x780b
+
+#define CMD_DRAW_RECT 0x7900
+#define CMD_BLEND_CONSTANT_COLOR 0x7901
+#define CMD_CHROMA_KEY 0x7904
+#define CMD_DEPTH_BUFFER 0x7905
+#define CMD_POLY_STIPPLE_OFFSET 0x7906
+#define CMD_POLY_STIPPLE_PATTERN 0x7907
+#define CMD_LINE_STIPPLE_PATTERN 0x7908
+#define CMD_GLOBAL_DEPTH_OFFSET_CLAMP 0x7908
+
+#define CMD_PIPE_CONTROL 0x7a00
+
+#define CMD_3D_PRIM 0x7b00
+
+#define CMD_MI_FLUSH 0x0200
+
+
+/* Various values from the R0 vertex header:
+ */
+#define R02_PRIM_END 0x1
+#define R02_PRIM_START 0x2
+
+/* media pipeline */
+
+#define BRW_VFE_MODE_GENERIC 0x0
+#define BRW_VFE_MODE_VLD_MPEG2 0x1
+#define BRW_VFE_MODE_IS 0x2
+#define BRW_VFE_MODE_AVC_MC 0x4
+#define BRW_VFE_MODE_AVC_IT 0x7
+#define BRW_VFE_MODE_VC1_IT 0xB
+
+#define BRW_VFE_DEBUG_COUNTER_FREE 0
+#define BRW_VFE_DEBUG_COUNTER_FROZEN 1
+#define BRW_VFE_DEBUG_COUNTER_ONCE 2
+#define BRW_VFE_DEBUG_COUNTER_ALWAYS 3
+
+/* VLD_STATE */
+#define BRW_MPEG_TOP_FIELD 1
+#define BRW_MPEG_BOTTOM_FIELD 2
+#define BRW_MPEG_FRAME 3
+#define BRW_MPEG_QSCALE_LINEAR 0
+#define BRW_MPEG_QSCALE_NONLINEAR 1
+#define BRW_MPEG_ZIGZAG_SCAN 0
+#define BRW_MPEG_ALTER_VERTICAL_SCAN 1
+#define BRW_MPEG_I_PICTURE 1
+#define BRW_MPEG_P_PICTURE 2
+#define BRW_MPEG_B_PICTURE 3
+
+#endif
diff --git a/src/brw_structs.h b/src/brw_structs.h
new file mode 100644
index 0000000..fa7b58b
--- /dev/null
+++ b/src/brw_structs.h
@@ -0,0 +1,1595 @@
+ /**************************************************************************
+ *
+ * Copyright 2005 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ **************************************************************************/
+
+#ifndef BRW_STRUCTS_H
+#define BRW_STRUCTS_H
+
+/* Command packets:
+ */
+struct header
+{
+ unsigned int length:16;
+ unsigned int opcode:16;
+};
+
+
+union header_union
+{
+ struct header bits;
+ unsigned int dword;
+};
+
+struct brw_3d_control
+{
+ struct
+ {
+ unsigned int length:8;
+ unsigned int notify_enable:1;
+ unsigned int pad:3;
+ unsigned int wc_flush_enable:1;
+ unsigned int depth_stall_enable:1;
+ unsigned int operation:2;
+ unsigned int opcode:16;
+ } header;
+
+ struct
+ {
+ unsigned int pad:2;
+ unsigned int dest_addr_type:1;
+ unsigned int dest_addr:29;
+ } dest;
+
+ unsigned int dword2;
+ unsigned int dword3;
+};
+
+
+struct brw_3d_primitive
+{
+ struct
+ {
+ unsigned int length:8;
+ unsigned int pad:2;
+ unsigned int topology:5;
+ unsigned int indexed:1;
+ unsigned int opcode:16;
+ } header;
+
+ unsigned int verts_per_instance;
+ unsigned int start_vert_location;
+ unsigned int instance_count;
+ unsigned int start_instance_location;
+ unsigned int base_vert_location;
+};
+
+/* These seem to be passed around as function args, so it works out
+ * better to keep them as #defines:
+ */
+#define BRW_FLUSH_READ_CACHE 0x1
+#define BRW_FLUSH_STATE_CACHE 0x2
+#define BRW_INHIBIT_FLUSH_RENDER_CACHE 0x4
+#define BRW_FLUSH_SNAPSHOT_COUNTERS 0x8
+
+struct brw_mi_flush
+{
+ unsigned int flags:4;
+ unsigned int pad:12;
+ unsigned int opcode:16;
+};
+
+struct brw_vf_statistics
+{
+ unsigned int statistics_enable:1;
+ unsigned int pad:15;
+ unsigned int opcode:16;
+};
+
+
+
+struct brw_binding_table_pointers
+{
+ struct header header;
+ unsigned int vs;
+ unsigned int gs;
+ unsigned int clp;
+ unsigned int sf;
+ unsigned int wm;
+};
+
+
+struct brw_blend_constant_color
+{
+ struct header header;
+ float blend_constant_color[4];
+};
+
+
+struct brw_depthbuffer
+{
+ union header_union header;
+
+ union {
+ struct {
+ unsigned int pitch:18;
+ unsigned int format:3;
+ unsigned int pad:4;
+ unsigned int depth_offset_disable:1;
+ unsigned int tile_walk:1;
+ unsigned int tiled_surface:1;
+ unsigned int pad2:1;
+ unsigned int surface_type:3;
+ } bits;
+ unsigned int dword;
+ } dword1;
+
+ unsigned int dword2_base_addr;
+
+ union {
+ struct {
+ unsigned int pad:1;
+ unsigned int mipmap_layout:1;
+ unsigned int lod:4;
+ unsigned int width:13;
+ unsigned int height:13;
+ } bits;
+ unsigned int dword;
+ } dword3;
+
+ union {
+ struct {
+ unsigned int pad:12;
+ unsigned int min_array_element:9;
+ unsigned int depth:11;
+ } bits;
+ unsigned int dword;
+ } dword4;
+};
+
+struct brw_drawrect
+{
+ struct header header;
+ unsigned int xmin:16;
+ unsigned int ymin:16;
+ unsigned int xmax:16;
+ unsigned int ymax:16;
+ unsigned int xorg:16;
+ unsigned int yorg:16;
+};
+
+
+
+
+struct brw_global_depth_offset_clamp
+{
+ struct header header;
+ float depth_offset_clamp;
+};
+
+struct brw_indexbuffer
+{
+ union {
+ struct
+ {
+ unsigned int length:8;
+ unsigned int index_format:2;
+ unsigned int cut_index_enable:1;
+ unsigned int pad:5;
+ unsigned int opcode:16;
+ } bits;
+ unsigned int dword;
+
+ } header;
+
+ unsigned int buffer_start;
+ unsigned int buffer_end;
+};
+
+
+struct brw_line_stipple
+{
+ struct header header;
+
+ struct
+ {
+ unsigned int pattern:16;
+ unsigned int pad:16;
+ } bits0;
+
+ struct
+ {
+ unsigned int repeat_count:9;
+ unsigned int pad:7;
+ unsigned int inverse_repeat_count:16;
+ } bits1;
+};
+
+
+struct brw_pipelined_state_pointers
+{
+ struct header header;
+
+ struct {
+ unsigned int pad:5;
+ unsigned int offset:27;
+ } vs;
+
+ struct
+ {
+ unsigned int enable:1;
+ unsigned int pad:4;
+ unsigned int offset:27;
+ } gs;
+
+ struct
+ {
+ unsigned int enable:1;
+ unsigned int pad:4;
+ unsigned int offset:27;
+ } clp;
+
+ struct
+ {
+ unsigned int pad:5;
+ unsigned int offset:27;
+ } sf;
+
+ struct
+ {
+ unsigned int pad:5;
+ unsigned int offset:27;
+ } wm;
+
+ struct
+ {
+ unsigned int pad:5;
+ unsigned int offset:27; /* KW: check me! */
+ } cc;
+};
+
+
+struct brw_polygon_stipple_offset
+{
+ struct header header;
+
+ struct {
+ unsigned int y_offset:5;
+ unsigned int pad:3;
+ unsigned int x_offset:5;
+ unsigned int pad0:19;
+ } bits0;
+};
+
+
+
+struct brw_polygon_stipple
+{
+ struct header header;
+ unsigned int stipple[32];
+};
+
+
+
+struct brw_pipeline_select
+{
+ struct
+ {
+ unsigned int pipeline_select:1;
+ unsigned int pad:15;
+ unsigned int opcode:16;
+ } header;
+};
+
+
+struct brw_pipe_control
+{
+ struct
+ {
+ unsigned int length:8;
+ unsigned int notify_enable:1;
+ unsigned int pad:2;
+ unsigned int instruction_state_cache_flush_enable:1;
+ unsigned int write_cache_flush_enable:1;
+ unsigned int depth_stall_enable:1;
+ unsigned int post_sync_operation:2;
+
+ unsigned int opcode:16;
+ } header;
+
+ struct
+ {
+ unsigned int pad:2;
+ unsigned int dest_addr_type:1;
+ unsigned int dest_addr:29;
+ } bits1;
+
+ unsigned int data0;
+ unsigned int data1;
+};
+
+
+struct brw_urb_fence
+{
+ struct
+ {
+ unsigned int length:8;
+ unsigned int vs_realloc:1;
+ unsigned int gs_realloc:1;
+ unsigned int clp_realloc:1;
+ unsigned int sf_realloc:1;
+ unsigned int vfe_realloc:1;
+ unsigned int cs_realloc:1;
+ unsigned int pad:2;
+ unsigned int opcode:16;
+ } header;
+
+ struct
+ {
+ unsigned int vs_fence:10;
+ unsigned int gs_fence:10;
+ unsigned int clp_fence:10;
+ unsigned int pad:2;
+ } bits0;
+
+ struct
+ {
+ unsigned int sf_fence:10;
+ unsigned int vf_fence:10;
+ unsigned int cs_fence:10;
+ unsigned int pad:2;
+ } bits1;
+};
+
+struct brw_constant_buffer_state /* previously brw_command_streamer */
+{
+ struct header header;
+
+ struct
+ {
+ unsigned int nr_urb_entries:3;
+ unsigned int pad:1;
+ unsigned int urb_entry_size:5;
+ unsigned int pad0:23;
+ } bits0;
+};
+
+struct brw_constant_buffer
+{
+ struct
+ {
+ unsigned int length:8;
+ unsigned int valid:1;
+ unsigned int pad:7;
+ unsigned int opcode:16;
+ } header;
+
+ struct
+ {
+ unsigned int buffer_length:6;
+ unsigned int buffer_address:26;
+ } bits0;
+};
+
+struct brw_state_base_address
+{
+ struct header header;
+
+ struct
+ {
+ unsigned int modify_enable:1;
+ unsigned int pad:4;
+ unsigned int general_state_address:27;
+ } bits0;
+
+ struct
+ {
+ unsigned int modify_enable:1;
+ unsigned int pad:4;
+ unsigned int surface_state_address:27;
+ } bits1;
+
+ struct
+ {
+ unsigned int modify_enable:1;
+ unsigned int pad:4;
+ unsigned int indirect_object_state_address:27;
+ } bits2;
+
+ struct
+ {
+ unsigned int modify_enable:1;
+ unsigned int pad:11;
+ unsigned int general_state_upper_bound:20;
+ } bits3;
+
+ struct
+ {
+ unsigned int modify_enable:1;
+ unsigned int pad:11;
+ unsigned int indirect_object_state_upper_bound:20;
+ } bits4;
+};
+
+struct brw_state_prefetch
+{
+ struct header header;
+
+ struct
+ {
+ unsigned int prefetch_count:3;
+ unsigned int pad:3;
+ unsigned int prefetch_pointer:26;
+ } bits0;
+};
+
+struct brw_system_instruction_pointer
+{
+ struct header header;
+
+ struct
+ {
+ unsigned int pad:4;
+ unsigned int system_instruction_pointer:28;
+ } bits0;
+};
+
+
+
+
+/* State structs for the various fixed function units:
+ */
+
+
+struct thread0
+{
+ unsigned int pad0:1;
+ unsigned int grf_reg_count:3;
+ unsigned int pad1:2;
+ unsigned int kernel_start_pointer:26;
+};
+
+struct thread1
+{
+ unsigned int ext_halt_exception_enable:1;
+ unsigned int sw_exception_enable:1;
+ unsigned int mask_stack_exception_enable:1;
+ unsigned int timeout_exception_enable:1;
+ unsigned int illegal_op_exception_enable:1;
+ unsigned int pad0:3;
+ unsigned int depth_coef_urb_read_offset:6; /* WM only */
+ unsigned int pad1:2;
+ unsigned int floating_point_mode:1;
+ unsigned int thread_priority:1;
+ unsigned int binding_table_entry_count:8;
+ unsigned int pad3:5;
+ unsigned int single_program_flow:1;
+};
+
+struct thread2
+{
+ unsigned int per_thread_scratch_space:4;
+ unsigned int pad0:6;
+ unsigned int scratch_space_base_pointer:22;
+};
+
+
+struct thread3
+{
+ unsigned int dispatch_grf_start_reg:4;
+ unsigned int urb_entry_read_offset:6;
+ unsigned int pad0:1;
+ unsigned int urb_entry_read_length:6;
+ unsigned int pad1:1;
+ unsigned int const_urb_entry_read_offset:6;
+ unsigned int pad2:1;
+ unsigned int const_urb_entry_read_length:6;
+ unsigned int pad3:1;
+};
+
+
+
+struct brw_clip_unit_state
+{
+ struct thread0 thread0;
+ struct thread1 thread1;
+ struct thread2 thread2;
+ struct thread3 thread3;
+
+ struct
+ {
+ unsigned int pad0:9;
+ unsigned int gs_output_stats:1; /* not always */
+ unsigned int stats_enable:1;
+ unsigned int nr_urb_entries:7;
+ unsigned int pad1:1;
+ unsigned int urb_entry_allocation_size:5;
+ unsigned int pad2:1;
+ unsigned int max_threads:6; /* may be less */
+ unsigned int pad3:1;
+ } thread4;
+
+ struct
+ {
+ unsigned int pad0:13;
+ unsigned int clip_mode:3;
+ unsigned int userclip_enable_flags:8;
+ unsigned int userclip_must_clip:1;
+ unsigned int pad1:1;
+ unsigned int guard_band_enable:1;
+ unsigned int viewport_z_clip_enable:1;
+ unsigned int viewport_xy_clip_enable:1;
+ unsigned int vertex_position_space:1;
+ unsigned int api_mode:1;
+ unsigned int pad2:1;
+ } clip5;
+
+ struct
+ {
+ unsigned int pad0:5;
+ unsigned int clipper_viewport_state_ptr:27;
+ } clip6;
+
+
+ float viewport_xmin;
+ float viewport_xmax;
+ float viewport_ymin;
+ float viewport_ymax;
+};
+
+
+
+struct brw_cc_unit_state
+{
+ struct
+ {
+ unsigned int pad0:3;
+ unsigned int bf_stencil_pass_depth_pass_op:3;
+ unsigned int bf_stencil_pass_depth_fail_op:3;
+ unsigned int bf_stencil_fail_op:3;
+ unsigned int bf_stencil_func:3;
+ unsigned int bf_stencil_enable:1;
+ unsigned int pad1:2;
+ unsigned int stencil_write_enable:1;
+ unsigned int stencil_pass_depth_pass_op:3;
+ unsigned int stencil_pass_depth_fail_op:3;
+ unsigned int stencil_fail_op:3;
+ unsigned int stencil_func:3;
+ unsigned int stencil_enable:1;
+ } cc0;
+
+
+ struct
+ {
+ unsigned int bf_stencil_ref:8;
+ unsigned int stencil_write_mask:8;
+ unsigned int stencil_test_mask:8;
+ unsigned int stencil_ref:8;
+ } cc1;
+
+
+ struct
+ {
+ unsigned int logicop_enable:1;
+ unsigned int pad0:10;
+ unsigned int depth_write_enable:1;
+ unsigned int depth_test_function:3;
+ unsigned int depth_test:1;
+ unsigned int bf_stencil_write_mask:8;
+ unsigned int bf_stencil_test_mask:8;
+ } cc2;
+
+
+ struct
+ {
+ unsigned int pad0:8;
+ unsigned int alpha_test_func:3;
+ unsigned int alpha_test:1;
+ unsigned int blend_enable:1;
+ unsigned int ia_blend_enable:1;
+ unsigned int pad1:1;
+ unsigned int alpha_test_format:1;
+ unsigned int pad2:16;
+ } cc3;
+
+ struct
+ {
+ unsigned int pad0:5;
+ unsigned int cc_viewport_state_offset:27;
+ } cc4;
+
+ struct
+ {
+ unsigned int pad0:2;
+ unsigned int ia_dest_blend_factor:5;
+ unsigned int ia_src_blend_factor:5;
+ unsigned int ia_blend_function:3;
+ unsigned int statistics_enable:1;
+ unsigned int logicop_func:4;
+ unsigned int pad1:11;
+ unsigned int dither_enable:1;
+ } cc5;
+
+ struct
+ {
+ unsigned int clamp_post_alpha_blend:1;
+ unsigned int clamp_pre_alpha_blend:1;
+ unsigned int clamp_range:2;
+ unsigned int pad0:11;
+ unsigned int y_dither_offset:2;
+ unsigned int x_dither_offset:2;
+ unsigned int dest_blend_factor:5;
+ unsigned int src_blend_factor:5;
+ unsigned int blend_function:3;
+ } cc6;
+
+ struct {
+ union {
+ float f;
+ unsigned char ub[4];
+ } alpha_ref;
+ } cc7;
+};
+
+
+
+struct brw_sf_unit_state
+{
+ struct thread0 thread0;
+ struct {
+ unsigned int pad0:7;
+ unsigned int sw_exception_enable:1;
+ unsigned int pad1:3;
+ unsigned int mask_stack_exception_enable:1;
+ unsigned int pad2:1;
+ unsigned int illegal_op_exception_enable:1;
+ unsigned int pad3:2;
+ unsigned int floating_point_mode:1;
+ unsigned int thread_priority:1;
+ unsigned int binding_table_entry_count:8;
+ unsigned int pad4:5;
+ unsigned int single_program_flow:1;
+ } sf1;
+
+ struct thread2 thread2;
+ struct thread3 thread3;
+
+ struct
+ {
+ unsigned int pad0:10;
+ unsigned int stats_enable:1;
+ unsigned int nr_urb_entries:7;
+ unsigned int pad1:1;
+ unsigned int urb_entry_allocation_size:5;
+ unsigned int pad2:1;
+ unsigned int max_threads:6;
+ unsigned int pad3:1;
+ } thread4;
+
+ struct
+ {
+ unsigned int front_winding:1;
+ unsigned int viewport_transform:1;
+ unsigned int pad0:3;
+ unsigned int sf_viewport_state_offset:27;
+ } sf5;
+
+ struct
+ {
+ unsigned int pad0:9;
+ unsigned int dest_org_vbias:4;
+ unsigned int dest_org_hbias:4;
+ unsigned int scissor:1;
+ unsigned int disable_2x2_trifilter:1;
+ unsigned int disable_zero_pix_trifilter:1;
+ unsigned int point_rast_rule:2;
+ unsigned int line_endcap_aa_region_width:2;
+ unsigned int line_width:4;
+ unsigned int fast_scissor_disable:1;
+ unsigned int cull_mode:2;
+ unsigned int aa_enable:1;
+ } sf6;
+
+ struct
+ {
+ unsigned int point_size:11;
+ unsigned int use_point_size_state:1;
+ unsigned int subpixel_precision:1;
+ unsigned int sprite_point:1;
+ unsigned int pad0:11;
+ unsigned int trifan_pv:2;
+ unsigned int linestrip_pv:2;
+ unsigned int tristrip_pv:2;
+ unsigned int line_last_pixel_enable:1;
+ } sf7;
+
+};
+
+
+struct brw_gs_unit_state
+{
+ struct thread0 thread0;
+ struct thread1 thread1;
+ struct thread2 thread2;
+ struct thread3 thread3;
+
+ struct
+ {
+ unsigned int pad0:10;
+ unsigned int stats_enable:1;
+ unsigned int nr_urb_entries:7;
+ unsigned int pad1:1;
+ unsigned int urb_entry_allocation_size:5;
+ unsigned int pad2:1;
+ unsigned int max_threads:1;
+ unsigned int pad3:6;
+ } thread4;
+
+ struct
+ {
+ unsigned int sampler_count:3;
+ unsigned int pad0:2;
+ unsigned int sampler_state_pointer:27;
+ } gs5;
+
+
+ struct
+ {
+ unsigned int max_vp_index:4;
+ unsigned int pad0:26;
+ unsigned int reorder_enable:1;
+ unsigned int pad1:1;
+ } gs6;
+};
+
+
+struct brw_vs_unit_state
+{
+ struct thread0 thread0;
+ struct thread1 thread1;
+ struct thread2 thread2;
+ struct thread3 thread3;
+
+ struct
+ {
+ unsigned int pad0:10;
+ unsigned int stats_enable:1;
+ unsigned int nr_urb_entries:7;
+ unsigned int pad1:1;
+ unsigned int urb_entry_allocation_size:5;
+ unsigned int pad2:1;
+ unsigned int max_threads:4;
+ unsigned int pad3:3;
+ } thread4;
+
+ struct
+ {
+ unsigned int sampler_count:3;
+ unsigned int pad0:2;
+ unsigned int sampler_state_pointer:27;
+ } vs5;
+
+ struct
+ {
+ unsigned int vs_enable:1;
+ unsigned int vert_cache_disable:1;
+ unsigned int pad0:30;
+ } vs6;
+};
+
+
+struct brw_wm_unit_state
+{
+ struct thread0 thread0;
+ struct thread1 thread1;
+ struct thread2 thread2;
+ struct thread3 thread3;
+
+ struct {
+ unsigned int stats_enable:1;
+ unsigned int pad0:1;
+ unsigned int sampler_count:3;
+ unsigned int sampler_state_pointer:27;
+ } wm4;
+
+ struct
+ {
+ unsigned int enable_8_pix:1;
+ unsigned int enable_16_pix:1;
+ unsigned int enable_32_pix:1;
+ unsigned int pad0:7;
+ unsigned int legacy_global_depth_bias:1;
+ unsigned int line_stipple:1;
+ unsigned int depth_offset:1;
+ unsigned int polygon_stipple:1;
+ unsigned int line_aa_region_width:2;
+ unsigned int line_endcap_aa_region_width:2;
+ unsigned int early_depth_test:1;
+ unsigned int thread_dispatch_enable:1;
+ unsigned int program_uses_depth:1;
+ unsigned int program_computes_depth:1;
+ unsigned int program_uses_killpixel:1;
+ unsigned int legacy_line_rast: 1;
+ unsigned int transposed_urb_read:1;
+ unsigned int max_threads:7;
+ } wm5;
+
+ float global_depth_offset_constant;
+ float global_depth_offset_scale;
+
+ struct {
+ unsigned int pad0:1;
+ unsigned int grf_reg_count_1:3;
+ unsigned int pad1:2;
+ unsigned int kernel_start_pointer_1:26;
+ } wm8;
+
+ struct {
+ unsigned int pad0:1;
+ unsigned int grf_reg_count_2:3;
+ unsigned int pad1:2;
+ unsigned int kernel_start_pointer_2:26;
+ } wm9;
+
+ struct {
+ unsigned int pad0:1;
+ unsigned int grf_reg_count_3:3;
+ unsigned int pad1:2;
+ unsigned int kernel_start_pointer_3:26;
+ } wm10;
+};
+
+struct brw_wm_unit_state_padded {
+ struct brw_wm_unit_state state;
+ char pad[64 - sizeof(struct brw_wm_unit_state)];
+};
+
+/* The hardware supports two different modes for border color. The
+ * default (OpenGL) mode uses floating-point color channels, while the
+ * legacy mode uses 4 bytes.
+ *
+ * More significantly, the legacy mode respects the components of the
+ * border color for channels not present in the source, (whereas the
+ * default mode will ignore the border color's alpha channel and use
+ * alpha==1 for an RGB source, for example).
+ *
+ * The legacy mode matches the semantics specified by the Render
+ * extension.
+ */
+struct brw_sampler_default_border_color {
+ float color[4];
+};
+
+struct brw_sampler_legacy_border_color {
+ uint8_t color[4];
+};
+
+struct brw_sampler_state
+{
+
+ struct
+ {
+ unsigned int shadow_function:3;
+ unsigned int lod_bias:11;
+ unsigned int min_filter:3;
+ unsigned int mag_filter:3;
+ unsigned int mip_filter:2;
+ unsigned int base_level:5;
+ unsigned int pad:1;
+ unsigned int lod_preclamp:1;
+ unsigned int border_color_mode:1;
+ unsigned int pad0:1;
+ unsigned int disable:1;
+ } ss0;
+
+ struct
+ {
+ unsigned int r_wrap_mode:3;
+ unsigned int t_wrap_mode:3;
+ unsigned int s_wrap_mode:3;
+ unsigned int pad:3;
+ unsigned int max_lod:10;
+ unsigned int min_lod:10;
+ } ss1;
+
+
+ struct
+ {
+ unsigned int pad:5;
+ unsigned int border_color_pointer:27;
+ } ss2;
+
+ struct
+ {
+ unsigned int pad:19;
+ unsigned int max_aniso:3;
+ unsigned int chroma_key_mode:1;
+ unsigned int chroma_key_index:2;
+ unsigned int chroma_key_enable:1;
+ unsigned int monochrome_filter_width:3;
+ unsigned int monochrome_filter_height:3;
+ } ss3;
+};
+
+
+struct brw_clipper_viewport
+{
+ float xmin;
+ float xmax;
+ float ymin;
+ float ymax;
+};
+
+struct brw_cc_viewport
+{
+ float min_depth;
+ float max_depth;
+};
+
+struct brw_sf_viewport
+{
+ struct {
+ float m00;
+ float m11;
+ float m22;
+ float m30;
+ float m31;
+ float m32;
+ } viewport;
+
+ struct {
+ short xmin;
+ short ymin;
+ short xmax;
+ short ymax;
+ } scissor;
+};
+
+/* Documented in the subsystem/shared-functions/sampler chapter...
+ */
+struct brw_surface_state
+{
+ struct {
+ unsigned int cube_pos_z:1;
+ unsigned int cube_neg_z:1;
+ unsigned int cube_pos_y:1;
+ unsigned int cube_neg_y:1;
+ unsigned int cube_pos_x:1;
+ unsigned int cube_neg_x:1;
+ unsigned int pad:3;
+ unsigned int render_cache_read_mode:1;
+ unsigned int mipmap_layout_mode:1;
+ unsigned int vert_line_stride_ofs:1;
+ unsigned int vert_line_stride:1;
+ unsigned int color_blend:1;
+ unsigned int writedisable_blue:1;
+ unsigned int writedisable_green:1;
+ unsigned int writedisable_red:1;
+ unsigned int writedisable_alpha:1;
+ unsigned int surface_format:9;
+ unsigned int data_return_format:1;
+ unsigned int pad0:1;
+ unsigned int surface_type:3;
+ } ss0;
+
+ struct {
+ unsigned int base_addr;
+ } ss1;
+
+ struct {
+ unsigned int render_target_rotation:2;
+ unsigned int mip_count:4;
+ unsigned int width:13;
+ unsigned int height:13;
+ } ss2;
+
+ struct {
+ unsigned int tile_walk:1;
+ unsigned int tiled_surface:1;
+ unsigned int pad:1;
+ unsigned int pitch:18;
+ unsigned int depth:11;
+ } ss3;
+
+ struct {
+ unsigned int pad:19;
+ unsigned int min_array_elt:9;
+ unsigned int min_lod:4;
+ } ss4;
+
+ struct {
+ unsigned int pad:20;
+ unsigned int y_offset:4;
+ unsigned int pad2:1;
+ unsigned int x_offset:7;
+ } ss5;
+};
+
+
+
+struct brw_vertex_buffer_state
+{
+ struct {
+ unsigned int pitch:11;
+ unsigned int pad:15;
+ unsigned int access_type:1;
+ unsigned int vb_index:5;
+ } vb0;
+
+ unsigned int start_addr;
+ unsigned int max_index;
+#if 1
+ unsigned int instance_data_step_rate; /* not included for sequential/random vertices? */
+#endif
+};
+
+#define BRW_VBP_MAX 17
+
+struct brw_vb_array_state {
+ struct header header;
+ struct brw_vertex_buffer_state vb[BRW_VBP_MAX];
+};
+
+
+struct brw_vertex_element_state
+{
+ struct
+ {
+ unsigned int src_offset:11;
+ unsigned int pad:5;
+ unsigned int src_format:9;
+ unsigned int pad0:1;
+ unsigned int valid:1;
+ unsigned int vertex_buffer_index:5;
+ } ve0;
+
+ struct
+ {
+ unsigned int dst_offset:8;
+ unsigned int pad:8;
+ unsigned int vfcomponent3:4;
+ unsigned int vfcomponent2:4;
+ unsigned int vfcomponent1:4;
+ unsigned int vfcomponent0:4;
+ } ve1;
+};
+
+#define BRW_VEP_MAX 18
+
+struct brw_vertex_element_packet {
+ struct header header;
+ struct brw_vertex_element_state ve[BRW_VEP_MAX]; /* note: less than _TNL_ATTRIB_MAX */
+};
+
+
+struct brw_urb_immediate {
+ unsigned int opcode:4;
+ unsigned int offset:6;
+ unsigned int swizzle_control:2;
+ unsigned int pad:1;
+ unsigned int allocate:1;
+ unsigned int used:1;
+ unsigned int complete:1;
+ unsigned int response_length:4;
+ unsigned int msg_length:4;
+ unsigned int msg_target:4;
+ unsigned int pad1:3;
+ unsigned int end_of_thread:1;
+};
+
+/* Instruction format for the execution units:
+ */
+
+struct brw_instruction
+{
+ struct
+ {
+ unsigned int opcode:7;
+ unsigned int pad:1;
+ unsigned int access_mode:1;
+ unsigned int mask_control:1;
+ unsigned int dependency_control:2;
+ unsigned int compression_control:2;
+ unsigned int thread_control:2;
+ unsigned int predicate_control:4;
+ unsigned int predicate_inverse:1;
+ unsigned int execution_size:3;
+ unsigned int destreg__conditonalmod:4; /* destreg - send, conditionalmod - others */
+ unsigned int pad0:2;
+ unsigned int debug_control:1;
+ unsigned int saturate:1;
+ } header;
+
+ union {
+ struct
+ {
+ unsigned int dest_reg_file:2;
+ unsigned int dest_reg_type:3;
+ unsigned int src0_reg_file:2;
+ unsigned int src0_reg_type:3;
+ unsigned int src1_reg_file:2;
+ unsigned int src1_reg_type:3;
+ unsigned int pad:1;
+ unsigned int dest_subreg_nr:5;
+ unsigned int dest_reg_nr:8;
+ unsigned int dest_horiz_stride:2;
+ unsigned int dest_address_mode:1;
+ } da1;
+
+ struct
+ {
+ unsigned int dest_reg_file:2;
+ unsigned int dest_reg_type:3;
+ unsigned int src0_reg_file:2;
+ unsigned int src0_reg_type:3;
+ unsigned int pad:6;
+ int dest_indirect_offset:10; /* offset against the deref'd address reg */
+ unsigned int dest_subreg_nr:3; /* subnr for the address reg a0.x */
+ unsigned int dest_horiz_stride:2;
+ unsigned int dest_address_mode:1;
+ } ia1;
+
+ struct
+ {
+ unsigned int dest_reg_file:2;
+ unsigned int dest_reg_type:3;
+ unsigned int src0_reg_file:2;
+ unsigned int src0_reg_type:3;
+ unsigned int src1_reg_file:2;
+ unsigned int src1_reg_type:3;
+ unsigned int pad0:1;
+ unsigned int dest_writemask:4;
+ unsigned int dest_subreg_nr:1;
+ unsigned int dest_reg_nr:8;
+ unsigned int pad1:2;
+ unsigned int dest_address_mode:1;
+ } da16;
+
+ struct
+ {
+ unsigned int dest_reg_file:2;
+ unsigned int dest_reg_type:3;
+ unsigned int src0_reg_file:2;
+ unsigned int src0_reg_type:3;
+ unsigned int pad0:6;
+ unsigned int dest_writemask:4;
+ int dest_indirect_offset:6;
+ unsigned int dest_subreg_nr:3;
+ unsigned int pad1:2;
+ unsigned int dest_address_mode:1;
+ } ia16;
+ } bits1;
+
+
+ union {
+ struct
+ {
+ unsigned int src0_subreg_nr:5;
+ unsigned int src0_reg_nr:8;
+ unsigned int src0_abs:1;
+ unsigned int src0_negate:1;
+ unsigned int src0_address_mode:1;
+ unsigned int src0_horiz_stride:2;
+ unsigned int src0_width:3;
+ unsigned int src0_vert_stride:4;
+ unsigned int flag_reg_nr:1;
+ unsigned int pad:6;
+ } da1;
+
+ struct
+ {
+ int src0_indirect_offset:10;
+ unsigned int src0_subreg_nr:3;
+ unsigned int src0_abs:1;
+ unsigned int src0_negate:1;
+ unsigned int src0_address_mode:1;
+ unsigned int src0_horiz_stride:2;
+ unsigned int src0_width:3;
+ unsigned int src0_vert_stride:4;
+ unsigned int flag_reg_nr:1;
+ unsigned int pad:6;
+ } ia1;
+
+ struct
+ {
+ unsigned int src0_swz_x:2;
+ unsigned int src0_swz_y:2;
+ unsigned int src0_subreg_nr:1;
+ unsigned int src0_reg_nr:8;
+ unsigned int src0_abs:1;
+ unsigned int src0_negate:1;
+ unsigned int src0_address_mode:1;
+ unsigned int src0_swz_z:2;
+ unsigned int src0_swz_w:2;
+ unsigned int pad0:1;
+ unsigned int src0_vert_stride:4;
+ unsigned int flag_reg_nr:1;
+ unsigned int pad1:6;
+ } da16;
+
+ struct
+ {
+ unsigned int src0_swz_x:2;
+ unsigned int src0_swz_y:2;
+ int src0_indirect_offset:6;
+ unsigned int src0_subreg_nr:3;
+ unsigned int src0_abs:1;
+ unsigned int src0_negate:1;
+ unsigned int src0_address_mode:1;
+ unsigned int src0_swz_z:2;
+ unsigned int src0_swz_w:2;
+ unsigned int pad0:1;
+ unsigned int src0_vert_stride:4;
+ unsigned int flag_reg_nr:1;
+ unsigned int pad1:6;
+ } ia16;
+
+ } bits2;
+
+ union
+ {
+ struct
+ {
+ unsigned int src1_subreg_nr:5;
+ unsigned int src1_reg_nr:8;
+ unsigned int src1_abs:1;
+ unsigned int src1_negate:1;
+ unsigned int pad:1;
+ unsigned int src1_horiz_stride:2;
+ unsigned int src1_width:3;
+ unsigned int src1_vert_stride:4;
+ unsigned int pad0:7;
+ } da1;
+
+ struct
+ {
+ unsigned int src1_swz_x:2;
+ unsigned int src1_swz_y:2;
+ unsigned int src1_subreg_nr:1;
+ unsigned int src1_reg_nr:8;
+ unsigned int src1_abs:1;
+ unsigned int src1_negate:1;
+ unsigned int pad0:1;
+ unsigned int src1_swz_z:2;
+ unsigned int src1_swz_w:2;
+ unsigned int pad1:1;
+ unsigned int src1_vert_stride:4;
+ unsigned int pad2:7;
+ } da16;
+
+ struct
+ {
+ int src1_indirect_offset:10;
+ unsigned int src1_subreg_nr:3;
+ unsigned int src1_abs:1;
+ unsigned int src1_negate:1;
+ unsigned int pad0:1;
+ unsigned int src1_horiz_stride:2;
+ unsigned int src1_width:3;
+ unsigned int src1_vert_stride:4;
+ unsigned int flag_reg_nr:1;
+ unsigned int pad1:6;
+ } ia1;
+
+ struct
+ {
+ unsigned int src1_swz_x:2;
+ unsigned int src1_swz_y:2;
+ int src1_indirect_offset:6;
+ unsigned int src1_subreg_nr:3;
+ unsigned int src1_abs:1;
+ unsigned int src1_negate:1;
+ unsigned int pad0:1;
+ unsigned int src1_swz_z:2;
+ unsigned int src1_swz_w:2;
+ unsigned int pad1:1;
+ unsigned int src1_vert_stride:4;
+ unsigned int flag_reg_nr:1;
+ unsigned int pad2:6;
+ } ia16;
+
+
+ struct
+ {
+ int jump_count:16; /* note: signed */
+ unsigned int pop_count:4;
+ unsigned int pad0:12;
+ } if_else;
+
+ struct {
+ unsigned int function:4;
+ unsigned int int_type:1;
+ unsigned int precision:1;
+ unsigned int saturate:1;
+ unsigned int data_type:1;
+ unsigned int pad0:8;
+ unsigned int response_length:4;
+ unsigned int msg_length:4;
+ unsigned int msg_target:4;
+ unsigned int pad1:3;
+ unsigned int end_of_thread:1;
+ } math;
+
+ struct {
+ unsigned int binding_table_index:8;
+ unsigned int sampler:4;
+ unsigned int return_format:2;
+ unsigned int msg_type:2;
+ unsigned int response_length:4;
+ unsigned int msg_length:4;
+ unsigned int msg_target:4;
+ unsigned int pad1:3;
+ unsigned int end_of_thread:1;
+ } sampler;
+
+ struct brw_urb_immediate urb;
+
+ struct {
+ unsigned int binding_table_index:8;
+ unsigned int msg_control:4;
+ unsigned int msg_type:2;
+ unsigned int target_cache:2;
+ unsigned int response_length:4;
+ unsigned int msg_length:4;
+ unsigned int msg_target:4;
+ unsigned int pad1:3;
+ unsigned int end_of_thread:1;
+ } dp_read;
+
+ struct {
+ unsigned int binding_table_index:8;
+ unsigned int msg_control:3;
+ unsigned int pixel_scoreboard_clear:1;
+ unsigned int msg_type:3;
+ unsigned int send_commit_msg:1;
+ unsigned int response_length:4;
+ unsigned int msg_length:4;
+ unsigned int msg_target:4;
+ unsigned int pad1:3;
+ unsigned int end_of_thread:1;
+ } dp_write;
+
+ struct {
+ unsigned int pad:16;
+ unsigned int response_length:4;
+ unsigned int msg_length:4;
+ unsigned int msg_target:4;
+ unsigned int pad1:3;
+ unsigned int end_of_thread:1;
+ } generic;
+
+ unsigned int ud;
+ } bits3;
+};
+
+/* media pipeline */
+
+struct brw_vfe_state {
+ struct {
+ unsigned int per_thread_scratch_space:4;
+ unsigned int pad3:3;
+ unsigned int extend_vfe_state_present:1;
+ unsigned int pad2:2;
+ unsigned int scratch_base:22;
+ } vfe0;
+
+ struct {
+ unsigned int debug_counter_control:2;
+ unsigned int children_present:1;
+ unsigned int vfe_mode:4;
+ unsigned int pad2:2;
+ unsigned int num_urb_entries:7;
+ unsigned int urb_entry_alloc_size:9;
+ unsigned int max_threads:7;
+ } vfe1;
+
+ struct {
+ unsigned int pad4:4;
+ unsigned int interface_descriptor_base:28;
+ } vfe2;
+};
+
+struct brw_vld_state {
+ struct {
+ unsigned int pad6:6;
+ unsigned int scan_order:1;
+ unsigned int intra_vlc_format:1;
+ unsigned int quantizer_scale_type:1;
+ unsigned int concealment_motion_vector:1;
+ unsigned int frame_predict_frame_dct:1;
+ unsigned int top_field_first:1;
+ unsigned int picture_structure:2;
+ unsigned int intra_dc_precision:2;
+ unsigned int f_code_0_0:4;
+ unsigned int f_code_0_1:4;
+ unsigned int f_code_1_0:4;
+ unsigned int f_code_1_1:4;
+ } vld0;
+
+ struct {
+ unsigned int pad2:9;
+ unsigned int picture_coding_type:2;
+ unsigned int pad:21;
+ } vld1;
+
+ struct {
+ unsigned int index_0:4;
+ unsigned int index_1:4;
+ unsigned int index_2:4;
+ unsigned int index_3:4;
+ unsigned int index_4:4;
+ unsigned int index_5:4;
+ unsigned int index_6:4;
+ unsigned int index_7:4;
+ } desc_remap_table0;
+
+ struct {
+ unsigned int index_8:4;
+ unsigned int index_9:4;
+ unsigned int index_10:4;
+ unsigned int index_11:4;
+ unsigned int index_12:4;
+ unsigned int index_13:4;
+ unsigned int index_14:4;
+ unsigned int index_15:4;
+ } desc_remap_table1;
+};
+
+struct brw_interface_descriptor {
+ struct {
+ unsigned int grf_reg_blocks:4;
+ unsigned int pad:2;
+ unsigned int kernel_start_pointer:26;
+ } desc0;
+
+ struct {
+ unsigned int pad:7;
+ unsigned int software_exception:1;
+ unsigned int pad2:3;
+ unsigned int maskstack_exception:1;
+ unsigned int pad3:1;
+ unsigned int illegal_opcode_exception:1;
+ unsigned int pad4:2;
+ unsigned int floating_point_mode:1;
+ unsigned int thread_priority:1;
+ unsigned int single_program_flow:1;
+ unsigned int pad5:1;
+ unsigned int const_urb_entry_read_offset:6;
+ unsigned int const_urb_entry_read_len:6;
+ } desc1;
+
+ struct {
+ unsigned int pad:2;
+ unsigned int sampler_count:3;
+ unsigned int sampler_state_pointer:27;
+ } desc2;
+
+ struct {
+ unsigned int binding_table_entry_count:5;
+ unsigned int binding_table_pointer:27;
+ } desc3;
+};
+
+struct gen6_blend_state
+{
+ struct {
+ unsigned int dest_blend_factor:5;
+ unsigned int source_blend_factor:5;
+ unsigned int pad3:1;
+ unsigned int blend_func:3;
+ unsigned int pad2:1;
+ unsigned int ia_dest_blend_factor:5;
+ unsigned int ia_source_blend_factor:5;
+ unsigned int pad1:1;
+ unsigned int ia_blend_func:3;
+ unsigned int pad0:1;
+ unsigned int ia_blend_enable:1;
+ unsigned int blend_enable:1;
+ } blend0;
+
+ struct {
+ unsigned int post_blend_clamp_enable:1;
+ unsigned int pre_blend_clamp_enable:1;
+ unsigned int clamp_range:2;
+ unsigned int pad0:4;
+ unsigned int x_dither_offset:2;
+ unsigned int y_dither_offset:2;
+ unsigned int dither_enable:1;
+ unsigned int alpha_test_func:3;
+ unsigned int alpha_test_enable:1;
+ unsigned int pad1:1;
+ unsigned int logic_op_func:4;
+ unsigned int logic_op_enable:1;
+ unsigned int pad2:1;
+ unsigned int write_disable_b:1;
+ unsigned int write_disable_g:1;
+ unsigned int write_disable_r:1;
+ unsigned int write_disable_a:1;
+ unsigned int pad3:1;
+ unsigned int alpha_to_coverage_dither:1;
+ unsigned int alpha_to_one:1;
+ unsigned int alpha_to_coverage:1;
+ } blend1;
+};
+
+struct gen6_color_calc_state
+{
+ struct {
+ unsigned int alpha_test_format:1;
+ unsigned int pad0:14;
+ unsigned int round_disable:1;
+ unsigned int bf_stencil_ref:8;
+ unsigned int stencil_ref:8;
+ } cc0;
+
+ union {
+ float alpha_ref_f;
+ struct {
+ unsigned int ui:8;
+ unsigned int pad0:24;
+ } alpha_ref_fi;
+ } cc1;
+
+ float constant_r;
+ float constant_g;
+ float constant_b;
+ float constant_a;
+};
+
+struct gen6_depth_stencil_state
+{
+ struct {
+ unsigned int pad0:3;
+ unsigned int bf_stencil_pass_depth_pass_op:3;
+ unsigned int bf_stencil_pass_depth_fail_op:3;
+ unsigned int bf_stencil_fail_op:3;
+ unsigned int bf_stencil_func:3;
+ unsigned int bf_stencil_enable:1;
+ unsigned int pad1:2;
+ unsigned int stencil_write_enable:1;
+ unsigned int stencil_pass_depth_pass_op:3;
+ unsigned int stencil_pass_depth_fail_op:3;
+ unsigned int stencil_fail_op:3;
+ unsigned int stencil_func:3;
+ unsigned int stencil_enable:1;
+ } ds0;
+
+ struct {
+ unsigned int bf_stencil_write_mask:8;
+ unsigned int bf_stencil_test_mask:8;
+ unsigned int stencil_write_mask:8;
+ unsigned int stencil_test_mask:8;
+ } ds1;
+
+ struct {
+ unsigned int pad0:26;
+ unsigned int depth_write_enable:1;
+ unsigned int depth_test_func:3;
+ unsigned int pad1:1;
+ unsigned int depth_test_enable:1;
+ } ds2;
+};
+
+#endif
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..6f23cdd
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,191 @@
+
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+Copyright © 2002 David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ * David Dawes <dawes@xfree86.org>
+ *
+ */
+
+#ifndef _INTEL_COMMON_H_
+#define _INTEL_COMMON_H_
+
+/* Provide substitutes for gcc's __FUNCTION__ on other compilers */
+#if !defined(__GNUC__) && !defined(__FUNCTION__)
+# if defined(__STDC__) && (__STDC_VERSION__>=199901L) /* C99 */
+# define __FUNCTION__ __func__
+# else
+# define __FUNCTION__ ""
+# endif
+#endif
+
+
+#define PFX __FILE__,__LINE__,__FUNCTION__
+#define FUNCTION_NAME __FUNCTION__
+
+#ifdef I830DEBUG
+#define MARKER() ErrorF("\n### %s:%d: >>> %s <<< ###\n\n", \
+ __FILE__, __LINE__,__FUNCTION__)
+#define DPRINTF I830DPRINTF
+#else /* #ifdef I830DEBUG */
+#define MARKER()
+#define DPRINTF I830DPRINTF_stub
+static inline void
+I830DPRINTF_stub(const char *filename, int line, const char *function,
+ const char *fmt, ...)
+{
+}
+#endif /* #ifdef I830DEBUG */
+
+#define KB(x) ((x) * 1024)
+#define MB(x) ((x) * KB(1024))
+
+/* Using usleep() makes things noticably slow. */
+#if 0
+#define DELAY(x) usleep(x)
+#else
+#define DELAY(x) do {;} while (0)
+#endif
+
+/* I830 hooks for the I810 driver setup/probe. */
+extern const OptionInfoRec *I830AvailableOptions(int chipid, int busid);
+extern void intel_init_scrn(ScrnInfoPtr scrn);
+
+/* Symbol lists shared by the i810 and i830 parts. */
+extern int I830EntityIndex;
+
+extern void I830DPRINTF_stub(const char *filename, int line,
+ const char *function, const char *fmt, ...);
+
+#ifdef _I830_H_
+#define PrintErrorState i830_dump_error_state
+#define WaitRingFunc I830WaitLpRing
+#define RecPtr intel
+#else
+#define PrintErrorState I810PrintErrorState
+#define WaitRingFunc I810WaitLpRing
+#define RecPtr pI810
+#endif
+
+static inline void memset_volatile(volatile void *b, int c, size_t len)
+{
+ int i;
+
+ for (i = 0; i < len; i++)
+ ((volatile char *)b)[i] = c;
+}
+
+static inline void memcpy_volatile(volatile void *dst, const void *src,
+ size_t len)
+{
+ int i;
+
+ for (i = 0; i < len; i++)
+ ((volatile char *)dst)[i] = ((volatile char *)src)[i];
+}
+
+/* Memory mapped register access macros */
+#define INREG8(addr) *(volatile uint8_t *)(RecPtr->MMIOBase + (addr))
+#define INREG16(addr) *(volatile uint16_t *)(RecPtr->MMIOBase + (addr))
+#define INREG(addr) *(volatile uint32_t *)(RecPtr->MMIOBase + (addr))
+#define INGTT(addr) *(volatile uint32_t *)(RecPtr->GTTBase + (addr))
+#define POSTING_READ(addr) (void)INREG(addr)
+
+#define OUTREG8(addr, val) do { \
+ *(volatile uint8_t *)(RecPtr->MMIOBase + (addr)) = (val); \
+ if (I810_DEBUG&DEBUG_VERBOSE_OUTREG) { \
+ ErrorF("OUTREG8(0x%lx, 0x%lx) in %s\n", (unsigned long)(addr), \
+ (unsigned long)(val), FUNCTION_NAME); \
+ } \
+} while (0)
+
+#define OUTREG16(addr, val) do { \
+ *(volatile uint16_t *)(RecPtr->MMIOBase + (addr)) = (val); \
+ if (I810_DEBUG&DEBUG_VERBOSE_OUTREG) { \
+ ErrorF("OUTREG16(0x%lx, 0x%lx) in %s\n", (unsigned long)(addr), \
+ (unsigned long)(val), FUNCTION_NAME); \
+ } \
+} while (0)
+
+#define OUTREG(addr, val) do { \
+ *(volatile uint32_t *)(RecPtr->MMIOBase + (addr)) = (val); \
+ if (I810_DEBUG&DEBUG_VERBOSE_OUTREG) { \
+ ErrorF("OUTREG(0x%lx, 0x%lx) in %s\n", (unsigned long)(addr), \
+ (unsigned long)(val), FUNCTION_NAME); \
+ } \
+} while (0)
+
+
+#define DEBUG_VERBOSE_ACCEL 0x1
+#define DEBUG_VERBOSE_SYNC 0x2
+#define DEBUG_VERBOSE_VGA 0x4
+#define DEBUG_VERBOSE_RING 0x8
+#define DEBUG_VERBOSE_OUTREG 0x10
+#define DEBUG_VERBOSE_MEMORY 0x20
+#define DEBUG_VERBOSE_CURSOR 0x40
+#define DEBUG_ALWAYS_SYNC 0x80
+#define DEBUG_VERBOSE_DRI 0x100
+#define DEBUG_VERBOSE_BIOS 0x200
+
+/* Size of the mmio region.
+ */
+#define I810_REG_SIZE 0x80000
+
+#define GTT_PAGE_SIZE KB(4)
+#define PRIMARY_RINGBUFFER_SIZE KB(128)
+#define MIN_SCRATCH_BUFFER_SIZE KB(16)
+#define MAX_SCRATCH_BUFFER_SIZE KB(64)
+#define HWCURSOR_SIZE GTT_PAGE_SIZE
+#define HWCURSOR_SIZE_ARGB GTT_PAGE_SIZE * 4
+
+/* Use a 64x64 HW cursor */
+#define I810_CURSOR_X 64
+#define I810_CURSOR_Y I810_CURSOR_X
+
+#define PIPE_NAME(n) ('A' + (n))
+
+struct pci_device *
+intel_host_bridge (void);
+
+/**
+ * Hints to CreatePixmap to tell the driver how the pixmap is going to be
+ * used.
+ *
+ * Compare to CREATE_PIXMAP_USAGE_* in the server.
+ */
+enum {
+ INTEL_CREATE_PIXMAP_TILING_X = 0x10000000,
+ INTEL_CREATE_PIXMAP_TILING_Y = 0x20000000,
+ INTEL_CREATE_PIXMAP_TILING_NONE = 0x40000000,
+ INTEL_CREATE_PIXMAP_DRI2 = 0x80000000,
+};
+
+#endif /* _INTEL_COMMON_H_ */
diff --git a/src/i830_3d.c b/src/i830_3d.c
new file mode 100644
index 0000000..1043201
--- /dev/null
+++ b/src/i830_3d.c
@@ -0,0 +1,225 @@
+/**************************************************************************
+ *
+ * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ **************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "intel.h"
+
+#include "i830_reg.h"
+
+void I830EmitInvarientState(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ assert(intel->in_batch_atomic);
+
+ OUT_BATCH(_3DSTATE_MAP_CUBE | MAP_UNIT(0));
+ OUT_BATCH(_3DSTATE_MAP_CUBE | MAP_UNIT(1));
+ OUT_BATCH(_3DSTATE_MAP_CUBE | MAP_UNIT(2));
+ OUT_BATCH(_3DSTATE_MAP_CUBE | MAP_UNIT(3));
+
+ OUT_BATCH(_3DSTATE_DFLT_DIFFUSE_CMD);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_DFLT_SPEC_CMD);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_DFLT_Z_CMD);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_FOG_MODE_CMD);
+ OUT_BATCH(FOGFUNC_ENABLE |
+ FOG_LINEAR_CONST | FOGSRC_INDEX_Z | ENABLE_FOG_DENSITY);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_MAP_TEX_STREAM_CMD |
+ MAP_UNIT(0) |
+ DISABLE_TEX_STREAM_BUMP |
+ ENABLE_TEX_STREAM_COORD_SET |
+ TEX_STREAM_COORD_SET(0) |
+ ENABLE_TEX_STREAM_MAP_IDX | TEX_STREAM_MAP_IDX(0));
+ OUT_BATCH(_3DSTATE_MAP_TEX_STREAM_CMD |
+ MAP_UNIT(1) |
+ DISABLE_TEX_STREAM_BUMP |
+ ENABLE_TEX_STREAM_COORD_SET |
+ TEX_STREAM_COORD_SET(1) |
+ ENABLE_TEX_STREAM_MAP_IDX | TEX_STREAM_MAP_IDX(1));
+ OUT_BATCH(_3DSTATE_MAP_TEX_STREAM_CMD |
+ MAP_UNIT(2) |
+ DISABLE_TEX_STREAM_BUMP |
+ ENABLE_TEX_STREAM_COORD_SET |
+ TEX_STREAM_COORD_SET(2) |
+ ENABLE_TEX_STREAM_MAP_IDX | TEX_STREAM_MAP_IDX(2));
+ OUT_BATCH(_3DSTATE_MAP_TEX_STREAM_CMD |
+ MAP_UNIT(3) |
+ DISABLE_TEX_STREAM_BUMP |
+ ENABLE_TEX_STREAM_COORD_SET |
+ TEX_STREAM_COORD_SET(3) |
+ ENABLE_TEX_STREAM_MAP_IDX | TEX_STREAM_MAP_IDX(3));
+
+ OUT_BATCH(_3DSTATE_MAP_COORD_TRANSFORM);
+ OUT_BATCH(DISABLE_TEX_TRANSFORM | TEXTURE_SET(0));
+ OUT_BATCH(_3DSTATE_MAP_COORD_TRANSFORM);
+ OUT_BATCH(DISABLE_TEX_TRANSFORM | TEXTURE_SET(1));
+ OUT_BATCH(_3DSTATE_MAP_COORD_TRANSFORM);
+ OUT_BATCH(DISABLE_TEX_TRANSFORM | TEXTURE_SET(2));
+ OUT_BATCH(_3DSTATE_MAP_COORD_TRANSFORM);
+ OUT_BATCH(DISABLE_TEX_TRANSFORM | TEXTURE_SET(3));
+
+ OUT_BATCH(_3DSTATE_RASTER_RULES_CMD |
+ ENABLE_POINT_RASTER_RULE |
+ OGL_POINT_RASTER_RULE |
+ ENABLE_LINE_STRIP_PROVOKE_VRTX |
+ ENABLE_TRI_FAN_PROVOKE_VRTX |
+ ENABLE_TRI_STRIP_PROVOKE_VRTX |
+ LINE_STRIP_PROVOKE_VRTX(1) |
+ TRI_FAN_PROVOKE_VRTX(2) | TRI_STRIP_PROVOKE_VRTX(2));
+
+ OUT_BATCH(_3DSTATE_SCISSOR_ENABLE_CMD | DISABLE_SCISSOR_RECT);
+
+ OUT_BATCH(_3DSTATE_SCISSOR_RECT_0_CMD);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_VERTEX_TRANSFORM);
+ OUT_BATCH(DISABLE_VIEWPORT_TRANSFORM | DISABLE_PERSPECTIVE_DIVIDE);
+
+ OUT_BATCH(_3DSTATE_W_STATE_CMD);
+ OUT_BATCH(MAGIC_W_STATE_DWORD1);
+ OUT_BATCH(0x3f800000 /* 1.0 in IEEE float */ );
+
+ OUT_BATCH(_3DSTATE_COLOR_FACTOR_CMD);
+ OUT_BATCH(0x80808080); /* .5 required in alpha for GL_DOT3_RGBA_EXT */
+
+ OUT_BATCH(_3DSTATE_MAP_COORD_SETBIND_CMD);
+ OUT_BATCH(TEXBIND_SET3(TEXCOORDSRC_VTXSET_3) |
+ TEXBIND_SET2(TEXCOORDSRC_VTXSET_2) |
+ TEXBIND_SET1(TEXCOORDSRC_VTXSET_1) |
+ TEXBIND_SET0(TEXCOORDSRC_VTXSET_0));
+
+ /* copy from mesa */
+ OUT_BATCH(_3DSTATE_INDPT_ALPHA_BLEND_CMD |
+ DISABLE_INDPT_ALPHA_BLEND |
+ ENABLE_ALPHA_BLENDFUNC | ABLENDFUNC_ADD);
+
+ OUT_BATCH(_3DSTATE_FOG_COLOR_CMD |
+ FOG_COLOR_RED(0) | FOG_COLOR_GREEN(0) | FOG_COLOR_BLUE(0));
+
+ OUT_BATCH(_3DSTATE_CONST_BLEND_COLOR_CMD);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_MODES_1_CMD |
+ ENABLE_COLR_BLND_FUNC |
+ BLENDFUNC_ADD |
+ ENABLE_SRC_BLND_FACTOR |
+ SRC_BLND_FACT(BLENDFACTOR_ONE) |
+ ENABLE_DST_BLND_FACTOR | DST_BLND_FACT(BLENDFACTOR_ZERO));
+ OUT_BATCH(_3DSTATE_MODES_2_CMD | ENABLE_GLOBAL_DEPTH_BIAS | GLOBAL_DEPTH_BIAS(0) | ENABLE_ALPHA_TEST_FUNC | ALPHA_TEST_FUNC(0) | /* always */
+ ALPHA_REF_VALUE(0));
+ OUT_BATCH(_3DSTATE_MODES_3_CMD |
+ ENABLE_DEPTH_TEST_FUNC |
+ DEPTH_TEST_FUNC(0x2) | /* COMPAREFUNC_LESS */
+ ENABLE_ALPHA_SHADE_MODE |
+ ALPHA_SHADE_MODE(SHADE_MODE_LINEAR) |
+ ENABLE_FOG_SHADE_MODE |
+ FOG_SHADE_MODE(SHADE_MODE_LINEAR) |
+ ENABLE_SPEC_SHADE_MODE |
+ SPEC_SHADE_MODE(SHADE_MODE_LINEAR) |
+ ENABLE_COLOR_SHADE_MODE |
+ COLOR_SHADE_MODE(SHADE_MODE_LINEAR) |
+ ENABLE_CULL_MODE | CULLMODE_NONE);
+
+ OUT_BATCH(_3DSTATE_MODES_4_CMD |
+ ENABLE_LOGIC_OP_FUNC |
+ LOGIC_OP_FUNC(LOGICOP_COPY) |
+ ENABLE_STENCIL_TEST_MASK |
+ STENCIL_TEST_MASK(0xff) |
+ ENABLE_STENCIL_WRITE_MASK | STENCIL_WRITE_MASK(0xff));
+
+ OUT_BATCH(_3DSTATE_STENCIL_TEST_CMD |
+ ENABLE_STENCIL_PARMS |
+ STENCIL_FAIL_OP(0) | /* STENCILOP_KEEP */
+ STENCIL_PASS_DEPTH_FAIL_OP(0) | /* STENCILOP_KEEP */
+ STENCIL_PASS_DEPTH_PASS_OP(0) | /* STENCILOP_KEEP */
+ ENABLE_STENCIL_TEST_FUNC |
+ STENCIL_TEST_FUNC(0) | /* COMPAREFUNC_ALWAYS */
+ ENABLE_STENCIL_REF_VALUE |
+ STENCIL_REF_VALUE(0));
+
+ OUT_BATCH(_3DSTATE_MODES_5_CMD |
+ FLUSH_TEXTURE_CACHE |
+ ENABLE_SPRITE_POINT_TEX | SPRITE_POINT_TEX_OFF |
+ ENABLE_FIXED_LINE_WIDTH | FIXED_LINE_WIDTH(0x2) | /* 1.0 */
+ ENABLE_FIXED_POINT_WIDTH | FIXED_POINT_WIDTH(1));
+
+ OUT_BATCH(_3DSTATE_ENABLES_1_CMD |
+ DISABLE_LOGIC_OP |
+ DISABLE_STENCIL_TEST |
+ DISABLE_DEPTH_BIAS |
+ DISABLE_SPEC_ADD |
+ DISABLE_FOG |
+ DISABLE_ALPHA_TEST | ENABLE_COLOR_BLEND | DISABLE_DEPTH_TEST);
+ OUT_BATCH(_3DSTATE_ENABLES_2_CMD |
+ DISABLE_STENCIL_WRITE |
+ ENABLE_TEX_CACHE |
+ DISABLE_DITHER |
+ ENABLE_COLOR_MASK | ENABLE_COLOR_WRITE | DISABLE_DEPTH_WRITE);
+
+ OUT_BATCH(_3DSTATE_STIPPLE);
+
+ /* Set default blend state */
+ OUT_BATCH(_3DSTATE_MAP_BLEND_OP_CMD(0) |
+ TEXPIPE_COLOR |
+ ENABLE_TEXOUTPUT_WRT_SEL |
+ TEXOP_OUTPUT_CURRENT |
+ DISABLE_TEX_CNTRL_STAGE |
+ TEXOP_SCALE_1X |
+ TEXOP_MODIFY_PARMS | TEXOP_LAST_STAGE | TEXBLENDOP_ARG1);
+ OUT_BATCH(_3DSTATE_MAP_BLEND_OP_CMD(0) |
+ TEXPIPE_ALPHA |
+ ENABLE_TEXOUTPUT_WRT_SEL |
+ TEXOP_OUTPUT_CURRENT |
+ TEXOP_SCALE_1X | TEXOP_MODIFY_PARMS | TEXBLENDOP_ARG1);
+ OUT_BATCH(_3DSTATE_MAP_BLEND_ARG_CMD(0) |
+ TEXPIPE_COLOR |
+ TEXBLEND_ARG1 |
+ TEXBLENDARG_MODIFY_PARMS | TEXBLENDARG_DIFFUSE);
+ OUT_BATCH(_3DSTATE_MAP_BLEND_ARG_CMD(0) |
+ TEXPIPE_ALPHA |
+ TEXBLEND_ARG1 |
+ TEXBLENDARG_MODIFY_PARMS | TEXBLENDARG_DIFFUSE);
+
+ OUT_BATCH(_3DSTATE_AA_CMD |
+ AA_LINE_ECAAR_WIDTH_ENABLE |
+ AA_LINE_ECAAR_WIDTH_1_0 |
+ AA_LINE_REGION_WIDTH_ENABLE |
+ AA_LINE_REGION_WIDTH_1_0 | AA_LINE_DISABLE);
+}
diff --git a/src/i830_reg.h b/src/i830_reg.h
new file mode 100644
index 0000000..93d03cf
--- /dev/null
+++ b/src/i830_reg.h
@@ -0,0 +1,805 @@
+/**************************************************************************
+ *
+ * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ **************************************************************************/
+
+#ifndef _I830_REG_H_
+#define _I830_REG_H_
+
+#define I830_SET_FIELD( var, mask, value ) (var &= ~(mask), var |= value)
+
+/* Flush */
+#define MI_FLUSH (0x04<<23)
+#define MI_FLUSH_DW (0x26<<23)
+
+#define MI_WRITE_DIRTY_STATE (1<<4)
+#define MI_END_SCENE (1<<3)
+#define MI_GLOBAL_SNAPSHOT_COUNT_RESET (1<<3)
+#define MI_INHIBIT_RENDER_CACHE_FLUSH (1<<2)
+#define MI_STATE_INSTRUCTION_CACHE_FLUSH (1<<1)
+#define MI_INVALIDATE_MAP_CACHE (1<<0)
+/* broadwater flush bits */
+#define BRW_MI_GLOBAL_SNAPSHOT_RESET (1 << 3)
+
+#define MI_BATCH_BUFFER_END (0xA << 23)
+
+/* Noop */
+#define MI_NOOP 0x00
+#define MI_NOOP_WRITE_ID (1<<22)
+#define MI_NOOP_ID_MASK (1<<22 - 1)
+
+/* Wait for Events */
+#define MI_WAIT_FOR_EVENT (0x03<<23)
+#define MI_WAIT_FOR_PIPEB_SVBLANK (1<<18)
+#define MI_WAIT_FOR_PIPEA_SVBLANK (1<<17)
+#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16)
+#define MI_WAIT_FOR_PIPEB_VBLANK (1<<7)
+#define MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW (1<<5)
+#define MI_WAIT_FOR_PIPEA_VBLANK (1<<3)
+#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW (1<<1)
+
+/* Set the scan line for MI_WAIT_FOR_PIPE?_SCAN_LINE_WINDOW */
+#define MI_LOAD_SCAN_LINES_INCL (0x12<<23)
+#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEA (0)
+#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEB (0x1<<20)
+
+/* BLT commands */
+#define COLOR_BLT_CMD ((2<<29)|(0x40<<22)|(0x3))
+#define COLOR_BLT_WRITE_ALPHA (1<<21)
+#define COLOR_BLT_WRITE_RGB (1<<20)
+
+#define XY_COLOR_BLT_CMD ((2<<29)|(0x50<<22)|(0x4))
+#define XY_COLOR_BLT_WRITE_ALPHA (1<<21)
+#define XY_COLOR_BLT_WRITE_RGB (1<<20)
+#define XY_COLOR_BLT_TILED (1<<11)
+
+#define XY_SETUP_CLIP_BLT_CMD ((2<<29)|(3<<22)|1)
+
+#define XY_SRC_COPY_BLT_CMD ((2<<29)|(0x53<<22)|6)
+#define XY_SRC_COPY_BLT_WRITE_ALPHA (1<<21)
+#define XY_SRC_COPY_BLT_WRITE_RGB (1<<20)
+#define XY_SRC_COPY_BLT_SRC_TILED (1<<15)
+#define XY_SRC_COPY_BLT_DST_TILED (1<<11)
+
+#define SRC_COPY_BLT_CMD ((2<<29)|(0x43<<22)|0x4)
+#define SRC_COPY_BLT_WRITE_ALPHA (1<<21)
+#define SRC_COPY_BLT_WRITE_RGB (1<<20)
+
+#define XY_PAT_BLT_IMMEDIATE ((2<<29)|(0x72<<22))
+
+#define XY_MONO_PAT_BLT_CMD ((0x2<<29)|(0x52<<22)|0x7)
+#define XY_MONO_PAT_VERT_SEED ((1<<10)|(1<<9)|(1<<8))
+#define XY_MONO_PAT_HORT_SEED ((1<<14)|(1<<13)|(1<<12))
+#define XY_MONO_PAT_BLT_WRITE_ALPHA (1<<21)
+#define XY_MONO_PAT_BLT_WRITE_RGB (1<<20)
+
+#define XY_MONO_SRC_BLT_CMD ((0x2<<29)|(0x54<<22)|(0x6))
+#define XY_MONO_SRC_BLT_WRITE_ALPHA (1<<21)
+#define XY_MONO_SRC_BLT_WRITE_RGB (1<<20)
+
+#define CMD_3D (0x3<<29)
+
+#define PRIM3D_INLINE (CMD_3D | (0x1f<<24))
+#define PRIM3D_TRILIST (0x0<<18)
+#define PRIM3D_TRISTRIP (0x1<<18)
+#define PRIM3D_TRISTRIP_RVRSE (0x2<<18)
+#define PRIM3D_TRIFAN (0x3<<18)
+#define PRIM3D_POLY (0x4<<18)
+#define PRIM3D_LINELIST (0x5<<18)
+#define PRIM3D_LINESTRIP (0x6<<18)
+#define PRIM3D_RECTLIST (0x7<<18)
+#define PRIM3D_POINTLIST (0x8<<18)
+#define PRIM3D_DIB (0x9<<18)
+#define PRIM3D_CLEAR_RECT (0xa<<18)
+#define PRIM3D_ZONE_INIT (0xd<<18)
+#define PRIM3D_MASK (0x1f<<18)
+
+#define _3DSTATE_AA_CMD (CMD_3D | (0x06<<24))
+#define AA_LINE_ECAAR_WIDTH_ENABLE (1<<16)
+#define AA_LINE_ECAAR_WIDTH_0_5 0
+#define AA_LINE_ECAAR_WIDTH_1_0 (1<<14)
+#define AA_LINE_ECAAR_WIDTH_2_0 (2<<14)
+#define AA_LINE_ECAAR_WIDTH_4_0 (3<<14)
+#define AA_LINE_REGION_WIDTH_ENABLE (1<<8)
+#define AA_LINE_REGION_WIDTH_0_5 0
+#define AA_LINE_REGION_WIDTH_1_0 (1<<6)
+#define AA_LINE_REGION_WIDTH_2_0 (2<<6)
+#define AA_LINE_REGION_WIDTH_4_0 (3<<6)
+#define AA_LINE_ENABLE ((1<<1) | 1)
+#define AA_LINE_DISABLE (1<<1)
+
+#define _3DSTATE_BUF_INFO_CMD (CMD_3D | (0x1d<<24) | (0x8e<<16) | 1)
+/* Dword 1 */
+#define BUF_3D_ID_COLOR_BACK (0x3<<24)
+#define BUF_3D_ID_DEPTH (0x7<<24)
+#define BUF_3D_USE_FENCE (1<<23)
+#define BUF_3D_TILED_SURFACE (1<<22)
+#define BUF_3D_TILE_WALK_X 0
+#define BUF_3D_TILE_WALK_Y (1<<21)
+#define BUF_3D_PITCH(x) (((x)/4)<<2)
+/* Dword 2 */
+#define BUF_3D_ADDR(x) ((x) & ~0x3)
+
+#define _3DSTATE_COLOR_FACTOR_CMD (CMD_3D | (0x1d<<24) | (0x1<<16))
+
+#define _3DSTATE_COLOR_FACTOR_N_CMD(stage) (CMD_3D | (0x1d<<24) | \
+ ((0x90+(stage))<<16))
+
+#define _3DSTATE_CONST_BLEND_COLOR_CMD (CMD_3D | (0x1d<<24) | (0x88<<16))
+
+#define _3DSTATE_DFLT_DIFFUSE_CMD (CMD_3D | (0x1d<<24) | (0x99<<16))
+
+#define _3DSTATE_DFLT_SPEC_CMD (CMD_3D | (0x1d<<24) | (0x9a<<16))
+
+#define _3DSTATE_DFLT_Z_CMD (CMD_3D | (0x1d<<24) | (0x98<<16))
+
+#define _3DSTATE_DST_BUF_VARS_CMD (CMD_3D | (0x1d<<24) | (0x85<<16))
+/* Dword 1 */
+#define DSTORG_HORT_BIAS(x) ((x)<<20)
+#define DSTORG_VERT_BIAS(x) ((x)<<16)
+#define COLOR_4_2_2_CHNL_WRT_ALL 0
+#define COLOR_4_2_2_CHNL_WRT_Y (1<<12)
+#define COLOR_4_2_2_CHNL_WRT_CR (2<<12)
+#define COLOR_4_2_2_CHNL_WRT_CB (3<<12)
+#define COLOR_4_2_2_CHNL_WRT_CRCB (4<<12)
+#define COLR_BUF_8BIT 0
+#define COLR_BUF_RGB555 (1<<8)
+#define COLR_BUF_RGB565 (2<<8)
+#define COLR_BUF_ARGB8888 (3<<8)
+#define COLR_BUF_ARGB4444 (8<<8)
+#define COLR_BUF_ARGB1555 (9<<8)
+#define DEPTH_IS_Z 0
+#define DEPTH_IS_W (1<<6)
+#define DEPTH_FRMT_16_FIXED 0
+#define DEPTH_FRMT_16_FLOAT (1<<2)
+#define DEPTH_FRMT_24_FIXED_8_OTHER (2<<2)
+#define DEPTH_FRMT_24_FLOAT_8_OTHER (3<<2)
+#define VERT_LINE_STRIDE_1 (1<<1)
+#define VERT_LINE_STRIDE_0 0
+#define VERT_LINE_STRIDE_OFS_1 1
+#define VERT_LINE_STRIDE_OFS_0 0
+
+#define _3DSTATE_DRAW_RECT_CMD (CMD_3D|(0x1d<<24)|(0x80<<16)|3)
+/* Dword 1 */
+#define DRAW_RECT_DIS_DEPTH_OFS (1<<30)
+#define DRAW_DITHER_OFS_X(x) ((x)<<26)
+#define DRAW_DITHER_OFS_Y(x) ((x)<<24)
+/* Dword 2 */
+#define DRAW_YMIN(x) ((x)<<16)
+#define DRAW_XMIN(x) (x)
+/* Dword 3 */
+#define DRAW_YMAX(x) ((x)<<16)
+#define DRAW_XMAX(x) (x)
+/* Dword 4 */
+#define DRAW_YORG(x) ((x)<<16)
+#define DRAW_XORG(x) (x)
+
+#define _3DSTATE_ENABLES_1_CMD (CMD_3D|(0x3<<24))
+#define ENABLE_LOGIC_OP_MASK ((1<<23)|(1<<22))
+#define ENABLE_LOGIC_OP ((1<<23)|(1<<22))
+#define DISABLE_LOGIC_OP (1<<23)
+#define ENABLE_STENCIL_TEST ((1<<21)|(1<<20))
+#define DISABLE_STENCIL_TEST (1<<21)
+#define ENABLE_DEPTH_BIAS ((1<<11)|(1<<10))
+#define DISABLE_DEPTH_BIAS (1<<11)
+#define ENABLE_SPEC_ADD_MASK ((1<<9)|(1<<8))
+#define ENABLE_SPEC_ADD ((1<<9)|(1<<8))
+#define DISABLE_SPEC_ADD (1<<9)
+#define ENABLE_DIS_FOG_MASK ((1<<7)|(1<<6))
+#define ENABLE_FOG ((1<<7)|(1<<6))
+#define DISABLE_FOG (1<<7)
+#define ENABLE_DIS_ALPHA_TEST_MASK ((1<<5)|(1<<4))
+#define ENABLE_ALPHA_TEST ((1<<5)|(1<<4))
+#define DISABLE_ALPHA_TEST (1<<5)
+#define ENABLE_DIS_CBLEND_MASK ((1<<3)|(1<<2))
+#define ENABLE_COLOR_BLEND ((1<<3)|(1<<2))
+#define DISABLE_COLOR_BLEND (1<<3)
+#define ENABLE_DIS_DEPTH_TEST_MASK ((1<<1)|1)
+#define ENABLE_DEPTH_TEST ((1<<1)|1)
+#define DISABLE_DEPTH_TEST (1<<1)
+
+/* _3DSTATE_ENABLES_2, p138 */
+#define _3DSTATE_ENABLES_2_CMD (CMD_3D|(0x4<<24))
+#define ENABLE_STENCIL_WRITE ((1<<21)|(1<<20))
+#define DISABLE_STENCIL_WRITE (1<<21)
+#define ENABLE_TEX_CACHE ((1<<17)|(1<<16))
+#define DISABLE_TEX_CACHE (1<<17)
+#define ENABLE_DITHER ((1<<9)|(1<<8))
+#define DISABLE_DITHER (1<<9)
+#define ENABLE_COLOR_MASK (1<<10)
+#define WRITEMASK_ALPHA (1<<7)
+#define WRITEMASK_ALPHA_SHIFT 7
+#define WRITEMASK_RED (1<<6)
+#define WRITEMASK_RED_SHIFT 6
+#define WRITEMASK_GREEN (1<<5)
+#define WRITEMASK_GREEN_SHIFT 5
+#define WRITEMASK_BLUE (1<<4)
+#define WRITEMASK_BLUE_SHIFT 4
+#define WRITEMASK_MASK ((1<<4)|(1<<5)|(1<<6)|(1<<7))
+#define ENABLE_COLOR_WRITE ((1<<3)|(1<<2))
+#define DISABLE_COLOR_WRITE (1<<3)
+#define ENABLE_DIS_DEPTH_WRITE_MASK 0x3
+#define ENABLE_DEPTH_WRITE ((1<<1)|1)
+#define DISABLE_DEPTH_WRITE (1<<1)
+
+/* _3DSTATE_FOG_COLOR, p139 */
+#define _3DSTATE_FOG_COLOR_CMD (CMD_3D|(0x15<<24))
+#define FOG_COLOR_RED(x) ((x)<<16)
+#define FOG_COLOR_GREEN(x) ((x)<<8)
+#define FOG_COLOR_BLUE(x) (x)
+
+/* _3DSTATE_FOG_MODE, p140 */
+#define _3DSTATE_FOG_MODE_CMD (CMD_3D|(0x1d<<24)|(0x89<<16)|2)
+/* Dword 1 */
+#define FOGFUNC_ENABLE (1<<31)
+#define FOGFUNC_VERTEX 0
+#define FOGFUNC_PIXEL_EXP (1<<28)
+#define FOGFUNC_PIXEL_EXP2 (2<<28)
+#define FOGFUNC_PIXEL_LINEAR (3<<28)
+#define FOGSRC_INDEX_Z (1<<27)
+#define FOGSRC_INDEX_W ((1<<27)|(1<<25))
+#define FOG_LINEAR_CONST (1<<24)
+#define FOG_CONST_1(x) ((x)<<4)
+#define ENABLE_FOG_DENSITY (1<<23)
+/* Dword 2 */
+#define FOG_CONST_2(x) (x)
+/* Dword 3 */
+#define FOG_DENSITY(x) (x)
+
+/* _3DSTATE_INDEPENDENT_ALPHA_BLEND, p142 */
+#define _3DSTATE_INDPT_ALPHA_BLEND_CMD (CMD_3D|(0x0b<<24))
+#define ENABLE_INDPT_ALPHA_BLEND ((1<<23)|(1<<22))
+#define DISABLE_INDPT_ALPHA_BLEND (1<<23)
+#define ALPHA_BLENDFUNC_MASK 0x3f0000
+#define ENABLE_ALPHA_BLENDFUNC (1<<21)
+#define ABLENDFUNC_ADD 0
+#define ABLENDFUNC_SUB (1<<16)
+#define ABLENDFUNC_RVSE_SUB (2<<16)
+#define ABLENDFUNC_MIN (3<<16)
+#define ABLENDFUNC_MAX (4<<16)
+#define SRC_DST_ABLEND_MASK 0xfff
+#define ENABLE_SRC_ABLEND_FACTOR (1<<11)
+#define SRC_ABLEND_FACT(x) ((x)<<6)
+#define ENABLE_DST_ABLEND_FACTOR (1<<5)
+#define DST_ABLEND_FACT(x) (x)
+
+#define BLENDFACTOR_ZERO 0x01
+#define BLENDFACTOR_ONE 0x02
+#define BLENDFACTOR_SRC_COLR 0x03
+#define BLENDFACTOR_INV_SRC_COLR 0x04
+#define BLENDFACTOR_SRC_ALPHA 0x05
+#define BLENDFACTOR_INV_SRC_ALPHA 0x06
+#define BLENDFACTOR_DST_ALPHA 0x07
+#define BLENDFACTOR_INV_DST_ALPHA 0x08
+#define BLENDFACTOR_DST_COLR 0x09
+#define BLENDFACTOR_INV_DST_COLR 0x0a
+#define BLENDFACTOR_SRC_ALPHA_SATURATE 0x0b
+#define BLENDFACTOR_CONST_COLOR 0x0c
+#define BLENDFACTOR_INV_CONST_COLOR 0x0d
+#define BLENDFACTOR_CONST_ALPHA 0x0e
+#define BLENDFACTOR_INV_CONST_ALPHA 0x0f
+#define BLENDFACTOR_MASK 0x0f
+
+/* _3DSTATE_MAP_BLEND_ARG, p152 */
+#define _3DSTATE_MAP_BLEND_ARG_CMD(stage) (CMD_3D|(0x0e<<24)|((stage)<<20))
+
+#define TEXPIPE_COLOR 0
+#define TEXPIPE_ALPHA (1<<18)
+#define TEXPIPE_KILL (2<<18)
+#define TEXBLEND_ARG0 0
+#define TEXBLEND_ARG1 (1<<15)
+#define TEXBLEND_ARG2 (2<<15)
+#define TEXBLEND_ARG3 (3<<15)
+#define TEXBLENDARG_MODIFY_PARMS (1<<6)
+#define TEXBLENDARG_REPLICATE_ALPHA (1<<5)
+#define TEXBLENDARG_INV_ARG (1<<4)
+#define TEXBLENDARG_ONE 0
+#define TEXBLENDARG_FACTOR 0x01
+#define TEXBLENDARG_ACCUM 0x02
+#define TEXBLENDARG_DIFFUSE 0x03
+#define TEXBLENDARG_SPEC 0x04
+#define TEXBLENDARG_CURRENT 0x05
+#define TEXBLENDARG_TEXEL0 0x06
+#define TEXBLENDARG_TEXEL1 0x07
+#define TEXBLENDARG_TEXEL2 0x08
+#define TEXBLENDARG_TEXEL3 0x09
+#define TEXBLENDARG_FACTOR_N 0x0e
+
+/* _3DSTATE_MAP_BLEND_OP, p155 */
+#define _3DSTATE_MAP_BLEND_OP_CMD(stage) (CMD_3D|(0x0d<<24)|((stage)<<20))
+#if 0
+# define TEXPIPE_COLOR 0
+# define TEXPIPE_ALPHA (1<<18)
+# define TEXPIPE_KILL (2<<18)
+#endif
+#define ENABLE_TEXOUTPUT_WRT_SEL (1<<17)
+#define TEXOP_OUTPUT_CURRENT 0
+#define TEXOP_OUTPUT_ACCUM (1<<15)
+#define ENABLE_TEX_CNTRL_STAGE ((1<<12)|(1<<11))
+#define DISABLE_TEX_CNTRL_STAGE (1<<12)
+#define TEXOP_SCALE_SHIFT 9
+#define TEXOP_SCALE_1X (0 << TEXOP_SCALE_SHIFT)
+#define TEXOP_SCALE_2X (1 << TEXOP_SCALE_SHIFT)
+#define TEXOP_SCALE_4X (2 << TEXOP_SCALE_SHIFT)
+#define TEXOP_MODIFY_PARMS (1<<8)
+#define TEXOP_LAST_STAGE (1<<7)
+#define TEXBLENDOP_KILLPIXEL 0x02
+#define TEXBLENDOP_ARG1 0x01
+#define TEXBLENDOP_ARG2 0x02
+#define TEXBLENDOP_MODULATE 0x03
+#define TEXBLENDOP_ADD 0x06
+#define TEXBLENDOP_ADDSIGNED 0x07
+#define TEXBLENDOP_BLEND 0x08
+#define TEXBLENDOP_BLEND_AND_ADD 0x09
+#define TEXBLENDOP_SUBTRACT 0x0a
+#define TEXBLENDOP_DOT3 0x0b
+#define TEXBLENDOP_DOT4 0x0c
+#define TEXBLENDOP_MODULATE_AND_ADD 0x0d
+#define TEXBLENDOP_MODULATE_2X_AND_ADD 0x0e
+#define TEXBLENDOP_MODULATE_4X_AND_ADD 0x0f
+
+/* _3DSTATE_MAP_BUMP_TABLE, p160 TODO */
+/* _3DSTATE_MAP_COLOR_CHROMA_KEY, p161 TODO */
+
+#define _3DSTATE_MAP_COORD_TRANSFORM ((3<<29)|(0x1d<<24)|(0x8c<<16))
+#define DISABLE_TEX_TRANSFORM (1<<28)
+#define TEXTURE_SET(x) (x<<29)
+
+#define _3DSTATE_VERTEX_TRANSFORM ((3<<29)|(0x1d<<24)|(0x8b<<16))
+#define DISABLE_VIEWPORT_TRANSFORM (1<<31)
+#define DISABLE_PERSPECTIVE_DIVIDE (1<<29)
+
+/* _3DSTATE_MAP_COORD_SET_BINDINGS, p162 */
+#define _3DSTATE_MAP_COORD_SETBIND_CMD (CMD_3D|(0x1d<<24)|(0x02<<16))
+#define TEXBIND_MASK3 ((1<<15)|(1<<14)|(1<<13)|(1<<12))
+#define TEXBIND_MASK2 ((1<<11)|(1<<10)|(1<<9)|(1<<8))
+#define TEXBIND_MASK1 ((1<<7)|(1<<6)|(1<<5)|(1<<4))
+#define TEXBIND_MASK0 ((1<<3)|(1<<2)|(1<<1)|1)
+
+#define TEXBIND_SET3(x) ((x)<<12)
+#define TEXBIND_SET2(x) ((x)<<8)
+#define TEXBIND_SET1(x) ((x)<<4)
+#define TEXBIND_SET0(x) (x)
+
+#define TEXCOORDSRC_KEEP 0
+#define TEXCOORDSRC_DEFAULT 0x01
+#define TEXCOORDSRC_VTXSET_0 0x08
+#define TEXCOORDSRC_VTXSET_1 0x09
+#define TEXCOORDSRC_VTXSET_2 0x0a
+#define TEXCOORDSRC_VTXSET_3 0x0b
+#define TEXCOORDSRC_VTXSET_4 0x0c
+#define TEXCOORDSRC_VTXSET_5 0x0d
+#define TEXCOORDSRC_VTXSET_6 0x0e
+#define TEXCOORDSRC_VTXSET_7 0x0f
+
+#define MAP_UNIT(unit) ((unit)<<16)
+#define MAP_UNIT_MASK (0x7<<16)
+
+/* _3DSTATE_MAP_COORD_SETS, p164 */
+#define _3DSTATE_MAP_COORD_SET_CMD (CMD_3D|(0x1c<<24)|(0x01<<19))
+#define TEXCOORD_SET(n) ((n)<<16)
+#define ENABLE_TEXCOORD_PARAMS (1<<15)
+#define TEXCOORDS_ARE_NORMAL (1<<14)
+#define TEXCOORDS_ARE_IN_TEXELUNITS 0
+#define TEXCOORDTYPE_CARTESIAN 0
+#define TEXCOORDTYPE_HOMOGENEOUS (1<<11)
+#define TEXCOORDTYPE_VECTOR (2<<11)
+#define TEXCOORDTYPE_MASK (0x7<<11)
+#define ENABLE_ADDR_V_CNTL (1<<7)
+#define ENABLE_ADDR_U_CNTL (1<<3)
+#define TEXCOORD_ADDR_V_MODE(x) ((x)<<4)
+#define TEXCOORD_ADDR_U_MODE(x) (x)
+#define TEXCOORDMODE_WRAP 0
+#define TEXCOORDMODE_MIRROR 1
+#define TEXCOORDMODE_CLAMP 2
+#define TEXCOORDMODE_WRAP_SHORTEST 3
+#define TEXCOORDMODE_CLAMP_BORDER 4
+#define TEXCOORD_ADDR_V_MASK 0x70
+#define TEXCOORD_ADDR_U_MASK 0x7
+
+/* _3DSTATE_MAP_CUBE, p168 TODO */
+#define _3DSTATE_MAP_CUBE (CMD_3D|(0x1c<<24)|(0x0a<<19))
+#define CUBE_NEGX_ENABLE (1<<5)
+#define CUBE_POSX_ENABLE (1<<4)
+#define CUBE_NEGY_ENABLE (1<<3)
+#define CUBE_POSY_ENABLE (1<<2)
+#define CUBE_NEGZ_ENABLE (1<<1)
+#define CUBE_POSZ_ENABLE (1<<0)
+
+#define _3DSTATE_MAP_INFO_CMD (CMD_3D|(0x1d<<24)|(0x0<<16)|3)
+#define TEXMAP_INDEX(x) ((x)<<28)
+#define MAP_SURFACE_8BIT (1<<24)
+#define MAP_SURFACE_16BIT (2<<24)
+#define MAP_SURFACE_32BIT (3<<24)
+#define MAP_FORMAT_2D (0)
+#define MAP_FORMAT_3D_CUBE (1<<11)
+
+/* _3DSTATE_MODES_1, p190 */
+#define _3DSTATE_MODES_1_CMD (CMD_3D|(0x08<<24))
+#define BLENDFUNC_MASK 0x3f0000
+#define ENABLE_COLR_BLND_FUNC (1<<21)
+#define BLENDFUNC_ADD 0
+#define BLENDFUNC_SUB (1<<16)
+#define BLENDFUNC_RVRSE_SUB (2<<16)
+#define BLENDFUNC_MIN (3<<16)
+#define BLENDFUNC_MAX (4<<16)
+#define SRC_DST_BLND_MASK 0xfff
+#define ENABLE_SRC_BLND_FACTOR (1<<11)
+#define ENABLE_DST_BLND_FACTOR (1<<5)
+#define SRC_BLND_FACT(x) ((x)<<6)
+#define DST_BLND_FACT(x) (x)
+
+/* _3DSTATE_MODES_2, p192 */
+#define _3DSTATE_MODES_2_CMD (CMD_3D|(0x0f<<24))
+#define ENABLE_GLOBAL_DEPTH_BIAS (1<<22)
+#define GLOBAL_DEPTH_BIAS(x) ((x)<<14)
+#define ENABLE_ALPHA_TEST_FUNC (1<<13)
+#define ENABLE_ALPHA_REF_VALUE (1<<8)
+#define ALPHA_TEST_FUNC(x) ((x)<<9)
+#define ALPHA_REF_VALUE(x) (x)
+
+#define ALPHA_TEST_REF_MASK 0x3fff
+
+/* _3DSTATE_MODES_3, p193 */
+#define _3DSTATE_MODES_3_CMD (CMD_3D|(0x02<<24))
+#define DEPTH_TEST_FUNC_MASK 0x1f0000
+#define ENABLE_DEPTH_TEST_FUNC (1<<20)
+/* Uses COMPAREFUNC */
+#define DEPTH_TEST_FUNC(x) ((x)<<16)
+#define ENABLE_ALPHA_SHADE_MODE (1<<11)
+#define ENABLE_FOG_SHADE_MODE (1<<9)
+#define ENABLE_SPEC_SHADE_MODE (1<<7)
+#define ENABLE_COLOR_SHADE_MODE (1<<5)
+#define ALPHA_SHADE_MODE(x) ((x)<<10)
+#define FOG_SHADE_MODE(x) ((x)<<8)
+#define SPEC_SHADE_MODE(x) ((x)<<6)
+#define COLOR_SHADE_MODE(x) ((x)<<4)
+#define CULLMODE_MASK 0xf
+#define ENABLE_CULL_MODE (1<<3)
+#define CULLMODE_BOTH 0
+#define CULLMODE_NONE 1
+#define CULLMODE_CW 2
+#define CULLMODE_CCW 3
+
+#define SHADE_MODE_LINEAR 0
+#define SHADE_MODE_FLAT 0x1
+
+/* _3DSTATE_MODES_4, p195 */
+#define _3DSTATE_MODES_4_CMD (CMD_3D|(0x16<<24))
+#define ENABLE_LOGIC_OP_FUNC (1<<23)
+#define LOGIC_OP_FUNC(x) ((x)<<18)
+#define LOGICOP_MASK ((1<<18)|(1<<19)|(1<<20)|(1<<21))
+#define LOGICOP_CLEAR 0
+#define LOGICOP_NOR 0x1
+#define LOGICOP_AND_INV 0x2
+#define LOGICOP_COPY_INV 0x3
+#define LOGICOP_AND_RVRSE 0x4
+#define LOGICOP_INV 0x5
+#define LOGICOP_XOR 0x6
+#define LOGICOP_NAND 0x7
+#define LOGICOP_AND 0x8
+#define LOGICOP_EQUIV 0x9
+#define LOGICOP_NOOP 0xa
+#define LOGICOP_OR_INV 0xb
+#define LOGICOP_COPY 0xc
+#define LOGICOP_OR_RVRSE 0xd
+#define LOGICOP_OR 0xe
+#define LOGICOP_SET 0xf
+#define MODE4_ENABLE_STENCIL_TEST_MASK ((1<<17)|(0xff00))
+#define ENABLE_STENCIL_TEST_MASK (1<<17)
+#define STENCIL_TEST_MASK(x) ((x)<<8)
+#define MODE4_ENABLE_STENCIL_WRITE_MASK ((1<<16)|(0x00ff))
+#define ENABLE_STENCIL_WRITE_MASK (1<<16)
+#define STENCIL_WRITE_MASK(x) ((x)&0xff)
+
+/* _3DSTATE_MODES_5, p196 */
+#define _3DSTATE_MODES_5_CMD (CMD_3D|(0x0c<<24))
+#define ENABLE_SPRITE_POINT_TEX (1<<23)
+#define SPRITE_POINT_TEX_ON (1<<22)
+#define SPRITE_POINT_TEX_OFF 0
+#define FLUSH_RENDER_CACHE (1<<18)
+#define FLUSH_TEXTURE_CACHE (1<<16)
+#define FIXED_LINE_WIDTH_MASK 0xfc00
+#define ENABLE_FIXED_LINE_WIDTH (1<<15)
+#define FIXED_LINE_WIDTH(x) ((x)<<10)
+#define FIXED_POINT_WIDTH_MASK 0x3ff
+#define ENABLE_FIXED_POINT_WIDTH (1<<9)
+#define FIXED_POINT_WIDTH(x) (x)
+
+/* _3DSTATE_RASTERIZATION_RULES, p198 */
+#define _3DSTATE_RASTER_RULES_CMD (CMD_3D|(0x07<<24))
+#define ENABLE_POINT_RASTER_RULE (1<<15)
+#define OGL_POINT_RASTER_RULE (1<<13)
+#define ENABLE_LINE_STRIP_PROVOKE_VRTX (1<<8)
+#define ENABLE_TRI_FAN_PROVOKE_VRTX (1<<5)
+#define ENABLE_TRI_STRIP_PROVOKE_VRTX (1<<2)
+#define LINE_STRIP_PROVOKE_VRTX(x) ((x)<<6)
+#define TRI_FAN_PROVOKE_VRTX(x) ((x)<<3)
+#define TRI_STRIP_PROVOKE_VRTX(x) (x)
+
+/* _3DSTATE_SCISSOR_ENABLE, p200 */
+#define _3DSTATE_SCISSOR_ENABLE_CMD (CMD_3D|(0x1c<<24)|(0x10<<19))
+#define ENABLE_SCISSOR_RECT ((1<<1) | 1)
+#define DISABLE_SCISSOR_RECT (1<<1)
+
+/* _3DSTATE_SCISSOR_RECTANGLE_0, p201 */
+#define _3DSTATE_SCISSOR_RECT_0_CMD (CMD_3D|(0x1d<<24)|(0x81<<16)|1)
+/* Dword 1 */
+#define SCISSOR_RECT_0_YMIN(x) ((x)<<16)
+#define SCISSOR_RECT_0_XMIN(x) (x)
+/* Dword 2 */
+#define SCISSOR_RECT_0_YMAX(x) ((x)<<16)
+#define SCISSOR_RECT_0_XMAX(x) (x)
+
+/* _3DSTATE_STENCIL_TEST, p202 */
+#define _3DSTATE_STENCIL_TEST_CMD (CMD_3D|(0x09<<24))
+#define ENABLE_STENCIL_PARMS (1<<23)
+#define STENCIL_OPS_MASK (0xffc000)
+#define STENCIL_FAIL_OP(x) ((x)<<20)
+#define STENCIL_PASS_DEPTH_FAIL_OP(x) ((x)<<17)
+#define STENCIL_PASS_DEPTH_PASS_OP(x) ((x)<<14)
+
+#define ENABLE_STENCIL_TEST_FUNC_MASK ((1<<13)|(1<<12)|(1<<11)|(1<<10)|(1<<9))
+#define ENABLE_STENCIL_TEST_FUNC (1<<13)
+/* Uses COMPAREFUNC */
+#define STENCIL_TEST_FUNC(x) ((x)<<9)
+#define STENCIL_REF_VALUE_MASK ((1<<8)|0xff)
+#define ENABLE_STENCIL_REF_VALUE (1<<8)
+#define STENCIL_REF_VALUE(x) (x)
+
+/* _3DSTATE_VERTEX_FORMAT, p204 */
+#define _3DSTATE_VFT0_CMD (CMD_3D|(0x05<<24))
+#define VFT0_POINT_WIDTH (1<<12)
+#define VFT0_TEX_COUNT_MASK (7<<8)
+#define VFT0_TEX_COUNT_SHIFT 8
+#define VFT0_TEX_COUNT(x) ((x)<<8)
+#define VFT0_SPEC (1<<7)
+#define VFT0_DIFFUSE (1<<6)
+#define VFT0_DEPTH_OFFSET (1<<5)
+#define VFT0_XYZ (1<<1)
+#define VFT0_XYZW (2<<1)
+#define VFT0_XY (3<<1)
+#define VFT0_XYW (4<<1)
+#define VFT0_XYZW_MASK (7<<1)
+
+/* _3DSTATE_VERTEX_FORMAT_2, p206 */
+#define _3DSTATE_VERTEX_FORMAT_2_CMD (CMD_3D|(0x0a<<24))
+#define VFT1_TEX7_FMT(x) ((x)<<14)
+#define VFT1_TEX6_FMT(x) ((x)<<12)
+#define VFT1_TEX5_FMT(x) ((x)<<10)
+#define VFT1_TEX4_FMT(x) ((x)<<8)
+#define VFT1_TEX3_FMT(x) ((x)<<6)
+#define VFT1_TEX2_FMT(x) ((x)<<4)
+#define VFT1_TEX1_FMT(x) ((x)<<2)
+#define VFT1_TEX0_FMT(x) (x)
+#define VFT1_TEX0_MASK 3
+#define VFT1_TEX1_SHIFT 2
+#define TEXCOORDFMT_2D 0
+#define TEXCOORDFMT_3D 1
+#define TEXCOORDFMT_4D 2
+#define TEXCOORDFMT_1D 3
+
+/*New stuff picked up along the way */
+
+#define MLC_LOD_BIAS_MASK ((1<<7)-1)
+
+/* _3DSTATE_VERTEX_TRANSFORM, p207 */
+#define _3DSTATE_VERTEX_TRANS_CMD (CMD_3D|(0x1d<<24)|(0x8b<<16)|0)
+#define _3DSTATE_VERTEX_TRANS_MTX_CMD (CMD_3D|(0x1d<<24)|(0x8b<<16)|6)
+/* Dword 1 */
+#define ENABLE_VIEWPORT_TRANSFORM ((1<<31)|(1<<30))
+#define DISABLE_VIEWPORT_TRANSFORM (1<<31)
+#define ENABLE_PERSP_DIVIDE ((1<<29)|(1<<28))
+#define DISABLE_PERSP_DIVIDE (1<<29)
+#define VRTX_TRANS_LOAD_MATRICES 0x7421
+#define VRTX_TRANS_NO_LOAD_MATRICES 0x0000
+/* Dword 2 -> 7 are matrix elements */
+
+/* _3DSTATE_W_STATE, p209 */
+#define _3DSTATE_W_STATE_CMD (CMD_3D|(0x1d<<24)|(0x8d<<16)|1)
+/* Dword 1 */
+#define MAGIC_W_STATE_DWORD1 0x00000008
+/* Dword 2 */
+#define WFAR_VALUE(x) (x)
+
+/* Stipple command, carried over from the i810, apparently:
+ */
+#define _3DSTATE_STIPPLE (CMD_3D|(0x1d<<24)|(0x83<<16))
+#define ST1_ENABLE (1<<16)
+#define ST1_MASK (0xffff)
+
+#define _3DSTATE_LOAD_STATE_IMMEDIATE_1 (CMD_3D|(0x1d<<24)|(0x04<<16))
+#define I1_LOAD_S(n) (1<<((n)+4))
+#define S3_POINT_WIDTH_SHIFT 23
+#define S3_LINE_WIDTH_SHIFT 19
+#define S3_ALPHA_SHADE_MODE_SHIFT 18
+#define S3_FOG_SHADE_MODE_SHIFT 17
+#define S3_SPEC_SHADE_MODE_SHIFT 16
+#define S3_COLOR_SHADE_MODE_SHIFT 15
+#define S3_CULL_MODE_SHIFT 13
+#define S3_CULLMODE_BOTH (0)
+#define S3_CULLMODE_NONE (1<<13)
+#define S3_CULLMODE_CW (2<<13)
+#define S3_CULLMODE_CCW (3<<13)
+#define S3_POINT_WIDTH_PRESENT (1<<12)
+#define S3_SPEC_FOG_PRESENT (1<<11)
+#define S3_DIFFUSE_PRESENT (1<<10)
+#define S3_DEPTH_OFFSET_PRESENT (1<<9)
+#define S3_POSITION_SHIFT 6
+#define S3_VERTEXHAS_XYZ (1<<6)
+#define S3_VERTEXHAS_XYZW (2<<6)
+#define S3_VERTEXHAS_XY (3<<6)
+#define S3_VERTEXHAS_XYW (4<<6)
+#define S3_ENABLE_SPEC_ADD (1<<5)
+#define S3_ENABLE_FOG (1<<4)
+#define S3_ENABLE_LOCAL_DEPTH_BIAS (1<<3)
+#define S3_ENABLE_SPRITE_POINT (1<<1)
+#define S3_ENABLE_ANTIALIASING 1
+#define S8_ENABLE_ALPHA_TEST (1<<31)
+#define S8_ALPHA_TEST_FUNC_SHIFT 28
+#define S8_ALPHA_REFVALUE_SHIFT 20
+#define S8_ENABLE_DEPTH_TEST (1<<19)
+#define S8_DEPTH_TEST_FUNC_SHIFT 16
+#define S8_ENABLE_COLOR_BLEND (1<<15)
+#define S8_COLOR_BLEND_FUNC_SHIFT 12
+#define S8_BLENDFUNC_ADD (0)
+#define S8_BLENDFUNC_SUB (1<<12)
+#define S8_BLENDFUNC_RVRSE_SUB (2<<12)
+#define S8_BLENDFUNC_MIN (3<<12)
+#define S8_BLENDFUNC_MAX (4<<12)
+#define S8_SRC_BLEND_FACTOR_SHIFT 8
+#define S8_DST_BLEND_FACTOR_SHIFT 4
+#define S8_ENABLE_DEPTH_BUFFER_WRITE (1<<3)
+#define S8_ENABLE_COLOR_BUFFER_WRITE (1<<2)
+
+#define _3DSTATE_LOAD_STATE_IMMEDIATE_2 (CMD_3D|(0x1d<<24)|(0x03<<16))
+#define LOAD_TEXTURE_MAP(x) (1<<((x)+11))
+#define LOAD_TEXTURE_BLEND_STAGE(x) (1<<((x)+7))
+#define LOAD_GLOBAL_COLOR_FACTOR (1<<6)
+
+#define TM0S0_ADDRESS_MASK 0xfffffffc
+#define TM0S0_USE_FENCE (1<<1)
+
+#define TM0S1_HEIGHT_SHIFT 21
+#define TM0S1_WIDTH_SHIFT 10
+#define TM0S1_PALETTE_SELECT (1<<9)
+#define TM0S1_MAPSURF_FORMAT_MASK (0x7 << 6)
+#define TM0S1_MAPSURF_FORMAT_SHIFT 6
+#define MAPSURF_8BIT_INDEXED (0<<6)
+#define MAPSURF_8BIT (1<<6)
+#define MAPSURF_16BIT (2<<6)
+#define MAPSURF_32BIT (3<<6)
+#define MAPSURF_411 (4<<6)
+#define MAPSURF_422 (5<<6)
+#define MAPSURF_COMPRESSED (6<<6)
+#define MAPSURF_4BIT_INDEXED (7<<6)
+#define TM0S1_MT_FORMAT_MASK (0x7 << 3)
+#define TM0S1_MT_FORMAT_SHIFT 3
+#define MT_4BIT_IDX_ARGB8888 (7<<3) /* SURFACE_4BIT_INDEXED */
+#define MT_8BIT_IDX_RGB565 (0<<3) /* SURFACE_8BIT_INDEXED */
+#define MT_8BIT_IDX_ARGB1555 (1<<3)
+#define MT_8BIT_IDX_ARGB4444 (2<<3)
+#define MT_8BIT_IDX_AY88 (3<<3)
+#define MT_8BIT_IDX_ABGR8888 (4<<3)
+#define MT_8BIT_IDX_BUMP_88DVDU (5<<3)
+#define MT_8BIT_IDX_BUMP_655LDVDU (6<<3)
+#define MT_8BIT_IDX_ARGB8888 (7<<3)
+#define MT_8BIT_I8 (0<<3) /* SURFACE_8BIT */
+#define MT_8BIT_L8 (1<<3)
+#define MT_8BIT_A8 (4<<3)
+#define MT_16BIT_RGB565 (0<<3) /* SURFACE_16BIT */
+#define MT_16BIT_ARGB1555 (1<<3)
+#define MT_16BIT_ARGB4444 (2<<3)
+#define MT_16BIT_AY88 (3<<3)
+#define MT_16BIT_DIB_ARGB1555_8888 (4<<3)
+#define MT_16BIT_BUMP_88DVDU (5<<3)
+#define MT_16BIT_BUMP_655LDVDU (6<<3)
+#define MT_16BIT_DIB_RGB565_8888 (7<<3)
+#define MT_32BIT_ARGB8888 (0<<3) /* SURFACE_32BIT */
+#define MT_32BIT_ABGR8888 (1<<3)
+#define MT_32BIT_XRGB8888 (2<<3)
+#define MT_32BIT_XBGR8888 (3<<3)
+#define MT_32BIT_BUMP_XLDVDU_8888 (6<<3)
+#define MT_32BIT_DIB_8888 (7<<3)
+#define MT_411_YUV411 (0<<3) /* SURFACE_411 */
+#define MT_422_YCRCB_SWAPY (0<<3) /* SURFACE_422 */
+#define MT_422_YCRCB_NORMAL (1<<3)
+#define MT_422_YCRCB_SWAPUV (2<<3)
+#define MT_422_YCRCB_SWAPUVY (3<<3)
+#define MT_COMPRESS_DXT1 (0<<3) /* SURFACE_COMPRESSED */
+#define MT_COMPRESS_DXT2_3 (1<<3)
+#define MT_COMPRESS_DXT4_5 (2<<3)
+#define MT_COMPRESS_FXT1 (3<<3)
+#define TM0S1_COLORSPACE_CONVERSION (1 << 2)
+#define TM0S1_TILED_SURFACE (1 << 1)
+#define TM0S1_TILE_WALK (1 << 0)
+
+#define TM0S2_PITCH_SHIFT 21
+#define TM0S2_CUBE_FACE_ENA_SHIFT 15
+#define TM0S2_CUBE_FACE_ENA_MASK (1<<15)
+#define TM0S2_MAP_FORMAT (1<<14)
+#define TM0S2_MAP_2D (0<<14)
+#define TM0S2_MAP_3D_CUBE (1<<14)
+#define TM0S2_VERTICAL_LINE_STRIDE (1<<13)
+#define TM0S2_VERITCAL_LINE_STRIDE_OFF (1<<12)
+#define TM0S2_OUTPUT_CHAN_SHIFT 10
+#define TM0S2_OUTPUT_CHAN_MASK (3<<10)
+
+#define TM0S3_MIP_FILTER_MASK (0x3<<30)
+#define TM0S3_MIP_FILTER_SHIFT 30
+#define MIPFILTER_NONE 0
+#define MIPFILTER_NEAREST 1
+#define MIPFILTER_LINEAR 3
+#define TM0S3_MAG_FILTER_MASK (0x3<<28)
+#define TM0S3_MAG_FILTER_SHIFT 28
+#define TM0S3_MIN_FILTER_MASK (0x3<<26)
+#define TM0S3_MIN_FILTER_SHIFT 26
+#define FILTER_NEAREST 0
+#define FILTER_LINEAR 1
+#define FILTER_ANISOTROPIC 2
+
+#define TM0S3_LOD_BIAS_SHIFT 17
+#define TM0S3_LOD_BIAS_MASK (0x1ff<<17)
+#define TM0S3_MAX_MIP_SHIFT 9
+#define TM0S3_MAX_MIP_MASK (0xff<<9)
+#define TM0S3_MIN_MIP_SHIFT 3
+#define TM0S3_MIN_MIP_MASK (0x3f<<3)
+#define TM0S3_KILL_PIXEL (1<<2)
+#define TM0S3_KEYED_FILTER (1<<1)
+#define TM0S3_CHROMA_KEY (1<<0)
+
+/* _3DSTATE_MAP_TEXEL_STREAM, p188 */
+#define _3DSTATE_MAP_TEX_STREAM_CMD (CMD_3D|(0x1c<<24)|(0x05<<19))
+#define DISABLE_TEX_STREAM_BUMP (1<<12)
+#define ENABLE_TEX_STREAM_BUMP ((1<<12)|(1<<11))
+#define TEX_MODIFY_UNIT_0 0
+#define TEX_MODIFY_UNIT_1 (1<<8)
+#define ENABLE_TEX_STREAM_COORD_SET (1<<7)
+#define TEX_STREAM_COORD_SET(x) ((x)<<4)
+#define ENABLE_TEX_STREAM_MAP_IDX (1<<3)
+#define TEX_STREAM_MAP_IDX(x) (x)
+
+#define FLUSH_MAP_CACHE (1<<0)
+
+#define _3DSTATE_MAP_FILTER_CMD (CMD_3D|(0x1c<<24)|(0x02<<19))
+#define FILTER_TEXMAP_INDEX(x) ((x) << 16)
+#define MAG_MODE_FILTER_ENABLE (1 << 5)
+#define MIN_MODE_FILTER_ENABLE (1 << 2)
+#define MAG_MAPFILTER_NEAREST (0 << 3)
+#define MAG_MAPFILTER_LINEAR (1 << 3)
+#define MAG_MAPFILTER_ANISOTROPIC (2 << 3)
+#define MIN_MAPFILTER_NEAREST (0)
+#define MIN_MAPFILTER_LINEAR (1)
+#define MIN_MAPFILTER_ANISOTROPIC (2)
+#define ENABLE_KEYS (1<<15)
+#define DISABLE_COLOR_KEY 0
+#define DISABLE_CHROMA_KEY 0
+#define DISABLE_KILL_PIXEL 0
+#define ENABLE_MIP_MODE_FILTER (1 << 9)
+#define MIPFILTER_NONE 0
+#define MIPFILTER_NEAREST 1
+#define MIPFILTER_LINEAR 3
+
+#endif
diff --git a/src/i830_render.c b/src/i830_render.c
new file mode 100644
index 0000000..3f3d2ef
--- /dev/null
+++ b/src/i830_render.c
@@ -0,0 +1,877 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Eric Anholt <eric@anholt.net>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "intel.h"
+#include "i830_reg.h"
+
+struct blendinfo {
+ Bool dst_alpha;
+ Bool src_alpha;
+ uint32_t src_blend;
+ uint32_t dst_blend;
+};
+
+struct formatinfo {
+ int fmt;
+ uint32_t card_fmt;
+};
+
+#define TB0C_LAST_STAGE (1 << 31)
+#define TB0C_RESULT_SCALE_1X (0 << 29)
+#define TB0C_RESULT_SCALE_2X (1 << 29)
+#define TB0C_RESULT_SCALE_4X (2 << 29)
+#define TB0C_OP_MODULE (3 << 25)
+#define TB0C_OUTPUT_WRITE_CURRENT (0 << 24)
+#define TB0C_OUTPUT_WRITE_ACCUM (1 << 24)
+#define TB0C_ARG3_REPLICATE_ALPHA (1<<23)
+#define TB0C_ARG3_INVERT (1<<22)
+#define TB0C_ARG3_SEL_XXX
+#define TB0C_ARG2_REPLICATE_ALPHA (1<<17)
+#define TB0C_ARG2_INVERT (1<<16)
+#define TB0C_ARG2_SEL_ONE (0 << 12)
+#define TB0C_ARG2_SEL_FACTOR (1 << 12)
+#define TB0C_ARG2_SEL_TEXEL0 (6 << 12)
+#define TB0C_ARG2_SEL_TEXEL1 (7 << 12)
+#define TB0C_ARG2_SEL_TEXEL2 (8 << 12)
+#define TB0C_ARG2_SEL_TEXEL3 (9 << 12)
+#define TB0C_ARG1_REPLICATE_ALPHA (1<<11)
+#define TB0C_ARG1_INVERT (1<<10)
+#define TB0C_ARG1_SEL_ONE (0 << 6)
+#define TB0C_ARG1_SEL_TEXEL0 (6 << 6)
+#define TB0C_ARG1_SEL_TEXEL1 (7 << 6)
+#define TB0C_ARG1_SEL_TEXEL2 (8 << 6)
+#define TB0C_ARG1_SEL_TEXEL3 (9 << 6)
+#define TB0C_ARG0_REPLICATE_ALPHA (1<<5)
+#define TB0C_ARG0_SEL_XXX
+
+#define TB0A_CTR_STAGE_ENABLE (1<<31)
+#define TB0A_RESULT_SCALE_1X (0 << 29)
+#define TB0A_RESULT_SCALE_2X (1 << 29)
+#define TB0A_RESULT_SCALE_4X (2 << 29)
+#define TB0A_OP_MODULE (3 << 25)
+#define TB0A_OUTPUT_WRITE_CURRENT (0<<24)
+#define TB0A_OUTPUT_WRITE_ACCUM (1<<24)
+#define TB0A_CTR_STAGE_SEL_BITS_XXX
+#define TB0A_ARG3_SEL_XXX
+#define TB0A_ARG3_INVERT (1<<17)
+#define TB0A_ARG2_INVERT (1<<16)
+#define TB0A_ARG2_SEL_ONE (0 << 12)
+#define TB0A_ARG2_SEL_TEXEL0 (6 << 12)
+#define TB0A_ARG2_SEL_TEXEL1 (7 << 12)
+#define TB0A_ARG2_SEL_TEXEL2 (8 << 12)
+#define TB0A_ARG2_SEL_TEXEL3 (9 << 12)
+#define TB0A_ARG1_INVERT (1<<10)
+#define TB0A_ARG1_SEL_ONE (0 << 6)
+#define TB0A_ARG1_SEL_TEXEL0 (6 << 6)
+#define TB0A_ARG1_SEL_TEXEL1 (7 << 6)
+#define TB0A_ARG1_SEL_TEXEL2 (8 << 6)
+#define TB0A_ARG1_SEL_TEXEL3 (9 << 6)
+
+static struct blendinfo i830_blend_op[] = {
+ /* Clear */
+ {0, 0, BLENDFACTOR_ZERO, BLENDFACTOR_ZERO},
+ /* Src */
+ {0, 0, BLENDFACTOR_ONE, BLENDFACTOR_ZERO},
+ /* Dst */
+ {0, 0, BLENDFACTOR_ZERO, BLENDFACTOR_ONE},
+ /* Over */
+ {0, 1, BLENDFACTOR_ONE, BLENDFACTOR_INV_SRC_ALPHA},
+ /* OverReverse */
+ {1, 0, BLENDFACTOR_INV_DST_ALPHA, BLENDFACTOR_ONE},
+ /* In */
+ {1, 0, BLENDFACTOR_DST_ALPHA, BLENDFACTOR_ZERO},
+ /* InReverse */
+ {0, 1, BLENDFACTOR_ZERO, BLENDFACTOR_SRC_ALPHA},
+ /* Out */
+ {1, 0, BLENDFACTOR_INV_DST_ALPHA, BLENDFACTOR_ZERO},
+ /* OutReverse */
+ {0, 1, BLENDFACTOR_ZERO, BLENDFACTOR_INV_SRC_ALPHA},
+ /* Atop */
+ {1, 1, BLENDFACTOR_DST_ALPHA, BLENDFACTOR_INV_SRC_ALPHA},
+ /* AtopReverse */
+ {1, 1, BLENDFACTOR_INV_DST_ALPHA, BLENDFACTOR_SRC_ALPHA},
+ /* Xor */
+ {1, 1, BLENDFACTOR_INV_DST_ALPHA, BLENDFACTOR_INV_SRC_ALPHA},
+ /* Add */
+ {0, 0, BLENDFACTOR_ONE, BLENDFACTOR_ONE},
+};
+
+static struct formatinfo i830_tex_formats[] = {
+ {PICT_a8, MAPSURF_8BIT | MT_8BIT_A8},
+ {PICT_a8r8g8b8, MAPSURF_32BIT | MT_32BIT_ARGB8888},
+ {PICT_a8b8g8r8, MAPSURF_32BIT | MT_32BIT_ABGR8888},
+ {PICT_r5g6b5, MAPSURF_16BIT | MT_16BIT_RGB565},
+ {PICT_a1r5g5b5, MAPSURF_16BIT | MT_16BIT_ARGB1555},
+ {PICT_a4r4g4b4, MAPSURF_16BIT | MT_16BIT_ARGB4444},
+};
+
+static struct formatinfo i855_tex_formats[] = {
+ {PICT_x8r8g8b8, MAPSURF_32BIT | MT_32BIT_XRGB8888},
+ {PICT_x8b8g8r8, MAPSURF_32BIT | MT_32BIT_XBGR8888},
+};
+
+static Bool i830_get_dest_format(PicturePtr dest_picture, uint32_t * dst_format)
+{
+ ScrnInfoPtr scrn;
+
+ switch (dest_picture->format) {
+ case PICT_a8r8g8b8:
+ case PICT_x8r8g8b8:
+ *dst_format = COLR_BUF_ARGB8888;
+ break;
+ case PICT_r5g6b5:
+ *dst_format = COLR_BUF_RGB565;
+ break;
+ case PICT_a1r5g5b5:
+ case PICT_x1r5g5b5:
+ *dst_format = COLR_BUF_ARGB1555;
+ break;
+ case PICT_a8:
+ *dst_format = COLR_BUF_8BIT;
+ break;
+ case PICT_a4r4g4b4:
+ case PICT_x4r4g4b4:
+ *dst_format = COLR_BUF_ARGB4444;
+ break;
+ default:
+ scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+ intel_debug_fallback(scrn, "Unsupported dest format 0x%x\n",
+ (int)dest_picture->format);
+ return FALSE;
+ }
+ *dst_format |= DSTORG_HORT_BIAS(0x8) | DSTORG_VERT_BIAS(0x8);
+ return TRUE;
+}
+
+static Bool i830_get_blend_cntl(ScrnInfoPtr scrn, int op, PicturePtr mask,
+ uint32_t dst_format, uint32_t * blendctl)
+{
+ uint32_t sblend, dblend;
+
+ sblend = i830_blend_op[op].src_blend;
+ dblend = i830_blend_op[op].dst_blend;
+
+ /* If there's no dst alpha channel, adjust the blend op so that we'll treat
+ * it as always 1.
+ */
+ if (PICT_FORMAT_A(dst_format) == 0 && i830_blend_op[op].dst_alpha) {
+ if (sblend == BLENDFACTOR_DST_ALPHA)
+ sblend = BLENDFACTOR_ONE;
+ else if (sblend == BLENDFACTOR_INV_DST_ALPHA)
+ sblend = BLENDFACTOR_ZERO;
+ }
+
+ /* For blending purposes, COLR_BUF_8BIT values show up in the green
+ * channel. So we can't use the alpha channel.
+ */
+ if (dst_format == PICT_a8 && ((sblend == BLENDFACTOR_DST_ALPHA ||
+ sblend == BLENDFACTOR_INV_DST_ALPHA))) {
+ intel_debug_fallback(scrn, "Can't do dst alpha blending with "
+ "PICT_a8 dest.\n");
+ return FALSE;
+ }
+
+ /* If the source alpha is being used, then we should only be in a case
+ * where the source blend factor is 0, and the source blend value is the
+ * mask channels multiplied by the source picture's alpha.
+ */
+ if (mask && mask->componentAlpha && PICT_FORMAT_RGB(mask->format)
+ && i830_blend_op[op].src_alpha) {
+ if (dblend == BLENDFACTOR_SRC_ALPHA) {
+ dblend = BLENDFACTOR_SRC_COLR;
+ } else if (dblend == BLENDFACTOR_INV_SRC_ALPHA) {
+ dblend = BLENDFACTOR_INV_SRC_COLR;
+ }
+ }
+
+ *blendctl = (sblend << S8_SRC_BLEND_FACTOR_SHIFT) |
+ (dblend << S8_DST_BLEND_FACTOR_SHIFT);
+
+ return TRUE;
+}
+
+static uint32_t i8xx_get_card_format(intel_screen_private *intel,
+ PicturePtr picture)
+{
+ int i;
+
+ for (i = 0; i < sizeof(i830_tex_formats) / sizeof(i830_tex_formats[0]);
+ i++) {
+ if (i830_tex_formats[i].fmt == picture->format)
+ return i830_tex_formats[i].card_fmt;
+ }
+
+ if (!(IS_I830(intel) || IS_845G(intel))) {
+ for (i = 0; i < sizeof(i855_tex_formats) / sizeof(i855_tex_formats[0]);
+ i++) {
+ if (i855_tex_formats[i].fmt == picture->format)
+ return i855_tex_formats[i].card_fmt;
+ }
+ }
+
+ return 0;
+}
+
+static void i830_texture_setup(PicturePtr picture, PixmapPtr pixmap, int unit)
+{
+
+ ScrnInfoPtr scrn = xf86Screens[picture->pDrawable->pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ uint32_t format, tiling_bits, pitch, filter;
+ uint32_t wrap_mode;
+ uint32_t texcoordtype;
+
+ pitch = intel_pixmap_pitch(pixmap);
+ intel->scale_units[unit][0] = pixmap->drawable.width;
+ intel->scale_units[unit][1] = pixmap->drawable.height;
+ intel->transform[unit] = picture->transform;
+
+ if (intel_transform_is_affine(intel->transform[unit]))
+ texcoordtype = TEXCOORDTYPE_CARTESIAN;
+ else
+ texcoordtype = TEXCOORDTYPE_HOMOGENEOUS;
+
+ switch (picture->repeatType) {
+ case RepeatNone:
+ wrap_mode = TEXCOORDMODE_CLAMP_BORDER;
+ break;
+ case RepeatNormal:
+ wrap_mode = TEXCOORDMODE_WRAP;
+ break;
+ case RepeatPad:
+ wrap_mode = TEXCOORDMODE_CLAMP;
+ break;
+ case RepeatReflect:
+ wrap_mode = TEXCOORDMODE_MIRROR;
+ break;
+ default:
+ FatalError("Unknown repeat type %d\n", picture->repeatType);
+ }
+
+ switch (picture->filter) {
+ case PictFilterNearest:
+ filter = ((FILTER_NEAREST << TM0S3_MAG_FILTER_SHIFT) |
+ (FILTER_NEAREST << TM0S3_MIN_FILTER_SHIFT));
+ break;
+ case PictFilterBilinear:
+ filter = ((FILTER_LINEAR << TM0S3_MAG_FILTER_SHIFT) |
+ (FILTER_LINEAR << TM0S3_MIN_FILTER_SHIFT));
+ break;
+ default:
+ FatalError("Bad filter 0x%x\n", picture->filter);
+ }
+ filter |= (MIPFILTER_NONE << TM0S3_MIP_FILTER_SHIFT);
+
+ if (intel_pixmap_tiled(pixmap)) {
+ tiling_bits = TM0S1_TILED_SURFACE;
+ if (intel_get_pixmap_private(pixmap)->tiling
+ == I915_TILING_Y)
+ tiling_bits |= TM0S1_TILE_WALK;
+ } else
+ tiling_bits = 0;
+
+ format = i8xx_get_card_format(intel, picture);
+
+ assert(intel->in_batch_atomic);
+
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_2 |
+ LOAD_TEXTURE_MAP(unit) | 4);
+ OUT_RELOC_PIXMAP(pixmap, I915_GEM_DOMAIN_SAMPLER, 0, 0);
+ OUT_BATCH(((pixmap->drawable.height -
+ 1) << TM0S1_HEIGHT_SHIFT) | ((pixmap->drawable.width -
+ 1) <<
+ TM0S1_WIDTH_SHIFT) |
+ format | tiling_bits);
+ OUT_BATCH((pitch / 4 - 1) << TM0S2_PITCH_SHIFT | TM0S2_MAP_2D);
+ OUT_BATCH(filter);
+ OUT_BATCH(0); /* default color */
+ OUT_BATCH(_3DSTATE_MAP_COORD_SET_CMD | TEXCOORD_SET(unit) |
+ ENABLE_TEXCOORD_PARAMS | TEXCOORDS_ARE_NORMAL |
+ texcoordtype | ENABLE_ADDR_V_CNTL |
+ TEXCOORD_ADDR_V_MODE(wrap_mode) |
+ ENABLE_ADDR_U_CNTL | TEXCOORD_ADDR_U_MODE(wrap_mode));
+ /* map texel stream */
+ OUT_BATCH(_3DSTATE_MAP_COORD_SETBIND_CMD);
+ if (unit == 0)
+ OUT_BATCH(TEXBIND_SET0(TEXCOORDSRC_VTXSET_0) |
+ TEXBIND_SET1(TEXCOORDSRC_KEEP) |
+ TEXBIND_SET2(TEXCOORDSRC_KEEP) |
+ TEXBIND_SET3(TEXCOORDSRC_KEEP));
+ else
+ OUT_BATCH(TEXBIND_SET0(TEXCOORDSRC_VTXSET_0) |
+ TEXBIND_SET1(TEXCOORDSRC_VTXSET_1) |
+ TEXBIND_SET2(TEXCOORDSRC_KEEP) |
+ TEXBIND_SET3(TEXCOORDSRC_KEEP));
+ OUT_BATCH(_3DSTATE_MAP_TEX_STREAM_CMD | (unit << 16) |
+ DISABLE_TEX_STREAM_BUMP |
+ ENABLE_TEX_STREAM_COORD_SET |
+ TEX_STREAM_COORD_SET(unit) |
+ ENABLE_TEX_STREAM_MAP_IDX | TEX_STREAM_MAP_IDX(unit));
+}
+
+Bool
+i830_check_composite(int op,
+ PicturePtr source_picture,
+ PicturePtr mask_picture,
+ PicturePtr dest_picture,
+ int width, int height)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+ uint32_t tmp1;
+
+ /* Check for unsupported compositing operations. */
+ if (op >= sizeof(i830_blend_op) / sizeof(i830_blend_op[0])) {
+ intel_debug_fallback(scrn, "Unsupported Composite op 0x%x\n",
+ op);
+ return FALSE;
+ }
+
+ if (mask_picture != NULL && mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ /* Check if it's component alpha that relies on a source alpha and on
+ * the source value. We can only get one of those into the single
+ * source value that we get to blend with.
+ */
+ if (i830_blend_op[op].src_alpha &&
+ (i830_blend_op[op].src_blend != BLENDFACTOR_ZERO)) {
+ intel_debug_fallback(scrn, "Component alpha not "
+ "supported with source alpha and "
+ "source value blending.\n");
+ return FALSE;
+ }
+ }
+
+ if (!i830_get_dest_format(dest_picture, &tmp1)) {
+ intel_debug_fallback(scrn, "Get Color buffer format\n");
+ return FALSE;
+ }
+
+ if (width > 2048 || height > 2048) {
+ intel_debug_fallback(scrn, "Operation is too large (%d, %d)\n", width, height);
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+Bool
+i830_check_composite_target(PixmapPtr pixmap)
+{
+ if (pixmap->drawable.width > 2048 || pixmap->drawable.height > 2048)
+ return FALSE;
+
+ if(!intel_check_pitch_3d(pixmap))
+ return FALSE;
+
+ return TRUE;
+}
+
+Bool
+i830_check_composite_texture(ScreenPtr screen, PicturePtr picture)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (picture->repeatType > RepeatReflect) {
+ intel_debug_fallback(scrn, "Unsupported picture repeat %d\n",
+ picture->repeatType);
+ return FALSE;
+ }
+
+ if (picture->filter != PictFilterNearest &&
+ picture->filter != PictFilterBilinear) {
+ intel_debug_fallback(scrn, "Unsupported filter 0x%x\n",
+ picture->filter);
+ return FALSE;
+ }
+
+ if (picture->pDrawable) {
+ int w, h;
+
+ w = picture->pDrawable->width;
+ h = picture->pDrawable->height;
+ if ((w > 2048) || (h > 2048)) {
+ intel_debug_fallback(scrn,
+ "Picture w/h too large (%dx%d)\n",
+ w, h);
+ return FALSE;
+ }
+
+ /* XXX we can use the xrgb32 types if there the picture covers the clip */
+ if (!i8xx_get_card_format(intel, picture)) {
+ intel_debug_fallback(scrn, "Unsupported picture format "
+ "0x%x\n",
+ (int)picture->format);
+ return FALSE;
+ }
+
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+Bool
+i830_prepare_composite(int op, PicturePtr source_picture,
+ PicturePtr mask_picture, PicturePtr dest_picture,
+ PixmapPtr source, PixmapPtr mask, PixmapPtr dest)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *bo_table[] = {
+ NULL, /* batch_bo */
+ intel_get_pixmap_bo(source),
+ mask ? intel_get_pixmap_bo(mask) : NULL,
+ intel_get_pixmap_bo(dest),
+ };
+
+ intel->render_source_picture = source_picture;
+ intel->render_source = source;
+ intel->render_mask_picture = mask_picture;
+ intel->render_mask = mask;
+ intel->render_dest_picture = dest_picture;
+ intel->render_dest = dest;
+
+ if (!intel_check_pitch_3d(source))
+ return FALSE;
+ if (mask) {
+ if (mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ /* Check if it's component alpha that relies on a source alpha and on
+ * the source value. We can only get one of those into the single
+ * source value that we get to blend with.
+ */
+ if (i830_blend_op[op].src_alpha &&
+ (i830_blend_op[op].src_blend != BLENDFACTOR_ZERO)) {
+ intel_debug_fallback(scrn, "Component alpha not "
+ "supported with source alpha and "
+ "source value blending.\n");
+ return FALSE;
+ }
+ }
+ if (!intel_check_pitch_3d(mask))
+ return FALSE;
+ }
+ if (!intel_check_pitch_3d(dest))
+ return FALSE;
+
+ if (!i830_get_dest_format(dest_picture, &intel->render_dest_format))
+ return FALSE;
+
+ if (!intel_get_aperture_space(scrn, bo_table, ARRAY_SIZE(bo_table)))
+ return FALSE;
+
+ if (mask) {
+ intel->transform[1] = NULL;
+ intel->scale_units[1][0] = -1;
+ intel->scale_units[1][1] = -1;
+ }
+
+ {
+ uint32_t cblend, ablend, blendctl;
+
+ /* If component alpha is active in the mask and the blend operation
+ * uses the source alpha, then we know we don't need the source
+ * value (otherwise we would have hit a fallback earlier), so we
+ * provide the source alpha (src.A * mask.X) as output color.
+ * Conversely, if CA is set and we don't need the source alpha, then
+ * we produce the source value (src.X * mask.X) and the source alpha
+ * is unused.. Otherwise, we provide the non-CA source value
+ * (src.X * mask.A).
+ *
+ * The PICT_FORMAT_RGB(pict) == 0 fixups are not needed on 855+'s a8
+ * pictures, but we need to implement it for 830/845 and there's no
+ * harm done in leaving it in.
+ */
+ cblend =
+ TB0C_LAST_STAGE | TB0C_RESULT_SCALE_1X | TB0C_OP_MODULE |
+ TB0C_OUTPUT_WRITE_CURRENT;
+ ablend =
+ TB0A_RESULT_SCALE_1X | TB0A_OP_MODULE |
+ TB0A_OUTPUT_WRITE_CURRENT;
+
+ /* Get the source picture's channels into TBx_ARG1 */
+ if ((mask_picture != NULL &&
+ mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format) &&
+ i830_blend_op[op].src_alpha)
+ || dest_picture->format == PICT_a8) {
+ /* Producing source alpha value, so the first set of channels
+ * is src.A instead of src.X. We also do this if the destination
+ * is a8, in which case src.G is what's written, and the other
+ * channels are ignored.
+ */
+ ablend |= TB0A_ARG1_SEL_TEXEL0;
+ cblend |= TB0C_ARG1_SEL_TEXEL0 | TB0C_ARG1_REPLICATE_ALPHA;
+ } else {
+ if (PICT_FORMAT_RGB(source_picture->format) != 0)
+ cblend |= TB0C_ARG1_SEL_TEXEL0;
+ else
+ cblend |= TB0C_ARG1_SEL_ONE | TB0C_ARG1_INVERT; /* 0.0 */
+ ablend |= TB0A_ARG1_SEL_TEXEL0;
+ }
+
+ if (mask) {
+ cblend |= TB0C_ARG2_SEL_TEXEL1;
+ if (dest_picture->format == PICT_a8 ||
+ ! mask_picture->componentAlpha ||
+ ! PICT_FORMAT_RGB(mask_picture->format))
+ cblend |= TB0C_ARG2_REPLICATE_ALPHA;
+ ablend |= TB0A_ARG2_SEL_TEXEL1;
+ } else {
+ cblend |= TB0C_ARG2_SEL_ONE;
+ ablend |= TB0A_ARG2_SEL_ONE;
+ }
+
+ if (!i830_get_blend_cntl
+ (scrn, op, mask_picture, dest_picture->format, &blendctl)) {
+ return FALSE;
+ }
+
+ intel->cblend = cblend;
+ intel->ablend = ablend;
+ intel->s8_blendctl = blendctl;
+ }
+
+ if(intel_pixmap_is_dirty(source) ||
+ (mask && intel_pixmap_is_dirty(mask)))
+ intel_batch_emit_flush(scrn);
+
+ intel->needs_render_state_emit = TRUE;
+
+ return TRUE;
+}
+
+static void i830_emit_composite_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ uint32_t vf2, tiling_bits;
+ uint32_t texcoordfmt = 0;
+
+ intel->needs_render_state_emit = FALSE;
+
+ IntelEmitInvarientState(scrn);
+ intel->last_3d = LAST_3D_RENDER;
+
+ assert(intel->in_batch_atomic);
+
+ if (intel_pixmap_tiled(intel->render_dest)) {
+ tiling_bits = BUF_3D_TILED_SURFACE;
+ if (intel_get_pixmap_private(intel->render_dest)->tiling
+ == I915_TILING_Y)
+ tiling_bits |= BUF_3D_TILE_WALK_Y;
+ } else
+ tiling_bits = 0;
+
+ OUT_BATCH(_3DSTATE_BUF_INFO_CMD);
+ OUT_BATCH(BUF_3D_ID_COLOR_BACK | tiling_bits |
+ BUF_3D_PITCH(intel_pixmap_pitch(intel->render_dest)));
+ OUT_RELOC_PIXMAP(intel->render_dest,
+ I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, 0);
+
+ OUT_BATCH(_3DSTATE_DST_BUF_VARS_CMD);
+ OUT_BATCH(intel->render_dest_format);
+
+ OUT_BATCH(_3DSTATE_DRAW_RECT_CMD);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* ymin, xmin */
+ OUT_BATCH(DRAW_YMAX(intel->render_dest->drawable.height - 1) |
+ DRAW_XMAX(intel->render_dest->drawable.width - 1));
+ OUT_BATCH(0); /* yorig, xorig */
+
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 |
+ I1_LOAD_S(2) | I1_LOAD_S(3) | I1_LOAD_S(8) | 2);
+ if (intel->render_mask)
+ vf2 = 2 << 12; /* 2 texture coord sets */
+ else
+ vf2 = 1 << 12;
+ OUT_BATCH(vf2); /* number of coordinate sets */
+ OUT_BATCH(S3_CULLMODE_NONE | S3_VERTEXHAS_XY);
+ OUT_BATCH(S8_ENABLE_COLOR_BLEND | S8_BLENDFUNC_ADD | intel->
+ s8_blendctl | S8_ENABLE_COLOR_BUFFER_WRITE);
+
+ OUT_BATCH(_3DSTATE_INDPT_ALPHA_BLEND_CMD | DISABLE_INDPT_ALPHA_BLEND);
+
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_2 |
+ LOAD_TEXTURE_BLEND_STAGE(0) | 1);
+ OUT_BATCH(intel->cblend);
+ OUT_BATCH(intel->ablend);
+
+ OUT_BATCH(_3DSTATE_ENABLES_1_CMD | DISABLE_LOGIC_OP |
+ DISABLE_STENCIL_TEST | DISABLE_DEPTH_BIAS |
+ DISABLE_SPEC_ADD | DISABLE_FOG | DISABLE_ALPHA_TEST |
+ ENABLE_COLOR_BLEND | DISABLE_DEPTH_TEST);
+ /* We have to explicitly say we don't want write disabled */
+ OUT_BATCH(_3DSTATE_ENABLES_2_CMD | ENABLE_COLOR_MASK |
+ DISABLE_STENCIL_WRITE | ENABLE_TEX_CACHE |
+ DISABLE_DITHER | ENABLE_COLOR_WRITE | DISABLE_DEPTH_WRITE);
+
+ if (intel_transform_is_affine(intel->render_source_picture->transform))
+ texcoordfmt |= (TEXCOORDFMT_2D << 0);
+ else
+ texcoordfmt |= (TEXCOORDFMT_3D << 0);
+ if (intel->render_mask) {
+ if (intel_transform_is_affine
+ (intel->render_mask_picture->transform))
+ texcoordfmt |= (TEXCOORDFMT_2D << 2);
+ else
+ texcoordfmt |= (TEXCOORDFMT_3D << 2);
+ }
+ OUT_BATCH(_3DSTATE_VERTEX_FORMAT_2_CMD | texcoordfmt);
+
+ i830_texture_setup(intel->render_source_picture, intel->render_source, 0);
+ if (intel->render_mask) {
+ i830_texture_setup(intel->render_mask_picture,
+ intel->render_mask, 1);
+ }
+}
+
+/* Emit the vertices for a single composite rectangle.
+ *
+ * This function is no longer shared between i830 and i915 generation code.
+ */
+static void
+i830_emit_composite_primitive(PixmapPtr dest,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY, int w, int h)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ Bool is_affine_src, is_affine_mask = TRUE;
+ int per_vertex;
+ float src_x[3], src_y[3], src_w[3], mask_x[3], mask_y[3], mask_w[3];
+
+ per_vertex = 2; /* dest x/y */
+
+ {
+ float x = srcX, y = srcY;
+
+ is_affine_src = intel_transform_is_affine(intel->transform[0]);
+ if (is_affine_src) {
+ if (!intel_get_transformed_coordinates(x, y,
+ intel->
+ transform[0],
+ &src_x[0],
+ &src_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(x, y + h,
+ intel->
+ transform[0],
+ &src_x[1],
+ &src_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(x + w, y + h,
+ intel->
+ transform[0],
+ &src_x[2],
+ &src_y[2]))
+ return;
+
+ per_vertex += 2; /* src x/y */
+ } else {
+ if (!intel_get_transformed_coordinates_3d(x, y,
+ intel->
+ transform[0],
+ &src_x[0],
+ &src_y[0],
+ &src_w[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(x, y + h,
+ intel->
+ transform[0],
+ &src_x[1],
+ &src_y[1],
+ &src_w[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(x + w, y + h,
+ intel->
+ transform[0],
+ &src_x[2],
+ &src_y[2],
+ &src_w[2]))
+ return;
+
+ per_vertex += 3; /* src x/y/w */
+ }
+ }
+
+ if (intel->render_mask) {
+ float x = maskX, y = maskY;
+
+ is_affine_mask = intel_transform_is_affine(intel->transform[1]);
+ if (is_affine_mask) {
+ if (!intel_get_transformed_coordinates(x, y,
+ intel->
+ transform[1],
+ &mask_x[0],
+ &mask_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(x, y + h,
+ intel->
+ transform[1],
+ &mask_x[1],
+ &mask_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(x + w, y + h,
+ intel->
+ transform[1],
+ &mask_x[2],
+ &mask_y[2]))
+ return;
+
+ per_vertex += 2; /* mask x/y */
+ } else {
+ if (!intel_get_transformed_coordinates_3d(x, y,
+ intel->
+ transform[1],
+ &mask_x[0],
+ &mask_y[0],
+ &mask_w[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(x, y + h,
+ intel->
+ transform[1],
+ &mask_x[1],
+ &mask_y[1],
+ &mask_w[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(x + w, y + h,
+ intel->
+ transform[1],
+ &mask_x[2],
+ &mask_y[2],
+ &mask_w[2]))
+ return;
+
+ per_vertex += 3; /* mask x/y/w */
+ }
+ }
+
+ if (intel->vertex_count == 0) {
+ intel->vertex_index = intel->batch_used;
+ OUT_BATCH(PRIM3D_INLINE | PRIM3D_RECTLIST);
+ }
+ OUT_BATCH_F(dstX + w);
+ OUT_BATCH_F(dstY + h);
+ OUT_BATCH_F(src_x[2] / intel->scale_units[0][0]);
+ OUT_BATCH_F(src_y[2] / intel->scale_units[0][1]);
+ if (!is_affine_src) {
+ OUT_BATCH_F(src_w[2]);
+ }
+ if (intel->render_mask) {
+ OUT_BATCH_F(mask_x[2] / intel->scale_units[1][0]);
+ OUT_BATCH_F(mask_y[2] / intel->scale_units[1][1]);
+ if (!is_affine_mask) {
+ OUT_BATCH_F(mask_w[2]);
+ }
+ }
+
+ OUT_BATCH_F(dstX);
+ OUT_BATCH_F(dstY + h);
+ OUT_BATCH_F(src_x[1] / intel->scale_units[0][0]);
+ OUT_BATCH_F(src_y[1] / intel->scale_units[0][1]);
+ if (!is_affine_src) {
+ OUT_BATCH_F(src_w[1]);
+ }
+ if (intel->render_mask) {
+ OUT_BATCH_F(mask_x[1] / intel->scale_units[1][0]);
+ OUT_BATCH_F(mask_y[1] / intel->scale_units[1][1]);
+ if (!is_affine_mask) {
+ OUT_BATCH_F(mask_w[1]);
+ }
+ }
+
+ OUT_BATCH_F(dstX);
+ OUT_BATCH_F(dstY);
+ OUT_BATCH_F(src_x[0] / intel->scale_units[0][0]);
+ OUT_BATCH_F(src_y[0] / intel->scale_units[0][1]);
+ if (!is_affine_src) {
+ OUT_BATCH_F(src_w[0]);
+ }
+ if (intel->render_mask) {
+ OUT_BATCH_F(mask_x[0] / intel->scale_units[1][0]);
+ OUT_BATCH_F(mask_y[0] / intel->scale_units[1][1]);
+ if (!is_affine_mask) {
+ OUT_BATCH_F(mask_w[0]);
+ }
+ }
+
+ intel->vertex_count += 3 * per_vertex;
+
+}
+
+void i830_vertex_flush(intel_screen_private *intel)
+{
+ if (intel->vertex_count) {
+ intel->batch_ptr[intel->vertex_index] |= intel->vertex_count - 1;
+ intel->vertex_count = 0;
+ }
+}
+
+/**
+ * Do a single rectangle composite operation.
+ */
+void
+i830_composite(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY,
+ int dstX, int dstY, int w, int h)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ intel_batch_start_atomic(scrn, 58 + /* invarient */
+ 22 + /* setup */
+ 20 + /* 2 * setup_texture */
+ 1 + 30 /* verts */ );
+
+ if (intel->needs_render_state_emit)
+ i830_emit_composite_state(scrn);
+
+ i830_emit_composite_primitive(dest, srcX, srcY, maskX, maskY, dstX,
+ dstY, w, h);
+
+ intel_batch_end_atomic(scrn);
+}
+
+void i830_batch_commit_notify(intel_screen_private *intel)
+{
+ intel->needs_render_state_emit = TRUE;
+}
diff --git a/src/i915_3d.c b/src/i915_3d.c
new file mode 100644
index 0000000..77db568
--- /dev/null
+++ b/src/i915_3d.c
@@ -0,0 +1,110 @@
+/**************************************************************************
+ *
+ * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ **************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "intel.h"
+
+#include "i915_reg.h"
+
+void I915EmitInvarientState(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ assert(intel->in_batch_atomic);
+
+ OUT_BATCH(_3DSTATE_AA_CMD |
+ AA_LINE_ECAAR_WIDTH_ENABLE |
+ AA_LINE_ECAAR_WIDTH_1_0 |
+ AA_LINE_REGION_WIDTH_ENABLE | AA_LINE_REGION_WIDTH_1_0);
+
+ /* Disable independent alpha blend */
+ OUT_BATCH(_3DSTATE_INDEPENDENT_ALPHA_BLEND_CMD |
+ IAB_MODIFY_ENABLE |
+ IAB_MODIFY_FUNC | (BLENDFUNC_ADD << IAB_FUNC_SHIFT) |
+ IAB_MODIFY_SRC_FACTOR | (BLENDFACT_ONE <<
+ IAB_SRC_FACTOR_SHIFT) |
+ IAB_MODIFY_DST_FACTOR | (BLENDFACT_ZERO <<
+ IAB_DST_FACTOR_SHIFT));
+
+ OUT_BATCH(_3DSTATE_DFLT_DIFFUSE_CMD);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_DFLT_SPEC_CMD);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_DFLT_Z_CMD);
+ OUT_BATCH(0);
+
+ /* Don't support texture crossbar yet */
+ OUT_BATCH(_3DSTATE_COORD_SET_BINDINGS |
+ CSB_TCB(0, 0) |
+ CSB_TCB(1, 1) |
+ CSB_TCB(2, 2) |
+ CSB_TCB(3, 3) |
+ CSB_TCB(4, 4) |
+ CSB_TCB(5, 5) | CSB_TCB(6, 6) | CSB_TCB(7, 7));
+
+ OUT_BATCH(_3DSTATE_RASTER_RULES_CMD |
+ ENABLE_POINT_RASTER_RULE |
+ OGL_POINT_RASTER_RULE |
+ ENABLE_LINE_STRIP_PROVOKE_VRTX |
+ ENABLE_TRI_FAN_PROVOKE_VRTX |
+ LINE_STRIP_PROVOKE_VRTX(1) |
+ TRI_FAN_PROVOKE_VRTX(2) | ENABLE_TEXKILL_3D_4D | TEXKILL_4D);
+
+ OUT_BATCH(_3DSTATE_MODES_4_CMD |
+ ENABLE_LOGIC_OP_FUNC | LOGIC_OP_FUNC(LOGICOP_COPY) |
+ ENABLE_STENCIL_WRITE_MASK | STENCIL_WRITE_MASK(0xff) |
+ ENABLE_STENCIL_TEST_MASK | STENCIL_TEST_MASK(0xff));
+
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(3) | I1_LOAD_S(4) | I1_LOAD_S(5) | 2);
+ OUT_BATCH(0x00000000); /* Disable texture coordinate wrap-shortest */
+ OUT_BATCH((1 << S4_POINT_WIDTH_SHIFT) |
+ S4_LINE_WIDTH_ONE |
+ S4_CULLMODE_NONE |
+ S4_VFMT_XY);
+ OUT_BATCH(0x00000000); /* Stencil. */
+
+ OUT_BATCH(_3DSTATE_SCISSOR_ENABLE_CMD | DISABLE_SCISSOR_RECT);
+ OUT_BATCH(_3DSTATE_SCISSOR_RECT_0_CMD);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_DEPTH_SUBRECT_DISABLE);
+
+ OUT_BATCH(_3DSTATE_LOAD_INDIRECT | 0); /* disable indirect state */
+ OUT_BATCH(0);
+
+ OUT_BATCH(_3DSTATE_STIPPLE);
+ OUT_BATCH(0x00000000);
+
+ OUT_BATCH(_3DSTATE_BACKFACE_STENCIL_OPS | BFO_ENABLE_STENCIL_TWO_SIDE | 0);
+}
diff --git a/src/i915_3d.h b/src/i915_3d.h
new file mode 100644
index 0000000..04531f3
--- /dev/null
+++ b/src/i915_3d.h
@@ -0,0 +1,619 @@
+/* -*- c-basic-offset: 4 -*- */
+/*
+ * Copyright © 2006,2010 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Eric Anholt <eric@anholt.net>
+ * Chris Wilson <chris@chris-wilson.co.uk>
+ *
+ */
+
+/* Each instruction is 3 dwords long, though most don't require all
+ * this space. Maximum of 123 instructions. Smaller maxes per insn
+ * type.
+ */
+#define _3DSTATE_PIXEL_SHADER_PROGRAM (CMD_3D|(0x1d<<24)|(0x5<<16))
+
+#define REG_TYPE_R 0 /* temporary regs, no need to
+ * dcl, must be written before
+ * read -- Preserved between
+ * phases.
+ */
+#define REG_TYPE_T 1 /* Interpolated values, must be
+ * dcl'ed before use.
+ *
+ * 0..7: texture coord,
+ * 8: diffuse spec,
+ * 9: specular color,
+ * 10: fog parameter in w.
+ */
+#define REG_TYPE_CONST 2 /* Restriction: only one const
+ * can be referenced per
+ * instruction, though it may be
+ * selected for multiple inputs.
+ * Constants not initialized
+ * default to zero.
+ */
+#define REG_TYPE_S 3 /* sampler */
+#define REG_TYPE_OC 4 /* output color (rgba) */
+#define REG_TYPE_OD 5 /* output depth (w), xyz are
+ * temporaries. If not written,
+ * interpolated depth is used?
+ */
+#define REG_TYPE_U 6 /* unpreserved temporaries */
+#define REG_TYPE_MASK 0x7
+#define REG_TYPE_SHIFT 4
+#define REG_NR_MASK 0xf
+
+/* REG_TYPE_T:
+*/
+#define T_TEX0 0
+#define T_TEX1 1
+#define T_TEX2 2
+#define T_TEX3 3
+#define T_TEX4 4
+#define T_TEX5 5
+#define T_TEX6 6
+#define T_TEX7 7
+#define T_DIFFUSE 8
+#define T_SPECULAR 9
+#define T_FOG_W 10 /* interpolated fog is in W coord */
+
+/* Arithmetic instructions */
+
+/* .replicate_swizzle == selection and replication of a particular
+ * scalar channel, ie., .xxxx, .yyyy, .zzzz or .wwww
+ */
+#define A0_NOP (0x0<<24) /* no operation */
+#define A0_ADD (0x1<<24) /* dst = src0 + src1 */
+#define A0_MOV (0x2<<24) /* dst = src0 */
+#define A0_MUL (0x3<<24) /* dst = src0 * src1 */
+#define A0_MAD (0x4<<24) /* dst = src0 * src1 + src2 */
+#define A0_DP2ADD (0x5<<24) /* dst.xyzw = src0.xy dot src1.xy + src2.replicate_swizzle */
+#define A0_DP3 (0x6<<24) /* dst.xyzw = src0.xyz dot src1.xyz */
+#define A0_DP4 (0x7<<24) /* dst.xyzw = src0.xyzw dot src1.xyzw */
+#define A0_FRC (0x8<<24) /* dst = src0 - floor(src0) */
+#define A0_RCP (0x9<<24) /* dst.xyzw = 1/(src0.replicate_swizzle) */
+#define A0_RSQ (0xa<<24) /* dst.xyzw = 1/(sqrt(abs(src0.replicate_swizzle))) */
+#define A0_EXP (0xb<<24) /* dst.xyzw = exp2(src0.replicate_swizzle) */
+#define A0_LOG (0xc<<24) /* dst.xyzw = log2(abs(src0.replicate_swizzle)) */
+#define A0_CMP (0xd<<24) /* dst = (src0 >= 0.0) ? src1 : src2 */
+#define A0_MIN (0xe<<24) /* dst = (src0 < src1) ? src0 : src1 */
+#define A0_MAX (0xf<<24) /* dst = (src0 >= src1) ? src0 : src1 */
+#define A0_FLR (0x10<<24) /* dst = floor(src0) */
+#define A0_MOD (0x11<<24) /* dst = src0 fmod 1.0 */
+#define A0_TRC (0x12<<24) /* dst = int(src0) */
+#define A0_SGE (0x13<<24) /* dst = src0 >= src1 ? 1.0 : 0.0 */
+#define A0_SLT (0x14<<24) /* dst = src0 < src1 ? 1.0 : 0.0 */
+#define A0_DEST_SATURATE (1<<22)
+#define A0_DEST_TYPE_SHIFT 19
+/* Allow: R, OC, OD, U */
+#define A0_DEST_NR_SHIFT 14
+/* Allow R: 0..15, OC,OD: 0..0, U: 0..2 */
+#define A0_DEST_CHANNEL_X (1<<10)
+#define A0_DEST_CHANNEL_Y (2<<10)
+#define A0_DEST_CHANNEL_Z (4<<10)
+#define A0_DEST_CHANNEL_W (8<<10)
+#define A0_DEST_CHANNEL_ALL (0xf<<10)
+#define A0_DEST_CHANNEL_SHIFT 10
+#define A0_SRC0_TYPE_SHIFT 7
+#define A0_SRC0_NR_SHIFT 2
+
+#define A0_DEST_CHANNEL_XY (A0_DEST_CHANNEL_X|A0_DEST_CHANNEL_Y)
+#define A0_DEST_CHANNEL_XYZ (A0_DEST_CHANNEL_XY|A0_DEST_CHANNEL_Z)
+
+#define SRC_X 0
+#define SRC_Y 1
+#define SRC_Z 2
+#define SRC_W 3
+#define SRC_ZERO 4
+#define SRC_ONE 5
+
+#define A1_SRC0_CHANNEL_X_NEGATE (1<<31)
+#define A1_SRC0_CHANNEL_X_SHIFT 28
+#define A1_SRC0_CHANNEL_Y_NEGATE (1<<27)
+#define A1_SRC0_CHANNEL_Y_SHIFT 24
+#define A1_SRC0_CHANNEL_Z_NEGATE (1<<23)
+#define A1_SRC0_CHANNEL_Z_SHIFT 20
+#define A1_SRC0_CHANNEL_W_NEGATE (1<<19)
+#define A1_SRC0_CHANNEL_W_SHIFT 16
+#define A1_SRC1_TYPE_SHIFT 13
+#define A1_SRC1_NR_SHIFT 8
+#define A1_SRC1_CHANNEL_X_NEGATE (1<<7)
+#define A1_SRC1_CHANNEL_X_SHIFT 4
+#define A1_SRC1_CHANNEL_Y_NEGATE (1<<3)
+#define A1_SRC1_CHANNEL_Y_SHIFT 0
+
+#define A2_SRC1_CHANNEL_Z_NEGATE (1<<31)
+#define A2_SRC1_CHANNEL_Z_SHIFT 28
+#define A2_SRC1_CHANNEL_W_NEGATE (1<<27)
+#define A2_SRC1_CHANNEL_W_SHIFT 24
+#define A2_SRC2_TYPE_SHIFT 21
+#define A2_SRC2_NR_SHIFT 16
+#define A2_SRC2_CHANNEL_X_NEGATE (1<<15)
+#define A2_SRC2_CHANNEL_X_SHIFT 12
+#define A2_SRC2_CHANNEL_Y_NEGATE (1<<11)
+#define A2_SRC2_CHANNEL_Y_SHIFT 8
+#define A2_SRC2_CHANNEL_Z_NEGATE (1<<7)
+#define A2_SRC2_CHANNEL_Z_SHIFT 4
+#define A2_SRC2_CHANNEL_W_NEGATE (1<<3)
+#define A2_SRC2_CHANNEL_W_SHIFT 0
+
+/* Texture instructions */
+#define T0_TEXLD (0x15<<24) /* Sample texture using predeclared
+ * sampler and address, and output
+ * filtered texel data to destination
+ * register */
+#define T0_TEXLDP (0x16<<24) /* Same as texld but performs a
+ * perspective divide of the texture
+ * coordinate .xyz values by .w before
+ * sampling. */
+#define T0_TEXLDB (0x17<<24) /* Same as texld but biases the
+ * computed LOD by w. Only S4.6 two's
+ * comp is used. This implies that a
+ * float to fixed conversion is
+ * done. */
+#define T0_TEXKILL (0x18<<24) /* Does not perform a sampling
+ * operation. Simply kills the pixel
+ * if any channel of the address
+ * register is < 0.0. */
+#define T0_DEST_TYPE_SHIFT 19
+/* Allow: R, OC, OD, U */
+/* Note: U (unpreserved) regs do not retain their values between
+ * phases (cannot be used for feedback)
+ *
+ * Note: oC and OD registers can only be used as the destination of a
+ * texture instruction once per phase (this is an implementation
+ * restriction).
+ */
+#define T0_DEST_NR_SHIFT 14
+/* Allow R: 0..15, OC,OD: 0..0, U: 0..2 */
+#define T0_SAMPLER_NR_SHIFT 0 /* This field ignored for TEXKILL */
+#define T0_SAMPLER_NR_MASK (0xf<<0)
+
+#define T1_ADDRESS_REG_TYPE_SHIFT 24 /* Reg to use as texture coord */
+/* Allow R, T, OC, OD -- R, OC, OD are 'dependent' reads, new program phase */
+#define T1_ADDRESS_REG_NR_SHIFT 17
+#define T2_MBZ 0
+
+/* Declaration instructions */
+#define D0_DCL (0x19<<24) /* Declare a t (interpolated attrib)
+ * register or an s (sampler)
+ * register. */
+#define D0_SAMPLE_TYPE_SHIFT 22
+#define D0_SAMPLE_TYPE_2D (0x0<<22)
+#define D0_SAMPLE_TYPE_CUBE (0x1<<22)
+#define D0_SAMPLE_TYPE_VOLUME (0x2<<22)
+#define D0_SAMPLE_TYPE_MASK (0x3<<22)
+
+#define D0_TYPE_SHIFT 19
+/* Allow: T, S */
+#define D0_NR_SHIFT 14
+/* Allow T: 0..10, S: 0..15 */
+#define D0_CHANNEL_X (1<<10)
+#define D0_CHANNEL_Y (2<<10)
+#define D0_CHANNEL_Z (4<<10)
+#define D0_CHANNEL_W (8<<10)
+#define D0_CHANNEL_ALL (0xf<<10)
+#define D0_CHANNEL_NONE (0<<10)
+
+#define D0_CHANNEL_XY (D0_CHANNEL_X|D0_CHANNEL_Y)
+#define D0_CHANNEL_XYZ (D0_CHANNEL_XY|D0_CHANNEL_Z)
+
+/* I915 Errata: Do not allow (xz), (xw), (xzw) combinations for diffuse
+ * or specular declarations.
+ *
+ * For T dcls, only allow: (x), (xy), (xyz), (w), (xyzw)
+ *
+ * Must be zero for S (sampler) dcls
+ */
+#define D1_MBZ 0
+#define D2_MBZ 0
+
+
+/* MASK_* are the unshifted bitmasks of the destination mask in arithmetic
+ * operations
+ */
+#define MASK_X 0x1
+#define MASK_Y 0x2
+#define MASK_Z 0x4
+#define MASK_W 0x8
+#define MASK_XYZ (MASK_X | MASK_Y | MASK_Z)
+#define MASK_XYZW (MASK_XYZ | MASK_W)
+#define MASK_SATURATE 0x10
+
+/* Temporary, undeclared regs. Preserved between phases */
+#define FS_R0 ((REG_TYPE_R << REG_TYPE_SHIFT) | 0)
+#define FS_R1 ((REG_TYPE_R << REG_TYPE_SHIFT) | 1)
+#define FS_R2 ((REG_TYPE_R << REG_TYPE_SHIFT) | 2)
+#define FS_R3 ((REG_TYPE_R << REG_TYPE_SHIFT) | 3)
+
+/* Texture coordinate regs. Must be declared. */
+#define FS_T0 ((REG_TYPE_T << REG_TYPE_SHIFT) | 0)
+#define FS_T1 ((REG_TYPE_T << REG_TYPE_SHIFT) | 1)
+#define FS_T2 ((REG_TYPE_T << REG_TYPE_SHIFT) | 2)
+#define FS_T3 ((REG_TYPE_T << REG_TYPE_SHIFT) | 3)
+#define FS_T4 ((REG_TYPE_T << REG_TYPE_SHIFT) | 4)
+#define FS_T5 ((REG_TYPE_T << REG_TYPE_SHIFT) | 5)
+#define FS_T6 ((REG_TYPE_T << REG_TYPE_SHIFT) | 6)
+#define FS_T7 ((REG_TYPE_T << REG_TYPE_SHIFT) | 7)
+#define FS_T8 ((REG_TYPE_T << REG_TYPE_SHIFT) | 8)
+#define FS_T9 ((REG_TYPE_T << REG_TYPE_SHIFT) | 9)
+#define FS_T10 ((REG_TYPE_T << REG_TYPE_SHIFT) | 10)
+
+/* Constant values */
+#define FS_C0 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 0)
+#define FS_C1 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 1)
+#define FS_C2 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 2)
+#define FS_C3 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 3)
+#define FS_C4 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 4)
+#define FS_C5 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 5)
+#define FS_C6 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 6)
+#define FS_C7 ((REG_TYPE_CONST << REG_TYPE_SHIFT) | 7)
+
+/* Sampler regs */
+#define FS_S0 ((REG_TYPE_S << REG_TYPE_SHIFT) | 0)
+#define FS_S1 ((REG_TYPE_S << REG_TYPE_SHIFT) | 1)
+#define FS_S2 ((REG_TYPE_S << REG_TYPE_SHIFT) | 2)
+#define FS_S3 ((REG_TYPE_S << REG_TYPE_SHIFT) | 3)
+
+/* Output color */
+#define FS_OC ((REG_TYPE_OC << REG_TYPE_SHIFT) | 0)
+
+/* Output depth */
+#define FS_OD ((REG_TYPE_OD << REG_TYPE_SHIFT) | 0)
+
+/* Unpreserved temporary regs */
+#define FS_U0 ((REG_TYPE_U << REG_TYPE_SHIFT) | 0)
+#define FS_U1 ((REG_TYPE_U << REG_TYPE_SHIFT) | 1)
+#define FS_U2 ((REG_TYPE_U << REG_TYPE_SHIFT) | 2)
+#define FS_U3 ((REG_TYPE_U << REG_TYPE_SHIFT) | 3)
+
+#define X_CHANNEL_SHIFT (REG_TYPE_SHIFT + 3)
+#define Y_CHANNEL_SHIFT (X_CHANNEL_SHIFT + 4)
+#define Z_CHANNEL_SHIFT (Y_CHANNEL_SHIFT + 4)
+#define W_CHANNEL_SHIFT (Z_CHANNEL_SHIFT + 4)
+
+#define REG_CHANNEL_MASK 0xf
+
+#define REG_NR(reg) ((reg) & REG_NR_MASK)
+#define REG_TYPE(reg) (((reg) >> REG_TYPE_SHIFT) & REG_TYPE_MASK)
+#define REG_X(reg) (((reg) >> X_CHANNEL_SHIFT) & REG_CHANNEL_MASK)
+#define REG_Y(reg) (((reg) >> Y_CHANNEL_SHIFT) & REG_CHANNEL_MASK)
+#define REG_Z(reg) (((reg) >> Z_CHANNEL_SHIFT) & REG_CHANNEL_MASK)
+#define REG_W(reg) (((reg) >> W_CHANNEL_SHIFT) & REG_CHANNEL_MASK)
+
+enum i915_fs_channel {
+ X_CHANNEL_VAL = 0,
+ Y_CHANNEL_VAL,
+ Z_CHANNEL_VAL,
+ W_CHANNEL_VAL,
+ ZERO_CHANNEL_VAL,
+ ONE_CHANNEL_VAL,
+
+ NEG_X_CHANNEL_VAL = X_CHANNEL_VAL | 0x8,
+ NEG_Y_CHANNEL_VAL = Y_CHANNEL_VAL | 0x8,
+ NEG_Z_CHANNEL_VAL = Z_CHANNEL_VAL | 0x8,
+ NEG_W_CHANNEL_VAL = W_CHANNEL_VAL | 0x8,
+ NEG_ONE_CHANNEL_VAL = ONE_CHANNEL_VAL | 0x8
+};
+
+#define i915_fs_operand(reg, x, y, z, w) \
+ (reg) | \
+(x##_CHANNEL_VAL << X_CHANNEL_SHIFT) | \
+(y##_CHANNEL_VAL << Y_CHANNEL_SHIFT) | \
+(z##_CHANNEL_VAL << Z_CHANNEL_SHIFT) | \
+(w##_CHANNEL_VAL << W_CHANNEL_SHIFT)
+
+/**
+ * Construct an operand description for using a register with no swizzling
+ */
+#define i915_fs_operand_reg(reg) \
+ i915_fs_operand(reg, X, Y, Z, W)
+
+#define i915_fs_operand_reg_negate(reg) \
+ i915_fs_operand(reg, NEG_X, NEG_Y, NEG_Z, NEG_W)
+
+/**
+ * Returns an operand containing (0.0, 0.0, 0.0, 0.0).
+ */
+#define i915_fs_operand_zero() i915_fs_operand(FS_R0, ZERO, ZERO, ZERO, ZERO)
+
+/**
+ * Returns an unused operand
+ */
+#define i915_fs_operand_none() i915_fs_operand_zero()
+
+/**
+ * Returns an operand containing (1.0, 1.0, 1.0, 1.0).
+ */
+#define i915_fs_operand_one() i915_fs_operand(FS_R0, ONE, ONE, ONE, ONE)
+
+#define i915_get_hardware_channel_val(val, shift, negate) \
+ (((val & 0x7) << shift) | ((val & 0x8) ? negate : 0))
+
+/**
+ * Outputs a fragment shader command to declare a sampler or texture register.
+ */
+#define i915_fs_dcl(reg) \
+ do { \
+ OUT_BATCH(D0_DCL | \
+ (REG_TYPE(reg) << D0_TYPE_SHIFT) | \
+ (REG_NR(reg) << D0_NR_SHIFT) | \
+ ((REG_TYPE(reg) != REG_TYPE_S) ? D0_CHANNEL_ALL : 0)); \
+ OUT_BATCH(0); \
+ OUT_BATCH(0); \
+ } while (0)
+
+#define i915_fs_texld(dest_reg, sampler_reg, address_reg) \
+ do { \
+ OUT_BATCH(T0_TEXLD | \
+ (REG_TYPE(dest_reg) << T0_DEST_TYPE_SHIFT) | \
+ (REG_NR(dest_reg) << T0_DEST_NR_SHIFT) | \
+ (REG_NR(sampler_reg) << T0_SAMPLER_NR_SHIFT)); \
+ OUT_BATCH((REG_TYPE(address_reg) << T1_ADDRESS_REG_TYPE_SHIFT) | \
+ (REG_NR(address_reg) << T1_ADDRESS_REG_NR_SHIFT)); \
+ OUT_BATCH(0); \
+ } while (0)
+
+#define i915_fs_texldp(dest_reg, sampler_reg, address_reg) \
+ do { \
+ OUT_BATCH(T0_TEXLDP | \
+ (REG_TYPE(dest_reg) << T0_DEST_TYPE_SHIFT) | \
+ (REG_NR(dest_reg) << T0_DEST_NR_SHIFT) | \
+ (REG_NR(sampler_reg) << T0_SAMPLER_NR_SHIFT)); \
+ OUT_BATCH((REG_TYPE(address_reg) << T1_ADDRESS_REG_TYPE_SHIFT) | \
+ (REG_NR(address_reg) << T1_ADDRESS_REG_NR_SHIFT)); \
+ OUT_BATCH(0); \
+ } while (0)
+
+#define i915_fs_arith_masked(op, dest_reg, dest_mask, operand0, operand1, operand2) \
+ _i915_fs_arith_masked(A0_##op, dest_reg, dest_mask, operand0, operand1, operand2)
+
+#define i915_fs_arith(op, dest_reg, operand0, operand1, operand2) \
+ _i915_fs_arith(A0_##op, dest_reg, operand0, operand1, operand2)
+
+#define _i915_fs_arith_masked(cmd, dest_reg, dest_mask, operand0, operand1, operand2) \
+ do { \
+ /* Set up destination register and write mask */ \
+ OUT_BATCH(cmd | \
+ (REG_TYPE(dest_reg) << A0_DEST_TYPE_SHIFT) | \
+ (REG_NR(dest_reg) << A0_DEST_NR_SHIFT) | \
+ (((dest_mask) & ~MASK_SATURATE) << A0_DEST_CHANNEL_SHIFT) | \
+ (((dest_mask) & MASK_SATURATE) ? A0_DEST_SATURATE : 0) | \
+ /* Set up operand 0 */ \
+ (REG_TYPE(operand0) << A0_SRC0_TYPE_SHIFT) | \
+ (REG_NR(operand0) << A0_SRC0_NR_SHIFT)); \
+ OUT_BATCH(i915_get_hardware_channel_val(REG_X(operand0), \
+ A1_SRC0_CHANNEL_X_SHIFT, \
+ A1_SRC0_CHANNEL_X_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Y(operand0), \
+ A1_SRC0_CHANNEL_Y_SHIFT, \
+ A1_SRC0_CHANNEL_Y_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Z(operand0), \
+ A1_SRC0_CHANNEL_Z_SHIFT, \
+ A1_SRC0_CHANNEL_Z_NEGATE) | \
+ i915_get_hardware_channel_val(REG_W(operand0), \
+ A1_SRC0_CHANNEL_W_SHIFT, \
+ A1_SRC0_CHANNEL_W_NEGATE) | \
+ /* Set up operand 1 */ \
+ (REG_TYPE(operand1) << A1_SRC1_TYPE_SHIFT) | \
+ (REG_NR(operand1) << A1_SRC1_NR_SHIFT) | \
+ i915_get_hardware_channel_val(REG_X(operand1), \
+ A1_SRC1_CHANNEL_X_SHIFT, \
+ A1_SRC1_CHANNEL_X_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Y(operand1), \
+ A1_SRC1_CHANNEL_Y_SHIFT, \
+ A1_SRC1_CHANNEL_Y_NEGATE)); \
+ OUT_BATCH(i915_get_hardware_channel_val(REG_Z(operand1), \
+ A2_SRC1_CHANNEL_Z_SHIFT, \
+ A2_SRC1_CHANNEL_Z_NEGATE) | \
+ i915_get_hardware_channel_val(REG_W(operand1), \
+ A2_SRC1_CHANNEL_W_SHIFT, \
+ A2_SRC1_CHANNEL_W_NEGATE) | \
+ /* Set up operand 2 */ \
+ (REG_TYPE(operand2) << A2_SRC2_TYPE_SHIFT) | \
+ (REG_NR(operand2) << A2_SRC2_NR_SHIFT) | \
+ i915_get_hardware_channel_val(REG_X(operand2), \
+ A2_SRC2_CHANNEL_X_SHIFT, \
+ A2_SRC2_CHANNEL_X_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Y(operand2), \
+ A2_SRC2_CHANNEL_Y_SHIFT, \
+ A2_SRC2_CHANNEL_Y_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Z(operand2), \
+ A2_SRC2_CHANNEL_Z_SHIFT, \
+ A2_SRC2_CHANNEL_Z_NEGATE) | \
+ i915_get_hardware_channel_val(REG_W(operand2), \
+ A2_SRC2_CHANNEL_W_SHIFT, \
+ A2_SRC2_CHANNEL_W_NEGATE)); \
+ } while (0)
+
+#define _i915_fs_arith(cmd, dest_reg, operand0, operand1, operand2) do {\
+ /* Set up destination register and write mask */ \
+ OUT_BATCH(cmd | \
+ (REG_TYPE(dest_reg) << A0_DEST_TYPE_SHIFT) | \
+ (REG_NR(dest_reg) << A0_DEST_NR_SHIFT) | \
+ (A0_DEST_CHANNEL_ALL) | \
+ /* Set up operand 0 */ \
+ (REG_TYPE(operand0) << A0_SRC0_TYPE_SHIFT) | \
+ (REG_NR(operand0) << A0_SRC0_NR_SHIFT)); \
+ OUT_BATCH(i915_get_hardware_channel_val(REG_X(operand0), \
+ A1_SRC0_CHANNEL_X_SHIFT, \
+ A1_SRC0_CHANNEL_X_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Y(operand0), \
+ A1_SRC0_CHANNEL_Y_SHIFT, \
+ A1_SRC0_CHANNEL_Y_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Z(operand0), \
+ A1_SRC0_CHANNEL_Z_SHIFT, \
+ A1_SRC0_CHANNEL_Z_NEGATE) | \
+ i915_get_hardware_channel_val(REG_W(operand0), \
+ A1_SRC0_CHANNEL_W_SHIFT, \
+ A1_SRC0_CHANNEL_W_NEGATE) | \
+ /* Set up operand 1 */ \
+ (REG_TYPE(operand1) << A1_SRC1_TYPE_SHIFT) | \
+ (REG_NR(operand1) << A1_SRC1_NR_SHIFT) | \
+ i915_get_hardware_channel_val(REG_X(operand1), \
+ A1_SRC1_CHANNEL_X_SHIFT, \
+ A1_SRC1_CHANNEL_X_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Y(operand1), \
+ A1_SRC1_CHANNEL_Y_SHIFT, \
+ A1_SRC1_CHANNEL_Y_NEGATE)); \
+ OUT_BATCH(i915_get_hardware_channel_val(REG_Z(operand1), \
+ A2_SRC1_CHANNEL_Z_SHIFT, \
+ A2_SRC1_CHANNEL_Z_NEGATE) | \
+ i915_get_hardware_channel_val(REG_W(operand1), \
+ A2_SRC1_CHANNEL_W_SHIFT, \
+ A2_SRC1_CHANNEL_W_NEGATE) | \
+ /* Set up operand 2 */ \
+ (REG_TYPE(operand2) << A2_SRC2_TYPE_SHIFT) | \
+ (REG_NR(operand2) << A2_SRC2_NR_SHIFT) | \
+ i915_get_hardware_channel_val(REG_X(operand2), \
+ A2_SRC2_CHANNEL_X_SHIFT, \
+ A2_SRC2_CHANNEL_X_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Y(operand2), \
+ A2_SRC2_CHANNEL_Y_SHIFT, \
+ A2_SRC2_CHANNEL_Y_NEGATE) | \
+ i915_get_hardware_channel_val(REG_Z(operand2), \
+ A2_SRC2_CHANNEL_Z_SHIFT, \
+ A2_SRC2_CHANNEL_Z_NEGATE) | \
+ i915_get_hardware_channel_val(REG_W(operand2), \
+ A2_SRC2_CHANNEL_W_SHIFT, \
+ A2_SRC2_CHANNEL_W_NEGATE)); \
+} while (0)
+
+#define i915_fs_mov(dest_reg, operand0) \
+ i915_fs_arith(MOV, dest_reg, \
+ operand0, \
+ i915_fs_operand_none(), \
+ i915_fs_operand_none())
+
+#define i915_fs_mov_masked(dest_reg, dest_mask, operand0) \
+ i915_fs_arith_masked (MOV, dest_reg, dest_mask, \
+ operand0, \
+ i915_fs_operand_none(), \
+ i915_fs_operand_none())
+
+
+#define i915_fs_frc(dest_reg, operand0) \
+ i915_fs_arith (FRC, dest_reg, \
+ operand0, \
+ i915_fs_operand_none(), \
+ i915_fs_operand_none())
+
+/** Add operand0 and operand1 and put the result in dest_reg */
+#define i915_fs_add(dest_reg, operand0, operand1) \
+ i915_fs_arith (ADD, dest_reg, \
+ operand0, operand1, \
+ i915_fs_operand_none())
+
+/** Multiply operand0 and operand1 and put the result in dest_reg */
+#define i915_fs_mul(dest_reg, operand0, operand1) \
+ i915_fs_arith (MUL, dest_reg, \
+ operand0, operand1, \
+ i915_fs_operand_none())
+
+/** Computes 1/sqrt(operand0.replicate_swizzle) puts the result in dest_reg */
+#define i915_fs_rsq(dest_reg, dest_mask, operand0) \
+ do { \
+ if (dest_mask) { \
+ i915_fs_arith_masked (RSQ, dest_reg, dest_mask, \
+ operand0, \
+ i915_fs_operand_none (), \
+ i915_fs_operand_none ()); \
+ } else { \
+ i915_fs_arith (RSQ, dest_reg, \
+ operand0, \
+ i915_fs_operand_none (), \
+ i915_fs_operand_none ()); \
+ } \
+ } while (0)
+
+/** Puts the minimum of operand0 and operand1 in dest_reg */
+#define i915_fs_min(dest_reg, operand0, operand1) \
+ i915_fs_arith (MIN, dest_reg, \
+ operand0, operand1, \
+ i915_fs_operand_none())
+
+/** Puts the maximum of operand0 and operand1 in dest_reg */
+#define i915_fs_max(dest_reg, operand0, operand1) \
+ i915_fs_arith (MAX, dest_reg, \
+ operand0, operand1, \
+ i915_fs_operand_none())
+
+#define i915_fs_cmp(dest_reg, operand0, operand1, operand2) \
+ i915_fs_arith (CMP, dest_reg, operand0, operand1, operand2)
+
+/** Perform operand0 * operand1 + operand2 and put the result in dest_reg */
+#define i915_fs_mad(dest_reg, dest_mask, op0, op1, op2) \
+ do { \
+ if (dest_mask) { \
+ i915_fs_arith_masked (MAD, dest_reg, dest_mask, op0, op1, op2); \
+ } else { \
+ i915_fs_arith (MAD, dest_reg, op0, op1, op2); \
+ } \
+ } while (0)
+
+#define i915_fs_dp2add(dest_reg, dest_mask, op0, op1, op2) \
+ do { \
+ if (dest_mask) { \
+ i915_fs_arith_masked (DP2ADD, dest_reg, dest_mask, op0, op1, op2); \
+ } else { \
+ i915_fs_arith (DP2ADD, dest_reg, op0, op1, op2); \
+ } \
+ } while (0)
+
+/**
+ * Perform a 3-component dot-product of operand0 and operand1 and put the
+ * resulting scalar in the channels of dest_reg specified by the dest_mask.
+ */
+#define i915_fs_dp3(dest_reg, dest_mask, op0, op1) \
+ do { \
+ if (dest_mask) { \
+ i915_fs_arith_masked (DP3, dest_reg, dest_mask, \
+ op0, op1,\
+ i915_fs_operand_none()); \
+ } else { \
+ i915_fs_arith (DP3, dest_reg, op0, op1,\
+ i915_fs_operand_none()); \
+ } \
+ } while (0)
+
+/**
+ * Sets up local state for accumulating a fragment shader buffer.
+ *
+ * \param x maximum number of shader commands that may be used between
+ * a FS_START and FS_END
+ */
+#define FS_LOCALS() \
+ uint32_t _shader_offset
+
+#define FS_BEGIN() \
+ do { \
+ _shader_offset = intel->batch_used++; \
+ } while (0)
+
+#define FS_END() \
+ do { \
+ intel->batch_ptr[_shader_offset] = \
+ _3DSTATE_PIXEL_SHADER_PROGRAM | \
+ (intel->batch_used - _shader_offset - 2); \
+ } while (0);
diff --git a/src/i915_reg.h b/src/i915_reg.h
new file mode 100644
index 0000000..746a413
--- /dev/null
+++ b/src/i915_reg.h
@@ -0,0 +1,844 @@
+/**************************************************************************
+ *
+ * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ **************************************************************************/
+
+#ifndef _I915_REG_H_
+#define _I915_REG_H_
+
+#define I915_SET_FIELD( var, mask, value ) (var &= ~(mask), var |= value)
+
+#define CMD_3D (0x3<<29)
+
+#define PRIM3D (CMD_3D | (0x1f<<24))
+#define PRIM3D_INDIRECT_SEQUENTIAL ((1<<23) | (0<<17))
+#define PRIM3D_TRILIST (PRIM3D | (0x0<<18))
+#define PRIM3D_TRISTRIP (PRIM3D | (0x1<<18))
+#define PRIM3D_TRISTRIP_RVRSE (PRIM3D | (0x2<<18))
+#define PRIM3D_TRIFAN (PRIM3D | (0x3<<18))
+#define PRIM3D_POLY (PRIM3D | (0x4<<18))
+#define PRIM3D_LINELIST (PRIM3D | (0x5<<18))
+#define PRIM3D_LINESTRIP (PRIM3D | (0x6<<18))
+#define PRIM3D_RECTLIST (PRIM3D | (0x7<<18))
+#define PRIM3D_POINTLIST (PRIM3D | (0x8<<18))
+#define PRIM3D_DIB (PRIM3D | (0x9<<18))
+#define PRIM3D_CLEAR_RECT (PRIM3D | (0xa<<18))
+#define PRIM3D_ZONE_INIT (PRIM3D | (0xd<<18))
+#define PRIM3D_MASK (0x1f<<18)
+
+/* p137 */
+#define _3DSTATE_AA_CMD (CMD_3D | (0x06<<24))
+#define AA_LINE_ECAAR_WIDTH_ENABLE (1<<16)
+#define AA_LINE_ECAAR_WIDTH_0_5 0
+#define AA_LINE_ECAAR_WIDTH_1_0 (1<<14)
+#define AA_LINE_ECAAR_WIDTH_2_0 (2<<14)
+#define AA_LINE_ECAAR_WIDTH_4_0 (3<<14)
+#define AA_LINE_REGION_WIDTH_ENABLE (1<<8)
+#define AA_LINE_REGION_WIDTH_0_5 0
+#define AA_LINE_REGION_WIDTH_1_0 (1<<6)
+#define AA_LINE_REGION_WIDTH_2_0 (2<<6)
+#define AA_LINE_REGION_WIDTH_4_0 (3<<6)
+
+/* 3DSTATE_BACKFACE_STENCIL_OPS, p138*/
+#define _3DSTATE_BACKFACE_STENCIL_OPS (CMD_3D | (0x8<<24))
+#define BFO_ENABLE_STENCIL_REF (1<<23)
+#define BFO_STENCIL_REF_SHIFT 15
+#define BFO_STENCIL_REF_MASK (0xff<<15)
+#define BFO_ENABLE_STENCIL_FUNCS (1<<14)
+#define BFO_STENCIL_TEST_SHIFT 11
+#define BFO_STENCIL_TEST_MASK (0x7<<11)
+#define BFO_STENCIL_FAIL_SHIFT 8
+#define BFO_STENCIL_FAIL_MASK (0x7<<8)
+#define BFO_STENCIL_PASS_Z_FAIL_SHIFT 5
+#define BFO_STENCIL_PASS_Z_FAIL_MASK (0x7<<5)
+#define BFO_STENCIL_PASS_Z_PASS_SHIFT 2
+#define BFO_STENCIL_PASS_Z_PASS_MASK (0x7<<2)
+#define BFO_ENABLE_STENCIL_TWO_SIDE (1<<1)
+#define BFO_STENCIL_TWO_SIDE (1<<0)
+
+/* 3DSTATE_BACKFACE_STENCIL_MASKS, p140 */
+#define _3DSTATE_BACKFACE_STENCIL_MASKS (CMD_3D | (0x9<<24))
+#define BFM_ENABLE_STENCIL_TEST_MASK (1<<17)
+#define BFM_ENABLE_STENCIL_WRITE_MASK (1<<16)
+#define BFM_STENCIL_TEST_MASK_SHIFT 8
+#define BFM_STENCIL_TEST_MASK_MASK (0xff<<8)
+#define BFM_STENCIL_WRITE_MASK_SHIFT 0
+#define BFM_STENCIL_WRITE_MASK_MASK (0xff<<0)
+
+/* 3DSTATE_BIN_CONTROL p141 */
+
+/* p143 */
+#define _3DSTATE_BUF_INFO_CMD (CMD_3D | (0x1d<<24) | (0x8e<<16) | 1)
+/* Dword 1 */
+#define BUF_3D_ID_COLOR_BACK (0x3<<24)
+#define BUF_3D_ID_DEPTH (0x7<<24)
+#define BUF_3D_USE_FENCE (1<<23)
+#define BUF_3D_TILED_SURFACE (1<<22)
+#define BUF_3D_TILE_WALK_X 0
+#define BUF_3D_TILE_WALK_Y (1<<21)
+#define BUF_3D_PITCH(x) (((x)/4)<<2)
+/* Dword 2 */
+#define BUF_3D_ADDR(x) ((x) & ~0x3)
+
+/* 3DSTATE_CHROMA_KEY */
+
+/* 3DSTATE_CLEAR_PARAMETERS, p150 */
+#define _3DSTATE_CLEAR_PARAMETERS (CMD_3D | (0x1d<<24) | (0x9c<<16) | 5)
+/* Dword 1 */
+#define CLEARPARAM_CLEAR_RECT (1 << 16)
+#define CLEARPARAM_ZONE_INIT (0 << 16)
+#define CLEARPARAM_WRITE_COLOR (1 << 2)
+#define CLEARPARAM_WRITE_DEPTH (1 << 1)
+#define CLEARPARAM_WRITE_STENCIL (1 << 0)
+
+/* 3DSTATE_CONSTANT_BLEND_COLOR, p153 */
+#define _3DSTATE_CONST_BLEND_COLOR_CMD (CMD_3D | (0x1d<<24) | (0x88<<16))
+
+/* 3DSTATE_COORD_SET_BINDINGS, p154 */
+#define _3DSTATE_COORD_SET_BINDINGS (CMD_3D | (0x16<<24))
+#define CSB_TCB(iunit, eunit) ((eunit)<<(iunit*3))
+
+/* p156 */
+#define _3DSTATE_DFLT_DIFFUSE_CMD (CMD_3D | (0x1d<<24) | (0x99<<16))
+
+/* p157 */
+#define _3DSTATE_DFLT_SPEC_CMD (CMD_3D | (0x1d<<24) | (0x9a<<16))
+
+/* p158 */
+#define _3DSTATE_DFLT_Z_CMD (CMD_3D | (0x1d<<24) | (0x98<<16))
+
+/* 3DSTATE_DEPTH_OFFSET_SCALE, p159 */
+#define _3DSTATE_DEPTH_OFFSET_SCALE (CMD_3D | (0x1d<<24) | (0x97<<16))
+/* scale in dword 1 */
+
+/* The depth subrectangle is not supported, but must be disabled. */
+/* 3DSTATE_DEPTH_SUBRECT_DISABLE, p160 */
+#define _3DSTATE_DEPTH_SUBRECT_DISABLE (CMD_3D | (0x1c<<24) | (0x11<<19) | (1 << 1) | (0 << 0))
+
+/* p161 */
+#define _3DSTATE_DST_BUF_VARS_CMD (CMD_3D | (0x1d<<24) | (0x85<<16))
+/* Dword 1 */
+#define TEX_DEFAULT_COLOR_OGL (0<<30)
+#define TEX_DEFAULT_COLOR_D3D (1<<30)
+#define ZR_EARLY_DEPTH (1<<29)
+#define LOD_PRECLAMP_OGL (1<<28)
+#define LOD_PRECLAMP_D3D (0<<28)
+#define DITHER_FULL_ALWAYS (0<<26)
+#define DITHER_FULL_ON_FB_BLEND (1<<26)
+#define DITHER_CLAMPED_ALWAYS (2<<26)
+#define LINEAR_GAMMA_BLEND_32BPP (1<<25)
+#define DEBUG_DISABLE_ENH_DITHER (1<<24)
+#define DSTORG_HORT_BIAS(x) ((x)<<20)
+#define DSTORG_VERT_BIAS(x) ((x)<<16)
+#define COLOR_4_2_2_CHNL_WRT_ALL 0
+#define COLOR_4_2_2_CHNL_WRT_Y (1<<12)
+#define COLOR_4_2_2_CHNL_WRT_CR (2<<12)
+#define COLOR_4_2_2_CHNL_WRT_CB (3<<12)
+#define COLOR_4_2_2_CHNL_WRT_CRCB (4<<12)
+#define COLR_BUF_8BIT 0
+#define COLR_BUF_RGB555 (1<<8)
+#define COLR_BUF_RGB565 (2<<8)
+#define COLR_BUF_ARGB8888 (3<<8)
+#define COLR_BUF_ARGB4444 (8<<8)
+#define COLR_BUF_ARGB1555 (9<<8)
+#define COLR_BUF_ARGB2AAA (0xa<<8)
+#define DEPTH_FRMT_16_FIXED 0
+#define DEPTH_FRMT_16_FLOAT (1<<2)
+#define DEPTH_FRMT_24_FIXED_8_OTHER (2<<2)
+#define VERT_LINE_STRIDE_1 (1<<1)
+#define VERT_LINE_STRIDE_0 (0<<1)
+#define VERT_LINE_STRIDE_OFS_1 1
+#define VERT_LINE_STRIDE_OFS_0 0
+
+/* p166 */
+#define _3DSTATE_DRAW_RECT_CMD (CMD_3D|(0x1d<<24)|(0x80<<16)|3)
+/* Dword 1 */
+#define DRAW_RECT_DIS_DEPTH_OFS (1<<30)
+#define DRAW_DITHER_OFS_X(x) ((x)<<26)
+#define DRAW_DITHER_OFS_Y(x) ((x)<<24)
+/* Dword 2 */
+#define DRAW_YMIN(x) ((x)<<16)
+#define DRAW_XMIN(x) (x)
+/* Dword 3 */
+#define DRAW_YMAX(x) ((x)<<16)
+#define DRAW_XMAX(x) (x)
+/* Dword 4 */
+#define DRAW_YORG(x) ((x)<<16)
+#define DRAW_XORG(x) (x)
+
+/* 3DSTATE_FILTER_COEFFICIENTS_4X4, p170 */
+
+/* 3DSTATE_FILTER_COEFFICIENTS_6X5, p172 */
+
+/* _3DSTATE_FOG_COLOR, p173 */
+#define _3DSTATE_FOG_COLOR_CMD (CMD_3D|(0x15<<24))
+#define FOG_COLOR_RED(x) ((x)<<16)
+#define FOG_COLOR_GREEN(x) ((x)<<8)
+#define FOG_COLOR_BLUE(x) (x)
+
+/* _3DSTATE_FOG_MODE, p174 */
+#define _3DSTATE_FOG_MODE_CMD (CMD_3D|(0x1d<<24)|(0x89<<16)|2)
+/* Dword 1 */
+#define FMC1_FOGFUNC_MODIFY_ENABLE (1<<31)
+#define FMC1_FOGFUNC_VERTEX (0<<28)
+#define FMC1_FOGFUNC_PIXEL_EXP (1<<28)
+#define FMC1_FOGFUNC_PIXEL_EXP2 (2<<28)
+#define FMC1_FOGFUNC_PIXEL_LINEAR (3<<28)
+#define FMC1_FOGFUNC_MASK (3<<28)
+#define FMC1_FOGINDEX_MODIFY_ENABLE (1<<27)
+#define FMC1_FOGINDEX_Z (0<<25)
+#define FMC1_FOGINDEX_W (1<<25)
+#define FMC1_C1_C2_MODIFY_ENABLE (1<<24)
+#define FMC1_DENSITY_MODIFY_ENABLE (1<<23)
+#define FMC1_C1_ONE (1<<13)
+#define FMC1_C1_MASK (0xffff<<4)
+/* Dword 2 */
+#define FMC2_C2_ONE (1<<16)
+/* Dword 3 */
+#define FMC3_D_ONE (1<<16)
+
+/* _3DSTATE_INDEPENDENT_ALPHA_BLEND, p177 */
+#define _3DSTATE_INDEPENDENT_ALPHA_BLEND_CMD (CMD_3D|(0x0b<<24))
+#define IAB_MODIFY_ENABLE (1<<23)
+#define IAB_ENABLE (1<<22)
+#define IAB_MODIFY_FUNC (1<<21)
+#define IAB_FUNC_SHIFT 16
+#define IAB_MODIFY_SRC_FACTOR (1<<11)
+#define IAB_SRC_FACTOR_SHIFT 6
+#define IAB_SRC_FACTOR_MASK (BLENDFACT_MASK<<6)
+#define IAB_MODIFY_DST_FACTOR (1<<5)
+#define IAB_DST_FACTOR_SHIFT 0
+#define IAB_DST_FACTOR_MASK (BLENDFACT_MASK<<0)
+
+#define BLENDFACT_ZERO 0x01
+#define BLENDFACT_ONE 0x02
+#define BLENDFACT_SRC_COLR 0x03
+#define BLENDFACT_INV_SRC_COLR 0x04
+#define BLENDFACT_SRC_ALPHA 0x05
+#define BLENDFACT_INV_SRC_ALPHA 0x06
+#define BLENDFACT_DST_ALPHA 0x07
+#define BLENDFACT_INV_DST_ALPHA 0x08
+#define BLENDFACT_DST_COLR 0x09
+#define BLENDFACT_INV_DST_COLR 0x0a
+#define BLENDFACT_SRC_ALPHA_SATURATE 0x0b
+#define BLENDFACT_CONST_COLOR 0x0c
+#define BLENDFACT_INV_CONST_COLOR 0x0d
+#define BLENDFACT_CONST_ALPHA 0x0e
+#define BLENDFACT_INV_CONST_ALPHA 0x0f
+#define BLENDFACT_MASK 0x0f
+
+#define BLENDFUNC_ADD 0x0
+#define BLENDFUNC_SUBTRACT 0x1
+#define BLENDFUNC_REVERSE_SUBTRACT 0x2
+#define BLENDFUNC_MIN 0x3
+#define BLENDFUNC_MAX 0x4
+#define BLENDFUNC_MASK 0x7
+
+/* 3DSTATE_LOAD_INDIRECT, p180 */
+
+#define _3DSTATE_LOAD_INDIRECT (CMD_3D|(0x1d<<24)|(0x7<<16))
+#define LI0_STATE_STATIC_INDIRECT (0x01<<8)
+#define LI0_STATE_DYNAMIC_INDIRECT (0x02<<8)
+#define LI0_STATE_SAMPLER (0x04<<8)
+#define LI0_STATE_MAP (0x08<<8)
+#define LI0_STATE_PROGRAM (0x10<<8)
+#define LI0_STATE_CONSTANTS (0x20<<8)
+
+#define SIS0_BUFFER_ADDRESS(x) ((x)&~0x3)
+#define SIS0_FORCE_LOAD (1<<1)
+#define SIS0_BUFFER_VALID (1<<0)
+#define SIS1_BUFFER_LENGTH(x) ((x)&0xff)
+
+#define DIS0_BUFFER_ADDRESS(x) ((x)&~0x3)
+#define DIS0_BUFFER_RESET (1<<1)
+#define DIS0_BUFFER_VALID (1<<0)
+
+#define SSB0_BUFFER_ADDRESS(x) ((x)&~0x3)
+#define SSB0_FORCE_LOAD (1<<1)
+#define SSB0_BUFFER_VALID (1<<0)
+#define SSB1_BUFFER_LENGTH(x) ((x)&0xff)
+
+#define MSB0_BUFFER_ADDRESS(x) ((x)&~0x3)
+#define MSB0_FORCE_LOAD (1<<1)
+#define MSB0_BUFFER_VALID (1<<0)
+#define MSB1_BUFFER_LENGTH(x) ((x)&0xff)
+
+#define PSP0_BUFFER_ADDRESS(x) ((x)&~0x3)
+#define PSP0_FORCE_LOAD (1<<1)
+#define PSP0_BUFFER_VALID (1<<0)
+#define PSP1_BUFFER_LENGTH(x) ((x)&0xff)
+
+#define PSC0_BUFFER_ADDRESS(x) ((x)&~0x3)
+#define PSC0_FORCE_LOAD (1<<1)
+#define PSC0_BUFFER_VALID (1<<0)
+#define PSC1_BUFFER_LENGTH(x) ((x)&0xff)
+
+/* _3DSTATE_RASTERIZATION_RULES */
+#define _3DSTATE_RASTER_RULES_CMD (CMD_3D|(0x07<<24))
+#define ENABLE_POINT_RASTER_RULE (1<<15)
+#define OGL_POINT_RASTER_RULE (1<<13)
+#define ENABLE_TEXKILL_3D_4D (1<<10)
+#define TEXKILL_3D (0<<9)
+#define TEXKILL_4D (1<<9)
+#define ENABLE_LINE_STRIP_PROVOKE_VRTX (1<<8)
+#define ENABLE_TRI_FAN_PROVOKE_VRTX (1<<5)
+#define LINE_STRIP_PROVOKE_VRTX(x) ((x)<<6)
+#define TRI_FAN_PROVOKE_VRTX(x) ((x)<<3)
+
+/* _3DSTATE_SCISSOR_ENABLE, p256 */
+#define _3DSTATE_SCISSOR_ENABLE_CMD (CMD_3D|(0x1c<<24)|(0x10<<19))
+#define ENABLE_SCISSOR_RECT ((1<<1) | 1)
+#define DISABLE_SCISSOR_RECT (1<<1)
+
+/* _3DSTATE_SCISSOR_RECTANGLE_0, p257 */
+#define _3DSTATE_SCISSOR_RECT_0_CMD (CMD_3D|(0x1d<<24)|(0x81<<16)|1)
+/* Dword 1 */
+#define SCISSOR_RECT_0_YMIN(x) ((x)<<16)
+#define SCISSOR_RECT_0_XMIN(x) (x)
+/* Dword 2 */
+#define SCISSOR_RECT_0_YMAX(x) ((x)<<16)
+#define SCISSOR_RECT_0_XMAX(x) (x)
+
+/* p189 */
+#define _3DSTATE_LOAD_STATE_IMMEDIATE_1 ((0x3<<29)|(0x1d<<24)|(0x04<<16))
+#define I1_LOAD_S(n) (1<<(4+n))
+
+#define S0_VB_OFFSET_MASK 0xffffffc
+#define S0_AUTO_CACHE_INV_DISABLE (1<<0)
+
+#define S1_VERTEX_WIDTH_SHIFT 24
+#define S1_VERTEX_WIDTH_MASK (0x3f<<24)
+#define S1_VERTEX_PITCH_SHIFT 16
+#define S1_VERTEX_PITCH_MASK (0x3f<<16)
+
+#define TEXCOORDFMT_2D 0x0
+#define TEXCOORDFMT_3D 0x1
+#define TEXCOORDFMT_4D 0x2
+#define TEXCOORDFMT_1D 0x3
+#define TEXCOORDFMT_2D_16 0x4
+#define TEXCOORDFMT_4D_16 0x5
+#define TEXCOORDFMT_NOT_PRESENT 0xf
+#define S2_TEXCOORD_FMT0_MASK 0xf
+#define S2_TEXCOORD_FMT1_SHIFT 4
+#define S2_TEXCOORD_FMT(unit, type) ((type)<<(unit*4))
+#define S2_TEXCOORD_NONE (~0)
+
+#define TEXCOORD_WRAP_SHORTEST_TCX 8
+#define TEXCOORD_WRAP_SHORTEST_TCY 4
+#define TEXCOORD_WRAP_SHORTEST_TCZ 2
+#define TEXCOORD_PERSPECTIVE_DISABLE 1
+
+#define S3_WRAP_SHORTEST_TCX(unit) (TEXCOORD_WRAP_SHORTEST_TCX << ((unit) * 4))
+#define S3_WRAP_SHORTEST_TCY(unit) (TEXCOORD_WRAP_SHORTEST_TCY << ((unit) * 4))
+#define S3_WRAP_SHORTEST_TCZ(unit) (TEXCOORD_WRAP_SHORTEST_TCZ << ((unit) * 4))
+#define S3_PERSPECTIVE_DISABLE(unit) (TEXCOORD_PERSPECTIVE_DISABLE << ((unit) * 4))
+
+/* S3 not interesting */
+
+#define S4_POINT_WIDTH_SHIFT 23
+#define S4_POINT_WIDTH_MASK (0x1ff<<23)
+#define S4_LINE_WIDTH_SHIFT 19
+#define S4_LINE_WIDTH_ONE (0x2<<19)
+#define S4_LINE_WIDTH_MASK (0xf<<19)
+#define S4_FLATSHADE_ALPHA (1<<18)
+#define S4_FLATSHADE_FOG (1<<17)
+#define S4_FLATSHADE_SPECULAR (1<<16)
+#define S4_FLATSHADE_COLOR (1<<15)
+#define S4_CULLMODE_BOTH (0<<13)
+#define S4_CULLMODE_NONE (1<<13)
+#define S4_CULLMODE_CW (2<<13)
+#define S4_CULLMODE_CCW (3<<13)
+#define S4_CULLMODE_MASK (3<<13)
+#define S4_VFMT_POINT_WIDTH (1<<12)
+#define S4_VFMT_SPEC_FOG (1<<11)
+#define S4_VFMT_COLOR (1<<10)
+#define S4_VFMT_DEPTH_OFFSET (1<<9)
+#define S4_VFMT_XYZ (1<<6)
+#define S4_VFMT_XYZW (2<<6)
+#define S4_VFMT_XY (3<<6)
+#define S4_VFMT_XYW (4<<6)
+#define S4_VFMT_XYZW_MASK (7<<6)
+#define S4_FORCE_DEFAULT_DIFFUSE (1<<5)
+#define S4_FORCE_DEFAULT_SPECULAR (1<<4)
+#define S4_LOCAL_DEPTH_OFFSET_ENABLE (1<<3)
+#define S4_VFMT_FOG_PARAM (1<<2)
+#define S4_SPRITE_POINT_ENABLE (1<<1)
+#define S4_LINE_ANTIALIAS_ENABLE (1<<0)
+
+#define S4_VFMT_MASK (S4_VFMT_POINT_WIDTH | \
+ S4_VFMT_SPEC_FOG | \
+ S4_VFMT_COLOR | \
+ S4_VFMT_DEPTH_OFFSET | \
+ S4_VFMT_XYZW_MASK | \
+ S4_VFMT_FOG_PARAM)
+
+#define S5_WRITEDISABLE_ALPHA (1<<31)
+#define S5_WRITEDISABLE_RED (1<<30)
+#define S5_WRITEDISABLE_GREEN (1<<29)
+#define S5_WRITEDISABLE_BLUE (1<<28)
+#define S5_WRITEDISABLE_MASK (0xf<<28)
+#define S5_FORCE_DEFAULT_POINT_SIZE (1<<27)
+#define S5_LAST_PIXEL_ENABLE (1<<26)
+#define S5_GLOBAL_DEPTH_OFFSET_ENABLE (1<<25)
+#define S5_FOG_ENABLE (1<<24)
+#define S5_STENCIL_REF_SHIFT 16
+#define S5_STENCIL_REF_MASK (0xff<<16)
+#define S5_STENCIL_TEST_FUNC_SHIFT 13
+#define S5_STENCIL_TEST_FUNC_MASK (0x7<<13)
+#define S5_STENCIL_FAIL_SHIFT 10
+#define S5_STENCIL_FAIL_MASK (0x7<<10)
+#define S5_STENCIL_PASS_Z_FAIL_SHIFT 7
+#define S5_STENCIL_PASS_Z_FAIL_MASK (0x7<<7)
+#define S5_STENCIL_PASS_Z_PASS_SHIFT 4
+#define S5_STENCIL_PASS_Z_PASS_MASK (0x7<<4)
+#define S5_STENCIL_WRITE_ENABLE (1<<3)
+#define S5_STENCIL_TEST_ENABLE (1<<2)
+#define S5_COLOR_DITHER_ENABLE (1<<1)
+#define S5_LOGICOP_ENABLE (1<<0)
+
+#define S6_ALPHA_TEST_ENABLE (1<<31)
+#define S6_ALPHA_TEST_FUNC_SHIFT 28
+#define S6_ALPHA_TEST_FUNC_MASK (0x7<<28)
+#define S6_ALPHA_REF_SHIFT 20
+#define S6_ALPHA_REF_MASK (0xff<<20)
+#define S6_DEPTH_TEST_ENABLE (1<<19)
+#define S6_DEPTH_TEST_FUNC_SHIFT 16
+#define S6_DEPTH_TEST_FUNC_MASK (0x7<<16)
+#define S6_CBUF_BLEND_ENABLE (1<<15)
+#define S6_CBUF_BLEND_FUNC_SHIFT 12
+#define S6_CBUF_BLEND_FUNC_MASK (0x7<<12)
+#define S6_CBUF_SRC_BLEND_FACT_SHIFT 8
+#define S6_CBUF_SRC_BLEND_FACT_MASK (0xf<<8)
+#define S6_CBUF_DST_BLEND_FACT_SHIFT 4
+#define S6_CBUF_DST_BLEND_FACT_MASK (0xf<<4)
+#define S6_DEPTH_WRITE_ENABLE (1<<3)
+#define S6_COLOR_WRITE_ENABLE (1<<2)
+#define S6_TRISTRIP_PV_SHIFT 0
+#define S6_TRISTRIP_PV_MASK (0x3<<0)
+
+#define S7_DEPTH_OFFSET_CONST_MASK ~0
+
+/* 3DSTATE_MAP_DEINTERLACER_PARAMETERS */
+/* 3DSTATE_MAP_PALETTE_LOAD_32, p206 */
+
+/* _3DSTATE_MODES_4, p218 */
+#define _3DSTATE_MODES_4_CMD (CMD_3D|(0x0d<<24))
+#define ENABLE_LOGIC_OP_FUNC (1<<23)
+#define LOGIC_OP_FUNC(x) ((x)<<18)
+#define LOGICOP_MASK (0xf<<18)
+#define LOGICOP_COPY 0xc
+#define MODE4_ENABLE_STENCIL_TEST_MASK ((1<<17)|(0xff00))
+#define ENABLE_STENCIL_TEST_MASK (1<<17)
+#define STENCIL_TEST_MASK(x) ((x)<<8)
+#define MODE4_ENABLE_STENCIL_WRITE_MASK ((1<<16)|(0x00ff))
+#define ENABLE_STENCIL_WRITE_MASK (1<<16)
+#define STENCIL_WRITE_MASK(x) ((x)&0xff)
+
+/* _3DSTATE_MODES_5, p220 */
+#define _3DSTATE_MODES_5_CMD (CMD_3D|(0x0c<<24))
+#define PIPELINE_FLUSH_RENDER_CACHE (1<<18)
+#define PIPELINE_FLUSH_TEXTURE_CACHE (1<<16)
+
+/* p221 */
+#define _3DSTATE_PIXEL_SHADER_CONSTANTS (CMD_3D|(0x1d<<24)|(0x6<<16))
+#define PS1_REG(n) (1<<(n))
+#define PS2_CONST_X(n) (n)
+#define PS3_CONST_Y(n) (n)
+#define PS4_CONST_Z(n) (n)
+#define PS5_CONST_W(n) (n)
+
+/* p222 */
+
+#define I915_MAX_TEX_INDIRECT 4
+#define I915_MAX_TEX_INSN 32
+#define I915_MAX_ALU_INSN 64
+#define I915_MAX_DECL_INSN 27
+#define I915_MAX_TEMPORARY 16
+
+/* Each instruction is 3 dwords long, though most don't require all
+ * this space. Maximum of 123 instructions. Smaller maxes per insn
+ * type.
+ */
+#define _3DSTATE_PIXEL_SHADER_PROGRAM (CMD_3D|(0x1d<<24)|(0x5<<16))
+
+#define REG_TYPE_R 0 /* temporary regs, no need to
+ * dcl, must be written before
+ * read -- Preserved between
+ * phases.
+ */
+#define REG_TYPE_T 1 /* Interpolated values, must be
+ * dcl'ed before use.
+ *
+ * 0..7: texture coord,
+ * 8: diffuse spec,
+ * 9: specular color,
+ * 10: fog parameter in w.
+ */
+#define REG_TYPE_CONST 2 /* Restriction: only one const
+ * can be referenced per
+ * instruction, though it may be
+ * selected for multiple inputs.
+ * Constants not initialized
+ * default to zero.
+ */
+#define REG_TYPE_S 3 /* sampler */
+#define REG_TYPE_OC 4 /* output color (rgba) */
+#define REG_TYPE_OD 5 /* output depth (w), xyz are
+ * temporaries. If not written,
+ * interpolated depth is used?
+ */
+#define REG_TYPE_U 6 /* unpreserved temporaries */
+#define REG_TYPE_MASK 0x7
+#define REG_NR_MASK 0xf
+
+/* REG_TYPE_T:
+ */
+#define T_TEX0 0
+#define T_TEX1 1
+#define T_TEX2 2
+#define T_TEX3 3
+#define T_TEX4 4
+#define T_TEX5 5
+#define T_TEX6 6
+#define T_TEX7 7
+#define T_DIFFUSE 8
+#define T_SPECULAR 9
+#define T_FOG_W 10 /* interpolated fog is in W coord */
+
+/* Arithmetic instructions */
+
+/* .replicate_swizzle == selection and replication of a particular
+ * scalar channel, ie., .xxxx, .yyyy, .zzzz or .wwww
+ */
+#define A0_NOP (0x0<<24) /* no operation */
+#define A0_ADD (0x1<<24) /* dst = src0 + src1 */
+#define A0_MOV (0x2<<24) /* dst = src0 */
+#define A0_MUL (0x3<<24) /* dst = src0 * src1 */
+#define A0_MAD (0x4<<24) /* dst = src0 * src1 + src2 */
+#define A0_DP2ADD (0x5<<24) /* dst.xyzw = src0.xy dot src1.xy + src2.replicate_swizzle */
+#define A0_DP3 (0x6<<24) /* dst.xyzw = src0.xyz dot src1.xyz */
+#define A0_DP4 (0x7<<24) /* dst.xyzw = src0.xyzw dot src1.xyzw */
+#define A0_FRC (0x8<<24) /* dst = src0 - floor(src0) */
+#define A0_RCP (0x9<<24) /* dst.xyzw = 1/(src0.replicate_swizzle) */
+#define A0_RSQ (0xa<<24) /* dst.xyzw = 1/(sqrt(abs(src0.replicate_swizzle))) */
+#define A0_EXP (0xb<<24) /* dst.xyzw = exp2(src0.replicate_swizzle) */
+#define A0_LOG (0xc<<24) /* dst.xyzw = log2(abs(src0.replicate_swizzle)) */
+#define A0_CMP (0xd<<24) /* dst = (src0 >= 0.0) ? src1 : src2 */
+#define A0_MIN (0xe<<24) /* dst = (src0 < src1) ? src0 : src1 */
+#define A0_MAX (0xf<<24) /* dst = (src0 >= src1) ? src0 : src1 */
+#define A0_FLR (0x10<<24) /* dst = floor(src0) */
+#define A0_MOD (0x11<<24) /* dst = src0 fmod 1.0 */
+#define A0_TRC (0x12<<24) /* dst = int(src0) */
+#define A0_SGE (0x13<<24) /* dst = src0 >= src1 ? 1.0 : 0.0 */
+#define A0_SLT (0x14<<24) /* dst = src0 < src1 ? 1.0 : 0.0 */
+#define A0_DEST_SATURATE (1<<22)
+#define A0_DEST_TYPE_SHIFT 19
+/* Allow: R, OC, OD, U */
+#define A0_DEST_NR_SHIFT 14
+/* Allow R: 0..15, OC,OD: 0..0, U: 0..2 */
+#define A0_DEST_CHANNEL_X (1<<10)
+#define A0_DEST_CHANNEL_Y (2<<10)
+#define A0_DEST_CHANNEL_Z (4<<10)
+#define A0_DEST_CHANNEL_W (8<<10)
+#define A0_DEST_CHANNEL_ALL (0xf<<10)
+#define A0_DEST_CHANNEL_SHIFT 10
+#define A0_SRC0_TYPE_SHIFT 7
+#define A0_SRC0_NR_SHIFT 2
+
+#define A0_DEST_CHANNEL_XY (A0_DEST_CHANNEL_X|A0_DEST_CHANNEL_Y)
+#define A0_DEST_CHANNEL_XYZ (A0_DEST_CHANNEL_XY|A0_DEST_CHANNEL_Z)
+
+#define SRC_X 0
+#define SRC_Y 1
+#define SRC_Z 2
+#define SRC_W 3
+#define SRC_ZERO 4
+#define SRC_ONE 5
+
+#define A1_SRC0_CHANNEL_X_NEGATE (1<<31)
+#define A1_SRC0_CHANNEL_X_SHIFT 28
+#define A1_SRC0_CHANNEL_Y_NEGATE (1<<27)
+#define A1_SRC0_CHANNEL_Y_SHIFT 24
+#define A1_SRC0_CHANNEL_Z_NEGATE (1<<23)
+#define A1_SRC0_CHANNEL_Z_SHIFT 20
+#define A1_SRC0_CHANNEL_W_NEGATE (1<<19)
+#define A1_SRC0_CHANNEL_W_SHIFT 16
+#define A1_SRC1_TYPE_SHIFT 13
+#define A1_SRC1_NR_SHIFT 8
+#define A1_SRC1_CHANNEL_X_NEGATE (1<<7)
+#define A1_SRC1_CHANNEL_X_SHIFT 4
+#define A1_SRC1_CHANNEL_Y_NEGATE (1<<3)
+#define A1_SRC1_CHANNEL_Y_SHIFT 0
+
+#define A2_SRC1_CHANNEL_Z_NEGATE (1<<31)
+#define A2_SRC1_CHANNEL_Z_SHIFT 28
+#define A2_SRC1_CHANNEL_W_NEGATE (1<<27)
+#define A2_SRC1_CHANNEL_W_SHIFT 24
+#define A2_SRC2_TYPE_SHIFT 21
+#define A2_SRC2_NR_SHIFT 16
+#define A2_SRC2_CHANNEL_X_NEGATE (1<<15)
+#define A2_SRC2_CHANNEL_X_SHIFT 12
+#define A2_SRC2_CHANNEL_Y_NEGATE (1<<11)
+#define A2_SRC2_CHANNEL_Y_SHIFT 8
+#define A2_SRC2_CHANNEL_Z_NEGATE (1<<7)
+#define A2_SRC2_CHANNEL_Z_SHIFT 4
+#define A2_SRC2_CHANNEL_W_NEGATE (1<<3)
+#define A2_SRC2_CHANNEL_W_SHIFT 0
+
+/* Texture instructions */
+#define T0_TEXLD (0x15<<24) /* Sample texture using predeclared
+ * sampler and address, and output
+ * filtered texel data to destination
+ * register */
+#define T0_TEXLDP (0x16<<24) /* Same as texld but performs a
+ * perspective divide of the texture
+ * coordinate .xyz values by .w before
+ * sampling. */
+#define T0_TEXLDB (0x17<<24) /* Same as texld but biases the
+ * computed LOD by w. Only S4.6 two's
+ * comp is used. This implies that a
+ * float to fixed conversion is
+ * done. */
+#define T0_TEXKILL (0x18<<24) /* Does not perform a sampling
+ * operation. Simply kills the pixel
+ * if any channel of the address
+ * register is < 0.0. */
+#define T0_DEST_TYPE_SHIFT 19
+/* Allow: R, OC, OD, U */
+/* Note: U (unpreserved) regs do not retain their values between
+ * phases (cannot be used for feedback)
+ *
+ * Note: oC and OD registers can only be used as the destination of a
+ * texture instruction once per phase (this is an implementation
+ * restriction).
+ */
+#define T0_DEST_NR_SHIFT 14
+/* Allow R: 0..15, OC,OD: 0..0, U: 0..2 */
+#define T0_SAMPLER_NR_SHIFT 0 /* This field ignored for TEXKILL */
+#define T0_SAMPLER_NR_MASK (0xf<<0)
+
+#define T1_ADDRESS_REG_TYPE_SHIFT 24 /* Reg to use as texture coord */
+/* Allow R, T, OC, OD -- R, OC, OD are 'dependent' reads, new program phase */
+#define T1_ADDRESS_REG_NR_SHIFT 17
+#define T2_MBZ 0
+
+/* Declaration instructions */
+#define D0_DCL (0x19<<24) /* Declare a t (interpolated attrib)
+ * register or an s (sampler)
+ * register. */
+#define D0_SAMPLE_TYPE_SHIFT 22
+#define D0_SAMPLE_TYPE_2D (0x0<<22)
+#define D0_SAMPLE_TYPE_CUBE (0x1<<22)
+#define D0_SAMPLE_TYPE_VOLUME (0x2<<22)
+#define D0_SAMPLE_TYPE_MASK (0x3<<22)
+
+#define D0_TYPE_SHIFT 19
+/* Allow: T, S */
+#define D0_NR_SHIFT 14
+/* Allow T: 0..10, S: 0..15 */
+#define D0_CHANNEL_X (1<<10)
+#define D0_CHANNEL_Y (2<<10)
+#define D0_CHANNEL_Z (4<<10)
+#define D0_CHANNEL_W (8<<10)
+#define D0_CHANNEL_ALL (0xf<<10)
+#define D0_CHANNEL_NONE (0<<10)
+
+#define D0_CHANNEL_XY (D0_CHANNEL_X|D0_CHANNEL_Y)
+#define D0_CHANNEL_XYZ (D0_CHANNEL_XY|D0_CHANNEL_Z)
+
+/* I915 Errata: Do not allow (xz), (xw), (xzw) combinations for diffuse
+ * or specular declarations.
+ *
+ * For T dcls, only allow: (x), (xy), (xyz), (w), (xyzw)
+ *
+ * Must be zero for S (sampler) dcls
+ */
+#define D1_MBZ 0
+#define D2_MBZ 0
+
+/* p207.
+ * The DWORD count is 3 times the number of bits set in MS1_MAPMASK_MASK
+ */
+#define _3DSTATE_MAP_STATE (CMD_3D|(0x1d<<24)|(0x0<<16))
+
+#define MS1_MAPMASK_SHIFT 0
+#define MS1_MAPMASK_MASK (0x8fff<<0)
+
+#define MS2_UNTRUSTED_SURFACE (1<<31)
+#define MS2_ADDRESS_MASK 0xfffffffc
+#define MS2_VERTICAL_LINE_STRIDE (1<<1)
+#define MS2_VERTICAL_OFFSET (1<<1)
+
+#define MS3_HEIGHT_SHIFT 21
+#define MS3_WIDTH_SHIFT 10
+#define MS3_PALETTE_SELECT (1<<9)
+#define MS3_MAPSURF_FORMAT_SHIFT 7
+#define MS3_MAPSURF_FORMAT_MASK (0x7<<7)
+#define MAPSURF_8BIT (1<<7)
+#define MAPSURF_16BIT (2<<7)
+#define MAPSURF_32BIT (3<<7)
+#define MAPSURF_422 (5<<7)
+#define MAPSURF_COMPRESSED (6<<7)
+#define MAPSURF_4BIT_INDEXED (7<<7)
+#define MS3_MT_FORMAT_MASK (0x7 << 3)
+#define MS3_MT_FORMAT_SHIFT 3
+#define MT_4BIT_IDX_ARGB8888 (7<<3) /* SURFACE_4BIT_INDEXED */
+#define MT_8BIT_I8 (0<<3) /* SURFACE_8BIT */
+#define MT_8BIT_L8 (1<<3)
+#define MT_8BIT_A8 (4<<3)
+#define MT_8BIT_MONO8 (5<<3)
+#define MT_16BIT_RGB565 (0<<3) /* SURFACE_16BIT */
+#define MT_16BIT_ARGB1555 (1<<3)
+#define MT_16BIT_ARGB4444 (2<<3)
+#define MT_16BIT_AY88 (3<<3)
+#define MT_16BIT_88DVDU (5<<3)
+#define MT_16BIT_BUMP_655LDVDU (6<<3)
+#define MT_16BIT_I16 (7<<3)
+#define MT_16BIT_L16 (8<<3)
+#define MT_16BIT_A16 (9<<3)
+#define MT_32BIT_ARGB8888 (0<<3) /* SURFACE_32BIT */
+#define MT_32BIT_ABGR8888 (1<<3)
+#define MT_32BIT_XRGB8888 (2<<3)
+#define MT_32BIT_XBGR8888 (3<<3)
+#define MT_32BIT_QWVU8888 (4<<3)
+#define MT_32BIT_AXVU8888 (5<<3)
+#define MT_32BIT_LXVU8888 (6<<3)
+#define MT_32BIT_XLVU8888 (7<<3)
+#define MT_32BIT_ARGB2101010 (8<<3)
+#define MT_32BIT_ABGR2101010 (9<<3)
+#define MT_32BIT_AWVU2101010 (0xA<<3)
+#define MT_32BIT_GR1616 (0xB<<3)
+#define MT_32BIT_VU1616 (0xC<<3)
+#define MT_32BIT_xI824 (0xD<<3)
+#define MT_32BIT_xA824 (0xE<<3)
+#define MT_32BIT_xL824 (0xF<<3)
+#define MT_422_YCRCB_SWAPY (0<<3) /* SURFACE_422 */
+#define MT_422_YCRCB_NORMAL (1<<3)
+#define MT_422_YCRCB_SWAPUV (2<<3)
+#define MT_422_YCRCB_SWAPUVY (3<<3)
+#define MT_COMPRESS_DXT1 (0<<3) /* SURFACE_COMPRESSED */
+#define MT_COMPRESS_DXT2_3 (1<<3)
+#define MT_COMPRESS_DXT4_5 (2<<3)
+#define MT_COMPRESS_FXT1 (3<<3)
+#define MT_COMPRESS_DXT1_RGB (4<<3)
+#define MS3_USE_FENCE_REGS (1<<2)
+#define MS3_TILED_SURFACE (1<<1)
+#define MS3_TILE_WALK (1<<0)
+
+/* The pitch is the pitch measured in DWORDS, minus 1 */
+#define MS4_PITCH_SHIFT 21
+#define MS4_CUBE_FACE_ENA_NEGX (1<<20)
+#define MS4_CUBE_FACE_ENA_POSX (1<<19)
+#define MS4_CUBE_FACE_ENA_NEGY (1<<18)
+#define MS4_CUBE_FACE_ENA_POSY (1<<17)
+#define MS4_CUBE_FACE_ENA_NEGZ (1<<16)
+#define MS4_CUBE_FACE_ENA_POSZ (1<<15)
+#define MS4_CUBE_FACE_ENA_MASK (0x3f<<15)
+#define MS4_MAX_LOD_SHIFT 9
+#define MS4_MAX_LOD_MASK (0x3f<<9)
+#define MS4_MIP_LAYOUT_LEGACY (0<<8)
+#define MS4_MIP_LAYOUT_BELOW_LPT (0<<8)
+#define MS4_MIP_LAYOUT_RIGHT_LPT (1<<8)
+#define MS4_VOLUME_DEPTH_SHIFT 0
+#define MS4_VOLUME_DEPTH_MASK (0xff<<0)
+
+/* p244.
+ * The DWORD count is 3 times the number of bits set in SS1_MAPMASK_MASK.
+ */
+#define _3DSTATE_SAMPLER_STATE (CMD_3D|(0x1d<<24)|(0x1<<16))
+
+#define SS1_MAPMASK_SHIFT 0
+#define SS1_MAPMASK_MASK (0x8fff<<0)
+
+#define SS2_REVERSE_GAMMA_ENABLE (1<<31)
+#define SS2_PACKED_TO_PLANAR_ENABLE (1<<30)
+#define SS2_COLORSPACE_CONVERSION (1<<29)
+#define SS2_CHROMAKEY_SHIFT 27
+#define SS2_BASE_MIP_LEVEL_SHIFT 22
+#define SS2_BASE_MIP_LEVEL_MASK (0x1f<<22)
+#define SS2_MIP_FILTER_SHIFT 20
+#define SS2_MIP_FILTER_MASK (0x3<<20)
+#define MIPFILTER_NONE 0
+#define MIPFILTER_NEAREST 1
+#define MIPFILTER_LINEAR 3
+#define SS2_MAG_FILTER_SHIFT 17
+#define SS2_MAG_FILTER_MASK (0x7<<17)
+#define FILTER_NEAREST 0
+#define FILTER_LINEAR 1
+#define FILTER_ANISOTROPIC 2
+#define FILTER_4X4_1 3
+#define FILTER_4X4_2 4
+#define FILTER_4X4_FLAT 5
+#define FILTER_6X5_MONO 6 /* XXX - check */
+#define SS2_MIN_FILTER_SHIFT 14
+#define SS2_MIN_FILTER_MASK (0x7<<14)
+#define SS2_LOD_BIAS_SHIFT 5
+#define SS2_LOD_BIAS_ONE (0x10<<5)
+#define SS2_LOD_BIAS_MASK (0x1ff<<5)
+/* Shadow requires:
+ * MT_X8{I,L,A}24 or MT_{I,L,A}16 texture format
+ * FILTER_4X4_x MIN and MAG filters
+ */
+#define SS2_SHADOW_ENABLE (1<<4)
+#define SS2_MAX_ANISO_MASK (1<<3)
+#define SS2_MAX_ANISO_2 (0<<3)
+#define SS2_MAX_ANISO_4 (1<<3)
+#define SS2_SHADOW_FUNC_SHIFT 0
+#define SS2_SHADOW_FUNC_MASK (0x7<<0)
+/* SS2_SHADOW_FUNC values: see COMPAREFUNC_* */
+
+#define SS3_MIN_LOD_SHIFT 24
+#define SS3_MIN_LOD_ONE (0x10<<24)
+#define SS3_MIN_LOD_MASK (0xff<<24)
+#define SS3_KILL_PIXEL_ENABLE (1<<17)
+#define SS3_TCX_ADDR_MODE_SHIFT 12
+#define SS3_TCX_ADDR_MODE_MASK (0x7<<12)
+#define TEXCOORDMODE_WRAP 0
+#define TEXCOORDMODE_MIRROR 1
+#define TEXCOORDMODE_CLAMP_EDGE 2
+#define TEXCOORDMODE_CUBE 3
+#define TEXCOORDMODE_CLAMP_BORDER 4
+#define TEXCOORDMODE_MIRROR_ONCE 5
+#define SS3_TCY_ADDR_MODE_SHIFT 9
+#define SS3_TCY_ADDR_MODE_MASK (0x7<<9)
+#define SS3_TCZ_ADDR_MODE_SHIFT 6
+#define SS3_TCZ_ADDR_MODE_MASK (0x7<<6)
+#define SS3_NORMALIZED_COORDS (1<<5)
+#define SS3_TEXTUREMAP_INDEX_SHIFT 1
+#define SS3_TEXTUREMAP_INDEX_MASK (0xf<<1)
+#define SS3_DEINTERLACER_ENABLE (1<<0)
+
+#define SS4_BORDER_COLOR_MASK (~0)
+
+/* 3DSTATE_SPAN_STIPPLE, p258
+ */
+#define _3DSTATE_STIPPLE ((0x3<<29)|(0x1d<<24)|(0x83<<16))
+#define ST1_ENABLE (1<<16)
+#define ST1_MASK (0xffff)
+
+#define FLUSH_MAP_CACHE (1<<0)
+#define FLUSH_RENDER_CACHE (1<<1)
+
+#endif
diff --git a/src/i915_render.c b/src/i915_render.c
new file mode 100644
index 0000000..87d2336
--- /dev/null
+++ b/src/i915_render.c
@@ -0,0 +1,1185 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Eric Anholt <eric@anholt.net>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "intel.h"
+#include "i915_reg.h"
+#include "i915_3d.h"
+
+struct formatinfo {
+ int fmt;
+ uint32_t card_fmt;
+};
+
+struct blendinfo {
+ Bool dst_alpha;
+ Bool src_alpha;
+ uint32_t src_blend;
+ uint32_t dst_blend;
+};
+
+static struct blendinfo i915_blend_op[] = {
+ /* Clear */
+ {0, 0, BLENDFACT_ZERO, BLENDFACT_ZERO},
+ /* Src */
+ {0, 0, BLENDFACT_ONE, BLENDFACT_ZERO},
+ /* Dst */
+ {0, 0, BLENDFACT_ZERO, BLENDFACT_ONE},
+ /* Over */
+ {0, 1, BLENDFACT_ONE, BLENDFACT_INV_SRC_ALPHA},
+ /* OverReverse */
+ {1, 0, BLENDFACT_INV_DST_ALPHA, BLENDFACT_ONE},
+ /* In */
+ {1, 0, BLENDFACT_DST_ALPHA, BLENDFACT_ZERO},
+ /* InReverse */
+ {0, 1, BLENDFACT_ZERO, BLENDFACT_SRC_ALPHA},
+ /* Out */
+ {1, 0, BLENDFACT_INV_DST_ALPHA, BLENDFACT_ZERO},
+ /* OutReverse */
+ {0, 1, BLENDFACT_ZERO, BLENDFACT_INV_SRC_ALPHA},
+ /* Atop */
+ {1, 1, BLENDFACT_DST_ALPHA, BLENDFACT_INV_SRC_ALPHA},
+ /* AtopReverse */
+ {1, 1, BLENDFACT_INV_DST_ALPHA, BLENDFACT_SRC_ALPHA},
+ /* Xor */
+ {1, 1, BLENDFACT_INV_DST_ALPHA, BLENDFACT_INV_SRC_ALPHA},
+ /* Add */
+ {0, 0, BLENDFACT_ONE, BLENDFACT_ONE},
+};
+
+static struct formatinfo i915_tex_formats[] = {
+ {PICT_a8, MAPSURF_8BIT | MT_8BIT_A8},
+ {PICT_a8r8g8b8, MAPSURF_32BIT | MT_32BIT_ARGB8888},
+ {PICT_x8r8g8b8, MAPSURF_32BIT | MT_32BIT_XRGB8888},
+ {PICT_a8b8g8r8, MAPSURF_32BIT | MT_32BIT_ABGR8888},
+ {PICT_x8b8g8r8, MAPSURF_32BIT | MT_32BIT_XBGR8888},
+#if XORG_VERSION_CURRENT >= 10699900
+ {PICT_a2r10g10b10, MAPSURF_32BIT | MT_32BIT_ARGB2101010},
+ {PICT_a2b10g10r10, MAPSURF_32BIT | MT_32BIT_ABGR2101010},
+#endif
+ {PICT_r5g6b5, MAPSURF_16BIT | MT_16BIT_RGB565},
+ {PICT_a1r5g5b5, MAPSURF_16BIT | MT_16BIT_ARGB1555},
+ {PICT_a4r4g4b4, MAPSURF_16BIT | MT_16BIT_ARGB4444},
+};
+
+static uint32_t i915_get_blend_cntl(int op, PicturePtr mask,
+ uint32_t dst_format)
+{
+ uint32_t sblend, dblend;
+
+ sblend = i915_blend_op[op].src_blend;
+ dblend = i915_blend_op[op].dst_blend;
+
+ /* If there's no dst alpha channel, adjust the blend op so that we'll
+ * treat it as always 1.
+ */
+ if (PICT_FORMAT_A(dst_format) == 0 && i915_blend_op[op].dst_alpha) {
+ if (sblend == BLENDFACT_DST_ALPHA)
+ sblend = BLENDFACT_ONE;
+ else if (sblend == BLENDFACT_INV_DST_ALPHA)
+ sblend = BLENDFACT_ZERO;
+ }
+
+ /* i915 engine reads 8bit color buffer into green channel in cases
+ like color buffer blending .etc, and also writes back green channel.
+ So with dst_alpha blend we should use color factor. See spec on
+ "8-bit rendering" */
+ if ((dst_format == PICT_a8) && i915_blend_op[op].dst_alpha) {
+ if (sblend == BLENDFACT_DST_ALPHA)
+ sblend = BLENDFACT_DST_COLR;
+ else if (sblend == BLENDFACT_INV_DST_ALPHA)
+ sblend = BLENDFACT_INV_DST_COLR;
+ }
+
+ /* If the source alpha is being used, then we should only be in a case
+ * where the source blend factor is 0, and the source blend value is the
+ * mask channels multiplied by the source picture's alpha.
+ */
+ if (mask && mask->componentAlpha && PICT_FORMAT_RGB(mask->format) &&
+ i915_blend_op[op].src_alpha) {
+ if (dblend == BLENDFACT_SRC_ALPHA) {
+ dblend = BLENDFACT_SRC_COLR;
+ } else if (dblend == BLENDFACT_INV_SRC_ALPHA) {
+ dblend = BLENDFACT_INV_SRC_COLR;
+ }
+ }
+
+ return S6_CBUF_BLEND_ENABLE | S6_COLOR_WRITE_ENABLE |
+ (BLENDFUNC_ADD << S6_CBUF_BLEND_FUNC_SHIFT) |
+ (sblend << S6_CBUF_SRC_BLEND_FACT_SHIFT) |
+ (dblend << S6_CBUF_DST_BLEND_FACT_SHIFT);
+}
+
+#define DSTORG_HORT_BIAS(x) ((x)<<20)
+#define DSTORG_VERT_BIAS(x) ((x)<<16)
+
+static Bool i915_get_dest_format(PicturePtr dest_picture, uint32_t * dst_format)
+{
+ ScrnInfoPtr scrn;
+
+ switch (dest_picture->format) {
+ case PICT_a8r8g8b8:
+ case PICT_x8r8g8b8:
+ *dst_format = COLR_BUF_ARGB8888;
+ break;
+ case PICT_r5g6b5:
+ *dst_format = COLR_BUF_RGB565;
+ break;
+ case PICT_a1r5g5b5:
+ case PICT_x1r5g5b5:
+ *dst_format = COLR_BUF_ARGB1555;
+ break;
+#if XORG_VERSION_CURRENT >= 10699900
+ case PICT_a2r10g10b10:
+ case PICT_x2r10g10b10:
+ *dst_format = COLR_BUF_ARGB2AAA;
+ break;
+#endif
+ case PICT_a8:
+ *dst_format = COLR_BUF_8BIT;
+ break;
+ case PICT_a4r4g4b4:
+ case PICT_x4r4g4b4:
+ *dst_format = COLR_BUF_ARGB4444;
+ break;
+ default:
+ scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+ intel_debug_fallback(scrn,
+ "Unsupported dest format 0x%x\n",
+ (int)dest_picture->format);
+ return FALSE;
+ }
+ *dst_format |= DSTORG_HORT_BIAS(0x8) | DSTORG_VERT_BIAS(0x8);
+ return TRUE;
+}
+
+Bool
+i915_check_composite(int op,
+ PicturePtr source_picture,
+ PicturePtr mask_picture,
+ PicturePtr dest_picture,
+ int width, int height)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+ uint32_t tmp1;
+
+ /* Check for unsupported compositing operations. */
+ if (op >= sizeof(i915_blend_op) / sizeof(i915_blend_op[0])) {
+ intel_debug_fallback(scrn, "Unsupported Composite op 0x%x\n",
+ op);
+ return FALSE;
+ }
+ if (mask_picture != NULL && mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ /* Check if it's component alpha that relies on a source alpha
+ * and on the source value. We can only get one of those
+ * into the single source value that we get to blend with.
+ */
+ if (i915_blend_op[op].src_alpha &&
+ (i915_blend_op[op].src_blend != BLENDFACT_ZERO)) {
+ if (op != PictOpOver) {
+ intel_debug_fallback(scrn,
+ "Component alpha not supported "
+ "with source alpha and source "
+ "value blending.\n");
+ return FALSE;
+ }
+ }
+ }
+
+ if (!i915_get_dest_format(dest_picture, &tmp1)) {
+ intel_debug_fallback(scrn, "Get Color buffer format\n");
+ return FALSE;
+ }
+
+ if (width > 2048 || height > 2048)
+ return FALSE;
+
+ return TRUE;
+}
+
+Bool
+i915_check_composite_target(PixmapPtr pixmap)
+{
+ if (pixmap->drawable.width > 2048 || pixmap->drawable.height > 2048)
+ return FALSE;
+
+ if(!intel_check_pitch_3d(pixmap))
+ return FALSE;
+
+ return TRUE;
+}
+
+Bool
+i915_check_composite_texture(ScreenPtr screen, PicturePtr picture)
+{
+ if (picture->repeatType > RepeatReflect) {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn, "Unsupported picture repeat %d\n",
+ picture->repeatType);
+ return FALSE;
+ }
+
+ if (picture->filter != PictFilterNearest &&
+ picture->filter != PictFilterBilinear) {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn, "Unsupported filter 0x%x\n",
+ picture->filter);
+ return FALSE;
+ }
+
+ if (picture->pSourcePict) {
+ SourcePict *source = picture->pSourcePict;
+ if (source->type == SourcePictTypeSolidFill)
+ return TRUE;
+ }
+
+ if (picture->pDrawable) {
+ int w, h, i;
+
+ w = picture->pDrawable->width;
+ h = picture->pDrawable->height;
+ if ((w > 2048) || (h > 2048)) {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn,
+ "Picture w/h too large (%dx%d)\n",
+ w, h);
+ return FALSE;
+ }
+
+ for (i = 0;
+ i < sizeof(i915_tex_formats) / sizeof(i915_tex_formats[0]);
+ i++) {
+ if (i915_tex_formats[i].fmt == picture->format)
+ break;
+ }
+ if (i == sizeof(i915_tex_formats) / sizeof(i915_tex_formats[0]))
+ {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn, "Unsupported picture format "
+ "0x%x\n",
+ (int)picture->format);
+ return FALSE;
+ }
+
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+static Bool i915_texture_setup(PicturePtr picture, PixmapPtr pixmap, int unit)
+{
+ ScrnInfoPtr scrn = xf86Screens[picture->pDrawable->pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ uint32_t format, pitch, filter;
+ uint32_t wrap_mode, tiling_bits;
+ int i;
+
+ pitch = intel_pixmap_pitch(pixmap);
+ intel->scale_units[unit][0] = 1. / pixmap->drawable.width;
+ intel->scale_units[unit][1] = 1. / pixmap->drawable.height;
+
+ for (i = 0; i < sizeof(i915_tex_formats) / sizeof(i915_tex_formats[0]);
+ i++) {
+ if (i915_tex_formats[i].fmt == picture->format)
+ break;
+ }
+ if (i == sizeof(i915_tex_formats) / sizeof(i915_tex_formats[0])) {
+ intel_debug_fallback(scrn, "unknown texture format\n");
+ return FALSE;
+ }
+ format = i915_tex_formats[i].card_fmt;
+
+ switch (picture->repeatType) {
+ case RepeatNone:
+ wrap_mode = TEXCOORDMODE_CLAMP_BORDER;
+ break;
+ case RepeatNormal:
+ wrap_mode = TEXCOORDMODE_WRAP;
+ break;
+ case RepeatPad:
+ wrap_mode = TEXCOORDMODE_CLAMP_EDGE;
+ break;
+ case RepeatReflect:
+ wrap_mode = TEXCOORDMODE_MIRROR;
+ break;
+ default:
+ FatalError("Unknown repeat type %d\n", picture->repeatType);
+ }
+
+ switch (picture->filter) {
+ case PictFilterNearest:
+ filter = (FILTER_NEAREST << SS2_MAG_FILTER_SHIFT) |
+ (FILTER_NEAREST << SS2_MIN_FILTER_SHIFT);
+ break;
+ case PictFilterBilinear:
+ filter = (FILTER_LINEAR << SS2_MAG_FILTER_SHIFT) |
+ (FILTER_LINEAR << SS2_MIN_FILTER_SHIFT);
+ break;
+ default:
+ filter = 0;
+ intel_debug_fallback(scrn, "Bad filter 0x%x\n",
+ picture->filter);
+ return FALSE;
+ }
+
+ /* offset filled in at emit time */
+ if (intel_pixmap_tiled(pixmap)) {
+ tiling_bits = MS3_TILED_SURFACE;
+ if (intel_get_pixmap_private(pixmap)->tiling
+ == I915_TILING_Y)
+ tiling_bits |= MS3_TILE_WALK;
+ } else
+ tiling_bits = 0;
+
+ intel->texture[unit] = pixmap;
+ intel->mapstate[unit * 3 + 0] = 0;
+ intel->mapstate[unit * 3 + 1] = format |
+ tiling_bits |
+ ((pixmap->drawable.height - 1) << MS3_HEIGHT_SHIFT) |
+ ((pixmap->drawable.width - 1) << MS3_WIDTH_SHIFT);
+ intel->mapstate[unit * 3 + 2] = ((pitch / 4) - 1) << MS4_PITCH_SHIFT;
+
+ intel->samplerstate[unit * 3 + 0] = (MIPFILTER_NONE <<
+ SS2_MIP_FILTER_SHIFT);
+ intel->samplerstate[unit * 3 + 0] |= filter;
+ intel->samplerstate[unit * 3 + 1] = SS3_NORMALIZED_COORDS;
+ intel->samplerstate[unit * 3 + 1] |=
+ wrap_mode << SS3_TCX_ADDR_MODE_SHIFT;
+ intel->samplerstate[unit * 3 + 1] |=
+ wrap_mode << SS3_TCY_ADDR_MODE_SHIFT;
+ intel->samplerstate[unit * 3 + 1] |= unit << SS3_TEXTUREMAP_INDEX_SHIFT;
+ intel->samplerstate[unit * 3 + 2] = 0x00000000; /* border color */
+
+ intel->transform[unit] = picture->transform;
+
+ return TRUE;
+}
+
+static void
+i915_emit_composite_primitive_constant(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+}
+
+static void
+i915_emit_composite_primitive_identity_source(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX((srcX + w) * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX(srcY * intel->scale_units[0][1]);
+}
+
+static void
+i915_emit_composite_primitive_affine_source(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ float src_x[3], src_y[3];
+
+ if (!intel_get_transformed_coordinates(srcX, srcY,
+ intel->transform[0],
+ &src_x[0],
+ &src_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX, srcY + h,
+ intel->transform[0],
+ &src_x[1],
+ &src_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX + w, srcY + h,
+ intel->transform[0],
+ &src_x[2],
+ &src_y[2]))
+ return;
+
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(src_x[2] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[2] * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(src_x[1] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[1] * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(src_x[0] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[0] * intel->scale_units[0][1]);
+}
+
+static void
+i915_emit_composite_primitive_constant_identity_mask(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX((maskX + w) * intel->scale_units[0][0]);
+ OUT_VERTEX((maskY + h) * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(maskX * intel->scale_units[0][0]);
+ OUT_VERTEX((maskY + h) * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(maskX * intel->scale_units[0][0]);
+ OUT_VERTEX(maskY * intel->scale_units[0][1]);
+}
+
+static void
+i915_emit_composite_primitive_identity_source_mask(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX((srcX + w) * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+ OUT_VERTEX((maskX + w) * intel->scale_units[1][0]);
+ OUT_VERTEX((maskY + h) * intel->scale_units[1][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+ OUT_VERTEX(maskX * intel->scale_units[1][0]);
+ OUT_VERTEX((maskY + h) * intel->scale_units[1][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX(srcY * intel->scale_units[0][1]);
+ OUT_VERTEX(maskX * intel->scale_units[1][0]);
+ OUT_VERTEX(maskY * intel->scale_units[1][1]);
+}
+
+static void
+i915_emit_composite_primitive(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ Bool is_affine_src = TRUE, is_affine_mask = TRUE;
+ int per_vertex;
+ int tex_unit = 0;
+ int src_unit = -1, mask_unit = -1;
+ float src_x[3], src_y[3], src_w[3], mask_x[3], mask_y[3], mask_w[3];
+
+ per_vertex = 2; /* dest x/y */
+
+ if (! intel->render_source_is_solid) {
+ src_unit = tex_unit++;
+
+ is_affine_src = intel_transform_is_affine(intel->transform[src_unit]);
+ if (is_affine_src) {
+ if (!intel_get_transformed_coordinates(srcX, srcY,
+ intel->
+ transform[src_unit],
+ &src_x[0],
+ &src_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX, srcY + h,
+ intel->
+ transform[src_unit],
+ &src_x[1],
+ &src_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX + w, srcY + h,
+ intel->
+ transform[src_unit],
+ &src_x[2],
+ &src_y[2]))
+ return;
+
+ per_vertex += 2; /* src x/y */
+ } else {
+ if (!intel_get_transformed_coordinates_3d(srcX, srcY,
+ intel->
+ transform[src_unit],
+ &src_x[0],
+ &src_y[0],
+ &src_w[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(srcX, srcY + h,
+ intel->
+ transform[src_unit],
+ &src_x[1],
+ &src_y[1],
+ &src_w[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(srcX + w, srcY + h,
+ intel->
+ transform[src_unit],
+ &src_x[2],
+ &src_y[2],
+ &src_w[2]))
+ return;
+
+ per_vertex += 4; /* src x/y/z/w */
+ }
+ }
+
+ if (intel->render_mask && ! intel->render_mask_is_solid) {
+ mask_unit = tex_unit++;
+
+ is_affine_mask = intel_transform_is_affine(intel->transform[mask_unit]);
+ if (is_affine_mask) {
+ if (!intel_get_transformed_coordinates(maskX, maskY,
+ intel->
+ transform[mask_unit],
+ &mask_x[0],
+ &mask_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(maskX, maskY + h,
+ intel->
+ transform[mask_unit],
+ &mask_x[1],
+ &mask_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(maskX + w, maskY + h,
+ intel->
+ transform[mask_unit],
+ &mask_x[2],
+ &mask_y[2]))
+ return;
+
+ per_vertex += 2; /* mask x/y */
+ } else {
+ if (!intel_get_transformed_coordinates_3d(maskX, maskY,
+ intel->
+ transform[mask_unit],
+ &mask_x[0],
+ &mask_y[0],
+ &mask_w[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(maskX, maskY + h,
+ intel->
+ transform[mask_unit],
+ &mask_x[1],
+ &mask_y[1],
+ &mask_w[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(maskX + w, maskY + h,
+ intel->
+ transform[mask_unit],
+ &mask_x[2],
+ &mask_y[2],
+ &mask_w[2]))
+ return;
+
+ per_vertex += 4; /* mask x/y/z/w */
+ }
+ }
+
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ if (! intel->render_source_is_solid) {
+ OUT_VERTEX(src_x[2] * intel->scale_units[src_unit][0]);
+ OUT_VERTEX(src_y[2] * intel->scale_units[src_unit][1]);
+ if (!is_affine_src) {
+ OUT_VERTEX(0.0);
+ OUT_VERTEX(src_w[2]);
+ }
+ }
+ if (intel->render_mask && ! intel->render_mask_is_solid) {
+ OUT_VERTEX(mask_x[2] * intel->scale_units[mask_unit][0]);
+ OUT_VERTEX(mask_y[2] * intel->scale_units[mask_unit][1]);
+ if (!is_affine_mask) {
+ OUT_VERTEX(0.0);
+ OUT_VERTEX(mask_w[2]);
+ }
+ }
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ if (! intel->render_source_is_solid) {
+ OUT_VERTEX(src_x[1] * intel->scale_units[src_unit][0]);
+ OUT_VERTEX(src_y[1] * intel->scale_units[src_unit][1]);
+ if (!is_affine_src) {
+ OUT_VERTEX(0.0);
+ OUT_VERTEX(src_w[1]);
+ }
+ }
+ if (intel->render_mask && ! intel->render_mask_is_solid) {
+ OUT_VERTEX(mask_x[1] * intel->scale_units[mask_unit][0]);
+ OUT_VERTEX(mask_y[1] * intel->scale_units[mask_unit][1]);
+ if (!is_affine_mask) {
+ OUT_VERTEX(0.0);
+ OUT_VERTEX(mask_w[1]);
+ }
+ }
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ if (! intel->render_source_is_solid) {
+ OUT_VERTEX(src_x[0] * intel->scale_units[src_unit][0]);
+ OUT_VERTEX(src_y[0] * intel->scale_units[src_unit][1]);
+ if (!is_affine_src) {
+ OUT_VERTEX(0.0);
+ OUT_VERTEX(src_w[0]);
+ }
+ }
+ if (intel->render_mask && ! intel->render_mask_is_solid) {
+ OUT_VERTEX(mask_x[0] * intel->scale_units[mask_unit][0]);
+ OUT_VERTEX(mask_y[0] * intel->scale_units[mask_unit][1]);
+ if (!is_affine_mask) {
+ OUT_VERTEX(0.0);
+ OUT_VERTEX(mask_w[0]);
+ }
+ }
+}
+
+Bool
+i915_prepare_composite(int op, PicturePtr source_picture,
+ PicturePtr mask_picture, PicturePtr dest_picture,
+ PixmapPtr source, PixmapPtr mask, PixmapPtr dest)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *bo_table[] = {
+ NULL, /* batch_bo */
+ intel_get_pixmap_bo(dest),
+ source ? intel_get_pixmap_bo(source) : NULL,
+ mask ? intel_get_pixmap_bo(mask) : NULL,
+ };
+ int tex_unit = 0;
+ int floats_per_vertex;
+
+ intel->render_source_picture = source_picture;
+ intel->render_source = source;
+ intel->render_mask_picture = mask_picture;
+ intel->render_mask = mask;
+ intel->render_dest_picture = dest_picture;
+ intel->render_dest = dest;
+
+ intel->render_source_is_solid = FALSE;
+ if (source_picture->pSourcePict) {
+ SourcePict *source = source_picture->pSourcePict;
+ if (source->type == SourcePictTypeSolidFill) {
+ intel->render_source_is_solid = TRUE;
+ intel->render_source_solid = source->solidFill.color;
+ }
+ }
+ if (!intel->render_source_is_solid && !intel_check_pitch_3d(source))
+ return FALSE;
+
+ intel->render_mask_is_solid = FALSE;
+ if (mask) {
+ if (mask_picture->pSourcePict) {
+ SourcePict *source = mask_picture->pSourcePict;
+ if (source->type == SourcePictTypeSolidFill) {
+ intel->render_mask_is_solid = TRUE;
+ intel->render_mask_solid = source->solidFill.color;
+ }
+ }
+ if (!intel->render_mask_is_solid && !intel_check_pitch_3d(mask))
+ return FALSE;
+ }
+
+ if (!intel_check_pitch_3d(dest))
+ return FALSE;
+
+ if (!i915_get_dest_format(dest_picture,
+ &intel->i915_render_state.dst_format))
+ return FALSE;
+
+ if (!intel_get_aperture_space(scrn, bo_table, ARRAY_SIZE(bo_table)))
+ return FALSE;
+
+ intel->needs_render_ca_pass = FALSE;
+ if (mask_picture != NULL && mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ /* Check if it's component alpha that relies on a source alpha
+ * and on the source value. We can only get one of those
+ * into the single source value that we get to blend with.
+ */
+ if (i915_blend_op[op].src_alpha &&
+ (i915_blend_op[op].src_blend != BLENDFACT_ZERO)) {
+ if (op != PictOpOver)
+ return FALSE;
+
+ intel->needs_render_ca_pass = TRUE;
+ }
+ }
+
+ intel->transform[0] = NULL;
+ intel->scale_units[0][0] = -1;
+ intel->scale_units[0][1] = -1;
+ intel->transform[1] = NULL;
+ intel->scale_units[1][0] = -1;
+ intel->scale_units[1][1] = -1;
+
+ floats_per_vertex = 2; /* dest x/y */
+ if (! intel->render_source_is_solid) {
+ if (!i915_texture_setup(source_picture, source, tex_unit++)) {
+ intel_debug_fallback(scrn, "fail to setup src texture\n");
+ return FALSE;
+ }
+
+ if (intel_transform_is_affine(source_picture->transform))
+ floats_per_vertex += 2; /* src x/y */
+ else
+ floats_per_vertex += 4; /* src x/y/z/w */
+ }
+
+ if (mask != NULL) {
+ if (! intel->render_mask_is_solid) {
+ if (!i915_texture_setup(mask_picture, mask, tex_unit++)) {
+ intel_debug_fallback(scrn,
+ "fail to setup mask texture\n");
+ return FALSE;
+ }
+
+ if (intel_transform_is_affine(mask_picture->transform))
+ floats_per_vertex += 2; /* mask x/y */
+ else
+ floats_per_vertex += 4; /* mask x/y/z/w */
+ }
+ }
+
+ intel->i915_render_state.op = op;
+
+ /* BUF_INFO is an implicit flush */
+ if (dest != intel->render_current_dest)
+ intel_batch_do_flush(scrn);
+ else if((source && intel_pixmap_is_dirty(source)) ||
+ (mask && intel_pixmap_is_dirty(mask)))
+ intel_batch_emit_flush(scrn);
+
+ intel->needs_render_state_emit = TRUE;
+
+ intel->prim_emit = i915_emit_composite_primitive;
+ if (!mask) {
+ if (intel->render_source_is_solid)
+ intel->prim_emit = i915_emit_composite_primitive_constant;
+ else if (intel->transform[0] == NULL)
+ intel->prim_emit = i915_emit_composite_primitive_identity_source;
+ else if (intel_transform_is_affine(intel->transform[0]))
+ intel->prim_emit = i915_emit_composite_primitive_affine_source;
+ } else {
+ if (intel->transform[0] == NULL) {
+ if (intel->render_source_is_solid)
+ intel->prim_emit = i915_emit_composite_primitive_constant_identity_mask;
+ else if (intel->transform[1] == NULL)
+ intel->prim_emit = i915_emit_composite_primitive_identity_source_mask;
+ }
+ }
+
+ if (floats_per_vertex != intel->floats_per_vertex) {
+ intel->floats_per_vertex = floats_per_vertex;
+ intel->needs_render_vertex_emit = TRUE;
+ }
+
+ return TRUE;
+}
+
+static void
+i915_composite_emit_shader(intel_screen_private *intel, CARD8 op)
+{
+ PicturePtr mask_picture = intel->render_mask_picture;
+ PixmapPtr mask = intel->render_mask;
+ int src_reg, mask_reg;
+ Bool is_solid_src, is_solid_mask;
+ Bool dest_is_alpha = PIXMAN_FORMAT_RGB(intel->render_dest_picture->format) == 0;
+ int tex_unit, t;
+ FS_LOCALS();
+
+ is_solid_src = intel->render_source_is_solid;
+ is_solid_mask = intel->render_mask_is_solid;
+
+ FS_BEGIN();
+
+ /* Declare the registers necessary for our program. */
+ t = 0;
+ if (is_solid_src) {
+ i915_fs_dcl(FS_T8);
+ src_reg = FS_T8;
+ } else {
+ i915_fs_dcl(FS_T0);
+ i915_fs_dcl(FS_S0);
+ t++;
+ }
+ if (!mask) {
+ /* No mask, so load directly to output color */
+ if (! is_solid_src) {
+ if (dest_is_alpha)
+ src_reg = FS_R0;
+ else
+ src_reg = FS_OC;
+
+ if (intel_transform_is_affine(intel->transform[0]))
+ i915_fs_texld(src_reg, FS_S0, FS_T0);
+ else
+ i915_fs_texldp(src_reg, FS_S0, FS_T0);
+ }
+
+ if (src_reg != FS_OC) {
+ if (dest_is_alpha)
+ i915_fs_mov(FS_OC, i915_fs_operand(src_reg, W, W, W, W));
+ else
+ i915_fs_mov(FS_OC, i915_fs_operand_reg(src_reg));
+ }
+ } else {
+ if (is_solid_mask) {
+ i915_fs_dcl(FS_T9);
+ mask_reg = FS_T9;
+ } else {
+ i915_fs_dcl(FS_T0 + t);
+ i915_fs_dcl(FS_S0 + t);
+ }
+
+ tex_unit = 0;
+ if (! is_solid_src) {
+ /* Load the source_picture texel */
+ if (intel_transform_is_affine(intel->transform[tex_unit]))
+ i915_fs_texld(FS_R0, FS_S0, FS_T0);
+ else
+ i915_fs_texldp(FS_R0, FS_S0, FS_T0);
+
+ src_reg = FS_R0;
+ tex_unit++;
+ }
+
+ if (! is_solid_mask) {
+ /* Load the mask_picture texel */
+ if (intel_transform_is_affine(intel->transform[tex_unit]))
+ i915_fs_texld(FS_R1, FS_S0 + t, FS_T0 + t);
+ else
+ i915_fs_texldp(FS_R1, FS_S0 + t, FS_T0 + t);
+
+ mask_reg = FS_R1;
+ }
+
+ if (dest_is_alpha) {
+ i915_fs_mul(FS_OC,
+ i915_fs_operand(src_reg, W, W, W, W),
+ i915_fs_operand(mask_reg, W, W, W, W));
+ } else {
+ /* If component alpha is active in the mask and the blend
+ * operation uses the source alpha, then we know we don't
+ * need the source value (otherwise we would have hit a
+ * fallback earlier), so we provide the source alpha (src.A *
+ * mask.X) as output color.
+ * Conversely, if CA is set and we don't need the source alpha,
+ * then we produce the source value (src.X * mask.X) and the
+ * source alpha is unused. Otherwise, we provide the non-CA
+ * source value (src.X * mask.A).
+ */
+ if (mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ if (i915_blend_op[op].src_alpha) {
+ i915_fs_mul(FS_OC,
+ i915_fs_operand(src_reg, W, W, W, W),
+ i915_fs_operand_reg(mask_reg));
+ } else {
+ i915_fs_mul(FS_OC,
+ i915_fs_operand_reg(src_reg),
+ i915_fs_operand_reg(mask_reg));
+ }
+ } else {
+ i915_fs_mul(FS_OC,
+ i915_fs_operand_reg(src_reg),
+ i915_fs_operand(mask_reg, W, W, W, W));
+ }
+ }
+ }
+
+ FS_END();
+}
+
+static void i915_emit_composite_setup(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int op = intel->i915_render_state.op;
+ PicturePtr mask_picture = intel->render_mask_picture;
+ PicturePtr dest_picture = intel->render_dest_picture;
+ PixmapPtr mask = intel->render_mask;
+ PixmapPtr dest = intel->render_dest;
+ Bool is_solid_src, is_solid_mask;
+ int tex_count, t;
+
+ intel->needs_render_state_emit = FALSE;
+
+ IntelEmitInvarientState(scrn);
+ intel->last_3d = LAST_3D_RENDER;
+
+ is_solid_src = intel->render_source_is_solid;
+ is_solid_mask = intel->render_mask_is_solid;
+
+ tex_count = 0;
+ tex_count += ! is_solid_src;
+ tex_count += mask && ! is_solid_mask;
+
+ assert(intel->in_batch_atomic);
+
+ if (tex_count != 0) {
+ OUT_BATCH(_3DSTATE_MAP_STATE | (3 * tex_count));
+ OUT_BATCH((1 << tex_count) - 1);
+ for (t = 0; t < tex_count; t++) {
+ OUT_RELOC_PIXMAP(intel->texture[t], I915_GEM_DOMAIN_SAMPLER, 0, 0);
+ OUT_BATCH(intel->mapstate[3*t + 1]);
+ OUT_BATCH(intel->mapstate[3*t + 2]);
+ }
+
+ OUT_BATCH(_3DSTATE_SAMPLER_STATE | (3 * tex_count));
+ OUT_BATCH((1 << tex_count) - 1);
+ for (t = 0; t < tex_count; t++) {
+ OUT_BATCH(intel->samplerstate[3*t + 0]);
+ OUT_BATCH(intel->samplerstate[3*t + 1]);
+ OUT_BATCH(intel->samplerstate[3*t + 2]);
+ }
+ }
+
+ if (is_solid_src) {
+ OUT_BATCH (_3DSTATE_DFLT_DIFFUSE_CMD);
+ OUT_BATCH (intel->render_source_solid);
+ }
+ if (mask && is_solid_mask) {
+ OUT_BATCH (_3DSTATE_DFLT_SPEC_CMD);
+ OUT_BATCH (intel->render_mask_solid);
+ }
+
+ /* BUF_INFO is an implicit flush, so avoid if the target has not changed.
+ * XXX However for reasons unfathomed, correct rendering in KDE requires
+ * at least a MI_FLUSH | INHIBIT_RENDER_CACHE_FLUSH here.
+ */
+ if (1 || dest != intel->render_current_dest) {
+ uint32_t tiling_bits;
+
+ intel_batch_do_flush(scrn);
+
+ if (intel_pixmap_tiled(dest)) {
+ tiling_bits = BUF_3D_TILED_SURFACE;
+ if (intel_get_pixmap_private(dest)->tiling
+ == I915_TILING_Y)
+ tiling_bits |= BUF_3D_TILE_WALK_Y;
+ } else
+ tiling_bits = 0;
+
+ OUT_BATCH(_3DSTATE_BUF_INFO_CMD);
+ OUT_BATCH(BUF_3D_ID_COLOR_BACK | tiling_bits |
+ BUF_3D_PITCH(intel_pixmap_pitch(dest)));
+ OUT_RELOC_PIXMAP(dest, I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER, 0);
+
+ OUT_BATCH(_3DSTATE_DST_BUF_VARS_CMD);
+ OUT_BATCH(intel->i915_render_state.dst_format);
+
+ /* draw rect is unconditional */
+ OUT_BATCH(_3DSTATE_DRAW_RECT_CMD);
+ OUT_BATCH(0x00000000);
+ OUT_BATCH(0x00000000); /* ymin, xmin */
+ OUT_BATCH(DRAW_YMAX(dest->drawable.height - 1) |
+ DRAW_XMAX(dest->drawable.width - 1));
+ /* yorig, xorig (relate to color buffer?) */
+ OUT_BATCH(0x00000000);
+
+ intel->render_current_dest = dest;
+ }
+
+ {
+ uint32_t ss2;
+
+ ss2 = ~0;
+ t = 0;
+ if (! is_solid_src) {
+ ss2 &= ~S2_TEXCOORD_FMT(t, TEXCOORDFMT_NOT_PRESENT);
+ ss2 |= S2_TEXCOORD_FMT(t,
+ intel_transform_is_affine(intel->transform[t]) ?
+ TEXCOORDFMT_2D : TEXCOORDFMT_4D);
+ t++;
+ }
+ if (mask && ! is_solid_mask) {
+ ss2 &= ~S2_TEXCOORD_FMT(t, TEXCOORDFMT_NOT_PRESENT);
+ ss2 |= S2_TEXCOORD_FMT(t,
+ intel_transform_is_affine(intel->transform[t]) ?
+ TEXCOORDFMT_2D : TEXCOORDFMT_4D);
+ t++;
+ }
+
+ if (intel->needs_render_ca_pass) {
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(2) | 0);
+ OUT_BATCH(ss2);
+ } else {
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(2) | I1_LOAD_S(6) | 1);
+ OUT_BATCH(ss2);
+ OUT_BATCH(i915_get_blend_cntl(op, mask_picture, dest_picture->format));
+ }
+ }
+
+ if (! intel->needs_render_ca_pass)
+ i915_composite_emit_shader(intel, op);
+}
+
+void
+i915_composite(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY,
+ int dstX, int dstY, int w, int h)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* 28 + 16 + 10 + 20 + 32 + 16 */
+ intel_batch_start_atomic(scrn, 150);
+
+ if (intel->needs_render_state_emit)
+ i915_emit_composite_setup(scrn);
+
+ if (intel->needs_render_vertex_emit ||
+ intel_vertex_space(intel) < 3*4*intel->floats_per_vertex) {
+ i915_vertex_flush(intel);
+
+ if (intel_vertex_space(intel) < 256) {
+ intel_next_vertex(intel);
+
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 |
+ I1_LOAD_S(0) | I1_LOAD_S(1) | 1);
+ OUT_RELOC(intel->vertex_bo, I915_GEM_DOMAIN_VERTEX, 0, 0);
+ OUT_BATCH((intel->floats_per_vertex << S1_VERTEX_WIDTH_SHIFT) |
+ (intel->floats_per_vertex << S1_VERTEX_PITCH_SHIFT));
+ intel->vertex_index = 0;
+ } else if (intel->floats_per_vertex != intel->last_floats_per_vertex){
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 |
+ I1_LOAD_S(1) | 0);
+ OUT_BATCH((intel->floats_per_vertex << S1_VERTEX_WIDTH_SHIFT) |
+ (intel->floats_per_vertex << S1_VERTEX_PITCH_SHIFT));
+
+ intel->vertex_index =
+ (intel->vertex_used + intel->floats_per_vertex - 1) / intel->floats_per_vertex;
+ intel->vertex_used = intel->vertex_index * intel->floats_per_vertex;
+ }
+
+ intel->last_floats_per_vertex = intel->floats_per_vertex;
+ intel->needs_render_vertex_emit = FALSE;
+ }
+
+ if (intel->prim_offset == 0) {
+ if (intel->needs_render_ca_pass) {
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(6) | 0);
+ OUT_BATCH(i915_get_blend_cntl(PictOpOutReverse,
+ intel->render_mask_picture,
+ intel->render_dest_picture->format));
+ i915_composite_emit_shader(intel, PictOpOutReverse);
+ }
+
+ intel->prim_offset = intel->batch_used;
+ OUT_BATCH(PRIM3D_RECTLIST | PRIM3D_INDIRECT_SEQUENTIAL);
+ OUT_BATCH(intel->vertex_index);
+ }
+ intel->vertex_count += 3;
+
+ intel->prim_emit(intel,
+ srcX, srcY,
+ maskX, maskY,
+ dstX, dstY,
+ w, h);
+
+ intel_batch_end_atomic(scrn);
+}
+
+void
+i915_vertex_flush(intel_screen_private *intel)
+{
+ if (intel->prim_offset == 0)
+ return;
+
+ intel->batch_ptr[intel->prim_offset] |= intel->vertex_count;
+ intel->prim_offset = 0;
+
+ if (intel->needs_render_ca_pass) {
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(6) | 0);
+ OUT_BATCH(i915_get_blend_cntl(PictOpAdd,
+ intel->render_mask_picture,
+ intel->render_dest_picture->format));
+ i915_composite_emit_shader(intel, PictOpAdd);
+ OUT_BATCH(PRIM3D_RECTLIST | PRIM3D_INDIRECT_SEQUENTIAL | intel->vertex_count);
+ OUT_BATCH(intel->vertex_index);
+ }
+
+ intel->vertex_index += intel->vertex_count;
+ intel->vertex_count = 0;
+}
+
+void
+i915_batch_commit_notify(intel_screen_private *intel)
+{
+ intel->needs_render_state_emit = TRUE;
+ intel->render_current_dest = NULL;
+ intel->last_floats_per_vertex = 0;
+}
diff --git a/src/i915_video.c b/src/i915_video.c
new file mode 100644
index 0000000..d46c6d1
--- /dev/null
+++ b/src/i915_video.c
@@ -0,0 +1,483 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Eric Anholt <eric@anholt.net>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86xv.h"
+#include "fourcc.h"
+
+#include "intel.h"
+#include "intel_video.h"
+#include "i915_reg.h"
+#include "i915_3d.h"
+
+void
+I915DisplayVideoTextured(ScrnInfoPtr scrn,
+ intel_adaptor_private *adaptor_priv, int id,
+ RegionPtr dstRegion,
+ short width, short height, int video_pitch,
+ int video_pitch2,
+ short src_w, short src_h, short drw_w, short drw_h,
+ PixmapPtr pixmap)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ uint32_t format, ms3, s5, tiling;
+ BoxPtr pbox = REGION_RECTS(dstRegion);
+ int nbox_total = REGION_NUM_RECTS(dstRegion);
+ int nbox_this_time;
+ int dxo, dyo, pix_xoff, pix_yoff;
+ PixmapPtr target;
+
+#if 0
+ ErrorF("I915DisplayVideo: %dx%d (pitch %d)\n", width, height,
+ video_pitch);
+#endif
+
+ dxo = dstRegion->extents.x1;
+ dyo = dstRegion->extents.y1;
+
+ if (pixmap->drawable.width > 2048 || pixmap->drawable.height > 2048 ||
+ !intel_check_pitch_3d(pixmap)) {
+ ScreenPtr screen = pixmap->drawable.pScreen;
+
+ target = screen->CreatePixmap(screen,
+ dstRegion->extents.x2 - dxo,
+ dstRegion->extents.y2 - dyo,
+ pixmap->drawable.depth,
+ CREATE_PIXMAP_USAGE_SCRATCH);
+
+ pix_xoff = -dxo;
+ pix_yoff = -dyo;
+ } else {
+ target = pixmap;
+
+ /* Set up the offset for translating from the given region
+ * (in screen coordinates) to the backing pixmap.
+ */
+#ifdef COMPOSITE
+ pix_xoff = -target->screen_x + target->drawable.x;
+ pix_yoff = -target->screen_y + target->drawable.y;
+#else
+ pix_xoff = 0;
+ pix_yoff = 0;
+#endif
+ }
+
+#define BYTES_FOR_BOXES(n) ((200 + (n) * 20) * 4)
+#define BOXES_IN_BYTES(s) ((((s)/4) - 200) / 20)
+#define BATCH_BYTES(p) ((p)->batch_bo->size - 16)
+
+ while (nbox_total) {
+ nbox_this_time = nbox_total;
+ if (BYTES_FOR_BOXES(nbox_this_time) > BATCH_BYTES(intel))
+ nbox_this_time = BOXES_IN_BYTES(BATCH_BYTES(intel));
+ nbox_total -= nbox_this_time;
+
+ intel_batch_start_atomic(scrn, 200 + 20 * nbox_this_time);
+
+ IntelEmitInvarientState(scrn);
+ intel->last_3d = LAST_3D_VIDEO;
+
+ /* draw rect -- just clipping */
+ OUT_BATCH(_3DSTATE_DRAW_RECT_CMD);
+ OUT_BATCH(DRAW_DITHER_OFS_X(pixmap->drawable.x & 3) |
+ DRAW_DITHER_OFS_Y(pixmap->drawable.y & 3));
+ OUT_BATCH(0x00000000); /* ymin, xmin */
+ /* ymax, xmax */
+ OUT_BATCH((target->drawable.width - 1) |
+ (target->drawable.height - 1) << 16);
+ OUT_BATCH(0x00000000); /* yorigin, xorigin */
+
+ OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | I1_LOAD_S(2) |
+ I1_LOAD_S(5) | I1_LOAD_S(6) | 2);
+ OUT_BATCH(S2_TEXCOORD_FMT(0, TEXCOORDFMT_2D) |
+ S2_TEXCOORD_FMT(1, TEXCOORDFMT_NOT_PRESENT) |
+ S2_TEXCOORD_FMT(2, TEXCOORDFMT_NOT_PRESENT) |
+ S2_TEXCOORD_FMT(3, TEXCOORDFMT_NOT_PRESENT) |
+ S2_TEXCOORD_FMT(4, TEXCOORDFMT_NOT_PRESENT) |
+ S2_TEXCOORD_FMT(5, TEXCOORDFMT_NOT_PRESENT) |
+ S2_TEXCOORD_FMT(6, TEXCOORDFMT_NOT_PRESENT) |
+ S2_TEXCOORD_FMT(7, TEXCOORDFMT_NOT_PRESENT));
+ s5 = 0x0;
+ if (intel->cpp == 2)
+ s5 |= S5_COLOR_DITHER_ENABLE;
+ OUT_BATCH(s5); /* S5 - enable bits */
+ OUT_BATCH((2 << S6_DEPTH_TEST_FUNC_SHIFT) |
+ (2 << S6_CBUF_SRC_BLEND_FACT_SHIFT) |
+ (1 << S6_CBUF_DST_BLEND_FACT_SHIFT) |
+ S6_COLOR_WRITE_ENABLE | (2 << S6_TRISTRIP_PV_SHIFT));
+
+ OUT_BATCH(_3DSTATE_CONST_BLEND_COLOR_CMD);
+ OUT_BATCH(0x00000000);
+
+ OUT_BATCH(_3DSTATE_DST_BUF_VARS_CMD);
+ if (intel->cpp == 2)
+ format = COLR_BUF_RGB565;
+ else
+ format =
+ COLR_BUF_ARGB8888 | DEPTH_FRMT_24_FIXED_8_OTHER;
+
+ OUT_BATCH(LOD_PRECLAMP_OGL |
+ DSTORG_HORT_BIAS(0x8) |
+ DSTORG_VERT_BIAS(0x8) | format);
+
+ /* front buffer, pitch, offset */
+ if (intel_pixmap_tiled(target)) {
+ tiling = BUF_3D_TILED_SURFACE;
+ if (intel_get_pixmap_private(target)->tiling == I915_TILING_Y)
+ tiling |= BUF_3D_TILE_WALK_Y;
+ } else
+ tiling = 0;
+ OUT_BATCH(_3DSTATE_BUF_INFO_CMD);
+ OUT_BATCH(BUF_3D_ID_COLOR_BACK | tiling |
+ BUF_3D_PITCH(intel_pixmap_pitch(target)));
+ OUT_RELOC_PIXMAP(target, I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER, 0);
+
+ if (!is_planar_fourcc(id)) {
+ FS_LOCALS();
+
+ OUT_BATCH(_3DSTATE_PIXEL_SHADER_CONSTANTS | 4);
+ OUT_BATCH(0x0000001); /* constant 0 */
+ /* constant 0: brightness/contrast */
+ OUT_BATCH_F(adaptor_priv->brightness / 128.0);
+ OUT_BATCH_F(adaptor_priv->contrast / 255.0);
+ OUT_BATCH_F(0.0);
+ OUT_BATCH_F(0.0);
+
+ OUT_BATCH(_3DSTATE_SAMPLER_STATE | 3);
+ OUT_BATCH(0x00000001);
+ OUT_BATCH(SS2_COLORSPACE_CONVERSION |
+ (FILTER_LINEAR << SS2_MAG_FILTER_SHIFT) |
+ (FILTER_LINEAR << SS2_MIN_FILTER_SHIFT));
+ OUT_BATCH((TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCX_ADDR_MODE_SHIFT) |
+ (TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCY_ADDR_MODE_SHIFT) |
+ (0 << SS3_TEXTUREMAP_INDEX_SHIFT) |
+ SS3_NORMALIZED_COORDS);
+ OUT_BATCH(0x00000000);
+
+ OUT_BATCH(_3DSTATE_MAP_STATE | 3);
+ OUT_BATCH(0x00000001); /* texture map #1 */
+ if (adaptor_priv->buf)
+ OUT_RELOC(adaptor_priv->buf,
+ I915_GEM_DOMAIN_SAMPLER, 0,
+ adaptor_priv->YBufOffset);
+ else
+ OUT_BATCH(adaptor_priv->YBufOffset);
+
+ ms3 = MAPSURF_422;
+ switch (id) {
+ case FOURCC_YUY2:
+ ms3 |= MT_422_YCRCB_NORMAL;
+ break;
+ case FOURCC_UYVY:
+ ms3 |= MT_422_YCRCB_SWAPY;
+ break;
+ }
+ ms3 |= (height - 1) << MS3_HEIGHT_SHIFT;
+ ms3 |= (width - 1) << MS3_WIDTH_SHIFT;
+ OUT_BATCH(ms3);
+ OUT_BATCH(((video_pitch / 4) - 1) << MS4_PITCH_SHIFT);
+
+ FS_BEGIN();
+ i915_fs_dcl(FS_S0);
+ i915_fs_dcl(FS_T0);
+ i915_fs_texld(FS_OC, FS_S0, FS_T0);
+ if (adaptor_priv->brightness != 0) {
+ i915_fs_add(FS_OC,
+ i915_fs_operand_reg(FS_OC),
+ i915_fs_operand(FS_C0, X, X, X,
+ ZERO));
+ }
+ FS_END();
+ } else {
+ FS_LOCALS();
+
+ /* For the planar formats, we set up three samplers --
+ * one for each plane, in a Y8 format. Because I
+ * couldn't get the special PLANAR_TO_PACKED
+ * shader setup to work, I did the manual pixel shader:
+ *
+ * y' = y - .0625
+ * u' = u - .5
+ * v' = v - .5;
+ *
+ * r = 1.1643 * y' + 0.0 * u' + 1.5958 * v'
+ * g = 1.1643 * y' - 0.39173 * u' - 0.81290 * v'
+ * b = 1.1643 * y' + 2.017 * u' + 0.0 * v'
+ *
+ * register assignment:
+ * r0 = (y',u',v',0)
+ * r1 = (y,y,y,y)
+ * r2 = (u,u,u,u)
+ * r3 = (v,v,v,v)
+ * OC = (r,g,b,1)
+ */
+ OUT_BATCH(_3DSTATE_PIXEL_SHADER_CONSTANTS | (22 - 2));
+ OUT_BATCH(0x000001f); /* constants 0-4 */
+ /* constant 0: normalization offsets */
+ OUT_BATCH_F(-0.0625);
+ OUT_BATCH_F(-0.5);
+ OUT_BATCH_F(-0.5);
+ OUT_BATCH_F(0.0);
+ /* constant 1: r coefficients */
+ OUT_BATCH_F(1.1643);
+ OUT_BATCH_F(0.0);
+ OUT_BATCH_F(1.5958);
+ OUT_BATCH_F(0.0);
+ /* constant 2: g coefficients */
+ OUT_BATCH_F(1.1643);
+ OUT_BATCH_F(-0.39173);
+ OUT_BATCH_F(-0.81290);
+ OUT_BATCH_F(0.0);
+ /* constant 3: b coefficients */
+ OUT_BATCH_F(1.1643);
+ OUT_BATCH_F(2.017);
+ OUT_BATCH_F(0.0);
+ OUT_BATCH_F(0.0);
+ /* constant 4: brightness/contrast */
+ OUT_BATCH_F(adaptor_priv->brightness / 128.0);
+ OUT_BATCH_F(adaptor_priv->contrast / 255.0);
+ OUT_BATCH_F(0.0);
+ OUT_BATCH_F(0.0);
+
+ OUT_BATCH(_3DSTATE_SAMPLER_STATE | 9);
+ OUT_BATCH(0x00000007);
+ /* sampler 0 */
+ OUT_BATCH((FILTER_LINEAR << SS2_MAG_FILTER_SHIFT) |
+ (FILTER_LINEAR << SS2_MIN_FILTER_SHIFT));
+ OUT_BATCH((TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCX_ADDR_MODE_SHIFT) |
+ (TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCY_ADDR_MODE_SHIFT) |
+ (0 << SS3_TEXTUREMAP_INDEX_SHIFT) |
+ SS3_NORMALIZED_COORDS);
+ OUT_BATCH(0x00000000);
+ /* sampler 1 */
+ OUT_BATCH((FILTER_LINEAR << SS2_MAG_FILTER_SHIFT) |
+ (FILTER_LINEAR << SS2_MIN_FILTER_SHIFT));
+ OUT_BATCH((TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCX_ADDR_MODE_SHIFT) |
+ (TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCY_ADDR_MODE_SHIFT) |
+ (1 << SS3_TEXTUREMAP_INDEX_SHIFT) |
+ SS3_NORMALIZED_COORDS);
+ OUT_BATCH(0x00000000);
+ /* sampler 2 */
+ OUT_BATCH((FILTER_LINEAR << SS2_MAG_FILTER_SHIFT) |
+ (FILTER_LINEAR << SS2_MIN_FILTER_SHIFT));
+ OUT_BATCH((TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCX_ADDR_MODE_SHIFT) |
+ (TEXCOORDMODE_CLAMP_EDGE <<
+ SS3_TCY_ADDR_MODE_SHIFT) |
+ (2 << SS3_TEXTUREMAP_INDEX_SHIFT) |
+ SS3_NORMALIZED_COORDS);
+ OUT_BATCH(0x00000000);
+
+ OUT_BATCH(_3DSTATE_MAP_STATE | 9);
+ OUT_BATCH(0x00000007);
+
+ if (adaptor_priv->buf)
+ OUT_RELOC(adaptor_priv->buf,
+ I915_GEM_DOMAIN_SAMPLER, 0,
+ adaptor_priv->YBufOffset);
+ else
+ OUT_BATCH(adaptor_priv->YBufOffset);
+
+ ms3 = MAPSURF_8BIT | MT_8BIT_I8;
+ ms3 |= (height - 1) << MS3_HEIGHT_SHIFT;
+ ms3 |= (width - 1) << MS3_WIDTH_SHIFT;
+ OUT_BATCH(ms3);
+ /* check to see if Y has special pitch than normal
+ * double u/v pitch, e.g i915 XvMC hw requires at
+ * least 1K alignment, so Y pitch might
+ * be same as U/V's.*/
+ if (video_pitch2)
+ OUT_BATCH(((video_pitch2 / 4) -
+ 1) << MS4_PITCH_SHIFT);
+ else
+ OUT_BATCH(((video_pitch * 2 / 4) -
+ 1) << MS4_PITCH_SHIFT);
+
+ if (adaptor_priv->buf)
+ OUT_RELOC(adaptor_priv->buf,
+ I915_GEM_DOMAIN_SAMPLER, 0,
+ adaptor_priv->UBufOffset);
+ else
+ OUT_BATCH(adaptor_priv->UBufOffset);
+
+ ms3 = MAPSURF_8BIT | MT_8BIT_I8;
+ ms3 |= (height / 2 - 1) << MS3_HEIGHT_SHIFT;
+ ms3 |= (width / 2 - 1) << MS3_WIDTH_SHIFT;
+ OUT_BATCH(ms3);
+ OUT_BATCH(((video_pitch / 4) - 1) << MS4_PITCH_SHIFT);
+
+ if (adaptor_priv->buf)
+ OUT_RELOC(adaptor_priv->buf,
+ I915_GEM_DOMAIN_SAMPLER, 0,
+ adaptor_priv->VBufOffset);
+ else
+ OUT_BATCH(adaptor_priv->VBufOffset);
+
+ ms3 = MAPSURF_8BIT | MT_8BIT_I8;
+ ms3 |= (height / 2 - 1) << MS3_HEIGHT_SHIFT;
+ ms3 |= (width / 2 - 1) << MS3_WIDTH_SHIFT;
+ OUT_BATCH(ms3);
+ OUT_BATCH(((video_pitch / 4) - 1) << MS4_PITCH_SHIFT);
+
+ FS_BEGIN();
+ /* Declare samplers */
+ i915_fs_dcl(FS_S0); /* Y */
+ i915_fs_dcl(FS_S1); /* U */
+ i915_fs_dcl(FS_S2); /* V */
+ i915_fs_dcl(FS_T0); /* normalized coords */
+
+ /* Load samplers to temporaries. */
+ i915_fs_texld(FS_R1, FS_S0, FS_T0);
+ i915_fs_texld(FS_R2, FS_S1, FS_T0);
+ i915_fs_texld(FS_R3, FS_S2, FS_T0);
+
+ /* Move the sampled YUV data in R[123] to the first
+ * 3 channels of R0.
+ */
+ i915_fs_mov_masked(FS_R0, MASK_X,
+ i915_fs_operand_reg(FS_R1));
+ i915_fs_mov_masked(FS_R0, MASK_Y,
+ i915_fs_operand_reg(FS_R2));
+ i915_fs_mov_masked(FS_R0, MASK_Z,
+ i915_fs_operand_reg(FS_R3));
+
+ /* Normalize the YUV data */
+ i915_fs_add(FS_R0, i915_fs_operand_reg(FS_R0),
+ i915_fs_operand_reg(FS_C0));
+ /* dot-product the YUV data in R0 by the vectors of
+ * coefficients for calculating R, G, and B, storing
+ * the results in the R, G, or B channels of the output
+ * color. The OC results are implicitly clamped
+ * at the end of the program.
+ */
+ i915_fs_dp3(FS_OC, MASK_X,
+ i915_fs_operand_reg(FS_R0),
+ i915_fs_operand_reg(FS_C1));
+ i915_fs_dp3(FS_OC, MASK_Y,
+ i915_fs_operand_reg(FS_R0),
+ i915_fs_operand_reg(FS_C2));
+ i915_fs_dp3(FS_OC, MASK_Z,
+ i915_fs_operand_reg(FS_R0),
+ i915_fs_operand_reg(FS_C3));
+ /* Set alpha of the output to 1.0, by wiring W to 1
+ * and not actually using the source.
+ */
+ i915_fs_mov_masked(FS_OC, MASK_W,
+ i915_fs_operand_one());
+
+ if (adaptor_priv->brightness != 0) {
+ i915_fs_add(FS_OC,
+ i915_fs_operand_reg(FS_OC),
+ i915_fs_operand(FS_C4, X, X, X,
+ ZERO));
+ }
+ FS_END();
+ }
+
+ OUT_BATCH(PRIM3D_RECTLIST | (12 * nbox_this_time - 1));
+ while (nbox_this_time--) {
+ int box_x1 = pbox->x1;
+ int box_y1 = pbox->y1;
+ int box_x2 = pbox->x2;
+ int box_y2 = pbox->y2;
+ float src_scale_x, src_scale_y;
+
+ pbox++;
+
+ src_scale_x = ((float)src_w / width) / drw_w;
+ src_scale_y = ((float)src_h / height) / drw_h;
+
+ /* vertex data - rect list consists of bottom right,
+ * bottom left, and top left vertices.
+ */
+
+ /* bottom right */
+ OUT_BATCH_F(box_x2 + pix_xoff);
+ OUT_BATCH_F(box_y2 + pix_yoff);
+ OUT_BATCH_F((box_x2 - dxo) * src_scale_x);
+ OUT_BATCH_F((box_y2 - dyo) * src_scale_y);
+
+ /* bottom left */
+ OUT_BATCH_F(box_x1 + pix_xoff);
+ OUT_BATCH_F(box_y2 + pix_yoff);
+ OUT_BATCH_F((box_x1 - dxo) * src_scale_x);
+ OUT_BATCH_F((box_y2 - dyo) * src_scale_y);
+
+ /* top left */
+ OUT_BATCH_F(box_x1 + pix_xoff);
+ OUT_BATCH_F(box_y1 + pix_yoff);
+ OUT_BATCH_F((box_x1 - dxo) * src_scale_x);
+ OUT_BATCH_F((box_y1 - dyo) * src_scale_y);
+ }
+
+ intel_batch_end_atomic(scrn);
+ }
+
+ if (target != pixmap) {
+ GCPtr gc;
+
+ gc = GetScratchGC(pixmap->drawable.depth,
+ pixmap->drawable.pScreen);
+ if (gc) {
+ gc->subWindowMode = ClipByChildren;
+
+ if (REGION_NUM_RECTS(dstRegion) > 1) {
+ RegionPtr tmp;
+
+ tmp = REGION_CREATE(pixmap->drawable.pScreen, NULL, 0);
+ if (tmp) {
+ REGION_COPY(pixmap->drawable.pScreen, tmp, dstRegion);
+ gc->funcs->ChangeClip(gc, CT_REGION, tmp, 0);
+ }
+ }
+
+ ValidateGC(&pixmap->drawable, gc);
+ gc->ops->CopyArea(&target->drawable, &pixmap->drawable, gc,
+ 0, 0,
+ target->drawable.width,
+ target->drawable.height,
+ -pix_xoff, -pix_yoff);
+ FreeScratchGC(gc);
+ }
+
+ target->drawable.pScreen->DestroyPixmap(target);
+ }
+
+ intel_debug_flush(scrn);
+}
diff --git a/src/i965_reg.h b/src/i965_reg.h
new file mode 100644
index 0000000..df41fba
--- /dev/null
+++ b/src/i965_reg.h
@@ -0,0 +1,340 @@
+/*
+ * New regs for broadwater -- we need to split this file up sensibly somehow.
+ */
+#define BRW_3D(Pipeline,Opcode,Subopcode) ((3 << 29) | \
+ ((Pipeline) << 27) | \
+ ((Opcode) << 24) | \
+ ((Subopcode) << 16))
+
+#define BRW_URB_FENCE BRW_3D(0, 0, 0)
+#define BRW_CS_URB_STATE BRW_3D(0, 0, 1)
+#define BRW_CONSTANT_BUFFER BRW_3D(0, 0, 2)
+#define BRW_STATE_PREFETCH BRW_3D(0, 0, 3)
+
+#define BRW_STATE_BASE_ADDRESS BRW_3D(0, 1, 1)
+#define BRW_STATE_SIP BRW_3D(0, 1, 2)
+#define BRW_PIPELINE_SELECT BRW_3D(0, 1, 4)
+
+#define NEW_PIPELINE_SELECT BRW_3D(1, 1, 4)
+
+#define BRW_MEDIA_STATE_POINTERS BRW_3D(2, 0, 0)
+#define BRW_MEDIA_OBJECT BRW_3D(2, 1, 0)
+
+#define BRW_3DSTATE_PIPELINED_POINTERS BRW_3D(3, 0, 0)
+#define BRW_3DSTATE_BINDING_TABLE_POINTERS BRW_3D(3, 0, 1)
+# define GEN6_3DSTATE_BINDING_TABLE_MODIFY_PS (1 << 12)/* for GEN6 */
+# define GEN6_3DSTATE_BINDING_TABLE_MODIFY_GS (1 << 9) /* for GEN6 */
+# define GEN6_3DSTATE_BINDING_TABLE_MODIFY_VS (1 << 8) /* for GEN6 */
+
+#define BRW_3DSTATE_VERTEX_BUFFERS BRW_3D(3, 0, 8)
+#define BRW_3DSTATE_VERTEX_ELEMENTS BRW_3D(3, 0, 9)
+#define BRW_3DSTATE_INDEX_BUFFER BRW_3D(3, 0, 0xa)
+#define BRW_3DSTATE_VF_STATISTICS BRW_3D(3, 0, 0xb)
+
+#define BRW_3DSTATE_DRAWING_RECTANGLE BRW_3D(3, 1, 0)
+#define BRW_3DSTATE_CONSTANT_COLOR BRW_3D(3, 1, 1)
+#define BRW_3DSTATE_SAMPLER_PALETTE_LOAD BRW_3D(3, 1, 2)
+#define BRW_3DSTATE_CHROMA_KEY BRW_3D(3, 1, 4)
+#define BRW_3DSTATE_DEPTH_BUFFER BRW_3D(3, 1, 5)
+# define BRW_3DSTATE_DEPTH_BUFFER_TYPE_SHIFT 29
+# define BRW_3DSTATE_DEPTH_BUFFER_FORMAT_SHIFT 18
+
+#define BRW_3DSTATE_POLY_STIPPLE_OFFSET BRW_3D(3, 1, 6)
+#define BRW_3DSTATE_POLY_STIPPLE_PATTERN BRW_3D(3, 1, 7)
+#define BRW_3DSTATE_LINE_STIPPLE BRW_3D(3, 1, 8)
+#define BRW_3DSTATE_GLOBAL_DEPTH_OFFSET_CLAMP BRW_3D(3, 1, 9)
+/* These two are BLC and CTG only, not BW or CL */
+#define BRW_3DSTATE_AA_LINE_PARAMS BRW_3D(3, 1, 0xa)
+#define BRW_3DSTATE_GS_SVB_INDEX BRW_3D(3, 1, 0xb)
+
+#define BRW_PIPE_CONTROL BRW_3D(3, 2, 0)
+
+#define BRW_3DPRIMITIVE BRW_3D(3, 3, 0)
+
+#define BRW_3DSTATE_CLEAR_PARAMS BRW_3D(3, 1, 0x10)
+/* DW1 */
+# define BRW_3DSTATE_DEPTH_CLEAR_VALID (1 << 15)
+
+/* for GEN6+ */
+#define GEN6_3DSTATE_SAMPLER_STATE_POINTERS BRW_3D(3, 0, 0x02)
+# define GEN6_3DSTATE_SAMPLER_STATE_MODIFY_PS (1 << 12)
+# define GEN6_3DSTATE_SAMPLER_STATE_MODIFY_GS (1 << 9)
+# define GEN6_3DSTATE_SAMPLER_STATE_MODIFY_VS (1 << 8)
+
+#define GEN6_3DSTATE_URB BRW_3D(3, 0, 0x05)
+/* DW1 */
+# define GEN6_3DSTATE_URB_VS_SIZE_SHIFT 16
+# define GEN6_3DSTATE_URB_VS_ENTRIES_SHIFT 0
+/* DW2 */
+# define GEN6_3DSTATE_URB_GS_ENTRIES_SHIFT 8
+# define GEN6_3DSTATE_URB_GS_SIZE_SHIFT 0
+
+#define GEN6_3DSTATE_VIEWPORT_STATE_POINTERS BRW_3D(3, 0, 0x0d)
+# define GEN6_3DSTATE_VIEWPORT_STATE_MODIFY_CC (1 << 12)
+# define GEN6_3DSTATE_VIEWPORT_STATE_MODIFY_SF (1 << 11)
+# define GEN6_3DSTATE_VIEWPORT_STATE_MODIFY_CLIP (1 << 10)
+
+#define GEN6_3DSTATE_CC_STATE_POINTERS BRW_3D(3, 0, 0x0e)
+
+#define GEN6_3DSTATE_VS BRW_3D(3, 0, 0x10)
+
+#define GEN6_3DSTATE_GS BRW_3D(3, 0, 0x11)
+/* DW4 */
+# define GEN6_3DSTATE_GS_DISPATCH_START_GRF_SHIFT 0
+
+#define GEN6_3DSTATE_CLIP BRW_3D(3, 0, 0x12)
+
+#define GEN6_3DSTATE_SF BRW_3D(3, 0, 0x13)
+/* DW1 */
+# define GEN6_3DSTATE_SF_NUM_OUTPUTS_SHIFT 22
+# define GEN6_3DSTATE_SF_URB_ENTRY_READ_LENGTH_SHIFT 11
+# define GEN6_3DSTATE_SF_URB_ENTRY_READ_OFFSET_SHIFT 4
+/* DW2 */
+/* DW3 */
+# define GEN6_3DSTATE_SF_CULL_BOTH (0 << 29)
+# define GEN6_3DSTATE_SF_CULL_NONE (1 << 29)
+# define GEN6_3DSTATE_SF_CULL_FRONT (2 << 29)
+# define GEN6_3DSTATE_SF_CULL_BACK (3 << 29)
+/* DW4 */
+# define GEN6_3DSTATE_SF_TRI_PROVOKE_SHIFT 29
+# define GEN6_3DSTATE_SF_LINE_PROVOKE_SHIFT 27
+# define GEN6_3DSTATE_SF_TRIFAN_PROVOKE_SHIFT 25
+
+
+#define GEN6_3DSTATE_WM BRW_3D(3, 0, 0x14)
+/* DW2 */
+# define GEN6_3DSTATE_WM_SAMPLER_COUNT_SHITF 27
+# define GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT 18
+/* DW4 */
+# define GEN6_3DSTATE_WM_DISPATCH_START_GRF_0_SHIFT 16
+/* DW5 */
+# define GEN6_3DSTATE_WM_MAX_THREADS_SHIFT 25
+# define GEN6_3DSTATE_WM_DISPATCH_ENABLE (1 << 19)
+# define GEN6_3DSTATE_WM_16_DISPATCH_ENABLE (1 << 1)
+# define GEN6_3DSTATE_WM_8_DISPATCH_ENABLE (1 << 0)
+/* DW6 */
+# define GEN6_3DSTATE_WM_NUM_SF_OUTPUTS_SHIFT 20
+# define GEN6_3DSTATE_WM_NONPERSPECTIVE_SAMPLE_BARYCENTRIC (1 << 15)
+# define GEN6_3DSTATE_WM_NONPERSPECTIVE_CENTROID_BARYCENTRIC (1 << 14)
+# define GEN6_3DSTATE_WM_NONPERSPECTIVE_PIXEL_BARYCENTRIC (1 << 13)
+# define GEN6_3DSTATE_WM_PERSPECTIVE_SAMPLE_BARYCENTRIC (1 << 12)
+# define GEN6_3DSTATE_WM_PERSPECTIVE_CENTROID_BARYCENTRIC (1 << 11)
+# define GEN6_3DSTATE_WM_PERSPECTIVE_PIXEL_BARYCENTRIC (1 << 10)
+
+
+#define GEN6_3DSTATE_CONSTANT_VS BRW_3D(3, 0, 0x15)
+#define GEN6_3DSTATE_CONSTANT_GS BRW_3D(3, 0, 0x16)
+#define GEN6_3DSTATE_CONSTANT_PS BRW_3D(3, 0, 0x17)
+
+#define GEN6_3DSTATE_SAMPLE_MASK BRW_3D(3, 0, 0x18)
+
+#define GEN6_3DSTATE_MULTISAMPLE BRW_3D(3, 1, 0x0d)
+/* DW1 */
+# define GEN6_3DSTATE_MULTISAMPLE_PIXEL_LOCATION_CENTER (0 << 4)
+# define GEN6_3DSTATE_MULTISAMPLE_PIXEL_LOCATION_UPPER_LEFT (1 << 4)
+# define GEN6_3DSTATE_MULTISAMPLE_NUMSAMPLES_1 (0 << 1)
+# define GEN6_3DSTATE_MULTISAMPLE_NUMSAMPLES_4 (2 << 1)
+# define GEN6_3DSTATE_MULTISAMPLE_NUMSAMPLES_8 (3 << 1)
+
+#define PIPELINE_SELECT_3D 0
+#define PIPELINE_SELECT_MEDIA 1
+
+#define UF0_CS_REALLOC (1 << 13)
+#define UF0_VFE_REALLOC (1 << 12)
+#define UF0_SF_REALLOC (1 << 11)
+#define UF0_CLIP_REALLOC (1 << 10)
+#define UF0_GS_REALLOC (1 << 9)
+#define UF0_VS_REALLOC (1 << 8)
+#define UF1_CLIP_FENCE_SHIFT 20
+#define UF1_GS_FENCE_SHIFT 10
+#define UF1_VS_FENCE_SHIFT 0
+#define UF2_CS_FENCE_SHIFT 20
+#define UF2_VFE_FENCE_SHIFT 10
+#define UF2_SF_FENCE_SHIFT 0
+
+/* for BRW_STATE_BASE_ADDRESS */
+#define BASE_ADDRESS_MODIFY (1 << 0)
+
+/* for BRW_3DSTATE_PIPELINED_POINTERS */
+#define BRW_GS_DISABLE 0
+#define BRW_GS_ENABLE 1
+#define BRW_CLIP_DISABLE 0
+#define BRW_CLIP_ENABLE 1
+
+/* for BRW_PIPE_CONTROL */
+#define BRW_PIPE_CONTROL_NOWRITE (0 << 14)
+#define BRW_PIPE_CONTROL_WRITE_QWORD (1 << 14)
+#define BRW_PIPE_CONTROL_WRITE_DEPTH (2 << 14)
+#define BRW_PIPE_CONTROL_WRITE_TIME (3 << 14)
+#define BRW_PIPE_CONTROL_DEPTH_STALL (1 << 13)
+#define BRW_PIPE_CONTROL_WC_FLUSH (1 << 12)
+#define BRW_PIPE_CONTROL_IS_FLUSH (1 << 11)
+#define BRW_PIPE_CONTROL_TC_FLUSH (1 << 10)
+#define BRW_PIPE_CONTROL_NOTIFY_ENABLE (1 << 8)
+#define BRW_PIPE_CONTROL_GLOBAL_GTT (1 << 2)
+#define BRW_PIPE_CONTROL_LOCAL_PGTT (0 << 2)
+#define BRW_PIPE_CONTROL_DEPTH_CACHE_FLUSH (1 << 0)
+
+/* VERTEX_BUFFER_STATE Structure */
+#define VB0_BUFFER_INDEX_SHIFT 27
+#define GEN6_VB0_BUFFER_INDEX_SHIFT 26
+#define VB0_VERTEXDATA (0 << 26)
+#define VB0_INSTANCEDATA (1 << 26)
+#define GEN6_VB0_VERTEXDATA (0 << 20)
+#define GEN6_VB0_INSTANCEDATA (1 << 20)
+#define VB0_BUFFER_PITCH_SHIFT 0
+
+/* VERTEX_ELEMENT_STATE Structure */
+#define VE0_VERTEX_BUFFER_INDEX_SHIFT 27
+#define GEN6_VE0_VERTEX_BUFFER_INDEX_SHIFT 26 /* for GEN6 */
+#define VE0_VALID (1 << 26)
+#define GEN6_VE0_VALID (1 << 25) /* for GEN6 */
+#define VE0_FORMAT_SHIFT 16
+#define VE0_OFFSET_SHIFT 0
+#define VE1_VFCOMPONENT_0_SHIFT 28
+#define VE1_VFCOMPONENT_1_SHIFT 24
+#define VE1_VFCOMPONENT_2_SHIFT 20
+#define VE1_VFCOMPONENT_3_SHIFT 16
+#define VE1_DESTINATION_ELEMENT_OFFSET_SHIFT 0
+
+/* 3DPRIMITIVE bits */
+#define BRW_3DPRIMITIVE_VERTEX_SEQUENTIAL (0 << 15)
+#define BRW_3DPRIMITIVE_VERTEX_RANDOM (1 << 15)
+/* Primitive types are in brw_defines.h */
+#define BRW_3DPRIMITIVE_TOPOLOGY_SHIFT 10
+
+#define BRW_SVG_CTL 0x7400
+
+#define BRW_SVG_CTL_GS_BA (0 << 8)
+#define BRW_SVG_CTL_SS_BA (1 << 8)
+#define BRW_SVG_CTL_IO_BA (2 << 8)
+#define BRW_SVG_CTL_GS_AUB (3 << 8)
+#define BRW_SVG_CTL_IO_AUB (4 << 8)
+#define BRW_SVG_CTL_SIP (5 << 8)
+
+#define BRW_SVG_RDATA 0x7404
+#define BRW_SVG_WORK_CTL 0x7408
+
+#define BRW_VF_CTL 0x7500
+
+#define BRW_VF_CTL_SNAPSHOT_COMPLETE (1 << 31)
+#define BRW_VF_CTL_SNAPSHOT_MUX_SELECT_THREADID (0 << 8)
+#define BRW_VF_CTL_SNAPSHOT_MUX_SELECT_VF_DEBUG (1 << 8)
+#define BRW_VF_CTL_SNAPSHOT_TYPE_VERTEX_SEQUENCE (0 << 4)
+#define BRW_VF_CTL_SNAPSHOT_TYPE_VERTEX_INDEX (1 << 4)
+#define BRW_VF_CTL_SKIP_INITIAL_PRIMITIVES (1 << 3)
+#define BRW_VF_CTL_MAX_PRIMITIVES_LIMIT_ENABLE (1 << 2)
+#define BRW_VF_CTL_VERTEX_RANGE_LIMIT_ENABLE (1 << 1)
+#define BRW_VF_CTL_SNAPSHOT_ENABLE (1 << 0)
+
+#define BRW_VF_STRG_VAL 0x7504
+#define BRW_VF_STR_VL_OVR 0x7508
+#define BRW_VF_VC_OVR 0x750c
+#define BRW_VF_STR_PSKIP 0x7510
+#define BRW_VF_MAX_PRIM 0x7514
+#define BRW_VF_RDATA 0x7518
+
+#define BRW_VS_CTL 0x7600
+#define BRW_VS_CTL_SNAPSHOT_COMPLETE (1 << 31)
+#define BRW_VS_CTL_SNAPSHOT_MUX_VERTEX_0 (0 << 8)
+#define BRW_VS_CTL_SNAPSHOT_MUX_VERTEX_1 (1 << 8)
+#define BRW_VS_CTL_SNAPSHOT_MUX_VALID_COUNT (2 << 8)
+#define BRW_VS_CTL_SNAPSHOT_MUX_VS_KERNEL_POINTER (3 << 8)
+#define BRW_VS_CTL_SNAPSHOT_ALL_THREADS (1 << 2)
+#define BRW_VS_CTL_THREAD_SNAPSHOT_ENABLE (1 << 1)
+#define BRW_VS_CTL_SNAPSHOT_ENABLE (1 << 0)
+
+#define BRW_VS_STRG_VAL 0x7604
+#define BRW_VS_RDATA 0x7608
+
+#define BRW_SF_CTL 0x7b00
+#define BRW_SF_CTL_SNAPSHOT_COMPLETE (1 << 31)
+#define BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_0_FF_ID (0 << 8)
+#define BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_0_REL_COUNT (1 << 8)
+#define BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_1_FF_ID (2 << 8)
+#define BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_1_REL_COUNT (3 << 8)
+#define BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_2_FF_ID (4 << 8)
+#define BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_2_REL_COUNT (5 << 8)
+#define BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_COUNT (6 << 8)
+#define BRW_SF_CTL_SNAPSHOT_MUX_SF_KERNEL_POINTER (7 << 8)
+#define BRW_SF_CTL_MIN_MAX_PRIMITIVE_RANGE_ENABLE (1 << 4)
+#define BRW_SF_CTL_DEBUG_CLIP_RECTANGLE_ENABLE (1 << 3)
+#define BRW_SF_CTL_SNAPSHOT_ALL_THREADS (1 << 2)
+#define BRW_SF_CTL_THREAD_SNAPSHOT_ENABLE (1 << 1)
+#define BRW_SF_CTL_SNAPSHOT_ENABLE (1 << 0)
+
+#define BRW_SF_STRG_VAL 0x7b04
+#define BRW_SF_RDATA 0x7b18
+
+#define BRW_WIZ_CTL 0x7c00
+#define BRW_WIZ_CTL_SNAPSHOT_COMPLETE (1 << 31)
+#define BRW_WIZ_CTL_SUBSPAN_INSTANCE_SHIFT 16
+#define BRW_WIZ_CTL_SNAPSHOT_MUX_WIZ_KERNEL_POINTER (0 << 8)
+#define BRW_WIZ_CTL_SNAPSHOT_MUX_SUBSPAN_INSTANCE (1 << 8)
+#define BRW_WIZ_CTL_SNAPSHOT_MUX_PRIMITIVE_SEQUENCE (2 << 8)
+#define BRW_WIZ_CTL_SINGLE_SUBSPAN_DISPATCH (1 << 6)
+#define BRW_WIZ_CTL_IGNORE_COLOR_SCOREBOARD_STALLS (1 << 5)
+#define BRW_WIZ_CTL_ENABLE_SUBSPAN_INSTANCE_COMPARE (1 << 4)
+#define BRW_WIZ_CTL_USE_UPSTREAM_SNAPSHOT_FLAG (1 << 3)
+#define BRW_WIZ_CTL_SNAPSHOT_ALL_THREADS (1 << 2)
+#define BRW_WIZ_CTL_THREAD_SNAPSHOT_ENABLE (1 << 1)
+#define BRW_WIZ_CTL_SNAPSHOT_ENABLE (1 << 0)
+
+#define BRW_WIZ_STRG_VAL 0x7c04
+#define BRW_WIZ_RDATA 0x7c18
+
+#define BRW_TS_CTL 0x7e00
+#define BRW_TS_CTL_SNAPSHOT_COMPLETE (1 << 31)
+#define BRW_TS_CTL_SNAPSHOT_MESSAGE_ERROR (0 << 8)
+#define BRW_TS_CTL_SNAPSHOT_INTERFACE_DESCRIPTOR (3 << 8)
+#define BRW_TS_CTL_SNAPSHOT_ALL_CHILD_THREADS (1 << 2)
+#define BRW_TS_CTL_SNAPSHOT_ALL_ROOT_THREADS (1 << 1)
+#define BRW_TS_CTL_SNAPSHOT_ENABLE (1 << 0)
+
+#define BRW_TS_STRG_VAL 0x7e04
+#define BRW_TS_RDATA 0x7e08
+
+#define BRW_TD_CTL 0x8000
+#define BRW_TD_CTL_MUX_SHIFT 8
+#define BRW_TD_CTL_EXTERNAL_HALT_R0_DEBUG_MATCH (1 << 7)
+#define BRW_TD_CTL_FORCE_EXTERNAL_HALT (1 << 6)
+#define BRW_TD_CTL_EXCEPTION_MASK_OVERRIDE (1 << 5)
+#define BRW_TD_CTL_FORCE_THREAD_BREAKPOINT_ENABLE (1 << 4)
+#define BRW_TD_CTL_BREAKPOINT_ENABLE (1 << 2)
+#define BRW_TD_CTL2 0x8004
+#define BRW_TD_CTL2_ILLEGAL_OPCODE_EXCEPTION_OVERRIDE (1 << 28)
+#define BRW_TD_CTL2_MASKSTACK_EXCEPTION_OVERRIDE (1 << 26)
+#define BRW_TD_CTL2_SOFTWARE_EXCEPTION_OVERRIDE (1 << 25)
+#define BRW_TD_CTL2_ACTIVE_THREAD_LIMIT_SHIFT 16
+#define BRW_TD_CTL2_ACTIVE_THREAD_LIMIT_ENABLE (1 << 8)
+#define BRW_TD_CTL2_THREAD_SPAWNER_EXECUTION_MASK_ENABLE (1 << 7)
+#define BRW_TD_CTL2_WIZ_EXECUTION_MASK_ENABLE (1 << 6)
+#define BRW_TD_CTL2_SF_EXECUTION_MASK_ENABLE (1 << 5)
+#define BRW_TD_CTL2_CLIPPER_EXECUTION_MASK_ENABLE (1 << 4)
+#define BRW_TD_CTL2_GS_EXECUTION_MASK_ENABLE (1 << 3)
+#define BRW_TD_CTL2_VS_EXECUTION_MASK_ENABLE (1 << 0)
+#define BRW_TD_VF_VS_EMSK 0x8008
+#define BRW_TD_GS_EMSK 0x800c
+#define BRW_TD_CLIP_EMSK 0x8010
+#define BRW_TD_SF_EMSK 0x8014
+#define BRW_TD_WIZ_EMSK 0x8018
+#define BRW_TD_0_6_EHTRG_VAL 0x801c
+#define BRW_TD_0_7_EHTRG_VAL 0x8020
+#define BRW_TD_0_6_EHTRG_MSK 0x8024
+#define BRW_TD_0_7_EHTRG_MSK 0x8028
+#define BRW_TD_RDATA 0x802c
+#define BRW_TD_TS_EMSK 0x8030
+
+#define BRW_EU_CTL 0x8800
+#define BRW_EU_CTL_SELECT_SHIFT 16
+#define BRW_EU_CTL_DATA_MUX_SHIFT 8
+#define BRW_EU_ATT_0 0x8810
+#define BRW_EU_ATT_1 0x8814
+#define BRW_EU_ATT_DATA_0 0x8820
+#define BRW_EU_ATT_DATA_1 0x8824
+#define BRW_EU_ATT_CLR_0 0x8830
+#define BRW_EU_ATT_CLR_1 0x8834
+#define BRW_EU_RDATA 0x8840
+
+/* End regs for broadwater */
+
diff --git a/src/i965_render.c b/src/i965_render.c
new file mode 100644
index 0000000..bfcd3f2
--- /dev/null
+++ b/src/i965_render.c
@@ -0,0 +1,2718 @@
+/*
+ * Copyright © 2006,2008 Intel Corporation
+ * Copyright © 2007 Red Hat, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Eric Anholt <eric@anholt.net>
+ * Carl Worth <cworth@redhat.com>
+ * Keith Packard <keithp@keithp.com>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <assert.h>
+#include "xf86.h"
+#include "intel.h"
+#include "i830_reg.h"
+#include "i965_reg.h"
+
+/* bring in brw structs */
+#include "brw_defines.h"
+#include "brw_structs.h"
+
+// refer vol2, 3d rasterization 3.8.1
+
+/* defined in brw_defines.h */
+static const struct blendinfo {
+ Bool dst_alpha;
+ Bool src_alpha;
+ uint32_t src_blend;
+ uint32_t dst_blend;
+} i965_blend_op[] = {
+ /* Clear */
+ {0, 0, BRW_BLENDFACTOR_ZERO, BRW_BLENDFACTOR_ZERO},
+ /* Src */
+ {0, 0, BRW_BLENDFACTOR_ONE, BRW_BLENDFACTOR_ZERO},
+ /* Dst */
+ {0, 0, BRW_BLENDFACTOR_ZERO, BRW_BLENDFACTOR_ONE},
+ /* Over */
+ {0, 1, BRW_BLENDFACTOR_ONE, BRW_BLENDFACTOR_INV_SRC_ALPHA},
+ /* OverReverse */
+ {1, 0, BRW_BLENDFACTOR_INV_DST_ALPHA, BRW_BLENDFACTOR_ONE},
+ /* In */
+ {1, 0, BRW_BLENDFACTOR_DST_ALPHA, BRW_BLENDFACTOR_ZERO},
+ /* InReverse */
+ {0, 1, BRW_BLENDFACTOR_ZERO, BRW_BLENDFACTOR_SRC_ALPHA},
+ /* Out */
+ {1, 0, BRW_BLENDFACTOR_INV_DST_ALPHA, BRW_BLENDFACTOR_ZERO},
+ /* OutReverse */
+ {0, 1, BRW_BLENDFACTOR_ZERO, BRW_BLENDFACTOR_INV_SRC_ALPHA},
+ /* Atop */
+ {1, 1, BRW_BLENDFACTOR_DST_ALPHA, BRW_BLENDFACTOR_INV_SRC_ALPHA},
+ /* AtopReverse */
+ {1, 1, BRW_BLENDFACTOR_INV_DST_ALPHA, BRW_BLENDFACTOR_SRC_ALPHA},
+ /* Xor */
+ {1, 1, BRW_BLENDFACTOR_INV_DST_ALPHA, BRW_BLENDFACTOR_INV_SRC_ALPHA},
+ /* Add */
+ {0, 0, BRW_BLENDFACTOR_ONE, BRW_BLENDFACTOR_ONE},
+};
+
+/**
+ * Highest-valued BLENDFACTOR used in i965_blend_op.
+ *
+ * This leaves out BRW_BLENDFACTOR_INV_DST_COLOR,
+ * BRW_BLENDFACTOR_INV_CONST_{COLOR,ALPHA},
+ * BRW_BLENDFACTOR_INV_SRC1_{COLOR,ALPHA}
+ */
+#define BRW_BLENDFACTOR_COUNT (BRW_BLENDFACTOR_INV_DST_ALPHA + 1)
+
+/* FIXME: surface format defined in brw_defines.h, shared Sampling engine
+ * 1.7.2
+ */
+static const struct formatinfo {
+ int fmt;
+ uint32_t card_fmt;
+} i965_tex_formats[] = {
+ {PICT_a8, BRW_SURFACEFORMAT_A8_UNORM},
+ {PICT_a8r8g8b8, BRW_SURFACEFORMAT_B8G8R8A8_UNORM},
+ {PICT_x8r8g8b8, BRW_SURFACEFORMAT_B8G8R8X8_UNORM},
+ {PICT_a8b8g8r8, BRW_SURFACEFORMAT_R8G8B8A8_UNORM},
+ {PICT_x8b8g8r8, BRW_SURFACEFORMAT_R8G8B8X8_UNORM},
+ {PICT_r8g8b8, BRW_SURFACEFORMAT_R8G8B8_UNORM},
+ {PICT_r5g6b5, BRW_SURFACEFORMAT_B5G6R5_UNORM},
+ {PICT_a1r5g5b5, BRW_SURFACEFORMAT_B5G5R5A1_UNORM},
+#if XORG_VERSION_CURRENT >= 10699900
+ {PICT_a2r10g10b10, BRW_SURFACEFORMAT_B10G10R10A2_UNORM},
+ {PICT_x2r10g10b10, BRW_SURFACEFORMAT_B10G10R10X2_UNORM},
+ {PICT_a2b10g10r10, BRW_SURFACEFORMAT_R10G10B10A2_UNORM},
+ {PICT_x2r10g10b10, BRW_SURFACEFORMAT_B10G10R10X2_UNORM},
+#endif
+ {PICT_a4r4g4b4, BRW_SURFACEFORMAT_B4G4R4A4_UNORM},
+};
+
+static void i965_get_blend_cntl(int op, PicturePtr mask, uint32_t dst_format,
+ uint32_t * sblend, uint32_t * dblend)
+{
+
+ *sblend = i965_blend_op[op].src_blend;
+ *dblend = i965_blend_op[op].dst_blend;
+
+ /* If there's no dst alpha channel, adjust the blend op so that we'll treat
+ * it as always 1.
+ */
+ if (PICT_FORMAT_A(dst_format) == 0 && i965_blend_op[op].dst_alpha) {
+ if (*sblend == BRW_BLENDFACTOR_DST_ALPHA)
+ *sblend = BRW_BLENDFACTOR_ONE;
+ else if (*sblend == BRW_BLENDFACTOR_INV_DST_ALPHA)
+ *sblend = BRW_BLENDFACTOR_ZERO;
+ }
+
+ /* If the source alpha is being used, then we should only be in a case where
+ * the source blend factor is 0, and the source blend value is the mask
+ * channels multiplied by the source picture's alpha.
+ */
+ if (mask && mask->componentAlpha && PICT_FORMAT_RGB(mask->format)
+ && i965_blend_op[op].src_alpha) {
+ if (*dblend == BRW_BLENDFACTOR_SRC_ALPHA) {
+ *dblend = BRW_BLENDFACTOR_SRC_COLOR;
+ } else if (*dblend == BRW_BLENDFACTOR_INV_SRC_ALPHA) {
+ *dblend = BRW_BLENDFACTOR_INV_SRC_COLOR;
+ }
+ }
+
+}
+
+static uint32_t i965_get_dest_format(PicturePtr dest_picture)
+{
+ switch (dest_picture->format) {
+ case PICT_a8r8g8b8:
+ case PICT_x8r8g8b8:
+ return BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
+ case PICT_a8b8g8r8:
+ case PICT_x8b8g8r8:
+ return BRW_SURFACEFORMAT_R8G8B8A8_UNORM;
+#if XORG_VERSION_CURRENT >= 10699900
+ case PICT_a2r10g10b10:
+ case PICT_x2r10g10b10:
+ return BRW_SURFACEFORMAT_B10G10R10A2_UNORM;
+#endif
+ case PICT_r5g6b5:
+ return BRW_SURFACEFORMAT_B5G6R5_UNORM;
+ case PICT_x1r5g5b5:
+ case PICT_a1r5g5b5:
+ return BRW_SURFACEFORMAT_B5G5R5A1_UNORM;
+ case PICT_a8:
+ return BRW_SURFACEFORMAT_A8_UNORM;
+ case PICT_a4r4g4b4:
+ case PICT_x4r4g4b4:
+ return BRW_SURFACEFORMAT_B4G4R4A4_UNORM;
+ default:
+ return -1;
+ }
+}
+
+Bool
+i965_check_composite(int op,
+ PicturePtr source_picture,
+ PicturePtr mask_picture,
+ PicturePtr dest_picture,
+ int width, int height)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+
+ /* Check for unsupported compositing operations. */
+ if (op >= sizeof(i965_blend_op) / sizeof(i965_blend_op[0])) {
+ intel_debug_fallback(scrn,
+ "Unsupported Composite op 0x%x\n", op);
+ return FALSE;
+ }
+
+ if (mask_picture && mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ /* Check if it's component alpha that relies on a source alpha and on
+ * the source value. We can only get one of those into the single
+ * source value that we get to blend with.
+ */
+ if (i965_blend_op[op].src_alpha &&
+ (i965_blend_op[op].src_blend != BRW_BLENDFACTOR_ZERO)) {
+ intel_debug_fallback(scrn,
+ "Component alpha not supported "
+ "with source alpha and source "
+ "value blending.\n");
+ return FALSE;
+ }
+ }
+
+ if (i965_get_dest_format(dest_picture) == -1) {
+ intel_debug_fallback(scrn, "Usupported Color buffer format 0x%x\n",
+ (int)dest_picture->format);
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+Bool
+i965_check_composite_texture(ScreenPtr screen, PicturePtr picture)
+{
+ if (picture->repeatType > RepeatReflect) {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn,
+ "extended repeat (%d) not supported\n",
+ picture->repeatType);
+ return FALSE;
+ }
+
+ if (picture->filter != PictFilterNearest &&
+ picture->filter != PictFilterBilinear) {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn, "Unsupported filter 0x%x\n",
+ picture->filter);
+ return FALSE;
+ }
+
+ if (picture->pDrawable) {
+ int w, h, i;
+
+ w = picture->pDrawable->width;
+ h = picture->pDrawable->height;
+ if ((w > 8192) || (h > 8192)) {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn,
+ "Picture w/h too large (%dx%d)\n",
+ w, h);
+ return FALSE;
+ }
+
+ for (i = 0;
+ i < sizeof(i965_tex_formats) / sizeof(i965_tex_formats[0]);
+ i++) {
+ if (i965_tex_formats[i].fmt == picture->format)
+ break;
+ }
+ if (i == sizeof(i965_tex_formats) / sizeof(i965_tex_formats[0]))
+ {
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_debug_fallback(scrn,
+ "Unsupported picture format "
+ "0x%x\n",
+ (int)picture->format);
+ return FALSE;
+ }
+
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+
+#define BRW_GRF_BLOCKS(nreg) ((nreg + 15) / 16 - 1)
+
+/* Set up a default static partitioning of the URB, which is supposed to
+ * allow anything we would want to do, at potentially lower performance.
+ */
+#define URB_CS_ENTRY_SIZE 0
+#define URB_CS_ENTRIES 0
+
+#define URB_VS_ENTRY_SIZE 1 // each 512-bit row
+#define URB_VS_ENTRIES 8 // we needs at least 8 entries
+
+#define URB_GS_ENTRY_SIZE 0
+#define URB_GS_ENTRIES 0
+
+#define URB_CLIP_ENTRY_SIZE 0
+#define URB_CLIP_ENTRIES 0
+
+#define URB_SF_ENTRY_SIZE 2
+#define URB_SF_ENTRIES 1
+
+/*
+ * this program computes dA/dx and dA/dy for the texture coordinates along
+ * with the base texture coordinate. It was extracted from the Mesa driver
+ */
+
+#define SF_KERNEL_NUM_GRF 16
+#define SF_MAX_THREADS 2
+
+static const uint32_t sf_kernel_static[][4] = {
+#include "exa_sf.g4b"
+};
+
+static const uint32_t sf_kernel_mask_static[][4] = {
+#include "exa_sf_mask.g4b"
+};
+
+/* ps kernels */
+#define PS_KERNEL_NUM_GRF 32
+#define PS_MAX_THREADS 48
+
+static const uint32_t ps_kernel_nomask_affine_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_affine.g4b"
+#include "exa_wm_src_sample_argb.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_nomask_projective_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_projective.g4b"
+#include "exa_wm_src_sample_argb.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_maskca_affine_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_affine.g4b"
+#include "exa_wm_src_sample_argb.g4b"
+#include "exa_wm_mask_affine.g4b"
+#include "exa_wm_mask_sample_argb.g4b"
+#include "exa_wm_ca.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_maskca_projective_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_projective.g4b"
+#include "exa_wm_src_sample_argb.g4b"
+#include "exa_wm_mask_projective.g4b"
+#include "exa_wm_mask_sample_argb.g4b"
+#include "exa_wm_ca.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_maskca_srcalpha_affine_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_affine.g4b"
+#include "exa_wm_src_sample_a.g4b"
+#include "exa_wm_mask_affine.g4b"
+#include "exa_wm_mask_sample_argb.g4b"
+#include "exa_wm_ca_srcalpha.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_maskca_srcalpha_projective_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_projective.g4b"
+#include "exa_wm_src_sample_a.g4b"
+#include "exa_wm_mask_projective.g4b"
+#include "exa_wm_mask_sample_argb.g4b"
+#include "exa_wm_ca_srcalpha.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_masknoca_affine_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_affine.g4b"
+#include "exa_wm_src_sample_argb.g4b"
+#include "exa_wm_mask_affine.g4b"
+#include "exa_wm_mask_sample_a.g4b"
+#include "exa_wm_noca.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_masknoca_projective_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_projective.g4b"
+#include "exa_wm_src_sample_argb.g4b"
+#include "exa_wm_mask_projective.g4b"
+#include "exa_wm_mask_sample_a.g4b"
+#include "exa_wm_noca.g4b"
+#include "exa_wm_write.g4b"
+};
+
+/* new programs for Ironlake */
+static const uint32_t sf_kernel_static_gen5[][4] = {
+#include "exa_sf.g4b.gen5"
+};
+
+static const uint32_t sf_kernel_mask_static_gen5[][4] = {
+#include "exa_sf_mask.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_nomask_affine_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_affine.g4b.gen5"
+#include "exa_wm_src_sample_argb.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_nomask_projective_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_projective.g4b.gen5"
+#include "exa_wm_src_sample_argb.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_maskca_affine_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_affine.g4b.gen5"
+#include "exa_wm_src_sample_argb.g4b.gen5"
+#include "exa_wm_mask_affine.g4b.gen5"
+#include "exa_wm_mask_sample_argb.g4b.gen5"
+#include "exa_wm_ca.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_maskca_projective_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_projective.g4b.gen5"
+#include "exa_wm_src_sample_argb.g4b.gen5"
+#include "exa_wm_mask_projective.g4b.gen5"
+#include "exa_wm_mask_sample_argb.g4b.gen5"
+#include "exa_wm_ca.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_maskca_srcalpha_affine_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_affine.g4b.gen5"
+#include "exa_wm_src_sample_a.g4b.gen5"
+#include "exa_wm_mask_affine.g4b.gen5"
+#include "exa_wm_mask_sample_argb.g4b.gen5"
+#include "exa_wm_ca_srcalpha.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_maskca_srcalpha_projective_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_projective.g4b.gen5"
+#include "exa_wm_src_sample_a.g4b.gen5"
+#include "exa_wm_mask_projective.g4b.gen5"
+#include "exa_wm_mask_sample_argb.g4b.gen5"
+#include "exa_wm_ca_srcalpha.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_masknoca_affine_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_affine.g4b.gen5"
+#include "exa_wm_src_sample_argb.g4b.gen5"
+#include "exa_wm_mask_affine.g4b.gen5"
+#include "exa_wm_mask_sample_a.g4b.gen5"
+#include "exa_wm_noca.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_masknoca_projective_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_projective.g4b.gen5"
+#include "exa_wm_src_sample_argb.g4b.gen5"
+#include "exa_wm_mask_projective.g4b.gen5"
+#include "exa_wm_mask_sample_a.g4b.gen5"
+#include "exa_wm_noca.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+/* programs for GEN6 */
+static const uint32_t ps_kernel_nomask_affine_static_gen6[][4] = {
+#include "exa_wm_src_affine.g6b"
+#include "exa_wm_src_sample_argb.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_nomask_projective_static_gen6[][4] = {
+#include "exa_wm_src_projective.g6b"
+#include "exa_wm_src_sample_argb.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_maskca_affine_static_gen6[][4] = {
+#include "exa_wm_src_affine.g6b"
+#include "exa_wm_src_sample_argb.g6b"
+#include "exa_wm_mask_affine.g6b"
+#include "exa_wm_mask_sample_argb.g6b"
+#include "exa_wm_ca.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_maskca_projective_static_gen6[][4] = {
+#include "exa_wm_src_projective.g6b"
+#include "exa_wm_src_sample_argb.g6b"
+#include "exa_wm_mask_projective.g6b"
+#include "exa_wm_mask_sample_argb.g6b"
+#include "exa_wm_ca.g4b.gen5"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_maskca_srcalpha_affine_static_gen6[][4] = {
+#include "exa_wm_src_affine.g6b"
+#include "exa_wm_src_sample_a.g6b"
+#include "exa_wm_mask_affine.g6b"
+#include "exa_wm_mask_sample_argb.g6b"
+#include "exa_wm_ca_srcalpha.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_maskca_srcalpha_projective_static_gen6[][4] = {
+#include "exa_wm_src_projective.g6b"
+#include "exa_wm_src_sample_a.g6b"
+#include "exa_wm_mask_projective.g6b"
+#include "exa_wm_mask_sample_argb.g6b"
+#include "exa_wm_ca_srcalpha.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_masknoca_affine_static_gen6[][4] = {
+#include "exa_wm_src_affine.g6b"
+#include "exa_wm_src_sample_argb.g6b"
+#include "exa_wm_mask_affine.g6b"
+#include "exa_wm_mask_sample_a.g6b"
+#include "exa_wm_noca.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_masknoca_projective_static_gen6[][4] = {
+#include "exa_wm_src_projective.g6b"
+#include "exa_wm_src_sample_argb.g6b"
+#include "exa_wm_mask_projective.g6b"
+#include "exa_wm_mask_sample_a.g6b"
+#include "exa_wm_noca.g6b"
+#include "exa_wm_write.g6b"
+};
+
+typedef enum {
+ SAMPLER_STATE_FILTER_NEAREST,
+ SAMPLER_STATE_FILTER_BILINEAR,
+ FILTER_COUNT
+} sampler_state_filter_t;
+
+typedef enum {
+ SAMPLER_STATE_EXTEND_NONE,
+ SAMPLER_STATE_EXTEND_REPEAT,
+ SAMPLER_STATE_EXTEND_PAD,
+ SAMPLER_STATE_EXTEND_REFLECT,
+ EXTEND_COUNT
+} sampler_state_extend_t;
+
+typedef enum {
+ WM_KERNEL_NOMASK_AFFINE,
+ WM_KERNEL_NOMASK_PROJECTIVE,
+ WM_KERNEL_MASKCA_AFFINE,
+ WM_KERNEL_MASKCA_PROJECTIVE,
+ WM_KERNEL_MASKCA_SRCALPHA_AFFINE,
+ WM_KERNEL_MASKCA_SRCALPHA_PROJECTIVE,
+ WM_KERNEL_MASKNOCA_AFFINE,
+ WM_KERNEL_MASKNOCA_PROJECTIVE,
+ KERNEL_COUNT
+} wm_kernel_t;
+
+#define KERNEL(kernel_enum, kernel, masked) \
+ [kernel_enum] = {&kernel, sizeof(kernel), masked}
+struct wm_kernel_info {
+ const void *data;
+ unsigned int size;
+ Bool has_mask;
+};
+
+static const struct wm_kernel_info wm_kernels_gen4[] = {
+ KERNEL(WM_KERNEL_NOMASK_AFFINE,
+ ps_kernel_nomask_affine_static, FALSE),
+ KERNEL(WM_KERNEL_NOMASK_PROJECTIVE,
+ ps_kernel_nomask_projective_static, FALSE),
+ KERNEL(WM_KERNEL_MASKCA_AFFINE,
+ ps_kernel_maskca_affine_static, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_PROJECTIVE,
+ ps_kernel_maskca_projective_static, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_SRCALPHA_AFFINE,
+ ps_kernel_maskca_srcalpha_affine_static, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_SRCALPHA_PROJECTIVE,
+ ps_kernel_maskca_srcalpha_projective_static, TRUE),
+ KERNEL(WM_KERNEL_MASKNOCA_AFFINE,
+ ps_kernel_masknoca_affine_static, TRUE),
+ KERNEL(WM_KERNEL_MASKNOCA_PROJECTIVE,
+ ps_kernel_masknoca_projective_static, TRUE),
+};
+
+static const struct wm_kernel_info wm_kernels_gen5[] = {
+ KERNEL(WM_KERNEL_NOMASK_AFFINE,
+ ps_kernel_nomask_affine_static_gen5, FALSE),
+ KERNEL(WM_KERNEL_NOMASK_PROJECTIVE,
+ ps_kernel_nomask_projective_static_gen5, FALSE),
+ KERNEL(WM_KERNEL_MASKCA_AFFINE,
+ ps_kernel_maskca_affine_static_gen5, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_PROJECTIVE,
+ ps_kernel_maskca_projective_static_gen5, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_SRCALPHA_AFFINE,
+ ps_kernel_maskca_srcalpha_affine_static_gen5, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_SRCALPHA_PROJECTIVE,
+ ps_kernel_maskca_srcalpha_projective_static_gen5, TRUE),
+ KERNEL(WM_KERNEL_MASKNOCA_AFFINE,
+ ps_kernel_masknoca_affine_static_gen5, TRUE),
+ KERNEL(WM_KERNEL_MASKNOCA_PROJECTIVE,
+ ps_kernel_masknoca_projective_static_gen5, TRUE),
+};
+
+static const struct wm_kernel_info wm_kernels_gen6[] = {
+ KERNEL(WM_KERNEL_NOMASK_AFFINE,
+ ps_kernel_nomask_affine_static_gen6, FALSE),
+ KERNEL(WM_KERNEL_NOMASK_PROJECTIVE,
+ ps_kernel_nomask_projective_static_gen6, FALSE),
+ KERNEL(WM_KERNEL_MASKCA_AFFINE,
+ ps_kernel_maskca_affine_static_gen6, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_PROJECTIVE,
+ ps_kernel_maskca_projective_static_gen6, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_SRCALPHA_AFFINE,
+ ps_kernel_maskca_srcalpha_affine_static_gen6, TRUE),
+ KERNEL(WM_KERNEL_MASKCA_SRCALPHA_PROJECTIVE,
+ ps_kernel_maskca_srcalpha_projective_static_gen6, TRUE),
+ KERNEL(WM_KERNEL_MASKNOCA_AFFINE,
+ ps_kernel_masknoca_affine_static_gen6, TRUE),
+ KERNEL(WM_KERNEL_MASKNOCA_PROJECTIVE,
+ ps_kernel_masknoca_projective_static_gen6, TRUE),
+};
+
+#undef KERNEL
+
+typedef struct _brw_cc_unit_state_padded {
+ struct brw_cc_unit_state state;
+ char pad[64 - sizeof(struct brw_cc_unit_state)];
+} brw_cc_unit_state_padded;
+
+typedef struct brw_surface_state_padded {
+ struct brw_surface_state state;
+ char pad[32 - sizeof(struct brw_surface_state)];
+} brw_surface_state_padded;
+
+struct gen4_cc_unit_state {
+ /* Index by [src_blend][dst_blend] */
+ brw_cc_unit_state_padded cc_state[BRW_BLENDFACTOR_COUNT][BRW_BLENDFACTOR_COUNT];
+};
+
+typedef struct gen4_composite_op {
+ int op;
+ sampler_state_filter_t src_filter;
+ sampler_state_filter_t mask_filter;
+ sampler_state_extend_t src_extend;
+ sampler_state_extend_t mask_extend;
+ Bool is_affine;
+ wm_kernel_t wm_kernel;
+ int vertex_id;
+} gen4_composite_op;
+
+/** Private data for gen4 render accel implementation. */
+struct gen4_render_state {
+ drm_intel_bo *vs_state_bo;
+ drm_intel_bo *sf_state_bo;
+ drm_intel_bo *sf_mask_state_bo;
+ drm_intel_bo *cc_state_bo;
+ drm_intel_bo *wm_state_bo[KERNEL_COUNT]
+ [FILTER_COUNT] [EXTEND_COUNT]
+ [FILTER_COUNT] [EXTEND_COUNT];
+ drm_intel_bo *wm_kernel_bo[KERNEL_COUNT];
+
+ drm_intel_bo *cc_vp_bo;
+ drm_intel_bo *gen6_blend_bo;
+ drm_intel_bo *gen6_depth_stencil_bo;
+ drm_intel_bo *ps_sampler_state_bo[FILTER_COUNT]
+ [EXTEND_COUNT]
+ [FILTER_COUNT]
+ [EXTEND_COUNT];
+ gen4_composite_op composite_op;
+};
+
+static void gen6_emit_composite_state(struct intel_screen_private *intel);
+static void gen6_render_state_init(ScrnInfoPtr scrn);
+
+/**
+ * Sets up the SF state pointing at an SF kernel.
+ *
+ * The SF kernel does coord interp: for each attribute,
+ * calculate dA/dx and dA/dy. Hand these interpolation coefficients
+ * back to SF which then hands pixels off to WM.
+ */
+static drm_intel_bo *gen4_create_sf_state(intel_screen_private *intel,
+ drm_intel_bo * kernel_bo)
+{
+ struct brw_sf_unit_state *sf_state;
+ drm_intel_bo *sf_state_bo;
+
+ sf_state_bo = drm_intel_bo_alloc(intel->bufmgr, "gen4 SF state",
+ sizeof(*sf_state), 4096);
+ drm_intel_bo_map(sf_state_bo, TRUE);
+ sf_state = sf_state_bo->virtual;
+
+ memset(sf_state, 0, sizeof(*sf_state));
+ sf_state->thread0.grf_reg_count = BRW_GRF_BLOCKS(SF_KERNEL_NUM_GRF);
+ sf_state->thread0.kernel_start_pointer =
+ intel_emit_reloc(sf_state_bo,
+ offsetof(struct brw_sf_unit_state, thread0),
+ kernel_bo, sf_state->thread0.grf_reg_count << 1,
+ I915_GEM_DOMAIN_INSTRUCTION, 0) >> 6;
+ sf_state->sf1.single_program_flow = 1;
+ sf_state->sf1.binding_table_entry_count = 0;
+ sf_state->sf1.thread_priority = 0;
+ sf_state->sf1.floating_point_mode = 0; /* Mesa does this */
+ sf_state->sf1.illegal_op_exception_enable = 1;
+ sf_state->sf1.mask_stack_exception_enable = 1;
+ sf_state->sf1.sw_exception_enable = 1;
+ sf_state->thread2.per_thread_scratch_space = 0;
+ /* scratch space is not used in our kernel */
+ sf_state->thread2.scratch_space_base_pointer = 0;
+ sf_state->thread3.const_urb_entry_read_length = 0; /* no const URBs */
+ sf_state->thread3.const_urb_entry_read_offset = 0; /* no const URBs */
+ sf_state->thread3.urb_entry_read_length = 1; /* 1 URB per vertex */
+ /* don't smash vertex header, read start from dw8 */
+ sf_state->thread3.urb_entry_read_offset = 1;
+ sf_state->thread3.dispatch_grf_start_reg = 3;
+ sf_state->thread4.max_threads = SF_MAX_THREADS - 1;
+ sf_state->thread4.urb_entry_allocation_size = URB_SF_ENTRY_SIZE - 1;
+ sf_state->thread4.nr_urb_entries = URB_SF_ENTRIES;
+ sf_state->sf5.viewport_transform = FALSE; /* skip viewport */
+ sf_state->sf6.cull_mode = BRW_CULLMODE_NONE;
+ sf_state->sf6.scissor = 0;
+ sf_state->sf7.trifan_pv = 2;
+ sf_state->sf6.dest_org_vbias = 0x8;
+ sf_state->sf6.dest_org_hbias = 0x8;
+
+ drm_intel_bo_unmap(sf_state_bo);
+
+ return sf_state_bo;
+}
+
+static drm_intel_bo *sampler_border_color_create(intel_screen_private *intel)
+{
+ struct brw_sampler_legacy_border_color sampler_border_color;
+
+ /* Set up the sampler border color (always transparent black) */
+ memset(&sampler_border_color, 0, sizeof(sampler_border_color));
+ sampler_border_color.color[0] = 0; /* R */
+ sampler_border_color.color[1] = 0; /* G */
+ sampler_border_color.color[2] = 0; /* B */
+ sampler_border_color.color[3] = 0; /* A */
+
+ return intel_bo_alloc_for_data(intel,
+ &sampler_border_color,
+ sizeof(sampler_border_color),
+ "gen4 render sampler border color");
+}
+
+static void
+sampler_state_init(drm_intel_bo * sampler_state_bo,
+ struct brw_sampler_state *sampler_state,
+ sampler_state_filter_t filter,
+ sampler_state_extend_t extend,
+ drm_intel_bo * border_color_bo)
+{
+ uint32_t sampler_state_offset;
+
+ sampler_state_offset = (char *)sampler_state -
+ (char *)sampler_state_bo->virtual;
+
+ /* PS kernel use this sampler */
+ memset(sampler_state, 0, sizeof(*sampler_state));
+
+ sampler_state->ss0.lod_preclamp = 1; /* GL mode */
+
+ /* We use the legacy mode to get the semantics specified by
+ * the Render extension. */
+ sampler_state->ss0.border_color_mode = BRW_BORDER_COLOR_MODE_LEGACY;
+
+ switch (filter) {
+ default:
+ case SAMPLER_STATE_FILTER_NEAREST:
+ sampler_state->ss0.min_filter = BRW_MAPFILTER_NEAREST;
+ sampler_state->ss0.mag_filter = BRW_MAPFILTER_NEAREST;
+ break;
+ case SAMPLER_STATE_FILTER_BILINEAR:
+ sampler_state->ss0.min_filter = BRW_MAPFILTER_LINEAR;
+ sampler_state->ss0.mag_filter = BRW_MAPFILTER_LINEAR;
+ break;
+ }
+
+ switch (extend) {
+ default:
+ case SAMPLER_STATE_EXTEND_NONE:
+ sampler_state->ss1.r_wrap_mode = BRW_TEXCOORDMODE_CLAMP_BORDER;
+ sampler_state->ss1.s_wrap_mode = BRW_TEXCOORDMODE_CLAMP_BORDER;
+ sampler_state->ss1.t_wrap_mode = BRW_TEXCOORDMODE_CLAMP_BORDER;
+ break;
+ case SAMPLER_STATE_EXTEND_REPEAT:
+ sampler_state->ss1.r_wrap_mode = BRW_TEXCOORDMODE_WRAP;
+ sampler_state->ss1.s_wrap_mode = BRW_TEXCOORDMODE_WRAP;
+ sampler_state->ss1.t_wrap_mode = BRW_TEXCOORDMODE_WRAP;
+ break;
+ case SAMPLER_STATE_EXTEND_PAD:
+ sampler_state->ss1.r_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
+ sampler_state->ss1.s_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
+ sampler_state->ss1.t_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
+ break;
+ case SAMPLER_STATE_EXTEND_REFLECT:
+ sampler_state->ss1.r_wrap_mode = BRW_TEXCOORDMODE_MIRROR;
+ sampler_state->ss1.s_wrap_mode = BRW_TEXCOORDMODE_MIRROR;
+ sampler_state->ss1.t_wrap_mode = BRW_TEXCOORDMODE_MIRROR;
+ break;
+ }
+
+ sampler_state->ss2.border_color_pointer =
+ intel_emit_reloc(sampler_state_bo, sampler_state_offset +
+ offsetof(struct brw_sampler_state, ss2),
+ border_color_bo, 0,
+ I915_GEM_DOMAIN_SAMPLER, 0) >> 5;
+
+ sampler_state->ss3.chroma_key_enable = 0; /* disable chromakey */
+}
+
+static drm_intel_bo *gen4_create_sampler_state(intel_screen_private *intel,
+ sampler_state_filter_t src_filter,
+ sampler_state_extend_t src_extend,
+ sampler_state_filter_t mask_filter,
+ sampler_state_extend_t mask_extend,
+ drm_intel_bo * border_color_bo)
+{
+ drm_intel_bo *sampler_state_bo;
+ struct brw_sampler_state *sampler_state;
+
+ sampler_state_bo =
+ drm_intel_bo_alloc(intel->bufmgr, "gen4 sampler state",
+ sizeof(struct brw_sampler_state) * 2, 4096);
+ drm_intel_bo_map(sampler_state_bo, TRUE);
+ sampler_state = sampler_state_bo->virtual;
+
+ sampler_state_init(sampler_state_bo,
+ &sampler_state[0],
+ src_filter, src_extend, border_color_bo);
+ sampler_state_init(sampler_state_bo,
+ &sampler_state[1],
+ mask_filter, mask_extend, border_color_bo);
+
+ drm_intel_bo_unmap(sampler_state_bo);
+
+ return sampler_state_bo;
+}
+
+static void
+cc_state_init(drm_intel_bo * cc_state_bo,
+ uint32_t cc_state_offset,
+ int src_blend, int dst_blend, drm_intel_bo * cc_vp_bo)
+{
+ struct brw_cc_unit_state *cc_state;
+
+ cc_state = (struct brw_cc_unit_state *)((char *)cc_state_bo->virtual +
+ cc_state_offset);
+
+ memset(cc_state, 0, sizeof(*cc_state));
+ cc_state->cc0.stencil_enable = 0; /* disable stencil */
+ cc_state->cc2.depth_test = 0; /* disable depth test */
+ cc_state->cc2.logicop_enable = 0; /* disable logic op */
+ cc_state->cc3.ia_blend_enable = 0; /* blend alpha same as colors */
+ cc_state->cc3.blend_enable = 1; /* enable color blend */
+ cc_state->cc3.alpha_test = 0; /* disable alpha test */
+
+ cc_state->cc4.cc_viewport_state_offset =
+ intel_emit_reloc(cc_state_bo, cc_state_offset +
+ offsetof(struct brw_cc_unit_state, cc4),
+ cc_vp_bo, 0, I915_GEM_DOMAIN_INSTRUCTION, 0) >> 5;
+
+ cc_state->cc5.dither_enable = 0; /* disable dither */
+ cc_state->cc5.logicop_func = 0xc; /* COPY */
+ cc_state->cc5.statistics_enable = 1;
+ cc_state->cc5.ia_blend_function = BRW_BLENDFUNCTION_ADD;
+
+ /* Fill in alpha blend factors same as color, for the future. */
+ cc_state->cc5.ia_src_blend_factor = src_blend;
+ cc_state->cc5.ia_dest_blend_factor = dst_blend;
+
+ cc_state->cc6.blend_function = BRW_BLENDFUNCTION_ADD;
+ cc_state->cc6.clamp_post_alpha_blend = 1;
+ cc_state->cc6.clamp_pre_alpha_blend = 1;
+ cc_state->cc6.clamp_range = 0; /* clamp range [0,1] */
+
+ cc_state->cc6.src_blend_factor = src_blend;
+ cc_state->cc6.dest_blend_factor = dst_blend;
+}
+
+static drm_intel_bo *gen4_create_wm_state(intel_screen_private *intel,
+ Bool has_mask,
+ drm_intel_bo * kernel_bo,
+ drm_intel_bo * sampler_bo)
+{
+ struct brw_wm_unit_state *state;
+ drm_intel_bo *wm_state_bo;
+
+ wm_state_bo = drm_intel_bo_alloc(intel->bufmgr, "gen4 WM state",
+ sizeof(*state), 4096);
+ drm_intel_bo_map(wm_state_bo, TRUE);
+ state = wm_state_bo->virtual;
+
+ memset(state, 0, sizeof(*state));
+ state->thread0.grf_reg_count = BRW_GRF_BLOCKS(PS_KERNEL_NUM_GRF);
+ state->thread0.kernel_start_pointer =
+ intel_emit_reloc(wm_state_bo,
+ offsetof(struct brw_wm_unit_state, thread0),
+ kernel_bo, state->thread0.grf_reg_count << 1,
+ I915_GEM_DOMAIN_INSTRUCTION, 0) >> 6;
+
+ state->thread1.single_program_flow = 0;
+
+ /* scratch space is not used in our kernel */
+ state->thread2.scratch_space_base_pointer = 0;
+ state->thread2.per_thread_scratch_space = 0;
+
+ state->thread3.const_urb_entry_read_length = 0;
+ state->thread3.const_urb_entry_read_offset = 0;
+
+ state->thread3.urb_entry_read_offset = 0;
+ /* wm kernel use urb from 3, see wm_program in compiler module */
+ state->thread3.dispatch_grf_start_reg = 3; /* must match kernel */
+
+ if (IS_GEN5(intel))
+ state->wm4.sampler_count = 0; /* hardware requirement */
+ else
+ state->wm4.sampler_count = 1; /* 1-4 samplers used */
+
+ state->wm4.sampler_state_pointer =
+ intel_emit_reloc(wm_state_bo,
+ offsetof(struct brw_wm_unit_state, wm4),
+ sampler_bo,
+ state->wm4.sampler_count << 2,
+ I915_GEM_DOMAIN_INSTRUCTION, 0) >> 5;
+ state->wm5.max_threads = PS_MAX_THREADS - 1;
+ state->wm5.transposed_urb_read = 0;
+ state->wm5.thread_dispatch_enable = 1;
+ /* just use 16-pixel dispatch (4 subspans), don't need to change kernel
+ * start point
+ */
+ state->wm5.enable_16_pix = 1;
+ state->wm5.enable_8_pix = 0;
+ state->wm5.early_depth_test = 1;
+
+ /* Each pair of attributes (src/mask coords) is two URB entries */
+ if (has_mask) {
+ state->thread1.binding_table_entry_count = 3; /* 2 tex and fb */
+ state->thread3.urb_entry_read_length = 4;
+ } else {
+ state->thread1.binding_table_entry_count = 2; /* 1 tex and fb */
+ state->thread3.urb_entry_read_length = 2;
+ }
+
+ /* binding table entry count is only used for prefetching, and it has to
+ * be set 0 for Ironlake
+ */
+ if (IS_GEN5(intel))
+ state->thread1.binding_table_entry_count = 0;
+
+ drm_intel_bo_unmap(wm_state_bo);
+
+ return wm_state_bo;
+}
+
+static drm_intel_bo *gen4_create_cc_viewport(intel_screen_private *intel)
+{
+ drm_intel_bo *bo;
+ struct brw_cc_viewport vp;
+
+ vp.min_depth = -1.e35;
+ vp.max_depth = 1.e35;
+
+ bo = drm_intel_bo_alloc(intel->bufmgr, "gen4 render unit state",
+ sizeof(vp), 4096);
+ drm_intel_bo_subdata(bo, 0, sizeof(vp), &vp);
+
+ return bo;
+}
+
+static drm_intel_bo *gen4_create_vs_unit_state(intel_screen_private *intel)
+{
+ struct brw_vs_unit_state vs_state;
+ memset(&vs_state, 0, sizeof(vs_state));
+
+ /* Set up the vertex shader to be disabled (passthrough) */
+ if (IS_GEN5(intel))
+ vs_state.thread4.nr_urb_entries = URB_VS_ENTRIES >> 2; /* hardware requirement */
+ else
+ vs_state.thread4.nr_urb_entries = URB_VS_ENTRIES;
+ vs_state.thread4.urb_entry_allocation_size = URB_VS_ENTRY_SIZE - 1;
+ vs_state.vs6.vs_enable = 0;
+ vs_state.vs6.vert_cache_disable = 1;
+
+ return intel_bo_alloc_for_data(intel, &vs_state, sizeof(vs_state),
+ "gen4 render VS state");
+}
+
+/**
+ * Set up all combinations of cc state: each blendfactor for source and
+ * dest.
+ */
+static drm_intel_bo *gen4_create_cc_unit_state(intel_screen_private *intel)
+{
+ drm_intel_bo *cc_state_bo, *cc_vp_bo;
+ int i, j;
+
+ cc_vp_bo = gen4_create_cc_viewport(intel);
+
+ cc_state_bo = drm_intel_bo_alloc(intel->bufmgr, "gen4 CC state",
+ sizeof(struct gen4_cc_unit_state),
+ 4096);
+ drm_intel_bo_map(cc_state_bo, TRUE);
+ for (i = 0; i < BRW_BLENDFACTOR_COUNT; i++) {
+ for (j = 0; j < BRW_BLENDFACTOR_COUNT; j++) {
+ cc_state_init(cc_state_bo,
+ offsetof(struct gen4_cc_unit_state,
+ cc_state[i][j].state),
+ i, j, cc_vp_bo);
+ }
+ }
+ drm_intel_bo_unmap(cc_state_bo);
+
+ drm_intel_bo_unreference(cc_vp_bo);
+
+ return cc_state_bo;
+}
+
+static uint32_t i965_get_card_format(PicturePtr picture)
+{
+ int i;
+
+ for (i = 0; i < sizeof(i965_tex_formats) / sizeof(i965_tex_formats[0]);
+ i++) {
+ if (i965_tex_formats[i].fmt == picture->format)
+ break;
+ }
+ assert(i != sizeof(i965_tex_formats) / sizeof(i965_tex_formats[0]));
+
+ return i965_tex_formats[i].card_fmt;
+}
+
+static sampler_state_filter_t sampler_state_filter_from_picture(int filter)
+{
+ switch (filter) {
+ case PictFilterNearest:
+ return SAMPLER_STATE_FILTER_NEAREST;
+ case PictFilterBilinear:
+ return SAMPLER_STATE_FILTER_BILINEAR;
+ default:
+ return -1;
+ }
+}
+
+static sampler_state_extend_t sampler_state_extend_from_picture(int repeat_type)
+{
+ switch (repeat_type) {
+ case RepeatNone:
+ return SAMPLER_STATE_EXTEND_NONE;
+ case RepeatNormal:
+ return SAMPLER_STATE_EXTEND_REPEAT;
+ case RepeatPad:
+ return SAMPLER_STATE_EXTEND_PAD;
+ case RepeatReflect:
+ return SAMPLER_STATE_EXTEND_REFLECT;
+ default:
+ return -1;
+ }
+}
+
+/**
+ * Sets up the common fields for a surface state buffer for the given
+ * picture in the given surface state buffer.
+ */
+static int
+i965_set_picture_surface_state(intel_screen_private *intel,
+ PicturePtr picture, PixmapPtr pixmap,
+ Bool is_dst)
+{
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+ struct brw_surface_state *ss;
+ uint32_t write_domain, read_domains;
+ int offset;
+
+ if (is_dst) {
+ write_domain = I915_GEM_DOMAIN_RENDER;
+ read_domains = I915_GEM_DOMAIN_RENDER;
+ } else {
+ write_domain = 0;
+ read_domains = I915_GEM_DOMAIN_SAMPLER;
+ }
+ intel_batch_mark_pixmap_domains(intel, priv,
+ read_domains, write_domain);
+ if (is_dst) {
+ if (priv->dst_bound)
+ return priv->dst_bound;
+ } else {
+ if (priv->src_bound)
+ return priv->src_bound;
+ }
+
+ ss = (struct brw_surface_state *)
+ (intel->surface_data + intel->surface_used);
+
+ memset(ss, 0, sizeof(*ss));
+ ss->ss0.surface_type = BRW_SURFACE_2D;
+ if (is_dst)
+ ss->ss0.surface_format = i965_get_dest_format(picture);
+ else
+ ss->ss0.surface_format = i965_get_card_format(picture);
+
+ ss->ss0.data_return_format = BRW_SURFACERETURNFORMAT_FLOAT32;
+ ss->ss0.color_blend = 1;
+ ss->ss1.base_addr = priv->bo->offset;
+
+ ss->ss2.height = pixmap->drawable.height - 1;
+ ss->ss2.width = pixmap->drawable.width - 1;
+ ss->ss3.pitch = intel_pixmap_pitch(pixmap) - 1;
+ ss->ss3.tile_walk = 0; /* Tiled X */
+ ss->ss3.tiled_surface = intel_pixmap_tiled(pixmap) ? 1 : 0;
+
+ dri_bo_emit_reloc(intel->surface_bo,
+ read_domains, write_domain,
+ 0,
+ intel->surface_used +
+ offsetof(struct brw_surface_state, ss1),
+ priv->bo);
+
+ offset = intel->surface_used;
+ intel->surface_used += sizeof(struct brw_surface_state_padded);
+
+ if (is_dst)
+ priv->dst_bound = offset;
+ else
+ priv->src_bound = offset;
+
+ return offset;
+}
+
+static void gen4_composite_vertex_elements(struct intel_screen_private *intel)
+{
+ struct gen4_render_state *render_state = intel->gen4_render_state;
+ gen4_composite_op *composite_op = &render_state->composite_op;
+ Bool has_mask = intel->render_mask != NULL;
+ Bool is_affine = composite_op->is_affine;
+ /*
+ * number of extra parameters per vertex
+ */
+ int nelem = has_mask ? 2 : 1;
+ /*
+ * size of extra parameters:
+ * 3 for homogenous (xyzw)
+ * 2 for cartesian (xy)
+ */
+ int selem = is_affine ? 2 : 3;
+ uint32_t w_component;
+ uint32_t src_format;
+ int id;
+
+ id = has_mask << 1 | is_affine;
+
+ if (composite_op->vertex_id == id)
+ return;
+
+ composite_op->vertex_id = id;
+
+ if (is_affine) {
+ src_format = BRW_SURFACEFORMAT_R32G32_FLOAT;
+ w_component = BRW_VFCOMPONENT_STORE_1_FLT;
+ } else {
+ src_format = BRW_SURFACEFORMAT_R32G32B32_FLOAT;
+ w_component = BRW_VFCOMPONENT_STORE_SRC;
+ }
+
+ if (IS_GEN5(intel)) {
+ /*
+ * The reason to add this extra vertex element in the header is that
+ * Ironlake has different vertex header definition and origin method to
+ * set destination element offset doesn't exist anymore, which means
+ * hardware requires a predefined vertex element layout.
+ *
+ * haihao proposed this approach to fill the first vertex element, so
+ * origin layout for Gen4 doesn't need to change, and origin shader
+ * programs behavior is also kept.
+ *
+ * I think this is not bad. - zhenyu
+ */
+
+ OUT_BATCH(BRW_3DSTATE_VERTEX_ELEMENTS |
+ ((2 * (2 + nelem)) - 1));
+ OUT_BATCH((id << VE0_VERTEX_BUFFER_INDEX_SHIFT) | VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (0 << VE0_OFFSET_SHIFT));
+
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_3_SHIFT));
+ } else {
+ /* Set up our vertex elements, sourced from the single vertex buffer.
+ * that will be set up later.
+ */
+ OUT_BATCH(BRW_3DSTATE_VERTEX_ELEMENTS |
+ ((2 * (1 + nelem)) - 1));
+ }
+
+ /* x,y */
+ OUT_BATCH((id << VE0_VERTEX_BUFFER_INDEX_SHIFT) | VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (0 << VE0_OFFSET_SHIFT));
+
+ if (IS_GEN5(intel))
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+ else
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT) |
+ (4 << VE1_DESTINATION_ELEMENT_OFFSET_SHIFT));
+ /* u0, v0, w0 */
+ OUT_BATCH((id << VE0_VERTEX_BUFFER_INDEX_SHIFT) | VE0_VALID |
+ (src_format << VE0_FORMAT_SHIFT) |
+ ((2 * 4) << VE0_OFFSET_SHIFT)); /* offset vb in bytes */
+
+ if (IS_GEN5(intel))
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (w_component << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+ else
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (w_component << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT) |
+ ((4 + 4) << VE1_DESTINATION_ELEMENT_OFFSET_SHIFT)); /* VUE offset in dwords */
+ /* u1, v1, w1 */
+ if (has_mask) {
+ OUT_BATCH((id << VE0_VERTEX_BUFFER_INDEX_SHIFT) | VE0_VALID |
+ (src_format << VE0_FORMAT_SHIFT) |
+ (((2 + selem) * 4) << VE0_OFFSET_SHIFT)); /* vb offset in bytes */
+
+ if (IS_GEN5(intel))
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (w_component << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+ else
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (w_component << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT) |
+ ((4 + 4 + 4) << VE1_DESTINATION_ELEMENT_OFFSET_SHIFT)); /* VUE offset in dwords */
+ }
+}
+
+static void i965_emit_composite_state(struct intel_screen_private *intel)
+{
+ struct gen4_render_state *render_state = intel->gen4_render_state;
+ gen4_composite_op *composite_op = &render_state->composite_op;
+ int op = composite_op->op;
+ PicturePtr mask_picture = intel->render_mask_picture;
+ PicturePtr dest_picture = intel->render_dest_picture;
+ PixmapPtr mask = intel->render_mask;
+ PixmapPtr dest = intel->render_dest;
+ sampler_state_filter_t src_filter = composite_op->src_filter;
+ sampler_state_filter_t mask_filter = composite_op->mask_filter;
+ sampler_state_extend_t src_extend = composite_op->src_extend;
+ sampler_state_extend_t mask_extend = composite_op->mask_extend;
+ uint32_t src_blend, dst_blend;
+
+ intel->needs_render_state_emit = FALSE;
+
+ /* Begin the long sequence of commands needed to set up the 3D
+ * rendering pipe
+ */
+
+ if (intel->needs_3d_invariant) {
+ if (IS_GEN5(intel)) {
+ /* Ironlake errata workaround: Before disabling the clipper,
+ * you have to MI_FLUSH to get the pipeline idle.
+ */
+ OUT_BATCH(MI_FLUSH | MI_INHIBIT_RENDER_CACHE_FLUSH);
+ }
+
+ /* Match Mesa driver setup */
+ if (INTEL_INFO(intel)->gen >= 45)
+ OUT_BATCH(NEW_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+ else
+ OUT_BATCH(BRW_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+
+ /* Set system instruction pointer */
+ OUT_BATCH(BRW_STATE_SIP | 0);
+ OUT_BATCH(0);
+
+ intel->needs_3d_invariant = FALSE;
+ }
+
+ if (intel->surface_reloc == 0) {
+ /* Zero out the two base address registers so all offsets are
+ * absolute.
+ */
+ if (IS_GEN5(intel)) {
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | 6);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* Generate state base address */
+ intel->surface_reloc = intel->batch_used;
+ intel_batch_emit_dword(intel,
+ intel->surface_bo->offset | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* media base addr, don't care */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* Instruction base address */
+ /* general state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ /* media object state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ /* Instruction max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ } else {
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | 4);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* Generate state base address */
+ intel->surface_reloc = intel->batch_used;
+ intel_batch_emit_dword(intel,
+ intel->surface_bo->offset | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* media base addr, don't care */
+ /* general state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ /* media object state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ }
+ }
+
+ i965_get_blend_cntl(op, mask_picture, dest_picture->format,
+ &src_blend, &dst_blend);
+
+ /* Binding table pointers */
+ OUT_BATCH(BRW_3DSTATE_BINDING_TABLE_POINTERS | 4);
+ OUT_BATCH(0); /* vs */
+ OUT_BATCH(0); /* gs */
+ OUT_BATCH(0); /* clip */
+ OUT_BATCH(0); /* sf */
+ /* Only the PS uses the binding table */
+ OUT_BATCH(intel->surface_table);
+
+ /* The drawing rectangle clipping is always on. Set it to values that
+ * shouldn't do any clipping.
+ */
+ OUT_BATCH(BRW_3DSTATE_DRAWING_RECTANGLE | 2);
+ OUT_BATCH(0x00000000); /* ymin, xmin */
+ OUT_BATCH(DRAW_YMAX(dest->drawable.height - 1) |
+ DRAW_XMAX(dest->drawable.width - 1)); /* ymax, xmax */
+ OUT_BATCH(0x00000000); /* yorigin, xorigin */
+
+ /* skip the depth buffer */
+ /* skip the polygon stipple */
+ /* skip the polygon stipple offset */
+ /* skip the line stipple */
+
+ /* Set the pointers to the 3d pipeline state */
+ OUT_BATCH(BRW_3DSTATE_PIPELINED_POINTERS | 5);
+ OUT_RELOC(render_state->vs_state_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ OUT_BATCH(BRW_GS_DISABLE); /* disable GS, resulting in passthrough */
+ OUT_BATCH(BRW_CLIP_DISABLE); /* disable CLIP, resulting in passthrough */
+ if (mask) {
+ OUT_RELOC(render_state->sf_mask_state_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ } else {
+ OUT_RELOC(render_state->sf_state_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ }
+
+ OUT_RELOC(render_state->wm_state_bo[composite_op->wm_kernel]
+ [src_filter][src_extend]
+ [mask_filter][mask_extend],
+ I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+
+ OUT_RELOC(render_state->cc_state_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0,
+ offsetof(struct gen4_cc_unit_state,
+ cc_state[src_blend][dst_blend]));
+
+ {
+ int urb_vs_start, urb_vs_size;
+ int urb_gs_start, urb_gs_size;
+ int urb_clip_start, urb_clip_size;
+ int urb_sf_start, urb_sf_size;
+ int urb_cs_start, urb_cs_size;
+
+ urb_vs_start = 0;
+ urb_vs_size = URB_VS_ENTRIES * URB_VS_ENTRY_SIZE;
+ urb_gs_start = urb_vs_start + urb_vs_size;
+ urb_gs_size = URB_GS_ENTRIES * URB_GS_ENTRY_SIZE;
+ urb_clip_start = urb_gs_start + urb_gs_size;
+ urb_clip_size = URB_CLIP_ENTRIES * URB_CLIP_ENTRY_SIZE;
+ urb_sf_start = urb_clip_start + urb_clip_size;
+ urb_sf_size = URB_SF_ENTRIES * URB_SF_ENTRY_SIZE;
+ urb_cs_start = urb_sf_start + urb_sf_size;
+ urb_cs_size = URB_CS_ENTRIES * URB_CS_ENTRY_SIZE;
+
+ /* Erratum (Vol 1a, p32):
+ * URB_FENCE must not cross a cache-line (64 bytes).
+ */
+ if ((intel->batch_used & 15) > (16 - 3)) {
+ int cnt = 16 - (intel->batch_used & 15);
+ while (cnt--)
+ OUT_BATCH(MI_NOOP);
+ }
+
+ OUT_BATCH(BRW_URB_FENCE |
+ UF0_CS_REALLOC |
+ UF0_SF_REALLOC |
+ UF0_CLIP_REALLOC |
+ UF0_GS_REALLOC |
+ UF0_VS_REALLOC |
+ 1);
+ OUT_BATCH(((urb_clip_start + urb_clip_size) << UF1_CLIP_FENCE_SHIFT) |
+ ((urb_gs_start + urb_gs_size) << UF1_GS_FENCE_SHIFT) |
+ ((urb_vs_start + urb_vs_size) << UF1_VS_FENCE_SHIFT));
+ OUT_BATCH(((urb_cs_start + urb_cs_size) << UF2_CS_FENCE_SHIFT) |
+ ((urb_sf_start + urb_sf_size) << UF2_SF_FENCE_SHIFT));
+
+ /* Constant buffer state */
+ OUT_BATCH(BRW_CS_URB_STATE | 0);
+ OUT_BATCH(((URB_CS_ENTRY_SIZE - 1) << 4) |
+ (URB_CS_ENTRIES << 0));
+ }
+
+ gen4_composite_vertex_elements(intel);
+}
+
+/**
+ * Returns whether the current set of composite state plus vertex buffer is
+ * expected to fit in the aperture.
+ */
+static Bool i965_composite_check_aperture(intel_screen_private *intel)
+{
+ struct gen4_render_state *render_state = intel->gen4_render_state;
+ gen4_composite_op *composite_op = &render_state->composite_op;
+ drm_intel_bo *bo_table[] = {
+ intel->batch_bo,
+ intel->vertex_bo,
+ intel->surface_bo,
+ render_state->vs_state_bo,
+ render_state->sf_state_bo,
+ render_state->sf_mask_state_bo,
+ render_state->wm_state_bo[composite_op->wm_kernel]
+ [composite_op->src_filter]
+ [composite_op->src_extend]
+ [composite_op->mask_filter]
+ [composite_op->mask_extend],
+ render_state->cc_state_bo,
+ };
+ drm_intel_bo *gen6_bo_table[] = {
+ intel->batch_bo,
+ intel->vertex_bo,
+ intel->surface_bo,
+ render_state->wm_kernel_bo[composite_op->wm_kernel],
+ render_state->ps_sampler_state_bo[composite_op->src_filter]
+ [composite_op->src_extend]
+ [composite_op->mask_filter]
+ [composite_op->mask_extend],
+ render_state->cc_vp_bo,
+ render_state->cc_state_bo,
+ render_state->gen6_blend_bo,
+ render_state->gen6_depth_stencil_bo,
+ };
+
+ if (INTEL_INFO(intel)->gen >= 60)
+ return drm_intel_bufmgr_check_aperture_space(gen6_bo_table,
+ ARRAY_SIZE(gen6_bo_table)) == 0;
+ else
+ return drm_intel_bufmgr_check_aperture_space(bo_table,
+ ARRAY_SIZE(bo_table)) == 0;
+}
+
+static void i965_surface_flush(struct intel_screen_private *intel)
+{
+ struct intel_pixmap *priv;
+
+ drm_intel_bo_subdata(intel->surface_bo,
+ 0, intel->surface_used,
+ intel->surface_data);
+ intel->surface_used = 0;
+
+ assert (intel->surface_reloc != 0);
+ drm_intel_bo_emit_reloc(intel->batch_bo,
+ intel->surface_reloc * 4,
+ intel->surface_bo, BASE_ADDRESS_MODIFY,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+ intel->surface_reloc = 0;
+
+ drm_intel_bo_unreference(intel->surface_bo);
+ intel->surface_bo =
+ drm_intel_bo_alloc(intel->bufmgr, "surface data",
+ sizeof(intel->surface_data), 4096);
+
+ list_foreach_entry(priv, struct intel_pixmap, &intel->batch_pixmaps, batch)
+ priv->dst_bound = priv->src_bound = 0;
+}
+
+static void
+i965_emit_composite_primitive_identity_source(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX((srcX + w) * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX(srcY * intel->scale_units[0][1]);
+}
+
+static void
+i965_emit_composite_primitive_affine_source(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ float src_x[3], src_y[3];
+
+ if (!intel_get_transformed_coordinates(srcX, srcY,
+ intel->transform[0],
+ &src_x[0],
+ &src_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX, srcY + h,
+ intel->transform[0],
+ &src_x[1],
+ &src_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX + w, srcY + h,
+ intel->transform[0],
+ &src_x[2],
+ &src_y[2]))
+ return;
+
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(src_x[2] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[2] * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(src_x[1] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[1] * intel->scale_units[0][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(src_x[0] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[0] * intel->scale_units[0][1]);
+}
+
+static void
+i965_emit_composite_primitive_identity_source_mask(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX((srcX + w) * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+ OUT_VERTEX((maskX + w) * intel->scale_units[1][0]);
+ OUT_VERTEX((maskY + h) * intel->scale_units[1][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX((srcY + h) * intel->scale_units[0][1]);
+ OUT_VERTEX(maskX * intel->scale_units[1][0]);
+ OUT_VERTEX((maskY + h) * intel->scale_units[1][1]);
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(srcX * intel->scale_units[0][0]);
+ OUT_VERTEX(srcY * intel->scale_units[0][1]);
+ OUT_VERTEX(maskX * intel->scale_units[1][0]);
+ OUT_VERTEX(maskY * intel->scale_units[1][1]);
+}
+
+static void
+i965_emit_composite_primitive(intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h)
+{
+ float src_x[3], src_y[3], src_w[3], mask_x[3], mask_y[3], mask_w[3];
+ Bool is_affine = intel->gen4_render_state->composite_op.is_affine;
+
+ if (! intel->render_source_is_solid) {
+ if (is_affine) {
+ if (!intel_get_transformed_coordinates(srcX, srcY,
+ intel->transform[0],
+ &src_x[0],
+ &src_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX, srcY + h,
+ intel->transform[0],
+ &src_x[1],
+ &src_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(srcX + w, srcY + h,
+ intel->transform[0],
+ &src_x[2],
+ &src_y[2]))
+ return;
+ } else {
+ if (!intel_get_transformed_coordinates_3d(srcX, srcY,
+ intel->transform[0],
+ &src_x[0],
+ &src_y[0],
+ &src_w[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(srcX, srcY + h,
+ intel->transform[0],
+ &src_x[1],
+ &src_y[1],
+ &src_w[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(srcX + w, srcY + h,
+ intel->transform[0],
+ &src_x[2],
+ &src_y[2],
+ &src_w[2]))
+ return;
+ }
+ }
+
+ if (intel->render_mask) {
+ if (is_affine) {
+ if (!intel_get_transformed_coordinates(maskX, maskY,
+ intel->transform[1],
+ &mask_x[0],
+ &mask_y[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates(maskX, maskY + h,
+ intel->transform[1],
+ &mask_x[1],
+ &mask_y[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates(maskX + w, maskY + h,
+ intel->transform[1],
+ &mask_x[2],
+ &mask_y[2]))
+ return;
+ } else {
+ if (!intel_get_transformed_coordinates_3d(maskX, maskY,
+ intel->transform[1],
+ &mask_x[0],
+ &mask_y[0],
+ &mask_w[0]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(maskX, maskY + h,
+ intel->transform[1],
+ &mask_x[1],
+ &mask_y[1],
+ &mask_w[1]))
+ return;
+
+ if (!intel_get_transformed_coordinates_3d(maskX + w, maskY + h,
+ intel->transform[1],
+ &mask_x[2],
+ &mask_y[2],
+ &mask_w[2]))
+ return;
+ }
+ }
+
+ OUT_VERTEX(dstX + w);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(src_x[2] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[2] * intel->scale_units[0][1]);
+ if (!is_affine)
+ OUT_VERTEX(src_w[2]);
+ if (intel->render_mask) {
+ OUT_VERTEX(mask_x[2] * intel->scale_units[1][0]);
+ OUT_VERTEX(mask_y[2] * intel->scale_units[1][1]);
+ if (!is_affine)
+ OUT_VERTEX(mask_w[2]);
+ }
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY + h);
+ OUT_VERTEX(src_x[1] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[1] * intel->scale_units[0][1]);
+ if (!is_affine)
+ OUT_VERTEX(src_w[1]);
+ if (intel->render_mask) {
+ OUT_VERTEX(mask_x[1] * intel->scale_units[1][0]);
+ OUT_VERTEX(mask_y[1] * intel->scale_units[1][1]);
+ if (!is_affine)
+ OUT_VERTEX(mask_w[1]);
+ }
+
+ OUT_VERTEX(dstX);
+ OUT_VERTEX(dstY);
+ OUT_VERTEX(src_x[0] * intel->scale_units[0][0]);
+ OUT_VERTEX(src_y[0] * intel->scale_units[0][1]);
+ if (!is_affine)
+ OUT_VERTEX(src_w[0]);
+ if (intel->render_mask) {
+ OUT_VERTEX(mask_x[0] * intel->scale_units[1][0]);
+ OUT_VERTEX(mask_y[0] * intel->scale_units[1][1]);
+ if (!is_affine)
+ OUT_VERTEX(mask_w[0]);
+ }
+}
+
+Bool
+i965_prepare_composite(int op, PicturePtr source_picture,
+ PicturePtr mask_picture, PicturePtr dest_picture,
+ PixmapPtr source, PixmapPtr mask, PixmapPtr dest)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest_picture->pDrawable->pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct gen4_render_state *render_state = intel->gen4_render_state;
+ gen4_composite_op *composite_op = &render_state->composite_op;
+
+ composite_op->src_filter =
+ sampler_state_filter_from_picture(source_picture->filter);
+ if (composite_op->src_filter < 0) {
+ intel_debug_fallback(scrn, "Bad src filter 0x%x\n",
+ source_picture->filter);
+ return FALSE;
+ }
+ composite_op->src_extend =
+ sampler_state_extend_from_picture(source_picture->repeatType);
+ if (composite_op->src_extend < 0) {
+ intel_debug_fallback(scrn, "Bad src repeat 0x%x\n",
+ source_picture->repeatType);
+ return FALSE;
+ }
+
+ if (mask_picture) {
+ if (mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ /* Check if it's component alpha that relies on a source alpha and on
+ * the source value. We can only get one of those into the single
+ * source value that we get to blend with.
+ */
+ if (i965_blend_op[op].src_alpha &&
+ (i965_blend_op[op].src_blend != BRW_BLENDFACTOR_ZERO)) {
+ intel_debug_fallback(scrn,
+ "Component alpha not supported "
+ "with source alpha and source "
+ "value blending.\n");
+ return FALSE;
+ }
+ }
+
+ composite_op->mask_filter =
+ sampler_state_filter_from_picture(mask_picture->filter);
+ if (composite_op->mask_filter < 0) {
+ intel_debug_fallback(scrn, "Bad mask filter 0x%x\n",
+ mask_picture->filter);
+ return FALSE;
+ }
+ composite_op->mask_extend =
+ sampler_state_extend_from_picture(mask_picture->repeatType);
+ if (composite_op->mask_extend < 0) {
+ intel_debug_fallback(scrn, "Bad mask repeat 0x%x\n",
+ mask_picture->repeatType);
+ return FALSE;
+ }
+ } else {
+ composite_op->mask_filter = SAMPLER_STATE_FILTER_NEAREST;
+ composite_op->mask_extend = SAMPLER_STATE_EXTEND_NONE;
+ }
+
+ /* Flush any pending writes prior to relocating the textures. */
+ if (intel_pixmap_is_dirty(source) ||
+ (mask && intel_pixmap_is_dirty(mask)))
+ intel_batch_emit_flush(scrn);
+
+ composite_op->op = op;
+ intel->render_source_picture = source_picture;
+ intel->render_mask_picture = mask_picture;
+ intel->render_dest_picture = dest_picture;
+ intel->render_source = source;
+ intel->render_mask = mask;
+ intel->render_dest = dest;
+
+ intel->scale_units[0][0] = 1. / source->drawable.width;
+ intel->scale_units[0][1] = 1. / source->drawable.height;
+
+ intel->transform[0] = source_picture->transform;
+ composite_op->is_affine = intel_transform_is_affine(intel->transform[0]);
+
+ if (!mask) {
+ intel->transform[1] = NULL;
+ intel->scale_units[1][0] = -1;
+ intel->scale_units[1][1] = -1;
+ } else {
+ intel->transform[1] = mask_picture->transform;
+ intel->scale_units[1][0] = 1. / mask->drawable.width;
+ intel->scale_units[1][1] = 1. / mask->drawable.height;
+ composite_op->is_affine &=
+ intel_transform_is_affine(intel->transform[1]);
+ }
+
+ if (mask) {
+ if (mask_picture->componentAlpha &&
+ PICT_FORMAT_RGB(mask_picture->format)) {
+ if (i965_blend_op[op].src_alpha) {
+ if (composite_op->is_affine)
+ composite_op->wm_kernel =
+ WM_KERNEL_MASKCA_SRCALPHA_AFFINE;
+ else
+ composite_op->wm_kernel =
+ WM_KERNEL_MASKCA_SRCALPHA_PROJECTIVE;
+ } else {
+ if (composite_op->is_affine)
+ composite_op->wm_kernel =
+ WM_KERNEL_MASKCA_AFFINE;
+ else
+ composite_op->wm_kernel =
+ WM_KERNEL_MASKCA_PROJECTIVE;
+ }
+ } else {
+ if (composite_op->is_affine)
+ composite_op->wm_kernel =
+ WM_KERNEL_MASKNOCA_AFFINE;
+ else
+ composite_op->wm_kernel =
+ WM_KERNEL_MASKNOCA_PROJECTIVE;
+ }
+ } else {
+ if (composite_op->is_affine)
+ composite_op->wm_kernel = WM_KERNEL_NOMASK_AFFINE;
+ else
+ composite_op->wm_kernel = WM_KERNEL_NOMASK_PROJECTIVE;
+ }
+
+ intel->prim_emit = i965_emit_composite_primitive;
+ if (!mask) {
+ if (intel->transform[0] == NULL)
+ intel->prim_emit = i965_emit_composite_primitive_identity_source;
+ else if (composite_op->is_affine)
+ intel->prim_emit = i965_emit_composite_primitive_affine_source;
+ } else {
+ if (intel->transform[0] == NULL && intel->transform[1] == NULL)
+ intel->prim_emit = i965_emit_composite_primitive_identity_source_mask;
+ }
+
+ intel->floats_per_vertex =
+ 2 + (mask ? 2 : 1) * (composite_op->is_affine ? 2: 3);
+
+ if (!i965_composite_check_aperture(intel)) {
+ intel_batch_submit(scrn);
+ if (!i965_composite_check_aperture(intel)) {
+ intel_debug_fallback(scrn,
+ "Couldn't fit render operation "
+ "in aperture\n");
+ return FALSE;
+ }
+ }
+
+ if (sizeof(intel->surface_data) - intel->surface_used <
+ 4 * sizeof(struct brw_surface_state_padded))
+ i965_surface_flush(intel);
+
+ intel->needs_render_state_emit = TRUE;
+
+ return TRUE;
+}
+
+static void i965_select_vertex_buffer(struct intel_screen_private *intel)
+{
+ int id = intel->gen4_render_state->composite_op.vertex_id;
+
+ if (intel->vertex_id & (1 << id))
+ return;
+
+ /* Set up the pointer to our (single) vertex buffer */
+ OUT_BATCH(BRW_3DSTATE_VERTEX_BUFFERS | 3);
+
+ /* XXX could use multiple vbo to reduce relocations if
+ * frequently switching between vertex sizes, like rgb10text.
+ */
+ if (INTEL_INFO(intel)->gen >= 60) {
+ OUT_BATCH((id << GEN6_VB0_BUFFER_INDEX_SHIFT) |
+ GEN6_VB0_VERTEXDATA |
+ (4*intel->floats_per_vertex << VB0_BUFFER_PITCH_SHIFT));
+ } else {
+ OUT_BATCH((id << VB0_BUFFER_INDEX_SHIFT) |
+ VB0_VERTEXDATA |
+ (4*intel->floats_per_vertex << VB0_BUFFER_PITCH_SHIFT));
+ }
+ OUT_RELOC(intel->vertex_bo, I915_GEM_DOMAIN_VERTEX, 0, 0);
+ if (INTEL_INFO(intel)->gen >= 50)
+ OUT_RELOC(intel->vertex_bo,
+ I915_GEM_DOMAIN_VERTEX, 0,
+ sizeof(intel->vertex_ptr) - 1);
+ else
+ OUT_BATCH(0);
+ OUT_BATCH(0); // ignore for VERTEXDATA, but still there
+
+ intel->vertex_id |= 1 << id;
+}
+
+static void i965_bind_surfaces(struct intel_screen_private *intel)
+{
+ uint32_t *binding_table;
+
+ assert(intel->surface_used + 4 * sizeof(struct brw_surface_state_padded) <= sizeof(intel->surface_data));
+
+ binding_table = (uint32_t*) (intel->surface_data + intel->surface_used);
+ intel->surface_table = intel->surface_used;
+ intel->surface_used += sizeof(struct brw_surface_state_padded);
+
+ binding_table[0] =
+ i965_set_picture_surface_state(intel,
+ intel->render_dest_picture,
+ intel->render_dest,
+ TRUE);
+ binding_table[1] =
+ i965_set_picture_surface_state(intel,
+ intel->render_source_picture,
+ intel->render_source,
+ FALSE);
+ if (intel->render_mask) {
+ binding_table[2] =
+ i965_set_picture_surface_state(intel,
+ intel->render_mask_picture,
+ intel->render_mask,
+ FALSE);
+ }
+}
+
+void
+i965_composite(PixmapPtr dest, int srcX, int srcY, int maskX, int maskY,
+ int dstX, int dstY, int w, int h)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ intel_batch_start_atomic(scrn, 200);
+ if (intel->needs_render_state_emit) {
+ i965_bind_surfaces(intel);
+
+ if (INTEL_INFO(intel)->gen >= 60)
+ gen6_emit_composite_state(intel);
+ else
+ i965_emit_composite_state(intel);
+ }
+
+ if (intel->floats_per_vertex != intel->last_floats_per_vertex) {
+ intel->vertex_index = (intel->vertex_used + intel->floats_per_vertex - 1) / intel->floats_per_vertex;
+ intel->vertex_used = intel->vertex_index * intel->floats_per_vertex;
+ intel->last_floats_per_vertex = intel->floats_per_vertex;
+ }
+ if (intel_vertex_space(intel) < 3*4*intel->floats_per_vertex) {
+ i965_vertex_flush(intel);
+ intel_next_vertex(intel);
+ intel->vertex_index = 0;
+ }
+ i965_select_vertex_buffer(intel);
+
+ if (intel->vertex_offset == 0) {
+ OUT_BATCH(BRW_3DPRIMITIVE |
+ BRW_3DPRIMITIVE_VERTEX_SEQUENTIAL |
+ (_3DPRIM_RECTLIST << BRW_3DPRIMITIVE_TOPOLOGY_SHIFT) |
+ (0 << 9) |
+ 4);
+ intel->vertex_offset = intel->batch_used;
+ OUT_BATCH(0); /* vertex count, to be filled in later */
+ OUT_BATCH(intel->vertex_index);
+ OUT_BATCH(1); /* single instance */
+ OUT_BATCH(0); /* start instance location */
+ OUT_BATCH(0); /* index buffer offset, ignored */
+ intel->vertex_count = intel->vertex_index;
+ }
+
+ intel->prim_emit(intel,
+ srcX, srcY,
+ maskX, maskY,
+ dstX, dstY,
+ w, h);
+ intel->vertex_index += 3;
+
+ if (INTEL_INFO(intel)->gen < 50) {
+ /* XXX OMG! */
+ i965_vertex_flush(intel);
+ OUT_BATCH(MI_FLUSH | MI_INHIBIT_RENDER_CACHE_FLUSH);
+ }
+
+ intel_batch_end_atomic(scrn);
+}
+
+void i965_batch_commit_notify(intel_screen_private *intel)
+{
+ intel->needs_render_state_emit = TRUE;
+ intel->needs_3d_invariant = TRUE;
+ intel->last_floats_per_vertex = 0;
+ intel->vertex_index = 0;
+
+ intel->gen4_render_state->composite_op.vertex_id = -1;
+
+ intel->gen6_render_state.num_sf_outputs = 0;
+ intel->gen6_render_state.samplers = NULL;
+ intel->gen6_render_state.blend = -1;
+ intel->gen6_render_state.kernel = NULL;
+ intel->gen6_render_state.drawrect = -1;
+
+ assert(intel->surface_reloc == 0);
+}
+
+/**
+ * Called at EnterVT so we can set up our offsets into the state buffer.
+ */
+void gen4_render_state_init(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct gen4_render_state *render;
+ const struct wm_kernel_info *wm_kernels;
+ int i, j, k, l, m;
+ drm_intel_bo *sf_kernel_bo, *sf_kernel_mask_bo;
+ drm_intel_bo *border_color_bo;
+
+ intel->needs_3d_invariant = TRUE;
+
+ intel->surface_bo =
+ drm_intel_bo_alloc(intel->bufmgr, "surface data",
+ sizeof(intel->surface_data), 4096);
+ intel->surface_used = 0;
+
+ if (intel->gen4_render_state == NULL)
+ intel->gen4_render_state = calloc(sizeof(*render), 1);
+
+ if (INTEL_INFO(intel)->gen >= 60)
+ return gen6_render_state_init(scrn);
+
+ render = intel->gen4_render_state;
+ render->composite_op.vertex_id = -1;
+
+ render->vs_state_bo = gen4_create_vs_unit_state(intel);
+
+ /* Set up the two SF states (one for blending with a mask, one without) */
+ if (IS_GEN5(intel)) {
+ sf_kernel_bo = intel_bo_alloc_for_data(intel,
+ sf_kernel_static_gen5,
+ sizeof
+ (sf_kernel_static_gen5),
+ "sf kernel gen5");
+ sf_kernel_mask_bo =
+ intel_bo_alloc_for_data(intel, sf_kernel_mask_static_gen5,
+ sizeof(sf_kernel_mask_static_gen5),
+ "sf mask kernel");
+ } else {
+ sf_kernel_bo = intel_bo_alloc_for_data(intel,
+ sf_kernel_static,
+ sizeof(sf_kernel_static),
+ "sf kernel");
+ sf_kernel_mask_bo = intel_bo_alloc_for_data(intel,
+ sf_kernel_mask_static,
+ sizeof
+ (sf_kernel_mask_static),
+ "sf mask kernel");
+ }
+ render->sf_state_bo = gen4_create_sf_state(intel, sf_kernel_bo);
+ render->sf_mask_state_bo = gen4_create_sf_state(intel, sf_kernel_mask_bo);
+ drm_intel_bo_unreference(sf_kernel_bo);
+ drm_intel_bo_unreference(sf_kernel_mask_bo);
+
+ wm_kernels = IS_GEN5(intel) ? wm_kernels_gen5 : wm_kernels_gen4;
+ for (m = 0; m < KERNEL_COUNT; m++) {
+ render->wm_kernel_bo[m] =
+ intel_bo_alloc_for_data(intel,
+ wm_kernels[m].data,
+ wm_kernels[m].size,
+ "WM kernel");
+ }
+
+ /* Set up the WM states: each filter/extend type for source and mask, per
+ * kernel.
+ */
+ border_color_bo = sampler_border_color_create(intel);
+ for (i = 0; i < FILTER_COUNT; i++) {
+ for (j = 0; j < EXTEND_COUNT; j++) {
+ for (k = 0; k < FILTER_COUNT; k++) {
+ for (l = 0; l < EXTEND_COUNT; l++) {
+ drm_intel_bo *sampler_state_bo;
+
+ sampler_state_bo =
+ gen4_create_sampler_state(intel,
+ i, j,
+ k, l,
+ border_color_bo);
+
+ for (m = 0; m < KERNEL_COUNT; m++) {
+ render->wm_state_bo[m][i][j][k][l] =
+ gen4_create_wm_state
+ (intel,
+ wm_kernels[m]. has_mask,
+ render->wm_kernel_bo[m],
+ sampler_state_bo);
+ }
+ drm_intel_bo_unreference(sampler_state_bo);
+ }
+ }
+ }
+ }
+ drm_intel_bo_unreference(border_color_bo);
+
+ render->cc_state_bo = gen4_create_cc_unit_state(intel);
+}
+
+/**
+ * Called at LeaveVT.
+ */
+void gen4_render_state_cleanup(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct gen4_render_state *render_state = intel->gen4_render_state;
+ int i, j, k, l, m;
+
+ drm_intel_bo_unreference(intel->surface_bo);
+ drm_intel_bo_unreference(render_state->vs_state_bo);
+ drm_intel_bo_unreference(render_state->sf_state_bo);
+ drm_intel_bo_unreference(render_state->sf_mask_state_bo);
+
+ for (i = 0; i < KERNEL_COUNT; i++)
+ drm_intel_bo_unreference(render_state->wm_kernel_bo[i]);
+
+ for (i = 0; i < FILTER_COUNT; i++)
+ for (j = 0; j < EXTEND_COUNT; j++)
+ for (k = 0; k < FILTER_COUNT; k++)
+ for (l = 0; l < EXTEND_COUNT; l++)
+ for (m = 0; m < KERNEL_COUNT; m++)
+ drm_intel_bo_unreference
+ (render_state->
+ wm_state_bo[m][i][j][k]
+ [l]);
+
+ for (i = 0; i < FILTER_COUNT; i++)
+ for (j = 0; j < EXTEND_COUNT; j++)
+ for (k = 0; k < FILTER_COUNT; k++)
+ for (l = 0; l < EXTEND_COUNT; l++)
+ drm_intel_bo_unreference(render_state->ps_sampler_state_bo[i][j][k][l]);
+
+ drm_intel_bo_unreference(render_state->cc_state_bo);
+
+ drm_intel_bo_unreference(render_state->cc_vp_bo);
+ drm_intel_bo_unreference(render_state->gen6_blend_bo);
+ drm_intel_bo_unreference(render_state->gen6_depth_stencil_bo);
+
+ free(intel->gen4_render_state);
+ intel->gen4_render_state = NULL;
+}
+
+/*
+ * for GEN6+
+ */
+#define GEN6_BLEND_STATE_PADDED_SIZE ALIGN(sizeof(struct gen6_blend_state), 64)
+
+static drm_intel_bo *
+gen6_composite_create_cc_state(intel_screen_private *intel)
+{
+ struct gen6_color_calc_state *state;
+ drm_intel_bo *cc_bo;
+
+ cc_bo = drm_intel_bo_alloc(intel->bufmgr,
+ "gen6 CC state",
+ sizeof(*state),
+ 4096);
+ drm_intel_bo_map(cc_bo, TRUE);
+ state = cc_bo->virtual;
+ memset(state, 0, sizeof(*state));
+ state->constant_r = 1.0;
+ state->constant_g = 0.0;
+ state->constant_b = 1.0;
+ state->constant_a = 1.0;
+ drm_intel_bo_unmap(cc_bo);
+
+ return cc_bo;
+}
+
+static drm_intel_bo *
+gen6_composite_create_blend_state(intel_screen_private *intel)
+{
+ drm_intel_bo *blend_bo;
+ int src, dst;
+
+ blend_bo = drm_intel_bo_alloc(intel->bufmgr,
+ "gen6 BLEND state",
+ BRW_BLENDFACTOR_COUNT * BRW_BLENDFACTOR_COUNT * GEN6_BLEND_STATE_PADDED_SIZE,
+ 4096);
+ drm_intel_bo_map(blend_bo, TRUE);
+ memset(blend_bo->virtual, 0, blend_bo->size);
+
+ for (src = 0; src < BRW_BLENDFACTOR_COUNT; src++) {
+ for (dst = 0; dst < BRW_BLENDFACTOR_COUNT; dst++) {
+ uint32_t blend_state_offset = (src * BRW_BLENDFACTOR_COUNT + dst) * GEN6_BLEND_STATE_PADDED_SIZE;
+ struct gen6_blend_state *blend;
+
+ blend = (struct gen6_blend_state *)((char *)blend_bo->virtual + blend_state_offset);
+ blend->blend0.dest_blend_factor = dst;
+ blend->blend0.source_blend_factor = src;
+ blend->blend0.blend_func = BRW_BLENDFUNCTION_ADD;
+ blend->blend0.blend_enable = 1;
+
+ blend->blend1.post_blend_clamp_enable = 1;
+ blend->blend1.pre_blend_clamp_enable = 1;
+ }
+ }
+
+ drm_intel_bo_unmap(blend_bo);
+ return blend_bo;
+}
+
+static drm_intel_bo *
+gen6_composite_create_depth_stencil_state(intel_screen_private *intel)
+{
+ struct gen6_depth_stencil_state *state;
+ drm_intel_bo *depth_stencil_bo;
+
+ depth_stencil_bo = drm_intel_bo_alloc(intel->bufmgr,
+ "gen6 DEPTH_STENCIL state",
+ sizeof(*state),
+ 4096);
+ drm_intel_bo_map(depth_stencil_bo, TRUE);
+ state = depth_stencil_bo->virtual;
+ memset(state, 0, sizeof(*state));
+ drm_intel_bo_unmap(depth_stencil_bo);
+
+ return depth_stencil_bo;
+}
+
+static void
+gen6_composite_invariant_states(intel_screen_private *intel)
+{
+ OUT_BATCH(NEW_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+
+ OUT_BATCH(GEN6_3DSTATE_MULTISAMPLE | (3 - 2));
+ OUT_BATCH(GEN6_3DSTATE_MULTISAMPLE_PIXEL_LOCATION_CENTER |
+ GEN6_3DSTATE_MULTISAMPLE_NUMSAMPLES_1); /* 1 sample/pixel */
+ OUT_BATCH(0);
+
+ OUT_BATCH(GEN6_3DSTATE_SAMPLE_MASK | (2 - 2));
+ OUT_BATCH(1);
+
+ /* Set system instruction pointer */
+ OUT_BATCH(BRW_STATE_SIP | 0);
+ OUT_BATCH(0);
+}
+
+static void
+gen6_composite_state_base_address(intel_screen_private *intel)
+{
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | (10 - 2));
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* General state base address */
+ intel->surface_reloc = intel->batch_used;
+ intel_batch_emit_dword(intel,
+ intel->surface_bo->offset | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Dynamic state base address */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Indirect object base address */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Instruction base address */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* General state upper bound */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Dynamic state upper bound */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Indirect object upper bound */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Instruction access upper bound */
+}
+
+static void
+gen6_composite_viewport_state_pointers(intel_screen_private *intel,
+ drm_intel_bo *cc_vp_bo)
+{
+
+ OUT_BATCH(GEN6_3DSTATE_VIEWPORT_STATE_POINTERS |
+ GEN6_3DSTATE_VIEWPORT_STATE_MODIFY_CC |
+ (4 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_RELOC(cc_vp_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+}
+
+static void
+gen6_composite_urb(intel_screen_private *intel)
+{
+ OUT_BATCH(GEN6_3DSTATE_URB | (3 - 2));
+ OUT_BATCH(((1 - 1) << GEN6_3DSTATE_URB_VS_SIZE_SHIFT) |
+ (24 << GEN6_3DSTATE_URB_VS_ENTRIES_SHIFT)); /* at least 24 on GEN6 */
+ OUT_BATCH((0 << GEN6_3DSTATE_URB_GS_SIZE_SHIFT) |
+ (0 << GEN6_3DSTATE_URB_GS_ENTRIES_SHIFT)); /* no GS thread */
+}
+
+static void
+gen6_composite_cc_state_pointers(intel_screen_private *intel,
+ uint32_t blend_offset)
+{
+ struct gen4_render_state *render_state = intel->gen4_render_state;
+
+ if (intel->gen6_render_state.blend == blend_offset)
+ return;
+
+ OUT_BATCH(GEN6_3DSTATE_CC_STATE_POINTERS | (4 - 2));
+ OUT_RELOC(render_state->gen6_blend_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0,
+ blend_offset | 1);
+ if (intel->gen6_render_state.blend == -1) {
+ OUT_RELOC(render_state->gen6_depth_stencil_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0,
+ 1);
+ OUT_RELOC(render_state->cc_state_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0,
+ 1);
+ } else {
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ }
+
+ intel->gen6_render_state.blend = blend_offset;
+}
+
+static void
+gen6_composite_sampler_state_pointers(intel_screen_private *intel,
+ drm_intel_bo *bo)
+{
+ if (intel->gen6_render_state.samplers == bo)
+ return;
+
+ intel->gen6_render_state.samplers = bo;
+
+ OUT_BATCH(GEN6_3DSTATE_SAMPLER_STATE_POINTERS |
+ GEN6_3DSTATE_SAMPLER_STATE_MODIFY_PS |
+ (4 - 2));
+ OUT_BATCH(0); /* VS */
+ OUT_BATCH(0); /* GS */
+ OUT_RELOC(bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+}
+
+static void
+gen6_composite_vs_state(intel_screen_private *intel)
+{
+ /* disable VS constant buffer */
+ OUT_BATCH(GEN6_3DSTATE_CONSTANT_VS | (5 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(GEN6_3DSTATE_VS | (6 - 2));
+ OUT_BATCH(0); /* without VS kernel */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* pass-through */
+}
+
+static void
+gen6_composite_gs_state(intel_screen_private *intel)
+{
+ /* disable GS constant buffer */
+ OUT_BATCH(GEN6_3DSTATE_CONSTANT_GS | (5 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(GEN6_3DSTATE_GS | (7 - 2));
+ OUT_BATCH(0); /* without GS kernel */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* pass-through */
+}
+
+static void
+gen6_composite_wm_constants(intel_screen_private *intel)
+{
+ /* disable WM constant buffer */
+ OUT_BATCH(GEN6_3DSTATE_CONSTANT_PS | (5 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+}
+
+static void
+gen6_composite_clip_state(intel_screen_private *intel)
+{
+ OUT_BATCH(GEN6_3DSTATE_CLIP | (4 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* pass-through */
+ OUT_BATCH(0);
+}
+
+static void
+gen6_composite_sf_state(intel_screen_private *intel,
+ Bool has_mask)
+{
+ int num_sf_outputs = has_mask ? 2 : 1;
+
+ if (intel->gen6_render_state.num_sf_outputs == num_sf_outputs)
+ return;
+
+ intel->gen6_render_state.num_sf_outputs = num_sf_outputs;
+
+ OUT_BATCH(GEN6_3DSTATE_SF | (20 - 2));
+ OUT_BATCH((num_sf_outputs << GEN6_3DSTATE_SF_NUM_OUTPUTS_SHIFT) |
+ (1 << GEN6_3DSTATE_SF_URB_ENTRY_READ_LENGTH_SHIFT) |
+ (1 << GEN6_3DSTATE_SF_URB_ENTRY_READ_OFFSET_SHIFT));
+ OUT_BATCH(0);
+ OUT_BATCH(GEN6_3DSTATE_SF_CULL_NONE);
+ OUT_BATCH(2 << GEN6_3DSTATE_SF_TRIFAN_PROVOKE_SHIFT); /* DW4 */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* DW9 */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* DW14 */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* DW19 */
+}
+
+static void
+gen6_composite_wm_state(intel_screen_private *intel,
+ Bool has_mask,
+ drm_intel_bo *bo)
+{
+ int num_surfaces = has_mask ? 3 : 2;
+ int num_sf_outputs = has_mask ? 2 : 1;
+
+ if (intel->gen6_render_state.kernel == bo)
+ return;
+
+ intel->gen6_render_state.kernel = bo;
+
+ OUT_BATCH(GEN6_3DSTATE_WM | (9 - 2));
+ OUT_RELOC(bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0,
+ 0);
+ OUT_BATCH((1 << GEN6_3DSTATE_WM_SAMPLER_COUNT_SHITF) |
+ (num_surfaces << GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT));
+ OUT_BATCH(0);
+ OUT_BATCH((6 << GEN6_3DSTATE_WM_DISPATCH_START_GRF_0_SHIFT)); /* DW4 */
+ OUT_BATCH(((40 - 1) << GEN6_3DSTATE_WM_MAX_THREADS_SHIFT) |
+ GEN6_3DSTATE_WM_DISPATCH_ENABLE |
+ GEN6_3DSTATE_WM_16_DISPATCH_ENABLE);
+ OUT_BATCH((num_sf_outputs << GEN6_3DSTATE_WM_NUM_SF_OUTPUTS_SHIFT) |
+ GEN6_3DSTATE_WM_PERSPECTIVE_PIXEL_BARYCENTRIC);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+}
+
+static void
+gen6_composite_binding_table_pointers(intel_screen_private *intel)
+{
+ /* Binding table pointers */
+ OUT_BATCH(BRW_3DSTATE_BINDING_TABLE_POINTERS |
+ GEN6_3DSTATE_BINDING_TABLE_MODIFY_PS |
+ (4 - 2));
+ OUT_BATCH(0); /* vs */
+ OUT_BATCH(0); /* gs */
+ /* Only the PS uses the binding table */
+ OUT_BATCH(intel->surface_table);
+}
+
+static void
+gen6_composite_depth_buffer_state(intel_screen_private *intel)
+{
+ OUT_BATCH(BRW_3DSTATE_DEPTH_BUFFER | (7 - 2));
+ OUT_BATCH((BRW_SURFACE_NULL << BRW_3DSTATE_DEPTH_BUFFER_TYPE_SHIFT) |
+ (BRW_DEPTHFORMAT_D32_FLOAT << BRW_3DSTATE_DEPTH_BUFFER_FORMAT_SHIFT));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(BRW_3DSTATE_CLEAR_PARAMS | (2 - 2));
+ OUT_BATCH(0);
+}
+
+static void
+gen6_composite_drawing_rectangle(intel_screen_private *intel,
+ PixmapPtr dest)
+{
+ uint32_t dw =
+ DRAW_YMAX(dest->drawable.height - 1) |
+ DRAW_XMAX(dest->drawable.width - 1);
+
+ /* XXX cacomposite depends upon the implicit non-pipelined flush */
+ if (0 && intel->gen6_render_state.drawrect == dw)
+ return;
+ intel->gen6_render_state.drawrect = dw;
+
+ OUT_BATCH(BRW_3DSTATE_DRAWING_RECTANGLE | (4 - 2));
+ OUT_BATCH(0x00000000); /* ymin, xmin */
+ OUT_BATCH(dw); /* ymax, xmax */
+ OUT_BATCH(0x00000000); /* yorigin, xorigin */
+}
+
+static void
+gen6_composite_vertex_element_state(intel_screen_private *intel,
+ Bool has_mask,
+ Bool is_affine)
+{
+ /*
+ * vertex data in vertex buffer
+ * position: (x, y)
+ * texture coordinate 0: (u0, v0) if (is_affine is TRUE) else (u0, v0, w0)
+ * texture coordinate 1 if (has_mask is TRUE): same as above
+ */
+ gen4_composite_op *composite_op = &intel->gen4_render_state->composite_op;
+ int nelem = has_mask ? 2 : 1;
+ int selem = is_affine ? 2 : 3;
+ uint32_t w_component;
+ uint32_t src_format;
+ int id;
+
+ id = has_mask << 1 | is_affine;
+
+ if (composite_op->vertex_id == id)
+ return;
+
+ composite_op->vertex_id = id;
+
+ if (is_affine) {
+ src_format = BRW_SURFACEFORMAT_R32G32_FLOAT;
+ w_component = BRW_VFCOMPONENT_STORE_1_FLT;
+ } else {
+ src_format = BRW_SURFACEFORMAT_R32G32B32_FLOAT;
+ w_component = BRW_VFCOMPONENT_STORE_SRC;
+ }
+
+ /* The VUE layout
+ * dword 0-3: pad (0.0, 0.0, 0.0. 0.0)
+ * dword 4-7: position (x, y, 1.0, 1.0),
+ * dword 8-11: texture coordinate 0 (u0, v0, w0, 1.0)
+ * dword 12-15: texture coordinate 1 (u1, v1, w1, 1.0)
+ *
+ * dword 4-15 are fetched from vertex buffer
+ */
+ OUT_BATCH(BRW_3DSTATE_VERTEX_ELEMENTS |
+ ((2 * (2 + nelem)) + 1 - 2));
+
+ OUT_BATCH((id << GEN6_VE0_VERTEX_BUFFER_INDEX_SHIFT) | GEN6_VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (0 << VE0_OFFSET_SHIFT));
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_0 << VE1_VFCOMPONENT_3_SHIFT));
+
+ /* x,y */
+ OUT_BATCH((id << GEN6_VE0_VERTEX_BUFFER_INDEX_SHIFT) | GEN6_VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (0 << VE0_OFFSET_SHIFT)); /* offsets vb in bytes */
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+
+ /* u0, v0, w0 */
+ OUT_BATCH((id << GEN6_VE0_VERTEX_BUFFER_INDEX_SHIFT) | GEN6_VE0_VALID |
+ (src_format << VE0_FORMAT_SHIFT) |
+ ((2 * 4) << VE0_OFFSET_SHIFT)); /* offset vb in bytes */
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (w_component << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+
+ /* u1, v1, w1 */
+ if (has_mask) {
+ OUT_BATCH((id << GEN6_VE0_VERTEX_BUFFER_INDEX_SHIFT) |
+ GEN6_VE0_VALID |
+ (src_format << VE0_FORMAT_SHIFT) |
+ (((2 + selem) * 4) << VE0_OFFSET_SHIFT)); /* vb offset in bytes */
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (w_component << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+ }
+}
+
+static void
+gen6_emit_composite_state(struct intel_screen_private *intel)
+{
+ struct gen4_render_state *render = intel->gen4_render_state;
+ gen4_composite_op *composite_op = &render->composite_op;
+ sampler_state_filter_t src_filter = composite_op->src_filter;
+ sampler_state_filter_t mask_filter = composite_op->mask_filter;
+ sampler_state_extend_t src_extend = composite_op->src_extend;
+ sampler_state_extend_t mask_extend = composite_op->mask_extend;
+ Bool is_affine = composite_op->is_affine;
+ Bool has_mask = intel->render_mask != NULL;
+ uint32_t src, dst;
+ drm_intel_bo *ps_sampler_state_bo = render->ps_sampler_state_bo[src_filter][src_extend][mask_filter][mask_extend];
+
+ intel->needs_render_state_emit = FALSE;
+ if (intel->needs_3d_invariant) {
+ gen6_composite_invariant_states(intel);
+ gen6_composite_viewport_state_pointers(intel,
+ render->cc_vp_bo);
+ gen6_composite_urb(intel);
+
+ gen6_composite_vs_state(intel);
+ gen6_composite_gs_state(intel);
+ gen6_composite_clip_state(intel);
+ gen6_composite_wm_constants(intel);
+ gen6_composite_depth_buffer_state(intel);
+
+ intel->needs_3d_invariant = FALSE;
+ }
+
+ i965_get_blend_cntl(composite_op->op,
+ intel->render_mask_picture,
+ intel->render_dest_picture->format,
+ &src, &dst);
+
+ if (intel->surface_reloc == 0)
+ gen6_composite_state_base_address(intel);
+
+ gen6_composite_cc_state_pointers(intel,
+ (src * BRW_BLENDFACTOR_COUNT + dst) * GEN6_BLEND_STATE_PADDED_SIZE);
+ gen6_composite_sampler_state_pointers(intel, ps_sampler_state_bo);
+ gen6_composite_sf_state(intel, has_mask);
+ gen6_composite_wm_state(intel,
+ has_mask,
+ render->wm_kernel_bo[composite_op->wm_kernel]);
+ gen6_composite_binding_table_pointers(intel);
+
+ gen6_composite_drawing_rectangle(intel, intel->render_dest);
+ gen6_composite_vertex_element_state(intel, has_mask, is_affine);
+}
+
+static void
+gen6_render_state_init(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct gen4_render_state *render;
+ int i, j, k, l, m;
+ drm_intel_bo *border_color_bo;
+
+ render= intel->gen4_render_state;
+ render->composite_op.vertex_id = -1;
+
+ intel->gen6_render_state.num_sf_outputs = 0;
+ intel->gen6_render_state.samplers = NULL;
+ intel->gen6_render_state.blend = -1;
+ intel->gen6_render_state.kernel = NULL;
+ intel->gen6_render_state.drawrect = -1;
+
+ for (m = 0; m < KERNEL_COUNT; m++) {
+ render->wm_kernel_bo[m] =
+ intel_bo_alloc_for_data(intel,
+ wm_kernels_gen6[m].data,
+ wm_kernels_gen6[m].size,
+ "WM kernel gen6");
+ }
+
+ border_color_bo = sampler_border_color_create(intel);
+
+ for (i = 0; i < FILTER_COUNT; i++) {
+ for (j = 0; j < EXTEND_COUNT; j++) {
+ for (k = 0; k < FILTER_COUNT; k++) {
+ for (l = 0; l < EXTEND_COUNT; l++) {
+ render->ps_sampler_state_bo[i][j][k][l] =
+ gen4_create_sampler_state(intel,
+ i, j,
+ k, l,
+ border_color_bo);
+ }
+ }
+ }
+ }
+
+ drm_intel_bo_unreference(border_color_bo);
+ render->cc_vp_bo = gen4_create_cc_viewport(intel);
+ render->cc_state_bo = gen6_composite_create_cc_state(intel);
+ render->gen6_blend_bo = gen6_composite_create_blend_state(intel);
+ render->gen6_depth_stencil_bo = gen6_composite_create_depth_stencil_state(intel);
+}
+
+void i965_vertex_flush(struct intel_screen_private *intel)
+{
+ if (intel->vertex_offset) {
+ intel->batch_ptr[intel->vertex_offset] =
+ intel->vertex_index - intel->vertex_count;
+ intel->vertex_offset = 0;
+ }
+}
+
+void i965_batch_flush(struct intel_screen_private *intel)
+{
+ if (intel->surface_used)
+ i965_surface_flush(intel);
+}
diff --git a/src/i965_video.c b/src/i965_video.c
new file mode 100644
index 0000000..c757681
--- /dev/null
+++ b/src/i965_video.c
@@ -0,0 +1,1886 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ * Eric Anholt <eric@anholt.net>
+ * Keith Packard <keithp@keithp.com>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86xv.h"
+#include "fourcc.h"
+
+#include "intel.h"
+#include "intel_hwmc.h"
+#include "intel_video.h"
+#include "i830_reg.h"
+#include "i965_reg.h"
+#include "brw_defines.h"
+#include "brw_structs.h"
+#include <string.h>
+
+
+/* Make assert() work. */
+#undef NDEBUG
+#include <assert.h>
+
+static const uint32_t sip_kernel_static[][4] = {
+/* wait (1) a0<1>UW a145<0,1,0>UW { align1 + } */
+ {0x00000030, 0x20000108, 0x00001220, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+/* nop (4) g0<1>UD { align1 + } */
+ {0x0040007e, 0x20000c21, 0x00690000, 0x00000000},
+};
+
+/*
+ * this program computes dA/dx and dA/dy for the texture coordinates along
+ * with the base texture coordinate. It was extracted from the Mesa driver.
+ * It uses about 10 GRF registers.
+ */
+
+#define SF_KERNEL_NUM_GRF 16
+#define SF_MAX_THREADS 1
+
+static const uint32_t sf_kernel_static[][4] = {
+#include "exa_sf.g4b"
+};
+
+/*
+ * Ok, this kernel picks up the required data flow values in g0 and g1
+ * and passes those along in m0 and m1. In m2-m9, it sticks constant
+ * values (bright pink).
+ */
+
+/* Our PS kernel uses less than 32 GRF registers (about 20) */
+#define PS_KERNEL_NUM_GRF 32
+#define PS_MAX_THREADS 32
+
+#define BRW_GRF_BLOCKS(nreg) ((nreg + 15) / 16 - 1)
+
+static const uint32_t ps_kernel_packed_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_affine.g4b"
+#include "exa_wm_src_sample_argb.g4b"
+#include "exa_wm_yuv_rgb.g4b"
+#include "exa_wm_write.g4b"
+};
+
+static const uint32_t ps_kernel_planar_static[][4] = {
+#include "exa_wm_xy.g4b"
+#include "exa_wm_src_affine.g4b"
+#include "exa_wm_src_sample_planar.g4b"
+#include "exa_wm_yuv_rgb.g4b"
+#include "exa_wm_write.g4b"
+};
+
+/* new program for Ironlake */
+static const uint32_t sf_kernel_static_gen5[][4] = {
+#include "exa_sf.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_packed_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_affine.g4b.gen5"
+#include "exa_wm_src_sample_argb.g4b.gen5"
+#include "exa_wm_yuv_rgb.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+static const uint32_t ps_kernel_planar_static_gen5[][4] = {
+#include "exa_wm_xy.g4b.gen5"
+#include "exa_wm_src_affine.g4b.gen5"
+#include "exa_wm_src_sample_planar.g4b.gen5"
+#include "exa_wm_yuv_rgb.g4b.gen5"
+#include "exa_wm_write.g4b.gen5"
+};
+
+/* programs for Sandybridge */
+static const uint32_t ps_kernel_packed_static_gen6[][4] = {
+#include "exa_wm_src_affine.g6b"
+#include "exa_wm_src_sample_argb.g6b"
+#include "exa_wm_yuv_rgb.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static const uint32_t ps_kernel_planar_static_gen6[][4] = {
+#include "exa_wm_src_affine.g6b"
+#include "exa_wm_src_sample_planar.g6b"
+#include "exa_wm_yuv_rgb.g6b"
+#include "exa_wm_write.g6b"
+};
+
+static uint32_t float_to_uint(float f)
+{
+ union {
+ uint32_t i;
+ float f;
+ } x;
+ x.f = f;
+ return x.i;
+}
+
+#if 0
+static struct {
+ uint32_t svg_ctl;
+ char *name;
+} svg_ctl_bits[] = {
+ {
+ BRW_SVG_CTL_GS_BA, "General State Base Address"}, {
+ BRW_SVG_CTL_SS_BA, "Surface State Base Address"}, {
+ BRW_SVG_CTL_IO_BA, "Indirect Object Base Address"}, {
+ BRW_SVG_CTL_GS_AUB, "Generate State Access Upper Bound"}, {
+ BRW_SVG_CTL_IO_AUB, "Indirect Object Access Upper Bound"}, {
+ BRW_SVG_CTL_SIP, "System Instruction Pointer"}, {
+0, 0},};
+
+static void brw_debug(ScrnInfoPtr scrn, char *when)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int i;
+ uint32_t v;
+
+ ErrorF("brw_debug: %s\n", when);
+ for (i = 0; svg_ctl_bits[i].name; i++) {
+ OUTREG(BRW_SVG_CTL, svg_ctl_bits[i].svg_ctl);
+ v = INREG(BRW_SVG_RDATA);
+ ErrorF("\t%34.34s: 0x%08x\n", svg_ctl_bits[i].name, v);
+ }
+}
+#endif
+
+#define WATCH_SF 0
+#define WATCH_WIZ 0
+#define WATCH_STATS 0
+
+static void i965_pre_draw_debug(ScrnInfoPtr scrn)
+{
+#if 0
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+#endif
+
+#if 0
+ ErrorF("before EU_ATT 0x%08x%08x EU_ATT_DATA 0x%08x%08x\n",
+ INREG(BRW_EU_ATT_1), INREG(BRW_EU_ATT_0),
+ INREG(BRW_EU_ATT_DATA_1), INREG(BRW_EU_ATT_DATA_0));
+
+ OUTREG(BRW_VF_CTL,
+ BRW_VF_CTL_SNAPSHOT_MUX_SELECT_THREADID |
+ BRW_VF_CTL_SNAPSHOT_TYPE_VERTEX_INDEX |
+ BRW_VF_CTL_SNAPSHOT_ENABLE);
+ OUTREG(BRW_VF_STRG_VAL, 0);
+#endif
+
+#if 0
+ OUTREG(BRW_VS_CTL,
+ BRW_VS_CTL_SNAPSHOT_ALL_THREADS |
+ BRW_VS_CTL_SNAPSHOT_MUX_VALID_COUNT |
+ BRW_VS_CTL_THREAD_SNAPSHOT_ENABLE);
+
+ OUTREG(BRW_VS_STRG_VAL, 0);
+#endif
+
+#if WATCH_SF
+ OUTREG(BRW_SF_CTL,
+ BRW_SF_CTL_SNAPSHOT_MUX_VERTEX_COUNT |
+ BRW_SF_CTL_SNAPSHOT_ALL_THREADS |
+ BRW_SF_CTL_THREAD_SNAPSHOT_ENABLE);
+ OUTREG(BRW_SF_STRG_VAL, 0);
+#endif
+
+#if WATCH_WIZ
+ OUTREG(BRW_WIZ_CTL,
+ BRW_WIZ_CTL_SNAPSHOT_MUX_SUBSPAN_INSTANCE |
+ BRW_WIZ_CTL_SNAPSHOT_ALL_THREADS | BRW_WIZ_CTL_SNAPSHOT_ENABLE);
+ OUTREG(BRW_WIZ_STRG_VAL, (box_x1) | (box_y1 << 16));
+#endif
+
+#if 0
+ OUTREG(BRW_TS_CTL,
+ BRW_TS_CTL_SNAPSHOT_MESSAGE_ERROR |
+ BRW_TS_CTL_SNAPSHOT_ALL_CHILD_THREADS |
+ BRW_TS_CTL_SNAPSHOT_ALL_ROOT_THREADS |
+ BRW_TS_CTL_SNAPSHOT_ENABLE);
+#endif
+}
+
+static void i965_post_draw_debug(ScrnInfoPtr scrn)
+{
+#if 0
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+#endif
+
+#if 0
+ for (j = 0; j < 100000; j++) {
+ ctl = INREG(BRW_VF_CTL);
+ if (ctl & BRW_VF_CTL_SNAPSHOT_COMPLETE)
+ break;
+ }
+
+ rdata = INREG(BRW_VF_RDATA);
+ OUTREG(BRW_VF_CTL, 0);
+ ErrorF("VF_CTL: 0x%08x VF_RDATA: 0x%08x\n", ctl, rdata);
+#endif
+
+#if 0
+ for (j = 0; j < 1000000; j++) {
+ ctl = INREG(BRW_VS_CTL);
+ if (ctl & BRW_VS_CTL_SNAPSHOT_COMPLETE)
+ break;
+ }
+
+ rdata = INREG(BRW_VS_RDATA);
+ for (k = 0; k <= 3; k++) {
+ OUTREG(BRW_VS_CTL, BRW_VS_CTL_SNAPSHOT_COMPLETE | (k << 8));
+ rdata = INREG(BRW_VS_RDATA);
+ ErrorF("VS_CTL: 0x%08x VS_RDATA(%d): 0x%08x\n", ctl, k, rdata);
+ }
+
+ OUTREG(BRW_VS_CTL, 0);
+#endif
+
+#if WATCH_SF
+ for (j = 0; j < 1000000; j++) {
+ ctl = INREG(BRW_SF_CTL);
+ if (ctl & BRW_SF_CTL_SNAPSHOT_COMPLETE)
+ break;
+ }
+
+ for (k = 0; k <= 7; k++) {
+ OUTREG(BRW_SF_CTL, BRW_SF_CTL_SNAPSHOT_COMPLETE | (k << 8));
+ rdata = INREG(BRW_SF_RDATA);
+ ErrorF("SF_CTL: 0x%08x SF_RDATA(%d): 0x%08x\n", ctl, k, rdata);
+ }
+
+ OUTREG(BRW_SF_CTL, 0);
+#endif
+
+#if WATCH_WIZ
+ for (j = 0; j < 100000; j++) {
+ ctl = INREG(BRW_WIZ_CTL);
+ if (ctl & BRW_WIZ_CTL_SNAPSHOT_COMPLETE)
+ break;
+ }
+
+ rdata = INREG(BRW_WIZ_RDATA);
+ OUTREG(BRW_WIZ_CTL, 0);
+ ErrorF("WIZ_CTL: 0x%08x WIZ_RDATA: 0x%08x\n", ctl, rdata);
+#endif
+
+#if 0
+ for (j = 0; j < 100000; j++) {
+ ctl = INREG(BRW_TS_CTL);
+ if (ctl & BRW_TS_CTL_SNAPSHOT_COMPLETE)
+ break;
+ }
+
+ rdata = INREG(BRW_TS_RDATA);
+ OUTREG(BRW_TS_CTL, 0);
+ ErrorF("TS_CTL: 0x%08x TS_RDATA: 0x%08x\n", ctl, rdata);
+
+ ErrorF("after EU_ATT 0x%08x%08x EU_ATT_DATA 0x%08x%08x\n",
+ INREG(BRW_EU_ATT_1), INREG(BRW_EU_ATT_0),
+ INREG(BRW_EU_ATT_DATA_1), INREG(BRW_EU_ATT_DATA_0));
+#endif
+
+#if 0
+ for (j = 0; j < 256; j++) {
+ OUTREG(BRW_TD_CTL, j << BRW_TD_CTL_MUX_SHIFT);
+ rdata = INREG(BRW_TD_RDATA);
+ ErrorF("TD_RDATA(%d): 0x%08x\n", j, rdata);
+ }
+#endif
+}
+
+/* For 3D, the VS must have 8, 12, 16, 24, or 32 VUEs allocated to it.
+ * A VUE consists of a 256-bit vertex header followed by the vertex data,
+ * which in our case is 4 floats (128 bits), thus a single 512-bit URB
+ * entry.
+ */
+#define URB_VS_ENTRIES 8
+#define URB_VS_ENTRY_SIZE 1
+
+#define URB_GS_ENTRIES 0
+#define URB_GS_ENTRY_SIZE 0
+
+#define URB_CLIP_ENTRIES 0
+#define URB_CLIP_ENTRY_SIZE 0
+
+/* The SF kernel we use outputs only 4 256-bit registers, leading to an
+ * entry size of 2 512-bit URBs. We don't need to have many entries to
+ * output as we're generally working on large rectangles and don't care
+ * about having WM threads running on different rectangles simultaneously.
+ */
+#define URB_SF_ENTRIES 1
+#define URB_SF_ENTRY_SIZE 2
+
+#define URB_CS_ENTRIES 0
+#define URB_CS_ENTRY_SIZE 0
+
+static int
+intel_alloc_and_map(intel_screen_private *intel, char *name, int size,
+ drm_intel_bo ** bop, void *virtualp)
+{
+ drm_intel_bo *bo;
+
+ bo = drm_intel_bo_alloc(intel->bufmgr, name, size, 4096);
+ if (!bo)
+ return -1;
+ if (drm_intel_bo_map(bo, TRUE) != 0) {
+ drm_intel_bo_unreference(bo);
+ return -1;
+ }
+ *bop = bo;
+ *(void **)virtualp = bo->virtual;
+ memset(bo->virtual, 0, size);
+ return 0;
+}
+
+static void i965_create_dst_surface_state(ScrnInfoPtr scrn,
+ PixmapPtr pixmap,
+ drm_intel_bo *surf_bo,
+ uint32_t offset)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct brw_surface_state *dest_surf_state;
+ drm_intel_bo *pixmap_bo = intel_get_pixmap_bo(pixmap);
+
+ if (drm_intel_bo_map(surf_bo, TRUE) != 0)
+ return;
+
+ dest_surf_state = (struct brw_surface_state *)((char *)surf_bo->virtual + offset);
+ memset(dest_surf_state, 0, sizeof(*dest_surf_state));
+
+ dest_surf_state->ss0.surface_type = BRW_SURFACE_2D;
+ dest_surf_state->ss0.data_return_format =
+ BRW_SURFACERETURNFORMAT_FLOAT32;
+ if (intel->cpp == 2) {
+ dest_surf_state->ss0.surface_format =
+ BRW_SURFACEFORMAT_B5G6R5_UNORM;
+ } else {
+ dest_surf_state->ss0.surface_format =
+ BRW_SURFACEFORMAT_B8G8R8A8_UNORM;
+ }
+ dest_surf_state->ss0.writedisable_alpha = 0;
+ dest_surf_state->ss0.writedisable_red = 0;
+ dest_surf_state->ss0.writedisable_green = 0;
+ dest_surf_state->ss0.writedisable_blue = 0;
+ dest_surf_state->ss0.color_blend = 1;
+ dest_surf_state->ss0.vert_line_stride = 0;
+ dest_surf_state->ss0.vert_line_stride_ofs = 0;
+ dest_surf_state->ss0.mipmap_layout_mode = 0;
+ dest_surf_state->ss0.render_cache_read_mode = 0;
+
+ dest_surf_state->ss1.base_addr =
+ intel_emit_reloc(surf_bo, offset + offsetof(struct brw_surface_state, ss1),
+ pixmap_bo, 0, I915_GEM_DOMAIN_SAMPLER, 0);
+
+ dest_surf_state->ss2.height = pixmap->drawable.height - 1;
+ dest_surf_state->ss2.width = pixmap->drawable.width - 1;
+ dest_surf_state->ss2.mip_count = 0;
+ dest_surf_state->ss2.render_target_rotation = 0;
+ dest_surf_state->ss3.pitch = intel_pixmap_pitch(pixmap) - 1;
+ dest_surf_state->ss3.tiled_surface = intel_pixmap_tiled(pixmap);
+ dest_surf_state->ss3.tile_walk = 0; /* TileX */
+
+ drm_intel_bo_unmap(surf_bo);
+}
+
+static void i965_create_src_surface_state(ScrnInfoPtr scrn,
+ drm_intel_bo * src_bo,
+ uint32_t src_offset,
+ int src_width,
+ int src_height,
+ int src_pitch,
+ uint32_t src_surf_format,
+ drm_intel_bo *surface_bo,
+ uint32_t offset)
+{
+ struct brw_surface_state *src_surf_state;
+
+ if (drm_intel_bo_map(surface_bo, TRUE) != 0)
+ return;
+
+ src_surf_state = (struct brw_surface_state *)((char *)surface_bo->virtual + offset);
+ memset(src_surf_state, 0, sizeof(*src_surf_state));
+
+ /* Set up the source surface state buffer */
+ src_surf_state->ss0.surface_type = BRW_SURFACE_2D;
+ src_surf_state->ss0.surface_format = src_surf_format;
+ src_surf_state->ss0.writedisable_alpha = 0;
+ src_surf_state->ss0.writedisable_red = 0;
+ src_surf_state->ss0.writedisable_green = 0;
+ src_surf_state->ss0.writedisable_blue = 0;
+ src_surf_state->ss0.color_blend = 1;
+ src_surf_state->ss0.vert_line_stride = 0;
+ src_surf_state->ss0.vert_line_stride_ofs = 0;
+ src_surf_state->ss0.mipmap_layout_mode = 0;
+ src_surf_state->ss0.render_cache_read_mode = 0;
+
+ src_surf_state->ss2.width = src_width - 1;
+ src_surf_state->ss2.height = src_height - 1;
+ src_surf_state->ss2.mip_count = 0;
+ src_surf_state->ss2.render_target_rotation = 0;
+ src_surf_state->ss3.pitch = src_pitch - 1;
+
+ if (src_bo) {
+ src_surf_state->ss1.base_addr =
+ intel_emit_reloc(surface_bo,
+ offset + offsetof(struct brw_surface_state, ss1),
+ src_bo, src_offset,
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ } else {
+ src_surf_state->ss1.base_addr = src_offset;
+ }
+
+ drm_intel_bo_unmap(surface_bo);
+}
+
+static void i965_create_binding_table(ScrnInfoPtr scrn,
+ drm_intel_bo *bind_bo,
+ int n_surf)
+{
+ uint32_t *binding_table;
+ int i;
+
+ /* Set up a binding table for our surfaces. Only the PS will use it */
+ if (drm_intel_bo_map(bind_bo, TRUE) != 0)
+ return;
+
+ binding_table = (uint32_t*)((char *)bind_bo->virtual + n_surf * ALIGN(sizeof(struct brw_surface_state), 32));
+
+ for (i = 0; i < n_surf; i++)
+ binding_table[i] = i * ALIGN(sizeof(struct brw_surface_state), 32);
+
+ drm_intel_bo_unmap(bind_bo);
+}
+
+static drm_intel_bo *i965_create_sampler_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *sampler_bo;
+ struct brw_sampler_state *sampler_state;
+
+ if (intel_alloc_and_map(intel, "textured video sampler state", 4096,
+ &sampler_bo, &sampler_state) != 0)
+ return NULL;
+
+ sampler_state->ss0.min_filter = BRW_MAPFILTER_LINEAR;
+ sampler_state->ss0.mag_filter = BRW_MAPFILTER_LINEAR;
+ sampler_state->ss1.r_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
+ sampler_state->ss1.s_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
+ sampler_state->ss1.t_wrap_mode = BRW_TEXCOORDMODE_CLAMP;
+
+ drm_intel_bo_unmap(sampler_bo);
+ return sampler_bo;
+}
+
+static drm_intel_bo *i965_create_vs_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *vs_bo;
+ struct brw_vs_unit_state *vs_state;
+
+ if (intel_alloc_and_map(intel, "textured video vs state", 4096,
+ &vs_bo, &vs_state) != 0)
+ return NULL;
+
+ /* Set up the vertex shader to be disabled (passthrough) */
+ if (IS_GEN5(intel))
+ vs_state->thread4.nr_urb_entries = URB_VS_ENTRIES >> 2;
+ else
+ vs_state->thread4.nr_urb_entries = URB_VS_ENTRIES;
+ vs_state->thread4.urb_entry_allocation_size = URB_VS_ENTRY_SIZE - 1;
+ vs_state->vs6.vs_enable = 0;
+ vs_state->vs6.vert_cache_disable = 1;
+
+ drm_intel_bo_unmap(vs_bo);
+ return vs_bo;
+}
+
+static drm_intel_bo *i965_create_program(ScrnInfoPtr scrn,
+ const uint32_t * program,
+ unsigned int program_size)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *prog_bo;
+
+ prog_bo = drm_intel_bo_alloc(intel->bufmgr, "textured video program",
+ program_size, 4096);
+ if (!prog_bo)
+ return NULL;
+
+ drm_intel_bo_subdata(prog_bo, 0, program_size, program);
+
+ return prog_bo;
+}
+
+static drm_intel_bo *i965_create_sf_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *sf_bo, *kernel_bo;
+ struct brw_sf_unit_state *sf_state;
+
+ if (IS_GEN5(intel))
+ kernel_bo =
+ i965_create_program(scrn, &sf_kernel_static_gen5[0][0],
+ sizeof(sf_kernel_static_gen5));
+ else
+ kernel_bo = i965_create_program(scrn, &sf_kernel_static[0][0],
+ sizeof(sf_kernel_static));
+
+ if (!kernel_bo)
+ return NULL;
+
+ if (intel_alloc_and_map(intel, "textured video sf state", 4096,
+ &sf_bo, &sf_state) != 0) {
+ drm_intel_bo_unreference(kernel_bo);
+ return NULL;
+ }
+
+ /* Set up the SF kernel to do coord interp: for each attribute,
+ * calculate dA/dx and dA/dy. Hand these interpolation coefficients
+ * back to SF which then hands pixels off to WM.
+ */
+ sf_state->thread0.grf_reg_count = BRW_GRF_BLOCKS(SF_KERNEL_NUM_GRF);
+ sf_state->thread0.kernel_start_pointer =
+ intel_emit_reloc(sf_bo, offsetof(struct brw_sf_unit_state, thread0),
+ kernel_bo, sf_state->thread0.grf_reg_count << 1,
+ I915_GEM_DOMAIN_INSTRUCTION, 0) >> 6;
+ sf_state->sf1.single_program_flow = 1; /* XXX */
+ sf_state->sf1.binding_table_entry_count = 0;
+ sf_state->sf1.thread_priority = 0;
+ sf_state->sf1.floating_point_mode = 0; /* Mesa does this */
+ sf_state->sf1.illegal_op_exception_enable = 1;
+ sf_state->sf1.mask_stack_exception_enable = 1;
+ sf_state->sf1.sw_exception_enable = 1;
+ sf_state->thread2.per_thread_scratch_space = 0;
+ /* scratch space is not used in our kernel */
+ sf_state->thread2.scratch_space_base_pointer = 0;
+ sf_state->thread3.const_urb_entry_read_length = 0; /* no const URBs */
+ sf_state->thread3.const_urb_entry_read_offset = 0; /* no const URBs */
+ sf_state->thread3.urb_entry_read_length = 1; /* 1 URB per vertex */
+ sf_state->thread3.urb_entry_read_offset = 0;
+ sf_state->thread3.dispatch_grf_start_reg = 3;
+ sf_state->thread4.max_threads = SF_MAX_THREADS - 1;
+ sf_state->thread4.urb_entry_allocation_size = URB_SF_ENTRY_SIZE - 1;
+ sf_state->thread4.nr_urb_entries = URB_SF_ENTRIES;
+ sf_state->thread4.stats_enable = 1;
+ sf_state->sf5.viewport_transform = FALSE; /* skip viewport */
+ sf_state->sf6.cull_mode = BRW_CULLMODE_NONE;
+ sf_state->sf6.scissor = 0;
+ sf_state->sf7.trifan_pv = 2;
+ sf_state->sf6.dest_org_vbias = 0x8;
+ sf_state->sf6.dest_org_hbias = 0x8;
+
+ drm_intel_bo_unmap(sf_bo);
+ return sf_bo;
+}
+
+static drm_intel_bo *i965_create_wm_state(ScrnInfoPtr scrn,
+ drm_intel_bo * sampler_bo,
+ Bool is_packed)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *wm_bo, *kernel_bo;
+ struct brw_wm_unit_state *wm_state;
+
+ if (is_packed) {
+ if (IS_GEN5(intel))
+ kernel_bo =
+ i965_create_program(scrn,
+ &ps_kernel_packed_static_gen5[0]
+ [0],
+ sizeof
+ (ps_kernel_packed_static_gen5));
+ else
+ kernel_bo =
+ i965_create_program(scrn,
+ &ps_kernel_packed_static[0][0],
+ sizeof
+ (ps_kernel_packed_static));
+ } else {
+ if (IS_GEN5(intel))
+ kernel_bo =
+ i965_create_program(scrn,
+ &ps_kernel_planar_static_gen5[0]
+ [0],
+ sizeof
+ (ps_kernel_planar_static_gen5));
+ else
+ kernel_bo =
+ i965_create_program(scrn,
+ &ps_kernel_planar_static[0][0],
+ sizeof
+ (ps_kernel_planar_static));
+ }
+ if (!kernel_bo)
+ return NULL;
+
+ if (intel_alloc_and_map
+ (intel, "textured video wm state", sizeof(*wm_state), &wm_bo,
+ &wm_state)) {
+ drm_intel_bo_unreference(kernel_bo);
+ return NULL;
+ }
+
+ wm_state->thread0.grf_reg_count = BRW_GRF_BLOCKS(PS_KERNEL_NUM_GRF);
+ wm_state->thread0.kernel_start_pointer =
+ intel_emit_reloc(wm_bo, offsetof(struct brw_wm_unit_state, thread0),
+ kernel_bo, wm_state->thread0.grf_reg_count << 1,
+ I915_GEM_DOMAIN_INSTRUCTION, 0) >> 6;
+ wm_state->thread1.single_program_flow = 1; /* XXX */
+ if (is_packed)
+ wm_state->thread1.binding_table_entry_count = 2;
+ else
+ wm_state->thread1.binding_table_entry_count = 7;
+
+ /* binding table entry count is only used for prefetching, and it has to
+ * be set 0 for Ironlake
+ */
+ if (IS_GEN5(intel))
+ wm_state->thread1.binding_table_entry_count = 0;
+
+ /* Though we never use the scratch space in our WM kernel, it has to be
+ * set, and the minimum allocation is 1024 bytes.
+ */
+ wm_state->thread2.scratch_space_base_pointer = 0;
+ wm_state->thread2.per_thread_scratch_space = 0; /* 1024 bytes */
+ wm_state->thread3.dispatch_grf_start_reg = 3; /* XXX */
+ wm_state->thread3.const_urb_entry_read_length = 0;
+ wm_state->thread3.const_urb_entry_read_offset = 0;
+ wm_state->thread3.urb_entry_read_length = 1; /* XXX */
+ wm_state->thread3.urb_entry_read_offset = 0; /* XXX */
+ wm_state->wm4.stats_enable = 1;
+ wm_state->wm4.sampler_state_pointer =
+ intel_emit_reloc(wm_bo, offsetof(struct brw_wm_unit_state, wm4),
+ sampler_bo, 0,
+ I915_GEM_DOMAIN_INSTRUCTION, 0) >> 5;
+ if (IS_GEN5(intel))
+ wm_state->wm4.sampler_count = 0;
+ else
+ wm_state->wm4.sampler_count = 1; /* 1-4 samplers used */
+ wm_state->wm5.max_threads = PS_MAX_THREADS - 1;
+ wm_state->wm5.thread_dispatch_enable = 1;
+ wm_state->wm5.enable_16_pix = 1;
+ wm_state->wm5.enable_8_pix = 0;
+ wm_state->wm5.early_depth_test = 1;
+
+ drm_intel_bo_unreference(kernel_bo);
+
+ drm_intel_bo_unmap(wm_bo);
+ return wm_bo;
+}
+
+static drm_intel_bo *i965_create_cc_vp_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *cc_vp_bo;
+ struct brw_cc_viewport *cc_viewport;
+
+ if (intel_alloc_and_map(intel, "textured video cc viewport", 4096,
+ &cc_vp_bo, &cc_viewport) != 0)
+ return NULL;
+
+ cc_viewport->min_depth = -1.e35;
+ cc_viewport->max_depth = 1.e35;
+
+ drm_intel_bo_unmap(cc_vp_bo);
+ return cc_vp_bo;
+}
+
+static drm_intel_bo *i965_create_cc_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *cc_bo, *cc_vp_bo;
+ struct brw_cc_unit_state *cc_state;
+
+ cc_vp_bo = i965_create_cc_vp_state(scrn);
+ if (!cc_vp_bo)
+ return NULL;
+
+ if (intel_alloc_and_map
+ (intel, "textured video cc state", sizeof(*cc_state), &cc_bo,
+ &cc_state) != 0) {
+ drm_intel_bo_unreference(cc_vp_bo);
+ return NULL;
+ }
+
+ /* Color calculator state */
+ memset(cc_state, 0, sizeof(*cc_state));
+ cc_state->cc0.stencil_enable = 0; /* disable stencil */
+ cc_state->cc2.depth_test = 0; /* disable depth test */
+ cc_state->cc2.logicop_enable = 1; /* enable logic op */
+ cc_state->cc3.ia_blend_enable = 1; /* blend alpha just like colors */
+ cc_state->cc3.blend_enable = 0; /* disable color blend */
+ cc_state->cc3.alpha_test = 0; /* disable alpha test */
+ cc_state->cc4.cc_viewport_state_offset =
+ intel_emit_reloc(cc_bo, offsetof(struct brw_cc_unit_state, cc4),
+ cc_vp_bo, 0, I915_GEM_DOMAIN_INSTRUCTION, 0) >> 5;
+ cc_state->cc5.dither_enable = 0; /* disable dither */
+ cc_state->cc5.logicop_func = 0xc; /* WHITE */
+ cc_state->cc5.statistics_enable = 1;
+ cc_state->cc5.ia_blend_function = BRW_BLENDFUNCTION_ADD;
+ cc_state->cc5.ia_src_blend_factor = BRW_BLENDFACTOR_ONE;
+ cc_state->cc5.ia_dest_blend_factor = BRW_BLENDFACTOR_ONE;
+
+ drm_intel_bo_unmap(cc_bo);
+
+ drm_intel_bo_unreference(cc_vp_bo);
+ return cc_bo;
+}
+
+static void
+i965_emit_video_setup(ScrnInfoPtr scrn, drm_intel_bo * surface_state_binding_table_bo, int n_src_surf, PixmapPtr pixmap)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int urb_vs_start, urb_vs_size;
+ int urb_gs_start, urb_gs_size;
+ int urb_clip_start, urb_clip_size;
+ int urb_sf_start, urb_sf_size;
+ int urb_cs_start, urb_cs_size;
+ int pipe_ctl;
+
+ IntelEmitInvarientState(scrn);
+ intel->last_3d = LAST_3D_VIDEO;
+
+ urb_vs_start = 0;
+ urb_vs_size = URB_VS_ENTRIES * URB_VS_ENTRY_SIZE;
+ urb_gs_start = urb_vs_start + urb_vs_size;
+ urb_gs_size = URB_GS_ENTRIES * URB_GS_ENTRY_SIZE;
+ urb_clip_start = urb_gs_start + urb_gs_size;
+ urb_clip_size = URB_CLIP_ENTRIES * URB_CLIP_ENTRY_SIZE;
+ urb_sf_start = urb_clip_start + urb_clip_size;
+ urb_sf_size = URB_SF_ENTRIES * URB_SF_ENTRY_SIZE;
+ urb_cs_start = urb_sf_start + urb_sf_size;
+ urb_cs_size = URB_CS_ENTRIES * URB_CS_ENTRY_SIZE;
+
+ OUT_BATCH(MI_FLUSH |
+ MI_STATE_INSTRUCTION_CACHE_FLUSH |
+ BRW_MI_GLOBAL_SNAPSHOT_RESET);
+ OUT_BATCH(MI_NOOP);
+
+ /* brw_debug (scrn, "before base address modify"); */
+ /* Match Mesa driver setup */
+ if (INTEL_INFO(intel)->gen >= 45)
+ OUT_BATCH(NEW_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+ else
+ OUT_BATCH(BRW_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+
+ /* Mesa does this. Who knows... */
+ OUT_BATCH(BRW_CS_URB_STATE | 0);
+ OUT_BATCH((0 << 4) | /* URB Entry Allocation Size */
+ (0 << 0)); /* Number of URB Entries */
+
+ /* Zero out the two base address registers so all offsets are
+ * absolute
+ */
+ if (IS_GEN5(intel)) {
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | 6);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* Generate state base address */
+ OUT_RELOC(surface_state_binding_table_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY); /* Surface state base address */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* media base addr, don't care */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* Instruction base address */
+ /* general state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ /* media object state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ /* Instruction max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ } else {
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | 4);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* Generate state base address */
+ OUT_RELOC(surface_state_binding_table_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY); /* Surface state base address */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY); /* media base addr, don't care */
+ /* general state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ /* media object state max addr, disabled */
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ }
+
+ /* Set system instruction pointer */
+ OUT_BATCH(BRW_STATE_SIP | 0);
+ /* system instruction pointer */
+ OUT_RELOC(intel->video.gen4_sip_kernel_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+
+ /* brw_debug (scrn, "after base address modify"); */
+
+ if (IS_GEN5(intel))
+ pipe_ctl = BRW_PIPE_CONTROL_NOWRITE;
+ else
+ pipe_ctl = BRW_PIPE_CONTROL_NOWRITE | BRW_PIPE_CONTROL_IS_FLUSH;
+
+ /* Pipe control */
+ OUT_BATCH(BRW_PIPE_CONTROL | pipe_ctl | 2);
+ OUT_BATCH(0); /* Destination address */
+ OUT_BATCH(0); /* Immediate data low DW */
+ OUT_BATCH(0); /* Immediate data high DW */
+
+ /* Binding table pointers */
+ OUT_BATCH(BRW_3DSTATE_BINDING_TABLE_POINTERS | 4);
+ OUT_BATCH(0); /* vs */
+ OUT_BATCH(0); /* gs */
+ OUT_BATCH(0); /* clip */
+ OUT_BATCH(0); /* sf */
+ /* Only the PS uses the binding table */
+ OUT_BATCH((n_src_surf + 1) * ALIGN(sizeof(struct brw_surface_state), 32));
+
+ /* Blend constant color (magenta is fun) */
+ OUT_BATCH(BRW_3DSTATE_CONSTANT_COLOR | 3);
+ OUT_BATCH(float_to_uint(1.0));
+ OUT_BATCH(float_to_uint(0.0));
+ OUT_BATCH(float_to_uint(1.0));
+ OUT_BATCH(float_to_uint(1.0));
+
+ /* The drawing rectangle clipping is always on. Set it to values that
+ * shouldn't do any clipping.
+ */
+ OUT_BATCH(BRW_3DSTATE_DRAWING_RECTANGLE | 2); /* XXX 3 for BLC or CTG */
+ OUT_BATCH(0x00000000); /* ymin, xmin */
+ OUT_BATCH((pixmap->drawable.width - 1) | (pixmap->drawable.height - 1) << 16); /* ymax, xmax */
+ OUT_BATCH(0x00000000); /* yorigin, xorigin */
+
+ /* skip the depth buffer */
+ /* skip the polygon stipple */
+ /* skip the polygon stipple offset */
+ /* skip the line stipple */
+
+ /* Set the pointers to the 3d pipeline state */
+ OUT_BATCH(BRW_3DSTATE_PIPELINED_POINTERS | 5);
+ OUT_RELOC(intel->video.gen4_vs_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ /* disable GS, resulting in passthrough */
+ OUT_BATCH(BRW_GS_DISABLE);
+ /* disable CLIP, resulting in passthrough */
+ OUT_BATCH(BRW_CLIP_DISABLE);
+ OUT_RELOC(intel->video.gen4_sf_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ if (n_src_surf == 1)
+ OUT_RELOC(intel->video.gen4_wm_packed_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ else
+ OUT_RELOC(intel->video.gen4_wm_planar_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ OUT_RELOC(intel->video.gen4_cc_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+
+ /* URB fence */
+ OUT_BATCH(BRW_URB_FENCE |
+ UF0_CS_REALLOC |
+ UF0_SF_REALLOC |
+ UF0_CLIP_REALLOC | UF0_GS_REALLOC | UF0_VS_REALLOC | 1);
+ OUT_BATCH(((urb_clip_start + urb_clip_size) << UF1_CLIP_FENCE_SHIFT) |
+ ((urb_gs_start + urb_gs_size) << UF1_GS_FENCE_SHIFT) |
+ ((urb_vs_start + urb_vs_size) << UF1_VS_FENCE_SHIFT));
+ OUT_BATCH(((urb_cs_start + urb_cs_size) << UF2_CS_FENCE_SHIFT) |
+ ((urb_sf_start + urb_sf_size) << UF2_SF_FENCE_SHIFT));
+
+ /* Constant buffer state */
+ OUT_BATCH(BRW_CS_URB_STATE | 0);
+ OUT_BATCH(((URB_CS_ENTRY_SIZE - 1) << 4) | (URB_CS_ENTRIES << 0));
+
+ /* Set up our vertex elements, sourced from the single vertex buffer. */
+
+ if (IS_GEN5(intel)) {
+ OUT_BATCH(BRW_3DSTATE_VERTEX_ELEMENTS | 3);
+ /* offset 0: X,Y -> {X, Y, 1.0, 1.0} */
+ OUT_BATCH((0 << VE0_VERTEX_BUFFER_INDEX_SHIFT) |
+ VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (0 << VE0_OFFSET_SHIFT));
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT)
+ | (BRW_VFCOMPONENT_STORE_SRC <<
+ VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_3_SHIFT));
+ /* offset 8: S0, T0 -> {S0, T0, 1.0, 1.0} */
+ OUT_BATCH((0 << VE0_VERTEX_BUFFER_INDEX_SHIFT) |
+ VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (8 << VE0_OFFSET_SHIFT));
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT)
+ | (BRW_VFCOMPONENT_STORE_SRC <<
+ VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_3_SHIFT));
+ } else {
+ OUT_BATCH(BRW_3DSTATE_VERTEX_ELEMENTS | 3);
+ /* offset 0: X,Y -> {X, Y, 1.0, 1.0} */
+ OUT_BATCH((0 << VE0_VERTEX_BUFFER_INDEX_SHIFT) |
+ VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (0 << VE0_OFFSET_SHIFT));
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT)
+ | (BRW_VFCOMPONENT_STORE_SRC <<
+ VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_3_SHIFT) | (0 <<
+ VE1_DESTINATION_ELEMENT_OFFSET_SHIFT));
+ /* offset 8: S0, T0 -> {S0, T0, 1.0, 1.0} */
+ OUT_BATCH((0 << VE0_VERTEX_BUFFER_INDEX_SHIFT) |
+ VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (8 << VE0_OFFSET_SHIFT));
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT)
+ | (BRW_VFCOMPONENT_STORE_SRC <<
+ VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT <<
+ VE1_VFCOMPONENT_3_SHIFT) | (4 <<
+ VE1_DESTINATION_ELEMENT_OFFSET_SHIFT));
+ }
+}
+
+void
+I965DisplayVideoTextured(ScrnInfoPtr scrn,
+ intel_adaptor_private *adaptor_priv, int id,
+ RegionPtr dstRegion,
+ short width, short height,
+ int video_pitch, int video_pitch2,
+ short src_w, short src_h,
+ short drw_w, short drw_h, PixmapPtr pixmap)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ BoxPtr pbox;
+ int nbox, dxo, dyo, pix_xoff, pix_yoff;
+ float src_scale_x, src_scale_y;
+ int src_surf;
+ int n_src_surf;
+ uint32_t src_surf_format;
+ uint32_t src_surf_base[6];
+ int src_width[6];
+ int src_height[6];
+ int src_pitch[6];
+ drm_intel_bo *surface_state_binding_table_bo;
+
+#if 0
+ ErrorF("BroadwaterDisplayVideoTextured: %dx%d (pitch %d)\n", width,
+ height, video_pitch);
+#endif
+
+#if 0
+ /* enable debug */
+ OUTREG(INST_PM, (1 << (16 + 4)) | (1 << 4));
+ ErrorF("INST_PM 0x%08x\n", INREG(INST_PM));
+#endif
+
+ src_surf_base[0] = adaptor_priv->YBufOffset;
+ src_surf_base[1] = adaptor_priv->YBufOffset;
+ src_surf_base[2] = adaptor_priv->VBufOffset;
+ src_surf_base[3] = adaptor_priv->VBufOffset;
+ src_surf_base[4] = adaptor_priv->UBufOffset;
+ src_surf_base[5] = adaptor_priv->UBufOffset;
+#if 0
+ ErrorF("base 0 0x%x base 1 0x%x base 2 0x%x\n",
+ src_surf_base[0], src_surf_base[1], src_surf_base[2]);
+#endif
+
+ if (is_planar_fourcc(id)) {
+ src_surf_format = BRW_SURFACEFORMAT_R8_UNORM;
+ src_width[1] = src_width[0] = width;
+ src_height[1] = src_height[0] = height;
+ src_pitch[1] = src_pitch[0] = video_pitch2;
+ src_width[4] = src_width[5] = src_width[2] = src_width[3] =
+ width / 2;
+ src_height[4] = src_height[5] = src_height[2] = src_height[3] =
+ height / 2;
+ src_pitch[4] = src_pitch[5] = src_pitch[2] = src_pitch[3] =
+ video_pitch;
+ n_src_surf = 6;
+ } else {
+ if (id == FOURCC_UYVY)
+ src_surf_format = BRW_SURFACEFORMAT_YCRCB_SWAPY;
+ else
+ src_surf_format = BRW_SURFACEFORMAT_YCRCB_NORMAL;
+
+ src_width[0] = width;
+ src_height[0] = height;
+ src_pitch[0] = video_pitch;
+ n_src_surf = 1;
+ }
+
+#if 0
+ ErrorF("dst surf: 0x%08x\n", state_base_offset + dest_surf_offset);
+ ErrorF("src surf: 0x%08x\n", state_base_offset + src_surf_offset);
+#endif
+
+ /* We'll be poking the state buffers that could be in use by the 3d
+ * hardware here, but we should have synced the 3D engine already in
+ * I830PutImage.
+ */
+
+ surface_state_binding_table_bo =
+ drm_intel_bo_alloc(intel->bufmgr,
+ "surface state & binding table",
+ (n_src_surf + 1) * (ALIGN(sizeof(struct brw_surface_state), 32) + sizeof(uint32_t)),
+ 4096);
+
+ if (!surface_state_binding_table_bo)
+ return;
+
+ i965_create_dst_surface_state(scrn, pixmap, surface_state_binding_table_bo, 0);
+
+ for (src_surf = 0; src_surf < n_src_surf; src_surf++) {
+ i965_create_src_surface_state(scrn,
+ adaptor_priv->buf,
+ src_surf_base[src_surf],
+ src_width[src_surf],
+ src_height[src_surf],
+ src_pitch[src_surf],
+ src_surf_format,
+ surface_state_binding_table_bo,
+ (src_surf + 1) * ALIGN(sizeof(struct brw_surface_state), 32));
+ }
+
+ i965_create_binding_table(scrn, surface_state_binding_table_bo, n_src_surf + 1);
+
+ if (intel->video.gen4_sampler_bo == NULL)
+ intel->video.gen4_sampler_bo = i965_create_sampler_state(scrn);
+ if (intel->video.gen4_sip_kernel_bo == NULL) {
+ intel->video.gen4_sip_kernel_bo =
+ i965_create_program(scrn, &sip_kernel_static[0][0],
+ sizeof(sip_kernel_static));
+ if (!intel->video.gen4_sip_kernel_bo) {
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ return;
+ }
+ }
+
+ if (intel->video.gen4_vs_bo == NULL) {
+ intel->video.gen4_vs_bo = i965_create_vs_state(scrn);
+ if (!intel->video.gen4_vs_bo) {
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ return;
+ }
+ }
+ if (intel->video.gen4_sf_bo == NULL) {
+ intel->video.gen4_sf_bo = i965_create_sf_state(scrn);
+ if (!intel->video.gen4_sf_bo) {
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ return;
+ }
+ }
+ if (intel->video.gen4_wm_packed_bo == NULL) {
+ intel->video.gen4_wm_packed_bo =
+ i965_create_wm_state(scrn, intel->video.gen4_sampler_bo,
+ TRUE);
+ if (!intel->video.gen4_wm_packed_bo) {
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ return;
+ }
+ }
+
+ if (intel->video.gen4_wm_planar_bo == NULL) {
+ intel->video.gen4_wm_planar_bo =
+ i965_create_wm_state(scrn, intel->video.gen4_sampler_bo,
+ FALSE);
+ if (!intel->video.gen4_wm_planar_bo) {
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ return;
+ }
+ }
+
+ if (intel->video.gen4_cc_bo == NULL) {
+ intel->video.gen4_cc_bo = i965_create_cc_state(scrn);
+ if (!intel->video.gen4_cc_bo) {
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ return;
+ }
+ }
+
+ /* Set up the offset for translating from the given region (in screen
+ * coordinates) to the backing pixmap.
+ */
+#ifdef COMPOSITE
+ pix_xoff = -pixmap->screen_x + pixmap->drawable.x;
+ pix_yoff = -pixmap->screen_y + pixmap->drawable.y;
+#else
+ pix_xoff = 0;
+ pix_yoff = 0;
+#endif
+
+ dxo = dstRegion->extents.x1;
+ dyo = dstRegion->extents.y1;
+
+ /* Use normalized texture coordinates */
+ src_scale_x = ((float)src_w / width) / (float)drw_w;
+ src_scale_y = ((float)src_h / height) / (float)drw_h;
+
+ pbox = REGION_RECTS(dstRegion);
+ nbox = REGION_NUM_RECTS(dstRegion);
+ while (nbox--) {
+ int box_x1 = pbox->x1;
+ int box_y1 = pbox->y1;
+ int box_x2 = pbox->x2;
+ int box_y2 = pbox->y2;
+ int i;
+ drm_intel_bo *vb_bo;
+ float *vb;
+ drm_intel_bo *bo_table[] = {
+ NULL, /* vb_bo */
+ intel->batch_bo,
+ surface_state_binding_table_bo,
+ intel->video.gen4_sampler_bo,
+ intel->video.gen4_sip_kernel_bo,
+ intel->video.gen4_vs_bo,
+ intel->video.gen4_sf_bo,
+ intel->video.gen4_wm_packed_bo,
+ intel->video.gen4_wm_planar_bo,
+ intel->video.gen4_cc_bo,
+ };
+
+ pbox++;
+
+ if (intel_alloc_and_map(intel, "textured video vb", 4096,
+ &vb_bo, &vb) != 0)
+ break;
+ bo_table[0] = vb_bo;
+
+ i = 0;
+ vb[i++] = (box_x2 - dxo) * src_scale_x;
+ vb[i++] = (box_y2 - dyo) * src_scale_y;
+ vb[i++] = (float)box_x2 + pix_xoff;
+ vb[i++] = (float)box_y2 + pix_yoff;
+
+ vb[i++] = (box_x1 - dxo) * src_scale_x;
+ vb[i++] = (box_y2 - dyo) * src_scale_y;
+ vb[i++] = (float)box_x1 + pix_xoff;
+ vb[i++] = (float)box_y2 + pix_yoff;
+
+ vb[i++] = (box_x1 - dxo) * src_scale_x;
+ vb[i++] = (box_y1 - dyo) * src_scale_y;
+ vb[i++] = (float)box_x1 + pix_xoff;
+ vb[i++] = (float)box_y1 + pix_yoff;
+
+ drm_intel_bo_unmap(vb_bo);
+
+ if (IS_GEN4(intel))
+ i965_pre_draw_debug(scrn);
+
+ /* If this command won't fit in the current batch, flush.
+ * Assume that it does after being flushed.
+ */
+ if (drm_intel_bufmgr_check_aperture_space(bo_table,
+ ARRAY_SIZE(bo_table))
+ < 0) {
+ intel_batch_submit(scrn);
+ }
+
+ intel_batch_start_atomic(scrn, 100);
+
+ i965_emit_video_setup(scrn, surface_state_binding_table_bo, n_src_surf, pixmap);
+
+ /* Set up the pointer to our vertex buffer */
+ OUT_BATCH(BRW_3DSTATE_VERTEX_BUFFERS | 3);
+ /* four 32-bit floats per vertex */
+ OUT_BATCH((0 << VB0_BUFFER_INDEX_SHIFT) |
+ VB0_VERTEXDATA | ((4 * 4) << VB0_BUFFER_PITCH_SHIFT));
+ OUT_RELOC(vb_bo, I915_GEM_DOMAIN_VERTEX, 0, 0);
+ if (IS_GEN5(intel))
+ OUT_RELOC(vb_bo, I915_GEM_DOMAIN_VERTEX, 0,
+ i * 4);
+ else
+ OUT_BATCH(3); /* four corners to our rectangle */
+ OUT_BATCH(0); /* reserved */
+
+ OUT_BATCH(BRW_3DPRIMITIVE | BRW_3DPRIMITIVE_VERTEX_SEQUENTIAL | (_3DPRIM_RECTLIST << BRW_3DPRIMITIVE_TOPOLOGY_SHIFT) | (0 << 9) | /* CTG - indirect vertex count */
+ 4);
+ OUT_BATCH(3); /* vertex count per instance */
+ OUT_BATCH(0); /* start vertex offset */
+ OUT_BATCH(1); /* single instance */
+ OUT_BATCH(0); /* start instance location */
+ OUT_BATCH(0); /* index buffer offset, ignored */
+ OUT_BATCH(MI_NOOP);
+
+ intel_batch_end_atomic(scrn);
+
+ drm_intel_bo_unreference(vb_bo);
+
+ if (IS_GEN4(intel))
+ i965_post_draw_debug(scrn);
+
+ }
+
+ /* release reference once we're finished */
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+
+ intel_debug_flush(scrn);
+}
+
+void i965_free_video(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ drm_intel_bo_unreference(intel->video.gen4_vs_bo);
+ intel->video.gen4_vs_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen4_sf_bo);
+ intel->video.gen4_sf_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen4_cc_bo);
+ intel->video.gen4_cc_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen4_wm_packed_bo);
+ intel->video.gen4_wm_packed_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen4_wm_planar_bo);
+ intel->video.gen4_wm_planar_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen4_cc_vp_bo);
+ intel->video.gen4_cc_vp_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen4_sampler_bo);
+ intel->video.gen4_sampler_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen4_sip_kernel_bo);
+ intel->video.gen4_sip_kernel_bo = NULL;
+ drm_intel_bo_unreference(intel->video.wm_prog_packed_bo);
+ intel->video.wm_prog_packed_bo = NULL;
+ drm_intel_bo_unreference(intel->video.wm_prog_planar_bo);
+ intel->video.wm_prog_planar_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen6_blend_bo);
+ intel->video.gen6_blend_bo = NULL;
+ drm_intel_bo_unreference(intel->video.gen6_depth_stencil_bo);
+ intel->video.gen6_depth_stencil_bo = NULL;
+}
+
+/* for GEN6+ */
+static drm_intel_bo *
+gen6_create_cc_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct gen6_color_calc_state *cc_state;
+ drm_intel_bo *cc_bo;
+
+ if (intel_alloc_and_map(
+ intel,
+ "textured video cc state",
+ sizeof(*cc_state),
+ &cc_bo,
+ &cc_state) != 0)
+ return NULL;
+
+ cc_state->constant_r = 1.0;
+ cc_state->constant_g = 0.0;
+ cc_state->constant_b = 1.0;
+ cc_state->constant_a = 1.0;
+
+ drm_intel_bo_unmap(cc_bo);
+ return cc_bo;
+}
+
+static drm_intel_bo *
+gen6_create_blend_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct gen6_blend_state *blend_state;
+ drm_intel_bo *blend_bo;
+
+ if (intel_alloc_and_map(
+ intel,
+ "textured video blend state",
+ sizeof(*blend_state),
+ &blend_bo,
+ &blend_state) != 0)
+ return NULL;
+
+ blend_state->blend1.logic_op_enable = 1;
+ blend_state->blend1.logic_op_func = 0xc;
+
+ drm_intel_bo_unmap(blend_bo);
+ return blend_bo;
+}
+
+static drm_intel_bo *
+gen6_create_depth_stencil_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct gen6_depth_stencil_state *depth_stencil_state;
+ drm_intel_bo *depth_stencil_bo;
+
+ if (intel_alloc_and_map(
+ intel,
+ "textured video blend state",
+ sizeof(*depth_stencil_state),
+ &depth_stencil_bo,
+ &depth_stencil_state) != 0)
+ return NULL;
+
+ drm_intel_bo_unmap(depth_stencil_bo);
+ return depth_stencil_bo;
+}
+
+static Bool
+gen6_create_vidoe_objects(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (intel->video.gen4_sampler_bo == NULL)
+ intel->video.gen4_sampler_bo = i965_create_sampler_state(scrn);
+
+ if (intel->video.wm_prog_packed_bo == NULL)
+ intel->video.wm_prog_packed_bo =
+ i965_create_program(scrn,
+ &ps_kernel_packed_static_gen6[0][0],
+ sizeof(ps_kernel_packed_static_gen6));
+
+ if (intel->video.wm_prog_planar_bo == NULL)
+ intel->video.wm_prog_planar_bo =
+ i965_create_program(scrn,
+ &ps_kernel_planar_static_gen6[0][0],
+ sizeof(ps_kernel_planar_static_gen6));
+
+ if (intel->video.gen4_cc_vp_bo == NULL)
+ intel->video.gen4_cc_vp_bo = i965_create_cc_vp_state(scrn);
+
+ if (intel->video.gen4_cc_bo == NULL)
+ intel->video.gen4_cc_bo = gen6_create_cc_state(scrn);
+
+ if (intel->video.gen6_blend_bo == NULL)
+ intel->video.gen6_blend_bo = gen6_create_blend_state(scrn);
+
+ if (intel->video.gen6_depth_stencil_bo == NULL)
+ intel->video.gen6_depth_stencil_bo = gen6_create_depth_stencil_state(scrn);
+
+
+ return (intel->video.gen4_sampler_bo != NULL &&
+ intel->video.wm_prog_packed_bo != NULL &&
+ intel->video.wm_prog_planar_bo != NULL &&
+ intel->video.gen4_cc_vp_bo != NULL &&
+ intel->video.gen4_cc_bo != NULL &&
+ intel->video.gen6_blend_bo != NULL &&
+ intel->video.gen6_depth_stencil_bo != NULL);
+}
+
+static void
+gen6_upload_invarient_states(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(BRW_PIPE_CONTROL | (4 - 2));
+ OUT_BATCH(BRW_PIPE_CONTROL_IS_FLUSH |
+ BRW_PIPE_CONTROL_WC_FLUSH |
+ BRW_PIPE_CONTROL_DEPTH_CACHE_FLUSH |
+ BRW_PIPE_CONTROL_NOWRITE);
+ OUT_BATCH(0); /* write address */
+ OUT_BATCH(0); /* write data */
+
+ OUT_BATCH(NEW_PIPELINE_SELECT | PIPELINE_SELECT_3D);
+
+ OUT_BATCH(GEN6_3DSTATE_MULTISAMPLE | (3 - 2));
+ OUT_BATCH(GEN6_3DSTATE_MULTISAMPLE_PIXEL_LOCATION_CENTER |
+ GEN6_3DSTATE_MULTISAMPLE_NUMSAMPLES_1); /* 1 sample/pixel */
+ OUT_BATCH(0);
+
+ OUT_BATCH(GEN6_3DSTATE_SAMPLE_MASK | (2 - 2));
+ OUT_BATCH(1);
+
+ /* Set system instruction pointer */
+ OUT_BATCH(BRW_STATE_SIP | 0);
+ OUT_BATCH(0);
+}
+
+static void
+gen6_upload_state_base_address(ScrnInfoPtr scrn, drm_intel_bo *surface_state_binding_table_bo)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | (10 - 2));
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* General state base address */
+ OUT_RELOC(surface_state_binding_table_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, BASE_ADDRESS_MODIFY); /* Surface state base address */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Dynamic state base address */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Indirect object base address */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Instruction base address */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* General state upper bound */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Dynamic state upper bound */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Indirect object upper bound */
+ OUT_BATCH(BASE_ADDRESS_MODIFY); /* Instruction access upper bound */
+}
+
+static void
+gen6_upload_viewport_state_pointers(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(GEN6_3DSTATE_VIEWPORT_STATE_POINTERS |
+ GEN6_3DSTATE_VIEWPORT_STATE_MODIFY_CC |
+ (4 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_RELOC(intel->video.gen4_cc_vp_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+}
+
+static void
+gen6_upload_urb(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(GEN6_3DSTATE_URB | (3 - 2));
+ OUT_BATCH(((1 - 1) << GEN6_3DSTATE_URB_VS_SIZE_SHIFT) |
+ (24 << GEN6_3DSTATE_URB_VS_ENTRIES_SHIFT)); /* at least 24 on GEN6 */
+ OUT_BATCH((0 << GEN6_3DSTATE_URB_GS_SIZE_SHIFT) |
+ (0 << GEN6_3DSTATE_URB_GS_ENTRIES_SHIFT)); /* no GS thread */
+}
+
+static void
+gen6_upload_cc_state_pointers(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(GEN6_3DSTATE_CC_STATE_POINTERS | (4 - 2));
+ OUT_RELOC(intel->video.gen6_blend_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
+ OUT_RELOC(intel->video.gen6_depth_stencil_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
+ OUT_RELOC(intel->video.gen4_cc_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 1);
+}
+
+static void
+gen6_upload_sampler_state_pointers(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(GEN6_3DSTATE_SAMPLER_STATE_POINTERS |
+ GEN6_3DSTATE_SAMPLER_STATE_MODIFY_PS |
+ (4 - 2));
+ OUT_BATCH(0); /* VS */
+ OUT_BATCH(0); /* GS */
+ OUT_RELOC(intel->video.gen4_sampler_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+}
+
+static void
+gen6_upload_binding_table(ScrnInfoPtr scrn, uint32_t ps_binding_table_offset)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* Binding table pointers */
+ OUT_BATCH(BRW_3DSTATE_BINDING_TABLE_POINTERS |
+ GEN6_3DSTATE_BINDING_TABLE_MODIFY_PS |
+ (4 - 2));
+ OUT_BATCH(0); /* vs */
+ OUT_BATCH(0); /* gs */
+ /* Only the PS uses the binding table */
+ OUT_BATCH(ps_binding_table_offset);
+}
+
+static void
+gen6_upload_depth_buffer_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(BRW_3DSTATE_DEPTH_BUFFER | (7 - 2));
+ OUT_BATCH((BRW_SURFACE_NULL << BRW_3DSTATE_DEPTH_BUFFER_TYPE_SHIFT) |
+ (BRW_DEPTHFORMAT_D32_FLOAT << BRW_3DSTATE_DEPTH_BUFFER_FORMAT_SHIFT));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(BRW_3DSTATE_CLEAR_PARAMS | (2 - 2));
+ OUT_BATCH(0);
+}
+
+static void
+gen6_upload_drawing_rectangle(ScrnInfoPtr scrn, PixmapPtr pixmap)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(BRW_3DSTATE_DRAWING_RECTANGLE | 2);
+ OUT_BATCH(0x00000000); /* ymin, xmin */
+ OUT_BATCH((pixmap->drawable.width - 1) | (pixmap->drawable.height - 1) << 16); /* ymax, xmax */
+ OUT_BATCH(0x00000000); /* yorigin, xorigin */
+}
+
+static void
+gen6_upload_vs_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* disable VS constant buffer */
+ OUT_BATCH(GEN6_3DSTATE_CONSTANT_VS | (5 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(GEN6_3DSTATE_VS | (6 - 2));
+ OUT_BATCH(0); /* without VS kernel */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* pass-through */
+}
+
+static void
+gen6_upload_gs_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* disable GS constant buffer */
+ OUT_BATCH(GEN6_3DSTATE_CONSTANT_GS | (5 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(GEN6_3DSTATE_GS | (7 - 2));
+ OUT_BATCH(0); /* without GS kernel */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* pass-through */
+}
+
+static void
+gen6_upload_clip_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(GEN6_3DSTATE_CLIP | (4 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* pass-through */
+ OUT_BATCH(0);
+}
+
+static void
+gen6_upload_sf_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ OUT_BATCH(GEN6_3DSTATE_SF | (20 - 2));
+ OUT_BATCH((1 << GEN6_3DSTATE_SF_NUM_OUTPUTS_SHIFT) |
+ (1 << GEN6_3DSTATE_SF_URB_ENTRY_READ_LENGTH_SHIFT) |
+ (0 << GEN6_3DSTATE_SF_URB_ENTRY_READ_OFFSET_SHIFT));
+ OUT_BATCH(0);
+ OUT_BATCH(GEN6_3DSTATE_SF_CULL_NONE);
+ OUT_BATCH(2 << GEN6_3DSTATE_SF_TRIFAN_PROVOKE_SHIFT); /* DW4 */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* DW9 */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* DW14 */
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0); /* DW19 */
+}
+
+static void
+gen6_upload_wm_state(ScrnInfoPtr scrn, Bool is_packed)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* disable WM constant buffer */
+ OUT_BATCH(GEN6_3DSTATE_CONSTANT_PS | (5 - 2));
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+
+ OUT_BATCH(GEN6_3DSTATE_WM | (9 - 2));
+ if (is_packed) {
+ OUT_RELOC(intel->video.wm_prog_packed_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0,
+ 0);
+ OUT_BATCH((1 << GEN6_3DSTATE_WM_SAMPLER_COUNT_SHITF) |
+ (2 << GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT));
+ } else {
+ OUT_RELOC(intel->video.wm_prog_planar_bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0,
+ 0);
+ OUT_BATCH((1 << GEN6_3DSTATE_WM_SAMPLER_COUNT_SHITF) |
+ (7 << GEN6_3DSTATE_WM_BINDING_TABLE_ENTRY_COUNT_SHIFT));
+ }
+ OUT_BATCH(0);
+ OUT_BATCH((6 << GEN6_3DSTATE_WM_DISPATCH_START_GRF_0_SHIFT)); /* DW4 */
+ OUT_BATCH(((40 - 1) << GEN6_3DSTATE_WM_MAX_THREADS_SHIFT) |
+ GEN6_3DSTATE_WM_DISPATCH_ENABLE |
+ GEN6_3DSTATE_WM_16_DISPATCH_ENABLE);
+ OUT_BATCH((1 << GEN6_3DSTATE_WM_NUM_SF_OUTPUTS_SHIFT) |
+ GEN6_3DSTATE_WM_PERSPECTIVE_PIXEL_BARYCENTRIC);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+}
+
+static void
+gen6_upload_vertex_element_state(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* Set up our vertex elements, sourced from the single vertex buffer. */
+ OUT_BATCH(BRW_3DSTATE_VERTEX_ELEMENTS | (5 - 2));
+ /* offset 0: X,Y -> {X, Y, 1.0, 1.0} */
+ OUT_BATCH((0 << GEN6_VE0_VERTEX_BUFFER_INDEX_SHIFT) |
+ GEN6_VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (0 << VE0_OFFSET_SHIFT));
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+ /* offset 8: S0, T0 -> {S0, T0, 1.0, 1.0} */
+ OUT_BATCH((0 << GEN6_VE0_VERTEX_BUFFER_INDEX_SHIFT) |
+ GEN6_VE0_VALID |
+ (BRW_SURFACEFORMAT_R32G32_FLOAT << VE0_FORMAT_SHIFT) |
+ (8 << VE0_OFFSET_SHIFT));
+ OUT_BATCH((BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_0_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_SRC << VE1_VFCOMPONENT_1_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_2_SHIFT) |
+ (BRW_VFCOMPONENT_STORE_1_FLT << VE1_VFCOMPONENT_3_SHIFT));
+}
+
+static void
+gen6_emit_video_setup(ScrnInfoPtr scrn, drm_intel_bo *surface_state_binding_table_bo, int n_src_surf, PixmapPtr pixmap)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ assert(n_src_surf == 1 || n_src_surf == 6);
+ IntelEmitInvarientState(scrn);
+ intel->last_3d = LAST_3D_VIDEO;
+
+ gen6_upload_invarient_states(scrn);
+ gen6_upload_state_base_address(scrn, surface_state_binding_table_bo);
+ gen6_upload_viewport_state_pointers(scrn);
+ gen6_upload_urb(scrn);
+ gen6_upload_cc_state_pointers(scrn);
+ gen6_upload_sampler_state_pointers(scrn);
+ gen6_upload_vs_state(scrn);
+ gen6_upload_gs_state(scrn);
+ gen6_upload_clip_state(scrn);
+ gen6_upload_sf_state(scrn);
+ gen6_upload_wm_state(scrn, n_src_surf == 1 ? TRUE : FALSE);
+ gen6_upload_binding_table(scrn, (n_src_surf + 1) * ALIGN(sizeof(struct brw_surface_state), 32));;
+ gen6_upload_depth_buffer_state(scrn);
+ gen6_upload_drawing_rectangle(scrn, pixmap);
+ gen6_upload_vertex_element_state(scrn);
+}
+
+void Gen6DisplayVideoTextured(ScrnInfoPtr scrn,
+ intel_adaptor_private *adaptor_priv, int id,
+ RegionPtr dstRegion,
+ short width, short height,
+ int video_pitch, int video_pitch2,
+ short src_w, short src_h,
+ short drw_w, short drw_h, PixmapPtr pixmap)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ BoxPtr pbox;
+ int nbox, dxo, dyo, pix_xoff, pix_yoff;
+ float src_scale_x, src_scale_y;
+ int src_surf;
+ int n_src_surf;
+ uint32_t src_surf_format;
+ uint32_t src_surf_base[6];
+ int src_width[6];
+ int src_height[6];
+ int src_pitch[6];
+ drm_intel_bo *surface_state_binding_table_bo;
+
+ src_surf_base[0] = adaptor_priv->YBufOffset;
+ src_surf_base[1] = adaptor_priv->YBufOffset;
+ src_surf_base[2] = adaptor_priv->VBufOffset;
+ src_surf_base[3] = adaptor_priv->VBufOffset;
+ src_surf_base[4] = adaptor_priv->UBufOffset;
+ src_surf_base[5] = adaptor_priv->UBufOffset;
+
+ if (is_planar_fourcc(id)) {
+ src_surf_format = BRW_SURFACEFORMAT_R8_UNORM;
+ src_width[1] = src_width[0] = width;
+ src_height[1] = src_height[0] = height;
+ src_pitch[1] = src_pitch[0] = video_pitch2;
+ src_width[4] = src_width[5] = src_width[2] = src_width[3] =
+ width / 2;
+ src_height[4] = src_height[5] = src_height[2] = src_height[3] =
+ height / 2;
+ src_pitch[4] = src_pitch[5] = src_pitch[2] = src_pitch[3] =
+ video_pitch;
+ n_src_surf = 6;
+ } else {
+ if (id == FOURCC_UYVY)
+ src_surf_format = BRW_SURFACEFORMAT_YCRCB_SWAPY;
+ else
+ src_surf_format = BRW_SURFACEFORMAT_YCRCB_NORMAL;
+
+ src_width[0] = width;
+ src_height[0] = height;
+ src_pitch[0] = video_pitch;
+ n_src_surf = 1;
+ }
+
+ surface_state_binding_table_bo =
+ drm_intel_bo_alloc(intel->bufmgr,
+ "surface state & binding table",
+ (n_src_surf + 1) * (ALIGN(sizeof(struct brw_surface_state), 32) + sizeof(uint32_t)),
+ 4096);
+
+ if (!surface_state_binding_table_bo)
+ return;
+
+ i965_create_dst_surface_state(scrn, pixmap, surface_state_binding_table_bo, 0);
+
+ for (src_surf = 0; src_surf < n_src_surf; src_surf++) {
+ i965_create_src_surface_state(scrn,
+ adaptor_priv->buf,
+ src_surf_base[src_surf],
+ src_width[src_surf],
+ src_height[src_surf],
+ src_pitch[src_surf],
+ src_surf_format,
+ surface_state_binding_table_bo,
+ (src_surf + 1) * ALIGN(sizeof(struct brw_surface_state), 32));
+ }
+
+ i965_create_binding_table(scrn, surface_state_binding_table_bo, n_src_surf + 1);
+
+ if (!gen6_create_vidoe_objects(scrn)) {
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ return;
+ }
+
+ /* Set up the offset for translating from the given region (in screen
+ * coordinates) to the backing pixmap.
+ */
+#ifdef COMPOSITE
+ pix_xoff = -pixmap->screen_x + pixmap->drawable.x;
+ pix_yoff = -pixmap->screen_y + pixmap->drawable.y;
+#else
+ pix_xoff = 0;
+ pix_yoff = 0;
+#endif
+
+ dxo = dstRegion->extents.x1;
+ dyo = dstRegion->extents.y1;
+
+ /* Use normalized texture coordinates */
+ src_scale_x = ((float)src_w / width) / (float)drw_w;
+ src_scale_y = ((float)src_h / height) / (float)drw_h;
+
+ pbox = REGION_RECTS(dstRegion);
+ nbox = REGION_NUM_RECTS(dstRegion);
+ while (nbox--) {
+ int box_x1 = pbox->x1;
+ int box_y1 = pbox->y1;
+ int box_x2 = pbox->x2;
+ int box_y2 = pbox->y2;
+ int i;
+ drm_intel_bo *vb_bo;
+ float *vb;
+ drm_intel_bo *bo_table[] = {
+ NULL, /* vb_bo */
+ intel->batch_bo,
+ surface_state_binding_table_bo,
+ intel->video.gen4_sampler_bo,
+ intel->video.wm_prog_packed_bo,
+ intel->video.wm_prog_planar_bo,
+ intel->video.gen4_cc_vp_bo,
+ intel->video.gen4_cc_bo,
+ intel->video.gen6_blend_bo,
+ intel->video.gen6_depth_stencil_bo,
+ };
+
+ pbox++;
+
+ if (intel_alloc_and_map(intel, "textured video vb", 4096,
+ &vb_bo, &vb) != 0)
+ break;
+ bo_table[0] = vb_bo;
+
+ i = 0;
+ vb[i++] = (box_x2 - dxo) * src_scale_x;
+ vb[i++] = (box_y2 - dyo) * src_scale_y;
+ vb[i++] = (float)box_x2 + pix_xoff;
+ vb[i++] = (float)box_y2 + pix_yoff;
+
+ vb[i++] = (box_x1 - dxo) * src_scale_x;
+ vb[i++] = (box_y2 - dyo) * src_scale_y;
+ vb[i++] = (float)box_x1 + pix_xoff;
+ vb[i++] = (float)box_y2 + pix_yoff;
+
+ vb[i++] = (box_x1 - dxo) * src_scale_x;
+ vb[i++] = (box_y1 - dyo) * src_scale_y;
+ vb[i++] = (float)box_x1 + pix_xoff;
+ vb[i++] = (float)box_y1 + pix_yoff;
+
+ drm_intel_bo_unmap(vb_bo);
+
+ /* If this command won't fit in the current batch, flush.
+ * Assume that it does after being flushed.
+ */
+ if (drm_intel_bufmgr_check_aperture_space(bo_table, ARRAY_SIZE(bo_table)) < 0)
+ intel_batch_submit(scrn);
+
+ intel_batch_start_atomic(scrn, 200);
+ gen6_emit_video_setup(scrn, surface_state_binding_table_bo, n_src_surf, pixmap);
+
+ /* Set up the pointer to our vertex buffer */
+ OUT_BATCH(BRW_3DSTATE_VERTEX_BUFFERS | (5 - 2));
+ /* four 32-bit floats per vertex */
+ OUT_BATCH((0 << GEN6_VB0_BUFFER_INDEX_SHIFT) |
+ GEN6_VB0_VERTEXDATA |
+ ((4 * 4) << VB0_BUFFER_PITCH_SHIFT));
+ OUT_RELOC(vb_bo, I915_GEM_DOMAIN_VERTEX, 0, 0);
+ OUT_RELOC(vb_bo, I915_GEM_DOMAIN_VERTEX, 0, i * 4);
+ OUT_BATCH(0); /* reserved */
+
+ OUT_BATCH(BRW_3DPRIMITIVE |
+ BRW_3DPRIMITIVE_VERTEX_SEQUENTIAL |
+ (_3DPRIM_RECTLIST << BRW_3DPRIMITIVE_TOPOLOGY_SHIFT) |
+ (0 << 9) | /* Internal Vertex Count */
+ (6 - 2));
+ OUT_BATCH(3); /* vertex count per instance */
+ OUT_BATCH(0); /* start vertex offset */
+ OUT_BATCH(1); /* single instance */
+ OUT_BATCH(0); /* start instance location */
+ OUT_BATCH(0); /* index buffer offset, ignored */
+
+ intel_batch_end_atomic(scrn);
+ drm_intel_bo_unreference(vb_bo);
+ }
+
+ /* release reference once we're finished */
+ drm_intel_bo_unreference(surface_state_binding_table_bo);
+ intel_debug_flush(scrn);
+}
diff --git a/src/intel.h b/src/intel.h
new file mode 100644
index 0000000..2b114c3
--- /dev/null
+++ b/src/intel.h
@@ -0,0 +1,699 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+Copyright © 2002 David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ * David Dawes <dawes@xfree86.org>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#if 0
+#define I830DEBUG
+#endif
+
+#include <stdint.h>
+
+#ifndef REMAP_RESERVED
+#define REMAP_RESERVED 0
+#endif
+
+#ifndef _I830_H_
+#define _I830_H_
+
+#include "xf86_OSproc.h"
+#include "compiler.h"
+#include "xf86PciInfo.h"
+#include "xf86Pci.h"
+#include "xf86Cursor.h"
+#include "xf86xv.h"
+#include "vgaHW.h"
+#include "xf86Crtc.h"
+#include "xf86RandR12.h"
+
+#include "xorg-server.h"
+#include <pciaccess.h>
+
+#include "xf86drm.h"
+#include "sarea.h"
+#define _XF86DRI_SERVER_
+#include "dri.h"
+#include "dri2.h"
+#include "intel_bufmgr.h"
+#include "i915_drm.h"
+
+#include "intel_driver.h"
+
+#if HAVE_UDEV
+#include <libudev.h>
+#endif
+
+#include "uxa.h"
+/* XXX
+ * The X server gained an *almost* identical implementation in 1.9.
+ *
+ * Remove this duplicate code either in 2.16 (when we can depend upon 1.9)
+ * or the drivers are merged back into the xserver tree, whichever happens
+ * earlier.
+ */
+
+#ifndef _LIST_H_
+/* classic doubly-link circular list */
+struct list {
+ struct list *next, *prev;
+};
+
+static void
+list_init(struct list *list)
+{
+ list->next = list->prev = list;
+}
+
+static inline void
+__list_add(struct list *entry,
+ struct list *prev,
+ struct list *next)
+{
+ next->prev = entry;
+ entry->next = next;
+ entry->prev = prev;
+ prev->next = entry;
+}
+
+static inline void
+list_add(struct list *entry, struct list *head)
+{
+ __list_add(entry, head, head->next);
+}
+
+static inline void
+__list_del(struct list *prev, struct list *next)
+{
+ next->prev = prev;
+ prev->next = next;
+}
+
+static inline void
+list_del(struct list *entry)
+{
+ __list_del(entry->prev, entry->next);
+ list_init(entry);
+}
+
+static inline Bool
+list_is_empty(struct list *head)
+{
+ return head->next == head;
+}
+#endif
+
+/* XXX work around a broken define in list.h currently [ickle 20100713] */
+#undef container_of
+
+#ifndef container_of
+#define container_of(ptr, type, member) \
+ ((type *)((char *)(ptr) - (char *) &((type *)0)->member))
+#endif
+
+#ifndef list_entry
+#define list_entry(ptr, type, member) \
+ container_of(ptr, type, member)
+#endif
+
+#ifndef list_first_entry
+#define list_first_entry(ptr, type, member) \
+ list_entry((ptr)->next, type, member)
+#endif
+
+#ifndef list_foreach
+#define list_foreach(pos, head) \
+ for (pos = (head)->next; pos != (head); pos = pos->next)
+#endif
+
+/* XXX list.h from xserver-1.9 uses a GCC-ism to avoid having to pass type */
+#ifndef list_foreach_entry
+#define list_foreach_entry(pos, type, head, member) \
+ for (pos = list_entry((head)->next, type, member);\
+ &pos->member != (head); \
+ pos = list_entry(pos->member.next, type, member))
+#endif
+
+/* remain compatible to xorg-server 1.6 */
+#ifndef MONITOR_EDID_COMPLETE_RAWDATA
+#define MONITOR_EDID_COMPLETE_RAWDATA EDID_COMPLETE_RAWDATA
+#endif
+
+struct intel_pixmap {
+ dri_bo *bo;
+
+ struct list flush, batch, in_flight;
+
+ uint16_t src_bound, dst_bound;
+ uint16_t stride;
+ uint8_t tiling;
+ int8_t busy :2;
+ int8_t batch_write :1;
+ int8_t offscreen :1;
+ int8_t pinned :1;
+};
+
+#if HAS_DEVPRIVATEKEYREC
+extern DevPrivateKeyRec uxa_pixmap_index;
+#else
+extern int uxa_pixmap_index;
+#endif
+
+static inline struct intel_pixmap *intel_get_pixmap_private(PixmapPtr pixmap)
+{
+#if HAS_DEVPRIVATEKEYREC
+ return dixGetPrivate(&pixmap->devPrivates, &uxa_pixmap_index);
+#else
+ return dixLookupPrivate(&pixmap->devPrivates, &uxa_pixmap_index);
+#endif
+}
+
+static inline Bool intel_pixmap_is_busy(struct intel_pixmap *priv)
+{
+ if (priv->busy == -1)
+ priv->busy = drm_intel_bo_busy(priv->bo);
+ return priv->busy;
+}
+
+static inline void intel_set_pixmap_private(PixmapPtr pixmap, struct intel_pixmap *intel)
+{
+ dixSetPrivate(&pixmap->devPrivates, &uxa_pixmap_index, intel);
+}
+
+static inline Bool intel_pixmap_is_dirty(PixmapPtr pixmap)
+{
+ return !list_is_empty(&intel_get_pixmap_private(pixmap)->flush);
+}
+
+static inline Bool intel_pixmap_tiled(PixmapPtr pixmap)
+{
+ return intel_get_pixmap_private(pixmap)->tiling != I915_TILING_NONE;
+}
+
+dri_bo *intel_get_pixmap_bo(PixmapPtr pixmap);
+void intel_set_pixmap_bo(PixmapPtr pixmap, dri_bo * bo);
+
+#include "common.h"
+
+#ifdef XvMCExtension
+#ifdef ENABLE_XVMC
+#define INTEL_XVMC 1
+#endif
+#endif
+
+#define PITCH_NONE 0
+
+/** enumeration of 3d consumers so some can maintain invariant state. */
+enum last_3d {
+ LAST_3D_OTHER,
+ LAST_3D_VIDEO,
+ LAST_3D_RENDER,
+ LAST_3D_ROTATION
+};
+
+enum dri_type {
+ DRI_DISABLED,
+ DRI_NONE,
+ DRI_DRI2
+};
+
+typedef struct intel_screen_private {
+ ScrnInfoPtr scrn;
+ int cpp;
+
+#define RENDER_BATCH I915_EXEC_RENDER
+#define BLT_BATCH I915_EXEC_BLT
+ unsigned int current_batch;
+
+ void *modes;
+ drm_intel_bo *front_buffer;
+ long front_pitch, front_tiling;
+ void *shadow_buffer;
+ int shadow_stride;
+ DamagePtr shadow_damage;
+
+ dri_bufmgr *bufmgr;
+
+ uint32_t batch_ptr[4096];
+ /** Byte offset in batch_ptr for the next dword to be emitted. */
+ unsigned int batch_used;
+ /** Position in batch_ptr at the start of the current BEGIN_BATCH */
+ unsigned int batch_emit_start;
+ /** Number of bytes to be emitted in the current BEGIN_BATCH. */
+ uint32_t batch_emitting;
+ dri_bo *batch_bo;
+ /** Whether we're in a section of code that can't tolerate flushing */
+ Bool in_batch_atomic;
+ /** Ending batch_used that was verified by intel_start_batch_atomic() */
+ int batch_atomic_limit;
+ struct list batch_pixmaps;
+ struct list flush_pixmaps;
+ struct list in_flight;
+
+ /* For Xvideo */
+ Bool use_overlay;
+#ifdef INTEL_XVMC
+ /* For XvMC */
+ Bool XvMCEnabled;
+#endif
+
+ CreateScreenResourcesProcPtr CreateScreenResources;
+
+ Bool shadow_present;
+
+ unsigned int tiling;
+#define INTEL_TILING_FB 0x1
+#define INTEL_TILING_2D 0x2
+#define INTEL_TILING_3D 0x4
+#define INTEL_TILING_ALL (~0)
+
+ Bool swapbuffers_wait;
+ Bool has_relaxed_fencing;
+
+ int Chipset;
+ EntityInfoPtr pEnt;
+ struct pci_device *PciInfo;
+ struct intel_chipset chipset;
+
+ unsigned int BR[20];
+
+ CloseScreenProcPtr CloseScreen;
+
+ void (*context_switch) (struct intel_screen_private *intel,
+ int new_mode);
+ void (*vertex_flush) (struct intel_screen_private *intel);
+ void (*batch_flush) (struct intel_screen_private *intel);
+ void (*batch_commit_notify) (struct intel_screen_private *intel);
+
+ uxa_driver_t *uxa_driver;
+ Bool need_sync;
+ int accel_pixmap_offset_alignment;
+ int accel_max_x;
+ int accel_max_y;
+ int max_bo_size;
+ int max_gtt_map_size;
+ int max_tiling_size;
+
+ Bool XvDisabled; /* Xv disabled in PreInit. */
+ Bool XvEnabled; /* Xv enabled for this generation. */
+ Bool XvPreferOverlay;
+
+ int colorKey;
+ XF86VideoAdaptorPtr adaptor;
+ ScreenBlockHandlerProcPtr BlockHandler;
+ Bool overlayOn;
+
+ struct {
+ drm_intel_bo *gen4_vs_bo;
+ drm_intel_bo *gen4_sf_bo;
+ drm_intel_bo *gen4_wm_packed_bo;
+ drm_intel_bo *gen4_wm_planar_bo;
+ drm_intel_bo *gen4_cc_bo;
+ drm_intel_bo *gen4_cc_vp_bo;
+ drm_intel_bo *gen4_sampler_bo;
+ drm_intel_bo *gen4_sip_kernel_bo;
+ drm_intel_bo *wm_prog_packed_bo;
+ drm_intel_bo *wm_prog_planar_bo;
+ drm_intel_bo *gen6_blend_bo;
+ drm_intel_bo *gen6_depth_stencil_bo;
+ } video;
+
+ /* Render accel state */
+ float scale_units[2][2];
+ /** Transform pointers for src/mask, or NULL if identity */
+ PictTransform *transform[2];
+
+ PixmapPtr render_source, render_mask, render_dest;
+ PicturePtr render_source_picture, render_mask_picture, render_dest_picture;
+ CARD32 render_source_solid;
+ CARD32 render_mask_solid;
+ PixmapPtr render_current_dest;
+ Bool render_source_is_solid;
+ Bool render_mask_is_solid;
+ Bool needs_3d_invariant;
+ Bool needs_render_state_emit;
+ Bool needs_render_vertex_emit;
+ Bool needs_render_ca_pass;
+
+ /* i830 render accel state */
+ uint32_t render_dest_format;
+ uint32_t cblend, ablend, s8_blendctl;
+
+ /* i915 render accel state */
+ PixmapPtr texture[2];
+ uint32_t mapstate[6];
+ uint32_t samplerstate[6];
+
+ struct {
+ int op;
+ uint32_t dst_format;
+ } i915_render_state;
+
+ struct {
+ int num_sf_outputs;
+ int drawrect;
+ uint32_t blend;
+ dri_bo *samplers;
+ dri_bo *kernel;
+ } gen6_render_state;
+
+ uint32_t prim_offset;
+ void (*prim_emit)(struct intel_screen_private *intel,
+ int srcX, int srcY,
+ int maskX, int maskY,
+ int dstX, int dstY,
+ int w, int h);
+ int floats_per_vertex;
+ int last_floats_per_vertex;
+ uint16_t vertex_offset;
+ uint16_t vertex_count;
+ uint16_t vertex_index;
+ uint16_t vertex_used;
+ uint32_t vertex_id;
+ float vertex_ptr[4*1024];
+ dri_bo *vertex_bo;
+
+ uint8_t surface_data[16*1024];
+ uint16_t surface_used;
+ uint16_t surface_table;
+ uint32_t surface_reloc;
+ dri_bo *surface_bo;
+
+ /* 965 render acceleration state */
+ struct gen4_render_state *gen4_render_state;
+
+ enum dri_type directRenderingType; /* DRI enabled this generation. */
+
+ Bool directRenderingOpen;
+ int drmSubFD;
+ char *deviceName;
+
+ Bool use_pageflipping;
+ Bool force_fallback;
+ Bool can_blt;
+ Bool has_kernel_flush;
+ Bool needs_flush;
+ Bool use_shadow;
+
+ /* Broken-out options. */
+ OptionInfoPtr Options;
+
+ /* Driver phase/state information */
+ Bool suspended;
+
+ enum last_3d last_3d;
+
+ /**
+ * User option to print acceleration fallback info to the server log.
+ */
+ Bool fallback_debug;
+ unsigned debug_flush;
+#if HAVE_UDEV
+ struct udev_monitor *uevent_monitor;
+ InputHandlerProc uevent_handler;
+#endif
+} intel_screen_private;
+
+enum {
+ DEBUG_FLUSH_BATCHES = 0x1,
+ DEBUG_FLUSH_CACHES = 0x2,
+ DEBUG_FLUSH_WAIT = 0x4,
+};
+
+extern Bool intel_mode_pre_init(ScrnInfoPtr pScrn, int fd, int cpp);
+extern void intel_mode_init(struct intel_screen_private *intel);
+extern void intel_mode_remove_fb(intel_screen_private *intel);
+extern void intel_mode_fini(intel_screen_private *intel);
+
+extern int intel_get_pipe_from_crtc_id(drm_intel_bufmgr *bufmgr, xf86CrtcPtr crtc);
+extern int intel_crtc_id(xf86CrtcPtr crtc);
+extern int intel_output_dpms_status(xf86OutputPtr output);
+
+enum DRI2FrameEventType {
+ DRI2_SWAP,
+ DRI2_FLIP,
+ DRI2_WAITMSC,
+};
+
+#if XORG_VERSION_CURRENT <= XORG_VERSION_NUMERIC(1,7,99,3,0)
+typedef void (*DRI2SwapEventPtr)(ClientPtr client, void *data, int type,
+ CARD64 ust, CARD64 msc, CARD64 sbc);
+#endif
+
+typedef struct _DRI2FrameEvent {
+ XID drawable_id;
+ XID client_id; /* fake client ID to track client destruction */
+ ClientPtr client;
+ enum DRI2FrameEventType type;
+ int frame;
+
+ /* for swaps & flips only */
+ DRI2SwapEventPtr event_complete;
+ void *event_data;
+ DRI2BufferPtr front;
+ DRI2BufferPtr back;
+} DRI2FrameEventRec, *DRI2FrameEventPtr;
+
+extern Bool intel_do_pageflip(intel_screen_private *intel,
+ dri_bo *new_front,
+ DRI2FrameEventPtr flip_info, int ref_crtc_hw_id);
+
+static inline intel_screen_private *
+intel_get_screen_private(ScrnInfoPtr scrn)
+{
+ return (intel_screen_private *)(scrn->driverPrivate);
+}
+
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+#define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1))
+#define MIN(a,b) ((a) < (b) ? (a) : (b))
+
+static inline unsigned long intel_pixmap_pitch(PixmapPtr pixmap)
+{
+ return (unsigned long)pixmap->devKind;
+}
+
+/* Batchbuffer support macros and functions */
+#include "intel_batchbuffer.h"
+
+/* I830 specific functions */
+extern void IntelEmitInvarientState(ScrnInfoPtr scrn);
+extern void I830EmitInvarientState(ScrnInfoPtr scrn);
+extern void I915EmitInvarientState(ScrnInfoPtr scrn);
+
+extern void I830EmitFlush(ScrnInfoPtr scrn);
+
+extern void I830InitVideo(ScreenPtr pScreen);
+extern xf86CrtcPtr intel_covering_crtc(ScrnInfoPtr scrn, BoxPtr box,
+ xf86CrtcPtr desired, BoxPtr crtc_box_ret);
+
+Bool I830DRI2ScreenInit(ScreenPtr pScreen);
+void I830DRI2CloseScreen(ScreenPtr pScreen);
+void I830DRI2FrameEventHandler(unsigned int frame, unsigned int tv_sec,
+ unsigned int tv_usec, DRI2FrameEventPtr flip_info);
+void I830DRI2FlipEventHandler(unsigned int frame, unsigned int tv_sec,
+ unsigned int tv_usec, DRI2FrameEventPtr flip_info);
+
+extern Bool intel_crtc_on(xf86CrtcPtr crtc);
+int intel_crtc_to_pipe(xf86CrtcPtr crtc);
+
+/* intel_memory.c */
+unsigned long intel_get_fence_size(intel_screen_private *intel, unsigned long size);
+unsigned long intel_get_fence_pitch(intel_screen_private *intel, unsigned long pitch,
+ uint32_t tiling_mode);
+void intel_set_gem_max_sizes(ScrnInfoPtr scrn);
+
+drm_intel_bo *intel_allocate_framebuffer(ScrnInfoPtr scrn,
+ int w, int h, int cpp,
+ unsigned long *pitch,
+ uint32_t *tiling);
+
+/* i830_render.c */
+Bool i830_check_composite(int op,
+ PicturePtr sourcec, PicturePtr mask, PicturePtr dest,
+ int width, int height);
+Bool i830_check_composite_target(PixmapPtr pixmap);
+Bool i830_check_composite_texture(ScreenPtr screen, PicturePtr picture);
+Bool i830_prepare_composite(int op, PicturePtr sourcec, PicturePtr mask,
+ PicturePtr dest, PixmapPtr sourcecPixmap,
+ PixmapPtr maskPixmap, PixmapPtr destPixmap);
+void i830_composite(PixmapPtr dest, int srcX, int srcY,
+ int maskX, int maskY, int dstX, int dstY, int w, int h);
+void i830_vertex_flush(intel_screen_private *intel);
+
+/* i915_render.c */
+Bool i915_check_composite(int op,
+ PicturePtr sourcec, PicturePtr mask, PicturePtr dest,
+ int width, int height);
+Bool i915_check_composite_target(PixmapPtr pixmap);
+Bool i915_check_composite_texture(ScreenPtr screen, PicturePtr picture);
+Bool i915_prepare_composite(int op, PicturePtr sourcec, PicturePtr mask,
+ PicturePtr dest, PixmapPtr sourcecPixmap,
+ PixmapPtr maskPixmap, PixmapPtr destPixmap);
+void i915_composite(PixmapPtr dest, int srcX, int srcY,
+ int maskX, int maskY, int dstX, int dstY, int w, int h);
+void i915_vertex_flush(intel_screen_private *intel);
+void i915_batch_commit_notify(intel_screen_private *intel);
+void i830_batch_commit_notify(intel_screen_private *intel);
+/* i965_render.c */
+unsigned int gen4_render_state_size(ScrnInfoPtr scrn);
+void gen4_render_state_init(ScrnInfoPtr scrn);
+void gen4_render_state_cleanup(ScrnInfoPtr scrn);
+Bool i965_check_composite(int op,
+ PicturePtr sourcec, PicturePtr mask, PicturePtr dest,
+ int width, int height);
+Bool i965_check_composite_texture(ScreenPtr screen, PicturePtr picture);
+Bool i965_prepare_composite(int op, PicturePtr sourcec, PicturePtr mask,
+ PicturePtr dest, PixmapPtr sourcecPixmap,
+ PixmapPtr maskPixmap, PixmapPtr destPixmap);
+void i965_composite(PixmapPtr dest, int srcX, int srcY,
+ int maskX, int maskY, int dstX, int dstY, int w, int h);
+
+void i965_vertex_flush(intel_screen_private *intel);
+void i965_batch_flush(intel_screen_private *intel);
+void i965_batch_commit_notify(intel_screen_private *intel);
+
+Bool intel_transform_is_affine(PictTransformPtr t);
+Bool
+intel_get_transformed_coordinates(int x, int y, PictTransformPtr transform,
+ float *x_out, float *y_out);
+
+Bool
+intel_get_transformed_coordinates_3d(int x, int y, PictTransformPtr transform,
+ float *x_out, float *y_out, float *z_out);
+
+static inline void
+intel_debug_fallback(ScrnInfoPtr scrn, char *format, ...)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ va_list ap;
+
+ va_start(ap, format);
+ if (intel->fallback_debug) {
+ xf86DrvMsg(scrn->scrnIndex, X_INFO, "fallback: ");
+ LogVMessageVerb(X_INFO, 1, format, ap);
+ }
+ va_end(ap);
+}
+
+static inline Bool
+intel_check_pitch_2d(PixmapPtr pixmap)
+{
+ uint32_t pitch = intel_pixmap_pitch(pixmap);
+ if (pitch > KB(32)) {
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+ intel_debug_fallback(scrn, "pitch exceeds 2d limit 32K\n");
+ return FALSE;
+ }
+ return TRUE;
+}
+
+/* For pre-965 chip only, as they have 8KB limit for 3D */
+static inline Bool
+intel_check_pitch_3d(PixmapPtr pixmap)
+{
+ uint32_t pitch = intel_pixmap_pitch(pixmap);
+ if (pitch > KB(8)) {
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+ intel_debug_fallback(scrn, "pitch exceeds 3d limit 8K\n");
+ return FALSE;
+ }
+ return TRUE;
+}
+
+/**
+ * Little wrapper around drm_intel_bo_reloc to return the initial value you
+ * should stuff into the relocation entry.
+ *
+ * If only we'd done this before settling on the library API.
+ */
+static inline uint32_t
+intel_emit_reloc(drm_intel_bo * bo, uint32_t offset,
+ drm_intel_bo * target_bo, uint32_t target_offset,
+ uint32_t read_domains, uint32_t write_domain)
+{
+ drm_intel_bo_emit_reloc(bo, offset, target_bo, target_offset,
+ read_domains, write_domain);
+
+ return target_bo->offset + target_offset;
+}
+
+static inline drm_intel_bo *intel_bo_alloc_for_data(intel_screen_private *intel,
+ const void *data,
+ unsigned int size,
+ char *name)
+{
+ drm_intel_bo *bo;
+
+ bo = drm_intel_bo_alloc(intel->bufmgr, name, size, 4096);
+ if (bo)
+ drm_intel_bo_subdata(bo, 0, size, data);
+ return bo;
+}
+
+void intel_debug_flush(ScrnInfoPtr scrn);
+
+static inline PixmapPtr get_drawable_pixmap(DrawablePtr drawable)
+{
+ ScreenPtr screen = drawable->pScreen;
+
+ if (drawable->type == DRAWABLE_PIXMAP)
+ return (PixmapPtr) drawable;
+ else
+ return screen->GetWindowPixmap((WindowPtr) drawable);
+}
+
+static inline Bool pixmap_is_scanout(PixmapPtr pixmap)
+{
+ ScreenPtr screen = pixmap->drawable.pScreen;
+
+ return pixmap == screen->GetScreenPixmap(screen);
+}
+
+const OptionInfoRec *intel_uxa_available_options(int chipid, int busid);
+
+Bool intel_uxa_init(ScreenPtr pScreen);
+Bool intel_uxa_create_screen_resources(ScreenPtr pScreen);
+void intel_uxa_block_handler(intel_screen_private *intel);
+Bool intel_get_aperture_space(ScrnInfoPtr scrn, drm_intel_bo ** bo_table,
+ int num_bos);
+
+/* intel_shadow.c */
+void intel_shadow_blt(intel_screen_private *intel);
+void intel_shadow_create(struct intel_screen_private *intel);
+
+#endif /* _I830_H_ */
diff --git a/src/intel_batchbuffer.c b/src/intel_batchbuffer.c
new file mode 100644
index 0000000..289ed2b
--- /dev/null
+++ b/src/intel_batchbuffer.c
@@ -0,0 +1,294 @@
+/* -*- c-basic-offset: 4 -*- */
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Eric Anholt <eric@anholt.net>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <assert.h>
+#include <stdlib.h>
+#include <errno.h>
+
+#include "xf86.h"
+#include "intel.h"
+#include "i830_reg.h"
+#include "i915_drm.h"
+#include "i965_reg.h"
+
+#define DUMP_BATCHBUFFERS NULL // "/tmp/i915-batchbuffers.dump"
+
+static void intel_end_vertex(intel_screen_private *intel)
+{
+ if (intel->vertex_bo) {
+ if (intel->vertex_used) {
+ dri_bo_subdata(intel->vertex_bo, 0, intel->vertex_used*4, intel->vertex_ptr);
+ intel->vertex_used = 0;
+ }
+
+ dri_bo_unreference(intel->vertex_bo);
+ intel->vertex_bo = NULL;
+ }
+
+ intel->vertex_id = 0;
+}
+
+void intel_next_vertex(intel_screen_private *intel)
+{
+ intel_end_vertex(intel);
+
+ intel->vertex_bo =
+ dri_bo_alloc(intel->bufmgr, "vertex", sizeof (intel->vertex_ptr), 4096);
+}
+
+static void intel_next_batch(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* The 865 has issues with larger-than-page-sized batch buffers. */
+ if (IS_I865G(intel))
+ intel->batch_bo =
+ dri_bo_alloc(intel->bufmgr, "batch", 4096, 4096);
+ else
+ intel->batch_bo =
+ dri_bo_alloc(intel->bufmgr, "batch", 4096 * 4, 4096);
+
+ intel->batch_used = 0;
+
+ /* We don't know when another client has executed, so we have
+ * to reinitialize our 3D state per batch.
+ */
+ intel->last_3d = LAST_3D_OTHER;
+}
+
+void intel_batch_init(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ intel->batch_emit_start = 0;
+ intel->batch_emitting = 0;
+ intel->vertex_id = 0;
+
+ intel_next_batch(scrn);
+}
+
+void intel_batch_teardown(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (intel->batch_bo != NULL) {
+ dri_bo_unreference(intel->batch_bo);
+ intel->batch_bo = NULL;
+ }
+
+ if (intel->vertex_bo) {
+ dri_bo_unreference(intel->vertex_bo);
+ intel->vertex_bo = NULL;
+ }
+
+ while (!list_is_empty(&intel->batch_pixmaps))
+ list_del(intel->batch_pixmaps.next);
+
+ while (!list_is_empty(&intel->flush_pixmaps))
+ list_del(intel->flush_pixmaps.next);
+
+ while (!list_is_empty(&intel->in_flight)) {
+ struct intel_pixmap *entry;
+
+ entry = list_first_entry(&intel->in_flight,
+ struct intel_pixmap,
+ in_flight);
+
+ dri_bo_unreference(entry->bo);
+ list_del(&entry->in_flight);
+ free(entry);
+ }
+}
+
+void intel_batch_do_flush(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ while (!list_is_empty(&intel->flush_pixmaps))
+ list_del(intel->flush_pixmaps.next);
+}
+
+void intel_batch_emit_flush(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int flags;
+
+ assert (!intel->in_batch_atomic);
+
+ /* Big hammer, look to the pipelined flushes in future. */
+ if ((INTEL_INFO(intel)->gen >= 60)) {
+ if (intel->current_batch == BLT_BATCH) {
+ BEGIN_BATCH_BLT(4);
+ OUT_BATCH(MI_FLUSH_DW | 2);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ ADVANCE_BATCH();
+ } else {
+ BEGIN_BATCH(4);
+ OUT_BATCH(BRW_PIPE_CONTROL | (4 - 2));
+ OUT_BATCH(BRW_PIPE_CONTROL_WC_FLUSH |
+ BRW_PIPE_CONTROL_TC_FLUSH |
+ BRW_PIPE_CONTROL_NOWRITE);
+ OUT_BATCH(0); /* write address */
+ OUT_BATCH(0); /* write data */
+ ADVANCE_BATCH();
+ }
+ } else {
+ flags = MI_WRITE_DIRTY_STATE | MI_INVALIDATE_MAP_CACHE;
+ if (INTEL_INFO(intel)->gen >= 40)
+ flags = 0;
+
+ BEGIN_BATCH(1);
+ OUT_BATCH(MI_FLUSH | flags);
+ ADVANCE_BATCH();
+ }
+ intel_batch_do_flush(scrn);
+}
+
+static Bool intel_batch_needs_flush(intel_screen_private *intel)
+{
+ ScreenPtr screen = intel->scrn->pScreen;
+ PixmapPtr pixmap = screen->GetScreenPixmap(screen);
+ return intel_get_pixmap_private(pixmap)->batch_write;
+}
+
+void intel_batch_submit(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int ret;
+
+ assert (!intel->in_batch_atomic);
+
+ if (intel->vertex_flush)
+ intel->vertex_flush(intel);
+ intel_end_vertex(intel);
+
+ if (intel->batch_flush)
+ intel->batch_flush(intel);
+
+ if (intel->batch_used == 0)
+ return;
+
+ /* Mark the end of the batchbuffer. */
+ OUT_BATCH(MI_BATCH_BUFFER_END);
+ /* Emit a padding dword if we aren't going to be quad-word aligned. */
+ if (intel->batch_used & 1)
+ OUT_BATCH(MI_NOOP);
+
+ if (DUMP_BATCHBUFFERS) {
+ FILE *file = fopen(DUMP_BATCHBUFFERS, "a");
+ if (file) {
+ fwrite (intel->batch_ptr, intel->batch_used*4, 1, file);
+ fclose(file);
+ }
+ }
+
+ ret = dri_bo_subdata(intel->batch_bo, 0, intel->batch_used*4, intel->batch_ptr);
+ if (ret == 0) {
+ ret = drm_intel_bo_mrb_exec(intel->batch_bo,
+ intel->batch_used*4,
+ NULL, 0, 0xffffffff,
+ IS_GEN6(intel) ? intel->current_batch: I915_EXEC_DEFAULT);
+ }
+
+ if (ret != 0) {
+ if (ret == -EIO) {
+ static int once;
+
+ /* The GPU has hung and unlikely to recover by this point. */
+ if (!once) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR, "Detected a hung GPU, disabling acceleration.\n");
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR, "When reporting this, please include i915_error_state from debugfs and the full dmesg.\n");
+ uxa_set_force_fallback(screenInfo.screens[scrn->scrnIndex], TRUE);
+ intel->force_fallback = TRUE;
+ once = 1;
+ }
+ } else {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Failed to submit batch buffer, expect rendering corruption "
+ "or even a frozen display: %s.\n",
+ strerror(-ret));
+ }
+ }
+
+ intel->needs_flush |= intel_batch_needs_flush(intel);
+
+ while (!list_is_empty(&intel->batch_pixmaps)) {
+ struct intel_pixmap *entry;
+
+ entry = list_first_entry(&intel->batch_pixmaps,
+ struct intel_pixmap,
+ batch);
+
+ entry->busy = -1;
+ entry->batch_write = 0;
+ list_del(&entry->batch);
+ }
+
+ while (!list_is_empty(&intel->flush_pixmaps))
+ list_del(intel->flush_pixmaps.next);
+
+ while (!list_is_empty(&intel->in_flight)) {
+ struct intel_pixmap *entry;
+
+ entry = list_first_entry(&intel->in_flight,
+ struct intel_pixmap,
+ in_flight);
+
+ dri_bo_unreference(entry->bo);
+ list_del(&entry->in_flight);
+ free(entry);
+ }
+
+ if (intel->debug_flush & DEBUG_FLUSH_WAIT)
+ drm_intel_bo_wait_rendering(intel->batch_bo);
+
+ dri_bo_unreference(intel->batch_bo);
+ intel_next_batch(scrn);
+
+ if (intel->batch_commit_notify)
+ intel->batch_commit_notify(intel);
+
+ intel->current_batch = 0;
+}
+
+void intel_debug_flush(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (intel->debug_flush & DEBUG_FLUSH_CACHES)
+ intel_batch_emit_flush(scrn);
+
+ if (intel->debug_flush & DEBUG_FLUSH_BATCHES)
+ intel_batch_submit(scrn);
+}
diff --git a/src/intel_batchbuffer.h b/src/intel_batchbuffer.h
new file mode 100644
index 0000000..605932a
--- /dev/null
+++ b/src/intel_batchbuffer.h
@@ -0,0 +1,227 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+Copyright © 2002 David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifndef _INTEL_BATCHBUFFER_H
+#define _INTEL_BATCHBUFFER_H
+
+#define BATCH_RESERVED 16
+
+
+void intel_batch_init(ScrnInfoPtr scrn);
+void intel_batch_teardown(ScrnInfoPtr scrn);
+void intel_batch_emit_flush(ScrnInfoPtr scrn);
+void intel_batch_do_flush(ScrnInfoPtr scrn);
+void intel_batch_submit(ScrnInfoPtr scrn);
+
+static inline int intel_batch_space(intel_screen_private *intel)
+{
+ return (intel->batch_bo->size - BATCH_RESERVED) - (4*intel->batch_used);
+}
+
+static inline int intel_vertex_space(intel_screen_private *intel)
+{
+ return intel->vertex_bo ? intel->vertex_bo->size - (4*intel->vertex_used) : 0;
+}
+
+static inline void
+intel_batch_require_space(ScrnInfoPtr scrn, intel_screen_private *intel, unsigned int sz)
+{
+ assert(sz < intel->batch_bo->size - 8);
+ if (intel_batch_space(intel) < sz)
+ intel_batch_submit(scrn);
+}
+
+static inline void intel_batch_start_atomic(ScrnInfoPtr scrn, unsigned int sz)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ assert(!intel->in_batch_atomic);
+
+ if (intel->current_batch != RENDER_BATCH) {
+ if (intel->current_batch && intel->context_switch)
+ intel->context_switch(intel, RENDER_BATCH);
+ }
+
+ intel_batch_require_space(scrn, intel, sz * 4);
+ intel->current_batch = RENDER_BATCH;
+
+ intel->in_batch_atomic = TRUE;
+ intel->batch_atomic_limit = intel->batch_used + sz;
+}
+
+static inline void intel_batch_end_atomic(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ assert(intel->in_batch_atomic);
+ assert(intel->batch_used <= intel->batch_atomic_limit);
+ intel->in_batch_atomic = FALSE;
+}
+
+static inline void intel_batch_emit_dword(intel_screen_private *intel, uint32_t dword)
+{
+ intel->batch_ptr[intel->batch_used++] = dword;
+}
+
+static inline void intel_batch_align(intel_screen_private *intel, uint32_t align)
+{
+ uint32_t delta;
+
+ align /= 4;
+ assert(align);
+
+ if ((delta = intel->batch_used & (align - 1))) {
+ delta = align - delta;
+ memset (intel->batch_ptr + intel->batch_used, 0, 4*delta);
+ intel->batch_used += delta;
+ }
+}
+
+static inline void
+intel_batch_emit_reloc(intel_screen_private *intel,
+ dri_bo * bo,
+ uint32_t read_domains,
+ uint32_t write_domains, uint32_t delta, int needs_fence)
+{
+ if (needs_fence)
+ drm_intel_bo_emit_reloc_fence(intel->batch_bo,
+ intel->batch_used * 4,
+ bo, delta,
+ read_domains, write_domains);
+ else
+ drm_intel_bo_emit_reloc(intel->batch_bo, intel->batch_used * 4,
+ bo, delta,
+ read_domains, write_domains);
+
+ intel_batch_emit_dword(intel, bo->offset + delta);
+}
+
+static inline void
+intel_batch_mark_pixmap_domains(intel_screen_private *intel,
+ struct intel_pixmap *priv,
+ uint32_t read_domains, uint32_t write_domain)
+{
+ assert (read_domains);
+ assert (write_domain == 0 || write_domain == read_domains);
+
+ if (list_is_empty(&priv->batch))
+ list_add(&priv->batch, &intel->batch_pixmaps);
+ if (write_domain && list_is_empty(&priv->flush))
+ list_add(&priv->flush, &intel->flush_pixmaps);
+
+ priv->batch_write |= write_domain != 0;
+ priv->busy = 1;
+}
+
+static inline void
+intel_batch_emit_reloc_pixmap(intel_screen_private *intel, PixmapPtr pixmap,
+ uint32_t read_domains, uint32_t write_domain,
+ uint32_t delta, int needs_fence)
+{
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+
+ intel_batch_mark_pixmap_domains(intel, priv, read_domains, write_domain);
+
+ intel_batch_emit_reloc(intel, priv->bo,
+ read_domains, write_domain,
+ delta, needs_fence);
+}
+
+#define ALIGN_BATCH(align) intel_batch_align(intel, align);
+#define OUT_BATCH(dword) intel_batch_emit_dword(intel, dword)
+
+#define OUT_RELOC(bo, read_domains, write_domains, delta) \
+ intel_batch_emit_reloc(intel, bo, read_domains, write_domains, delta, 0)
+
+#define OUT_RELOC_FENCED(bo, read_domains, write_domains, delta) \
+ intel_batch_emit_reloc(intel, bo, read_domains, write_domains, delta, 1)
+
+#define OUT_RELOC_PIXMAP(pixmap, reads, write, delta) \
+ intel_batch_emit_reloc_pixmap(intel, pixmap, reads, write, delta, 0)
+
+#define OUT_RELOC_PIXMAP_FENCED(pixmap, reads, write, delta) \
+ intel_batch_emit_reloc_pixmap(intel, pixmap, reads, write, delta, 1)
+
+union intfloat {
+ float f;
+ unsigned int ui;
+};
+
+#define OUT_BATCH_F(x) do { \
+ union intfloat tmp; \
+ tmp.f = (float)(x); \
+ OUT_BATCH(tmp.ui); \
+} while(0)
+
+#define __BEGIN_BATCH(n,batch_idx) \
+do { \
+ if (intel->batch_emitting != 0) \
+ FatalError("%s: BEGIN_BATCH called without closing " \
+ "ADVANCE_BATCH\n", __FUNCTION__); \
+ assert(!intel->in_batch_atomic); \
+ if (intel->current_batch != batch_idx) { \
+ if (intel->current_batch && intel->context_switch) \
+ intel->context_switch(intel, batch_idx); \
+ } \
+ intel_batch_require_space(scrn, intel, (n) * 4); \
+ intel->current_batch = batch_idx; \
+ intel->batch_emitting = (n); \
+ intel->batch_emit_start = intel->batch_used; \
+} while (0)
+
+#define BEGIN_BATCH(n) __BEGIN_BATCH(n,RENDER_BATCH)
+#define BEGIN_BATCH_BLT(n) __BEGIN_BATCH(n,BLT_BATCH)
+
+#define ADVANCE_BATCH() do { \
+ if (intel->batch_emitting == 0) \
+ FatalError("%s: ADVANCE_BATCH called with no matching " \
+ "BEGIN_BATCH\n", __FUNCTION__); \
+ if (intel->batch_used > \
+ intel->batch_emit_start + intel->batch_emitting) \
+ FatalError("%s: ADVANCE_BATCH: exceeded allocation %d/%d\n ", \
+ __FUNCTION__, \
+ intel->batch_used - intel->batch_emit_start, \
+ intel->batch_emitting); \
+ if (intel->batch_used < intel->batch_emit_start + \
+ intel->batch_emitting) \
+ FatalError("%s: ADVANCE_BATCH: under-used allocation %d/%d\n ", \
+ __FUNCTION__, \
+ intel->batch_used - intel->batch_emit_start, \
+ intel->batch_emitting); \
+ intel->batch_emitting = 0; \
+} while (0)
+
+void intel_next_vertex(intel_screen_private *intel);
+static inline void intel_vertex_emit(intel_screen_private *intel, float v)
+{
+ intel->vertex_ptr[intel->vertex_used++] = v;
+}
+#define OUT_VERTEX(v) intel_vertex_emit(intel, v)
+
+#endif /* _INTEL_BATCHBUFFER_H */
diff --git a/src/intel_display.c b/src/intel_display.c
new file mode 100644
index 0000000..b6592c4
--- /dev/null
+++ b/src/intel_display.c
@@ -0,0 +1,1689 @@
+/*
+ * Copyright © 2007 Red Hat, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Dave Airlie <airlied@redhat.com>
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include <errno.h>
+#include <poll.h>
+
+#include "xorgVersion.h"
+
+#include "intel.h"
+#include "intel_bufmgr.h"
+#include "xf86drmMode.h"
+#include "X11/Xatom.h"
+
+struct intel_mode {
+ int fd;
+ uint32_t fb_id;
+ drmModeResPtr mode_res;
+ int cpp;
+
+ drmEventContext event_context;
+ DRI2FrameEventPtr flip_info;
+ int old_fb_id;
+ int flip_count;
+ unsigned int fe_frame;
+ unsigned int fe_tv_sec;
+ unsigned int fe_tv_usec;
+
+ struct list outputs;
+ struct list crtcs;
+};
+
+struct intel_pageflip {
+ struct intel_mode *mode;
+ Bool dispatch_me;
+};
+
+struct intel_crtc {
+ struct intel_mode *mode;
+ drmModeModeInfo kmode;
+ drmModeCrtcPtr mode_crtc;
+ int pipe;
+ dri_bo *cursor;
+ dri_bo *rotate_bo;
+ uint32_t rotate_pitch;
+ uint32_t rotate_fb_id;
+ xf86CrtcPtr crtc;
+ struct list link;
+};
+
+struct intel_property {
+ drmModePropertyPtr mode_prop;
+ uint64_t value;
+ int num_atoms; /* if range prop, num_atoms == 1; if enum prop, num_atoms == num_enums + 1 */
+ Atom *atoms;
+};
+
+struct intel_output {
+ struct intel_mode *mode;
+ int output_id;
+ drmModeConnectorPtr mode_output;
+ drmModeEncoderPtr mode_encoder;
+ int num_props;
+ struct intel_property *props;
+ void *private_data;
+
+ Bool has_panel_limits;
+ int panel_hdisplay;
+ int panel_vdisplay;
+
+ int dpms_mode;
+ const char *backlight_iface;
+ int backlight_active_level;
+ int backlight_max;
+ xf86OutputPtr output;
+ struct list link;
+};
+
+static void
+intel_output_dpms(xf86OutputPtr output, int mode);
+
+static void
+intel_output_dpms_backlight(xf86OutputPtr output, int oldmode, int mode);
+
+#define BACKLIGHT_CLASS "/sys/class/backlight"
+
+/*
+ * List of available kernel interfaces in priority order
+ */
+static const char *backlight_interfaces[] = {
+ "asus-laptop",
+ "eeepc",
+ "thinkpad_screen",
+ "mbp_backlight",
+ "fujitsu-laptop",
+ "sony",
+ "samsung",
+ "acpi_video1", /* finally fallback to the generic acpi drivers */
+ "acpi_video0",
+ "intel_backlight",
+ NULL,
+};
+/*
+ * Must be long enough for BACKLIGHT_CLASS + '/' + longest in above table +
+ * '/' + "max_backlight"
+ */
+#define BACKLIGHT_PATH_LEN 80
+/* Enough for 10 digits of backlight + '\n' + '\0' */
+#define BACKLIGHT_VALUE_LEN 12
+
+static inline int
+crtc_id(struct intel_crtc *crtc)
+{
+ return crtc->mode_crtc->crtc_id;
+}
+
+static void
+intel_output_backlight_set(xf86OutputPtr output, int level)
+{
+ struct intel_output *intel_output = output->driver_private;
+ char path[BACKLIGHT_PATH_LEN], val[BACKLIGHT_VALUE_LEN];
+ int fd, len, ret;
+
+ if (level > intel_output->backlight_max)
+ level = intel_output->backlight_max;
+ if (! intel_output->backlight_iface || level < 0)
+ return;
+
+ len = snprintf(val, BACKLIGHT_VALUE_LEN, "%d\n", level);
+ sprintf(path, "%s/%s/brightness",
+ BACKLIGHT_CLASS, intel_output->backlight_iface);
+ fd = open(path, O_RDWR);
+ if (fd == -1) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR, "failed to open %s for backlight "
+ "control: %s\n", path, strerror(errno));
+ return;
+ }
+
+ ret = write(fd, val, len);
+ if (ret == -1) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR, "write to %s for backlight "
+ "control failed: %s\n", path, strerror(errno));
+ }
+
+ close(fd);
+}
+
+static int
+intel_output_backlight_get(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ char path[BACKLIGHT_PATH_LEN], val[BACKLIGHT_VALUE_LEN];
+ int fd, level;
+
+ sprintf(path, "%s/%s/actual_brightness",
+ BACKLIGHT_CLASS, intel_output->backlight_iface);
+ fd = open(path, O_RDONLY);
+ if (fd == -1) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR, "failed to open %s "
+ "for backlight control: %s\n", path, strerror(errno));
+ return -1;
+ }
+
+ memset(val, 0, sizeof(val));
+ if (read(fd, val, BACKLIGHT_VALUE_LEN) == -1) {
+ close(fd);
+ return -1;
+ }
+
+ close(fd);
+
+ level = atoi(val);
+ if (level > intel_output->backlight_max)
+ level = intel_output->backlight_max;
+ if (level < 0)
+ level = -1;
+ return level;
+}
+
+static int
+intel_output_backlight_get_max(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ char path[BACKLIGHT_PATH_LEN], val[BACKLIGHT_VALUE_LEN];
+ int fd, max = 0;
+
+ sprintf(path, "%s/%s/max_brightness",
+ BACKLIGHT_CLASS, intel_output->backlight_iface);
+ fd = open(path, O_RDONLY);
+ if (fd == -1) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR, "failed to open %s "
+ "for backlight control: %s\n", path, strerror(errno));
+ return -1;
+ }
+
+ memset(val, 0, sizeof(val));
+ if (read(fd, val, BACKLIGHT_VALUE_LEN) == -1) {
+ close(fd);
+ return -1;
+ }
+
+ close(fd);
+
+ max = atoi(val);
+ if (max <= 0)
+ max = -1;
+ return max;
+}
+
+static void
+intel_output_backlight_init(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ int i;
+
+ for (i = 0; backlight_interfaces[i] != NULL; i++) {
+ char path[BACKLIGHT_PATH_LEN];
+ struct stat buf;
+
+ sprintf(path, "%s/%s", BACKLIGHT_CLASS, backlight_interfaces[i]);
+ if (!stat(path, &buf)) {
+ intel_output->backlight_iface = backlight_interfaces[i];
+ intel_output->backlight_max = intel_output_backlight_get_max(output);
+ if (intel_output->backlight_max > 0) {
+ intel_output->backlight_active_level = intel_output_backlight_get(output);
+ xf86DrvMsg(output->scrn->scrnIndex, X_INFO,
+ "found backlight control interface %s\n", path);
+ return;
+ }
+ }
+ }
+ intel_output->backlight_iface = NULL;
+}
+
+
+static void
+mode_from_kmode(ScrnInfoPtr scrn,
+ drmModeModeInfoPtr kmode,
+ DisplayModePtr mode)
+{
+ memset(mode, 0, sizeof(DisplayModeRec));
+ mode->status = MODE_OK;
+
+ mode->Clock = kmode->clock;
+
+ mode->HDisplay = kmode->hdisplay;
+ mode->HSyncStart = kmode->hsync_start;
+ mode->HSyncEnd = kmode->hsync_end;
+ mode->HTotal = kmode->htotal;
+ mode->HSkew = kmode->hskew;
+
+ mode->VDisplay = kmode->vdisplay;
+ mode->VSyncStart = kmode->vsync_start;
+ mode->VSyncEnd = kmode->vsync_end;
+ mode->VTotal = kmode->vtotal;
+ mode->VScan = kmode->vscan;
+
+ mode->Flags = kmode->flags; //& FLAG_BITS;
+ mode->name = strdup(kmode->name);
+
+ if (kmode->type & DRM_MODE_TYPE_DRIVER)
+ mode->type = M_T_DRIVER;
+ if (kmode->type & DRM_MODE_TYPE_PREFERRED)
+ mode->type |= M_T_PREFERRED;
+
+ xf86SetModeCrtc (mode, scrn->adjustFlags);
+}
+
+static void
+mode_to_kmode(ScrnInfoPtr scrn,
+ drmModeModeInfoPtr kmode,
+ DisplayModePtr mode)
+{
+ memset(kmode, 0, sizeof(*kmode));
+
+ kmode->clock = mode->Clock;
+ kmode->hdisplay = mode->HDisplay;
+ kmode->hsync_start = mode->HSyncStart;
+ kmode->hsync_end = mode->HSyncEnd;
+ kmode->htotal = mode->HTotal;
+ kmode->hskew = mode->HSkew;
+
+ kmode->vdisplay = mode->VDisplay;
+ kmode->vsync_start = mode->VSyncStart;
+ kmode->vsync_end = mode->VSyncEnd;
+ kmode->vtotal = mode->VTotal;
+ kmode->vscan = mode->VScan;
+
+ kmode->flags = mode->Flags; //& FLAG_BITS;
+ if (mode->name)
+ strncpy(kmode->name, mode->name, DRM_DISPLAY_MODE_LEN);
+ kmode->name[DRM_DISPLAY_MODE_LEN-1] = 0;
+}
+
+static void
+intel_crtc_dpms(xf86CrtcPtr intel_crtc, int mode)
+{
+
+}
+
+static Bool
+intel_crtc_apply(xf86CrtcPtr crtc)
+{
+ ScrnInfoPtr scrn = crtc->scrn;
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+ xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(crtc->scrn);
+ uint32_t *output_ids;
+ int output_count = 0;
+ int fb_id, x, y;
+ int i, ret = FALSE;
+
+ output_ids = calloc(sizeof(uint32_t), xf86_config->num_output);
+ if (!output_ids)
+ return FALSE;
+
+ for (i = 0; i < xf86_config->num_output; i++) {
+ xf86OutputPtr output = xf86_config->output[i];
+ struct intel_output *intel_output;
+
+ if (output->crtc != crtc)
+ continue;
+
+ intel_output = output->driver_private;
+ output_ids[output_count] =
+ intel_output->mode_output->connector_id;
+ output_count++;
+ }
+
+#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(1,5,99,0,0)
+ if (!xf86CrtcRotate(crtc, mode, rotation))
+ goto done;
+#else
+ if (!xf86CrtcRotate(crtc))
+ goto done;
+#endif
+
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,7,0,0,0)
+ crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
+ crtc->gamma_blue, crtc->gamma_size);
+#endif
+
+ x = crtc->x;
+ y = crtc->y;
+ fb_id = mode->fb_id;
+ if (intel_crtc->rotate_fb_id) {
+ fb_id = intel_crtc->rotate_fb_id;
+ x = 0;
+ y = 0;
+ }
+ ret = drmModeSetCrtc(mode->fd, crtc_id(intel_crtc),
+ fb_id, x, y, output_ids, output_count,
+ &intel_crtc->kmode);
+ if (ret) {
+ xf86DrvMsg(crtc->scrn->scrnIndex, X_ERROR,
+ "failed to set mode: %s\n", strerror(-ret));
+ ret = FALSE;
+ } else {
+ ret = TRUE;
+
+ /* Force DPMS to On for all outputs, which the kernel will have done
+ * with the mode set. Also, restore the backlight level
+ */
+ for (i = 0; i < xf86_config->num_output; i++) {
+ xf86OutputPtr output = xf86_config->output[i];
+ struct intel_output *intel_output;
+
+ if (output->crtc != crtc)
+ continue;
+
+ intel_output = output->driver_private;
+ intel_output_dpms_backlight(output, intel_output->dpms_mode, DPMSModeOn);
+ intel_output->dpms_mode = DPMSModeOn;
+ }
+ }
+
+ intel_set_gem_max_sizes(scrn);
+
+ if (scrn->pScreen)
+ xf86_reload_cursors(scrn->pScreen);
+
+done:
+ free(output_ids);
+ return ret;
+}
+
+static Bool
+intel_crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
+ Rotation rotation, int x, int y)
+{
+ ScrnInfoPtr scrn = crtc->scrn;
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *intel_mode = intel_crtc->mode;
+ int saved_x, saved_y;
+ Rotation saved_rotation;
+ DisplayModeRec saved_mode;
+ int ret = TRUE;
+ unsigned int pitch = scrn->displayWidth * intel->cpp;
+
+ if (intel_mode->fb_id == 0) {
+ ret = drmModeAddFB(intel_mode->fd,
+ scrn->virtualX, scrn->virtualY,
+ scrn->depth, scrn->bitsPerPixel,
+ pitch, intel->front_buffer->handle,
+ &intel_mode->fb_id);
+ if (ret < 0) {
+ ErrorF("failed to add fb\n");
+ return FALSE;
+ }
+ }
+
+ saved_mode = crtc->mode;
+ saved_x = crtc->x;
+ saved_y = crtc->y;
+ saved_rotation = crtc->rotation;
+
+ crtc->mode = *mode;
+ crtc->x = x;
+ crtc->y = y;
+ crtc->rotation = rotation;
+
+ intel_batch_submit(crtc->scrn);
+
+ mode_to_kmode(crtc->scrn, &intel_crtc->kmode, mode);
+ ret = intel_crtc_apply(crtc);
+ if (!ret) {
+ crtc->x = saved_x;
+ crtc->y = saved_y;
+ crtc->rotation = saved_rotation;
+ crtc->mode = saved_mode;
+ }
+ return ret;
+}
+
+static void
+intel_crtc_set_cursor_colors(xf86CrtcPtr crtc, int bg, int fg)
+{
+
+}
+
+static void
+intel_crtc_set_cursor_position (xf86CrtcPtr crtc, int x, int y)
+{
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+
+ drmModeMoveCursor(mode->fd, crtc_id(intel_crtc), x, y);
+}
+
+static void
+intel_crtc_load_cursor_argb(xf86CrtcPtr crtc, CARD32 *image)
+{
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ int ret;
+
+ ret = dri_bo_subdata(intel_crtc->cursor, 0, 64*64*4, image);
+ if (ret)
+ xf86DrvMsg(crtc->scrn->scrnIndex, X_ERROR,
+ "failed to set cursor: %s\n", strerror(-ret));
+}
+
+static void
+intel_crtc_hide_cursor(xf86CrtcPtr crtc)
+{
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+
+ drmModeSetCursor(mode->fd, crtc_id(intel_crtc), 0, 64, 64);
+}
+
+static void
+intel_crtc_show_cursor(xf86CrtcPtr crtc)
+{
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+
+ drmModeSetCursor(mode->fd, crtc_id(intel_crtc),
+ intel_crtc->cursor->handle, 64, 64);
+}
+
+static void *
+intel_crtc_shadow_allocate(xf86CrtcPtr crtc, int width, int height)
+{
+ ScrnInfoPtr scrn = crtc->scrn;
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+ unsigned long rotate_pitch;
+ uint32_t tiling;
+ int ret;
+
+ intel_crtc->rotate_bo = intel_allocate_framebuffer(scrn,
+ width, height,
+ mode->cpp,
+ &rotate_pitch,
+ &tiling);
+
+ if (!intel_crtc->rotate_bo) {
+ xf86DrvMsg(crtc->scrn->scrnIndex, X_ERROR,
+ "Couldn't allocate shadow memory for rotated CRTC\n");
+ return NULL;
+ }
+
+ ret = drmModeAddFB(mode->fd, width, height, crtc->scrn->depth,
+ crtc->scrn->bitsPerPixel, rotate_pitch,
+ intel_crtc->rotate_bo->handle,
+ &intel_crtc->rotate_fb_id);
+ if (ret) {
+ ErrorF("failed to add rotate fb\n");
+ drm_intel_bo_unreference(intel_crtc->rotate_bo);
+ return NULL;
+ }
+
+ intel_crtc->rotate_pitch = rotate_pitch;
+ return intel_crtc->rotate_bo;
+}
+
+static PixmapPtr
+intel_crtc_shadow_create(xf86CrtcPtr crtc, void *data, int width, int height)
+{
+ ScrnInfoPtr scrn = crtc->scrn;
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ PixmapPtr rotate_pixmap;
+
+ if (!data) {
+ data = intel_crtc_shadow_allocate (crtc, width, height);
+ if (!data) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Couldn't allocate shadow pixmap for rotated CRTC\n");
+ return NULL;
+ }
+ }
+ if (intel_crtc->rotate_bo == NULL) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Couldn't allocate shadow pixmap for rotated CRTC\n");
+ return NULL;
+ }
+
+ rotate_pixmap = GetScratchPixmapHeader(scrn->pScreen,
+ width, height,
+ scrn->depth,
+ scrn->bitsPerPixel,
+ intel_crtc->rotate_pitch,
+ NULL);
+
+ if (rotate_pixmap == NULL) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Couldn't allocate shadow pixmap for rotated CRTC\n");
+ return NULL;
+ }
+
+ intel_set_pixmap_bo(rotate_pixmap, intel_crtc->rotate_bo);
+
+ intel->shadow_present = TRUE;
+
+ return rotate_pixmap;
+}
+
+static void
+intel_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *data)
+{
+ ScrnInfoPtr scrn = crtc->scrn;
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+
+ if (rotate_pixmap) {
+ intel_set_pixmap_bo(rotate_pixmap, NULL);
+ FreeScratchPixmapHeader(rotate_pixmap);
+ }
+
+ if (data) {
+ /* Be sure to sync acceleration before the memory gets
+ * unbound. */
+ drmModeRmFB(mode->fd, intel_crtc->rotate_fb_id);
+ intel_crtc->rotate_fb_id = 0;
+
+ dri_bo_unreference(intel_crtc->rotate_bo);
+ intel_crtc->rotate_bo = NULL;
+ }
+
+ intel->shadow_present = intel->use_shadow;
+}
+
+static void
+intel_crtc_gamma_set(xf86CrtcPtr crtc,
+ CARD16 *red, CARD16 *green, CARD16 *blue, int size)
+{
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+
+ drmModeCrtcSetGamma(mode->fd, crtc_id(intel_crtc),
+ size, red, green, blue);
+}
+
+static void
+intel_crtc_destroy(xf86CrtcPtr crtc)
+{
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+
+ if (intel_crtc->cursor) {
+ drmModeSetCursor(intel_crtc->mode->fd, crtc_id(intel_crtc), 0, 64, 64);
+ drm_intel_bo_unreference(intel_crtc->cursor);
+ intel_crtc->cursor = NULL;
+ }
+
+ list_del(&intel_crtc->link);
+ free(intel_crtc);
+
+ crtc->driver_private = NULL;
+}
+
+static const xf86CrtcFuncsRec intel_crtc_funcs = {
+ .dpms = intel_crtc_dpms,
+ .set_mode_major = intel_crtc_set_mode_major,
+ .set_cursor_colors = intel_crtc_set_cursor_colors,
+ .set_cursor_position = intel_crtc_set_cursor_position,
+ .show_cursor = intel_crtc_show_cursor,
+ .hide_cursor = intel_crtc_hide_cursor,
+ .load_cursor_argb = intel_crtc_load_cursor_argb,
+ .shadow_create = intel_crtc_shadow_create,
+ .shadow_allocate = intel_crtc_shadow_allocate,
+ .shadow_destroy = intel_crtc_shadow_destroy,
+ .gamma_set = intel_crtc_gamma_set,
+ .destroy = intel_crtc_destroy,
+};
+
+static void
+intel_crtc_init(ScrnInfoPtr scrn, struct intel_mode *mode, int num)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ xf86CrtcPtr crtc;
+ struct intel_crtc *intel_crtc;
+
+ intel_crtc = calloc(sizeof(struct intel_crtc), 1);
+ if (intel_crtc == NULL)
+ return;
+
+ crtc = xf86CrtcCreate(scrn, &intel_crtc_funcs);
+ if (crtc == NULL) {
+ free(intel_crtc);
+ return;
+ }
+
+ intel_crtc->mode_crtc = drmModeGetCrtc(mode->fd,
+ mode->mode_res->crtcs[num]);
+ intel_crtc->mode = mode;
+ crtc->driver_private = intel_crtc;
+
+ intel_crtc->pipe = drm_intel_get_pipe_from_crtc_id(intel->bufmgr,
+ crtc_id(intel_crtc));
+
+ intel_crtc->cursor = drm_intel_bo_alloc(intel->bufmgr, "ARGB cursor",
+ HWCURSOR_SIZE_ARGB,
+ GTT_PAGE_SIZE);
+
+ intel_crtc->crtc = crtc;
+ list_add(&intel_crtc->link, &mode->crtcs);
+}
+
+static Bool
+is_panel(int type)
+{
+ return (type == DRM_MODE_CONNECTOR_LVDS ||
+ type == DRM_MODE_CONNECTOR_eDP);
+}
+
+static xf86OutputStatus
+intel_output_detect(xf86OutputPtr output)
+{
+ /* go to the hw and retrieve a new output struct */
+ struct intel_output *intel_output = output->driver_private;
+ struct intel_mode *mode = intel_output->mode;
+ xf86OutputStatus status;
+
+ drmModeFreeConnector(intel_output->mode_output);
+ intel_output->mode_output =
+ drmModeGetConnector(mode->fd, intel_output->output_id);
+
+ switch (intel_output->mode_output->connection) {
+ case DRM_MODE_CONNECTED:
+ status = XF86OutputStatusConnected;
+ break;
+ case DRM_MODE_DISCONNECTED:
+ status = XF86OutputStatusDisconnected;
+ break;
+ default:
+ case DRM_MODE_UNKNOWNCONNECTION:
+ status = XF86OutputStatusUnknown;
+ break;
+ }
+ return status;
+}
+
+static Bool
+intel_output_mode_valid(xf86OutputPtr output, DisplayModePtr pModes)
+{
+ struct intel_output *intel_output = output->driver_private;
+
+ /*
+ * If the connector type is a panel, we will use the panel limit to
+ * verfiy whether the mode is valid.
+ */
+ if (intel_output->has_panel_limits) {
+ if (pModes->HDisplay > intel_output->panel_hdisplay ||
+ pModes->VDisplay > intel_output->panel_vdisplay)
+ return MODE_PANEL;
+ }
+
+ return MODE_OK;
+}
+
+static void
+intel_output_attach_edid(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ drmModeConnectorPtr koutput = intel_output->mode_output;
+ struct intel_mode *mode = intel_output->mode;
+ drmModePropertyBlobPtr edid_blob = NULL;
+ xf86MonPtr mon = NULL;
+ int i;
+
+ /* look for an EDID property */
+ for (i = 0; i < koutput->count_props; i++) {
+ drmModePropertyPtr props;
+
+ props = drmModeGetProperty(mode->fd, koutput->props[i]);
+ if (!props)
+ continue;
+
+ if (!(props->flags & DRM_MODE_PROP_BLOB)) {
+ drmModeFreeProperty(props);
+ continue;
+ }
+
+ if (!strcmp(props->name, "EDID")) {
+ drmModeFreePropertyBlob(edid_blob);
+ edid_blob =
+ drmModeGetPropertyBlob(mode->fd,
+ koutput->prop_values[i]);
+ }
+ drmModeFreeProperty(props);
+ }
+
+ if (edid_blob) {
+ mon = xf86InterpretEDID(output->scrn->scrnIndex,
+ edid_blob->data);
+
+ if (mon && edid_blob->length > 128)
+ mon->flags |= MONITOR_EDID_COMPLETE_RAWDATA;
+ }
+
+ xf86OutputSetEDID(output, mon);
+
+ if (edid_blob)
+ drmModeFreePropertyBlob(edid_blob);
+}
+
+static DisplayModePtr
+intel_output_panel_edid(xf86OutputPtr output, DisplayModePtr modes)
+{
+ xf86MonPtr mon = output->MonInfo;
+
+ if (!mon || !GTF_SUPPORTED(mon->features.msc)) {
+ DisplayModePtr i, m, p = NULL;
+ int max_x = 0, max_y = 0;
+ float max_vrefresh = 0.0;
+
+ for (m = modes; m; m = m->next) {
+ if (m->type & M_T_PREFERRED)
+ p = m;
+ max_x = max(max_x, m->HDisplay);
+ max_y = max(max_y, m->VDisplay);
+ max_vrefresh = max(max_vrefresh, xf86ModeVRefresh(m));
+ }
+
+ max_vrefresh = max(max_vrefresh, 60.0);
+ max_vrefresh *= (1 + SYNC_TOLERANCE);
+
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,6,99,0,0)
+ m = xf86GetDefaultModes();
+#else
+ m = xf86GetDefaultModes(0,0);
+#endif
+
+ xf86ValidateModesSize(output->scrn, m, max_x, max_y, 0);
+
+ for (i = m; i; i = i->next) {
+ if (xf86ModeVRefresh(i) > max_vrefresh)
+ i->status = MODE_VSYNC;
+ if (p && i->HDisplay >= p->HDisplay &&
+ i->VDisplay >= p->VDisplay &&
+ xf86ModeVRefresh(i) >= xf86ModeVRefresh(p))
+ i->status = MODE_VSYNC;
+ }
+
+ xf86PruneInvalidModes(output->scrn, &m, FALSE);
+
+ modes = xf86ModesAdd(modes, m);
+ }
+
+ return modes;
+}
+
+static DisplayModePtr
+intel_output_get_modes(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ drmModeConnectorPtr koutput = intel_output->mode_output;
+ DisplayModePtr Modes = NULL;
+ int i;
+
+ intel_output_attach_edid(output);
+
+ /* modes should already be available */
+ for (i = 0; i < koutput->count_modes; i++) {
+ DisplayModePtr Mode;
+
+ Mode = calloc(1, sizeof(DisplayModeRec));
+ if (Mode) {
+ mode_from_kmode(output->scrn, &koutput->modes[i], Mode);
+ Modes = xf86ModesAdd(Modes, Mode);
+ }
+ }
+
+ /*
+ * If the connector type is a panel, we will traverse the kernel mode to
+ * get the panel limit. And then add all the standard modes to fake
+ * the fullscreen experience.
+ * If it is incorrect, please fix me.
+ */
+ intel_output->has_panel_limits = FALSE;
+ if (is_panel(koutput->connector_type)) {
+ for (i = 0; i < koutput->count_modes; i++) {
+ drmModeModeInfo *mode_ptr;
+
+ mode_ptr = &koutput->modes[i];
+ if (mode_ptr->hdisplay > intel_output->panel_hdisplay)
+ intel_output->panel_hdisplay = mode_ptr->hdisplay;
+ if (mode_ptr->vdisplay > intel_output->panel_vdisplay)
+ intel_output->panel_vdisplay = mode_ptr->vdisplay;
+ }
+
+ intel_output->has_panel_limits =
+ intel_output->panel_hdisplay &&
+ intel_output->panel_vdisplay;
+
+ Modes = intel_output_panel_edid(output, Modes);
+ }
+
+ return Modes;
+}
+
+static void
+intel_output_destroy(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ int i;
+
+ for (i = 0; i < intel_output->num_props; i++) {
+ drmModeFreeProperty(intel_output->props[i].mode_prop);
+ free(intel_output->props[i].atoms);
+ }
+ free(intel_output->props);
+
+ drmModeFreeConnector(intel_output->mode_output);
+ intel_output->mode_output = NULL;
+
+ list_del(&intel_output->link);
+ free(intel_output);
+
+ output->driver_private = NULL;
+}
+
+static void
+intel_output_dpms_backlight(xf86OutputPtr output, int oldmode, int mode)
+{
+ struct intel_output *intel_output = output->driver_private;
+
+ if (!intel_output->backlight_iface)
+ return;
+
+ if (mode == DPMSModeOn) {
+ /* If we're going from off->on we may need to turn on the backlight. */
+ if (oldmode != DPMSModeOn)
+ intel_output_backlight_set(output,
+ intel_output->backlight_active_level);
+ } else {
+ /* Only save the current backlight value if we're going from on to off. */
+ if (oldmode == DPMSModeOn)
+ intel_output->backlight_active_level = intel_output_backlight_get(output);
+ intel_output_backlight_set(output, 0);
+ }
+}
+
+static void
+intel_output_dpms(xf86OutputPtr output, int dpms)
+{
+ struct intel_output *intel_output = output->driver_private;
+ drmModeConnectorPtr koutput = intel_output->mode_output;
+ struct intel_mode *mode = intel_output->mode;
+ int i;
+
+ for (i = 0; i < koutput->count_props; i++) {
+ drmModePropertyPtr props;
+
+ props = drmModeGetProperty(mode->fd, koutput->props[i]);
+ if (!props)
+ continue;
+
+ if (!strcmp(props->name, "DPMS")) {
+ drmModeConnectorSetProperty(mode->fd,
+ intel_output->output_id,
+ props->prop_id,
+ dpms);
+ intel_output_dpms_backlight(output,
+ intel_output->dpms_mode,
+ dpms);
+ intel_output->dpms_mode = dpms;
+ drmModeFreeProperty(props);
+ return;
+ }
+
+ drmModeFreeProperty(props);
+ }
+}
+
+int
+intel_output_dpms_status(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ return intel_output->dpms_mode;
+}
+
+static Bool
+intel_property_ignore(drmModePropertyPtr prop)
+{
+ if (!prop)
+ return TRUE;
+
+ /* ignore blob prop */
+ if (prop->flags & DRM_MODE_PROP_BLOB)
+ return TRUE;
+
+ /* ignore standard property */
+ if (!strcmp(prop->name, "EDID") ||
+ !strcmp(prop->name, "DPMS"))
+ return TRUE;
+
+ return FALSE;
+}
+
+#define BACKLIGHT_NAME "Backlight"
+#define BACKLIGHT_DEPRECATED_NAME "BACKLIGHT"
+static Atom backlight_atom, backlight_deprecated_atom;
+
+static void
+intel_output_create_resources(xf86OutputPtr output)
+{
+ struct intel_output *intel_output = output->driver_private;
+ drmModeConnectorPtr mode_output = intel_output->mode_output;
+ struct intel_mode *mode = intel_output->mode;
+ int i, j, err;
+
+ intel_output->props = calloc(mode_output->count_props,
+ sizeof(struct intel_property));
+ if (!intel_output->props)
+ return;
+
+ intel_output->num_props = 0;
+ for (i = j = 0; i < mode_output->count_props; i++) {
+ drmModePropertyPtr drmmode_prop;
+
+ drmmode_prop = drmModeGetProperty(mode->fd,
+ mode_output->props[i]);
+ if (intel_property_ignore(drmmode_prop)) {
+ drmModeFreeProperty(drmmode_prop);
+ continue;
+ }
+
+ intel_output->props[j].mode_prop = drmmode_prop;
+ intel_output->props[j].value = mode_output->prop_values[i];
+ j++;
+ }
+ intel_output->num_props = j;
+
+ for (i = 0; i < intel_output->num_props; i++) {
+ struct intel_property *p = &intel_output->props[i];
+ drmModePropertyPtr drmmode_prop = p->mode_prop;
+
+ if (drmmode_prop->flags & DRM_MODE_PROP_RANGE) {
+ INT32 range[2];
+
+ p->num_atoms = 1;
+ p->atoms = calloc(p->num_atoms, sizeof(Atom));
+ if (!p->atoms)
+ continue;
+
+ p->atoms[0] = MakeAtom(drmmode_prop->name, strlen(drmmode_prop->name), TRUE);
+ range[0] = drmmode_prop->values[0];
+ range[1] = drmmode_prop->values[1];
+ err = RRConfigureOutputProperty(output->randr_output, p->atoms[0],
+ FALSE, TRUE,
+ drmmode_prop->flags & DRM_MODE_PROP_IMMUTABLE ? TRUE : FALSE,
+ 2, range);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRConfigureOutputProperty error, %d\n", err);
+ }
+ err = RRChangeOutputProperty(output->randr_output, p->atoms[0],
+ XA_INTEGER, 32, PropModeReplace, 1, &p->value, FALSE, TRUE);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRChangeOutputProperty error, %d\n", err);
+ }
+ } else if (drmmode_prop->flags & DRM_MODE_PROP_ENUM) {
+ p->num_atoms = drmmode_prop->count_enums + 1;
+ p->atoms = calloc(p->num_atoms, sizeof(Atom));
+ if (!p->atoms)
+ continue;
+
+ p->atoms[0] = MakeAtom(drmmode_prop->name, strlen(drmmode_prop->name), TRUE);
+ for (j = 1; j <= drmmode_prop->count_enums; j++) {
+ struct drm_mode_property_enum *e = &drmmode_prop->enums[j-1];
+ p->atoms[j] = MakeAtom(e->name, strlen(e->name), TRUE);
+ }
+
+ err = RRConfigureOutputProperty(output->randr_output, p->atoms[0],
+ FALSE, FALSE,
+ drmmode_prop->flags & DRM_MODE_PROP_IMMUTABLE ? TRUE : FALSE,
+ p->num_atoms - 1, (INT32 *)&p->atoms[1]);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRConfigureOutputProperty error, %d\n", err);
+ }
+
+ for (j = 0; j < drmmode_prop->count_enums; j++)
+ if (drmmode_prop->enums[j].value == p->value)
+ break;
+ /* there's always a matching value */
+ err = RRChangeOutputProperty(output->randr_output, p->atoms[0],
+ XA_ATOM, 32, PropModeReplace, 1, &p->atoms[j+1], FALSE, TRUE);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRChangeOutputProperty error, %d\n", err);
+ }
+ }
+ }
+
+ if (intel_output->backlight_iface) {
+ INT32 data, backlight_range[2];
+
+ /* Set up the backlight property, which takes effect
+ * immediately and accepts values only within the
+ * backlight_range.
+ */
+ backlight_atom = MakeAtom(BACKLIGHT_NAME, sizeof(BACKLIGHT_NAME) - 1, TRUE);
+ backlight_deprecated_atom = MakeAtom(BACKLIGHT_DEPRECATED_NAME,
+ sizeof(BACKLIGHT_DEPRECATED_NAME) - 1, TRUE);
+
+ backlight_range[0] = 0;
+ backlight_range[1] = intel_output->backlight_max;
+ err = RRConfigureOutputProperty(output->randr_output,
+ backlight_atom,
+ FALSE, TRUE, FALSE,
+ 2, backlight_range);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRConfigureOutputProperty error, %d\n", err);
+ }
+ err = RRConfigureOutputProperty(output->randr_output,
+ backlight_deprecated_atom,
+ FALSE, TRUE, FALSE,
+ 2, backlight_range);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRConfigureOutputProperty error, %d\n", err);
+ }
+ /* Set the current value of the backlight property */
+ data = intel_output->backlight_active_level;
+ err = RRChangeOutputProperty(output->randr_output, backlight_atom,
+ XA_INTEGER, 32, PropModeReplace, 1, &data,
+ FALSE, TRUE);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRChangeOutputProperty error, %d\n", err);
+ }
+ err = RRChangeOutputProperty(output->randr_output, backlight_deprecated_atom,
+ XA_INTEGER, 32, PropModeReplace, 1, &data,
+ FALSE, TRUE);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRChangeOutputProperty error, %d\n", err);
+ }
+ }
+}
+
+static Bool
+intel_output_set_property(xf86OutputPtr output, Atom property,
+ RRPropertyValuePtr value)
+{
+ struct intel_output *intel_output = output->driver_private;
+ struct intel_mode *mode = intel_output->mode;
+ int i;
+
+ if (property == backlight_atom || property == backlight_deprecated_atom) {
+ INT32 val;
+
+ if (value->type != XA_INTEGER || value->format != 32 ||
+ value->size != 1)
+ {
+ return FALSE;
+ }
+
+ val = *(INT32 *)value->data;
+ if (val < 0 || val > intel_output->backlight_max)
+ return FALSE;
+
+ if (intel_output->dpms_mode == DPMSModeOn)
+ intel_output_backlight_set(output, val);
+ intel_output->backlight_active_level = val;
+ return TRUE;
+ }
+
+ for (i = 0; i < intel_output->num_props; i++) {
+ struct intel_property *p = &intel_output->props[i];
+
+ if (p->atoms[0] != property)
+ continue;
+
+ if (p->mode_prop->flags & DRM_MODE_PROP_RANGE) {
+ uint32_t val;
+
+ if (value->type != XA_INTEGER || value->format != 32 ||
+ value->size != 1)
+ return FALSE;
+ val = *(uint32_t *)value->data;
+
+ drmModeConnectorSetProperty(mode->fd, intel_output->output_id,
+ p->mode_prop->prop_id, (uint64_t)val);
+ return TRUE;
+ } else if (p->mode_prop->flags & DRM_MODE_PROP_ENUM) {
+ Atom atom;
+ const char *name;
+ int j;
+
+ if (value->type != XA_ATOM || value->format != 32 || value->size != 1)
+ return FALSE;
+ memcpy(&atom, value->data, 4);
+ name = NameForAtom(atom);
+
+ /* search for matching name string, then set its value down */
+ for (j = 0; j < p->mode_prop->count_enums; j++) {
+ if (!strcmp(p->mode_prop->enums[j].name, name)) {
+ drmModeConnectorSetProperty(mode->fd, intel_output->output_id,
+ p->mode_prop->prop_id, p->mode_prop->enums[j].value);
+ return TRUE;
+ }
+ }
+ return FALSE;
+ }
+ }
+
+ /* We didn't recognise this property, just report success in order
+ * to allow the set to continue, otherwise we break setting of
+ * common properties like EDID.
+ */
+ return TRUE;
+}
+
+static Bool
+intel_output_get_property(xf86OutputPtr output, Atom property)
+{
+ struct intel_output *intel_output = output->driver_private;
+ int err;
+
+ if (property == backlight_atom || property == backlight_deprecated_atom) {
+ INT32 val;
+
+ if (! intel_output->backlight_iface)
+ return FALSE;
+
+ val = intel_output_backlight_get(output);
+ if (val < 0)
+ return FALSE;
+
+ err = RRChangeOutputProperty(output->randr_output, property,
+ XA_INTEGER, 32, PropModeReplace, 1, &val,
+ FALSE, TRUE);
+ if (err != 0) {
+ xf86DrvMsg(output->scrn->scrnIndex, X_ERROR,
+ "RRChangeOutputProperty error, %d\n", err);
+ return FALSE;
+ }
+
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+static const xf86OutputFuncsRec intel_output_funcs = {
+ .create_resources = intel_output_create_resources,
+#ifdef RANDR_12_INTERFACE
+ .set_property = intel_output_set_property,
+ .get_property = intel_output_get_property,
+#endif
+ .dpms = intel_output_dpms,
+#if 0
+
+ .save = drmmode_crt_save,
+ .restore = drmmode_crt_restore,
+ .mode_fixup = drmmode_crt_mode_fixup,
+ .prepare = intel_output_prepare,
+ .mode_set = drmmode_crt_mode_set,
+ .commit = intel_output_commit,
+#endif
+ .detect = intel_output_detect,
+ .mode_valid = intel_output_mode_valid,
+
+ .get_modes = intel_output_get_modes,
+ .destroy = intel_output_destroy
+};
+
+static const int subpixel_conv_table[7] = {
+ 0,
+ SubPixelUnknown,
+ SubPixelHorizontalRGB,
+ SubPixelHorizontalBGR,
+ SubPixelVerticalRGB,
+ SubPixelVerticalBGR,
+ SubPixelNone
+};
+
+static const char *output_names[] = {
+ "None",
+ "VGA",
+ "DVI",
+ "DVI",
+ "DVI",
+ "Composite",
+ "TV",
+ "LVDS",
+ "CTV",
+ "DIN",
+ "DP",
+ "HDMI",
+ "HDMI",
+ "TV",
+ "eDP",
+};
+
+static void
+intel_output_init(ScrnInfoPtr scrn, struct intel_mode *mode, int num)
+{
+ xf86OutputPtr output;
+ drmModeConnectorPtr koutput;
+ drmModeEncoderPtr kencoder;
+ struct intel_output *intel_output;
+ const char *output_name;
+ char name[32];
+
+ koutput = drmModeGetConnector(mode->fd,
+ mode->mode_res->connectors[num]);
+ if (!koutput)
+ return;
+
+ kencoder = drmModeGetEncoder(mode->fd, koutput->encoders[0]);
+ if (!kencoder) {
+ drmModeFreeConnector(koutput);
+ return;
+ }
+
+ if (koutput->connector_type < ARRAY_SIZE(output_names))
+ output_name = output_names[koutput->connector_type];
+ else
+ output_name = "UNKNOWN";
+ snprintf(name, 32, "%s%d", output_name, koutput->connector_type_id);
+
+ output = xf86OutputCreate (scrn, &intel_output_funcs, name);
+ if (!output) {
+ drmModeFreeEncoder(kencoder);
+ drmModeFreeConnector(koutput);
+ return;
+ }
+
+ intel_output = calloc(sizeof(struct intel_output), 1);
+ if (!intel_output) {
+ xf86OutputDestroy(output);
+ drmModeFreeConnector(koutput);
+ drmModeFreeEncoder(kencoder);
+ return;
+ }
+
+ intel_output->output_id = mode->mode_res->connectors[num];
+ intel_output->mode_output = koutput;
+ intel_output->mode_encoder = kencoder;
+ intel_output->mode = mode;
+
+ output->mm_width = koutput->mmWidth;
+ output->mm_height = koutput->mmHeight;
+
+ output->subpixel_order = subpixel_conv_table[koutput->subpixel];
+ output->driver_private = intel_output;
+
+ if (is_panel(koutput->connector_type))
+ intel_output_backlight_init(output);
+
+ output->possible_crtcs = kencoder->possible_crtcs;
+ output->possible_clones = kencoder->possible_clones;
+ output->interlaceAllowed = TRUE;
+
+ intel_output->output = output;
+ list_add(&intel_output->link, &mode->outputs);
+}
+
+static Bool
+intel_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
+{
+ xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
+ struct intel_crtc *intel_crtc = xf86_config->crtc[0]->driver_private;
+ struct intel_mode *mode = intel_crtc->mode;
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *old_front = NULL;
+ Bool ret;
+ uint32_t old_fb_id;
+ int i, old_width, old_height, old_pitch;
+ unsigned long pitch;
+ uint32_t tiling;
+
+ if (scrn->virtualX == width && scrn->virtualY == height)
+ return TRUE;
+
+ intel_batch_submit(scrn);
+
+ old_width = scrn->virtualX;
+ old_height = scrn->virtualY;
+ old_pitch = scrn->displayWidth;
+ old_fb_id = mode->fb_id;
+ old_front = intel->front_buffer;
+
+ intel->front_buffer = intel_allocate_framebuffer(scrn,
+ width, height,
+ intel->cpp,
+ &pitch,
+ &tiling);
+ if (!intel->front_buffer)
+ goto fail;
+
+ ret = drmModeAddFB(mode->fd, width, height, scrn->depth,
+ scrn->bitsPerPixel, pitch,
+ intel->front_buffer->handle,
+ &mode->fb_id);
+ if (ret)
+ goto fail;
+
+ intel->front_pitch = pitch;
+ intel->front_tiling = tiling;
+
+ scrn->virtualX = width;
+ scrn->virtualY = height;
+
+ for (i = 0; i < xf86_config->num_crtc; i++) {
+ xf86CrtcPtr crtc = xf86_config->crtc[i];
+
+ if (!crtc->enabled)
+ continue;
+
+ if (!intel_crtc_apply(crtc))
+ goto fail;
+ }
+
+ intel_uxa_create_screen_resources(scrn->pScreen);
+
+ if (old_fb_id)
+ drmModeRmFB(mode->fd, old_fb_id);
+ if (old_front)
+ drm_intel_bo_unreference(old_front);
+
+ return TRUE;
+
+fail:
+ if (intel->front_buffer)
+ drm_intel_bo_unreference(intel->front_buffer);
+ intel->front_buffer = old_front;
+ scrn->virtualX = old_width;
+ scrn->virtualY = old_height;
+ scrn->displayWidth = old_pitch;
+ if (old_fb_id != mode->fb_id)
+ drmModeRmFB(mode->fd, mode->fb_id);
+ mode->fb_id = old_fb_id;
+
+ return FALSE;
+}
+
+Bool
+intel_do_pageflip(intel_screen_private *intel,
+ dri_bo *new_front,
+ DRI2FrameEventPtr flip_info, int ref_crtc_hw_id)
+{
+ ScrnInfoPtr scrn = intel->scrn;
+ xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(scrn);
+ struct intel_crtc *crtc = config->crtc[0]->driver_private;
+ struct intel_mode *mode = crtc->mode;
+ unsigned int pitch = scrn->displayWidth * intel->cpp;
+ struct intel_pageflip *flip;
+ int i, old_fb_id;
+
+ /*
+ * Create a new handle for the back buffer
+ */
+ old_fb_id = mode->fb_id;
+ if (drmModeAddFB(mode->fd, scrn->virtualX, scrn->virtualY,
+ scrn->depth, scrn->bitsPerPixel, pitch,
+ new_front->handle, &mode->fb_id))
+ goto error_out;
+
+ /*
+ * Queue flips on all enabled CRTCs
+ * Note that if/when we get per-CRTC buffers, we'll have to update this.
+ * Right now it assumes a single shared fb across all CRTCs, with the
+ * kernel fixing up the offset of each CRTC as necessary.
+ *
+ * Also, flips queued on disabled or incorrectly configured displays
+ * may never complete; this is a configuration error.
+ */
+ mode->fe_frame = 0;
+ mode->fe_tv_sec = 0;
+ mode->fe_tv_usec = 0;
+
+ for (i = 0; i < config->num_crtc; i++) {
+ if (!config->crtc[i]->enabled)
+ continue;
+
+ mode->flip_info = flip_info;
+ mode->flip_count++;
+
+ crtc = config->crtc[i]->driver_private;
+
+ flip = calloc(1, sizeof(struct intel_pageflip));
+ if (flip == NULL) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "flip queue: carrier alloc failed.\n");
+ goto error_undo;
+ }
+
+ /* Only the reference crtc will finally deliver its page flip
+ * completion event. All other crtc's events will be discarded.
+ */
+ flip->dispatch_me = (intel_crtc_to_pipe(crtc->crtc) == ref_crtc_hw_id);
+ flip->mode = mode;
+
+ if (drmModePageFlip(mode->fd,
+ crtc_id(crtc),
+ mode->fb_id,
+ DRM_MODE_PAGE_FLIP_EVENT, flip)) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "flip queue failed: %s\n", strerror(errno));
+ free(flip);
+ goto error_undo;
+ }
+ }
+
+ mode->old_fb_id = old_fb_id;
+ return TRUE;
+
+error_undo:
+ drmModeRmFB(mode->fd, mode->fb_id);
+ mode->fb_id = old_fb_id;
+
+error_out:
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING, "Page flip failed: %s\n",
+ strerror(errno));
+ return FALSE;
+}
+
+static const xf86CrtcConfigFuncsRec intel_xf86crtc_config_funcs = {
+ intel_xf86crtc_resize
+};
+
+static void
+intel_vblank_handler(int fd, unsigned int frame, unsigned int tv_sec,
+ unsigned int tv_usec, void *event)
+{
+ I830DRI2FrameEventHandler(frame, tv_sec, tv_usec, event);
+}
+
+static void
+intel_page_flip_handler(int fd, unsigned int frame, unsigned int tv_sec,
+ unsigned int tv_usec, void *event_data)
+{
+ struct intel_pageflip *flip = event_data;
+ struct intel_mode *mode = flip->mode;
+
+ /* Is this the event whose info shall be delivered to higher level? */
+ if (flip->dispatch_me) {
+ /* Yes: Cache msc, ust for later delivery. */
+ mode->fe_frame = frame;
+ mode->fe_tv_sec = tv_sec;
+ mode->fe_tv_usec = tv_usec;
+ }
+ free(flip);
+
+ /* Last crtc completed flip? */
+ mode->flip_count--;
+ if (mode->flip_count > 0)
+ return;
+
+ /* Release framebuffer */
+ drmModeRmFB(mode->fd, mode->old_fb_id);
+
+ if (mode->flip_info == NULL)
+ return;
+
+ /* Deliver cached msc, ust from reference crtc to flip event handler */
+ I830DRI2FlipEventHandler(mode->fe_frame, mode->fe_tv_sec,
+ mode->fe_tv_usec, mode->flip_info);
+}
+
+static void
+drm_wakeup_handler(pointer data, int err, pointer p)
+{
+ struct intel_mode *mode;
+ fd_set *read_mask;
+
+ if (data == NULL || err < 0)
+ return;
+
+ mode = data;
+ read_mask = p;
+ if (FD_ISSET(mode->fd, read_mask))
+ drmHandleEvent(mode->fd, &mode->event_context);
+}
+
+Bool intel_mode_pre_init(ScrnInfoPtr scrn, int fd, int cpp)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct drm_i915_getparam gp;
+ struct intel_mode *mode;
+ unsigned int i;
+ int has_flipping;
+
+ mode = calloc(1, sizeof *mode);
+ if (!mode)
+ return FALSE;
+
+ mode->fd = fd;
+
+ list_init(&mode->crtcs);
+ list_init(&mode->outputs);
+
+ xf86CrtcConfigInit(scrn, &intel_xf86crtc_config_funcs);
+
+ mode->cpp = cpp;
+ mode->mode_res = drmModeGetResources(mode->fd);
+ if (!mode->mode_res) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "failed to get resources: %s\n", strerror(errno));
+ free(mode);
+ return FALSE;
+ }
+
+ xf86CrtcSetSizeRange(scrn, 320, 200, mode->mode_res->max_width,
+ mode->mode_res->max_height);
+ for (i = 0; i < mode->mode_res->count_crtcs; i++)
+ intel_crtc_init(scrn, mode, i);
+
+ for (i = 0; i < mode->mode_res->count_connectors; i++)
+ intel_output_init(scrn, mode, i);
+
+ xf86InitialConfiguration(scrn, TRUE);
+
+ has_flipping = 0;
+ gp.param = I915_PARAM_HAS_PAGEFLIPPING;
+ gp.value = &has_flipping;
+ (void)drmCommandWriteRead(intel->drmSubFD, DRM_I915_GETPARAM, &gp,
+ sizeof(gp));
+ if (has_flipping) {
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Kernel page flipping support detected, enabling\n");
+ intel->use_pageflipping = TRUE;
+
+ mode->event_context.version = DRM_EVENT_CONTEXT_VERSION;
+ mode->event_context.vblank_handler = intel_vblank_handler;
+ mode->event_context.page_flip_handler = intel_page_flip_handler;
+ }
+
+ intel->modes = mode;
+ return TRUE;
+}
+
+void
+intel_mode_init(struct intel_screen_private *intel)
+{
+ if (intel->use_pageflipping) {
+ struct intel_mode *mode = intel->modes;
+
+ /* We need to re-register the mode->fd for the synchronisation
+ * feedback on every server generation, so perform the
+ * registration within ScreenInit and not PreInit.
+ */
+ mode->flip_count = 0;
+ AddGeneralSocket(mode->fd);
+ RegisterBlockAndWakeupHandlers((BlockHandlerProcPtr)NoopDDA,
+ drm_wakeup_handler, mode);
+ }
+}
+
+void
+intel_mode_remove_fb(intel_screen_private *intel)
+{
+ struct intel_mode *mode = intel->modes;
+
+ if (mode->fb_id) {
+ drmModeRmFB(mode->fd, mode->fb_id);
+ mode->fb_id = 0;
+ }
+}
+
+void
+intel_mode_fini(intel_screen_private *intel)
+{
+ struct intel_mode *mode = intel->modes;
+
+ while(!list_is_empty(&mode->crtcs)) {
+ xf86CrtcDestroy(list_first_entry(&mode->crtcs,
+ struct intel_crtc,
+ link)->crtc);
+ }
+
+ while(!list_is_empty(&mode->outputs)) {
+ xf86OutputDestroy(list_first_entry(&mode->outputs,
+ struct intel_output,
+ link)->output);
+ }
+
+ if (mode->fb_id)
+ drmModeRmFB(mode->fd, mode->fb_id);
+
+ /* mode->rotate_fb_id should have been destroyed already */
+
+ free(mode);
+ intel->modes = NULL;
+}
+
+/* for the mode overlay */
+int
+intel_crtc_id(xf86CrtcPtr crtc)
+{
+ return crtc_id(crtc->driver_private);
+}
+
+int intel_crtc_to_pipe(xf86CrtcPtr crtc)
+{
+ struct intel_crtc *intel_crtc = crtc->driver_private;
+ return intel_crtc->pipe;
+}
diff --git a/src/intel_dri.c b/src/intel_dri.c
new file mode 100644
index 0000000..a39b512
--- /dev/null
+++ b/src/intel_dri.c
@@ -0,0 +1,1381 @@
+/**************************************************************************
+
+Copyright 2001 VA Linux Systems Inc., Fremont, California.
+Copyright © 2002 by David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+on the rights to use, copy, modify, merge, publish, distribute, sub
+license, and/or sell copies of the Software, and to permit persons to whom
+the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice (including the next
+paragraph) shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ATI, VA LINUX SYSTEMS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * Authors: Jeff Hartmann <jhartmann@valinux.com>
+ * David Dawes <dawes@xfree86.org>
+ * Keith Whitwell <keith@tungstengraphics.com>
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <stdio.h>
+#include <string.h>
+#include <assert.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/ioctl.h>
+#include <unistd.h>
+#include <fcntl.h>
+#include <sys/time.h>
+#include <time.h>
+#include <errno.h>
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86Priv.h"
+
+#include "xf86PciInfo.h"
+#include "xf86Pci.h"
+
+#include "windowstr.h"
+#include "shadow.h"
+
+#include "xaarop.h"
+
+#include "intel.h"
+#include "i830_reg.h"
+
+#include "i915_drm.h"
+
+#include "dri2.h"
+
+typedef struct {
+ int refcnt;
+ PixmapPtr pixmap;
+ unsigned int attachment;
+} I830DRI2BufferPrivateRec, *I830DRI2BufferPrivatePtr;
+
+static uint32_t pixmap_flink(PixmapPtr pixmap)
+{
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+ uint32_t name;
+
+ if (priv == NULL || priv->bo == NULL)
+ return 0;
+
+ if (dri_bo_flink(priv->bo, &name) != 0)
+ return 0;
+
+ priv->pinned = 1;
+ return name;
+}
+
+static PixmapPtr get_front_buffer(DrawablePtr drawable)
+{
+ ScreenPtr screen = drawable->pScreen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ PixmapPtr pixmap;
+
+ pixmap = get_drawable_pixmap(drawable);
+ if (!intel->use_shadow) {
+ pixmap->refcnt++;
+ } else if (pixmap_is_scanout(pixmap)) {
+ pixmap = fbCreatePixmap(screen, 0, 0, drawable->depth, 0);
+ if (pixmap) {
+ screen->ModifyPixmapHeader(pixmap,
+ drawable->width,
+ drawable->height,
+ 0, 0,
+ intel->front_pitch,
+ intel->front_buffer->virtual);
+
+ intel_set_pixmap_bo(pixmap, intel->front_buffer);
+ intel_get_pixmap_private(pixmap)->offscreen = 0;
+ if (WindowDrawable(drawable->type))
+ screen->SetWindowPixmap((WindowPtr)drawable,
+ pixmap);
+ }
+ } else if (intel_get_pixmap_bo(pixmap)) {
+ pixmap->refcnt++;
+ } else
+ pixmap = NULL;
+ return pixmap;
+}
+
+static PixmapPtr fixup_shadow(DrawablePtr drawable, PixmapPtr pixmap)
+{
+ ScreenPtr screen = drawable->pScreen;
+ PixmapPtr old = get_drawable_pixmap(drawable);
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+ GCPtr gc;
+
+ /* With an active shadow buffer, 2D pixmaps are created in
+ * system memory and GPU acceleration of 2D render operations
+ * is *disabled*. As DRI is still enabled, we create hardware
+ * buffers for the clients, and need to mix this with the
+ * 2D rendering. So we replace the system pixmap with a GTT
+ * mapping (with the kernel enforcing coherency between
+ * CPU and GPU) for 2D and provide the bo so that clients
+ * can write directly to it (or read from it in the case
+ * of TextureFromPixmap) using the GPU.
+ *
+ * So for a compositor with a GL backend (i.e. compiz) we have
+ * smooth wobbly windows but incur the cost of uncached 2D rendering,
+ * however 3D applications (games and clutter) are still fully
+ * accelerated.
+ */
+
+ if (drm_intel_gem_bo_map_gtt(priv->bo))
+ return pixmap;
+
+ screen->ModifyPixmapHeader(pixmap,
+ drawable->width,
+ drawable->height,
+ 0, 0,
+ priv->stride,
+ priv->bo->virtual);
+ priv->offscreen = 0;
+
+ /* Copy the current contents of the pixmap to the bo. */
+ gc = GetScratchGC(drawable->depth, screen);
+ if (gc) {
+ ValidateGC(&pixmap->drawable, gc);
+ gc->ops->CopyArea(drawable, &pixmap->drawable,
+ gc,
+ 0, 0,
+ drawable->width,
+ drawable->height,
+ 0, 0);
+ FreeScratchGC(gc);
+ }
+
+ intel_set_pixmap_private(pixmap, NULL);
+ screen->DestroyPixmap(pixmap);
+
+ /* Redirect 2D rendering to the uncached GTT map of the bo */
+ screen->ModifyPixmapHeader(old,
+ drawable->width,
+ drawable->height,
+ 0, 0,
+ priv->stride,
+ priv->bo->virtual);
+
+ /* And redirect the pixmap to the new bo (for 3D). */
+ intel_set_pixmap_private(old, priv);
+ old->refcnt++;
+ return old;
+}
+
+#if DRI2INFOREC_VERSION < 2
+static DRI2BufferPtr
+I830DRI2CreateBuffers(DrawablePtr drawable, unsigned int *attachments,
+ int count)
+{
+ ScreenPtr screen = drawable->pScreen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ DRI2BufferPtr buffers;
+ I830DRI2BufferPrivatePtr privates;
+ PixmapPtr pixmap, pDepthPixmap;
+ int i;
+
+ buffers = calloc(count, sizeof *buffers);
+ if (buffers == NULL)
+ return NULL;
+ privates = calloc(count, sizeof *privates);
+ if (privates == NULL) {
+ free(buffers);
+ return NULL;
+ }
+
+ pDepthPixmap = NULL;
+ for (i = 0; i < count; i++) {
+ pixmap = NULL;
+ if (attachments[i] == DRI2BufferFrontLeft) {
+ pixmap = get_front_buffer(drawable);
+ } else if (attachments[i] == DRI2BufferStencil && pDepthPixmap) {
+ pixmap = pDepthPixmap;
+ pixmap->refcnt++;
+ }
+ if (pixmap == NULL) {
+ unsigned int hint = INTEL_CREATE_PIXMAP_DRI2;
+
+ if (intel->tiling & INTEL_TILING_3D) {
+ switch (attachments[i]) {
+ case DRI2BufferDepth:
+ if (SUPPORTS_YTILING(intel))
+ hint |= INTEL_CREATE_PIXMAP_TILING_Y;
+ else
+ hint |= INTEL_CREATE_PIXMAP_TILING_X;
+ break;
+ case DRI2BufferFakeFrontLeft:
+ case DRI2BufferFakeFrontRight:
+ case DRI2BufferBackLeft:
+ case DRI2BufferBackRight:
+ hint |= INTEL_CREATE_PIXMAP_TILING_X;
+ break;
+ }
+ }
+
+ pixmap = screen->CreatePixmap(screen,
+ drawable->width,
+ drawable->height,
+ drawable->depth,
+ hint);
+ if (pixmap == NULL ||
+ intel_get_pixmap_bo(pixmap) == NULL)
+ {
+ if (pixmap)
+ screen->DestroyPixmap(pixmap);
+ goto unwind;
+ }
+
+ if (attachment == DRI2BufferFrontLeft)
+ pixmap = fixup_shadow(drawable, pixmap);
+ }
+
+ if (attachments[i] == DRI2BufferDepth)
+ pDepthPixmap = pixmap;
+
+ buffers[i].attachment = attachments[i];
+ buffers[i].pitch = pixmap->devKind;
+ buffers[i].cpp = pixmap->drawable.bitsPerPixel / 8;
+ buffers[i].driverPrivate = &privates[i];
+ buffers[i].flags = 0; /* not tiled */
+ privates[i].refcnt = 1;
+ privates[i].pixmap = pixmap;
+ privates[i].attachment = attachments[i];
+
+ if ((buffers[i].name = pixmap_flink(pixmap)) == 0) {
+ /* failed to name buffer */
+ screen->DestroyPixmap(pixmap);
+ goto unwind;
+ }
+ }
+
+ return buffers;
+
+unwind:
+ while (i--)
+ screen->DestroyPixmap(privates[i].pixmap);
+ free(privates);
+ free(buffers);
+ return NULL;
+}
+
+static void
+I830DRI2DestroyBuffers(DrawablePtr drawable, DRI2BufferPtr buffers, int count)
+{
+ ScreenPtr screen = drawable->pScreen;
+ I830DRI2BufferPrivatePtr private;
+ int i;
+
+ for (i = 0; i < count; i++) {
+ private = buffers[i].driverPrivate;
+ screen->DestroyPixmap(private->pixmap);
+ }
+
+ if (buffers) {
+ free(buffers[0].driverPrivate);
+ free(buffers);
+ }
+}
+
+#else
+
+static DRI2Buffer2Ptr
+I830DRI2CreateBuffer(DrawablePtr drawable, unsigned int attachment,
+ unsigned int format)
+{
+ ScreenPtr screen = drawable->pScreen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ DRI2Buffer2Ptr buffer;
+ I830DRI2BufferPrivatePtr privates;
+ PixmapPtr pixmap;
+
+ buffer = calloc(1, sizeof *buffer);
+ if (buffer == NULL)
+ return NULL;
+ privates = calloc(1, sizeof *privates);
+ if (privates == NULL) {
+ free(buffer);
+ return NULL;
+ }
+
+ pixmap = NULL;
+ if (attachment == DRI2BufferFrontLeft)
+ pixmap = get_front_buffer(drawable);
+ if (pixmap == NULL) {
+ unsigned int hint = INTEL_CREATE_PIXMAP_DRI2;
+
+ if (intel->tiling & INTEL_TILING_3D) {
+ switch (attachment) {
+ case DRI2BufferDepth:
+ case DRI2BufferDepthStencil:
+ if (SUPPORTS_YTILING(intel)) {
+ hint |= INTEL_CREATE_PIXMAP_TILING_Y;
+ break;
+ }
+ default:
+ hint |= INTEL_CREATE_PIXMAP_TILING_X;
+ break;
+ }
+ }
+
+ pixmap = screen->CreatePixmap(screen,
+ drawable->width,
+ drawable->height,
+ (format != 0) ? format :
+ drawable->depth,
+ hint);
+ if (pixmap == NULL || intel_get_pixmap_bo(pixmap) == NULL) {
+ if (pixmap)
+ screen->DestroyPixmap(pixmap);
+ free(privates);
+ free(buffer);
+ return NULL;
+ }
+
+ if (attachment == DRI2BufferFrontLeft)
+ pixmap = fixup_shadow(drawable, pixmap);
+ }
+
+ buffer->attachment = attachment;
+ buffer->pitch = pixmap->devKind;
+ buffer->cpp = pixmap->drawable.bitsPerPixel / 8;
+ buffer->driverPrivate = privates;
+ buffer->format = format;
+ buffer->flags = 0; /* not tiled */
+ privates->refcnt = 1;
+ privates->pixmap = pixmap;
+ privates->attachment = attachment;
+
+ if ((buffer->name = pixmap_flink(pixmap)) == 0) {
+ /* failed to name buffer */
+ screen->DestroyPixmap(pixmap);
+ free(privates);
+ free(buffer);
+ return NULL;
+ }
+
+ return buffer;
+}
+
+static void I830DRI2DestroyBuffer(DrawablePtr drawable, DRI2Buffer2Ptr buffer)
+{
+ if (buffer && buffer->driverPrivate) {
+ I830DRI2BufferPrivatePtr private = buffer->driverPrivate;
+ if (--private->refcnt == 0) {
+ ScreenPtr screen = private->pixmap->drawable.pScreen;
+ screen->DestroyPixmap(private->pixmap);
+
+ free(private);
+ free(buffer);
+ }
+ } else
+ free(buffer);
+}
+
+#endif
+
+static void
+I830DRI2CopyRegion(DrawablePtr drawable, RegionPtr pRegion,
+ DRI2BufferPtr destBuffer, DRI2BufferPtr sourceBuffer)
+{
+ I830DRI2BufferPrivatePtr srcPrivate = sourceBuffer->driverPrivate;
+ I830DRI2BufferPrivatePtr dstPrivate = destBuffer->driverPrivate;
+ ScreenPtr screen = drawable->pScreen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ DrawablePtr src = (srcPrivate->attachment == DRI2BufferFrontLeft)
+ ? drawable : &srcPrivate->pixmap->drawable;
+ DrawablePtr dst = (dstPrivate->attachment == DRI2BufferFrontLeft)
+ ? drawable : &dstPrivate->pixmap->drawable;
+ RegionPtr pCopyClip;
+ GCPtr gc;
+
+ gc = GetScratchGC(dst->depth, screen);
+ if (!gc)
+ return;
+
+ pCopyClip = REGION_CREATE(screen, NULL, 0);
+ REGION_COPY(screen, pCopyClip, pRegion);
+ (*gc->funcs->ChangeClip) (gc, CT_REGION, pCopyClip, 0);
+ ValidateGC(dst, gc);
+
+ /* Wait for the scanline to be outside the region to be copied */
+ if (pixmap_is_scanout(get_drawable_pixmap(dst)) &&
+ intel->swapbuffers_wait) {
+ BoxPtr box;
+ BoxRec crtcbox;
+ int y1, y2;
+ int pipe = -1, event, load_scan_lines_pipe;
+ xf86CrtcPtr crtc;
+ Bool full_height = FALSE;
+
+ box = REGION_EXTENTS(unused, gc->pCompositeClip);
+ crtc = intel_covering_crtc(scrn, box, NULL, &crtcbox);
+
+ /*
+ * Make sure the CRTC is valid and this is the real front
+ * buffer
+ */
+ if (crtc != NULL && !crtc->rotatedData) {
+ pipe = intel_crtc_to_pipe(crtc);
+
+ /*
+ * Make sure we don't wait for a scanline that will
+ * never occur
+ */
+ y1 = (crtcbox.y1 <= box->y1) ? box->y1 - crtcbox.y1 : 0;
+ y2 = (box->y2 <= crtcbox.y2) ?
+ box->y2 - crtcbox.y1 : crtcbox.y2 - crtcbox.y1;
+
+ if (y1 == 0 && y2 == (crtcbox.y2 - crtcbox.y1))
+ full_height = TRUE;
+
+ /*
+ * Pre-965 doesn't have SVBLANK, so we need a bit
+ * of extra time for the blitter to start up and
+ * do its job for a full height blit
+ */
+ if (full_height && INTEL_INFO(intel)->gen < 40)
+ y2 -= 2;
+
+ if (pipe == 0) {
+ event = MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW;
+ load_scan_lines_pipe =
+ MI_LOAD_SCAN_LINES_DISPLAY_PIPEA;
+ if (full_height && INTEL_INFO(intel)->gen >= 40)
+ event = MI_WAIT_FOR_PIPEA_SVBLANK;
+ } else {
+ event = MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW;
+ load_scan_lines_pipe =
+ MI_LOAD_SCAN_LINES_DISPLAY_PIPEB;
+ if (full_height && INTEL_INFO(intel)->gen >= 40)
+ event = MI_WAIT_FOR_PIPEB_SVBLANK;
+ }
+
+ if (crtc->mode.Flags & V_INTERLACE) {
+ /* DSL count field lines */
+ y1 /= 2;
+ y2 /= 2;
+ }
+
+ BEGIN_BATCH(5);
+ /*
+ * The documentation says that the LOAD_SCAN_LINES
+ * command always comes in pairs. Don't ask me why.
+ */
+ OUT_BATCH(MI_LOAD_SCAN_LINES_INCL |
+ load_scan_lines_pipe);
+ OUT_BATCH((y1 << 16) | (y2-1));
+ OUT_BATCH(MI_LOAD_SCAN_LINES_INCL |
+ load_scan_lines_pipe);
+ OUT_BATCH((y1 << 16) | (y2-1));
+ OUT_BATCH(MI_WAIT_FOR_EVENT | event);
+ ADVANCE_BATCH();
+ }
+ }
+
+ /* It's important that this copy gets submitted before the
+ * direct rendering client submits rendering for the next
+ * frame, but we don't actually need to submit right now. The
+ * client will wait for the DRI2CopyRegion reply or the swap
+ * buffer event before rendering, and we'll hit the flush
+ * callback chain before those messages are sent. We submit
+ * our batch buffers from the flush callback chain so we know
+ * that will happen before the client tries to render
+ * again. */
+
+ /* Re-enable 2D acceleration... */
+ if (intel->use_shadow) {
+ struct intel_pixmap *src_pixmap, *dst_pixmap;
+
+ src_pixmap = intel_get_pixmap_private(get_drawable_pixmap(src));
+ if (src_pixmap) {
+ src_pixmap->offscreen = 1;
+ src_pixmap->busy = 1;
+ }
+
+ dst_pixmap = intel_get_pixmap_private(get_drawable_pixmap(dst));
+ if (dst_pixmap) {
+ dst_pixmap->offscreen = 1;
+ dst_pixmap->busy = 1;
+ }
+
+ gc->ops->CopyArea(src, dst, gc,
+ 0, 0,
+ drawable->width, drawable->height,
+ 0, 0);
+
+ /* and restore 2D/3D coherency */
+ if (src_pixmap)
+ src_pixmap->offscreen = 0;
+ if (dst_pixmap)
+ dst_pixmap->offscreen = 0;
+ } else {
+ gc->ops->CopyArea(src, dst, gc,
+ 0, 0,
+ drawable->width, drawable->height,
+ 0, 0);
+ }
+ FreeScratchGC(gc);
+}
+
+#if DRI2INFOREC_VERSION >= 4
+
+static void I830DRI2ReferenceBuffer(DRI2Buffer2Ptr buffer)
+{
+ if (buffer) {
+ I830DRI2BufferPrivatePtr private = buffer->driverPrivate;
+ private->refcnt++;
+ }
+}
+
+static int
+I830DRI2DrawablePipe(DrawablePtr pDraw)
+{
+ ScreenPtr pScreen = pDraw->pScreen;
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ BoxRec box, crtcbox;
+ xf86CrtcPtr crtc;
+ int pipe = -1;
+
+ box.x1 = pDraw->x;
+ box.y1 = pDraw->y;
+ box.x2 = box.x1 + pDraw->width;
+ box.y2 = box.y1 + pDraw->height;
+
+ crtc = intel_covering_crtc(pScrn, &box, NULL, &crtcbox);
+
+ /* Make sure the CRTC is valid and this is the real front buffer */
+ if (crtc != NULL && !crtc->rotatedData)
+ pipe = intel_crtc_to_pipe(crtc);
+
+ return pipe;
+}
+
+static RESTYPE frame_event_client_type, frame_event_drawable_type;
+
+static int
+i830_dri2_frame_event_client_gone(void *data, XID id)
+{
+ DRI2FrameEventPtr frame_event = data;
+
+ frame_event->client = NULL;
+ frame_event->client_id = None;
+ return Success;
+}
+
+static int
+i830_dri2_frame_event_drawable_gone(void *data, XID id)
+{
+ DRI2FrameEventPtr frame_event = data;
+
+ frame_event->drawable_id = None;
+ return Success;
+}
+
+static Bool
+i830_dri2_register_frame_event_resource_types(void)
+{
+ frame_event_client_type = CreateNewResourceType(i830_dri2_frame_event_client_gone, "Frame Event Client");
+ if (!frame_event_client_type)
+ return FALSE;
+
+ frame_event_drawable_type = CreateNewResourceType(i830_dri2_frame_event_drawable_gone, "Frame Event Drawable");
+ if (!frame_event_drawable_type)
+ return FALSE;
+
+ return TRUE;
+}
+
+/*
+ * Hook this frame event into the server resource
+ * database so we can clean it up if the drawable or
+ * client exits while the swap is pending
+ */
+static Bool
+i830_dri2_add_frame_event(DRI2FrameEventPtr frame_event)
+{
+ frame_event->client_id = FakeClientID(frame_event->client->index);
+
+ if (!AddResource(frame_event->client_id, frame_event_client_type, frame_event))
+ return FALSE;
+
+ if (!AddResource(frame_event->drawable_id, frame_event_drawable_type, frame_event)) {
+ FreeResourceByType(frame_event->client_id, frame_event_client_type, TRUE);
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+static void
+i830_dri2_del_frame_event(DRI2FrameEventPtr frame_event)
+{
+ if (frame_event->client_id)
+ FreeResourceByType(frame_event->client_id, frame_event_client_type, TRUE);
+ if (frame_event->drawable_id)
+ FreeResourceByType(frame_event->drawable_id, frame_event_drawable_type, TRUE);
+}
+
+static void
+I830DRI2ExchangeBuffers(DrawablePtr draw, DRI2BufferPtr front,
+ DRI2BufferPtr back)
+{
+ I830DRI2BufferPrivatePtr front_priv, back_priv;
+ struct intel_pixmap *front_intel, *back_intel;
+ ScreenPtr screen;
+ intel_screen_private *intel;
+ int tmp;
+
+ front_priv = front->driverPrivate;
+ back_priv = back->driverPrivate;
+
+ /* Swap BO names so DRI works */
+ tmp = front->name;
+ front->name = back->name;
+ back->name = tmp;
+
+ /* Swap pixmap bos */
+ front_intel = intel_get_pixmap_private(front_priv->pixmap);
+ back_intel = intel_get_pixmap_private(back_priv->pixmap);
+ intel_set_pixmap_private(front_priv->pixmap, back_intel);
+ intel_set_pixmap_private(back_priv->pixmap, front_intel); /* should be screen */
+
+ /* Do we need to update the Screen? */
+ screen = draw->pScreen;
+ intel = intel_get_screen_private(xf86Screens[screen->myNum]);
+ if (front_intel->bo == intel->front_buffer) {
+ dri_bo_unreference (intel->front_buffer);
+ intel->front_buffer = back_intel->bo;
+ dri_bo_reference (intel->front_buffer);
+ intel_set_pixmap_private(screen->GetScreenPixmap(screen),
+ back_intel);
+ back_intel->busy = 1;
+ front_intel->busy = -1;
+ }
+}
+
+/*
+ * Our internal swap routine takes care of actually exchanging, blitting, or
+ * flipping buffers as necessary.
+ */
+static Bool
+I830DRI2ScheduleFlip(struct intel_screen_private *intel,
+ ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
+ DRI2BufferPtr back, DRI2SwapEventPtr func, void *data,
+ unsigned int target_msc)
+{
+ I830DRI2BufferPrivatePtr back_priv;
+ DRI2FrameEventPtr flip_info;
+
+ /* Main crtc for this drawable shall finally deliver pageflip event. */
+ int ref_crtc_hw_id = I830DRI2DrawablePipe(draw);
+
+ flip_info = calloc(1, sizeof(DRI2FrameEventRec));
+ if (!flip_info)
+ return FALSE;
+
+ flip_info->drawable_id = draw->id;
+ flip_info->client = client;
+ flip_info->type = DRI2_SWAP;
+ flip_info->event_complete = func;
+ flip_info->event_data = data;
+ flip_info->frame = target_msc;
+
+ if (!i830_dri2_add_frame_event(flip_info)) {
+ free(flip_info);
+ return FALSE;
+ }
+
+ /* Page flip the full screen buffer */
+ back_priv = back->driverPrivate;
+ if (intel_do_pageflip(intel,
+ intel_get_pixmap_bo(back_priv->pixmap),
+ flip_info, ref_crtc_hw_id))
+ return TRUE;
+
+ i830_dri2_del_frame_event(flip_info);
+ free(flip_info);
+ return FALSE;
+}
+
+static Bool
+can_exchange(DRI2BufferPtr front, DRI2BufferPtr back)
+{
+ I830DRI2BufferPrivatePtr front_priv = front->driverPrivate;
+ I830DRI2BufferPrivatePtr back_priv = back->driverPrivate;
+ PixmapPtr front_pixmap = front_priv->pixmap;
+ PixmapPtr back_pixmap = back_priv->pixmap;
+ struct intel_pixmap *front_intel = intel_get_pixmap_private(front_pixmap);
+ struct intel_pixmap *back_intel = intel_get_pixmap_private(back_pixmap);
+
+ if (front_pixmap->drawable.width != back_pixmap->drawable.width)
+ return FALSE;
+
+ if (front_pixmap->drawable.height != back_pixmap->drawable.height)
+ return FALSE;
+
+ /* XXX should we be checking depth instead of bpp? */
+#if 0
+ if (front_pixmap->drawable.depth != back_pixmap->drawable.depth)
+ return FALSE;
+#else
+ if (front_pixmap->drawable.bitsPerPixel != back_pixmap->drawable.bitsPerPixel)
+ return FALSE;
+#endif
+
+ /* prevent an implicit tiling mode change */
+ if (front_intel->tiling != back_intel->tiling)
+ return FALSE;
+
+ return TRUE;
+}
+
+void I830DRI2FrameEventHandler(unsigned int frame, unsigned int tv_sec,
+ unsigned int tv_usec, DRI2FrameEventPtr swap_info)
+{
+ DrawablePtr drawable;
+ ScreenPtr screen;
+ ScrnInfoPtr scrn;
+ intel_screen_private *intel;
+ int status;
+
+ if (!swap_info->drawable_id)
+ status = BadDrawable;
+ else
+ status = dixLookupDrawable(&drawable, swap_info->drawable_id, serverClient,
+ M_ANY, DixWriteAccess);
+ if (status != Success) {
+ i830_dri2_del_frame_event(swap_info);
+ I830DRI2DestroyBuffer(NULL, swap_info->front);
+ I830DRI2DestroyBuffer(NULL, swap_info->back);
+ free(swap_info);
+ return;
+ }
+
+ screen = drawable->pScreen;
+ scrn = xf86Screens[screen->myNum];
+ intel = intel_get_screen_private(scrn);
+
+ switch (swap_info->type) {
+ case DRI2_FLIP:
+ /* If we can still flip... */
+ if (DRI2CanFlip(drawable) && !intel->shadow_present &&
+ intel->use_pageflipping &&
+ can_exchange(swap_info->front, swap_info->back) &&
+ I830DRI2ScheduleFlip(intel,
+ swap_info->client, drawable, swap_info->front,
+ swap_info->back, swap_info->event_complete,
+ swap_info->event_data, swap_info->frame)) {
+ I830DRI2ExchangeBuffers(drawable,
+ swap_info->front, swap_info->back);
+ break;
+ }
+ /* else fall through to exchange/blit */
+ case DRI2_SWAP: {
+ int swap_type;
+
+ if (DRI2CanExchange(drawable) && can_exchange(swap_info->front,
+ swap_info->back)) {
+ I830DRI2ExchangeBuffers(drawable,
+ swap_info->front, swap_info->back);
+ swap_type = DRI2_EXCHANGE_COMPLETE;
+ } else {
+ BoxRec box;
+ RegionRec region;
+
+ box.x1 = 0;
+ box.y1 = 0;
+ box.x2 = drawable->width;
+ box.y2 = drawable->height;
+ REGION_INIT(pScreen, &region, &box, 0);
+
+ I830DRI2CopyRegion(drawable,
+ &region, swap_info->front, swap_info->back);
+ swap_type = DRI2_BLIT_COMPLETE;
+ }
+ DRI2SwapComplete(swap_info->client, drawable, frame, tv_sec, tv_usec,
+ swap_type,
+ swap_info->client ? swap_info->event_complete : NULL,
+ swap_info->event_data);
+ break;
+ }
+ case DRI2_WAITMSC:
+ if (swap_info->client)
+ DRI2WaitMSCComplete(swap_info->client, drawable,
+ frame, tv_sec, tv_usec);
+ break;
+ default:
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s: unknown vblank event received\n", __func__);
+ /* Unknown type */
+ break;
+ }
+
+ i830_dri2_del_frame_event(swap_info);
+ I830DRI2DestroyBuffer(drawable, swap_info->front);
+ I830DRI2DestroyBuffer(drawable, swap_info->back);
+ free(swap_info);
+}
+
+void I830DRI2FlipEventHandler(unsigned int frame, unsigned int tv_sec,
+ unsigned int tv_usec, DRI2FrameEventPtr flip_info)
+{
+ DrawablePtr drawable;
+ ScreenPtr screen;
+ ScrnInfoPtr scrn;
+ int status;
+
+ if (!flip_info->drawable_id)
+ status = BadDrawable;
+ else
+ status = dixLookupDrawable(&drawable, flip_info->drawable_id, serverClient,
+ M_ANY, DixWriteAccess);
+ if (status != Success) {
+ i830_dri2_del_frame_event(flip_info);
+ free(flip_info);
+ return;
+ }
+
+ screen = drawable->pScreen;
+ scrn = xf86Screens[screen->myNum];
+
+ /* We assume our flips arrive in order, so we don't check the frame */
+ switch (flip_info->type) {
+ case DRI2_SWAP:
+ /* Check for too small vblank count of pageflip completion, taking wraparound
+ * into account. This usually means some defective kms pageflip completion,
+ * causing wrong (msc, ust) return values and possible visual corruption.
+ */
+ if ((frame < flip_info->frame) && (flip_info->frame - frame < 5)) {
+ static int limit = 5;
+
+ /* XXX we are currently hitting this path with older
+ * kernels, so make it quieter.
+ */
+ if (limit) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s: Pageflip completion has impossible msc %d < target_msc %d\n",
+ __func__, frame, flip_info->frame);
+ limit--;
+ }
+
+ /* All-0 values signal timestamping failure. */
+ frame = tv_sec = tv_usec = 0;
+ }
+
+ DRI2SwapComplete(flip_info->client, drawable, frame, tv_sec, tv_usec,
+ DRI2_FLIP_COMPLETE, flip_info->client ? flip_info->event_complete : NULL,
+ flip_info->event_data);
+ break;
+ default:
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s: unknown vblank event received\n", __func__);
+ /* Unknown type */
+ break;
+ }
+
+ i830_dri2_del_frame_event(flip_info);
+ free(flip_info);
+}
+
+/*
+ * ScheduleSwap is responsible for requesting a DRM vblank event for the
+ * appropriate frame.
+ *
+ * In the case of a blit (e.g. for a windowed swap) or buffer exchange,
+ * the vblank requested can simply be the last queued swap frame + the swap
+ * interval for the drawable.
+ *
+ * In the case of a page flip, we request an event for the last queued swap
+ * frame + swap interval - 1, since we'll need to queue the flip for the frame
+ * immediately following the received event.
+ *
+ * The client will be blocked if it tries to perform further GL commands
+ * after queueing a swap, though in the Intel case after queueing a flip, the
+ * client is free to queue more commands; they'll block in the kernel if
+ * they access buffers busy with the flip.
+ *
+ * When the swap is complete, the driver should call into the server so it
+ * can send any swap complete events that have been requested.
+ */
+static int
+I830DRI2ScheduleSwap(ClientPtr client, DrawablePtr draw, DRI2BufferPtr front,
+ DRI2BufferPtr back, CARD64 *target_msc, CARD64 divisor,
+ CARD64 remainder, DRI2SwapEventPtr func, void *data)
+{
+ ScreenPtr screen = draw->pScreen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drmVBlank vbl;
+ int ret, pipe = I830DRI2DrawablePipe(draw), flip = 0;
+ DRI2FrameEventPtr swap_info = NULL;
+ enum DRI2FrameEventType swap_type = DRI2_SWAP;
+ CARD64 current_msc;
+ BoxRec box;
+ RegionRec region;
+
+ /* Drawable not displayed... just complete the swap */
+ if (pipe == -1)
+ goto blit_fallback;
+
+ /* Truncate to match kernel interfaces; means occasional overflow
+ * misses, but that's generally not a big deal */
+ *target_msc &= 0xffffffff;
+ divisor &= 0xffffffff;
+ remainder &= 0xffffffff;
+
+ swap_info = calloc(1, sizeof(DRI2FrameEventRec));
+ if (!swap_info)
+ goto blit_fallback;
+
+ swap_info->drawable_id = draw->id;
+ swap_info->client = client;
+ swap_info->event_complete = func;
+ swap_info->event_data = data;
+ swap_info->front = front;
+ swap_info->back = back;
+
+ if (!i830_dri2_add_frame_event(swap_info)) {
+ free(swap_info);
+ swap_info = NULL;
+ goto blit_fallback;
+ }
+
+ I830DRI2ReferenceBuffer(front);
+ I830DRI2ReferenceBuffer(back);
+
+ /* Get current count */
+ vbl.request.type = DRM_VBLANK_RELATIVE;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+ vbl.request.sequence = 0;
+ ret = drmWaitVBlank(intel->drmSubFD, &vbl);
+ if (ret) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "first get vblank counter failed: %s\n",
+ strerror(errno));
+ goto blit_fallback;
+ }
+
+ current_msc = vbl.reply.sequence;
+
+ /* Flips need to be submitted one frame before */
+ if (intel->use_pageflipping &&
+ !intel->shadow_present &&
+ DRI2CanFlip(draw) &&
+ can_exchange(front, back)) {
+ swap_type = DRI2_FLIP;
+ flip = 1;
+ }
+
+ swap_info->type = swap_type;
+
+ /* Correct target_msc by 'flip' if swap_type == DRI2_FLIP.
+ * Do it early, so handling of different timing constraints
+ * for divisor, remainder and msc vs. target_msc works.
+ */
+ if (*target_msc > 0)
+ *target_msc -= flip;
+
+ /*
+ * If divisor is zero, or current_msc is smaller than target_msc
+ * we just need to make sure target_msc passes before initiating
+ * the swap.
+ */
+ if (divisor == 0 || current_msc < *target_msc) {
+ vbl.request.type = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+
+ /* If non-pageflipping, but blitting/exchanging, we need to use
+ * DRM_VBLANK_NEXTONMISS to avoid unreliable timestamping later
+ * on.
+ */
+ if (flip == 0)
+ vbl.request.type |= DRM_VBLANK_NEXTONMISS;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+
+ /* If target_msc already reached or passed, set it to
+ * current_msc to ensure we return a reasonable value back
+ * to the caller. This makes swap_interval logic more robust.
+ */
+ if (current_msc >= *target_msc)
+ *target_msc = current_msc;
+
+ vbl.request.sequence = *target_msc;
+ vbl.request.signal = (unsigned long)swap_info;
+ ret = drmWaitVBlank(intel->drmSubFD, &vbl);
+ if (ret) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "divisor 0 get vblank counter failed: %s\n",
+ strerror(errno));
+ goto blit_fallback;
+ }
+
+ *target_msc = vbl.reply.sequence + flip;
+ swap_info->frame = *target_msc;
+
+ return TRUE;
+ }
+
+ /*
+ * If we get here, target_msc has already passed or we don't have one,
+ * and we need to queue an event that will satisfy the divisor/remainder
+ * equation.
+ */
+ vbl.request.type = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
+ if (flip == 0)
+ vbl.request.type |= DRM_VBLANK_NEXTONMISS;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+
+ vbl.request.sequence = current_msc - (current_msc % divisor) +
+ remainder;
+
+ /*
+ * If the calculated deadline vbl.request.sequence is smaller than
+ * or equal to current_msc, it means we've passed the last point
+ * when effective onset frame seq could satisfy
+ * seq % divisor == remainder, so we need to wait for the next time
+ * this will happen.
+
+ * This comparison takes the 1 frame swap delay in pageflipping mode
+ * into account, as well as a potential DRM_VBLANK_NEXTONMISS delay
+ * if we are blitting/exchanging instead of flipping.
+ */
+ if (vbl.request.sequence <= current_msc)
+ vbl.request.sequence += divisor;
+
+ /* Account for 1 frame extra pageflip delay if flip > 0 */
+ vbl.request.sequence -= flip;
+
+ vbl.request.signal = (unsigned long)swap_info;
+ ret = drmWaitVBlank(intel->drmSubFD, &vbl);
+ if (ret) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "final get vblank counter failed: %s\n",
+ strerror(errno));
+ goto blit_fallback;
+ }
+
+ /* Adjust returned value for 1 fame pageflip offset of flip > 0 */
+ *target_msc = vbl.reply.sequence + flip;
+ swap_info->frame = *target_msc;
+
+ return TRUE;
+
+blit_fallback:
+ box.x1 = 0;
+ box.y1 = 0;
+ box.x2 = draw->width;
+ box.y2 = draw->height;
+ REGION_INIT(pScreen, &region, &box, 0);
+
+ I830DRI2CopyRegion(draw, &region, front, back);
+
+ DRI2SwapComplete(client, draw, 0, 0, 0, DRI2_BLIT_COMPLETE, func, data);
+ if (swap_info) {
+ i830_dri2_del_frame_event(swap_info);
+ I830DRI2DestroyBuffer(draw, swap_info->front);
+ I830DRI2DestroyBuffer(draw, swap_info->back);
+ free(swap_info);
+ }
+ *target_msc = 0; /* offscreen, so zero out target vblank count */
+ return TRUE;
+}
+
+/*
+ * Get current frame count and frame count timestamp, based on drawable's
+ * crtc.
+ */
+static int
+I830DRI2GetMSC(DrawablePtr draw, CARD64 *ust, CARD64 *msc)
+{
+ ScreenPtr screen = draw->pScreen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drmVBlank vbl;
+ int ret, pipe = I830DRI2DrawablePipe(draw);
+
+ /* Drawable not displayed, make up a value */
+ if (pipe == -1) {
+ *ust = 0;
+ *msc = 0;
+ return TRUE;
+ }
+
+ vbl.request.type = DRM_VBLANK_RELATIVE;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+ vbl.request.sequence = 0;
+
+ ret = drmWaitVBlank(intel->drmSubFD, &vbl);
+ if (ret) {
+ static int limit = 5;
+ if (limit) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s:%d get vblank counter failed: %s\n",
+ __FUNCTION__, __LINE__,
+ strerror(errno));
+ limit--;
+ }
+ return FALSE;
+ }
+
+ *ust = ((CARD64)vbl.reply.tval_sec * 1000000) + vbl.reply.tval_usec;
+ *msc = vbl.reply.sequence;
+
+ return TRUE;
+}
+
+/*
+ * Request a DRM event when the requested conditions will be satisfied.
+ *
+ * We need to handle the event and ask the server to wake up the client when
+ * we receive it.
+ */
+static int
+I830DRI2ScheduleWaitMSC(ClientPtr client, DrawablePtr draw, CARD64 target_msc,
+ CARD64 divisor, CARD64 remainder)
+{
+ ScreenPtr screen = draw->pScreen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ DRI2FrameEventPtr wait_info;
+ drmVBlank vbl;
+ int ret, pipe = I830DRI2DrawablePipe(draw);
+ CARD64 current_msc;
+
+ /* Truncate to match kernel interfaces; means occasional overflow
+ * misses, but that's generally not a big deal */
+ target_msc &= 0xffffffff;
+ divisor &= 0xffffffff;
+ remainder &= 0xffffffff;
+
+ /* Drawable not visible, return immediately */
+ if (pipe == -1)
+ goto out_complete;
+
+ wait_info = calloc(1, sizeof(DRI2FrameEventRec));
+ if (!wait_info)
+ goto out_complete;
+
+ wait_info->drawable_id = draw->id;
+ wait_info->client = client;
+ wait_info->type = DRI2_WAITMSC;
+
+ /* Get current count */
+ vbl.request.type = DRM_VBLANK_RELATIVE;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+ vbl.request.sequence = 0;
+ ret = drmWaitVBlank(intel->drmSubFD, &vbl);
+ if (ret) {
+ static int limit = 5;
+ if (limit) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s:%d get vblank counter failed: %s\n",
+ __FUNCTION__, __LINE__,
+ strerror(errno));
+ limit--;
+ }
+ goto out_complete;
+ }
+
+ current_msc = vbl.reply.sequence;
+
+ /*
+ * If divisor is zero, or current_msc is smaller than target_msc,
+ * we just need to make sure target_msc passes before waking up the
+ * client.
+ */
+ if (divisor == 0 || current_msc < target_msc) {
+ /* If target_msc already reached or passed, set it to
+ * current_msc to ensure we return a reasonable value back
+ * to the caller. This keeps the client from continually
+ * sending us MSC targets from the past by forcibly updating
+ * their count on this call.
+ */
+ if (current_msc >= target_msc)
+ target_msc = current_msc;
+ vbl.request.type = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+ vbl.request.sequence = target_msc;
+ vbl.request.signal = (unsigned long)wait_info;
+ ret = drmWaitVBlank(intel->drmSubFD, &vbl);
+ if (ret) {
+ static int limit = 5;
+ if (limit) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s:%d get vblank counter failed: %s\n",
+ __FUNCTION__, __LINE__,
+ strerror(errno));
+ limit--;
+ }
+ goto out_complete;
+ }
+
+ wait_info->frame = vbl.reply.sequence;
+ DRI2BlockClient(client, draw);
+ return TRUE;
+ }
+
+ /*
+ * If we get here, target_msc has already passed or we don't have one,
+ * so we queue an event that will satisfy the divisor/remainder equation.
+ */
+ vbl.request.type = DRM_VBLANK_ABSOLUTE | DRM_VBLANK_EVENT;
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+
+ vbl.request.sequence = current_msc - (current_msc % divisor) +
+ remainder;
+
+ /*
+ * If calculated remainder is larger than requested remainder,
+ * it means we've passed the last point where
+ * seq % divisor == remainder, so we need to wait for the next time
+ * that will happen.
+ */
+ if ((current_msc % divisor) >= remainder)
+ vbl.request.sequence += divisor;
+
+ vbl.request.signal = (unsigned long)wait_info;
+ ret = drmWaitVBlank(intel->drmSubFD, &vbl);
+ if (ret) {
+ static int limit = 5;
+ if (limit) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s:%d get vblank counter failed: %s\n",
+ __FUNCTION__, __LINE__,
+ strerror(errno));
+ limit--;
+ }
+ goto out_complete;
+ }
+
+ wait_info->frame = vbl.reply.sequence;
+ DRI2BlockClient(client, draw);
+
+ return TRUE;
+
+out_complete:
+ DRI2WaitMSCComplete(client, draw, target_msc, 0, 0);
+ return TRUE;
+}
+
+static int dri2_server_generation;
+#endif
+
+Bool I830DRI2ScreenInit(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ DRI2InfoRec info;
+ int dri2_major = 1;
+ int dri2_minor = 0;
+#if DRI2INFOREC_VERSION >= 4
+ const char *driverNames[1];
+#endif
+
+ if (intel->force_fallback) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "cannot enable DRI2 whilst forcing software fallbacks\n");
+ return FALSE;
+ }
+
+ if (xf86LoaderCheckSymbol("DRI2Version"))
+ DRI2Version(&dri2_major, &dri2_minor);
+
+ if (dri2_minor < 1) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "DRI2 requires DRI2 module version 1.1.0 or later\n");
+ return FALSE;
+ }
+
+#if DRI2INFOREC_VERSION >= 4
+ if (serverGeneration != dri2_server_generation) {
+ dri2_server_generation = serverGeneration;
+ if (!i830_dri2_register_frame_event_resource_types()) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "Cannot register DRI2 frame event resources\n");
+ return FALSE;
+ }
+ }
+#endif
+
+ intel->deviceName = drmGetDeviceNameFromFd(intel->drmSubFD);
+ memset(&info, '\0', sizeof(info));
+ info.fd = intel->drmSubFD;
+ info.driverName = INTEL_INFO(intel)->gen < 40 ? "i915" : "i965";
+ info.deviceName = intel->deviceName;
+
+#if DRI2INFOREC_VERSION == 1
+ info.version = 1;
+ info.CreateBuffers = I830DRI2CreateBuffers;
+ info.DestroyBuffers = I830DRI2DestroyBuffers;
+#elif DRI2INFOREC_VERSION == 2
+ /* The ABI between 2 and 3 was broken so we could get rid of
+ * the multi-buffer alloc functions. Make sure we indicate the
+ * right version so DRI2 can reject us if it's version 3 or above. */
+ info.version = 2;
+ info.CreateBuffer = I830DRI2CreateBuffer;
+ info.DestroyBuffer = I830DRI2DestroyBuffer;
+#else
+ info.version = 3;
+ info.CreateBuffer = I830DRI2CreateBuffer;
+ info.DestroyBuffer = I830DRI2DestroyBuffer;
+#endif
+
+ info.CopyRegion = I830DRI2CopyRegion;
+#if DRI2INFOREC_VERSION >= 4
+ if (intel->use_pageflipping) {
+ info.version = 4;
+ info.ScheduleSwap = I830DRI2ScheduleSwap;
+ info.GetMSC = I830DRI2GetMSC;
+ info.ScheduleWaitMSC = I830DRI2ScheduleWaitMSC;
+ info.numDrivers = 1;
+ info.driverNames = driverNames;
+ driverNames[0] = info.driverName;
+ }
+#endif
+
+ return DRI2ScreenInit(screen, &info);
+}
+
+void I830DRI2CloseScreen(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ DRI2CloseScreen(screen);
+ intel->directRenderingType = DRI_NONE;
+ drmFree(intel->deviceName);
+}
diff --git a/src/intel_driver.c b/src/intel_driver.c
new file mode 100644
index 0000000..e867351
--- /dev/null
+++ b/src/intel_driver.c
@@ -0,0 +1,1321 @@
+/**************************************************************************
+
+Copyright 2001 VA Linux Systems Inc., Fremont, California.
+Copyright © 2002 by David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+on the rights to use, copy, modify, merge, publish, distribute, sub
+license, and/or sell copies of the Software, and to permit persons to whom
+the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice (including the next
+paragraph) shall be included in all copies or substantial portions of the
+Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * Authors: Jeff Hartmann <jhartmann@valinux.com>
+ * Abraham van der Merwe <abraham@2d3d.co.za>
+ * David Dawes <dawes@xfree86.org>
+ * Alan Hourihane <alanh@tungstengraphics.com>
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <assert.h>
+#include <string.h>
+#include <stdio.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <stdio.h>
+#include <errno.h>
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86Priv.h"
+#include "xf86cmap.h"
+#include "compiler.h"
+#include "mibstore.h"
+#include "vgaHW.h"
+#include "mipointer.h"
+#include "micmap.h"
+#include "shadowfb.h"
+#include <X11/extensions/randr.h>
+#include "fb.h"
+#include "miscstruct.h"
+#include "dixstruct.h"
+#include "xf86xv.h"
+#include <X11/extensions/Xv.h>
+#include "shadow.h"
+#include "intel.h"
+#include "intel_video.h"
+
+#ifdef INTEL_XVMC
+#define _INTEL_XVMC_SERVER_
+#include "intel_hwmc.h"
+#endif
+
+#include "legacy/legacy.h"
+
+#include <sys/ioctl.h>
+#include "i915_drm.h"
+#include <xf86drmMode.h>
+
+/* *INDENT-OFF* */
+/*
+ * Note: "ColorKey" is provided for compatibility with the i810 driver.
+ * However, the correct option name is "VideoKey". "ColorKey" usually
+ * refers to the tranparency key for 8+24 overlays, not for video overlays.
+ */
+
+typedef enum {
+ OPTION_ACCELMETHOD,
+ OPTION_DRI,
+ OPTION_VIDEO_KEY,
+ OPTION_COLOR_KEY,
+ OPTION_FALLBACKDEBUG,
+ OPTION_TILING_FB,
+ OPTION_TILING_2D,
+ OPTION_SHADOW,
+ OPTION_SWAPBUFFERS_WAIT,
+#ifdef INTEL_XVMC
+ OPTION_XVMC,
+#endif
+ OPTION_PREFER_OVERLAY,
+ OPTION_DEBUG_FLUSH_BATCHES,
+ OPTION_DEBUG_FLUSH_CACHES,
+ OPTION_DEBUG_WAIT,
+ OPTION_HOTPLUG,
+ OPTION_RELAXED_FENCING,
+} I830Opts;
+
+static OptionInfoRec I830Options[] = {
+ {OPTION_ACCELMETHOD, "AccelMethod", OPTV_ANYSTR, {0}, FALSE},
+ {OPTION_DRI, "DRI", OPTV_BOOLEAN, {0}, TRUE},
+ {OPTION_COLOR_KEY, "ColorKey", OPTV_INTEGER, {0}, FALSE},
+ {OPTION_VIDEO_KEY, "VideoKey", OPTV_INTEGER, {0}, FALSE},
+ {OPTION_FALLBACKDEBUG, "FallbackDebug", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_TILING_2D, "Tiling", OPTV_BOOLEAN, {0}, TRUE},
+ {OPTION_TILING_FB, "LinearFramebuffer", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_SHADOW, "Shadow", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_SWAPBUFFERS_WAIT, "SwapbuffersWait", OPTV_BOOLEAN, {0}, TRUE},
+#ifdef INTEL_XVMC
+ {OPTION_XVMC, "XvMC", OPTV_BOOLEAN, {0}, TRUE},
+#endif
+ {OPTION_PREFER_OVERLAY, "XvPreferOverlay", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_DEBUG_FLUSH_BATCHES, "DebugFlushBatches", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_DEBUG_FLUSH_CACHES, "DebugFlushCaches", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_DEBUG_WAIT, "DebugWait", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_HOTPLUG, "HotPlug", OPTV_BOOLEAN, {0}, TRUE},
+ {OPTION_RELAXED_FENCING, "RelaxedFencing", OPTV_BOOLEAN, {0}, TRUE},
+ {-1, NULL, OPTV_NONE, {0}, FALSE}
+};
+/* *INDENT-ON* */
+
+static void i830AdjustFrame(int scrnIndex, int x, int y, int flags);
+static Bool I830CloseScreen(int scrnIndex, ScreenPtr screen);
+static Bool I830EnterVT(int scrnIndex, int flags);
+
+/* temporary */
+extern void xf86SetCursor(ScreenPtr screen, CursorPtr pCurs, int x, int y);
+
+#ifdef I830DEBUG
+void
+I830DPRINTF(const char *filename, int line, const char *function,
+ const char *fmt, ...)
+{
+ va_list ap;
+
+ ErrorF("\n##############################################\n"
+ "*** In function %s, on line %d, in file %s ***\n",
+ function, line, filename);
+ va_start(ap, fmt);
+ VErrorF(fmt, ap);
+ va_end(ap);
+ ErrorF("##############################################\n\n");
+}
+#endif /* #ifdef I830DEBUG */
+
+/* Export I830 options to i830 driver where necessary */
+const OptionInfoRec *intel_uxa_available_options(int chipid, int busid)
+{
+ return I830Options;
+}
+
+static void
+I830LoadPalette(ScrnInfoPtr scrn, int numColors, int *indices,
+ LOCO * colors, VisualPtr pVisual)
+{
+ xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
+ int i, j, index;
+ int p;
+ uint16_t lut_r[256], lut_g[256], lut_b[256];
+
+ DPRINTF(PFX, "I830LoadPalette: numColors: %d\n", numColors);
+
+ for (p = 0; p < xf86_config->num_crtc; p++) {
+ xf86CrtcPtr crtc = xf86_config->crtc[p];
+
+ switch (scrn->depth) {
+ case 15:
+ for (i = 0; i < numColors; i++) {
+ index = indices[i];
+ for (j = 0; j < 8; j++) {
+ lut_r[index * 8 + j] =
+ colors[index].red << 8;
+ lut_g[index * 8 + j] =
+ colors[index].green << 8;
+ lut_b[index * 8 + j] =
+ colors[index].blue << 8;
+ }
+ }
+ break;
+ case 16:
+ for (i = 0; i < numColors; i++) {
+ index = indices[i];
+
+ if (index <= 31) {
+ for (j = 0; j < 8; j++) {
+ lut_r[index * 8 + j] =
+ colors[index].red << 8;
+ lut_b[index * 8 + j] =
+ colors[index].blue << 8;
+ }
+ }
+
+ for (j = 0; j < 4; j++) {
+ lut_g[index * 4 + j] =
+ colors[index].green << 8;
+ }
+ }
+ break;
+ default:
+ for (i = 0; i < numColors; i++) {
+ index = indices[i];
+ lut_r[index] = colors[index].red << 8;
+ lut_g[index] = colors[index].green << 8;
+ lut_b[index] = colors[index].blue << 8;
+ }
+ break;
+ }
+
+ /* Make the change through RandR */
+#ifdef RANDR_12_INTERFACE
+ RRCrtcGammaSet(crtc->randr_crtc, lut_r, lut_g, lut_b);
+#else
+ crtc->funcs->gamma_set(crtc, lut_r, lut_g, lut_b, 256);
+#endif
+ }
+}
+
+/**
+ * Adjust the screen pixmap for the current location of the front buffer.
+ * This is done at EnterVT when buffers are bound as long as the resources
+ * have already been created, but the first EnterVT happens before
+ * CreateScreenResources.
+ */
+static Bool i830CreateScreenResources(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ screen->CreateScreenResources = intel->CreateScreenResources;
+ if (!(*screen->CreateScreenResources) (screen))
+ return FALSE;
+
+ return intel_uxa_create_screen_resources(screen);
+}
+
+static void PreInitCleanup(ScrnInfoPtr scrn)
+{
+ if (!scrn || !scrn->driverPrivate)
+ return;
+
+ free(scrn->driverPrivate);
+ scrn->driverPrivate = NULL;
+}
+
+static void intel_check_chipset_option(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ MessageType from = X_PROBED;
+
+ intel_detect_chipset(scrn,
+ intel->PciInfo,
+ &intel->chipset);
+
+ /* Set the Chipset and ChipRev, allowing config file entries to override. */
+ if (intel->pEnt->device->chipset && *intel->pEnt->device->chipset) {
+ scrn->chipset = intel->pEnt->device->chipset;
+ from = X_CONFIG;
+ } else if (intel->pEnt->device->chipID >= 0) {
+ scrn->chipset = (char *)xf86TokenToString(intel_chipsets,
+ intel->pEnt->device->chipID);
+ from = X_CONFIG;
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG,
+ "ChipID override: 0x%04X\n",
+ intel->pEnt->device->chipID);
+ DEVICE_ID(intel->PciInfo) = intel->pEnt->device->chipID;
+ } else {
+ from = X_PROBED;
+ scrn->chipset = (char *)xf86TokenToString(intel_chipsets,
+ DEVICE_ID(intel->PciInfo));
+ }
+
+ if (intel->pEnt->device->chipRev >= 0) {
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "ChipRev override: %d\n",
+ intel->pEnt->device->chipRev);
+ }
+
+ xf86DrvMsg(scrn->scrnIndex, from, "Chipset: \"%s\"\n",
+ (scrn->chipset != NULL) ? scrn->chipset : "Unknown i8xx");
+}
+
+static Bool I830GetEarlyOptions(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* Process the options */
+ xf86CollectOptions(scrn, NULL);
+ if (!(intel->Options = malloc(sizeof(I830Options))))
+ return FALSE;
+ memcpy(intel->Options, I830Options, sizeof(I830Options));
+ xf86ProcessOptions(scrn->scrnIndex, scrn->options, intel->Options);
+
+ intel->fallback_debug = xf86ReturnOptValBool(intel->Options,
+ OPTION_FALLBACKDEBUG,
+ FALSE);
+
+ intel->debug_flush = 0;
+
+ if (xf86ReturnOptValBool(intel->Options,
+ OPTION_DEBUG_FLUSH_BATCHES,
+ FALSE))
+ intel->debug_flush |= DEBUG_FLUSH_BATCHES;
+
+ if (xf86ReturnOptValBool(intel->Options,
+ OPTION_DEBUG_FLUSH_CACHES,
+ FALSE))
+ intel->debug_flush |= DEBUG_FLUSH_CACHES;
+
+ if (xf86ReturnOptValBool(intel->Options,
+ OPTION_DEBUG_WAIT,
+ FALSE))
+ intel->debug_flush |= DEBUG_FLUSH_WAIT;
+
+ return TRUE;
+}
+
+static void intel_check_dri_option(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ intel->directRenderingType = DRI_NONE;
+ if (!xf86ReturnOptValBool(intel->Options, OPTION_DRI, TRUE))
+ intel->directRenderingType = DRI_DISABLED;
+
+ if (scrn->depth != 16 && scrn->depth != 24) {
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG,
+ "DRI is disabled because it "
+ "runs only at depths 16 and 24.\n");
+ intel->directRenderingType = DRI_DISABLED;
+ }
+}
+
+static Bool intel_open_drm_master(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct pci_device *dev = intel->PciInfo;
+ drmSetVersion sv;
+ struct drm_i915_getparam gp;
+ int err, has_gem;
+ char busid[20];
+
+ snprintf(busid, sizeof(busid), "pci:%04x:%02x:%02x.%d",
+ dev->domain, dev->bus, dev->dev, dev->func);
+
+ intel->drmSubFD = drmOpen("i915", busid);
+ if (intel->drmSubFD == -1) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "[drm] Failed to open DRM device for %s: %s\n",
+ busid, strerror(errno));
+ return FALSE;
+ }
+
+ /* Check that what we opened was a master or a master-capable FD,
+ * by setting the version of the interface we'll use to talk to it.
+ * (see DRIOpenDRMMaster() in DRI1)
+ */
+ sv.drm_di_major = 1;
+ sv.drm_di_minor = 1;
+ sv.drm_dd_major = -1;
+ sv.drm_dd_minor = -1;
+ err = drmSetInterfaceVersion(intel->drmSubFD, &sv);
+ if (err != 0) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "[drm] failed to set drm interface version.\n");
+ drmClose(intel->drmSubFD);
+ intel->drmSubFD = -1;
+ return FALSE;
+ }
+
+ has_gem = FALSE;
+ gp.param = I915_PARAM_HAS_GEM;
+ gp.value = &has_gem;
+ (void)drmCommandWriteRead(intel->drmSubFD, DRM_I915_GETPARAM,
+ &gp, sizeof(gp));
+ if (!has_gem) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "[drm] Failed to detect GEM. Kernel 2.6.28 required.\n");
+ drmClose(intel->drmSubFD);
+ intel->drmSubFD = -1;
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+static void intel_close_drm_master(intel_screen_private *intel)
+{
+ if (intel && intel->drmSubFD > 0) {
+ drmClose(intel->drmSubFD);
+ intel->drmSubFD = -1;
+ }
+}
+
+static int intel_init_bufmgr(intel_screen_private *intel)
+{
+ int batch_size;
+
+ batch_size = 4096 * 4;
+ if (IS_I865G(intel))
+ /* The 865 has issues with larger-than-page-sized batch buffers. */
+ batch_size = 4096;
+
+ intel->bufmgr = drm_intel_bufmgr_gem_init(intel->drmSubFD, batch_size);
+ if (!intel->bufmgr)
+ return FALSE;
+
+ drm_intel_bufmgr_gem_enable_reuse(intel->bufmgr);
+ drm_intel_bufmgr_gem_enable_fenced_relocs(intel->bufmgr);
+
+ list_init(&intel->batch_pixmaps);
+ list_init(&intel->flush_pixmaps);
+ list_init(&intel->in_flight);
+
+ return TRUE;
+}
+
+static void intel_bufmgr_fini(intel_screen_private *intel)
+{
+ drm_intel_bufmgr_destroy(intel->bufmgr);
+}
+
+static void I830XvInit(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ MessageType from = X_PROBED;
+
+ intel->XvPreferOverlay =
+ xf86ReturnOptValBool(intel->Options, OPTION_PREFER_OVERLAY, FALSE);
+
+ if (xf86GetOptValInteger(intel->Options, OPTION_VIDEO_KEY,
+ &(intel->colorKey))) {
+ from = X_CONFIG;
+ } else if (xf86GetOptValInteger(intel->Options, OPTION_COLOR_KEY,
+ &(intel->colorKey))) {
+ from = X_CONFIG;
+ } else {
+ intel->colorKey =
+ (1 << scrn->offset.red) | (1 << scrn->offset.green) |
+ (((scrn->mask.blue >> scrn->offset.blue) - 1) <<
+ scrn->offset.blue);
+ from = X_DEFAULT;
+ }
+ xf86DrvMsg(scrn->scrnIndex, from, "video overlay key set to 0x%x\n",
+ intel->colorKey);
+}
+
+static Bool drm_has_boolean_param(struct intel_screen_private *intel,
+ int param)
+{
+ drm_i915_getparam_t gp;
+ int value;
+
+ gp.value = &value;
+ gp.param = param;
+ if (drmIoctl(intel->drmSubFD, DRM_IOCTL_I915_GETPARAM, &gp))
+ return FALSE;
+
+ return value;
+}
+
+static Bool has_kernel_flush(struct intel_screen_private *intel)
+{
+ /* The BLT ring was introduced at the same time as the
+ * automatic flush for the busy-ioctl.
+ */
+ return drm_has_boolean_param(intel, I915_PARAM_HAS_BLT);
+}
+
+static Bool has_relaxed_fencing(struct intel_screen_private *intel)
+{
+ return drm_has_boolean_param(intel, I915_PARAM_HAS_RELAXED_FENCING);
+}
+
+static Bool can_accelerate_blt(struct intel_screen_private *intel)
+{
+ if (0 && (IS_I830(intel) || IS_845G(intel))) {
+ /* These pair of i8xx chipsets have a crippling erratum
+ * that prevents the use of a PTE entry by the BLT
+ * engine immediately following updating that
+ * entry in the GATT.
+ *
+ * As the BLT is fundamental to our 2D acceleration,
+ * and the workaround is lost in the midst of time,
+ * fallback.
+ *
+ * XXX disabled for release as causes regressions in GL.
+ */
+ return FALSE;
+ }
+
+ if (INTEL_INFO(intel)->gen >= 60) {
+ drm_i915_getparam_t gp;
+ int value;
+
+ /* On Sandybridge we need the BLT in order to do anything since
+ * it so frequently used in the acceleration code paths.
+ */
+ gp.value = &value;
+ gp.param = I915_PARAM_HAS_BLT;
+ if (drmIoctl(intel->drmSubFD, DRM_IOCTL_I915_GETPARAM, &gp))
+ return FALSE;
+ }
+
+ if (INTEL_INFO(intel)->gen == 60) {
+ struct pci_device *const device = intel->PciInfo;
+
+ /* Sandybridge rev07 locks up easily, even with the
+ * BLT ring workaround in place.
+ * Thus use shadowfb by default.
+ */
+ if (device->revision < 8)
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+/**
+ * This is called before ScreenInit to do any require probing of screen
+ * configuration.
+ *
+ * This code generally covers probing, module loading, option handling
+ * card mapping, and RandR setup.
+ *
+ * Since xf86InitialConfiguration ends up requiring that we set video modes
+ * in order to detect configuration, we end up having to do a lot of driver
+ * setup (talking to the DRM, mapping the device, etc.) in this function.
+ * As a result, we want to set up that server initialization once rather
+ * that doing it per generation.
+ */
+static Bool I830PreInit(ScrnInfoPtr scrn, int flags)
+{
+ intel_screen_private *intel;
+ rgb defaultWeight = { 0, 0, 0 };
+ EntityInfoPtr pEnt;
+ int flags24;
+ Gamma zeros = { 0.0, 0.0, 0.0 };
+
+ if (scrn->numEntities != 1)
+ return FALSE;
+
+ pEnt = xf86GetEntityInfo(scrn->entityList[0]);
+
+ if (flags & PROBE_DETECT)
+ return TRUE;
+
+ intel = intel_get_screen_private(scrn);
+ if (intel == NULL) {
+ intel = xnfcalloc(sizeof(intel_screen_private), 1);
+ if (intel == NULL)
+ return FALSE;
+
+ scrn->driverPrivate = intel;
+ }
+ intel->scrn = scrn;
+ intel->pEnt = pEnt;
+
+ scrn->displayWidth = 640; /* default it */
+
+ if (intel->pEnt->location.type != BUS_PCI)
+ return FALSE;
+
+ intel->PciInfo = xf86GetPciInfoForEntity(intel->pEnt->index);
+
+ if (!intel_open_drm_master(scrn))
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Failed to become DRM master.\n");
+
+ scrn->monitor = scrn->confScreen->monitor;
+ scrn->progClock = TRUE;
+ scrn->rgbBits = 8;
+
+ flags24 = Support32bppFb | PreferConvert24to32 | SupportConvert24to32;
+
+ if (!xf86SetDepthBpp(scrn, 0, 0, 0, flags24))
+ return FALSE;
+
+ switch (scrn->depth) {
+ case 8:
+ case 15:
+ case 16:
+ case 24:
+ break;
+ default:
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Given depth (%d) is not supported by I830 driver\n",
+ scrn->depth);
+ return FALSE;
+ }
+ xf86PrintDepthBpp(scrn);
+
+ if (!xf86SetWeight(scrn, defaultWeight, defaultWeight))
+ return FALSE;
+ if (!xf86SetDefaultVisual(scrn, -1))
+ return FALSE;
+
+ intel->cpp = scrn->bitsPerPixel / 8;
+
+ if (!I830GetEarlyOptions(scrn))
+ return FALSE;
+
+ intel_check_chipset_option(scrn);
+ intel_check_dri_option(scrn);
+
+ if (!intel_init_bufmgr(intel)) {
+ PreInitCleanup(scrn);
+ return FALSE;
+ }
+
+ intel->force_fallback =
+ drmCommandNone(intel->drmSubFD, DRM_I915_GEM_THROTTLE) != 0;
+
+ /* Enable tiling by default */
+ intel->tiling = INTEL_TILING_ALL;
+
+ /* Allow user override if they set a value */
+ if (!xf86ReturnOptValBool(intel->Options, OPTION_TILING_2D, TRUE))
+ intel->tiling &= ~INTEL_TILING_2D;
+ if (xf86ReturnOptValBool(intel->Options, OPTION_TILING_FB, FALSE))
+ intel->tiling &= ~INTEL_TILING_FB;
+
+ intel->can_blt = can_accelerate_blt(intel);
+ intel->has_kernel_flush = has_kernel_flush(intel);
+ intel->use_shadow = !intel->can_blt;
+
+ if (xf86IsOptionSet(intel->Options, OPTION_SHADOW)) {
+ intel->use_shadow =
+ xf86ReturnOptValBool(intel->Options,
+ OPTION_SHADOW,
+ FALSE);
+ }
+
+ if (intel->use_shadow) {
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG,
+ "Shadow buffer enabled,"
+ " 2D GPU acceleration disabled.\n");
+ }
+
+ intel->has_relaxed_fencing =
+ xf86ReturnOptValBool(intel->Options,
+ OPTION_RELAXED_FENCING,
+ INTEL_INFO(intel)->gen >= 33);
+ /* And override the user if there is no kernel support */
+ if (intel->has_relaxed_fencing)
+ intel->has_relaxed_fencing = has_relaxed_fencing(intel);
+
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG,
+ "Relaxed fencing %s\n",
+ intel->has_relaxed_fencing ? "enabled" : "disabled");
+
+ /* SwapBuffers delays to avoid tearing */
+ intel->swapbuffers_wait = xf86ReturnOptValBool(intel->Options,
+ OPTION_SWAPBUFFERS_WAIT,
+ TRUE);
+ if (IS_GEN6(intel))
+ intel->swapbuffers_wait = FALSE;
+
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "Framebuffer %s\n",
+ intel->tiling & INTEL_TILING_FB ? "tiled" : "linear");
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "Pixmaps %s\n",
+ intel->tiling & INTEL_TILING_2D ? "tiled" : "linear");
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "3D buffers %s\n",
+ intel->tiling & INTEL_TILING_3D ? "tiled" : "linear");
+ xf86DrvMsg(scrn->scrnIndex, X_CONFIG, "SwapBuffers wait %sabled\n",
+ intel->swapbuffers_wait ? "en" : "dis");
+
+ I830XvInit(scrn);
+
+ if (!intel_mode_pre_init(scrn, intel->drmSubFD, intel->cpp)) {
+ PreInitCleanup(scrn);
+ return FALSE;
+ }
+
+ if (!xf86SetGamma(scrn, zeros)) {
+ PreInitCleanup(scrn);
+ return FALSE;
+ }
+
+ if (scrn->modes == NULL) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR, "No modes.\n");
+ PreInitCleanup(scrn);
+ return FALSE;
+ }
+ scrn->currentMode = scrn->modes;
+
+ /* Set display resolution */
+ xf86SetDpi(scrn, 0, 0);
+
+ /* Load the required sub modules */
+ if (!xf86LoadSubModule(scrn, "fb")) {
+ PreInitCleanup(scrn);
+ return FALSE;
+ }
+
+ /* Load the dri2 module if requested. */
+ if (intel->directRenderingType != DRI_DISABLED)
+ xf86LoadSubModule(scrn, "dri2");
+
+ return TRUE;
+}
+
+/**
+ * Intialiazes the hardware for the 3D pipeline use in the 2D driver.
+ *
+ * Some state caching is performed to avoid redundant state emits. This
+ * function is also responsible for marking the state as clobbered for DRI
+ * clients.
+ */
+void IntelEmitInvarientState(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* If we've emitted our state since the last clobber by another client,
+ * skip it.
+ */
+ if (intel->last_3d != LAST_3D_OTHER)
+ return;
+
+ if (IS_GEN2(intel))
+ I830EmitInvarientState(scrn);
+ else if IS_GEN3(intel)
+ I915EmitInvarientState(scrn);
+}
+
+static void
+I830BlockHandler(int i, pointer blockData, pointer pTimeout, pointer pReadmask)
+{
+ ScreenPtr screen = screenInfo.screens[i];
+ ScrnInfoPtr scrn = xf86Screens[i];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ screen->BlockHandler = intel->BlockHandler;
+
+ (*screen->BlockHandler) (i, blockData, pTimeout, pReadmask);
+
+ intel->BlockHandler = screen->BlockHandler;
+ screen->BlockHandler = I830BlockHandler;
+
+ intel_uxa_block_handler(intel);
+ intel_video_block_handler(intel);
+}
+
+static Bool
+intel_init_initial_framebuffer(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int width = scrn->virtualX;
+ int height = scrn->virtualY;
+ unsigned long pitch;
+ uint32_t tiling;
+
+ intel->front_buffer = intel_allocate_framebuffer(scrn,
+ width, height,
+ intel->cpp,
+ &pitch,
+ &tiling);
+
+ if (!intel->front_buffer) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Couldn't allocate initial framebuffer.\n");
+ return FALSE;
+ }
+
+ intel->front_pitch = pitch;
+ intel->front_tiling = tiling;
+ scrn->displayWidth = pitch / intel->cpp;
+
+ return TRUE;
+}
+
+Bool intel_crtc_on(xf86CrtcPtr crtc)
+{
+ ScrnInfoPtr scrn = crtc->scrn;
+ xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
+ int i;
+
+ if (!crtc->enabled)
+ return FALSE;
+
+ /* Kernel manages CRTC status based out output config */
+ for (i = 0; i < xf86_config->num_output; i++) {
+ xf86OutputPtr output = xf86_config->output[i];
+ if (output->crtc == crtc &&
+ intel_output_dpms_status(output) == DPMSModeOn)
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+static void
+intel_flush_callback(CallbackListPtr *list,
+ pointer user_data, pointer call_data)
+{
+ ScrnInfoPtr scrn = user_data;
+ if (scrn->vtSema)
+ intel_batch_submit(scrn);
+}
+
+#if HAVE_UDEV
+static void
+I830HandleUEvents(int fd, void *closure)
+{
+ ScrnInfoPtr scrn = closure;
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct udev_device *dev;
+ const char *hotplug;
+ struct stat s;
+ dev_t udev_devnum;
+
+ dev = udev_monitor_receive_device(intel->uevent_monitor);
+ if (!dev)
+ return;
+
+ udev_devnum = udev_device_get_devnum(dev);
+ fstat(intel->drmSubFD, &s);
+ /*
+ * Check to make sure this event is directed at our
+ * device (by comparing dev_t values), then make
+ * sure it's a hotplug event (HOTPLUG=1)
+ */
+
+ hotplug = udev_device_get_property_value(dev, "HOTPLUG");
+
+ if (memcmp(&s.st_rdev, &udev_devnum, sizeof (dev_t)) == 0 &&
+ hotplug && atoi(hotplug) == 1)
+ RRGetInfo(screenInfo.screens[scrn->scrnIndex], TRUE);
+
+ udev_device_unref(dev);
+}
+
+static void
+I830UeventInit(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct udev *u;
+ struct udev_monitor *mon;
+ Bool hotplug;
+ MessageType from = X_CONFIG;
+
+ if (!xf86GetOptValBool(intel->Options, OPTION_HOTPLUG, &hotplug)) {
+ from = X_DEFAULT;
+ hotplug = TRUE;
+ }
+
+ xf86DrvMsg(scrn->scrnIndex, from, "hotplug detection: \"%s\"\n",
+ hotplug ? "enabled" : "disabled");
+ if (!hotplug)
+ return;
+
+ u = udev_new();
+ if (!u)
+ return;
+
+ mon = udev_monitor_new_from_netlink(u, "udev");
+
+ if (!mon) {
+ udev_unref(u);
+ return;
+ }
+
+ if (udev_monitor_filter_add_match_subsystem_devtype(mon,
+ "drm",
+ "drm_minor") < 0 ||
+ udev_monitor_enable_receiving(mon) < 0)
+ {
+ udev_monitor_unref(mon);
+ udev_unref(u);
+ return;
+ }
+
+ intel->uevent_handler =
+ xf86AddGeneralHandler(udev_monitor_get_fd(mon),
+ I830HandleUEvents,
+ scrn);
+ if (!intel->uevent_handler) {
+ udev_monitor_unref(mon);
+ udev_unref(u);
+ return;
+ }
+
+ intel->uevent_monitor = mon;
+}
+
+static void
+I830UeventFini(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (intel->uevent_handler) {
+ struct udev *u = udev_monitor_get_udev(intel->uevent_monitor);
+
+ xf86RemoveGeneralHandler(intel->uevent_handler);
+
+ udev_monitor_unref(intel->uevent_monitor);
+ udev_unref(u);
+ intel->uevent_handler = NULL;
+ intel->uevent_monitor = NULL;
+ }
+}
+#endif /* HAVE_UDEV */
+
+static Bool
+I830ScreenInit(int scrnIndex, ScreenPtr screen, int argc, char **argv)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ VisualPtr visual;
+#ifdef INTEL_XVMC
+ MessageType from;
+#endif
+ struct pci_device *const device = intel->PciInfo;
+ int fb_bar = IS_GEN2(intel) ? 0 : 2;
+
+ scrn->videoRam = device->regions[fb_bar].size / 1024;
+
+ intel->last_3d = LAST_3D_OTHER;
+ intel->overlayOn = FALSE;
+
+ /*
+ * Set this so that the overlay allocation is factored in when
+ * appropriate.
+ */
+ intel->XvEnabled = TRUE;
+
+#ifdef DRI2
+ if (intel->directRenderingType == DRI_NONE
+ && I830DRI2ScreenInit(screen))
+ intel->directRenderingType = DRI_DRI2;
+#endif
+
+ if (!intel_init_initial_framebuffer(scrn))
+ return FALSE;
+
+ intel_batch_init(scrn);
+
+ if (INTEL_INFO(intel)->gen >= 40)
+ gen4_render_state_init(scrn);
+
+ miClearVisualTypes();
+ if (!miSetVisualTypes(scrn->depth,
+ miGetDefaultVisualMask(scrn->depth),
+ scrn->rgbBits, scrn->defaultVisual))
+ return FALSE;
+ if (!miSetPixmapDepths())
+ return FALSE;
+
+ DPRINTF(PFX, "assert( if(!I830EnterVT(scrnIndex, 0)) )\n");
+
+ DPRINTF(PFX, "assert( if(!fbScreenInit(screen, ...) )\n");
+ if (!fbScreenInit(screen, NULL,
+ scrn->virtualX, scrn->virtualY,
+ scrn->xDpi, scrn->yDpi,
+ scrn->displayWidth, scrn->bitsPerPixel))
+ return FALSE;
+
+ if (scrn->bitsPerPixel > 8) {
+ /* Fixup RGB ordering */
+ visual = screen->visuals + screen->numVisuals;
+ while (--visual >= screen->visuals) {
+ if ((visual->class | DynamicClass) == DirectColor) {
+ visual->offsetRed = scrn->offset.red;
+ visual->offsetGreen = scrn->offset.green;
+ visual->offsetBlue = scrn->offset.blue;
+ visual->redMask = scrn->mask.red;
+ visual->greenMask = scrn->mask.green;
+ visual->blueMask = scrn->mask.blue;
+ }
+ }
+ }
+
+ fbPictureInit(screen, NULL, 0);
+
+ xf86SetBlackWhitePixels(screen);
+
+ if (!intel_uxa_init(screen)) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Hardware acceleration initialization failed\n");
+ return FALSE;
+ }
+
+ miInitializeBackingStore(screen);
+ xf86SetBackingStore(screen);
+ xf86SetSilkenMouse(screen);
+ miDCInitialize(screen, xf86GetPointerScreenFuncs());
+
+ xf86DrvMsg(scrn->scrnIndex, X_INFO, "Initializing HW Cursor\n");
+ if (!xf86_cursors_init(screen, I810_CURSOR_X, I810_CURSOR_Y,
+ (HARDWARE_CURSOR_TRUECOLOR_AT_8BPP |
+ HARDWARE_CURSOR_BIT_ORDER_MSBFIRST |
+ HARDWARE_CURSOR_INVERT_MASK |
+ HARDWARE_CURSOR_SWAP_SOURCE_AND_MASK |
+ HARDWARE_CURSOR_AND_SOURCE_WITH_MASK |
+ HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_64 |
+ HARDWARE_CURSOR_UPDATE_UNHIDDEN |
+ HARDWARE_CURSOR_ARGB))) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Hardware cursor initialization failed\n");
+ }
+
+ /* Must force it before EnterVT, so we are in control of VT and
+ * later memory should be bound when allocating, e.g rotate_mem */
+ scrn->vtSema = TRUE;
+
+ if (!I830EnterVT(scrnIndex, 0))
+ return FALSE;
+
+ intel->BlockHandler = screen->BlockHandler;
+ screen->BlockHandler = I830BlockHandler;
+
+ if (!AddCallback(&FlushCallback, intel_flush_callback, scrn))
+ return FALSE;
+
+ screen->SaveScreen = xf86SaveScreen;
+ intel->CloseScreen = screen->CloseScreen;
+ screen->CloseScreen = I830CloseScreen;
+ intel->CreateScreenResources = screen->CreateScreenResources;
+ screen->CreateScreenResources = i830CreateScreenResources;
+
+ if (!xf86CrtcScreenInit(screen))
+ return FALSE;
+
+ DPRINTF(PFX, "assert( if(!miCreateDefColormap(screen)) )\n");
+ if (!miCreateDefColormap(screen))
+ return FALSE;
+
+ DPRINTF(PFX, "assert( if(!xf86HandleColormaps(screen, ...)) )\n");
+ if (!xf86HandleColormaps(screen, 256, 8, I830LoadPalette, NULL,
+ CMAP_RELOAD_ON_MODE_SWITCH |
+ CMAP_PALETTED_TRUECOLOR)) {
+ return FALSE;
+ }
+
+ xf86DPMSInit(screen, xf86DPMSSet, 0);
+
+#ifdef INTEL_XVMC
+ if (INTEL_INFO(intel)->gen >= 40)
+ intel->XvMCEnabled = TRUE;
+ from = ((intel->directRenderingType == DRI_DRI2) &&
+ xf86GetOptValBool(intel->Options, OPTION_XVMC,
+ &intel->XvMCEnabled) ? X_CONFIG : X_DEFAULT);
+ xf86DrvMsg(scrn->scrnIndex, from, "Intel XvMC decoder %sabled\n",
+ intel->XvMCEnabled ? "en" : "dis");
+#endif
+ /* Init video */
+ if (intel->XvEnabled)
+ I830InitVideo(screen);
+
+#if defined(DRI2)
+ switch (intel->directRenderingType) {
+ case DRI_DRI2:
+ intel->directRenderingOpen = TRUE;
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "direct rendering: DRI2 Enabled\n");
+ break;
+ case DRI_DISABLED:
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "direct rendering: Disabled\n");
+ break;
+ case DRI_NONE:
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "direct rendering: Failed\n");
+ break;
+ }
+#else
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "direct rendering: Not available\n");
+#endif
+
+ if (serverGeneration == 1)
+ xf86ShowUnusedOptions(scrn->scrnIndex, scrn->options);
+
+ intel_mode_init(intel);
+
+ intel->suspended = FALSE;
+
+#if HAVE_UDEV
+ I830UeventInit(scrn);
+#endif
+
+ return TRUE;
+}
+
+static void i830AdjustFrame(int scrnIndex, int x, int y, int flags)
+{
+}
+
+static void I830FreeScreen(int scrnIndex, int flags)
+{
+ ScrnInfoPtr scrn = xf86Screens[scrnIndex];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (intel) {
+ intel_mode_fini(intel);
+ intel_close_drm_master(intel);
+ intel_bufmgr_fini(intel);
+
+ free(intel);
+ scrn->driverPrivate = NULL;
+ }
+
+ if (xf86LoaderCheckSymbol("vgaHWFreeHWRec"))
+ vgaHWFreeHWRec(xf86Screens[scrnIndex]);
+}
+
+static void I830LeaveVT(int scrnIndex, int flags)
+{
+ ScrnInfoPtr scrn = xf86Screens[scrnIndex];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int ret;
+
+ DPRINTF(PFX, "Leave VT\n");
+
+ xf86RotateFreeShadow(scrn);
+
+ xf86_hide_cursors(scrn);
+
+ ret = drmDropMaster(intel->drmSubFD);
+ if (ret)
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "drmDropMaster failed: %s\n", strerror(errno));
+}
+
+/*
+ * This gets called when gaining control of the VT, and from ScreenInit().
+ */
+static Bool I830EnterVT(int scrnIndex, int flags)
+{
+ ScrnInfoPtr scrn = xf86Screens[scrnIndex];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int ret;
+
+ DPRINTF(PFX, "Enter VT\n");
+
+ ret = drmSetMaster(intel->drmSubFD);
+ if (ret) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "drmSetMaster failed: %s\n",
+ strerror(errno));
+ }
+
+ intel_set_gem_max_sizes(scrn);
+
+ if (!xf86SetDesiredModes(scrn))
+ return FALSE;
+
+ return TRUE;
+}
+
+static Bool I830SwitchMode(int scrnIndex, DisplayModePtr mode, int flags)
+{
+ ScrnInfoPtr scrn = xf86Screens[scrnIndex];
+
+ return xf86SetSingleMode(scrn, mode, RR_Rotate_0);
+}
+
+static Bool I830CloseScreen(int scrnIndex, ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[scrnIndex];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+#if HAVE_UDEV
+ I830UeventFini(scrn);
+#endif
+
+ if (scrn->vtSema == TRUE) {
+ I830LeaveVT(scrnIndex, 0);
+ }
+
+ DeleteCallback(&FlushCallback, intel_flush_callback, scrn);
+
+ if (intel->uxa_driver) {
+ uxa_driver_fini(screen);
+ free(intel->uxa_driver);
+ intel->uxa_driver = NULL;
+ }
+
+ if (intel->front_buffer) {
+ if (!intel->use_shadow)
+ intel_set_pixmap_bo(screen->GetScreenPixmap(screen),
+ NULL);
+ intel_mode_remove_fb(intel);
+ drm_intel_bo_unreference(intel->front_buffer);
+ intel->front_buffer = NULL;
+ }
+
+ if (intel->shadow_buffer) {
+ free(intel->shadow_buffer);
+ intel->shadow_buffer = NULL;
+ }
+
+ if (intel->shadow_damage) {
+ DamageUnregister(&screen->GetScreenPixmap(screen)->drawable,
+ intel->shadow_damage);
+ DamageDestroy(intel->shadow_damage);
+ intel->shadow_damage = NULL;
+ }
+
+ intel_batch_teardown(scrn);
+
+ if (INTEL_INFO(intel)->gen >= 40)
+ gen4_render_state_cleanup(scrn);
+
+ xf86_cursors_fini(screen);
+
+ i965_free_video(scrn);
+
+ screen->CloseScreen = intel->CloseScreen;
+ (*screen->CloseScreen) (scrnIndex, screen);
+
+ if (intel->directRenderingOpen
+ && intel->directRenderingType == DRI_DRI2) {
+ intel->directRenderingOpen = FALSE;
+ I830DRI2CloseScreen(screen);
+ }
+
+ xf86GARTCloseScreen(scrnIndex);
+
+ scrn->vtSema = FALSE;
+ return TRUE;
+}
+
+static ModeStatus
+I830ValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags)
+{
+ if (mode->Flags & V_INTERLACE) {
+ if (verbose) {
+ xf86DrvMsg(scrnIndex, X_PROBED,
+ "Removing interlaced mode \"%s\"\n",
+ mode->name);
+ }
+ return MODE_BAD;
+ }
+ return MODE_OK;
+}
+
+#ifndef SUSPEND_SLEEP
+#define SUSPEND_SLEEP 0
+#endif
+#ifndef RESUME_SLEEP
+#define RESUME_SLEEP 0
+#endif
+
+/*
+ * This function is only required if we need to do anything differently from
+ * DoApmEvent() in common/xf86PM.c, including if we want to see events other
+ * than suspend/resume.
+ */
+static Bool I830PMEvent(int scrnIndex, pmEvent event, Bool undo)
+{
+ ScrnInfoPtr scrn = xf86Screens[scrnIndex];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ DPRINTF(PFX, "Enter VT, event %d, undo: %s\n", event,
+ BOOLTOSTRING(undo));
+
+ switch (event) {
+ case XF86_APM_SYS_SUSPEND:
+ case XF86_APM_CRITICAL_SUSPEND: /*do we want to delay a critical suspend? */
+ case XF86_APM_USER_SUSPEND:
+ case XF86_APM_SYS_STANDBY:
+ case XF86_APM_USER_STANDBY:
+ if (!undo && !intel->suspended) {
+ scrn->LeaveVT(scrnIndex, 0);
+ intel->suspended = TRUE;
+ sleep(SUSPEND_SLEEP);
+ } else if (undo && intel->suspended) {
+ sleep(RESUME_SLEEP);
+ scrn->EnterVT(scrnIndex, 0);
+ intel->suspended = FALSE;
+ }
+ break;
+ case XF86_APM_STANDBY_RESUME:
+ case XF86_APM_NORMAL_RESUME:
+ case XF86_APM_CRITICAL_RESUME:
+ if (intel->suspended) {
+ sleep(RESUME_SLEEP);
+ scrn->EnterVT(scrnIndex, 0);
+ intel->suspended = FALSE;
+ /*
+ * Turn the screen saver off when resuming. This seems to be
+ * needed to stop xscreensaver kicking in (when used).
+ *
+ * XXX DoApmEvent() should probably call this just like
+ * xf86VTSwitch() does. Maybe do it here only in 4.2
+ * compatibility mode.
+ */
+ SaveScreens(SCREEN_SAVER_FORCER, ScreenSaverReset);
+ }
+ break;
+ /* This is currently used for ACPI */
+ case XF86_APM_CAPABILITY_CHANGED:
+ ErrorF("I830PMEvent: Capability change\n");
+
+ SaveScreens(SCREEN_SAVER_FORCER, ScreenSaverReset);
+
+ break;
+ default:
+ ErrorF("I830PMEvent: received APM event %d\n", event);
+ }
+ return TRUE;
+}
+
+void intel_init_scrn(ScrnInfoPtr scrn)
+{
+ scrn->PreInit = I830PreInit;
+ scrn->ScreenInit = I830ScreenInit;
+ scrn->SwitchMode = I830SwitchMode;
+ scrn->AdjustFrame = i830AdjustFrame;
+ scrn->EnterVT = I830EnterVT;
+ scrn->LeaveVT = I830LeaveVT;
+ scrn->FreeScreen = I830FreeScreen;
+ scrn->ValidMode = I830ValidMode;
+ scrn->PMEvent = I830PMEvent;
+}
diff --git a/src/intel_driver.h b/src/intel_driver.h
new file mode 100644
index 0000000..2e72177
--- /dev/null
+++ b/src/intel_driver.h
@@ -0,0 +1,240 @@
+#ifndef INTEL_DRIVER_H
+#define INTEL_DRIVER_H
+
+#define INTEL_VERSION 4000
+#define INTEL_NAME "intel"
+#define INTEL_DRIVER_NAME "intel"
+
+#define INTEL_VERSION_MAJOR PACKAGE_VERSION_MAJOR
+#define INTEL_VERSION_MINOR PACKAGE_VERSION_MINOR
+#define INTEL_VERSION_PATCH PACKAGE_VERSION_PATCHLEVEL
+
+#ifndef PCI_CHIP_I810
+#define PCI_CHIP_I810 0x7121
+#define PCI_CHIP_I810_DC100 0x7123
+#define PCI_CHIP_I810_E 0x7125
+#define PCI_CHIP_I815 0x1132
+#define PCI_CHIP_I810_BRIDGE 0x7120
+#define PCI_CHIP_I810_DC100_BRIDGE 0x7122
+#define PCI_CHIP_I810_E_BRIDGE 0x7124
+#define PCI_CHIP_I815_BRIDGE 0x1130
+#endif
+
+#ifndef PCI_CHIP_I830_M
+#define PCI_CHIP_I830_M 0x3577
+#define PCI_CHIP_I830_M_BRIDGE 0x3575
+#endif
+
+#ifndef PCI_CHIP_845_G
+#define PCI_CHIP_845_G 0x2562
+#define PCI_CHIP_845_G_BRIDGE 0x2560
+#endif
+
+#ifndef PCI_CHIP_I854
+#define PCI_CHIP_I854 0x358E
+#define PCI_CHIP_I854_BRIDGE 0x358C
+#endif
+
+#ifndef PCI_CHIP_I855_GM
+#define PCI_CHIP_I855_GM 0x3582
+#define PCI_CHIP_I855_GM_BRIDGE 0x3580
+#endif
+
+#ifndef PCI_CHIP_I865_G
+#define PCI_CHIP_I865_G 0x2572
+#define PCI_CHIP_I865_G_BRIDGE 0x2570
+#endif
+
+#ifndef PCI_CHIP_I915_G
+#define PCI_CHIP_I915_G 0x2582
+#define PCI_CHIP_I915_G_BRIDGE 0x2580
+#endif
+
+#ifndef PCI_CHIP_I915_GM
+#define PCI_CHIP_I915_GM 0x2592
+#define PCI_CHIP_I915_GM_BRIDGE 0x2590
+#endif
+
+#ifndef PCI_CHIP_E7221_G
+#define PCI_CHIP_E7221_G 0x258A
+/* Same as I915_G_BRIDGE */
+#define PCI_CHIP_E7221_G_BRIDGE 0x2580
+#endif
+
+#ifndef PCI_CHIP_I945_G
+#define PCI_CHIP_I945_G 0x2772
+#define PCI_CHIP_I945_G_BRIDGE 0x2770
+#endif
+
+#ifndef PCI_CHIP_I945_GM
+#define PCI_CHIP_I945_GM 0x27A2
+#define PCI_CHIP_I945_GM_BRIDGE 0x27A0
+#endif
+
+#ifndef PCI_CHIP_I945_GME
+#define PCI_CHIP_I945_GME 0x27AE
+#define PCI_CHIP_I945_GME_BRIDGE 0x27AC
+#endif
+
+#ifndef PCI_CHIP_PINEVIEW_M
+#define PCI_CHIP_PINEVIEW_M 0xA011
+#define PCI_CHIP_PINEVIEW_M_BRIDGE 0xA010
+#define PCI_CHIP_PINEVIEW_G 0xA001
+#define PCI_CHIP_PINEVIEW_G_BRIDGE 0xA000
+#endif
+
+#ifndef PCI_CHIP_G35_G
+#define PCI_CHIP_G35_G 0x2982
+#define PCI_CHIP_G35_G_BRIDGE 0x2980
+#endif
+
+#ifndef PCI_CHIP_I965_Q
+#define PCI_CHIP_I965_Q 0x2992
+#define PCI_CHIP_I965_Q_BRIDGE 0x2990
+#endif
+
+#ifndef PCI_CHIP_I965_G
+#define PCI_CHIP_I965_G 0x29A2
+#define PCI_CHIP_I965_G_BRIDGE 0x29A0
+#endif
+
+#ifndef PCI_CHIP_I946_GZ
+#define PCI_CHIP_I946_GZ 0x2972
+#define PCI_CHIP_I946_GZ_BRIDGE 0x2970
+#endif
+
+#ifndef PCI_CHIP_I965_GM
+#define PCI_CHIP_I965_GM 0x2A02
+#define PCI_CHIP_I965_GM_BRIDGE 0x2A00
+#endif
+
+#ifndef PCI_CHIP_I965_GME
+#define PCI_CHIP_I965_GME 0x2A12
+#define PCI_CHIP_I965_GME_BRIDGE 0x2A10
+#endif
+
+#ifndef PCI_CHIP_G33_G
+#define PCI_CHIP_G33_G 0x29C2
+#define PCI_CHIP_G33_G_BRIDGE 0x29C0
+#endif
+
+#ifndef PCI_CHIP_Q35_G
+#define PCI_CHIP_Q35_G 0x29B2
+#define PCI_CHIP_Q35_G_BRIDGE 0x29B0
+#endif
+
+#ifndef PCI_CHIP_Q33_G
+#define PCI_CHIP_Q33_G 0x29D2
+#define PCI_CHIP_Q33_G_BRIDGE 0x29D0
+#endif
+
+#ifndef PCI_CHIP_GM45_GM
+#define PCI_CHIP_GM45_GM 0x2A42
+#define PCI_CHIP_GM45_BRIDGE 0x2A40
+#endif
+
+#ifndef PCI_CHIP_G45_E_G
+#define PCI_CHIP_G45_E_G 0x2E02
+#define PCI_CHIP_G45_E_G_BRIDGE 0x2E00
+#endif
+
+#ifndef PCI_CHIP_G45_G
+#define PCI_CHIP_G45_G 0x2E22
+#define PCI_CHIP_G45_G_BRIDGE 0x2E20
+#endif
+
+#ifndef PCI_CHIP_Q45_G
+#define PCI_CHIP_Q45_G 0x2E12
+#define PCI_CHIP_Q45_G_BRIDGE 0x2E10
+#endif
+
+#ifndef PCI_CHIP_G41_G
+#define PCI_CHIP_G41_G 0x2E32
+#define PCI_CHIP_G41_G_BRIDGE 0x2E30
+#endif
+
+#ifndef PCI_CHIP_B43_G
+#define PCI_CHIP_B43_G 0x2E42
+#define PCI_CHIP_B43_G_BRIDGE 0x2E40
+#endif
+
+#ifndef PCI_CHIP_B43_G1
+#define PCI_CHIP_B43_G1 0x2E92
+#define PCI_CHIP_B43_G1_BRIDGE 0x2E90
+#endif
+
+#ifndef PCI_CHIP_IRONLAKE_D_G
+#define PCI_CHIP_IRONLAKE_D_G 0x0042
+#define PCI_CHIP_IRONLAKE_D_G_BRIDGE 0x0040
+#endif
+
+#ifndef PCI_CHIP_IRONLAKE_M_G
+#define PCI_CHIP_IRONLAKE_M_G 0x0046
+#define PCI_CHIP_IRONLAKE_M_G_BRIDGE 0x0044
+#endif
+
+#ifndef PCI_CHIP_SANDYBRIDGE_BRIDGE
+#define PCI_CHIP_SANDYBRIDGE_BRIDGE 0x0100 /* Desktop */
+#define PCI_CHIP_SANDYBRIDGE_GT1 0x0102
+#define PCI_CHIP_SANDYBRIDGE_GT2 0x0112
+#define PCI_CHIP_SANDYBRIDGE_GT2_PLUS 0x0122
+#define PCI_CHIP_SANDYBRIDGE_BRIDGE_M 0x0104 /* Mobile */
+#define PCI_CHIP_SANDYBRIDGE_M_GT1 0x0106
+#define PCI_CHIP_SANDYBRIDGE_M_GT2 0x0116
+#define PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS 0x0126
+#define PCI_CHIP_SANDYBRIDGE_BRIDGE_S 0x0108 /* Server */
+#define PCI_CHIP_SANDYBRIDGE_S_GT 0x010A
+#endif
+
+#define I85X_CAPID 0x44
+#define I85X_VARIANT_MASK 0x7
+#define I85X_VARIANT_SHIFT 5
+#define I855_GME 0x0
+#define I855_GM 0x4
+#define I852_GME 0x2
+#define I852_GM 0x5
+
+#define I810_MEMBASE(p,n) (p)->regions[(n)].base_addr
+#define VENDOR_ID(p) (p)->vendor_id
+#define DEVICE_ID(p) (p)->device_id
+#define SUBVENDOR_ID(p) (p)->subvendor_id
+#define SUBSYS_ID(p) (p)->subdevice_id
+#define CHIP_REVISION(p) (p)->revision
+
+#define INTEL_INFO(intel) ((intel)->chipset.info)
+#define IS_GENx(intel, X) (INTEL_INFO(intel)->gen >= 10*(X) && INTEL_INFO(intel)->gen < 10*((X)+1))
+#define IS_GEN1(intel) IS_GENx(intel, 1)
+#define IS_GEN2(intel) IS_GENx(intel, 2)
+#define IS_GEN3(intel) IS_GENx(intel, 3)
+#define IS_GEN4(intel) IS_GENx(intel, 4)
+#define IS_GEN5(intel) IS_GENx(intel, 5)
+#define IS_GEN6(intel) IS_GENx(intel, 6)
+
+/* Some chips have specific errata (or limits) that we need to workaround. */
+#define IS_I830(intel) (DEVICE_ID((intel)->PciInfo) == PCI_CHIP_I830_M)
+#define IS_845G(intel) (DEVICE_ID((intel)->PciInfo) == PCI_CHIP_845_G)
+#define IS_I865G(intel) (DEVICE_ID((intel)->PciInfo) == PCI_CHIP_I865_G)
+
+#define IS_I915G(pI810) (DEVICE_ID(pI810->PciInfo) == PCI_CHIP_I915_G || DEVICE_ID(pI810->PciInfo) == PCI_CHIP_E7221_G)
+#define IS_I915GM(pI810) (DEVICE_ID(pI810->PciInfo) == PCI_CHIP_I915_GM)
+
+#define IS_965_Q(pI810) (DEVICE_ID(pI810->PciInfo) == PCI_CHIP_I965_Q)
+
+/* supports Y tiled surfaces (pre-965 Mesa isn't ready yet) */
+#define SUPPORTS_YTILING(pI810) (INTEL_INFO(intel)->gen >= 40)
+
+extern SymTabRec *intel_chipsets;
+
+struct intel_chipset {
+ const char *name;
+ int variant;
+ const struct intel_device_info {
+ int gen;
+ } *info;
+};
+
+void intel_detect_chipset(ScrnInfoPtr scrn,
+ struct pci_device *pci,
+ struct intel_chipset *chipset);
+
+#endif /* INTEL_DRIVER_H */
diff --git a/src/intel_hwmc.c b/src/intel_hwmc.c
new file mode 100644
index 0000000..d626725
--- /dev/null
+++ b/src/intel_hwmc.c
@@ -0,0 +1,260 @@
+/*
+ * Copyright © 2007 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Zhenyu Wang <zhenyu.z.wang@intel.com>
+ *
+ */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#define _INTEL_XVMC_SERVER_
+#include "intel.h"
+#include "intel_hwmc.h"
+
+#include <X11/extensions/Xv.h>
+#include <X11/extensions/XvMC.h>
+#include <fourcc.h>
+
+static int create_subpicture(ScrnInfoPtr scrn, XvMCSubpicturePtr subpicture,
+ int *num_priv, CARD32 ** priv)
+{
+ return Success;
+}
+
+static void destroy_subpicture(ScrnInfoPtr scrn, XvMCSubpicturePtr subpicture)
+{
+}
+
+static int create_surface(ScrnInfoPtr scrn, XvMCSurfacePtr surface,
+ int *num_priv, CARD32 ** priv)
+{
+ return Success;
+}
+
+static void destroy_surface(ScrnInfoPtr scrn, XvMCSurfacePtr surface)
+{
+}
+
+static int create_context(ScrnInfoPtr scrn, XvMCContextPtr pContext,
+ int *num_priv, CARD32 **priv)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct intel_xvmc_hw_context *contextRec;
+
+ *priv = calloc(1, sizeof(struct intel_xvmc_hw_context));
+ contextRec = (struct intel_xvmc_hw_context *) *priv;
+ if (!contextRec) {
+ *num_priv = 0;
+ return BadAlloc;
+ }
+
+ *num_priv = sizeof(struct intel_xvmc_hw_context) >> 2;
+
+ if (IS_GEN3(intel)) {
+ contextRec->type = XVMC_I915_MPEG2_MC;
+ contextRec->i915.use_phys_addr = 0;
+ } else {
+ if (INTEL_INFO(intel)->gen >= 45)
+ contextRec->type = XVMC_I965_MPEG2_VLD;
+ else
+ contextRec->type = XVMC_I965_MPEG2_MC;
+ contextRec->i965.is_g4x = INTEL_INFO(intel)->gen == 45;
+ contextRec->i965.is_965_q = IS_965_Q(intel);
+ contextRec->i965.is_igdng = IS_GEN5(intel);
+ }
+
+ return Success;
+}
+
+static void destroy_context(ScrnInfoPtr scrn, XvMCContextPtr context)
+{
+}
+
+/* i915 hwmc support */
+static XF86MCSurfaceInfoRec i915_YV12_mpg2_surface = {
+ FOURCC_YV12,
+ XVMC_CHROMA_FORMAT_420,
+ 0,
+ 720,
+ 576,
+ 720,
+ 576,
+ XVMC_MPEG_2,
+ /* XVMC_OVERLAID_SURFACE | XVMC_SUBPICTURE_INDEPENDENT_SCALING, */
+ 0,
+ /* &yv12_subpicture_list */
+ NULL,
+};
+
+static XF86MCSurfaceInfoRec i915_YV12_mpg1_surface = {
+ FOURCC_YV12,
+ XVMC_CHROMA_FORMAT_420,
+ 0,
+ 720,
+ 576,
+ 720,
+ 576,
+ XVMC_MPEG_1,
+ /* XVMC_OVERLAID_SURFACE | XVMC_SUBPICTURE_INDEPENDENT_SCALING, */
+ 0,
+ NULL,
+};
+
+static XF86MCSurfaceInfoPtr surface_info_i915[2] = {
+ (XF86MCSurfaceInfoPtr) & i915_YV12_mpg2_surface,
+ (XF86MCSurfaceInfoPtr) & i915_YV12_mpg1_surface
+};
+
+/* i965 and later hwmc support */
+#ifndef XVMC_VLD
+#define XVMC_VLD 0x00020000
+#endif
+
+static XF86MCSurfaceInfoRec yv12_mpeg2_vld_surface = {
+ FOURCC_YV12,
+ XVMC_CHROMA_FORMAT_420,
+ 0,
+ 1936,
+ 1096,
+ 1920,
+ 1080,
+ XVMC_MPEG_2 | XVMC_VLD,
+ XVMC_INTRA_UNSIGNED,
+ NULL
+};
+
+static XF86MCSurfaceInfoRec yv12_mpeg2_i965_surface = {
+ FOURCC_YV12,
+ XVMC_CHROMA_FORMAT_420,
+ 0,
+ 1936,
+ 1096,
+ 1920,
+ 1080,
+ XVMC_MPEG_2 | XVMC_MOCOMP,
+ /* XVMC_OVERLAID_SURFACE | XVMC_SUBPICTURE_INDEPENDENT_SCALING, */
+ XVMC_INTRA_UNSIGNED,
+ /* &yv12_subpicture_list */
+ NULL
+};
+
+static XF86MCSurfaceInfoRec yv12_mpeg1_i965_surface = {
+ FOURCC_YV12,
+ XVMC_CHROMA_FORMAT_420,
+ 0,
+ 1920,
+ 1080,
+ 1920,
+ 1080,
+ XVMC_MPEG_1 | XVMC_MOCOMP,
+ /*XVMC_OVERLAID_SURFACE | XVMC_SUBPICTURE_INDEPENDENT_SCALING |
+ XVMC_INTRA_UNSIGNED, */
+ XVMC_INTRA_UNSIGNED,
+
+ /*&yv12_subpicture_list */
+ NULL
+};
+
+static XF86MCSurfaceInfoPtr surface_info_i965[] = {
+ &yv12_mpeg2_i965_surface,
+ &yv12_mpeg1_i965_surface
+};
+
+static XF86MCSurfaceInfoPtr surface_info_vld[] = {
+ &yv12_mpeg2_vld_surface,
+ &yv12_mpeg2_i965_surface,
+};
+
+/* check chip type and load xvmc driver */
+Bool intel_xvmc_adaptor_init(ScreenPtr pScreen)
+{
+ ScrnInfoPtr scrn = xf86Screens[pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ static XF86MCAdaptorRec *pAdapt;
+ char *name;
+ char buf[64];
+
+ if (!intel->XvMCEnabled)
+ return FALSE;
+
+ /* Needs KMS support. */
+ if (IS_I915G(intel) || IS_I915GM(intel))
+ return FALSE;
+
+ if (IS_GEN2(intel)) {
+ ErrorF("Your chipset doesn't support XvMC.\n");
+ return FALSE;
+ }
+
+ pAdapt = calloc(1, sizeof(XF86MCAdaptorRec));
+ if (!pAdapt) {
+ ErrorF("Allocation error.\n");
+ return FALSE;
+ }
+
+ pAdapt->name = "Intel(R) Textured Video";
+ pAdapt->num_subpictures = 0;
+ pAdapt->subpictures = NULL;
+ pAdapt->CreateContext = create_context;
+ pAdapt->DestroyContext = destroy_context;
+ pAdapt->CreateSurface = create_surface;
+ pAdapt->DestroySurface = destroy_surface;
+ pAdapt->CreateSubpicture = create_subpicture;
+ pAdapt->DestroySubpicture = destroy_subpicture;
+
+ if (IS_GEN3(intel)) {
+ name = "i915_xvmc",
+ pAdapt->num_surfaces = ARRAY_SIZE(surface_info_i915);
+ pAdapt->surfaces = surface_info_i915;
+ } else if (INTEL_INFO(intel)->gen >= 45) {
+ name = "xvmc_vld",
+ pAdapt->num_surfaces = ARRAY_SIZE(surface_info_vld);
+ pAdapt->surfaces = surface_info_vld;
+ } else {
+ name = "i965_xvmc",
+ pAdapt->num_surfaces = ARRAY_SIZE(surface_info_i965);
+ pAdapt->surfaces = surface_info_i965;
+ }
+
+ if (xf86XvMCScreenInit(pScreen, 1, &pAdapt)) {
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "[XvMC] %s driver initialized.\n",
+ name);
+ } else {
+ intel->XvMCEnabled = FALSE;
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "[XvMC] Failed to initialize XvMC.\n");
+ return FALSE;
+ }
+
+ sprintf(buf, "pci:%04x:%02x:%02x.%d",
+ intel->PciInfo->domain,
+ intel->PciInfo->bus, intel->PciInfo->dev, intel->PciInfo->func);
+
+ xf86XvMCRegisterDRInfo(pScreen, INTEL_XVMC_LIBNAME,
+ buf,
+ INTEL_XVMC_MAJOR, INTEL_XVMC_MINOR,
+ INTEL_XVMC_PATCHLEVEL);
+ return TRUE;
+}
diff --git a/src/intel_hwmc.h b/src/intel_hwmc.h
new file mode 100644
index 0000000..8682fe0
--- /dev/null
+++ b/src/intel_hwmc.h
@@ -0,0 +1,75 @@
+/*
+ * Copyright © 2007 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Zhenyu Wang <zhenyu.z.wang@intel.com>
+ *
+ */
+#ifndef I830_HWMC_H
+#define I830_HWMC_H
+
+#define INTEL_XVMC_LIBNAME "IntelXvMC"
+#define INTEL_XVMC_MAJOR 0
+#define INTEL_XVMC_MINOR 1
+#define INTEL_XVMC_PATCHLEVEL 0
+
+#define FOURCC_XVMC (('C' << 24) + ('M' << 16) + ('V' << 8) + 'X')
+
+/*
+ * Commands that client submits through XvPutImage:
+ */
+
+#define INTEL_XVMC_COMMAND_DISPLAY 0x00
+#define INTEL_XVMC_COMMAND_UNDISPLAY 0x01
+
+/* hw xvmc support type */
+#define XVMC_I915_MPEG2_MC 0x01
+#define XVMC_I965_MPEG2_MC 0x02
+#define XVMC_I945_MPEG2_VLD 0x04
+#define XVMC_I965_MPEG2_VLD 0x08
+
+struct intel_xvmc_hw_context {
+ unsigned int type;
+ union {
+ struct {
+ unsigned int use_phys_addr : 1;
+ } i915;
+ struct {
+ unsigned int is_g4x:1;
+ unsigned int is_965_q:1;
+ unsigned int is_igdng:1;
+ } i965;
+ };
+};
+
+/* Intel private XvMC command to DDX driver */
+struct intel_xvmc_command {
+ uint32_t handle;
+};
+
+#ifdef _INTEL_XVMC_SERVER_
+#include <xf86xvmc.h>
+
+extern Bool intel_xvmc_adaptor_init(ScreenPtr);
+#endif
+
+#endif
diff --git a/src/intel_memory.c b/src/intel_memory.c
new file mode 100644
index 0000000..763a6ad
--- /dev/null
+++ b/src/intel_memory.c
@@ -0,0 +1,304 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+Copyright © 2002 by David Dawes.
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ * David Dawes <dawes@xfree86.org>
+ *
+ * Updated for Dual Head capabilities:
+ * Alan Hourihane <alanh@tungstengraphics.com>
+ */
+
+/**
+ * @file intel_memory.c
+ *
+ * This is the video memory allocator. Our memory allocation is different from
+ * other graphics chips, where you have a fixed amount of graphics memory
+ * available that you want to put to the best use. Instead, we have almost no
+ * memory pre-allocated, and we have to choose an appropriate amount of sytem
+ * memory to use.
+ *
+ * The allocations we might do:
+ *
+ * - Ring buffer
+ * - HW cursor block (either one block or four)
+ * - Overlay registers
+ * - Front buffer (screen 1)
+ * - Front buffer (screen 2, only in zaphod mode)
+ * - Back/depth buffer (3D only)
+ * - Compatibility texture pool (optional, more is always better)
+ * - New texture pool (optional, more is always better. aperture allocation
+ * only)
+ *
+ * The user may request a specific amount of memory to be used
+ * (intel->pEnt->videoRam != 0), in which case allocations have to fit within
+ * that much aperture. If not, the individual allocations will be
+ * automatically sized, and will be fit within the maximum aperture size.
+ * Only the actual memory used (not alignment padding) will get actual AGP
+ * memory allocated.
+ *
+ * Given that the allocations listed are generally a page or more than a page,
+ * our allocator will only return page-aligned offsets, simplifying the memory
+ * binding process. For smaller allocations, the acceleration architecture's
+ * linear allocator is preferred.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <assert.h>
+#include <inttypes.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+
+#include "intel.h"
+#include "i915_drm.h"
+
+/**
+ * Returns the fence size for a tiled area of the given size.
+ */
+unsigned long intel_get_fence_size(intel_screen_private *intel, unsigned long size)
+{
+ unsigned long i;
+ unsigned long start;
+
+ if (INTEL_INFO(intel)->gen >= 40 || intel->has_relaxed_fencing) {
+ /* The 965 can have fences at any page boundary. */
+ return ALIGN(size, GTT_PAGE_SIZE);
+ } else {
+ /* Align the size to a power of two greater than the smallest fence
+ * size.
+ */
+ if (IS_GEN3(intel))
+ start = MB(1);
+ else
+ start = KB(512);
+
+ for (i = start; i < size; i <<= 1) ;
+
+ return i;
+ }
+}
+
+/**
+ * On some chips, pitch width has to be a power of two tile width, so
+ * calculate that here.
+ */
+unsigned long
+intel_get_fence_pitch(intel_screen_private *intel, unsigned long pitch,
+ uint32_t tiling_mode)
+{
+ unsigned long i;
+ unsigned long tile_width = (tiling_mode == I915_TILING_Y) ? 128 : 512;
+
+ if (tiling_mode == I915_TILING_NONE)
+ return pitch;
+
+ /* 965+ is flexible */
+ if (INTEL_INFO(intel)->gen >= 40)
+ return ALIGN(pitch, tile_width);
+
+ /* Pre-965 needs power of two tile width */
+ for (i = tile_width; i < pitch; i <<= 1) ;
+
+ return i;
+}
+
+static Bool
+intel_check_display_stride(ScrnInfoPtr scrn, int stride, Bool tiling)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int limit = KB(32);
+
+ /* 8xx spec has always 8K limit, but tests show larger limit in
+ non-tiling mode, which makes large monitor work. */
+ if (tiling) {
+ if (IS_GEN2(intel))
+ limit = KB(8);
+ else if (IS_GEN3(intel))
+ limit = KB(8);
+ else if (IS_GEN4(intel))
+ limit = KB(16);
+ else
+ limit = KB(32);
+ }
+
+ if (stride <= limit)
+ return TRUE;
+ else
+ return FALSE;
+}
+
+/*
+ * Pad to accelerator requirement
+ */
+static inline int intel_pad_drawable_width(int width)
+{
+ return ALIGN(width, 64);
+}
+
+/**
+ * Allocates a framebuffer for a screen.
+ *
+ * Used once for each X screen, so once with RandR 1.2 and twice with classic
+ * dualhead.
+ */
+drm_intel_bo *intel_allocate_framebuffer(ScrnInfoPtr scrn,
+ int width, int height, int cpp,
+ unsigned long *out_pitch,
+ uint32_t *out_tiling)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *front_buffer;
+ uint32_t tiling_mode;
+ unsigned long pitch;
+
+ if (intel->tiling & INTEL_TILING_FB)
+ tiling_mode = I915_TILING_X;
+ else
+ tiling_mode = I915_TILING_NONE;
+
+ width = intel_pad_drawable_width(width);
+ if (!intel_check_display_stride(scrn, width * intel->cpp,
+ tiling_mode != I915_TILING_NONE))
+ tiling_mode = I915_TILING_NONE;
+ if (!intel_check_display_stride(scrn, width * intel->cpp,
+ tiling_mode != I915_TILING_NONE)) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Expected front buffer stride %d kB "
+ "will exceed display limit\n",
+ width * intel->cpp / 1024);
+ return NULL;
+ }
+
+retry:
+ front_buffer = drm_intel_bo_alloc_tiled(intel->bufmgr, "front buffer",
+ width, height, intel->cpp,
+ &tiling_mode, &pitch, 0);
+ if (front_buffer == NULL) {
+ if (tiling_mode != I915_TILING_NONE) {
+ tiling_mode = I915_TILING_NONE;
+ goto retry;
+ }
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Failed to allocate framebuffer.\n");
+ return NULL;
+ }
+
+ if (!intel_check_display_stride(scrn, pitch,
+ tiling_mode != I915_TILING_NONE)) {
+ drm_intel_bo_unreference(front_buffer);
+ if (tiling_mode != I915_TILING_NONE) {
+ tiling_mode = I915_TILING_NONE;
+ goto retry;
+ }
+
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Front buffer stride %ld kB "
+ "exceeds display limit\n", pitch / 1024);
+ return NULL;
+ }
+
+ if ((intel->tiling & INTEL_TILING_FB) && tiling_mode != I915_TILING_X) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "Failed to set tiling on frontbuffer.\n");
+ }
+
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Allocated new frame buffer %dx%d stride %ld, %s\n",
+ width, height, pitch,
+ tiling_mode == I915_TILING_NONE ? "untiled" : "tiled");
+
+ drm_intel_bo_disable_reuse(front_buffer);
+
+ intel_set_gem_max_sizes(scrn);
+ *out_pitch = pitch;
+ *out_tiling = tiling_mode;
+
+ return front_buffer;
+}
+
+static void intel_set_max_bo_size(intel_screen_private *intel,
+ const struct drm_i915_gem_get_aperture *aperture)
+{
+ if (aperture->aper_available_size)
+ /* Large BOs will tend to hit SW fallbacks frequently, and also will
+ * tend to fail to successfully map when doing SW fallbacks because we
+ * overcommit address space for BO access, or worse cause aperture
+ * thrashing.
+ */
+ intel->max_bo_size = aperture->aper_available_size / 2;
+ else
+ intel->max_bo_size = 64 * 1024 * 1024;
+}
+
+static void intel_set_max_gtt_map_size(intel_screen_private *intel,
+ const struct drm_i915_gem_get_aperture *aperture)
+{
+ if (aperture->aper_available_size)
+ /* Let objects up get bound up to the size where only 2 would fit in
+ * the aperture, but then leave slop to account for alignment like
+ * libdrm does.
+ */
+ intel->max_gtt_map_size =
+ aperture->aper_available_size * 3 / 4 / 2;
+ else
+ intel->max_gtt_map_size = 16 * 1024 * 1024;
+}
+
+static void intel_set_max_tiling_size(intel_screen_private *intel,
+ const struct drm_i915_gem_get_aperture *aperture)
+{
+ if (aperture->aper_available_size)
+ /* Let objects be tiled up to the size where only 4 would fit in
+ * the aperture, presuming worst case alignment.
+ */
+ intel->max_tiling_size = aperture->aper_available_size / 4;
+ else
+ intel->max_tiling_size = 4 * 1024 * 1024;
+}
+
+void intel_set_gem_max_sizes(ScrnInfoPtr scrn)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct drm_i915_gem_get_aperture aperture;
+
+ aperture.aper_available_size = 0;
+ drmIoctl(intel->drmSubFD, DRM_IOCTL_I915_GEM_GET_APERTURE, &aperture);
+
+ intel_set_max_bo_size(intel, &aperture);
+ intel_set_max_gtt_map_size(intel, &aperture);
+ intel_set_max_tiling_size(intel, &aperture);
+}
diff --git a/src/intel_module.c b/src/intel_module.c
new file mode 100644
index 0000000..8416544
--- /dev/null
+++ b/src/intel_module.c
@@ -0,0 +1,587 @@
+/*
+ * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ * Copyright © 2010 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86cmap.h"
+
+#include "common.h"
+#include "intel.h"
+#include "intel_driver.h"
+#include "legacy/legacy.h"
+
+#include <xf86drmMode.h>
+
+static const struct intel_device_info intel_i81x_info = {
+ .gen = 10,
+};
+
+static const struct intel_device_info intel_i8xx_info = {
+ .gen = 20,
+};
+
+static const struct intel_device_info intel_i915_info = {
+ .gen = 30,
+};
+
+static const struct intel_device_info intel_g33_info = {
+ .gen = 33,
+};
+
+static const struct intel_device_info intel_i965_info = {
+ .gen = 40,
+};
+
+static const struct intel_device_info intel_g4x_info = {
+ .gen = 45,
+};
+
+static const struct intel_device_info intel_ironlake_info = {
+ .gen = 50,
+};
+
+static const struct intel_device_info intel_sandybridge_info = {
+ .gen = 60,
+};
+
+static const SymTabRec _intel_chipsets[] = {
+ {PCI_CHIP_I810, "i810"},
+ {PCI_CHIP_I810_DC100, "i810-dc100"},
+ {PCI_CHIP_I810_E, "i810e"},
+ {PCI_CHIP_I815, "i815"},
+ {PCI_CHIP_I830_M, "i830M"},
+ {PCI_CHIP_845_G, "845G"},
+ {PCI_CHIP_I854, "854"},
+ {PCI_CHIP_I855_GM, "852GM/855GM"},
+ {PCI_CHIP_I865_G, "865G"},
+ {PCI_CHIP_I915_G, "915G"},
+ {PCI_CHIP_E7221_G, "E7221 (i915)"},
+ {PCI_CHIP_I915_GM, "915GM"},
+ {PCI_CHIP_I945_G, "945G"},
+ {PCI_CHIP_I945_GM, "945GM"},
+ {PCI_CHIP_I945_GME, "945GME"},
+ {PCI_CHIP_PINEVIEW_M, "Pineview GM"},
+ {PCI_CHIP_PINEVIEW_G, "Pineview G"},
+ {PCI_CHIP_I965_G, "965G"},
+ {PCI_CHIP_G35_G, "G35"},
+ {PCI_CHIP_I965_Q, "965Q"},
+ {PCI_CHIP_I946_GZ, "946GZ"},
+ {PCI_CHIP_I965_GM, "965GM"},
+ {PCI_CHIP_I965_GME, "965GME/GLE"},
+ {PCI_CHIP_G33_G, "G33"},
+ {PCI_CHIP_Q35_G, "Q35"},
+ {PCI_CHIP_Q33_G, "Q33"},
+ {PCI_CHIP_GM45_GM, "GM45"},
+ {PCI_CHIP_G45_E_G, "4 Series"},
+ {PCI_CHIP_G45_G, "G45/G43"},
+ {PCI_CHIP_Q45_G, "Q45/Q43"},
+ {PCI_CHIP_G41_G, "G41"},
+ {PCI_CHIP_B43_G, "B43"},
+ {PCI_CHIP_B43_G1, "B43"},
+ {PCI_CHIP_IRONLAKE_D_G, "Clarkdale"},
+ {PCI_CHIP_IRONLAKE_M_G, "Arrandale"},
+ {PCI_CHIP_SANDYBRIDGE_GT1, "Sandybridge" },
+ {PCI_CHIP_SANDYBRIDGE_GT2, "Sandybridge" },
+ {PCI_CHIP_SANDYBRIDGE_GT2_PLUS, "Sandybridge" },
+ {PCI_CHIP_SANDYBRIDGE_M_GT1, "Sandybridge" },
+ {PCI_CHIP_SANDYBRIDGE_M_GT2, "Sandybridge" },
+ {PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS, "Sandybridge" },
+ {PCI_CHIP_SANDYBRIDGE_S_GT, "Sandybridge" },
+ {-1, NULL}
+};
+SymTabRec *intel_chipsets = (SymTabRec *) _intel_chipsets;
+
+#define INTEL_DEVICE_MATCH(d,i) \
+{ 0x8086, (d), PCI_MATCH_ANY, PCI_MATCH_ANY, 0, 0, (i) }
+
+static const struct pci_id_match intel_device_match[] = {
+ INTEL_DEVICE_MATCH (PCI_CHIP_I810, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I810_DC100, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I810_E, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I815, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I830_M, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_845_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I854, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I855_GM, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I865_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I915_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_E7221_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I915_GM, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I945_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I945_GM, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I945_GME, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_PINEVIEW_M, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_PINEVIEW_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I965_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_G35_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I965_Q, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I946_GZ, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I965_GM, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_I965_GME, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_G33_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_Q35_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_Q33_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_GM45_GM, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_G45_E_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_G45_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_Q45_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_G41_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_B43_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_IRONLAKE_D_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_IRONLAKE_M_G, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_GT1, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_GT2, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_GT2_PLUS, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_M_GT1, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_M_GT2, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS, 0 ),
+ INTEL_DEVICE_MATCH (PCI_CHIP_SANDYBRIDGE_S_GT, 0 ),
+ { 0, 0, 0 },
+};
+
+static PciChipsets intel_pci_chipsets[] = {
+ {PCI_CHIP_I810, PCI_CHIP_I810, NULL},
+ {PCI_CHIP_I810_DC100, PCI_CHIP_I810_DC100, NULL},
+ {PCI_CHIP_I810_E, PCI_CHIP_I810_E, NULL},
+ {PCI_CHIP_I815, PCI_CHIP_I815, NULL},
+ {PCI_CHIP_I830_M, PCI_CHIP_I830_M, NULL},
+ {PCI_CHIP_845_G, PCI_CHIP_845_G, NULL},
+ {PCI_CHIP_I854, PCI_CHIP_I854, NULL},
+ {PCI_CHIP_I855_GM, PCI_CHIP_I855_GM, NULL},
+ {PCI_CHIP_I865_G, PCI_CHIP_I865_G, NULL},
+ {PCI_CHIP_I915_G, PCI_CHIP_I915_G, NULL},
+ {PCI_CHIP_E7221_G, PCI_CHIP_E7221_G, NULL},
+ {PCI_CHIP_I915_GM, PCI_CHIP_I915_GM, NULL},
+ {PCI_CHIP_I945_G, PCI_CHIP_I945_G, NULL},
+ {PCI_CHIP_I945_GM, PCI_CHIP_I945_GM, NULL},
+ {PCI_CHIP_I945_GME, PCI_CHIP_I945_GME, NULL},
+ {PCI_CHIP_PINEVIEW_M, PCI_CHIP_PINEVIEW_M, NULL},
+ {PCI_CHIP_PINEVIEW_G, PCI_CHIP_PINEVIEW_G, NULL},
+ {PCI_CHIP_I965_G, PCI_CHIP_I965_G, NULL},
+ {PCI_CHIP_G35_G, PCI_CHIP_G35_G, NULL},
+ {PCI_CHIP_I965_Q, PCI_CHIP_I965_Q, NULL},
+ {PCI_CHIP_I946_GZ, PCI_CHIP_I946_GZ, NULL},
+ {PCI_CHIP_I965_GM, PCI_CHIP_I965_GM, NULL},
+ {PCI_CHIP_I965_GME, PCI_CHIP_I965_GME, NULL},
+ {PCI_CHIP_G33_G, PCI_CHIP_G33_G, NULL},
+ {PCI_CHIP_Q35_G, PCI_CHIP_Q35_G, NULL},
+ {PCI_CHIP_Q33_G, PCI_CHIP_Q33_G, NULL},
+ {PCI_CHIP_GM45_GM, PCI_CHIP_GM45_GM, NULL},
+ {PCI_CHIP_G45_E_G, PCI_CHIP_G45_E_G, NULL},
+ {PCI_CHIP_G45_G, PCI_CHIP_G45_G, NULL},
+ {PCI_CHIP_Q45_G, PCI_CHIP_Q45_G, NULL},
+ {PCI_CHIP_G41_G, PCI_CHIP_G41_G, NULL},
+ {PCI_CHIP_B43_G, PCI_CHIP_B43_G, NULL},
+ {PCI_CHIP_IRONLAKE_D_G, PCI_CHIP_IRONLAKE_D_G, NULL},
+ {PCI_CHIP_IRONLAKE_M_G, PCI_CHIP_IRONLAKE_M_G, NULL},
+ {PCI_CHIP_SANDYBRIDGE_GT1, PCI_CHIP_SANDYBRIDGE_GT1, NULL},
+ {PCI_CHIP_SANDYBRIDGE_GT2, PCI_CHIP_SANDYBRIDGE_GT2, NULL},
+ {PCI_CHIP_SANDYBRIDGE_GT2_PLUS, PCI_CHIP_SANDYBRIDGE_GT2_PLUS, NULL},
+ {PCI_CHIP_SANDYBRIDGE_M_GT1, PCI_CHIP_SANDYBRIDGE_M_GT1, NULL},
+ {PCI_CHIP_SANDYBRIDGE_M_GT2, PCI_CHIP_SANDYBRIDGE_M_GT2, NULL},
+ {PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS, PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS, NULL},
+ {PCI_CHIP_SANDYBRIDGE_S_GT, PCI_CHIP_SANDYBRIDGE_S_GT, NULL},
+ {-1, -1, NULL }
+};
+
+void intel_detect_chipset(ScrnInfoPtr scrn,
+ struct pci_device *pci,
+ struct intel_chipset *chipset)
+{
+ uint32_t capid;
+
+ switch (DEVICE_ID(pci)) {
+ case PCI_CHIP_I810:
+ chipset->name = "i810";
+ chipset->info = &intel_i81x_info;
+ break;
+ case PCI_CHIP_I810_DC100:
+ chipset->name = "i810-dc100";
+ chipset->info = &intel_i81x_info;
+ break;
+ case PCI_CHIP_I810_E:
+ chipset->name = "i810e";
+ chipset->info = &intel_i81x_info;
+ break;
+ case PCI_CHIP_I815:
+ chipset->name = "i815";
+ chipset->info = &intel_i81x_info;
+ break;
+ case PCI_CHIP_I830_M:
+ chipset->name = "830M";
+ chipset->info = &intel_i8xx_info;
+ break;
+ case PCI_CHIP_845_G:
+ chipset->name = "845G";
+ chipset->info = &intel_i8xx_info;
+ break;
+ case PCI_CHIP_I854:
+ chipset->name = "854";
+ chipset->info = &intel_i8xx_info;
+ break;
+ case PCI_CHIP_I855_GM:
+ /* Check capid register to find the chipset variant */
+ pci_device_cfg_read_u32(pci, &capid, I85X_CAPID);
+ chipset->variant =
+ (capid >> I85X_VARIANT_SHIFT) & I85X_VARIANT_MASK;
+ switch (chipset->variant) {
+ case I855_GM:
+ chipset->name = "855GM";
+ break;
+ case I855_GME:
+ chipset->name = "855GME";
+ break;
+ case I852_GM:
+ chipset->name = "852GM";
+ break;
+ case I852_GME:
+ chipset->name = "852GME";
+ break;
+ default:
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Unknown 852GM/855GM variant: 0x%x)\n",
+ chipset->variant);
+ chipset->name = "852GM/855GM (unknown variant)";
+ break;
+ }
+ chipset->info = &intel_i8xx_info;
+ break;
+ case PCI_CHIP_I865_G:
+ chipset->name = "865G";
+ chipset->info = &intel_i8xx_info;
+ break;
+ case PCI_CHIP_I915_G:
+ chipset->name = "915G";
+ chipset->info = &intel_i915_info;
+ break;
+ case PCI_CHIP_E7221_G:
+ chipset->name = "E7221 (i915)";
+ chipset->info = &intel_i915_info;
+ break;
+ case PCI_CHIP_I915_GM:
+ chipset->name = "915GM";
+ chipset->info = &intel_i915_info;
+ break;
+ case PCI_CHIP_I945_G:
+ chipset->name = "945G";
+ chipset->info = &intel_i915_info;
+ break;
+ case PCI_CHIP_I945_GM:
+ chipset->name = "945GM";
+ chipset->info = &intel_i915_info;
+ break;
+ case PCI_CHIP_I945_GME:
+ chipset->name = "945GME";
+ chipset->info = &intel_i915_info;
+ break;
+ case PCI_CHIP_PINEVIEW_M:
+ chipset->name = "Pineview GM";
+ chipset->info = &intel_g33_info;
+ break;
+ case PCI_CHIP_PINEVIEW_G:
+ chipset->name = "Pineview G";
+ chipset->info = &intel_g33_info;
+ break;
+ case PCI_CHIP_I965_G:
+ chipset->name = "965G";
+ chipset->info = &intel_i965_info;
+ break;
+ case PCI_CHIP_G35_G:
+ chipset->name = "G35";
+ chipset->info = &intel_i965_info;
+ break;
+ case PCI_CHIP_I965_Q:
+ chipset->name = "965Q";
+ chipset->info = &intel_i965_info;
+ break;
+ case PCI_CHIP_I946_GZ:
+ chipset->name = "946GZ";
+ chipset->info = &intel_i965_info;
+ break;
+ case PCI_CHIP_I965_GM:
+ chipset->name = "965GM";
+ chipset->info = &intel_i965_info;
+ break;
+ case PCI_CHIP_I965_GME:
+ chipset->name = "965GME/GLE";
+ chipset->info = &intel_i965_info;
+ break;
+ case PCI_CHIP_G33_G:
+ chipset->name = "G33";
+ chipset->info = &intel_g33_info;
+ break;
+ case PCI_CHIP_Q35_G:
+ chipset->name = "Q35";
+ chipset->info = &intel_g33_info;
+ break;
+ case PCI_CHIP_Q33_G:
+ chipset->name = "Q33";
+ chipset->info = &intel_g33_info;
+ break;
+ case PCI_CHIP_GM45_GM:
+ chipset->name = "GM45";
+ chipset->info = &intel_g4x_info;
+ break;
+ case PCI_CHIP_G45_E_G:
+ chipset->name = "4 Series";
+ chipset->info = &intel_g4x_info;
+ break;
+ case PCI_CHIP_G45_G:
+ chipset->name = "G45/G43";
+ chipset->info = &intel_g4x_info;
+ break;
+ case PCI_CHIP_Q45_G:
+ chipset->name = "Q45/Q43";
+ chipset->info = &intel_g4x_info;
+ break;
+ case PCI_CHIP_G41_G:
+ chipset->name = "G41";
+ chipset->info = &intel_g4x_info;
+ break;
+ case PCI_CHIP_B43_G:
+ chipset->name = "B43";
+ chipset->info = &intel_g4x_info;
+ break;
+ case PCI_CHIP_IRONLAKE_D_G:
+ chipset->name = "Clarkdale";
+ chipset->info = &intel_ironlake_info;
+ break;
+ case PCI_CHIP_IRONLAKE_M_G:
+ chipset->name = "Arrandale";
+ chipset->info = &intel_ironlake_info;
+ break;
+ case PCI_CHIP_SANDYBRIDGE_GT1:
+ case PCI_CHIP_SANDYBRIDGE_GT2:
+ case PCI_CHIP_SANDYBRIDGE_GT2_PLUS:
+ case PCI_CHIP_SANDYBRIDGE_M_GT1:
+ case PCI_CHIP_SANDYBRIDGE_M_GT2:
+ case PCI_CHIP_SANDYBRIDGE_M_GT2_PLUS:
+ case PCI_CHIP_SANDYBRIDGE_S_GT:
+ chipset->name = "Sandybridge";
+ chipset->info = &intel_sandybridge_info;
+ break;
+ default:
+ chipset->name = "unknown chipset";
+ break;
+ }
+
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Integrated Graphics Chipset: Intel(R) %s\n", chipset->name);
+}
+
+/*
+ * intel_identify --
+ *
+ * Returns the string name for the driver based on the chipset.
+ *
+ */
+static void intel_identify(int flags)
+{
+ xf86PrintChipsets(INTEL_NAME,
+ "Driver for Intel Integrated Graphics Chipsets",
+ intel_chipsets);
+}
+
+static Bool intel_driver_func(ScrnInfoPtr pScrn,
+ xorgDriverFuncOp op,
+ pointer ptr)
+{
+ xorgHWFlags *flag;
+
+ switch (op) {
+ case GET_REQUIRED_HW_INTERFACES:
+ flag = (CARD32*)ptr;
+#ifdef KMS_ONLY
+ (*flag) = 0;
+#else
+ (*flag) = HW_IO | HW_MMIO;
+#endif
+ return TRUE;
+ default:
+ /* Unknown or deprecated function */
+ return FALSE;
+ }
+}
+
+static Bool has_kernel_mode_setting(struct pci_device *dev)
+{
+ char id[20];
+ int ret;
+
+ snprintf(id, sizeof(id),
+ "pci:%04x:%02x:%02x.%d",
+ dev->domain, dev->bus, dev->dev, dev->func);
+
+ ret = drmCheckModesettingSupported(id);
+ if (ret) {
+ if (xf86LoadKernelModule("i915"))
+ ret = drmCheckModesettingSupported(id);
+ }
+ /* Be nice to the user and load fbcon too */
+ if (!ret)
+ (void)xf86LoadKernelModule("fbcon");
+
+ return ret == 0;
+}
+
+/*
+ * intel_pci_probe --
+ *
+ * Look through the PCI bus to find cards that are intel boards.
+ * Setup the dispatch table for the rest of the driver functions.
+ *
+ */
+static Bool intel_pci_probe (DriverPtr driver,
+ int entity_num,
+ struct pci_device *device,
+ intptr_t match_data)
+{
+ ScrnInfoPtr scrn;
+
+ if (!has_kernel_mode_setting(device)) {
+#if KMS_ONLY
+ return FALSE;
+#else
+ switch (DEVICE_ID(device)) {
+ case PCI_CHIP_I810:
+ case PCI_CHIP_I810_DC100:
+ case PCI_CHIP_I810_E:
+ case PCI_CHIP_I815:
+ break;
+ default:
+ return FALSE;
+ }
+#endif
+ }
+
+ scrn = xf86ConfigPciEntity(NULL, 0, entity_num, intel_pci_chipsets,
+ NULL, NULL, NULL, NULL, NULL);
+ if (scrn != NULL) {
+ scrn->driverVersion = INTEL_VERSION;
+ scrn->driverName = INTEL_DRIVER_NAME;
+ scrn->name = INTEL_NAME;
+ scrn->Probe = NULL;
+
+#if KMS_ONLY
+ intel_init_scrn(scrn);
+#else
+ switch (DEVICE_ID(device)) {
+ case PCI_CHIP_I810:
+ case PCI_CHIP_I810_DC100:
+ case PCI_CHIP_I810_E:
+ case PCI_CHIP_I815:
+ lg_i810_init(scrn);
+ break;
+
+ default:
+ intel_init_scrn(scrn);
+ break;
+ }
+#endif
+ }
+ return scrn != NULL;
+}
+
+#ifdef XFree86LOADER
+
+static MODULESETUPPROTO(intel_setup);
+
+static XF86ModuleVersionInfo intel_version = {
+ "intel",
+ MODULEVENDORSTRING,
+ MODINFOSTRING1,
+ MODINFOSTRING2,
+ XORG_VERSION_CURRENT,
+ INTEL_VERSION_MAJOR, INTEL_VERSION_MINOR, INTEL_VERSION_PATCH,
+ ABI_CLASS_VIDEODRV,
+ ABI_VIDEODRV_VERSION,
+ MOD_CLASS_VIDEODRV,
+ {0, 0, 0, 0}
+};
+
+static const OptionInfoRec *
+intel_available_options(int chipid, int busid)
+{
+#if KMS_ONLY
+ return intel_uxa_available_options(chipid, busid);
+#else
+ switch (chipid) {
+ case PCI_CHIP_I810:
+ case PCI_CHIP_I810_DC100:
+ case PCI_CHIP_I810_E:
+ case PCI_CHIP_I815:
+ return lg_i810_available_options(chipid, busid);
+
+ default:
+ return intel_uxa_available_options(chipid, busid);
+ }
+#endif
+}
+
+static DriverRec intel = {
+ INTEL_VERSION,
+ INTEL_DRIVER_NAME,
+ intel_identify,
+ NULL,
+ intel_available_options,
+ NULL,
+ 0,
+ intel_driver_func,
+ intel_device_match,
+ intel_pci_probe
+};
+
+static pointer intel_setup(pointer module,
+ pointer opts,
+ int *errmaj,
+ int *errmin)
+{
+ static Bool setupDone = 0;
+
+ /* This module should be loaded only once, but check to be sure.
+ */
+ if (!setupDone) {
+ setupDone = 1;
+ xf86AddDriver(&intel, module, HaveDriverFuncs);
+
+ /*
+ * The return value must be non-NULL on success even though there
+ * is no TearDownProc.
+ */
+ return (pointer) 1;
+ } else {
+ if (errmaj)
+ *errmaj = LDR_ONCEONLY;
+ return NULL;
+ }
+}
+
+_X_EXPORT XF86ModuleData intelModuleData = { &intel_version, intel_setup, NULL };
+#endif
diff --git a/src/intel_shadow.c b/src/intel_shadow.c
new file mode 100644
index 0000000..b86530a
--- /dev/null
+++ b/src/intel_shadow.c
@@ -0,0 +1,204 @@
+/**************************************************************************
+
+Copyright 2010 Intel Corporation
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+*/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "xaarop.h"
+#include "intel.h"
+#include "i830_reg.h"
+
+static dri_bo *
+intel_shadow_create_bo(intel_screen_private *intel,
+ int16_t x1, int16_t y1,
+ int16_t x2, int16_t y2,
+ int *pitch)
+{
+ int w = x2 - x1, h = y2 - y1;
+ int size = h * w * intel->cpp;
+ dri_bo *bo;
+
+ bo = drm_intel_bo_alloc(intel->bufmgr, "shadow", size, 0);
+ if (bo && drm_intel_gem_bo_map_gtt(bo) == 0) {
+ char *dst = bo->virtual;
+ char *src = intel->shadow_buffer;
+ int src_pitch = intel->shadow_stride;
+ int row_length = w * intel->cpp;
+ int num_rows = h;
+ src += y1 * src_pitch + x1 * intel->cpp;
+ do {
+ memcpy (dst, src, row_length);
+ src += src_pitch;
+ dst += row_length;
+ } while (--num_rows);
+ drm_intel_gem_bo_unmap_gtt(bo);
+ }
+
+ *pitch = w * intel->cpp;
+ return bo;
+}
+
+static void intel_shadow_memcpy(intel_screen_private *intel)
+{
+ char *src_data, *dst_data;
+ unsigned int src_pitch, dst_pitch;
+ RegionPtr region;
+ BoxPtr box;
+ int n;
+
+ if (drm_intel_gem_bo_map_gtt(intel->front_buffer))
+ return;
+
+ src_data = intel->shadow_buffer;
+ dst_data = intel->front_buffer->virtual;
+
+ src_pitch = intel->shadow_stride;
+ dst_pitch = intel->front_pitch;
+
+ region = DamageRegion(intel->shadow_damage);
+ box = REGION_RECTS(region);
+ n = REGION_NUM_RECTS(region);
+ while (n--) {
+ char *src = src_data + box->y1*src_pitch + box->x1*intel->cpp;
+ char *dst = dst_data + box->y1*dst_pitch + box->x1*intel->cpp;
+ int len = (box->x2 - box->x1)*intel->cpp;
+ int row = box->y2 - box->y1;
+ while (row--) {
+ memcpy(dst, src, len);
+ src += src_pitch;
+ dst += dst_pitch;
+ }
+ box++;
+ }
+}
+
+void intel_shadow_blt(intel_screen_private *intel)
+{
+ ScrnInfoPtr scrn = intel->scrn;
+ unsigned int dst_pitch;
+ uint32_t blt, br13;
+ RegionPtr region;
+ BoxPtr box;
+ int n;
+
+ /* Can we trust the BLT? Otherwise do an uncached mmecy. */
+ if (!intel->can_blt || IS_GEN2(intel)) {
+ intel_shadow_memcpy(intel);
+ return;
+ }
+
+ dst_pitch = intel->front_pitch;
+
+ blt = XY_SRC_COPY_BLT_CMD;
+ if (intel->cpp == 4)
+ blt |= (XY_SRC_COPY_BLT_WRITE_ALPHA |
+ XY_SRC_COPY_BLT_WRITE_RGB);
+
+ if (INTEL_INFO(intel)->gen >= 40) {
+ if (intel->front_tiling) {
+ dst_pitch >>= 2;
+ blt |= XY_SRC_COPY_BLT_DST_TILED;
+ }
+ }
+
+ br13 = ROP_S << 16 | dst_pitch;
+ switch (intel->cpp) {
+ default:
+ case 4: br13 |= 1 << 25; /* RGB8888 */
+ case 2: br13 |= 1 << 24; /* RGB565 */
+ case 1: break;
+ }
+
+ region = DamageRegion(intel->shadow_damage);
+ box = REGION_RECTS(region);
+ n = REGION_NUM_RECTS(region);
+ while (n--) {
+ int pitch;
+ dri_bo *bo;
+
+ bo = intel_shadow_create_bo(intel,
+ box->x1, box->y1,
+ box->x2, box->y2,
+ &pitch);
+ if (bo == NULL)
+ return;
+
+ BEGIN_BATCH_BLT(8);
+ OUT_BATCH(blt);
+ OUT_BATCH(br13);
+ OUT_BATCH(box->y1 << 16 | box->x1);
+ OUT_BATCH(box->y2 << 16 | box->x2);
+ OUT_RELOC_FENCED(intel->front_buffer,
+ I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER,
+ 0);
+ OUT_BATCH(0);
+ OUT_BATCH(pitch);
+ OUT_RELOC(bo, I915_GEM_DOMAIN_RENDER, 0, 0);
+
+ ADVANCE_BATCH();
+
+ drm_intel_bo_unreference(bo);
+ box++;
+ }
+}
+
+void intel_shadow_create(struct intel_screen_private *intel)
+{
+ ScrnInfoPtr scrn = intel->scrn;
+ ScreenPtr screen = scrn->pScreen;
+ PixmapPtr pixmap;
+ int stride;
+ void *buffer;
+
+ pixmap = screen->GetScreenPixmap(screen);
+ stride = intel->cpp*scrn->virtualX;
+ buffer = malloc(stride * scrn->virtualY);
+ if (buffer &&
+ screen->ModifyPixmapHeader(pixmap,
+ scrn->virtualX, scrn->virtualY,
+ -1, -1,
+ stride, buffer)) {
+ free(intel->shadow_buffer);
+ intel->shadow_buffer = buffer;
+ } else
+ stride = intel->shadow_stride;
+
+ if (!intel->shadow_damage) {
+ intel->shadow_damage =
+ DamageCreate(NULL, NULL,
+ DamageReportNone, TRUE,
+ screen, intel);
+ DamageRegister(&pixmap->drawable, intel->shadow_damage);
+ DamageSetReportAfterOp(intel->shadow_damage, TRUE);
+ }
+
+ scrn->displayWidth = stride / intel->cpp;
+ intel->shadow_stride = stride;
+}
diff --git a/src/intel_uxa.c b/src/intel_uxa.c
new file mode 100644
index 0000000..df3adcb
--- /dev/null
+++ b/src/intel_uxa.c
@@ -0,0 +1,1299 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+Copyright (c) 2005 Jesse Barnes <jbarnes@virtuousgeek.org>
+ Based on code from i830_xaa.c.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "xaarop.h"
+#include "intel.h"
+#include "i830_reg.h"
+#include "i915_drm.h"
+#include "brw_defines.h"
+#include <string.h>
+#include <errno.h>
+
+static const int I830CopyROP[16] = {
+ ROP_0, /* GXclear */
+ ROP_DSa, /* GXand */
+ ROP_SDna, /* GXandReverse */
+ ROP_S, /* GXcopy */
+ ROP_DSna, /* GXandInverted */
+ ROP_D, /* GXnoop */
+ ROP_DSx, /* GXxor */
+ ROP_DSo, /* GXor */
+ ROP_DSon, /* GXnor */
+ ROP_DSxn, /* GXequiv */
+ ROP_Dn, /* GXinvert */
+ ROP_SDno, /* GXorReverse */
+ ROP_Sn, /* GXcopyInverted */
+ ROP_DSno, /* GXorInverted */
+ ROP_DSan, /* GXnand */
+ ROP_1 /* GXset */
+};
+
+static const int I830PatternROP[16] = {
+ ROP_0,
+ ROP_DPa,
+ ROP_PDna,
+ ROP_P,
+ ROP_DPna,
+ ROP_D,
+ ROP_DPx,
+ ROP_DPo,
+ ROP_DPon,
+ ROP_PDxn,
+ ROP_Dn,
+ ROP_PDno,
+ ROP_Pn,
+ ROP_DPno,
+ ROP_DPan,
+ ROP_1
+};
+
+#if HAS_DEVPRIVATEKEYREC
+DevPrivateKeyRec uxa_pixmap_index;
+#else
+int uxa_pixmap_index;
+#endif
+
+static void
+gen6_context_switch(intel_screen_private *intel,
+ int new_mode)
+{
+ intel_batch_submit(intel->scrn);
+}
+
+static void
+gen5_context_switch(intel_screen_private *intel,
+ int new_mode)
+{
+ /* Ironlake has a limitation that a 3D or Media command can't
+ * be the first command after a BLT, unless it's
+ * non-pipelined. Instead of trying to track it and emit a
+ * command at the right time, we just emit a dummy
+ * non-pipelined 3D instruction after each blit.
+ */
+
+ if (new_mode == I915_EXEC_BLT) {
+ OUT_BATCH(MI_FLUSH |
+ MI_STATE_INSTRUCTION_CACHE_FLUSH |
+ MI_INHIBIT_RENDER_CACHE_FLUSH);
+ } else {
+ OUT_BATCH(CMD_POLY_STIPPLE_OFFSET << 16);
+ OUT_BATCH(0);
+ }
+}
+
+static void
+gen4_context_switch(intel_screen_private *intel,
+ int new_mode)
+{
+ if (new_mode == I915_EXEC_BLT) {
+ OUT_BATCH(MI_FLUSH |
+ MI_STATE_INSTRUCTION_CACHE_FLUSH |
+ MI_INHIBIT_RENDER_CACHE_FLUSH);
+ }
+}
+
+Bool
+intel_get_aperture_space(ScrnInfoPtr scrn, drm_intel_bo ** bo_table,
+ int num_bos)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (intel->batch_bo == NULL) {
+ intel_debug_fallback(scrn, "VT inactive\n");
+ return FALSE;
+ }
+
+ bo_table[0] = intel->batch_bo;
+ if (drm_intel_bufmgr_check_aperture_space(bo_table, num_bos) != 0) {
+ intel_batch_submit(scrn);
+ bo_table[0] = intel->batch_bo;
+ if (drm_intel_bufmgr_check_aperture_space(bo_table, num_bos) !=
+ 0) {
+ intel_debug_fallback(scrn, "Couldn't get aperture "
+ "space for BOs\n");
+ return FALSE;
+ }
+ }
+ return TRUE;
+}
+
+static unsigned int
+intel_uxa_pixmap_compute_size(PixmapPtr pixmap,
+ int w, int h,
+ uint32_t *tiling,
+ int *stride,
+ unsigned usage)
+{
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int pitch, size;
+
+ if (*tiling != I915_TILING_NONE) {
+ /* First check whether tiling is necessary. */
+ pitch = (w * pixmap->drawable.bitsPerPixel + 7) / 8;
+ pitch = ALIGN(pitch, 64);
+ size = pitch * ALIGN (h, 2);
+ if (INTEL_INFO(intel)->gen < 40) {
+ /* Gen 2/3 has a maximum stride for tiling of
+ * 8192 bytes.
+ */
+ if (pitch > KB(8))
+ *tiling = I915_TILING_NONE;
+
+ /* Narrower than half a tile? */
+ if (pitch < 256)
+ *tiling = I915_TILING_NONE;
+
+ /* Older hardware requires fences to be pot size
+ * aligned with a minimum of 1 MiB, so causes
+ * massive overallocation for small textures.
+ */
+ if (size < 1024*1024/2 && !intel->has_relaxed_fencing)
+ *tiling = I915_TILING_NONE;
+ } else if (!(usage & INTEL_CREATE_PIXMAP_DRI2) && size <= 4096) {
+ /* Disable tiling beneath a page size, we will not see
+ * any benefit from reducing TLB misses and instead
+ * just incur extra cost when we require a fence.
+ */
+ *tiling = I915_TILING_NONE;
+ }
+ }
+
+ pitch = (w * pixmap->drawable.bitsPerPixel + 7) / 8;
+ if (!(usage & INTEL_CREATE_PIXMAP_DRI2) && pitch <= 256)
+ *tiling = I915_TILING_NONE;
+
+ if (*tiling != I915_TILING_NONE) {
+ int aligned_h, tile_height;
+
+ if (IS_GEN2(intel))
+ tile_height = 16;
+ else if (*tiling == I915_TILING_X)
+ tile_height = 8;
+ else
+ tile_height = 32;
+ aligned_h = ALIGN(h, tile_height);
+
+ *stride = intel_get_fence_pitch(intel,
+ ALIGN(pitch, 512),
+ *tiling);
+
+ /* Round the object up to the size of the fence it will live in
+ * if necessary. We could potentially make the kernel allocate
+ * a larger aperture space and just bind the subset of pages in,
+ * but this is easier and also keeps us out of trouble (as much)
+ * with drm_intel_bufmgr_check_aperture().
+ */
+ size = intel_get_fence_size(intel, *stride * aligned_h);
+
+ if (size > intel->max_tiling_size)
+ *tiling = I915_TILING_NONE;
+ }
+
+ if (*tiling == I915_TILING_NONE) {
+ /* Round the height up so that the GPU's access to a 2x2 aligned
+ * subspan doesn't address an invalid page offset beyond the
+ * end of the GTT.
+ */
+ *stride = ALIGN(pitch, 64);
+ size = *stride * ALIGN(h, 2);
+ }
+
+ return size;
+}
+
+static Bool
+intel_uxa_check_solid(DrawablePtr drawable, int alu, Pixel planemask)
+{
+ ScrnInfoPtr scrn = xf86Screens[drawable->pScreen->myNum];
+
+ if (!UXA_PM_IS_SOLID(drawable, planemask)) {
+ intel_debug_fallback(scrn, "planemask is not solid\n");
+ return FALSE;
+ }
+
+ switch (drawable->bitsPerPixel) {
+ case 8:
+ case 16:
+ case 32:
+ break;
+ default:
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+/**
+ * Sets up hardware state for a series of solid fills.
+ */
+static Bool
+intel_uxa_prepare_solid(PixmapPtr pixmap, int alu, Pixel planemask, Pixel fg)
+{
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *bo_table[] = {
+ NULL, /* batch_bo */
+ intel_get_pixmap_bo(pixmap),
+ };
+
+ if (!intel_check_pitch_2d(pixmap))
+ return FALSE;
+
+ if (!intel_get_aperture_space(scrn, bo_table, ARRAY_SIZE(bo_table)))
+ return FALSE;
+
+ intel->BR[13] = (I830PatternROP[alu] & 0xff) << 16;
+ switch (pixmap->drawable.bitsPerPixel) {
+ case 8:
+ break;
+ case 16:
+ /* RGB565 */
+ intel->BR[13] |= (1 << 24);
+ break;
+ case 32:
+ /* RGB8888 */
+ intel->BR[13] |= ((1 << 24) | (1 << 25));
+ break;
+ }
+ intel->BR[16] = fg;
+
+ return TRUE;
+}
+
+static void intel_uxa_solid(PixmapPtr pixmap, int x1, int y1, int x2, int y2)
+{
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ unsigned long pitch;
+ uint32_t cmd;
+
+ if (x1 < 0)
+ x1 = 0;
+ if (y1 < 0)
+ y1 = 0;
+ if (x2 > pixmap->drawable.width)
+ x2 = pixmap->drawable.width;
+ if (y2 > pixmap->drawable.height)
+ y2 = pixmap->drawable.height;
+
+ if (x2 <= x1 || y2 <= y1)
+ return;
+
+ pitch = intel_pixmap_pitch(pixmap);
+
+ {
+ BEGIN_BATCH_BLT(6);
+
+ cmd = XY_COLOR_BLT_CMD;
+
+ if (pixmap->drawable.bitsPerPixel == 32)
+ cmd |=
+ XY_COLOR_BLT_WRITE_ALPHA | XY_COLOR_BLT_WRITE_RGB;
+
+ if (INTEL_INFO(intel)->gen >= 40 && intel_pixmap_tiled(pixmap)) {
+ assert((pitch % 512) == 0);
+ pitch >>= 2;
+ cmd |= XY_COLOR_BLT_TILED;
+ }
+
+ OUT_BATCH(cmd);
+
+ OUT_BATCH(intel->BR[13] | pitch);
+ OUT_BATCH((y1 << 16) | (x1 & 0xffff));
+ OUT_BATCH((y2 << 16) | (x2 & 0xffff));
+ OUT_RELOC_PIXMAP_FENCED(pixmap, I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER, 0);
+ OUT_BATCH(intel->BR[16]);
+ ADVANCE_BATCH();
+ }
+}
+
+static void intel_uxa_done_solid(PixmapPtr pixmap)
+{
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+
+ intel_debug_flush(scrn);
+}
+
+/**
+ * TODO:
+ * - support planemask using FULL_BLT_CMD?
+ */
+static Bool
+intel_uxa_check_copy(PixmapPtr source, PixmapPtr dest,
+ int alu, Pixel planemask)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+
+ if (!UXA_PM_IS_SOLID(&source->drawable, planemask)) {
+ intel_debug_fallback(scrn, "planemask is not solid");
+ return FALSE;
+ }
+
+ if (source->drawable.bitsPerPixel != dest->drawable.bitsPerPixel) {
+ intel_debug_fallback(scrn, "mixed bpp copies unsupported\n");
+ return FALSE;
+ }
+ switch (source->drawable.bitsPerPixel) {
+ case 8:
+ case 16:
+ case 32:
+ break;
+ default:
+ return FALSE;
+ }
+
+ if (!intel_check_pitch_2d(source))
+ return FALSE;
+ if (!intel_check_pitch_2d(dest))
+ return FALSE;
+
+ return TRUE;
+}
+
+static Bool
+intel_uxa_prepare_copy(PixmapPtr source, PixmapPtr dest, int xdir,
+ int ydir, int alu, Pixel planemask)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ drm_intel_bo *bo_table[] = {
+ NULL, /* batch_bo */
+ intel_get_pixmap_bo(source),
+ intel_get_pixmap_bo(dest),
+ };
+
+ if (!intel_get_aperture_space(scrn, bo_table, ARRAY_SIZE(bo_table)))
+ return FALSE;
+
+ intel->render_source = source;
+
+ intel->BR[13] = I830CopyROP[alu] << 16;
+ switch (source->drawable.bitsPerPixel) {
+ case 8:
+ break;
+ case 16:
+ intel->BR[13] |= (1 << 24);
+ break;
+ case 32:
+ intel->BR[13] |= ((1 << 25) | (1 << 24));
+ break;
+ }
+
+ return TRUE;
+}
+
+static void
+intel_uxa_copy(PixmapPtr dest, int src_x1, int src_y1, int dst_x1,
+ int dst_y1, int w, int h)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ uint32_t cmd;
+ int dst_x2, dst_y2, src_x2, src_y2;
+ unsigned int dst_pitch, src_pitch;
+
+ dst_x2 = dst_x1 + w;
+ dst_y2 = dst_y1 + h;
+
+ /* XXX Fixup extents as a lamentable workaround for missing
+ * source clipping in the upper layers.
+ */
+ if (dst_x1 < 0)
+ src_x1 -= dst_x1, dst_x1 = 0;
+ if (dst_y1 < 0)
+ src_y1 -= dst_y1, dst_y1 = 0;
+ if (dst_x2 > dest->drawable.width)
+ dst_x2 = dest->drawable.width;
+ if (dst_y2 > dest->drawable.height)
+ dst_y2 = dest->drawable.height;
+
+ src_x2 = src_x1 + (dst_x2 - dst_x1);
+ src_y2 = src_y1 + (dst_y2 - dst_y1);
+
+ if (src_x1 < 0)
+ dst_x1 -= src_x1, src_x1 = 0;
+ if (src_y1 < 0)
+ dst_y1 -= src_y1, src_y1 = 0;
+ if (src_x2 > intel->render_source->drawable.width)
+ dst_x2 -= src_x2 - intel->render_source->drawable.width;
+ if (src_y2 > intel->render_source->drawable.height)
+ dst_y2 -= src_y2 - intel->render_source->drawable.height;
+
+ if (dst_x2 <= dst_x1 || dst_y2 <= dst_y1)
+ return;
+
+ dst_pitch = intel_pixmap_pitch(dest);
+ src_pitch = intel_pixmap_pitch(intel->render_source);
+
+ {
+ BEGIN_BATCH_BLT(8);
+
+ cmd = XY_SRC_COPY_BLT_CMD;
+
+ if (dest->drawable.bitsPerPixel == 32)
+ cmd |=
+ XY_SRC_COPY_BLT_WRITE_ALPHA |
+ XY_SRC_COPY_BLT_WRITE_RGB;
+
+ if (INTEL_INFO(intel)->gen >= 40) {
+ if (intel_pixmap_tiled(dest)) {
+ assert((dst_pitch % 512) == 0);
+ dst_pitch >>= 2;
+ cmd |= XY_SRC_COPY_BLT_DST_TILED;
+ }
+
+ if (intel_pixmap_tiled(intel->render_source)) {
+ assert((src_pitch % 512) == 0);
+ src_pitch >>= 2;
+ cmd |= XY_SRC_COPY_BLT_SRC_TILED;
+ }
+ }
+
+ OUT_BATCH(cmd);
+
+ OUT_BATCH(intel->BR[13] | dst_pitch);
+ OUT_BATCH((dst_y1 << 16) | (dst_x1 & 0xffff));
+ OUT_BATCH((dst_y2 << 16) | (dst_x2 & 0xffff));
+ OUT_RELOC_PIXMAP_FENCED(dest,
+ I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER,
+ 0);
+ OUT_BATCH((src_y1 << 16) | (src_x1 & 0xffff));
+ OUT_BATCH(src_pitch);
+ OUT_RELOC_PIXMAP_FENCED(intel->render_source,
+ I915_GEM_DOMAIN_RENDER, 0,
+ 0);
+
+ ADVANCE_BATCH();
+ }
+}
+
+static void intel_uxa_done_copy(PixmapPtr dest)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+
+ intel_debug_flush(scrn);
+}
+
+/**
+ * Do any cleanup from the Composite operation.
+ *
+ * This is shared between i830 through i965.
+ */
+static void i830_done_composite(PixmapPtr dest)
+{
+ ScrnInfoPtr scrn = xf86Screens[dest->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (intel->vertex_flush)
+ intel->vertex_flush(intel);
+
+ intel_debug_flush(scrn);
+}
+
+#define xFixedToFloat(val) \
+ ((float)xFixedToInt(val) + ((float)xFixedFrac(val) / 65536.0))
+
+static Bool
+_intel_transform_point(PictTransformPtr transform,
+ float x, float y, float result[3])
+{
+ int j;
+
+ for (j = 0; j < 3; j++) {
+ result[j] = (xFixedToFloat(transform->matrix[j][0]) * x +
+ xFixedToFloat(transform->matrix[j][1]) * y +
+ xFixedToFloat(transform->matrix[j][2]));
+ }
+ if (!result[2])
+ return FALSE;
+ return TRUE;
+}
+
+/**
+ * Returns the floating-point coordinates transformed by the given transform.
+ *
+ * transform may be null.
+ */
+Bool
+intel_get_transformed_coordinates(int x, int y, PictTransformPtr transform,
+ float *x_out, float *y_out)
+{
+ if (transform == NULL) {
+ *x_out = x;
+ *y_out = y;
+ } else {
+ float result[3];
+
+ if (!_intel_transform_point(transform,
+ x, y,
+ result))
+ return FALSE;
+ *x_out = result[0] / result[2];
+ *y_out = result[1] / result[2];
+ }
+ return TRUE;
+}
+
+/**
+ * Returns the un-normalized floating-point coordinates transformed by the given transform.
+ *
+ * transform may be null.
+ */
+Bool
+intel_get_transformed_coordinates_3d(int x, int y, PictTransformPtr transform,
+ float *x_out, float *y_out, float *w_out)
+{
+ if (transform == NULL) {
+ *x_out = x;
+ *y_out = y;
+ *w_out = 1;
+ } else {
+ float result[3];
+
+ if (!_intel_transform_point(transform,
+ x, y,
+ result))
+ return FALSE;
+ *x_out = result[0];
+ *y_out = result[1];
+ *w_out = result[2];
+ }
+ return TRUE;
+}
+
+/**
+ * Returns whether the provided transform is affine.
+ *
+ * transform may be null.
+ */
+Bool intel_transform_is_affine(PictTransformPtr t)
+{
+ if (t == NULL)
+ return TRUE;
+ return t->matrix[2][0] == 0 && t->matrix[2][1] == 0;
+}
+
+dri_bo *intel_get_pixmap_bo(PixmapPtr pixmap)
+{
+ struct intel_pixmap *intel;
+
+ intel = intel_get_pixmap_private(pixmap);
+ if (intel == NULL)
+ return NULL;
+
+ return intel->bo;
+}
+
+void intel_set_pixmap_bo(PixmapPtr pixmap, dri_bo * bo)
+{
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct intel_pixmap *priv;
+
+ priv = intel_get_pixmap_private(pixmap);
+
+ if (priv == NULL && bo == NULL)
+ return;
+
+ if (priv != NULL) {
+ if (priv->bo == bo)
+ return;
+
+ priv->dst_bound = priv->src_bound = 0;
+ if (list_is_empty(&priv->batch)) {
+ dri_bo_unreference(priv->bo);
+ } else if (!drm_intel_bo_is_reusable(priv->bo)) {
+ dri_bo_unreference(priv->bo);
+ list_del(&priv->batch);
+ list_del(&priv->flush);
+ } else {
+ list_add(&priv->in_flight, &intel->in_flight);
+ priv = NULL;
+ }
+
+ if (intel->render_current_dest == pixmap)
+ intel->render_current_dest = NULL;
+ }
+
+ if (bo != NULL) {
+ uint32_t tiling;
+ uint32_t swizzle_mode;
+ int ret;
+
+ if (priv == NULL) {
+ priv = calloc(1, sizeof (struct intel_pixmap));
+ if (priv == NULL)
+ goto BAIL;
+
+ list_init(&priv->batch);
+ list_init(&priv->flush);
+ }
+
+ dri_bo_reference(bo);
+ priv->bo = bo;
+ priv->stride = intel_pixmap_pitch(pixmap);
+
+ ret = drm_intel_bo_get_tiling(bo, &tiling, &swizzle_mode);
+ if (ret != 0) {
+ FatalError("Couldn't get tiling on bo %p: %s\n",
+ bo, strerror(-ret));
+ }
+
+ priv->tiling = tiling;
+ priv->busy = -1;
+ priv->offscreen = 1;
+ } else {
+ if (priv != NULL) {
+ free(priv);
+ priv = NULL;
+ }
+ }
+
+ BAIL:
+ intel_set_pixmap_private(pixmap, priv);
+}
+
+static Bool intel_uxa_pixmap_is_offscreen(PixmapPtr pixmap)
+{
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+ return priv && priv->offscreen;
+}
+
+static Bool intel_uxa_prepare_access(PixmapPtr pixmap, uxa_access_t access)
+{
+ ScrnInfoPtr scrn = xf86Screens[pixmap->drawable.pScreen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+ dri_bo *bo = priv->bo;
+ int ret;
+
+ if (!list_is_empty(&priv->batch) &&
+ (access == UXA_ACCESS_RW || priv->batch_write))
+ intel_batch_submit(scrn);
+
+ if (priv->tiling || bo->size <= intel->max_gtt_map_size)
+ ret = drm_intel_gem_bo_map_gtt(bo);
+ else
+ ret = dri_bo_map(bo, access == UXA_ACCESS_RW);
+ if (ret) {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "%s: bo map failed: %s\n",
+ __FUNCTION__,
+ strerror(-ret));
+ return FALSE;
+ }
+
+ pixmap->devPrivate.ptr = bo->virtual;
+ priv->busy = 0;
+
+ return TRUE;
+}
+
+static Bool intel_uxa_pixmap_put_image(PixmapPtr pixmap,
+ char *src, int src_pitch,
+ int x, int y, int w, int h)
+{
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+ int stride = intel_pixmap_pitch(pixmap);
+ int cpp = pixmap->drawable.bitsPerPixel/8;
+ int ret = FALSE;
+
+ if (priv == NULL || priv->bo == NULL)
+ return FALSE;
+
+ if (priv->tiling == I915_TILING_NONE &&
+ (h == 1 || (src_pitch == stride && w == pixmap->drawable.width))) {
+ return drm_intel_bo_subdata(priv->bo, y*stride + x*cpp, stride*(h-1) + w*cpp, src) == 0;
+ } else if (drm_intel_gem_bo_map_gtt(priv->bo) == 0) {
+ char *dst = priv->bo->virtual;
+ int row_length = w * cpp;
+ int num_rows = h;
+ if (row_length == src_pitch && src_pitch == stride)
+ num_rows = 1, row_length *= h;
+ dst += y * stride + x * cpp;
+ do {
+ memcpy (dst, src, row_length);
+ src += src_pitch;
+ dst += stride;
+ } while (--num_rows);
+ drm_intel_gem_bo_unmap_gtt(priv->bo);
+ ret = TRUE;
+ }
+
+ return ret;
+}
+
+static Bool intel_uxa_put_image(PixmapPtr pixmap,
+ int x, int y,
+ int w, int h,
+ char *src, int src_pitch)
+{
+ struct intel_pixmap *priv;
+
+ priv = intel_get_pixmap_private(pixmap);
+ if (!intel_pixmap_is_busy(priv)) {
+ /* bo is not busy so can be replaced without a stall, upload in-place. */
+ return intel_uxa_pixmap_put_image(pixmap, src, src_pitch, x, y, w, h);
+ } else {
+ ScreenPtr screen = pixmap->drawable.pScreen;
+
+ if (!priv->pinned &&
+ x == 0 && y == 0 &&
+ w == pixmap->drawable.width &&
+ h == pixmap->drawable.height)
+ {
+ intel_screen_private *intel = intel_get_screen_private(xf86Screens[screen->myNum]);
+ uint32_t tiling = priv->tiling;
+ int size, stride;
+ dri_bo *bo;
+
+ /* Replace busy bo. */
+ size = intel_uxa_pixmap_compute_size (pixmap, w, h,
+ &tiling, &stride, 0);
+ if (size > intel->max_gtt_map_size)
+ return FALSE;
+
+ bo = drm_intel_bo_alloc(intel->bufmgr, "pixmap", size, 0);
+ if (bo == NULL)
+ return FALSE;
+
+ if (tiling != I915_TILING_NONE)
+ drm_intel_bo_set_tiling(bo, &tiling, stride);
+ priv->stride = stride;
+ priv->tiling = tiling;
+
+ screen->ModifyPixmapHeader(pixmap,
+ w, h,
+ 0, 0,
+ stride, NULL);
+ intel_set_pixmap_bo(pixmap, bo);
+ dri_bo_unreference(bo);
+
+ return intel_uxa_pixmap_put_image(pixmap, src, src_pitch, 0, 0, w, h);
+ }
+ else
+ {
+ PixmapPtr scratch;
+ Bool ret;
+
+ /* Upload to a linear buffer and queue a blit. */
+ scratch = (*screen->CreatePixmap)(screen, w, h,
+ pixmap->drawable.depth,
+ UXA_CREATE_PIXMAP_FOR_MAP);
+ if (!scratch)
+ return FALSE;
+
+ if (!intel_uxa_pixmap_is_offscreen(scratch)) {
+ screen->DestroyPixmap(scratch);
+ return FALSE;
+ }
+
+ ret = intel_uxa_pixmap_put_image(scratch, src, src_pitch, 0, 0, w, h);
+ if (ret) {
+ GCPtr gc = GetScratchGC(pixmap->drawable.depth, screen);
+ if (gc) {
+ ValidateGC(&pixmap->drawable, gc);
+
+ (*gc->ops->CopyArea)(&scratch->drawable,
+ &pixmap->drawable,
+ gc, 0, 0, w, h, x, y);
+
+ FreeScratchGC(gc);
+ } else
+ ret = FALSE;
+ }
+
+ (*screen->DestroyPixmap)(scratch);
+ return ret;
+ }
+ }
+}
+
+static Bool intel_uxa_pixmap_get_image(PixmapPtr pixmap,
+ int x, int y, int w, int h,
+ char *dst, int dst_pitch)
+{
+ struct intel_pixmap *priv = intel_get_pixmap_private(pixmap);
+ int stride = intel_pixmap_pitch(pixmap);
+ int cpp = pixmap->drawable.bitsPerPixel/8;
+
+ /* assert(priv->tiling == I915_TILING_NONE); */
+ if (h == 1 || (dst_pitch == stride && w == pixmap->drawable.width)) {
+ return drm_intel_bo_get_subdata(priv->bo, y*stride + x*cpp, (h-1)*stride + w*cpp, dst) == 0;
+ } else {
+ char *src;
+
+ if (drm_intel_gem_bo_map_gtt(priv->bo))
+ return FALSE;
+
+ src = (char *) priv->bo->virtual + y * stride + x * cpp;
+ w *= cpp;
+ do {
+ memcpy(dst, src, w);
+ src += stride;
+ dst += dst_pitch;
+ } while (--h);
+
+ drm_intel_gem_bo_unmap_gtt(priv->bo);
+
+ return TRUE;
+ }
+}
+
+static Bool intel_uxa_get_image(PixmapPtr pixmap,
+ int x, int y,
+ int w, int h,
+ char *dst, int dst_pitch)
+{
+ struct intel_pixmap *priv;
+ PixmapPtr scratch = NULL;
+ Bool ret;
+
+ /* The presumption is that we wish to keep the target hot, so
+ * copy to a new bo and move that to the CPU in preference to
+ * causing ping-pong of the original.
+ *
+ * Also the gpu is much faster at detiling.
+ */
+
+ priv = intel_get_pixmap_private(pixmap);
+ if (intel_pixmap_is_busy(priv) || priv->tiling != I915_TILING_NONE) {
+ ScreenPtr screen = pixmap->drawable.pScreen;
+ GCPtr gc;
+
+ /* Copy to a linear buffer and pull. */
+ scratch = screen->CreatePixmap(screen, w, h,
+ pixmap->drawable.depth,
+ INTEL_CREATE_PIXMAP_TILING_NONE);
+ if (!scratch)
+ return FALSE;
+
+ if (!intel_uxa_pixmap_is_offscreen(scratch)) {
+ screen->DestroyPixmap(scratch);
+ return FALSE;
+ }
+
+ gc = GetScratchGC(pixmap->drawable.depth, screen);
+ if (!gc) {
+ screen->DestroyPixmap(scratch);
+ return FALSE;
+ }
+
+ ValidateGC(&pixmap->drawable, gc);
+
+ gc->ops->CopyArea(&pixmap->drawable,
+ &scratch->drawable,
+ gc, x, y, w, h, 0, 0);
+
+ FreeScratchGC(gc);
+
+ intel_batch_submit(xf86Screens[screen->myNum]);
+
+ x = y = 0;
+ pixmap = scratch;
+ }
+
+ ret = intel_uxa_pixmap_get_image(pixmap, x, y, w, h, dst, dst_pitch);
+
+ if (scratch)
+ scratch->drawable.pScreen->DestroyPixmap(scratch);
+
+ return ret;
+}
+
+static void intel_flush_rendering(intel_screen_private *intel)
+{
+ if (intel->needs_flush == 0)
+ return;
+
+ if (intel->has_kernel_flush) {
+ intel_batch_submit(intel->scrn);
+ drm_intel_bo_busy(intel->front_buffer);
+ } else {
+ intel_batch_emit_flush(intel->scrn);
+ intel_batch_submit(intel->scrn);
+ }
+
+ intel->needs_flush = 0;
+}
+
+void intel_uxa_block_handler(intel_screen_private *intel)
+{
+ if (intel->shadow_damage &&
+ pixman_region_not_empty(DamageRegion(intel->shadow_damage))) {
+ intel_shadow_blt(intel);
+ DamageEmpty(intel->shadow_damage);
+ }
+
+ /* Emit a flush of the rendering cache, or on the 965
+ * and beyond rendering results may not hit the
+ * framebuffer until significantly later.
+ */
+ intel_flush_rendering(intel);
+}
+
+static PixmapPtr
+intel_uxa_create_pixmap(ScreenPtr screen, int w, int h, int depth,
+ unsigned usage)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ PixmapPtr pixmap;
+
+ if (w > 32767 || h > 32767)
+ return NullPixmap;
+
+ if (depth == 1 || intel->force_fallback)
+ return fbCreatePixmap(screen, w, h, depth, usage);
+
+ if (intel->use_shadow && (usage & INTEL_CREATE_PIXMAP_DRI2) == 0)
+ return fbCreatePixmap(screen, w, h, depth, usage);
+
+ if (usage == CREATE_PIXMAP_USAGE_GLYPH_PICTURE && w <= 32 && h <= 32)
+ return fbCreatePixmap(screen, w, h, depth, usage);
+
+ pixmap = fbCreatePixmap(screen, 0, 0, depth, usage);
+
+ if (w && h) {
+ struct intel_pixmap *priv;
+ unsigned int size, tiling;
+ int stride;
+
+ /* Always attempt to tile, compute_size() will remove the
+ * tiling for pixmaps that are either too large or too small
+ * to be effectively tiled.
+ */
+ tiling = I915_TILING_X;
+ if (usage & INTEL_CREATE_PIXMAP_TILING_Y)
+ tiling = I915_TILING_Y;
+ if (usage == UXA_CREATE_PIXMAP_FOR_MAP || usage & INTEL_CREATE_PIXMAP_TILING_NONE)
+ tiling = I915_TILING_NONE;
+
+ /* if tiling is off force to none */
+ if (!intel->tiling)
+ tiling = I915_TILING_NONE;
+
+ if (tiling != I915_TILING_NONE && !(usage & INTEL_CREATE_PIXMAP_DRI2)) {
+ if (h <= 4)
+ tiling = I915_TILING_NONE;
+ if (h <= 16 && tiling == I915_TILING_Y)
+ tiling = I915_TILING_X;
+ }
+ size = intel_uxa_pixmap_compute_size(pixmap, w, h, &tiling, &stride, usage);
+
+ /* Fail very large allocations. Large BOs will tend to hit SW fallbacks
+ * frequently, and also will tend to fail to successfully map when doing
+ * SW fallbacks because we overcommit address space for BO access.
+ */
+ if (size > intel->max_bo_size || stride >= KB(32)) {
+ fbDestroyPixmap(pixmap);
+ return fbCreatePixmap(screen, w, h, depth, usage);
+ }
+
+ /* Perform a preliminary search for an in-flight bo */
+ if (usage != UXA_CREATE_PIXMAP_FOR_MAP) {
+ int aligned_h;
+
+ if (tiling == I915_TILING_X)
+ aligned_h = ALIGN(h, 8);
+ else if (tiling == I915_TILING_Y)
+ aligned_h = ALIGN(h, 32);
+ else
+ aligned_h = ALIGN(h, 2);
+
+ list_foreach_entry(priv, struct intel_pixmap,
+ &intel->in_flight,
+ in_flight) {
+ if (priv->tiling != tiling)
+ continue;
+
+ if (tiling == I915_TILING_NONE) {
+ if (priv->bo->size < size)
+ continue;
+
+ priv->stride = stride;
+ } else {
+ if (priv->stride < stride ||
+ priv->bo->size < priv->stride * aligned_h)
+ continue;
+
+ stride = priv->stride;
+ }
+
+ list_del(&priv->in_flight);
+ screen->ModifyPixmapHeader(pixmap, w, h, 0, 0, stride, NULL);
+ intel_set_pixmap_private(pixmap, priv);
+ return pixmap;
+ }
+ }
+
+ priv = calloc(1, sizeof (struct intel_pixmap));
+ if (priv == NULL) {
+ fbDestroyPixmap(pixmap);
+ return NullPixmap;
+ }
+
+ if (usage == UXA_CREATE_PIXMAP_FOR_MAP) {
+ priv->busy = 0;
+ priv->bo = drm_intel_bo_alloc(intel->bufmgr,
+ "pixmap", size, 0);
+ } else {
+ priv->busy = -1;
+ priv->bo = drm_intel_bo_alloc_for_render(intel->bufmgr,
+ "pixmap",
+ size, 0);
+ }
+ if (!priv->bo) {
+ free(priv);
+ fbDestroyPixmap(pixmap);
+ return NullPixmap;
+ }
+
+ if (tiling != I915_TILING_NONE)
+ drm_intel_bo_set_tiling(priv->bo, &tiling, stride);
+ priv->stride = stride;
+ priv->tiling = tiling;
+ priv->offscreen = 1;
+
+ screen->ModifyPixmapHeader(pixmap, w, h, 0, 0, stride, NULL);
+
+ list_init(&priv->batch);
+ list_init(&priv->flush);
+ intel_set_pixmap_private(pixmap, priv);
+ }
+
+ return pixmap;
+}
+
+static Bool intel_uxa_destroy_pixmap(PixmapPtr pixmap)
+{
+ if (pixmap->refcnt == 1)
+ intel_set_pixmap_bo(pixmap, NULL);
+ fbDestroyPixmap(pixmap);
+ return TRUE;
+}
+
+Bool intel_uxa_create_screen_resources(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ dri_bo *bo = intel->front_buffer;
+
+ if (!uxa_resources_init(screen))
+ return FALSE;
+
+ drm_intel_gem_bo_map_gtt(bo);
+
+ if (intel->use_shadow) {
+ intel_shadow_create(intel);
+ } else {
+ PixmapPtr pixmap = screen->GetScreenPixmap(screen);
+ intel_set_pixmap_bo(pixmap, bo);
+ intel_get_pixmap_private(pixmap)->pinned = 1;
+ screen->ModifyPixmapHeader(pixmap,
+ scrn->virtualX,
+ scrn->virtualY,
+ -1, -1,
+ intel->front_pitch,
+ NULL);
+ scrn->displayWidth = intel->front_pitch / intel->cpp;
+ }
+
+ return TRUE;
+}
+
+static void
+intel_limits_init(intel_screen_private *intel)
+{
+ /* Limits are described in the BLT engine chapter under Graphics Data Size
+ * Limitations, and the descriptions of SURFACE_STATE, 3DSTATE_BUFFER_INFO,
+ * 3DSTATE_DRAWING_RECTANGLE, 3DSTATE_MAP_INFO, and 3DSTATE_MAP_INFO.
+ *
+ * i845 through i965 limits 2D rendering to 65536 lines and pitch of 32768.
+ *
+ * i965 limits 3D surface to (2*element size)-aligned offset if un-tiled.
+ * i965 limits 3D surface to 4kB-aligned offset if tiled.
+ * i965 limits 3D surfaces to w,h of ?,8192.
+ * i965 limits 3D surface to pitch of 1B - 128kB.
+ * i965 limits 3D surface pitch alignment to 1 or 2 times the element size.
+ * i965 limits 3D surface pitch alignment to 512B if tiled.
+ * i965 limits 3D destination drawing rect to w,h of 8192,8192.
+ *
+ * i915 limits 3D textures to 4B-aligned offset if un-tiled.
+ * i915 limits 3D textures to ~4kB-aligned offset if tiled.
+ * i915 limits 3D textures to width,height of 2048,2048.
+ * i915 limits 3D textures to pitch of 16B - 8kB, in dwords.
+ * i915 limits 3D destination to ~4kB-aligned offset if tiled.
+ * i915 limits 3D destination to pitch of 16B - 8kB, in dwords, if un-tiled.
+ * i915 limits 3D destination to pitch 64B-aligned if used with depth.
+ * i915 limits 3D destination to pitch of 512B - 8kB, in tiles, if tiled.
+ * i915 limits 3D destination to POT aligned pitch if tiled.
+ * i915 limits 3D destination drawing rect to w,h of 2048,2048.
+ *
+ * i845 limits 3D textures to 4B-aligned offset if un-tiled.
+ * i845 limits 3D textures to ~4kB-aligned offset if tiled.
+ * i845 limits 3D textures to width,height of 2048,2048.
+ * i845 limits 3D textures to pitch of 4B - 8kB, in dwords.
+ * i845 limits 3D destination to 4B-aligned offset if un-tiled.
+ * i845 limits 3D destination to ~4kB-aligned offset if tiled.
+ * i845 limits 3D destination to pitch of 8B - 8kB, in dwords.
+ * i845 limits 3D destination drawing rect to w,h of 2048,2048.
+ *
+ * For the tiled issues, the only tiled buffer we draw to should be
+ * the front, which will have an appropriate pitch/offset already set up,
+ * so UXA doesn't need to worry.
+ */
+ if (INTEL_INFO(intel)->gen >= 40) {
+ intel->accel_pixmap_offset_alignment = 4 * 2;
+ intel->accel_max_x = 8192;
+ intel->accel_max_y = 8192;
+ } else {
+ intel->accel_pixmap_offset_alignment = 4;
+ intel->accel_max_x = 2048;
+ intel->accel_max_y = 2048;
+ }
+}
+
+Bool intel_uxa_init(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+#if HAS_DIXREGISTERPRIVATEKEY
+ if (!dixRegisterPrivateKey(&uxa_pixmap_index, PRIVATE_PIXMAP, 0))
+#else
+ if (!dixRequestPrivate(&uxa_pixmap_index, 0))
+#endif
+ return FALSE;
+
+ intel_limits_init(intel);
+
+ intel->uxa_driver = uxa_driver_alloc();
+ if (intel->uxa_driver == NULL)
+ return FALSE;
+
+ memset(intel->uxa_driver, 0, sizeof(*intel->uxa_driver));
+
+ intel->uxa_driver->uxa_major = 1;
+ intel->uxa_driver->uxa_minor = 0;
+
+ intel->render_current_dest = NULL;
+ intel->prim_offset = 0;
+ intel->vertex_count = 0;
+ intel->vertex_offset = 0;
+ intel->vertex_used = 0;
+ intel->floats_per_vertex = 0;
+ intel->last_floats_per_vertex = 0;
+ intel->vertex_bo = NULL;
+ intel->surface_used = 0;
+ intel->surface_reloc = 0;
+
+ /* Solid fill */
+ intel->uxa_driver->check_solid = intel_uxa_check_solid;
+ intel->uxa_driver->prepare_solid = intel_uxa_prepare_solid;
+ intel->uxa_driver->solid = intel_uxa_solid;
+ intel->uxa_driver->done_solid = intel_uxa_done_solid;
+
+ /* Copy */
+ intel->uxa_driver->check_copy = intel_uxa_check_copy;
+ intel->uxa_driver->prepare_copy = intel_uxa_prepare_copy;
+ intel->uxa_driver->copy = intel_uxa_copy;
+ intel->uxa_driver->done_copy = intel_uxa_done_copy;
+
+ /* Composite */
+ if (IS_GEN2(intel)) {
+ intel->uxa_driver->check_composite = i830_check_composite;
+ intel->uxa_driver->check_composite_target = i830_check_composite_target;
+ intel->uxa_driver->check_composite_texture = i830_check_composite_texture;
+ intel->uxa_driver->prepare_composite = i830_prepare_composite;
+ intel->uxa_driver->composite = i830_composite;
+ intel->uxa_driver->done_composite = i830_done_composite;
+
+ intel->vertex_flush = i830_vertex_flush;
+ intel->batch_commit_notify = i830_batch_commit_notify;
+ } else if (IS_GEN3(intel)) {
+ intel->uxa_driver->check_composite = i915_check_composite;
+ intel->uxa_driver->check_composite_target = i915_check_composite_target;
+ intel->uxa_driver->check_composite_texture = i915_check_composite_texture;
+ intel->uxa_driver->prepare_composite = i915_prepare_composite;
+ intel->uxa_driver->composite = i915_composite;
+ intel->uxa_driver->done_composite = i830_done_composite;
+
+ intel->vertex_flush = i915_vertex_flush;
+ intel->batch_commit_notify = i915_batch_commit_notify;
+ } else {
+ intel->uxa_driver->check_composite = i965_check_composite;
+ intel->uxa_driver->check_composite_texture = i965_check_composite_texture;
+ intel->uxa_driver->prepare_composite = i965_prepare_composite;
+ intel->uxa_driver->composite = i965_composite;
+ intel->uxa_driver->done_composite = i830_done_composite;
+
+ intel->vertex_flush = i965_vertex_flush;
+ intel->batch_flush = i965_batch_flush;
+ intel->batch_commit_notify = i965_batch_commit_notify;
+
+ if (IS_GEN4(intel)) {
+ intel->context_switch = gen4_context_switch;
+ } else if (IS_GEN5(intel)) {
+ intel->context_switch = gen5_context_switch;
+ } else {
+ intel->context_switch = gen6_context_switch;
+ }
+ }
+
+ /* PutImage */
+ intel->uxa_driver->put_image = intel_uxa_put_image;
+ intel->uxa_driver->get_image = intel_uxa_get_image;
+
+ intel->uxa_driver->prepare_access = intel_uxa_prepare_access;
+ intel->uxa_driver->pixmap_is_offscreen = intel_uxa_pixmap_is_offscreen;
+
+ screen->CreatePixmap = intel_uxa_create_pixmap;
+ screen->DestroyPixmap = intel_uxa_destroy_pixmap;
+
+ if (!uxa_driver_init(screen, intel->uxa_driver)) {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "UXA initialization failed\n");
+ free(intel->uxa_driver);
+ return FALSE;
+ }
+
+ uxa_set_fallback_debug(screen, intel->fallback_debug);
+ uxa_set_force_fallback(screen, intel->force_fallback);
+
+ return TRUE;
+}
diff --git a/src/intel_video.c b/src/intel_video.c
new file mode 100644
index 0000000..499614f
--- /dev/null
+++ b/src/intel_video.c
@@ -0,0 +1,1787 @@
+/***************************************************************************
+
+ Copyright 2000 Intel Corporation. All Rights Reserved.
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the
+ "Software"), to deal in the Software without restriction, including
+ without limitation the rights to use, copy, modify, merge, publish,
+ distribute, sub license, and/or sell copies of the Software, and to
+ permit persons to whom the Software is furnished to do so, subject to
+ the following conditions:
+
+ The above copyright notice and this permission notice (including the
+ next paragraph) shall be included in all copies or substantial portions
+ of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+ THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+ **************************************************************************/
+
+/*
+ * i830_video.c: i830/i845 Xv driver.
+ *
+ * Copyright © 2002 by Alan Hourihane and David Dawes
+ *
+ * Authors:
+ * Alan Hourihane <alanh@tungstengraphics.com>
+ * David Dawes <dawes@xfree86.org>
+ *
+ * Derived from i810 Xv driver:
+ *
+ * Authors of i810 code:
+ * Jonathan Bian <jonathan.bian@intel.com>
+ * Offscreen Images:
+ * Matt Sottek <matthew.j.sottek@intel.com>
+ */
+
+/*
+ * XXX Could support more formats.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <inttypes.h>
+#include <math.h>
+#include <string.h>
+#include <assert.h>
+#include <errno.h>
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "compiler.h"
+#include "xf86PciInfo.h"
+#include "xf86Pci.h"
+#include "xf86fbman.h"
+#include "regionstr.h"
+#include "randrstr.h"
+#include "windowstr.h"
+#include "damage.h"
+#include "intel.h"
+#include "intel_video.h"
+#include "i830_reg.h"
+#include "xf86xv.h"
+#include <X11/extensions/Xv.h>
+#include "dixstruct.h"
+#include "fourcc.h"
+
+#ifdef INTEL_XVMC
+#define _INTEL_XVMC_SERVER_
+#include "intel_hwmc.h"
+#endif
+
+#define OFF_DELAY 250 /* milliseconds */
+
+#define OFF_TIMER 0x01
+#define CLIENT_VIDEO_ON 0x02
+
+static XF86VideoAdaptorPtr I830SetupImageVideoOverlay(ScreenPtr);
+static XF86VideoAdaptorPtr I830SetupImageVideoTextured(ScreenPtr);
+static void I830StopVideo(ScrnInfoPtr, pointer, Bool);
+static int I830SetPortAttributeOverlay(ScrnInfoPtr, Atom, INT32, pointer);
+static int I830SetPortAttributeTextured(ScrnInfoPtr, Atom, INT32, pointer);
+static int I830GetPortAttribute(ScrnInfoPtr, Atom, INT32 *, pointer);
+static void I830QueryBestSize(ScrnInfoPtr, Bool,
+ short, short, short, short, unsigned int *,
+ unsigned int *, pointer);
+static int I830PutImageTextured(ScrnInfoPtr, short, short, short, short, short, short,
+ short, short, int, unsigned char *, short, short,
+ Bool, RegionPtr, pointer, DrawablePtr);
+static int I830PutImageOverlay(ScrnInfoPtr, short, short, short, short, short, short,
+ short, short, int, unsigned char *, short, short,
+ Bool, RegionPtr, pointer, DrawablePtr);
+static int I830QueryImageAttributes(ScrnInfoPtr, int, unsigned short *,
+ unsigned short *, int *, int *);
+
+#define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE)
+
+static Atom xvBrightness, xvContrast, xvSaturation, xvColorKey, xvPipe;
+static Atom xvGamma0, xvGamma1, xvGamma2, xvGamma3, xvGamma4, xvGamma5;
+static Atom xvSyncToVblank;
+
+/* Limits for the overlay/textured video source sizes. The documented hardware
+ * limits are 2048x2048 or better for overlay and both of our textured video
+ * implementations. Additionally, on the 830 and 845, larger sizes resulted in
+ * the card hanging, so we keep the limits lower there.
+ */
+#define IMAGE_MAX_WIDTH 2048
+#define IMAGE_MAX_HEIGHT 2048
+#define IMAGE_MAX_WIDTH_LEGACY 1024
+#define IMAGE_MAX_HEIGHT_LEGACY 1088
+
+/* overlay debugging printf function */
+#if 0
+#define OVERLAY_DEBUG ErrorF
+#else
+#define OVERLAY_DEBUG if (0) ErrorF
+#endif
+
+/* client libraries expect an encoding */
+static const XF86VideoEncodingRec DummyEncoding[1] = {
+ {
+ 0,
+ "XV_IMAGE",
+ IMAGE_MAX_WIDTH, IMAGE_MAX_HEIGHT,
+ {1, 1}
+ }
+};
+
+#define NUM_FORMATS 3
+
+static XF86VideoFormatRec Formats[NUM_FORMATS] = {
+ {15, TrueColor}, {16, TrueColor}, {24, TrueColor}
+};
+
+#define NUM_ATTRIBUTES 5
+static XF86AttributeRec Attributes[NUM_ATTRIBUTES] = {
+ {XvSettable | XvGettable, 0, (1 << 24) - 1, "XV_COLORKEY"},
+ {XvSettable | XvGettable, -128, 127, "XV_BRIGHTNESS"},
+ {XvSettable | XvGettable, 0, 255, "XV_CONTRAST"},
+ {XvSettable | XvGettable, 0, 1023, "XV_SATURATION"},
+ {XvSettable | XvGettable, -1, 1, "XV_PIPE"}
+};
+
+#define NUM_TEXTURED_ATTRIBUTES 3
+static XF86AttributeRec TexturedAttributes[NUM_TEXTURED_ATTRIBUTES] = {
+ {XvSettable | XvGettable, -128, 127, "XV_BRIGHTNESS"},
+ {XvSettable | XvGettable, 0, 255, "XV_CONTRAST"},
+ {XvSettable | XvGettable, -1, 1, "XV_SYNC_TO_VBLANK"},
+};
+
+#define GAMMA_ATTRIBUTES 6
+static XF86AttributeRec GammaAttributes[GAMMA_ATTRIBUTES] = {
+ {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA0"},
+ {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA1"},
+ {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA2"},
+ {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA3"},
+ {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA4"},
+ {XvSettable | XvGettable, 0, 0xffffff, "XV_GAMMA5"}
+};
+
+#ifdef INTEL_XVMC
+#define NUM_IMAGES 5
+#define XVMC_IMAGE 1
+#else
+#define NUM_IMAGES 4
+#define XVMC_IMAGE 0
+#endif
+
+static XF86ImageRec Images[NUM_IMAGES] = {
+ XVIMAGE_YUY2,
+ XVIMAGE_YV12,
+ XVIMAGE_I420,
+ XVIMAGE_UYVY,
+#ifdef INTEL_XVMC
+ {
+ /*
+ * Below, a dummy picture type that is used in XvPutImage only to do
+ * an overlay update. Introduced for the XvMC client lib.
+ * Defined to have a zero data size.
+ */
+ FOURCC_XVMC,
+ XvYUV,
+ LSBFirst,
+ {'X', 'V', 'M', 'C',
+ 0x00, 0x00, 0x00, 0x10, 0x80, 0x00, 0x00, 0xAA, 0x00,
+ 0x38, 0x9B, 0x71},
+ 12,
+ XvPlanar,
+ 3,
+ 0, 0, 0, 0,
+ 8, 8, 8,
+ 1, 2, 2,
+ 1, 2, 2,
+ {'Y', 'V', 'U',
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
+ XvTopToBottom},
+#endif
+};
+
+/* kernel modesetting overlay functions */
+static Bool intel_has_overlay(intel_screen_private *intel)
+{
+ struct drm_i915_getparam gp;
+ int has_overlay = 0;
+ int ret;
+
+ gp.param = I915_PARAM_HAS_OVERLAY;
+ gp.value = &has_overlay;
+ ret = drmCommandWriteRead(intel->drmSubFD, DRM_I915_GETPARAM, &gp, sizeof(gp));
+
+ return !! has_overlay;
+}
+
+static void intel_overlay_update_attrs(intel_screen_private *intel)
+{
+ intel_adaptor_private *adaptor_priv = intel_get_adaptor_private(intel);
+ struct drm_intel_overlay_attrs attrs;
+ int ret;
+
+ attrs.flags = I915_OVERLAY_UPDATE_ATTRS;
+ attrs.brightness = adaptor_priv->brightness;
+ attrs.contrast = adaptor_priv->contrast;
+ attrs.saturation = adaptor_priv->saturation;
+ attrs.color_key = adaptor_priv->colorKey;
+ attrs.gamma0 = adaptor_priv->gamma0;
+ attrs.gamma1 = adaptor_priv->gamma1;
+ attrs.gamma2 = adaptor_priv->gamma2;
+ attrs.gamma3 = adaptor_priv->gamma3;
+ attrs.gamma4 = adaptor_priv->gamma4;
+ attrs.gamma5 = adaptor_priv->gamma5;
+
+ ret = drmCommandWriteRead(intel->drmSubFD, DRM_I915_OVERLAY_ATTRS,
+ &attrs, sizeof(attrs));
+}
+
+static void intel_overlay_off(intel_screen_private *intel)
+{
+ struct drm_intel_overlay_put_image request;
+ int ret;
+
+ request.flags = 0;
+
+ ret = drmCommandWrite(intel->drmSubFD, DRM_I915_OVERLAY_PUT_IMAGE,
+ &request, sizeof(request));
+}
+
+static Bool
+intel_overlay_put_image(intel_screen_private *intel,
+ xf86CrtcPtr crtc,
+ int id, short width, short height,
+ int dstPitch, int dstPitch2,
+ BoxPtr dstBox, short src_w, short src_h, short drw_w,
+ short drw_h)
+{
+ intel_adaptor_private *adaptor_priv = intel_get_adaptor_private(intel);
+ struct drm_intel_overlay_put_image request;
+ int ret;
+ int planar = is_planar_fourcc(id);
+ float scale;
+ dri_bo *tmp;
+
+ request.flags = I915_OVERLAY_ENABLE;
+
+ request.bo_handle = adaptor_priv->buf->handle;
+ if (planar) {
+ request.stride_Y = dstPitch2;
+ request.stride_UV = dstPitch;
+ } else {
+ request.stride_Y = dstPitch;
+ request.stride_UV = 0;
+ }
+ request.offset_Y = adaptor_priv->YBufOffset;
+ request.offset_U = adaptor_priv->UBufOffset;
+ request.offset_V = adaptor_priv->VBufOffset;
+ OVERLAY_DEBUG("off_Y: %i, off_U: %i, off_V: %i\n", request.offset_Y,
+ request.offset_U, request.offset_V);
+
+ request.crtc_id = intel_crtc_id(crtc);
+ request.dst_x = dstBox->x1;
+ request.dst_y = dstBox->y1;
+ request.dst_width = dstBox->x2 - dstBox->x1;
+ request.dst_height = dstBox->y2 - dstBox->y1;
+
+ request.src_width = width;
+ request.src_height = height;
+ /* adjust src dimensions */
+ if (request.dst_height > 1) {
+ scale = ((float)request.dst_height - 1) / ((float)drw_h - 1);
+ request.src_scan_height = src_h * scale;
+ } else
+ request.src_scan_height = 1;
+
+ if (request.dst_width > 1) {
+ scale = ((float)request.dst_width - 1) / ((float)drw_w - 1);
+ request.src_scan_width = src_w * scale;
+ } else
+ request.src_scan_width = 1;
+
+ if (planar) {
+ request.flags |= I915_OVERLAY_YUV_PLANAR | I915_OVERLAY_YUV420;
+ } else {
+ request.flags |= I915_OVERLAY_YUV_PACKED | I915_OVERLAY_YUV422;
+ if (id == FOURCC_UYVY)
+ request.flags |= I915_OVERLAY_Y_SWAP;
+ }
+
+ ret = drmCommandWrite(intel->drmSubFD, DRM_I915_OVERLAY_PUT_IMAGE,
+ &request, sizeof(request));
+ if (ret)
+ return FALSE;
+
+ if (!adaptor_priv->reusable) {
+ drm_intel_bo_unreference(adaptor_priv->buf);
+ adaptor_priv->buf = NULL;
+ adaptor_priv->reusable = TRUE;
+ }
+
+ tmp = adaptor_priv->old_buf[1];
+ adaptor_priv->old_buf[1] = adaptor_priv->old_buf[0];
+ adaptor_priv->old_buf[0] = adaptor_priv->buf;
+ adaptor_priv->buf = tmp;
+
+ return TRUE;
+}
+
+void I830InitVideo(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ XF86VideoAdaptorPtr *adaptors, *newAdaptors = NULL;
+ XF86VideoAdaptorPtr overlayAdaptor = NULL, texturedAdaptor = NULL;
+ int num_adaptors;
+
+ num_adaptors = xf86XVListGenericAdaptors(scrn, &adaptors);
+ /* Give our adaptor list enough space for the overlay and/or texture video
+ * adaptors.
+ */
+ newAdaptors =
+ malloc((num_adaptors + 2) * sizeof(XF86VideoAdaptorPtr *));
+ if (newAdaptors == NULL)
+ return;
+
+ memcpy(newAdaptors, adaptors,
+ num_adaptors * sizeof(XF86VideoAdaptorPtr));
+ adaptors = newAdaptors;
+
+ /* Add the adaptors supported by our hardware. First, set up the atoms
+ * that will be used by both output adaptors.
+ */
+ xvBrightness = MAKE_ATOM("XV_BRIGHTNESS");
+ xvContrast = MAKE_ATOM("XV_CONTRAST");
+
+ /* Set up textured video if we can do it at this depth and we are on
+ * supported hardware.
+ */
+ if (scrn->bitsPerPixel >= 16 &&
+ INTEL_INFO(intel)->gen >= 30 &&
+ !intel->use_shadow) {
+ texturedAdaptor = I830SetupImageVideoTextured(screen);
+ if (texturedAdaptor != NULL) {
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Set up textured video\n");
+ } else {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Failed to set up textured video\n");
+ }
+ }
+
+ /* Set up overlay video if it is available */
+ intel->use_overlay = intel_has_overlay(intel);
+ if (intel->use_overlay) {
+ overlayAdaptor = I830SetupImageVideoOverlay(screen);
+ if (overlayAdaptor != NULL) {
+ xf86DrvMsg(scrn->scrnIndex, X_INFO,
+ "Set up overlay video\n");
+ } else {
+ xf86DrvMsg(scrn->scrnIndex, X_ERROR,
+ "Failed to set up overlay video\n");
+ }
+ }
+
+ if (overlayAdaptor && intel->XvPreferOverlay)
+ adaptors[num_adaptors++] = overlayAdaptor;
+
+ if (texturedAdaptor)
+ adaptors[num_adaptors++] = texturedAdaptor;
+
+ if (overlayAdaptor && !intel->XvPreferOverlay)
+ adaptors[num_adaptors++] = overlayAdaptor;
+
+ if (num_adaptors) {
+ xf86XVScreenInit(screen, adaptors, num_adaptors);
+ } else {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "Disabling Xv because no adaptors could be initialized.\n");
+ intel->XvEnabled = FALSE;
+ }
+
+#ifdef INTEL_XVMC
+ if (texturedAdaptor)
+ intel_xvmc_adaptor_init(screen);
+#endif
+ free(adaptors);
+}
+
+static XF86VideoAdaptorPtr I830SetupImageVideoOverlay(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ XF86VideoAdaptorPtr adapt;
+ intel_adaptor_private *adaptor_priv;
+ XF86AttributePtr att;
+
+ OVERLAY_DEBUG("I830SetupImageVideoOverlay\n");
+
+ if (!(adapt = calloc(1,
+ sizeof(XF86VideoAdaptorRec) +
+ sizeof(intel_adaptor_private) +
+ sizeof(DevUnion))))
+ return NULL;
+
+ adapt->type = XvWindowMask | XvInputMask | XvImageMask;
+ adapt->flags = VIDEO_OVERLAID_IMAGES /*| VIDEO_CLIP_TO_VIEWPORT */ ;
+ adapt->name = "Intel(R) Video Overlay";
+ adapt->nEncodings = 1;
+ adapt->pEncodings = xnfalloc(sizeof(DummyEncoding));
+ memcpy(adapt->pEncodings, DummyEncoding, sizeof(DummyEncoding));
+ if (IS_845G(intel) || IS_I830(intel)) {
+ adapt->pEncodings->width = IMAGE_MAX_WIDTH_LEGACY;
+ adapt->pEncodings->height = IMAGE_MAX_HEIGHT_LEGACY;
+ }
+ adapt->nFormats = NUM_FORMATS;
+ adapt->pFormats = Formats;
+ adapt->nPorts = 1;
+ adapt->pPortPrivates = (DevUnion *) (&adapt[1]);
+
+ adaptor_priv = (intel_adaptor_private *)&adapt->pPortPrivates[1];
+
+ adapt->pPortPrivates[0].ptr = (pointer) (adaptor_priv);
+ adapt->nAttributes = NUM_ATTRIBUTES;
+ if (INTEL_INFO(intel)->gen >= 30)
+ adapt->nAttributes += GAMMA_ATTRIBUTES; /* has gamma */
+ adapt->pAttributes =
+ xnfalloc(sizeof(XF86AttributeRec) * adapt->nAttributes);
+ /* Now copy the attributes */
+ att = adapt->pAttributes;
+ memcpy((char *)att, (char *)Attributes,
+ sizeof(XF86AttributeRec) * NUM_ATTRIBUTES);
+ att += NUM_ATTRIBUTES;
+ if (INTEL_INFO(intel)->gen >= 30) {
+ memcpy((char *)att, (char *)GammaAttributes,
+ sizeof(XF86AttributeRec) * GAMMA_ATTRIBUTES);
+ att += GAMMA_ATTRIBUTES;
+ }
+ adapt->nImages = NUM_IMAGES - XVMC_IMAGE;
+
+ adapt->pImages = Images;
+ adapt->PutVideo = NULL;
+ adapt->PutStill = NULL;
+ adapt->GetVideo = NULL;
+ adapt->GetStill = NULL;
+ adapt->StopVideo = I830StopVideo;
+ adapt->SetPortAttribute = I830SetPortAttributeOverlay;
+ adapt->GetPortAttribute = I830GetPortAttribute;
+ adapt->QueryBestSize = I830QueryBestSize;
+ adapt->PutImage = I830PutImageOverlay;
+ adapt->QueryImageAttributes = I830QueryImageAttributes;
+
+ adaptor_priv->textured = FALSE;
+ adaptor_priv->colorKey = intel->colorKey & ((1 << scrn->depth) - 1);
+ adaptor_priv->videoStatus = 0;
+ adaptor_priv->brightness = -19; /* (255/219) * -16 */
+ adaptor_priv->contrast = 75; /* 255/219 * 64 */
+ adaptor_priv->saturation = 146; /* 128/112 * 128 */
+ adaptor_priv->desired_crtc = NULL;
+ adaptor_priv->buf = NULL;
+ adaptor_priv->old_buf[0] = NULL;
+ adaptor_priv->old_buf[1] = NULL;
+ adaptor_priv->gamma5 = 0xc0c0c0;
+ adaptor_priv->gamma4 = 0x808080;
+ adaptor_priv->gamma3 = 0x404040;
+ adaptor_priv->gamma2 = 0x202020;
+ adaptor_priv->gamma1 = 0x101010;
+ adaptor_priv->gamma0 = 0x080808;
+
+ adaptor_priv->rotation = RR_Rotate_0;
+
+ /* gotta uninit this someplace */
+ REGION_NULL(screen, &adaptor_priv->clip);
+
+ intel->adaptor = adapt;
+
+ xvColorKey = MAKE_ATOM("XV_COLORKEY");
+ xvBrightness = MAKE_ATOM("XV_BRIGHTNESS");
+ xvContrast = MAKE_ATOM("XV_CONTRAST");
+ xvSaturation = MAKE_ATOM("XV_SATURATION");
+
+ /* Allow the pipe to be switched from pipe A to B when in clone mode */
+ xvPipe = MAKE_ATOM("XV_PIPE");
+
+ if (INTEL_INFO(intel)->gen >= 30) {
+ xvGamma0 = MAKE_ATOM("XV_GAMMA0");
+ xvGamma1 = MAKE_ATOM("XV_GAMMA1");
+ xvGamma2 = MAKE_ATOM("XV_GAMMA2");
+ xvGamma3 = MAKE_ATOM("XV_GAMMA3");
+ xvGamma4 = MAKE_ATOM("XV_GAMMA4");
+ xvGamma5 = MAKE_ATOM("XV_GAMMA5");
+ }
+
+ intel_overlay_update_attrs(intel);
+
+ return adapt;
+}
+
+static XF86VideoAdaptorPtr I830SetupImageVideoTextured(ScreenPtr screen)
+{
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ XF86VideoAdaptorPtr adapt;
+ XF86AttributePtr attrs;
+ intel_adaptor_private *adaptor_privs;
+ DevUnion *devUnions;
+ int nports = 16, i;
+ int nAttributes;
+
+ OVERLAY_DEBUG("I830SetupImageVideoOverlay\n");
+
+ nAttributes = NUM_TEXTURED_ATTRIBUTES;
+
+ adapt = calloc(1, sizeof(XF86VideoAdaptorRec));
+ adaptor_privs = calloc(nports, sizeof(intel_adaptor_private));
+ devUnions = calloc(nports, sizeof(DevUnion));
+ attrs = calloc(nAttributes, sizeof(XF86AttributeRec));
+ if (adapt == NULL || adaptor_privs == NULL || devUnions == NULL ||
+ attrs == NULL) {
+ free(adapt);
+ free(adaptor_privs);
+ free(devUnions);
+ free(attrs);
+ return NULL;
+ }
+
+ adapt->type = XvWindowMask | XvInputMask | XvImageMask;
+ adapt->flags = 0;
+ adapt->name = "Intel(R) Textured Video";
+ adapt->nEncodings = 1;
+ adapt->pEncodings = xnfalloc(sizeof(DummyEncoding));
+ memcpy(adapt->pEncodings, DummyEncoding, sizeof(DummyEncoding));
+ adapt->nFormats = NUM_FORMATS;
+ adapt->pFormats = Formats;
+ adapt->nPorts = nports;
+ adapt->pPortPrivates = devUnions;
+ adapt->nAttributes = nAttributes;
+ adapt->pAttributes = attrs;
+ memcpy(attrs, TexturedAttributes,
+ nAttributes * sizeof(XF86AttributeRec));
+ if (IS_I915G(intel) || IS_I915GM(intel))
+ adapt->nImages = NUM_IMAGES - XVMC_IMAGE;
+ else
+ adapt->nImages = NUM_IMAGES;
+
+ adapt->pImages = Images;
+ adapt->PutVideo = NULL;
+ adapt->PutStill = NULL;
+ adapt->GetVideo = NULL;
+ adapt->GetStill = NULL;
+ adapt->StopVideo = I830StopVideo;
+ adapt->SetPortAttribute = I830SetPortAttributeTextured;
+ adapt->GetPortAttribute = I830GetPortAttribute;
+ adapt->QueryBestSize = I830QueryBestSize;
+ adapt->PutImage = I830PutImageTextured;
+ adapt->QueryImageAttributes = I830QueryImageAttributes;
+
+ for (i = 0; i < nports; i++) {
+ intel_adaptor_private *adaptor_priv = &adaptor_privs[i];
+
+ adaptor_priv->textured = TRUE;
+ adaptor_priv->videoStatus = 0;
+ adaptor_priv->buf = NULL;
+ adaptor_priv->old_buf[0] = NULL;
+ adaptor_priv->old_buf[1] = NULL;
+
+ adaptor_priv->rotation = RR_Rotate_0;
+ adaptor_priv->SyncToVblank = 1;
+
+ /* gotta uninit this someplace, XXX: shouldn't be necessary for textured */
+ REGION_NULL(screen, &adaptor_priv->clip);
+
+ adapt->pPortPrivates[i].ptr = (pointer) (adaptor_priv);
+ }
+
+ xvSyncToVblank = MAKE_ATOM("XV_SYNC_TO_VBLANK");
+
+ return adapt;
+}
+
+static void intel_free_video_buffers(intel_adaptor_private *adaptor_priv)
+{
+ int i;
+
+ for (i = 0; i < 2; i++) {
+ if (adaptor_priv->old_buf[i]) {
+ drm_intel_bo_disable_reuse(adaptor_priv->old_buf[i]);
+ drm_intel_bo_unreference(adaptor_priv->old_buf[i]);
+ adaptor_priv->old_buf[i] = NULL;
+ }
+ }
+
+ if (adaptor_priv->buf) {
+ drm_intel_bo_unreference(adaptor_priv->buf);
+ adaptor_priv->buf = NULL;
+ }
+}
+
+static void I830StopVideo(ScrnInfoPtr scrn, pointer data, Bool shutdown)
+{
+ intel_adaptor_private *adaptor_priv = (intel_adaptor_private *) data;
+
+ if (adaptor_priv->textured)
+ return;
+
+ OVERLAY_DEBUG("I830StopVideo\n");
+
+ REGION_EMPTY(scrn->pScreen, &adaptor_priv->clip);
+
+ if (shutdown) {
+ if (adaptor_priv->videoStatus & CLIENT_VIDEO_ON)
+ intel_overlay_off(intel_get_screen_private(scrn));
+
+ intel_free_video_buffers(adaptor_priv);
+ adaptor_priv->videoStatus = 0;
+ } else {
+ if (adaptor_priv->videoStatus & CLIENT_VIDEO_ON) {
+ adaptor_priv->videoStatus |= OFF_TIMER;
+ adaptor_priv->offTime = currentTime.milliseconds + OFF_DELAY;
+ }
+ }
+
+}
+
+static int
+I830SetPortAttributeTextured(ScrnInfoPtr scrn,
+ Atom attribute, INT32 value, pointer data)
+{
+ intel_adaptor_private *adaptor_priv = (intel_adaptor_private *) data;
+
+ if (attribute == xvBrightness) {
+ if ((value < -128) || (value > 127))
+ return BadValue;
+ adaptor_priv->brightness = value;
+ return Success;
+ } else if (attribute == xvContrast) {
+ if ((value < 0) || (value > 255))
+ return BadValue;
+ adaptor_priv->contrast = value;
+ return Success;
+ } else if (attribute == xvSyncToVblank) {
+ if ((value < -1) || (value > 1))
+ return BadValue;
+ adaptor_priv->SyncToVblank = value;
+ return Success;
+ } else {
+ return BadMatch;
+ }
+}
+
+static int
+I830SetPortAttributeOverlay(ScrnInfoPtr scrn,
+ Atom attribute, INT32 value, pointer data)
+{
+ intel_adaptor_private *adaptor_priv = (intel_adaptor_private *) data;
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ if (attribute == xvBrightness) {
+ if ((value < -128) || (value > 127))
+ return BadValue;
+ adaptor_priv->brightness = value;
+ OVERLAY_DEBUG("BRIGHTNESS\n");
+ } else if (attribute == xvContrast) {
+ if ((value < 0) || (value > 255))
+ return BadValue;
+ adaptor_priv->contrast = value;
+ OVERLAY_DEBUG("CONTRAST\n");
+ } else if (attribute == xvSaturation) {
+ if ((value < 0) || (value > 1023))
+ return BadValue;
+ adaptor_priv->saturation = value;
+ } else if (attribute == xvPipe) {
+ xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
+ if ((value < -1) || (value > xf86_config->num_crtc))
+ return BadValue;
+ if (value < 0)
+ adaptor_priv->desired_crtc = NULL;
+ else
+ adaptor_priv->desired_crtc = xf86_config->crtc[value];
+ } else if (attribute == xvGamma0 && (INTEL_INFO(intel)->gen >= 30)) {
+ adaptor_priv->gamma0 = value;
+ } else if (attribute == xvGamma1 && (INTEL_INFO(intel)->gen >= 30)) {
+ adaptor_priv->gamma1 = value;
+ } else if (attribute == xvGamma2 && (INTEL_INFO(intel)->gen >= 30)) {
+ adaptor_priv->gamma2 = value;
+ } else if (attribute == xvGamma3 && (INTEL_INFO(intel)->gen >= 30)) {
+ adaptor_priv->gamma3 = value;
+ } else if (attribute == xvGamma4 && (INTEL_INFO(intel)->gen >= 30)) {
+ adaptor_priv->gamma4 = value;
+ } else if (attribute == xvGamma5 && (INTEL_INFO(intel)->gen >= 30)) {
+ adaptor_priv->gamma5 = value;
+ } else if (attribute == xvColorKey) {
+ adaptor_priv->colorKey = value;
+ OVERLAY_DEBUG("COLORKEY\n");
+ } else
+ return BadMatch;
+
+ if ((attribute == xvGamma0 ||
+ attribute == xvGamma1 ||
+ attribute == xvGamma2 ||
+ attribute == xvGamma3 ||
+ attribute == xvGamma4 ||
+ attribute == xvGamma5) && (INTEL_INFO(intel)->gen >= 30)) {
+ OVERLAY_DEBUG("GAMMA\n");
+ }
+
+ intel_overlay_update_attrs(intel);
+
+ if (attribute == xvColorKey)
+ REGION_EMPTY(scrn->pScreen, &adaptor_priv->clip);
+
+ return Success;
+}
+
+static int
+I830GetPortAttribute(ScrnInfoPtr scrn,
+ Atom attribute, INT32 * value, pointer data)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ intel_adaptor_private *adaptor_priv = (intel_adaptor_private *) data;
+
+ if (attribute == xvBrightness) {
+ *value = adaptor_priv->brightness;
+ } else if (attribute == xvContrast) {
+ *value = adaptor_priv->contrast;
+ } else if (attribute == xvSaturation) {
+ *value = adaptor_priv->saturation;
+ } else if (attribute == xvPipe) {
+ int c;
+ xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
+ for (c = 0; c < xf86_config->num_crtc; c++)
+ if (xf86_config->crtc[c] == adaptor_priv->desired_crtc)
+ break;
+ if (c == xf86_config->num_crtc)
+ c = -1;
+ *value = c;
+ } else if (attribute == xvGamma0 && (INTEL_INFO(intel)->gen >= 30)) {
+ *value = adaptor_priv->gamma0;
+ } else if (attribute == xvGamma1 && (INTEL_INFO(intel)->gen >= 30)) {
+ *value = adaptor_priv->gamma1;
+ } else if (attribute == xvGamma2 && (INTEL_INFO(intel)->gen >= 30)) {
+ *value = adaptor_priv->gamma2;
+ } else if (attribute == xvGamma3 && (INTEL_INFO(intel)->gen >= 30)) {
+ *value = adaptor_priv->gamma3;
+ } else if (attribute == xvGamma4 && (INTEL_INFO(intel)->gen >= 30)) {
+ *value = adaptor_priv->gamma4;
+ } else if (attribute == xvGamma5 && (INTEL_INFO(intel)->gen >= 30)) {
+ *value = adaptor_priv->gamma5;
+ } else if (attribute == xvColorKey) {
+ *value = adaptor_priv->colorKey;
+ } else if (attribute == xvSyncToVblank) {
+ *value = adaptor_priv->SyncToVblank;
+ } else
+ return BadMatch;
+
+ return Success;
+}
+
+static void
+I830QueryBestSize(ScrnInfoPtr scrn,
+ Bool motion,
+ short vid_w, short vid_h,
+ short drw_w, short drw_h,
+ unsigned int *p_w, unsigned int *p_h, pointer data)
+{
+ if (vid_w > (drw_w << 1))
+ drw_w = vid_w >> 1;
+ if (vid_h > (drw_h << 1))
+ drw_h = vid_h >> 1;
+
+ *p_w = drw_w;
+ *p_h = drw_h;
+}
+
+static Bool
+I830CopyPackedData(intel_adaptor_private *adaptor_priv,
+ unsigned char *buf,
+ int srcPitch, int dstPitch, int top, int left, int h, int w)
+{
+ unsigned char *src, *dst, *dst_base;
+ int i, j;
+ unsigned char *s;
+
+#if 0
+ ErrorF("I830CopyPackedData: (%d,%d) (%d,%d)\n"
+ "srcPitch: %d, dstPitch: %d\n", top, left, h, w,
+ srcPitch, dstPitch);
+#endif
+
+ src = buf + (top * srcPitch) + (left << 1);
+
+ if (drm_intel_gem_bo_map_gtt(adaptor_priv->buf))
+ return FALSE;
+
+ dst_base = adaptor_priv->buf->virtual;
+
+ dst = dst_base + adaptor_priv->YBufOffset;
+
+ switch (adaptor_priv->rotation) {
+ case RR_Rotate_0:
+ w <<= 1;
+ for (i = 0; i < h; i++) {
+ memcpy(dst, src, w);
+ src += srcPitch;
+ dst += dstPitch;
+ }
+ break;
+ case RR_Rotate_90:
+ h <<= 1;
+ for (i = 0; i < h; i += 2) {
+ s = src;
+ for (j = 0; j < w; j++) {
+ /* Copy Y */
+ dst[(i + 0) + ((w - j - 1) * dstPitch)] = *s++;
+ (void)*s++;
+ }
+ src += srcPitch;
+ }
+ h >>= 1;
+ src = buf + (top * srcPitch) + (left << 1);
+ for (i = 0; i < h; i += 2) {
+ for (j = 0; j < w; j += 2) {
+ /* Copy U */
+ dst[((i * 2) + 1) + ((w - j - 1) * dstPitch)] =
+ src[(j * 2) + 1 + (i * srcPitch)];
+ dst[((i * 2) + 1) + ((w - j - 2) * dstPitch)] =
+ src[(j * 2) + 1 + ((i + 1) * srcPitch)];
+ /* Copy V */
+ dst[((i * 2) + 3) + ((w - j - 1) * dstPitch)] =
+ src[(j * 2) + 3 + (i * srcPitch)];
+ dst[((i * 2) + 3) + ((w - j - 2) * dstPitch)] =
+ src[(j * 2) + 3 + ((i + 1) * srcPitch)];
+ }
+ }
+ break;
+ case RR_Rotate_180:
+ w <<= 1;
+ for (i = 0; i < h; i++) {
+ s = src;
+ for (j = 0; j < w; j += 4) {
+ dst[(w - j - 4) + ((h - i - 1) * dstPitch)] =
+ *s++;
+ dst[(w - j - 3) + ((h - i - 1) * dstPitch)] =
+ *s++;
+ dst[(w - j - 2) + ((h - i - 1) * dstPitch)] =
+ *s++;
+ dst[(w - j - 1) + ((h - i - 1) * dstPitch)] =
+ *s++;
+ }
+ src += srcPitch;
+ }
+ break;
+ case RR_Rotate_270:
+ h <<= 1;
+ for (i = 0; i < h; i += 2) {
+ s = src;
+ for (j = 0; j < w; j++) {
+ /* Copy Y */
+ dst[(h - i - 2) + (j * dstPitch)] = *s++;
+ (void)*s++;
+ }
+ src += srcPitch;
+ }
+ h >>= 1;
+ src = buf + (top * srcPitch) + (left << 1);
+ for (i = 0; i < h; i += 2) {
+ for (j = 0; j < w; j += 2) {
+ /* Copy U */
+ dst[(((h - i) * 2) - 3) + (j * dstPitch)] =
+ src[(j * 2) + 1 + (i * srcPitch)];
+ dst[(((h - i) * 2) - 3) +
+ ((j + 1) * dstPitch)] =
+ src[(j * 2) + 1 + ((i + 1) * srcPitch)];
+ /* Copy V */
+ dst[(((h - i) * 2) - 1) + (j * dstPitch)] =
+ src[(j * 2) + 3 + (i * srcPitch)];
+ dst[(((h - i) * 2) - 1) +
+ ((j + 1) * dstPitch)] =
+ src[(j * 2) + 3 + ((i + 1) * srcPitch)];
+ }
+ }
+ break;
+ }
+
+ drm_intel_gem_bo_unmap_gtt(adaptor_priv->buf);
+ return TRUE;
+}
+
+static void intel_memcpy_plane(unsigned char *dst, unsigned char *src,
+ int height, int width,
+ int dstPitch, int srcPitch, Rotation rotation)
+{
+ int i, j = 0;
+ unsigned char *s;
+
+ switch (rotation) {
+ case RR_Rotate_0:
+ /* optimise for the case of no clipping */
+ if (srcPitch == dstPitch && srcPitch == width)
+ memcpy(dst, src, srcPitch * height);
+ else
+ for (i = 0; i < height; i++) {
+ memcpy(dst, src, width);
+ src += srcPitch;
+ dst += dstPitch;
+ }
+ break;
+ case RR_Rotate_90:
+ for (i = 0; i < height; i++) {
+ s = src;
+ for (j = 0; j < width; j++) {
+ dst[(i) + ((width - j - 1) * dstPitch)] = *s++;
+ }
+ src += srcPitch;
+ }
+ break;
+ case RR_Rotate_180:
+ for (i = 0; i < height; i++) {
+ s = src;
+ for (j = 0; j < width; j++) {
+ dst[(width - j - 1) +
+ ((height - i - 1) * dstPitch)] = *s++;
+ }
+ src += srcPitch;
+ }
+ break;
+ case RR_Rotate_270:
+ for (i = 0; i < height; i++) {
+ s = src;
+ for (j = 0; j < width; j++) {
+ dst[(height - i - 1) + (j * dstPitch)] = *s++;
+ }
+ src += srcPitch;
+ }
+ break;
+ }
+}
+
+static Bool
+I830CopyPlanarData(intel_adaptor_private *adaptor_priv,
+ unsigned char *buf, int srcPitch, int srcPitch2,
+ int dstPitch, int dstPitch2,
+ int srcH, int top, int left,
+ int h, int w, int id)
+{
+ unsigned char *src1, *src2, *src3, *dst_base, *dst1, *dst2, *dst3;
+
+#if 0
+ ErrorF("I830CopyPlanarData: srcPitch %d, srcPitch %d, dstPitch %d\n"
+ "nlines %d, npixels %d, top %d, left %d\n",
+ srcPitch, srcPitch2, dstPitch, h, w, top, left);
+#endif
+
+ /* Copy Y data */
+ src1 = buf + (top * srcPitch) + left;
+#if 0
+ ErrorF("src1 is %p, offset is %ld\n", src1,
+ (unsigned long)src1 - (unsigned long)buf);
+#endif
+
+ if (drm_intel_gem_bo_map_gtt(adaptor_priv->buf))
+ return FALSE;
+
+ dst_base = adaptor_priv->buf->virtual;
+
+ dst1 = dst_base + adaptor_priv->YBufOffset;
+
+ intel_memcpy_plane(dst1, src1, h, w, dstPitch2, srcPitch,
+ adaptor_priv->rotation);
+
+ /* Copy V data for YV12, or U data for I420 */
+ src2 = buf + /* start of YUV data */
+ (srcH * srcPitch) + /* move over Luma plane */
+ ((top >> 1) * srcPitch2) + /* move down from by top lines */
+ (left >> 1); /* move left by left pixels */
+
+#if 0
+ ErrorF("src2 is %p, offset is %ld\n", src2,
+ (unsigned long)src2 - (unsigned long)buf);
+#endif
+ if (id == FOURCC_I420)
+ dst2 = dst_base + adaptor_priv->UBufOffset;
+ else
+ dst2 = dst_base + adaptor_priv->VBufOffset;
+
+ intel_memcpy_plane(dst2, src2, h / 2, w / 2,
+ dstPitch, srcPitch2, adaptor_priv->rotation);
+
+ /* Copy U data for YV12, or V data for I420 */
+ src3 = buf + /* start of YUV data */
+ (srcH * srcPitch) + /* move over Luma plane */
+ ((srcH >> 1) * srcPitch2) + /* move over Chroma plane */
+ ((top >> 1) * srcPitch2) + /* move down from by top lines */
+ (left >> 1); /* move left by left pixels */
+#if 0
+ ErrorF("src3 is %p, offset is %ld\n", src3,
+ (unsigned long)src3 - (unsigned long)buf);
+#endif
+ if (id == FOURCC_I420)
+ dst3 = dst_base + adaptor_priv->VBufOffset;
+ else
+ dst3 = dst_base + adaptor_priv->UBufOffset;
+
+ intel_memcpy_plane(dst3, src3, h / 2, w / 2,
+ dstPitch, srcPitch2, adaptor_priv->rotation);
+
+ drm_intel_gem_bo_unmap_gtt(adaptor_priv->buf);
+ return TRUE;
+}
+
+static void intel_box_intersect(BoxPtr dest, BoxPtr a, BoxPtr b)
+{
+ dest->x1 = a->x1 > b->x1 ? a->x1 : b->x1;
+ dest->x2 = a->x2 < b->x2 ? a->x2 : b->x2;
+ dest->y1 = a->y1 > b->y1 ? a->y1 : b->y1;
+ dest->y2 = a->y2 < b->y2 ? a->y2 : b->y2;
+ if (dest->x1 >= dest->x2 || dest->y1 >= dest->y2)
+ dest->x1 = dest->x2 = dest->y1 = dest->y2 = 0;
+}
+
+static void intel_crtc_box(xf86CrtcPtr crtc, BoxPtr crtc_box)
+{
+ if (crtc->enabled) {
+ crtc_box->x1 = crtc->x;
+ crtc_box->x2 =
+ crtc->x + xf86ModeWidth(&crtc->mode, crtc->rotation);
+ crtc_box->y1 = crtc->y;
+ crtc_box->y2 =
+ crtc->y + xf86ModeHeight(&crtc->mode, crtc->rotation);
+ } else
+ crtc_box->x1 = crtc_box->x2 = crtc_box->y1 = crtc_box->y2 = 0;
+}
+
+static int intel_box_area(BoxPtr box)
+{
+ return (int)(box->x2 - box->x1) * (int)(box->y2 - box->y1);
+}
+
+/*
+ * Return the crtc covering 'box'. If two crtcs cover a portion of
+ * 'box', then prefer 'desired'. If 'desired' is NULL, then prefer the crtc
+ * with greater coverage
+ */
+
+xf86CrtcPtr
+intel_covering_crtc(ScrnInfoPtr scrn,
+ BoxPtr box, xf86CrtcPtr desired, BoxPtr crtc_box_ret)
+{
+ xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(scrn);
+ xf86CrtcPtr crtc, best_crtc;
+ int coverage, best_coverage;
+ int c;
+ BoxRec crtc_box, cover_box;
+
+ best_crtc = NULL;
+ best_coverage = 0;
+ crtc_box_ret->x1 = 0;
+ crtc_box_ret->x2 = 0;
+ crtc_box_ret->y1 = 0;
+ crtc_box_ret->y2 = 0;
+ for (c = 0; c < xf86_config->num_crtc; c++) {
+ crtc = xf86_config->crtc[c];
+
+ /* If the CRTC is off, treat it as not covering */
+ if (!intel_crtc_on(crtc))
+ continue;
+
+ intel_crtc_box(crtc, &crtc_box);
+ intel_box_intersect(&cover_box, &crtc_box, box);
+ coverage = intel_box_area(&cover_box);
+ if (coverage && crtc == desired) {
+ *crtc_box_ret = crtc_box;
+ return crtc;
+ }
+ if (coverage > best_coverage) {
+ *crtc_box_ret = crtc_box;
+ best_crtc = crtc;
+ best_coverage = coverage;
+ }
+ }
+ return best_crtc;
+}
+
+static void
+intel_update_dst_box_to_crtc_coords(ScrnInfoPtr scrn, xf86CrtcPtr crtc,
+ BoxPtr dstBox)
+{
+ int tmp;
+
+ /* for overlay, we should take it from crtc's screen
+ * coordinate to current crtc's display mode.
+ * yeah, a bit confusing.
+ */
+ switch (crtc->rotation & 0xf) {
+ case RR_Rotate_0:
+ dstBox->x1 -= crtc->x;
+ dstBox->x2 -= crtc->x;
+ dstBox->y1 -= crtc->y;
+ dstBox->y2 -= crtc->y;
+ break;
+ case RR_Rotate_90:
+ tmp = dstBox->x1;
+ dstBox->x1 = dstBox->y1 - crtc->x;
+ dstBox->y1 = scrn->virtualX - tmp - crtc->y;
+ tmp = dstBox->x2;
+ dstBox->x2 = dstBox->y2 - crtc->x;
+ dstBox->y2 = scrn->virtualX - tmp - crtc->y;
+ tmp = dstBox->y1;
+ dstBox->y1 = dstBox->y2;
+ dstBox->y2 = tmp;
+ break;
+ case RR_Rotate_180:
+ tmp = dstBox->x1;
+ dstBox->x1 = scrn->virtualX - dstBox->x2 - crtc->x;
+ dstBox->x2 = scrn->virtualX - tmp - crtc->x;
+ tmp = dstBox->y1;
+ dstBox->y1 = scrn->virtualY - dstBox->y2 - crtc->y;
+ dstBox->y2 = scrn->virtualY - tmp - crtc->y;
+ break;
+ case RR_Rotate_270:
+ tmp = dstBox->x1;
+ dstBox->x1 = scrn->virtualY - dstBox->y1 - crtc->x;
+ dstBox->y1 = tmp - crtc->y;
+ tmp = dstBox->x2;
+ dstBox->x2 = scrn->virtualY - dstBox->y2 - crtc->x;
+ dstBox->y2 = tmp - crtc->y;
+ tmp = dstBox->x1;
+ dstBox->x1 = dstBox->x2;
+ dstBox->x2 = tmp;
+ break;
+ }
+
+ return;
+}
+
+int is_planar_fourcc(int id)
+{
+ switch (id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+#ifdef INTEL_XVMC
+ case FOURCC_XVMC:
+#endif
+ return 1;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ return 0;
+ default:
+ ErrorF("Unknown format 0x%x\n", id);
+ return 0;
+ }
+}
+
+static int xvmc_passthrough(int id)
+{
+#ifdef INTEL_XVMC
+ return id == FOURCC_XVMC;
+#else
+ return 0;
+#endif
+}
+
+static Bool
+intel_display_overlay(ScrnInfoPtr scrn, xf86CrtcPtr crtc,
+ int id, short width, short height,
+ int dstPitch, int dstPitch2,
+ BoxPtr dstBox, short src_w, short src_h, short drw_w,
+ short drw_h)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int tmp;
+
+ OVERLAY_DEBUG("I830DisplayVideo: %dx%d (pitch %d)\n", width, height,
+ dstPitch);
+
+ /*
+ * If the video isn't visible on any CRTC, turn it off
+ */
+ if (!crtc) {
+ intel_overlay_off(intel);
+ return TRUE;
+ }
+
+ intel_update_dst_box_to_crtc_coords(scrn, crtc, dstBox);
+
+ if (crtc->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
+ tmp = width;
+ width = height;
+ height = tmp;
+ tmp = drw_w;
+ drw_w = drw_h;
+ drw_h = tmp;
+ tmp = src_w;
+ src_w = src_h;
+ src_h = tmp;
+ }
+
+ return intel_overlay_put_image(intel, crtc, id,
+ width, height,
+ dstPitch, dstPitch2, dstBox,
+ src_w, src_h, drw_w, drw_h);
+}
+
+static Bool
+intel_clip_video_helper(ScrnInfoPtr scrn,
+ intel_adaptor_private *adaptor_priv,
+ xf86CrtcPtr * crtc_ret,
+ BoxPtr dst,
+ short src_x, short src_y,
+ short drw_x, short drw_y,
+ short src_w, short src_h,
+ short drw_w, short drw_h,
+ int id,
+ int *top, int* left, int* npixels, int *nlines,
+ RegionPtr reg, INT32 width, INT32 height)
+{
+ Bool ret;
+ RegionRec crtc_region_local;
+ RegionPtr crtc_region = reg;
+ BoxRec crtc_box;
+ INT32 x1, x2, y1, y2;
+ xf86CrtcPtr crtc;
+
+ x1 = src_x;
+ x2 = src_x + src_w;
+ y1 = src_y;
+ y2 = src_y + src_h;
+
+ dst->x1 = drw_x;
+ dst->x2 = drw_x + drw_w;
+ dst->y1 = drw_y;
+ dst->y2 = drw_y + drw_h;
+
+ /*
+ * For overlay video, compute the relevant CRTC and
+ * clip video to that
+ */
+ crtc = intel_covering_crtc(scrn, dst, adaptor_priv->desired_crtc,
+ &crtc_box);
+
+ /* For textured video, we don't actually want to clip at all. */
+ if (crtc && !adaptor_priv->textured) {
+ REGION_INIT(screen, &crtc_region_local, &crtc_box, 1);
+ crtc_region = &crtc_region_local;
+ REGION_INTERSECT(screen, crtc_region, crtc_region,
+ reg);
+ }
+ *crtc_ret = crtc;
+
+ ret = xf86XVClipVideoHelper(dst, &x1, &x2, &y1, &y2,
+ crtc_region, width, height);
+ if (crtc_region != reg)
+ REGION_UNINIT(screen, &crtc_region_local);
+
+ *top = y1 >> 16;
+ *left = (x1 >> 16) & ~1;
+ *npixels = ALIGN(((x2 + 0xffff) >> 16), 2) - *left;
+ if (is_planar_fourcc(id)) {
+ *top &= ~1;
+ *nlines = ALIGN(((y2 + 0xffff) >> 16), 2) - *top;
+ } else
+ *nlines = ((y2 + 0xffff) >> 16) - *top;
+
+ return ret;
+}
+
+static void
+intel_wait_for_scanline(ScrnInfoPtr scrn, PixmapPtr pixmap,
+ xf86CrtcPtr crtc, RegionPtr clipBoxes)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ pixman_box16_t box, crtc_box;
+ int pipe, event;
+ Bool full_height;
+ int y1, y2;
+
+ pipe = -1;
+ if (pixmap_is_scanout(pixmap))
+ pipe = intel_crtc_to_pipe(crtc);
+ if (pipe < 0)
+ return;
+
+ box = *REGION_EXTENTS(unused, clipBoxes);
+
+ if (crtc->transform_in_use)
+ pixman_f_transform_bounds(&crtc->f_framebuffer_to_crtc, &box);
+
+ /* We could presume the clip was correctly computed... */
+ intel_crtc_box(crtc, &crtc_box);
+ intel_box_intersect(&box, &crtc_box, &box);
+
+ /*
+ * Make sure we don't wait for a scanline that will
+ * never occur
+ */
+ y1 = (crtc_box.y1 <= box.y1) ? box.y1 - crtc_box.y1 : 0;
+ y2 = (box.y2 <= crtc_box.y2) ?
+ box.y2 - crtc_box.y1 : crtc_box.y2 - crtc_box.y1;
+ if (y2 <= y1)
+ return;
+
+ full_height = FALSE;
+ if (y1 == 0 && y2 == (crtc_box.y2 - crtc_box.y1))
+ full_height = TRUE;
+
+ /*
+ * Pre-965 doesn't have SVBLANK, so we need a bit
+ * of extra time for the blitter to start up and
+ * do its job for a full height blit
+ */
+ if (full_height && INTEL_INFO(intel)->gen < 40)
+ y2 -= 2;
+
+ if (pipe == 0) {
+ pipe = MI_LOAD_SCAN_LINES_DISPLAY_PIPEA;
+ event = MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW;
+ if (full_height && INTEL_INFO(intel)->gen >= 40)
+ event = MI_WAIT_FOR_PIPEA_SVBLANK;
+ } else {
+ pipe = MI_LOAD_SCAN_LINES_DISPLAY_PIPEB;
+ event = MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW;
+ if (full_height && INTEL_INFO(intel)->gen >= 40)
+ event = MI_WAIT_FOR_PIPEB_SVBLANK;
+ }
+
+ if (crtc->mode.Flags & V_INTERLACE) {
+ /* DSL count field lines */
+ y1 /= 2;
+ y2 /= 2;
+ }
+
+ BEGIN_BATCH(5);
+ /* The documentation says that the LOAD_SCAN_LINES command
+ * always comes in pairs. Don't ask me why. */
+ OUT_BATCH(MI_LOAD_SCAN_LINES_INCL | pipe);
+ OUT_BATCH((y1 << 16) | (y2-1));
+ OUT_BATCH(MI_LOAD_SCAN_LINES_INCL | pipe);
+ OUT_BATCH((y1 << 16) | (y2-1));
+ OUT_BATCH(MI_WAIT_FOR_EVENT | event);
+ ADVANCE_BATCH();
+}
+
+static Bool
+intel_setup_video_buffer(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv,
+ int alloc_size, int id, unsigned char *buf)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+
+ /* Free the current buffer if we're going to have to reallocate */
+ if (adaptor_priv->buf && adaptor_priv->buf->size < alloc_size)
+ intel_free_video_buffers(adaptor_priv);
+
+ if (adaptor_priv->buf == NULL) {
+ adaptor_priv->buf = drm_intel_bo_alloc(intel->bufmgr, "xv buffer",
+ alloc_size, 4096);
+ if (adaptor_priv->buf == NULL)
+ return FALSE;
+
+ adaptor_priv->reusable = TRUE;
+ }
+
+ return TRUE;
+}
+
+static void
+intel_setup_dst_params(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv, short width,
+ short height, int *dstPitch, int *dstPitch2, int *size,
+ int id)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int pitchAlign;
+
+ /* Only needs to be DWORD-aligned for textured on i915, but overlay has
+ * stricter requirements.
+ */
+ if (adaptor_priv->textured) {
+ pitchAlign = 4;
+ } else {
+ if (INTEL_INFO(intel)->gen >= 40)
+ /* Actually the alignment is 64 bytes, too. But the
+ * stride must be at least 512 bytes. Take the easy fix
+ * and align on 512 bytes unconditionally. */
+ pitchAlign = 512;
+ else if (IS_I830(intel) || IS_845G(intel))
+ /* Harsh, errata on these chipsets limit the stride to be
+ * a multiple of 256 bytes.
+ */
+ pitchAlign = 256;
+ else
+ pitchAlign = 64;
+ }
+
+#if INTEL_XVMC
+ /* for i915 xvmc, hw requires 1kb aligned surfaces */
+ if ((id == FOURCC_XVMC) && IS_GEN3(intel))
+ pitchAlign = 1024;
+#endif
+
+ /* Determine the desired destination pitch (representing the chroma's pitch,
+ * in the planar case.
+ */
+ if (is_planar_fourcc(id)) {
+ if (adaptor_priv->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
+ *dstPitch = ALIGN((height / 2), pitchAlign);
+ *dstPitch2 = ALIGN(height, pitchAlign);
+ *size = *dstPitch * width * 3;
+ } else {
+ *dstPitch = ALIGN((width / 2), pitchAlign);
+ *dstPitch2 = ALIGN(width, pitchAlign);
+ *size = *dstPitch * height * 3;
+ }
+ } else {
+ if (adaptor_priv->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
+ *dstPitch = ALIGN((height << 1), pitchAlign);
+ *size = *dstPitch * width;
+ } else {
+ *dstPitch = ALIGN((width << 1), pitchAlign);
+ *size = *dstPitch * height;
+ }
+ *dstPitch2 = 0;
+ }
+#if 0
+ ErrorF("srcPitch: %d, dstPitch: %d, size: %d\n", srcPitch, *dstPitch,
+ size);
+#endif
+
+ adaptor_priv->YBufOffset = 0;
+
+ if (adaptor_priv->rotation & (RR_Rotate_90 | RR_Rotate_270)) {
+ adaptor_priv->UBufOffset =
+ adaptor_priv->YBufOffset + (*dstPitch2 * width);
+ adaptor_priv->VBufOffset =
+ adaptor_priv->UBufOffset + (*dstPitch * width / 2);
+ } else {
+ adaptor_priv->UBufOffset =
+ adaptor_priv->YBufOffset + (*dstPitch2 * height);
+ adaptor_priv->VBufOffset =
+ adaptor_priv->UBufOffset + (*dstPitch * height / 2);
+ }
+}
+
+static Bool
+intel_copy_video_data(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv,
+ short width, short height, int *dstPitch, int *dstPitch2,
+ int top, int left, int npixels, int nlines,
+ int id, unsigned char *buf)
+{
+ int srcPitch = 0, srcPitch2 = 0;
+ int size;
+
+ if (is_planar_fourcc(id)) {
+ srcPitch = ALIGN(width, 0x4);
+ srcPitch2 = ALIGN((width >> 1), 0x4);
+ } else {
+ srcPitch = width << 1;
+ }
+
+ intel_setup_dst_params(scrn, adaptor_priv, width, height, dstPitch,
+ dstPitch2, &size, id);
+
+ if (!intel_setup_video_buffer(scrn, adaptor_priv, size, id, buf))
+ return FALSE;
+
+ /* copy data */
+ if (is_planar_fourcc(id)) {
+ return I830CopyPlanarData(adaptor_priv, buf, srcPitch, srcPitch2,
+ *dstPitch, *dstPitch2,
+ height, top, left, nlines,
+ npixels, id);
+ } else {
+ return I830CopyPackedData(adaptor_priv, buf, srcPitch, *dstPitch, top, left,
+ nlines, npixels);
+ }
+}
+
+/*
+ * The source rectangle of the video is defined by (src_x, src_y, src_w, src_h).
+ * The dest rectangle of the video is defined by (drw_x, drw_y, drw_w, drw_h).
+ * id is a fourcc code for the format of the video.
+ * buf is the pointer to the source data in system memory.
+ * width and height are the w/h of the source data.
+ * If "sync" is TRUE, then we must be finished with *buf at the point of return
+ * (which we always are).
+ * clipBoxes is the clipping region in screen space.
+ * data is a pointer to our port private.
+ * drawable is some Drawable, which might not be the screen in the case of
+ * compositing. It's a new argument to the function in the 1.1 server.
+ */
+static int
+I830PutImageTextured(ScrnInfoPtr scrn,
+ short src_x, short src_y,
+ short drw_x, short drw_y,
+ short src_w, short src_h,
+ short drw_w, short drw_h,
+ int id, unsigned char *buf,
+ short width, short height,
+ Bool sync, RegionPtr clipBoxes, pointer data,
+ DrawablePtr drawable)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ intel_adaptor_private *adaptor_priv = (intel_adaptor_private *) data;
+ PixmapPtr pixmap = get_drawable_pixmap(drawable);
+ int dstPitch, dstPitch2;
+ BoxRec dstBox;
+ xf86CrtcPtr crtc;
+ int top, left, npixels, nlines;
+
+#if 0
+ ErrorF("I830PutImage: src: (%d,%d)(%d,%d), dst: (%d,%d)(%d,%d)\n"
+ "width %d, height %d\n", src_x, src_y, src_w, src_h, drw_x,
+ drw_y, drw_w, drw_h, width, height);
+#endif
+
+ if (!intel_clip_video_helper(scrn,
+ adaptor_priv,
+ &crtc,
+ &dstBox,
+ src_x, src_y, drw_x, drw_y,
+ src_w, src_h, drw_w, drw_h,
+ id,
+ &top, &left, &npixels, &nlines, clipBoxes,
+ width, height))
+ return Success;
+
+ if (xvmc_passthrough(id)) {
+ uint32_t *gem_handle = (uint32_t *)buf;
+ int size;
+
+ intel_setup_dst_params(scrn, adaptor_priv, width, height,
+ &dstPitch, &dstPitch2, &size, id);
+
+ if (IS_I915G(intel) || IS_I915GM(intel)) {
+ /* XXX: i915 is not support and needs some
+ * serious care. grep for KMS in i915_hwmc.c */
+ return BadAlloc;
+ }
+
+ if (adaptor_priv->buf)
+ drm_intel_bo_unreference(adaptor_priv->buf);
+
+ adaptor_priv->buf =
+ drm_intel_bo_gem_create_from_name(intel->bufmgr,
+ "xvmc surface",
+ *gem_handle);
+ if (adaptor_priv->buf == NULL)
+ return BadAlloc;
+
+ adaptor_priv->reusable = FALSE;
+ } else {
+ if (!intel_copy_video_data(scrn, adaptor_priv, width, height,
+ &dstPitch, &dstPitch2,
+ top, left, npixels, nlines, id, buf))
+ return BadAlloc;
+ }
+
+ if (crtc && adaptor_priv->SyncToVblank != 0 && INTEL_INFO(intel)->gen < 60) {
+ intel_wait_for_scanline(scrn, pixmap, crtc, clipBoxes);
+ }
+
+ if (INTEL_INFO(intel)->gen >= 60) {
+ Gen6DisplayVideoTextured(scrn, adaptor_priv, id, clipBoxes,
+ width, height, dstPitch, dstPitch2,
+ src_w, src_h,
+ drw_w, drw_h, pixmap);
+ } else if (INTEL_INFO(intel)->gen >= 40) {
+ I965DisplayVideoTextured(scrn, adaptor_priv, id, clipBoxes,
+ width, height, dstPitch, dstPitch2,
+ src_w, src_h,
+ drw_w, drw_h, pixmap);
+ } else {
+ I915DisplayVideoTextured(scrn, adaptor_priv, id, clipBoxes,
+ width, height, dstPitch, dstPitch2,
+ src_w, src_h, drw_w, drw_h,
+ pixmap);
+ }
+
+ DamageDamageRegion(drawable, clipBoxes);
+
+ return Success;
+}
+
+static int
+I830PutImageOverlay(ScrnInfoPtr scrn,
+ short src_x, short src_y,
+ short drw_x, short drw_y,
+ short src_w, short src_h,
+ short drw_w, short drw_h,
+ int id, unsigned char *buf,
+ short width, short height,
+ Bool sync, RegionPtr clipBoxes, pointer data,
+ DrawablePtr drawable)
+{
+ intel_adaptor_private *adaptor_priv = (intel_adaptor_private *) data;
+ int dstPitch, dstPitch2;
+ BoxRec dstBox;
+ xf86CrtcPtr crtc;
+ int top, left, npixels, nlines;
+
+#if 0
+ ErrorF("I830PutImage: src: (%d,%d)(%d,%d), dst: (%d,%d)(%d,%d)\n"
+ "width %d, height %d\n", src_x, src_y, src_w, src_h, drw_x,
+ drw_y, drw_w, drw_h, width, height);
+#endif
+
+ /* If dst width and height are less than 1/8th the src size, the
+ * src/dst scale factor becomes larger than 8 and doesn't fit in
+ * the scale register. */
+ if (src_w >= (drw_w * 8))
+ drw_w = src_w / 7;
+
+ if (src_h >= (drw_h * 8))
+ drw_h = src_h / 7;
+
+ if (!intel_clip_video_helper(scrn,
+ adaptor_priv,
+ &crtc,
+ &dstBox,
+ src_x, src_y, drw_x, drw_y,
+ src_w, src_h, drw_w, drw_h,
+ id,
+ &top, &left, &npixels, &nlines, clipBoxes,
+ width, height))
+ return Success;
+
+ /* overlay can't handle rotation natively, store it for the copy func */
+ if (crtc)
+ adaptor_priv->rotation = crtc->rotation;
+ else {
+ xf86DrvMsg(scrn->scrnIndex, X_WARNING,
+ "Fail to clip video to any crtc!\n");
+ return Success;
+ }
+
+ if (!intel_copy_video_data(scrn, adaptor_priv, width, height,
+ &dstPitch, &dstPitch2,
+ top, left, npixels, nlines, id, buf))
+ return BadAlloc;
+
+ if (!intel_display_overlay
+ (scrn, crtc, id, width, height, dstPitch, dstPitch2,
+ &dstBox, src_w, src_h, drw_w, drw_h))
+ return BadAlloc;
+
+ /* update cliplist */
+ if (!REGION_EQUAL(scrn->pScreen, &adaptor_priv->clip, clipBoxes)) {
+ REGION_COPY(scrn->pScreen, &adaptor_priv->clip, clipBoxes);
+ xf86XVFillKeyHelperDrawable(drawable,
+ adaptor_priv->colorKey,
+ clipBoxes);
+ }
+
+ adaptor_priv->videoStatus = CLIENT_VIDEO_ON;
+
+ return Success;
+}
+
+static int
+I830QueryImageAttributes(ScrnInfoPtr scrn,
+ int id,
+ unsigned short *w, unsigned short *h,
+ int *pitches, int *offsets)
+{
+ intel_screen_private *intel = intel_get_screen_private(scrn);
+ int size, tmp;
+
+#if 0
+ ErrorF("I830QueryImageAttributes: w is %d, h is %d\n", *w, *h);
+#endif
+
+ if (IS_845G(intel) || IS_I830(intel)) {
+ if (*w > IMAGE_MAX_WIDTH_LEGACY)
+ *w = IMAGE_MAX_WIDTH_LEGACY;
+ if (*h > IMAGE_MAX_HEIGHT_LEGACY)
+ *h = IMAGE_MAX_HEIGHT_LEGACY;
+ } else {
+ if (*w > IMAGE_MAX_WIDTH)
+ *w = IMAGE_MAX_WIDTH;
+ if (*h > IMAGE_MAX_HEIGHT)
+ *h = IMAGE_MAX_HEIGHT;
+ }
+
+ *w = (*w + 1) & ~1;
+ if (offsets)
+ offsets[0] = 0;
+
+ switch (id) {
+ /* IA44 is for XvMC only */
+ case FOURCC_IA44:
+ case FOURCC_AI44:
+ if (pitches)
+ pitches[0] = *w;
+ size = *w * *h;
+ break;
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ *h = (*h + 1) & ~1;
+ size = (*w + 3) & ~3;
+ if (pitches)
+ pitches[0] = size;
+ size *= *h;
+ if (offsets)
+ offsets[1] = size;
+ tmp = ((*w >> 1) + 3) & ~3;
+ if (pitches)
+ pitches[1] = pitches[2] = tmp;
+ tmp *= (*h >> 1);
+ size += tmp;
+ if (offsets)
+ offsets[2] = size;
+ size += tmp;
+#if 0
+ if (pitches)
+ ErrorF("pitch 0 is %d, pitch 1 is %d, pitch 2 is %d\n",
+ pitches[0], pitches[1], pitches[2]);
+ if (offsets)
+ ErrorF("offset 1 is %d, offset 2 is %d\n", offsets[1],
+ offsets[2]);
+ if (offsets)
+ ErrorF("size is %d\n", size);
+#endif
+ break;
+#ifdef INTEL_XVMC
+ case FOURCC_XVMC:
+ *h = (*h + 1) & ~1;
+ size = sizeof(struct intel_xvmc_command);
+ if (pitches)
+ pitches[0] = size;
+ break;
+#endif
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ size = *w << 1;
+ if (pitches)
+ pitches[0] = size;
+ size *= *h;
+ break;
+ }
+
+ return size;
+}
+
+void
+intel_video_block_handler(intel_screen_private *intel)
+{
+ intel_adaptor_private *adaptor_priv;
+
+ /* no overlay */
+ if (intel->adaptor == NULL)
+ return;
+
+ adaptor_priv = intel_get_adaptor_private(intel);
+ if (adaptor_priv->videoStatus & OFF_TIMER) {
+ Time now = currentTime.milliseconds;
+ if (adaptor_priv->offTime < now) {
+ /* Turn off the overlay */
+ intel_overlay_off(intel);
+ intel_free_video_buffers(adaptor_priv);
+ adaptor_priv->videoStatus = 0;
+ }
+ }
+}
diff --git a/src/intel_video.h b/src/intel_video.h
new file mode 100644
index 0000000..f405d40
--- /dev/null
+++ b/src/intel_video.h
@@ -0,0 +1,95 @@
+/***************************************************************************
+
+Copyright 2000 Intel Corporation. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+
+typedef struct {
+ uint32_t YBufOffset;
+ uint32_t UBufOffset;
+ uint32_t VBufOffset;
+
+ int brightness;
+ int contrast;
+ int saturation;
+ xf86CrtcPtr desired_crtc;
+
+ RegionRec clip;
+ uint32_t colorKey;
+
+ uint32_t gamma0;
+ uint32_t gamma1;
+ uint32_t gamma2;
+ uint32_t gamma3;
+ uint32_t gamma4;
+ uint32_t gamma5;
+
+ /* only used by the overlay */
+ uint32_t videoStatus;
+ Time offTime;
+ Time freeTime;
+ /** YUV data buffers */
+ drm_intel_bo *buf, *old_buf[2];
+ Bool reusable;
+
+ Bool textured;
+ Rotation rotation; /* should remove intel->rotation later */
+
+ int SyncToVblank; /* -1: auto, 0: off, 1: on */
+} intel_adaptor_private;
+
+static inline intel_adaptor_private *
+intel_get_adaptor_private(intel_screen_private *intel)
+{
+ return intel->adaptor->pPortPrivates[0].ptr;
+}
+
+void I915DisplayVideoTextured(ScrnInfoPtr scrn,
+ intel_adaptor_private *adaptor_priv,
+ int id, RegionPtr dstRegion, short width,
+ short height, int video_pitch, int video_pitch2,
+ short src_w, short src_h,
+ short drw_w, short drw_h, PixmapPtr pixmap);
+
+void I965DisplayVideoTextured(ScrnInfoPtr scrn,
+ intel_adaptor_private *adaptor_priv,
+ int id, RegionPtr dstRegion, short width,
+ short height, int video_pitch, int video_pitch2,
+ short src_w, short src_h,
+ short drw_w, short drw_h, PixmapPtr pixmap);
+
+void Gen6DisplayVideoTextured(ScrnInfoPtr scrn,
+ intel_adaptor_private *adaptor_priv,
+ int id, RegionPtr dstRegion, short width,
+ short height, int video_pitch, int video_pitch2,
+ short src_w, short src_h,
+ short drw_w, short drw_h, PixmapPtr pixmap);
+
+void i965_free_video(ScrnInfoPtr scrn);
+
+int is_planar_fourcc(int id);
+
+void intel_video_block_handler(intel_screen_private *intel);
diff --git a/src/legacy/Makefile.am b/src/legacy/Makefile.am
new file mode 100644
index 0000000..206ac9c
--- /dev/null
+++ b/src/legacy/Makefile.am
@@ -0,0 +1,17 @@
+SUBDIRS =
+noinst_LTLIBRARIES = liblegacy.la
+
+NULL:=#
+
+liblegacy_la_SOURCES = legacy.h
+liblegacy_la_LIBADD =
+
+if ! KMS_ONLY
+SUBDIRS += i810
+liblegacy_la_SOURCES +=
+liblegacy_la_LIBADD += \
+ i810/liblegacy-i810.la \
+ $(NULL)
+endif
+
+EXTRA_DIST = README
diff --git a/src/legacy/Makefile.in b/src/legacy/Makefile.in
new file mode 100644
index 0000000..7384eda
--- /dev/null
+++ b/src/legacy/Makefile.in
@@ -0,0 +1,658 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+@KMS_ONLY_FALSE@am__append_1 = i810
+@KMS_ONLY_FALSE@am__append_2 =
+@KMS_ONLY_FALSE@am__append_3 = \
+@KMS_ONLY_FALSE@ i810/liblegacy-i810.la \
+@KMS_ONLY_FALSE@ $(NULL)
+
+subdir = src/legacy
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+LTLIBRARIES = $(noinst_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+@KMS_ONLY_FALSE@am__DEPENDENCIES_2 = i810/liblegacy-i810.la \
+@KMS_ONLY_FALSE@ $(am__DEPENDENCIES_1)
+liblegacy_la_DEPENDENCIES = $(am__DEPENDENCIES_2)
+am__objects_1 =
+am_liblegacy_la_OBJECTS = $(am__objects_1)
+liblegacy_la_OBJECTS = $(am_liblegacy_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+SOURCES = $(liblegacy_la_SOURCES)
+DIST_SOURCES = $(liblegacy_la_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = i810
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = $(am__append_1)
+noinst_LTLIBRARIES = liblegacy.la
+NULL := #
+liblegacy_la_SOURCES = legacy.h $(am__append_2)
+liblegacy_la_LIBADD = $(am__append_3)
+EXTRA_DIST = README
+all: all-recursive
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/legacy/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/legacy/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-noinstLTLIBRARIES:
+ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
+ @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+liblegacy.la: $(liblegacy_la_OBJECTS) $(liblegacy_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(LINK) $(liblegacy_la_OBJECTS) $(liblegacy_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
+ mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic clean-libtool \
+ clean-noinstLTLIBRARIES ctags ctags-recursive distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
+ uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/legacy/README b/src/legacy/README
new file mode 100644
index 0000000..65c32f6
--- /dev/null
+++ b/src/legacy/README
@@ -0,0 +1,6 @@
+Welcome to the attic!
+
+The code contained herein is no longer under active development and is not the
+target for new features or other improvements. Instead, we have placed it here
+to mature gracefully and still provide hardware compatibility for those
+antiquated devices that turn up when you least expect them.
diff --git a/src/legacy/i810/Makefile.am b/src/legacy/i810/Makefile.am
new file mode 100644
index 0000000..3676da6
--- /dev/null
+++ b/src/legacy/i810/Makefile.am
@@ -0,0 +1,35 @@
+SUBDIRS = xvmc
+
+noinst_LTLIBRARIES = liblegacy-i810.la
+
+AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ @PCIACCESS_CFLAGS@ \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/legacy \
+ $(NULL)
+
+liblegacy_i810_la_SOURCES = \
+ i810_accel.c \
+ i810_common.h \
+ i810_cursor.c \
+ i810_dga.c \
+ i810_driver.c \
+ i810.h \
+ i810_io.c \
+ i810_memory.c \
+ i810_reg.h \
+ i810_ring.h \
+ i810_video.c \
+ i810_wmark.c
+
+if DRI
+liblegacy_i810_la_SOURCES +=\
+ i810_dri.c \
+ i810_dri.h \
+ $(NULL)
+endif
+
+if XVMC
+liblegacy_i810_la_SOURCES += \
+ i810_hwmc.c \
+ $(NULL)
+endif
diff --git a/src/legacy/i810/Makefile.in b/src/legacy/i810/Makefile.in
new file mode 100644
index 0000000..1c189a7
--- /dev/null
+++ b/src/legacy/i810/Makefile.in
@@ -0,0 +1,711 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+@DRI_TRUE@am__append_1 = \
+@DRI_TRUE@ i810_dri.c \
+@DRI_TRUE@ i810_dri.h \
+@DRI_TRUE@ $(NULL)
+
+@XVMC_TRUE@am__append_2 = \
+@XVMC_TRUE@ i810_hwmc.c \
+@XVMC_TRUE@ $(NULL)
+
+subdir = src/legacy/i810
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+LTLIBRARIES = $(noinst_LTLIBRARIES)
+liblegacy_i810_la_LIBADD =
+am__liblegacy_i810_la_SOURCES_DIST = i810_accel.c i810_common.h \
+ i810_cursor.c i810_dga.c i810_driver.c i810.h i810_io.c \
+ i810_memory.c i810_reg.h i810_ring.h i810_video.c i810_wmark.c \
+ i810_dri.c i810_dri.h i810_hwmc.c
+@DRI_TRUE@am__objects_1 = i810_dri.lo
+@XVMC_TRUE@am__objects_2 = i810_hwmc.lo
+am_liblegacy_i810_la_OBJECTS = i810_accel.lo i810_cursor.lo \
+ i810_dga.lo i810_driver.lo i810_io.lo i810_memory.lo \
+ i810_video.lo i810_wmark.lo $(am__objects_1) $(am__objects_2)
+liblegacy_i810_la_OBJECTS = $(am_liblegacy_i810_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+SOURCES = $(liblegacy_i810_la_SOURCES)
+DIST_SOURCES = $(am__liblegacy_i810_la_SOURCES_DIST)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = xvmc
+noinst_LTLIBRARIES = liblegacy-i810.la
+AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ @PCIACCESS_CFLAGS@ \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/legacy \
+ $(NULL)
+
+liblegacy_i810_la_SOURCES = i810_accel.c i810_common.h i810_cursor.c \
+ i810_dga.c i810_driver.c i810.h i810_io.c i810_memory.c \
+ i810_reg.h i810_ring.h i810_video.c i810_wmark.c \
+ $(am__append_1) $(am__append_2)
+all: all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/legacy/i810/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/legacy/i810/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-noinstLTLIBRARIES:
+ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
+ @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+liblegacy-i810.la: $(liblegacy_i810_la_OBJECTS) $(liblegacy_i810_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(LINK) $(liblegacy_i810_la_OBJECTS) $(liblegacy_i810_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_accel.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_cursor.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_dga.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_dri.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_driver.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_hwmc.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_io.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_memory.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_video.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i810_wmark.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
+ mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic clean-libtool \
+ clean-noinstLTLIBRARIES ctags ctags-recursive distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
+ uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/legacy/i810/i810.h b/src/legacy/i810/i810.h
new file mode 100644
index 0000000..6620695
--- /dev/null
+++ b/src/legacy/i810/i810.h
@@ -0,0 +1,332 @@
+
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+Copyright © 2002 David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ * David Dawes <dawes@xfree86.org>
+ *
+ */
+
+#ifndef _I810_H_
+#define _I810_H_
+
+#include <stdint.h>
+#include "compiler.h"
+#include "xf86PciInfo.h"
+#include "xf86Pci.h"
+#include "i810_reg.h"
+#include "xaa.h"
+#include "xf86Cursor.h"
+#include "xf86xv.h"
+#include "vbe.h"
+#include "vgaHW.h"
+
+#include "xorg-server.h"
+#include <pciaccess.h>
+
+#ifdef XF86DRI
+#include "xf86drm.h"
+#include "sarea.h"
+#define _XF86DRI_SERVER_
+#include "dri.h"
+#include "i810_dri.h"
+#endif
+
+#include "i810_common.h"
+#include "i810_ring.h"
+
+#include "intel_driver.h"
+
+/* HWMC Surfaces */
+#define I810_MAX_SURFACES 7
+#define I810_MAX_SUBPICTURES 2
+#define I810_TOTAL_SURFACES 9
+
+/* Globals */
+
+typedef struct _I810Rec *I810Ptr;
+
+typedef void (*I810WriteIndexedByteFunc)(I810Ptr pI810, IOADDRESS addr,
+ uint8_t index, uint8_t value);
+typedef uint8_t(*I810ReadIndexedByteFunc)(I810Ptr pI810, IOADDRESS addr,
+ uint8_t index);
+typedef void (*I810WriteByteFunc)(I810Ptr pI810, IOADDRESS addr,
+ uint8_t value);
+typedef uint8_t(*I810ReadByteFunc)(I810Ptr pI810, IOADDRESS addr);
+
+extern void I810SetTiledMemory(ScrnInfoPtr pScrn, int nr, unsigned start,
+ unsigned pitch, unsigned size);
+
+typedef struct {
+ unsigned long Start;
+ unsigned long End;
+ unsigned long Size;
+} I810MemRange;
+
+typedef struct {
+ int tail_mask;
+ I810MemRange mem;
+ unsigned char *virtual_start;
+ int head;
+ int tail;
+ int space;
+} I810RingBuffer;
+
+typedef struct {
+ unsigned char DisplayControl;
+ unsigned char PixelPipeCfg0;
+ unsigned char PixelPipeCfg1;
+ unsigned char PixelPipeCfg2;
+ unsigned short VideoClk2_M;
+ unsigned short VideoClk2_N;
+ unsigned char VideoClk2_DivisorSel;
+ unsigned char AddressMapping;
+ unsigned char IOControl;
+ unsigned char BitBLTControl;
+ unsigned char ExtVertTotal;
+ unsigned char ExtVertDispEnd;
+ unsigned char ExtVertSyncStart;
+ unsigned char ExtVertBlankStart;
+ unsigned char ExtHorizTotal;
+ unsigned char ExtHorizBlank;
+ unsigned char ExtOffset;
+ unsigned char InterlaceControl;
+ unsigned int LMI_FIFO_Watermark;
+
+ unsigned int LprbTail;
+ unsigned int LprbHead;
+ unsigned int LprbStart;
+ unsigned int LprbLen;
+
+ unsigned int Fence[8];
+
+ unsigned short OverlayActiveStart;
+ unsigned short OverlayActiveEnd;
+
+} I810RegRec, *I810RegPtr;
+
+typedef struct _I810Rec {
+ unsigned char *MMIOBase;
+ unsigned char *FbBase;
+ long FbMapSize;
+ long DepthOffset;
+ long BackOffset;
+ int cpp;
+ int MaxClock;
+
+ unsigned int bufferOffset; /* for I810SelectBuffer */
+ Bool DoneFrontAlloc;
+ BoxRec FbMemBox;
+ I810MemRange FrontBuffer;
+ I810MemRange BackBuffer;
+ I810MemRange DepthBuffer;
+ I810MemRange TexMem;
+ I810MemRange Scratch;
+ I810MemRange BufferMem;
+ I810MemRange ContextMem;
+ I810MemRange MC;
+
+ int auxPitch;
+ int auxPitchBits;
+
+ Bool CursorIsARGB;
+ int CursorOffset;
+ unsigned long CursorPhysical;
+ unsigned long CursorStart;
+ int CursorARGBOffset;
+ unsigned long CursorARGBPhysical;
+ unsigned long CursorARGBStart;
+ unsigned long OverlayPhysical;
+ unsigned long OverlayStart;
+ int colorKey;
+ unsigned int surfaceAllocation[I810_TOTAL_SURFACES];
+ int numSurfaces;
+
+ DGAModePtr DGAModes;
+ int numDGAModes;
+ Bool DGAactive;
+ int DGAViewportStatus;
+
+ int Chipset;
+ unsigned long LinearAddr;
+ unsigned long MMIOAddr;
+ IOADDRESS ioBase;
+ EntityInfoPtr pEnt;
+ struct pci_device *PciInfo;
+
+ I810RingBuffer *LpRing;
+ unsigned int BR[20];
+
+ int LmFreqSel;
+
+ int VramKey;
+ unsigned long VramOffset;
+ int DcacheKey;
+ unsigned long DcacheOffset;
+ int HwcursKey;
+ unsigned long HwcursOffset;
+ int ARGBHwcursKey;
+ unsigned long ARGBHwcursOffset;
+
+ int GttBound;
+
+ I810MemRange DcacheMem;
+ I810MemRange SysMem;
+
+ I810MemRange SavedDcacheMem;
+ I810MemRange SavedSysMem;
+
+ unsigned char **ScanlineColorExpandBuffers;
+ int NumScanlineColorExpandBuffers;
+ int nextColorExpandBuf;
+
+ I810RegRec SavedReg;
+ I810RegRec ModeReg;
+
+ XAAInfoRecPtr AccelInfoRec;
+ xf86CursorInfoPtr CursorInfoRec;
+ CloseScreenProcPtr CloseScreen;
+ ScreenBlockHandlerProcPtr BlockHandler;
+
+ I810WriteIndexedByteFunc writeControl;
+ I810ReadIndexedByteFunc readControl;
+ I810WriteByteFunc writeStandard;
+ I810ReadByteFunc readStandard;
+
+ Bool directRenderingDisabled; /* DRI disabled in PreInit */
+ Bool directRenderingEnabled; /* false if XF86DRI not defined. */
+
+#ifdef XF86DRI
+ int LockHeld;
+ DRIInfoPtr pDRIInfo;
+ int drmSubFD;
+ int numVisualConfigs;
+ unsigned long dcacheHandle;
+ unsigned long backHandle;
+ unsigned long zHandle;
+ unsigned long cursorHandle;
+ unsigned long cursorARGBHandle;
+ unsigned long xvmcHandle;
+ unsigned long sysmemHandle;
+ Bool agpAcquired;
+ drm_handle_t buffer_map;
+ drm_handle_t ring_map;
+ drm_handle_t overlay_map;
+ drm_handle_t mc_map;
+ drm_handle_t xvmcContext;
+#endif
+ Bool agpAcquired2d;
+
+ XF86VideoAdaptorPtr adaptor;
+ OptionInfoPtr Options;
+
+ int configured_device;
+
+ Bool showCache;
+ Bool noAccel;
+ Bool allowPageFlip;
+ Bool have3DWindows;
+ int drmMinor;
+} I810Rec;
+
+#define I810PTR(p) ((I810Ptr)((p)->driverPrivate))
+
+#define I810_SELECT_FRONT 0
+#define I810_SELECT_BACK 1
+#define I810_SELECT_DEPTH 2
+
+#ifdef XF86DRI
+extern Bool I810DRIScreenInit(ScreenPtr pScreen);
+extern void I810DRICloseScreen(ScreenPtr pScreen);
+extern Bool I810DRIFinishScreenInit(ScreenPtr pScreen);
+extern Bool I810DRILeave(ScrnInfoPtr pScrn);
+extern Bool I810DRIEnter(ScrnInfoPtr pScrn);
+#endif
+extern Bool I810InitDma(ScrnInfoPtr pScrn);
+extern Bool I810CleanupDma(ScrnInfoPtr pScrn);
+
+#define I810PTR(p) ((I810Ptr)((p)->driverPrivate))
+#define I810REGPTR(p) (&(I810PTR(p)->ModeReg))
+
+extern Bool I810CursorInit(ScreenPtr pScreen);
+extern Bool I810AccelInit(ScreenPtr pScreen);
+extern void I810SetPIOAccess(I810Ptr pI810);
+extern void I810SetMMIOAccess(I810Ptr pI810);
+extern unsigned int I810CalcWatermark(ScrnInfoPtr pScrn, double freq,
+ Bool dcache);
+extern void I810PrintErrorState(ScrnInfoPtr pScrn);
+extern int I810WaitLpRing(ScrnInfoPtr pScrn, int n, int timeout_millis);
+extern void I810Sync(ScrnInfoPtr pScrn);
+extern unsigned long I810LocalToPhysical(ScrnInfoPtr pScrn,
+ unsigned long local);
+extern int I810AllocLow(I810MemRange * result, I810MemRange * pool,
+ int size);
+extern int I810AllocHigh(I810MemRange * result, I810MemRange * pool,
+ int size);
+extern Bool I810AllocateFront(ScrnInfoPtr pScrn);
+
+extern int I810AllocateGARTMemory(ScrnInfoPtr pScrn);
+extern void I810FreeGARTMemory(ScrnInfoPtr pScrn);
+
+extern Bool I810BindGARTMemory(ScrnInfoPtr pScrn);
+extern Bool I810UnbindGARTMemory(ScrnInfoPtr pScrn);
+
+extern int I810CheckAvailableMemory(ScrnInfoPtr pScrn);
+
+extern Bool I810SwitchMode(int scrnIndex, DisplayModePtr mode, int flags);
+extern void I810AdjustFrame(int scrnIndex, int x, int y, int flags);
+
+extern void I810SetupForScreenToScreenCopy(ScrnInfoPtr pScrn, int xdir,
+ int ydir, int rop,
+ unsigned int planemask,
+ int trans_color);
+extern void I810SubsequentScreenToScreenCopy(ScrnInfoPtr pScrn, int srcX,
+ int srcY, int dstX, int dstY,
+ int w, int h);
+extern void I810SetupForSolidFill(ScrnInfoPtr pScrn, int color, int rop,
+ unsigned int planemask);
+extern void I810SubsequentSolidFillRect(ScrnInfoPtr pScrn, int x, int y,
+ int w, int h);
+
+extern void I810SelectBuffer(ScrnInfoPtr pScrn, int buffer);
+
+extern void I810RefreshRing(ScrnInfoPtr pScrn);
+extern void I810EmitFlush(ScrnInfoPtr pScrn);
+extern void I810EmitInvarientState(ScrnInfoPtr pScrn);
+
+extern Bool I810DGAInit(ScreenPtr pScreen);
+
+extern void I810InitVideo(ScreenPtr pScreen);
+extern void I810InitMC(ScreenPtr pScreen);
+
+extern const OptionInfoRec *I810AvailableOptions(int chipid, int busid);
+
+#endif /* _I810_H_ */
diff --git a/src/legacy/i810/i810_accel.c b/src/legacy/i810/i810_accel.c
new file mode 100644
index 0000000..9aa3e42
--- /dev/null
+++ b/src/legacy/i810/i810_accel.c
@@ -0,0 +1,617 @@
+
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ *
+ */
+
+#include "xf86.h"
+#include "xaarop.h"
+#include "i810.h"
+
+static void I810SetupForMono8x8PatternFill(ScrnInfoPtr pScrn,
+ int pattx, int patty,
+ int fg, int bg, int rop,
+ unsigned int planemask);
+static void I810SubsequentMono8x8PatternFillRect(ScrnInfoPtr pScrn,
+ int pattx, int patty,
+ int x, int y, int w, int h);
+
+static void I810SetupForScanlineCPUToScreenColorExpandFill(ScrnInfoPtr pScrn,
+ int fg, int bg,
+ int rop,
+ unsigned int mask);
+
+static void I810SubsequentScanlineCPUToScreenColorExpandFill(ScrnInfoPtr
+ pScrn, int x,
+ int y, int w,
+ int h,
+ int skipleft);
+
+static void I810SubsequentColorExpandScanline(ScrnInfoPtr pScrn, int bufno);
+
+/* The following function sets up the supported acceleration. Call it
+ * from the FbInit() function in the SVGA driver, or before ScreenInit
+ * in a monolithic server.
+ */
+Bool
+I810AccelInit(ScreenPtr pScreen)
+{
+ XAAInfoRecPtr infoPtr;
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810AccelInit\n");
+
+ pI810->AccelInfoRec = infoPtr = XAACreateInfoRec();
+ if (!infoPtr)
+ return FALSE;
+
+ pI810->bufferOffset = 0;
+ infoPtr->Flags = LINEAR_FRAMEBUFFER | OFFSCREEN_PIXMAPS;
+ infoPtr->Flags |= PIXMAP_CACHE;
+
+ /* Sync
+ */
+ infoPtr->Sync = I810Sync;
+
+ /* Solid filled rectangles
+ */
+ {
+ infoPtr->SolidFillFlags = NO_PLANEMASK;
+ infoPtr->SetupForSolidFill = I810SetupForSolidFill;
+ infoPtr->SubsequentSolidFillRect = I810SubsequentSolidFillRect;
+ }
+
+ /* Screen to screen copy
+ * - the transparency op hangs the blit engine, disable for now.
+ */
+ {
+ infoPtr->ScreenToScreenCopyFlags = (0
+ | NO_PLANEMASK
+ | NO_TRANSPARENCY | 0);
+
+ infoPtr->SetupForScreenToScreenCopy = I810SetupForScreenToScreenCopy;
+ infoPtr->SubsequentScreenToScreenCopy =
+ I810SubsequentScreenToScreenCopy;
+ }
+
+ /* 8x8 pattern fills
+ */
+ {
+ infoPtr->SetupForMono8x8PatternFill = I810SetupForMono8x8PatternFill;
+ infoPtr->SubsequentMono8x8PatternFillRect =
+ I810SubsequentMono8x8PatternFillRect;
+
+ infoPtr->Mono8x8PatternFillFlags = (HARDWARE_PATTERN_PROGRAMMED_BITS |
+ HARDWARE_PATTERN_SCREEN_ORIGIN |
+ BIT_ORDER_IN_BYTE_MSBFIRST |
+ NO_PLANEMASK | 0);
+ }
+
+ /* 8x8 color fills - not considered useful for XAA.
+ */
+
+ /* Scanline color expansion - Use the same scheme as the 3.3 driver.
+ *
+ */
+ if (pI810->Scratch.Size != 0) {
+ int i;
+ int width = ALIGN(pScrn->displayWidth, 32) / 8;
+ int nr_buffers = pI810->Scratch.Size / width;
+ unsigned char *ptr = pI810->FbBase + pI810->Scratch.Start;
+
+ pI810->NumScanlineColorExpandBuffers = nr_buffers;
+ pI810->ScanlineColorExpandBuffers = (unsigned char **)
+ xnfcalloc(nr_buffers, sizeof(unsigned char *));
+
+ for (i = 0; i < nr_buffers; i++, ptr += width)
+ pI810->ScanlineColorExpandBuffers[i] = ptr;
+
+ infoPtr->ScanlineCPUToScreenColorExpandFillFlags = (NO_PLANEMASK |
+ ROP_NEEDS_SOURCE |
+ BIT_ORDER_IN_BYTE_MSBFIRST
+ | 0);
+
+ infoPtr->ScanlineColorExpandBuffers = (unsigned char **)
+ xnfcalloc(1, sizeof(unsigned char *));
+ infoPtr->NumScanlineColorExpandBuffers = 1;
+
+ infoPtr->ScanlineColorExpandBuffers[0] =
+ pI810->ScanlineColorExpandBuffers[0];
+ pI810->nextColorExpandBuf = 0;
+
+ infoPtr->SetupForScanlineCPUToScreenColorExpandFill =
+ I810SetupForScanlineCPUToScreenColorExpandFill;
+
+ infoPtr->SubsequentScanlineCPUToScreenColorExpandFill =
+ I810SubsequentScanlineCPUToScreenColorExpandFill;
+
+ infoPtr->SubsequentColorExpandScanline =
+ I810SubsequentColorExpandScanline;
+ }
+
+ /* Possible todo: Image writes w/ non-GXCOPY rop.
+ */
+
+ I810SelectBuffer(pScrn, I810_SELECT_FRONT);
+
+ return XAAInit(pScreen, infoPtr);
+}
+
+int
+I810WaitLpRing(ScrnInfoPtr pScrn, int n, int timeout_millis)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810RingBuffer *ring = pI810->LpRing;
+ int iters = 0;
+ int start = 0;
+ int now = 0;
+ int last_head = 0;
+ int first = 0;
+
+ /* If your system hasn't moved the head pointer in 2 seconds, I'm going to
+ * call it crashed.
+ */
+ if (timeout_millis == 0)
+ timeout_millis = 2000;
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL) {
+ ErrorF("I810WaitLpRing %d\n", n);
+ first = GetTimeInMillis();
+ }
+
+ while (ring->space < n) {
+ ring->head = INREG(LP_RING + RING_HEAD) & HEAD_ADDR;
+ ring->space = ring->head - (ring->tail + 8);
+
+ if (ring->space < 0)
+ ring->space += ring->mem.Size;
+
+ iters++;
+ now = GetTimeInMillis();
+ if (start == 0 || now < start || ring->head != last_head) {
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ if (now > start)
+ ErrorF("space: %d wanted %d\n", ring->space, n);
+ start = now;
+ last_head = ring->head;
+ } else if (now - start > timeout_millis) {
+ ErrorF("Error in I810WaitLpRing(), now is %d, start is %d\n", now,
+ start);
+ I810PrintErrorState(pScrn);
+ ErrorF("space: %d wanted %d\n", ring->space, n);
+#ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ DRIUnlock(screenInfo.screens[pScrn->scrnIndex]);
+ DRICloseScreen(screenInfo.screens[pScrn->scrnIndex]);
+ }
+#endif
+ pI810->AccelInfoRec = NULL; /* Stops recursive behavior */
+ FatalError("lockup\n");
+ }
+
+ DELAY(10000);
+ }
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL) {
+ now = GetTimeInMillis();
+ if (now - first) {
+ ErrorF("Elapsed %d ms\n", now - first);
+ ErrorF("space: %d wanted %d\n", ring->space, n);
+ }
+ }
+
+ return iters;
+}
+
+void
+I810Sync(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & (DEBUG_VERBOSE_ACCEL | DEBUG_VERBOSE_SYNC))
+ ErrorF("I810Sync\n");
+
+#ifdef XF86DRI
+ /* VT switching tries to do this.
+ */
+ if (!pI810->LockHeld && pI810->directRenderingEnabled) {
+ return;
+ }
+#endif
+
+ /* Send a flush instruction and then wait till the ring is empty.
+ * This is stronger than waiting for the blitter to finish as it also
+ * flushes the internal graphics caches.
+ */
+ {
+ BEGIN_LP_RING(2);
+ OUT_RING(INST_PARSER_CLIENT | INST_OP_FLUSH | INST_FLUSH_MAP_CACHE);
+ OUT_RING(0); /* pad to quadword */
+ ADVANCE_LP_RING();
+ }
+
+ I810WaitLpRing(pScrn, pI810->LpRing->mem.Size - 8, 0);
+
+ pI810->LpRing->space = pI810->LpRing->mem.Size - 8;
+ pI810->nextColorExpandBuf = 0;
+}
+
+void
+I810SetupForSolidFill(ScrnInfoPtr pScrn, int color, int rop,
+ unsigned int planemask)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SetupForFillRectSolid color: %x rop: %x mask: %x\n",
+ color, rop, planemask);
+
+ /* Color blit, p166 */
+ pI810->BR[13] = (BR13_SOLID_PATTERN |
+ (XAAGetPatternROP(rop) << 16) |
+ (pScrn->displayWidth * pI810->cpp));
+ pI810->BR[16] = color;
+}
+
+void
+I810SubsequentSolidFillRect(ScrnInfoPtr pScrn, int x, int y, int w, int h)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SubsequentFillRectSolid %d,%d %dx%d\n", x, y, w, h);
+
+ {
+ BEGIN_LP_RING(6);
+
+ OUT_RING(BR00_BITBLT_CLIENT | BR00_OP_COLOR_BLT | 0x3);
+ OUT_RING(pI810->BR[13]);
+ OUT_RING((h << 16) | (w * pI810->cpp));
+ OUT_RING(pI810->bufferOffset +
+ (y * pScrn->displayWidth + x) * pI810->cpp);
+
+ OUT_RING(pI810->BR[16]);
+ OUT_RING(0); /* pad to quadword */
+
+ ADVANCE_LP_RING();
+ }
+}
+
+void
+I810SetupForScreenToScreenCopy(ScrnInfoPtr pScrn, int xdir, int ydir, int rop,
+ unsigned int planemask, int transparency_color)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SetupForScreenToScreenCopy %d %d %x %x %d\n",
+ xdir, ydir, rop, planemask, transparency_color);
+
+ pI810->BR[13] = (pScrn->displayWidth * pI810->cpp);
+
+ if (ydir == -1)
+ pI810->BR[13] = (-pI810->BR[13]) & 0xFFFF;
+ if (xdir == -1)
+ pI810->BR[13] |= BR13_RIGHT_TO_LEFT;
+
+ pI810->BR[13] |= XAAGetCopyROP(rop) << 16;
+
+ pI810->BR[18] = 0;
+}
+
+void
+I810SubsequentScreenToScreenCopy(ScrnInfoPtr pScrn, int x1, int y1,
+ int x2, int y2, int w, int h)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int src, dst;
+ int w_back = w;
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF( "I810SubsequentScreenToScreenCopy %d,%d - %d,%d %dx%d\n",
+ x1,y1,x2,y2,w,h);
+ /*
+ * This works around a bug in the i810 drawing engine.
+ * This was developed empirically so it may not catch all
+ * cases.
+ */
+#define I810_MWIDTH 8
+
+ if ( !(pI810->BR[13] & BR13_RIGHT_TO_LEFT) && (y2 - y1) < 3
+ && (y2 - y1) >= 0 && (x2 - x1) <= (w + I810_MWIDTH)
+ && (w > I810_MWIDTH))
+ w = I810_MWIDTH;
+ do {
+
+ if (pI810->BR[13] & BR13_PITCH_SIGN_BIT) {
+ src = (y1 + h - 1) * pScrn->displayWidth * pI810->cpp;
+ dst = (y2 + h - 1) * pScrn->displayWidth * pI810->cpp;
+ } else {
+ src = y1 * pScrn->displayWidth * pI810->cpp;
+ dst = y2 * pScrn->displayWidth * pI810->cpp;
+ }
+
+ if (pI810->BR[13] & BR13_RIGHT_TO_LEFT) {
+ src += (x1 + w - 1) * pI810->cpp + pI810->cpp - 1;
+ dst += (x2 + w - 1) * pI810->cpp + pI810->cpp - 1;
+ } else {
+ src += x1 * pI810->cpp;
+ dst += x2 * pI810->cpp;
+ }
+
+
+ /* SRC_COPY_BLT, p169 */
+ {
+ BEGIN_LP_RING(6);
+ OUT_RING( BR00_BITBLT_CLIENT | BR00_OP_SRC_COPY_BLT | 0x4 );
+ OUT_RING( pI810->BR[13]);
+
+ OUT_RING( (h << 16) | (w * pI810->cpp));
+ OUT_RING( pI810->bufferOffset + dst);
+
+ OUT_RING( pI810->BR[13] & 0xFFFF);
+ OUT_RING( pI810->bufferOffset + src);
+ ADVANCE_LP_RING();
+ }
+ w_back -= w;
+ if (w_back <= 0)
+ break;
+ x2 += w;
+ x1 += w;
+ if (w_back > I810_MWIDTH)
+ w = I810_MWIDTH;
+ else
+ w = w_back;
+ } while (1);
+}
+
+static void
+I810SetupForMono8x8PatternFill(ScrnInfoPtr pScrn, int pattx, int patty,
+ int fg, int bg, int rop,
+ unsigned int planemask)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SetupFor8x8PatternColorExpand\n");
+
+ /* FULL_MONO_PAT_BLT, p176 */
+ pI810->BR[0] = (BR00_BITBLT_CLIENT | BR00_OP_MONO_PAT_BLT | 0x9);
+ pI810->BR[18] = bg;
+ pI810->BR[19] = fg;
+ pI810->BR[13] = (pScrn->displayWidth * pI810->cpp);
+ pI810->BR[13] |= XAAGetPatternROP(rop) << 16;
+ if (bg == -1)
+ pI810->BR[13] |= BR13_MONO_PATN_TRANS;
+}
+
+static void
+I810SubsequentMono8x8PatternFillRect(ScrnInfoPtr pScrn, int pattx, int patty,
+ int x, int y, int w, int h)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int addr =
+ pI810->bufferOffset + (y * pScrn->displayWidth + x) * pI810->cpp;
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810Subsequent8x8PatternColorExpand\n");
+
+ {
+ BEGIN_LP_RING(12);
+ OUT_RING(pI810->BR[0] | ((y << 5) & BR00_PAT_VERT_ALIGN));
+ OUT_RING(pI810->BR[13]);
+ OUT_RING((h << 16) | (w * pI810->cpp));
+ OUT_RING(addr);
+ OUT_RING(pI810->BR[13] & 0xFFFF); /* src pitch */
+ OUT_RING(addr); /* src addr */
+ OUT_RING(0); /* transparency color */
+ OUT_RING(pI810->BR[18]); /* bg */
+ OUT_RING(pI810->BR[19]); /* fg */
+ OUT_RING(pattx); /* pattern data */
+ OUT_RING(patty);
+ OUT_RING(0);
+ ADVANCE_LP_RING();
+ }
+}
+
+static void
+I810GetNextScanlineColorExpandBuffer(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ XAAInfoRecPtr infoPtr = pI810->AccelInfoRec;
+
+ if (pI810->nextColorExpandBuf == pI810->NumScanlineColorExpandBuffers)
+ I810Sync(pScrn);
+
+ infoPtr->ScanlineColorExpandBuffers[0] =
+ pI810->ScanlineColorExpandBuffers[pI810->nextColorExpandBuf];
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("using color expand buffer %d\n", pI810->nextColorExpandBuf);
+
+ pI810->nextColorExpandBuf++;
+}
+
+static void
+I810SetupForScanlineCPUToScreenColorExpandFill(ScrnInfoPtr pScrn,
+ int fg, int bg, int rop,
+ unsigned int planemask)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SetupForScanlineScreenToScreenColorExpand %d %d %x %x\n",
+ fg, bg, rop, planemask);
+
+ pI810->BR[13] = (pScrn->displayWidth * pI810->cpp);
+ pI810->BR[13] |= XAAGetCopyROP(rop) << 16;
+ pI810->BR[13] |= (1 << 27);
+ if (bg == -1)
+ pI810->BR[13] |= BR13_MONO_TRANSPCY;
+
+ pI810->BR[18] = bg;
+ pI810->BR[19] = fg;
+
+ I810GetNextScanlineColorExpandBuffer(pScrn);
+}
+
+static void
+I810SubsequentScanlineCPUToScreenColorExpandFill(ScrnInfoPtr pScrn,
+ int x, int y,
+ int w, int h, int skipleft)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SubsequentScanlineCPUToScreenColorExpandFill "
+ "%d,%d %dx%x %d\n", x, y, w, h, skipleft);
+
+ pI810->BR[0] = BR00_BITBLT_CLIENT | BR00_OP_MONO_SRC_COPY_BLT | 0x06;
+ pI810->BR[9] = (pI810->bufferOffset +
+ (y * pScrn->displayWidth + x) * pI810->cpp);
+ pI810->BR[14] = ((1 << 16) | (w * pI810->cpp));
+ pI810->BR[11] = ((w + 31) / 32) - 1;
+}
+
+static void
+I810SubsequentColorExpandScanline(ScrnInfoPtr pScrn, int bufno)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ pI810->BR[12] = (pI810->AccelInfoRec->ScanlineColorExpandBuffers[0] -
+ pI810->FbBase);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SubsequentColorExpandScanline %d (addr %x)\n",
+ bufno, pI810->BR[12]);
+
+ {
+ BEGIN_LP_RING(8);
+ OUT_RING(pI810->BR[0]);
+ OUT_RING(pI810->BR[13]);
+ OUT_RING(pI810->BR[14]);
+ OUT_RING(pI810->BR[9]);
+ OUT_RING(pI810->BR[11]);
+ OUT_RING(pI810->BR[12]); /* srcaddr */
+ OUT_RING(pI810->BR[18]);
+ OUT_RING(pI810->BR[19]);
+ ADVANCE_LP_RING();
+ }
+
+ /* Advance to next scanline.
+ */
+ pI810->BR[9] += pScrn->displayWidth * pI810->cpp;
+ I810GetNextScanlineColorExpandBuffer(pScrn);
+}
+
+void
+I810EmitFlush(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ BEGIN_LP_RING(2);
+ OUT_RING(INST_PARSER_CLIENT | INST_OP_FLUSH | INST_FLUSH_MAP_CACHE);
+ OUT_RING(0);
+ ADVANCE_LP_RING();
+}
+
+void
+I810SelectBuffer(ScrnInfoPtr pScrn, int buffer)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ switch (buffer) {
+ case I810_SELECT_BACK:
+ pI810->bufferOffset = pI810->BackBuffer.Start;
+ break;
+ case I810_SELECT_DEPTH:
+ pI810->bufferOffset = pI810->DepthBuffer.Start;
+ break;
+ default:
+ case I810_SELECT_FRONT:
+ pI810->bufferOffset = pI810->FrontBuffer.Start;
+ break;
+ }
+
+ if (I810_DEBUG & DEBUG_VERBOSE_ACCEL)
+ ErrorF("I810SelectBuffer %d --> offset %x\n",
+ buffer, pI810->bufferOffset);
+}
+
+void
+I810RefreshRing(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ pI810->LpRing->head = INREG(LP_RING + RING_HEAD) & HEAD_ADDR;
+ pI810->LpRing->tail = INREG(LP_RING + RING_TAIL);
+ pI810->LpRing->space = pI810->LpRing->head - (pI810->LpRing->tail + 8);
+ if (pI810->LpRing->space < 0)
+ pI810->LpRing->space += pI810->LpRing->mem.Size;
+
+ if (pI810->AccelInfoRec)
+ pI810->AccelInfoRec->NeedToSync = TRUE;
+}
+
+/* Emit on gaining VT?
+ */
+void
+I810EmitInvarientState(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ BEGIN_LP_RING(10);
+
+ OUT_RING(INST_PARSER_CLIENT | INST_OP_FLUSH | INST_FLUSH_MAP_CACHE);
+ OUT_RING(GFX_CMD_CONTEXT_SEL | CS_UPDATE_USE | CS_USE_CTX0);
+ OUT_RING(INST_PARSER_CLIENT | INST_OP_FLUSH | INST_FLUSH_MAP_CACHE);
+ OUT_RING(0);
+
+ OUT_RING(GFX_OP_COLOR_CHROMA_KEY);
+ OUT_RING(CC1_UPDATE_KILL_WRITE |
+ CC1_DISABLE_KILL_WRITE |
+ CC1_UPDATE_COLOR_IDX |
+ CC1_UPDATE_CHROMA_LOW | CC1_UPDATE_CHROMA_HI | 0);
+ OUT_RING(0);
+ OUT_RING(0);
+
+/* OUT_RING( CMD_OP_Z_BUFFER_INFO ); */
+/* OUT_RING( pI810->DepthBuffer.Start | pI810->auxPitchBits); */
+
+ ADVANCE_LP_RING();
+}
+
diff --git a/src/legacy/i810/i810_common.h b/src/legacy/i810/i810_common.h
new file mode 100644
index 0000000..14b2993
--- /dev/null
+++ b/src/legacy/i810/i810_common.h
@@ -0,0 +1,321 @@
+/* i810_common.h -- common header definitions for I810 2D/3D/DRM suite
+ *
+ * Copyright 2002 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Converted to common header format:
+ * Jens Owen <jens@tungstengraphics.com>
+ *
+ *
+ */
+
+/* WARNING: If you change any of these defines, make sure to change
+ * the kernel include file as well (i810_drm.h)
+ */
+
+#ifndef _I810_COMMON_H_
+#define _I810_COMMON_H_
+
+/* Provide substitutes for gcc's __FUNCTION__ on other compilers */
+#if !defined(__GNUC__) && !defined(__FUNCTION__)
+# if defined(__STDC__) && (__STDC_VERSION__>=199901L) /* C99 */
+# define __FUNCTION__ __func__
+# else
+# define __FUNCTION__ ""
+# endif
+#endif
+
+#define PFX __FILE__,__LINE__,__FUNCTION__
+#define FUNCTION_NAME __FUNCTION__
+
+#define KB(x) ((x) * 1024)
+#define MB(x) ((x) * KB(1024))
+
+#define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1))
+
+/* Using usleep() makes things noticably slow. */
+#if 0
+#define DELAY(x) usleep(x)
+#else
+#define DELAY(x) do {;} while (0)
+#endif
+
+#define PrintErrorState I810PrintErrorState
+#define WaitRingFunc I810WaitLpRing
+#define RecPtr pI810
+
+static inline void memset_volatile(volatile void *b, int c, size_t len)
+{
+ int i;
+
+ for (i = 0; i < len; i++)
+ ((volatile char *)b)[i] = c;
+}
+
+static inline void memcpy_volatile(volatile void *dst, const void *src,
+ size_t len)
+{
+ int i;
+
+ for (i = 0; i < len; i++)
+ ((volatile char *)dst)[i] = ((volatile char *)src)[i];
+}
+
+/* Memory mapped register access macros */
+#define INREG8(addr) *(volatile uint8_t *)(RecPtr->MMIOBase + (addr))
+#define INREG16(addr) *(volatile uint16_t *)(RecPtr->MMIOBase + (addr))
+#define INREG(addr) *(volatile uint32_t *)(RecPtr->MMIOBase + (addr))
+#define INGTT(addr) *(volatile uint32_t *)(RecPtr->GTTBase + (addr))
+#define POSTING_READ(addr) (void)INREG(addr)
+
+#define OUTREG8(addr, val) do { \
+ *(volatile uint8_t *)(RecPtr->MMIOBase + (addr)) = (val); \
+ if (I810_DEBUG&DEBUG_VERBOSE_OUTREG) { \
+ ErrorF("OUTREG8(0x%lx, 0x%lx) in %s\n", (unsigned long)(addr), \
+ (unsigned long)(val), FUNCTION_NAME); \
+ } \
+} while (0)
+
+#define OUTREG16(addr, val) do { \
+ *(volatile uint16_t *)(RecPtr->MMIOBase + (addr)) = (val); \
+ if (I810_DEBUG&DEBUG_VERBOSE_OUTREG) { \
+ ErrorF("OUTREG16(0x%lx, 0x%lx) in %s\n", (unsigned long)(addr), \
+ (unsigned long)(val), FUNCTION_NAME); \
+ } \
+} while (0)
+
+#define OUTREG(addr, val) do { \
+ *(volatile uint32_t *)(RecPtr->MMIOBase + (addr)) = (val); \
+ if (I810_DEBUG&DEBUG_VERBOSE_OUTREG) { \
+ ErrorF("OUTREG(0x%lx, 0x%lx) in %s\n", (unsigned long)(addr), \
+ (unsigned long)(val), FUNCTION_NAME); \
+ } \
+} while (0)
+
+/* To remove all debugging, make sure I810_DEBUG is defined as a
+ * preprocessor symbol, and equal to zero.
+ */
+#if 1
+#define I810_DEBUG 0
+#endif
+#ifndef I810_DEBUG
+#warning "Debugging enabled - expect reduced performance"
+extern int I810_DEBUG;
+#endif
+
+#define DEBUG_VERBOSE_ACCEL 0x1
+#define DEBUG_VERBOSE_SYNC 0x2
+#define DEBUG_VERBOSE_VGA 0x4
+#define DEBUG_VERBOSE_RING 0x8
+#define DEBUG_VERBOSE_OUTREG 0x10
+#define DEBUG_VERBOSE_MEMORY 0x20
+#define DEBUG_VERBOSE_CURSOR 0x40
+#define DEBUG_ALWAYS_SYNC 0x80
+#define DEBUG_VERBOSE_DRI 0x100
+#define DEBUG_VERBOSE_BIOS 0x200
+
+/* Size of the mmio region.
+ */
+#define I810_REG_SIZE 0x80000
+
+#define GTT_PAGE_SIZE KB(4)
+#define PRIMARY_RINGBUFFER_SIZE KB(128)
+#define MIN_SCRATCH_BUFFER_SIZE KB(16)
+#define MAX_SCRATCH_BUFFER_SIZE KB(64)
+#define HWCURSOR_SIZE GTT_PAGE_SIZE
+#define HWCURSOR_SIZE_ARGB GTT_PAGE_SIZE * 4
+
+/* Use a 64x64 HW cursor */
+#define I810_CURSOR_X 64
+#define I810_CURSOR_Y I810_CURSOR_X
+
+#define PIPE_NAME(n) ('A' + (n))
+
+extern struct pci_device *
+intel_host_bridge (void);
+
+/**
+ * Hints to CreatePixmap to tell the driver how the pixmap is going to be
+ * used.
+ *
+ * Compare to CREATE_PIXMAP_USAGE_* in the server.
+ */
+enum {
+ INTEL_CREATE_PIXMAP_TILING_X = 0x10000000,
+ INTEL_CREATE_PIXMAP_TILING_Y,
+ INTEL_CREATE_PIXMAP_TILING_NONE,
+};
+
+#ifndef _I810_DEFINES_
+#define _I810_DEFINES_
+#define I810_USE_BATCH 1
+
+#define I810_DMA_BUF_ORDER 12
+#define I810_DMA_BUF_SZ (1<<I810_DMA_BUF_ORDER)
+#define I810_DMA_BUF_NR 256
+
+#define I810_NR_SAREA_CLIPRECTS 8
+
+/* Each region is a minimum of 64k, and there are at most 64 of them.
+ */
+#define I810_NR_TEX_REGIONS 64
+#define I810_LOG_MIN_TEX_REGION_SIZE 16
+
+/* Destbuffer state
+ * - backbuffer linear offset and pitch -- invarient in the current dri
+ * - zbuffer linear offset and pitch -- also invarient
+ * - drawing origin in back and depth buffers.
+ *
+ * Keep the depth/back buffer state here to acommodate private buffers
+ * in the future.
+ */
+#define I810_DESTREG_DI0 0 /* CMD_OP_DESTBUFFER_INFO (2 dwords) */
+#define I810_DESTREG_DI1 1
+#define I810_DESTREG_DV0 2 /* GFX_OP_DESTBUFFER_VARS (2 dwords) */
+#define I810_DESTREG_DV1 3
+#define I810_DESTREG_DR0 4 /* GFX_OP_DRAWRECT_INFO (4 dwords) */
+#define I810_DESTREG_DR1 5
+#define I810_DESTREG_DR2 6
+#define I810_DESTREG_DR3 7
+#define I810_DESTREG_DR4 8
+#define I810_DEST_SETUP_SIZE 10
+
+/* Context state
+ */
+#define I810_CTXREG_CF0 0 /* GFX_OP_COLOR_FACTOR */
+#define I810_CTXREG_CF1 1
+#define I810_CTXREG_ST0 2 /* GFX_OP_STIPPLE */
+#define I810_CTXREG_ST1 3
+#define I810_CTXREG_VF 4 /* GFX_OP_VERTEX_FMT */
+#define I810_CTXREG_MT 5 /* GFX_OP_MAP_TEXELS */
+#define I810_CTXREG_MC0 6 /* GFX_OP_MAP_COLOR_STAGES - stage 0 */
+#define I810_CTXREG_MC1 7 /* GFX_OP_MAP_COLOR_STAGES - stage 1 */
+#define I810_CTXREG_MC2 8 /* GFX_OP_MAP_COLOR_STAGES - stage 2 */
+#define I810_CTXREG_MA0 9 /* GFX_OP_MAP_ALPHA_STAGES - stage 0 */
+#define I810_CTXREG_MA1 10 /* GFX_OP_MAP_ALPHA_STAGES - stage 1 */
+#define I810_CTXREG_MA2 11 /* GFX_OP_MAP_ALPHA_STAGES - stage 2 */
+#define I810_CTXREG_SDM 12 /* GFX_OP_SRC_DEST_MONO */
+#define I810_CTXREG_FOG 13 /* GFX_OP_FOG_COLOR */
+#define I810_CTXREG_B1 14 /* GFX_OP_BOOL_1 */
+#define I810_CTXREG_B2 15 /* GFX_OP_BOOL_2 */
+#define I810_CTXREG_LCS 16 /* GFX_OP_LINEWIDTH_CULL_SHADE_MODE */
+#define I810_CTXREG_PV 17 /* GFX_OP_PV_RULE -- Invarient! */
+#define I810_CTXREG_ZA 18 /* GFX_OP_ZBIAS_ALPHAFUNC */
+#define I810_CTXREG_AA 19 /* GFX_OP_ANTIALIAS */
+#define I810_CTX_SETUP_SIZE 20
+
+/* Texture state (per tex unit)
+ */
+#define I810_TEXREG_MI0 0 /* GFX_OP_MAP_INFO (4 dwords) */
+#define I810_TEXREG_MI1 1
+#define I810_TEXREG_MI2 2
+#define I810_TEXREG_MI3 3
+#define I810_TEXREG_MF 4 /* GFX_OP_MAP_FILTER */
+#define I810_TEXREG_MLC 5 /* GFX_OP_MAP_LOD_CTL */
+#define I810_TEXREG_MLL 6 /* GFX_OP_MAP_LOD_LIMITS */
+#define I810_TEXREG_MCS 7 /* GFX_OP_MAP_COORD_SETS ??? */
+#define I810_TEX_SETUP_SIZE 8
+
+/* Driver specific DRM command indices
+ * NOTE: these are not OS specific, but they are driver specific
+ */
+#define DRM_I810_INIT 0x00
+#define DRM_I810_VERTEX 0x01
+#define DRM_I810_CLEAR 0x02
+#define DRM_I810_FLUSH 0x03
+#define DRM_I810_GETAGE 0x04
+#define DRM_I810_GETBUF 0x05
+#define DRM_I810_SWAP 0x06
+#define DRM_I810_COPY 0x07
+#define DRM_I810_DOCOPY 0x08
+#define DRM_I810_OV0INFO 0x09
+#define DRM_I810_FSTATUS 0x0a
+#define DRM_I810_OV0FLIP 0x0b
+#define DRM_I810_MC 0x0c
+#define DRM_I810_RSTATUS 0x0d
+#define DRM_I810_FLIP 0x0e
+
+#endif
+
+typedef enum _drmI810Initfunc {
+ I810_INIT_DMA = 0x01,
+ I810_CLEANUP_DMA = 0x02,
+ I810_INIT_DMA_1_4 = 0x03
+} drmI810Initfunc;
+
+typedef struct {
+ drmI810Initfunc func;
+ unsigned int mmio_offset;
+ unsigned int buffers_offset;
+ int sarea_priv_offset;
+ unsigned int ring_start;
+ unsigned int ring_end;
+ unsigned int ring_size;
+ unsigned int front_offset;
+ unsigned int back_offset;
+ unsigned int depth_offset;
+ unsigned int overlay_offset;
+ unsigned int overlay_physical;
+ unsigned int w;
+ unsigned int h;
+ unsigned int pitch;
+ unsigned int pitch_bits;
+} drmI810Init;
+
+typedef struct {
+ void *virtual;
+ int request_idx;
+ int request_size;
+ int granted;
+} drmI810DMA;
+
+/* Flags for clear ioctl
+ */
+#define I810_FRONT 0x1
+#define I810_BACK 0x2
+#define I810_DEPTH 0x4
+
+typedef struct {
+ int clear_color;
+ int clear_depth;
+ int flags;
+} drmI810Clear;
+
+typedef struct {
+ int idx; /* buffer index */
+ int used; /* nr bytes in use */
+ int discard; /* client is finished with the buffer? */
+} drmI810Vertex;
+
+/* Flags for vertex ioctl
+ */
+#define PR_TRIANGLES (0x0<<18)
+#define PR_TRISTRIP_0 (0x1<<18)
+#define PR_TRISTRIP_1 (0x2<<18)
+#define PR_TRIFAN (0x3<<18)
+#define PR_POLYGON (0x4<<18)
+#define PR_LINES (0x5<<18)
+#define PR_LINESTRIP (0x6<<18)
+#define PR_RECTS (0x7<<18)
+#define PR_MASK (0x7<<18)
+
+#endif
diff --git a/src/legacy/i810/i810_cursor.c b/src/legacy/i810/i810_cursor.c
new file mode 100644
index 0000000..898a136
--- /dev/null
+++ b/src/legacy/i810/i810_cursor.c
@@ -0,0 +1,266 @@
+
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ *
+ * Add ARGB HW cursor support:
+ * Alan Hourihane <alanh@tungstengraphics.com>
+ *
+ */
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "compiler.h"
+
+#include "xf86fbman.h"
+
+#include "i810.h"
+
+static Bool I810UseHWCursorARGB(ScreenPtr pScreen, CursorPtr pCurs);
+static void I810LoadCursorARGB(ScrnInfoPtr pScrn, CursorPtr pCurs);
+static void I810LoadCursorImage(ScrnInfoPtr pScrn, unsigned char *src);
+static void I810ShowCursor(ScrnInfoPtr pScrn);
+static void I810HideCursor(ScrnInfoPtr pScrn);
+static void I810SetCursorColors(ScrnInfoPtr pScrn, int bg, int fb);
+static void I810SetCursorPosition(ScrnInfoPtr pScrn, int x, int y);
+static Bool I810UseHWCursor(ScreenPtr pScrn, CursorPtr pCurs);
+
+Bool
+I810CursorInit(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn;
+ I810Ptr pI810;
+ xf86CursorInfoPtr infoPtr;
+
+ pScrn = xf86Screens[pScreen->myNum];
+ pI810 = I810PTR(pScrn);
+ pI810->CursorInfoRec = infoPtr = xf86CreateCursorInfoRec();
+ if (!infoPtr)
+ return FALSE;
+
+ infoPtr->MaxWidth = 64;
+ infoPtr->MaxHeight = 64;
+ infoPtr->Flags = (HARDWARE_CURSOR_TRUECOLOR_AT_8BPP |
+ HARDWARE_CURSOR_BIT_ORDER_MSBFIRST |
+ HARDWARE_CURSOR_INVERT_MASK |
+ HARDWARE_CURSOR_SWAP_SOURCE_AND_MASK |
+ HARDWARE_CURSOR_AND_SOURCE_WITH_MASK |
+ HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_64 | 0);
+
+ infoPtr->SetCursorColors = I810SetCursorColors;
+ infoPtr->SetCursorPosition = I810SetCursorPosition;
+ infoPtr->LoadCursorImage = I810LoadCursorImage;
+ infoPtr->HideCursor = I810HideCursor;
+ infoPtr->ShowCursor = I810ShowCursor;
+ infoPtr->UseHWCursor = I810UseHWCursor;
+#ifdef ARGB_CURSOR
+ pI810->CursorIsARGB = FALSE;
+
+ if (!pI810->CursorARGBPhysical) {
+ infoPtr->UseHWCursorARGB = I810UseHWCursorARGB;
+ infoPtr->LoadCursorARGB = I810LoadCursorARGB;
+ }
+#endif
+
+ return xf86InitCursor(pScreen, infoPtr);
+}
+
+#ifdef ARGB_CURSOR
+#include "cursorstr.h"
+
+static Bool I810UseHWCursorARGB (ScreenPtr pScreen, CursorPtr pCurs)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (!pI810->CursorARGBPhysical)
+ return FALSE;
+
+ if (pCurs->bits->height <= 64 && pCurs->bits->width <= 64)
+ return TRUE;
+
+ return FALSE;
+}
+
+static void I810LoadCursorARGB (ScrnInfoPtr pScrn, CursorPtr pCurs)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ uint32_t *pcurs = (uint32_t *) (pI810->FbBase + pI810->CursorStart);
+ uint32_t *image = (uint32_t *) pCurs->bits->argb;
+ int x, y, w, h;
+
+#ifdef ARGB_CURSOR
+ pI810->CursorIsARGB = TRUE;
+#endif
+
+ w = pCurs->bits->width;
+ h = pCurs->bits->height;
+
+ for (y = 0; y < h; y++)
+ {
+ for (x = 0; x < w; x++)
+ *pcurs++ = *image++;
+ for (; x < 64; x++)
+ *pcurs++ = 0;
+ }
+
+ for (; y < 64; y++)
+ for (x = 0; x < 64; x++)
+ *pcurs++ = 0;
+}
+#endif
+
+static Bool
+I810UseHWCursor(ScreenPtr pScreen, CursorPtr pCurs)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (!pI810->CursorPhysical)
+ return FALSE;
+ else
+ return TRUE;
+}
+
+static void
+I810LoadCursorImage(ScrnInfoPtr pScrn, unsigned char *src)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ uint8_t *pcurs = (uint8_t *) (pI810->FbBase + pI810->CursorStart);
+ int x, y;
+
+#ifdef ARGB_CURSOR
+ pI810->CursorIsARGB = FALSE;
+#endif
+
+ for (y = 0; y < 64; y++) {
+ for (x = 0; x < 64 / 4; x++) {
+ *pcurs++ = *src++;
+ }
+ }
+}
+
+static void
+I810SetCursorPosition(ScrnInfoPtr pScrn, int x, int y)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int flag;
+
+ x += pI810->CursorOffset;
+
+ if (x >= 0)
+ flag = CURSOR_X_POS;
+ else {
+ flag = CURSOR_X_NEG;
+ x = -x;
+ }
+
+ OUTREG8(CURSOR_X_LO, x & 0xFF);
+ OUTREG8(CURSOR_X_HI, (((x >> 8) & 0x07) | flag));
+
+ if (y >= 0)
+ flag = CURSOR_Y_POS;
+ else {
+ flag = CURSOR_Y_NEG;
+ y = -y;
+ }
+ OUTREG8(CURSOR_Y_LO, y & 0xFF);
+ OUTREG8(CURSOR_Y_HI, (((y >> 8) & 0x07) | flag));
+
+ if (pI810->CursorIsARGB)
+ OUTREG(CURSOR_BASEADDR, pI810->CursorARGBPhysical);
+ else
+ OUTREG(CURSOR_BASEADDR, pI810->CursorPhysical);
+}
+
+static void
+I810ShowCursor(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ unsigned char tmp;
+
+ if (pI810->CursorIsARGB) {
+ OUTREG(CURSOR_BASEADDR, pI810->CursorARGBPhysical);
+ OUTREG8(CURSOR_CONTROL, CURSOR_ORIGIN_DISPLAY | CURSOR_MODE_64_ARGB_AX);
+ } else {
+ OUTREG(CURSOR_BASEADDR, pI810->CursorPhysical);
+ OUTREG8(CURSOR_CONTROL, CURSOR_ORIGIN_DISPLAY | CURSOR_MODE_64_3C);
+ }
+
+ tmp = INREG8(PIXPIPE_CONFIG_0);
+ tmp |= HW_CURSOR_ENABLE;
+ OUTREG8(PIXPIPE_CONFIG_0, tmp);
+}
+
+static void
+I810HideCursor(ScrnInfoPtr pScrn)
+{
+ unsigned char tmp;
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ tmp = INREG8(PIXPIPE_CONFIG_0);
+ tmp &= ~HW_CURSOR_ENABLE;
+ OUTREG8(PIXPIPE_CONFIG_0, tmp);
+}
+
+static void
+I810SetCursorColors(ScrnInfoPtr pScrn, int bg, int fg)
+{
+ int tmp;
+ I810Ptr pI810 = I810PTR(pScrn);
+
+#ifdef ARGB_CURSOR
+ if (pI810->CursorIsARGB)
+ return;
+#endif
+
+ tmp = INREG8(PIXPIPE_CONFIG_0);
+ tmp |= EXTENDED_PALETTE;
+ OUTREG8(PIXPIPE_CONFIG_0, tmp);
+
+ pI810->writeStandard(pI810, DACMASK, 0xFF);
+ pI810->writeStandard(pI810, DACWX, 0x04);
+
+ pI810->writeStandard(pI810, DACDATA, (bg & 0x00FF0000) >> 16);
+ pI810->writeStandard(pI810, DACDATA, (bg & 0x0000FF00) >> 8);
+ pI810->writeStandard(pI810, DACDATA, (bg & 0x000000FF));
+
+ pI810->writeStandard(pI810, DACDATA, (fg & 0x00FF0000) >> 16);
+ pI810->writeStandard(pI810, DACDATA, (fg & 0x0000FF00) >> 8);
+ pI810->writeStandard(pI810, DACDATA, (fg & 0x000000FF));
+
+ tmp = INREG8(PIXPIPE_CONFIG_0);
+ tmp &= ~EXTENDED_PALETTE;
+ OUTREG8(PIXPIPE_CONFIG_0, tmp);
+}
diff --git a/src/legacy/i810/i810_dga.c b/src/legacy/i810/i810_dga.c
new file mode 100644
index 0000000..d9ddda0
--- /dev/null
+++ b/src/legacy/i810/i810_dga.c
@@ -0,0 +1,258 @@
+/*
+ * Copyright 2000 by Alan Hourihane, Sychdyn, North Wales, UK.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Alan Hourihane not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Alan Hourihane makes no representations
+ * about the suitability of this software for any purpose. It is provided
+ * "as is" without express or implied warranty.
+ *
+ * ALAN HOURIHANE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL ALAN HOURIHANE BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Authors: Alan Hourihane, <alanh@fairlite.demon.co.uk>
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86Pci.h"
+#include "xf86PciInfo.h"
+#include "xaa.h"
+#include "xaalocal.h"
+#include "i810.h"
+#include "i810_reg.h"
+#include "dgaproc.h"
+#include "vgaHW.h"
+
+static Bool I810_OpenFramebuffer(ScrnInfoPtr, char **, unsigned char **,
+ int *, int *, int *);
+static Bool I810_SetMode(ScrnInfoPtr, DGAModePtr);
+static void I810_Sync(ScrnInfoPtr);
+static int I810_GetViewport(ScrnInfoPtr);
+static void I810_SetViewport(ScrnInfoPtr, int, int, int);
+static void I810_FillRect(ScrnInfoPtr, int, int, int, int, unsigned long);
+static void I810_BlitRect(ScrnInfoPtr, int, int, int, int, int, int);
+
+#if 0
+static void I810_BlitTransRect(ScrnInfoPtr, int, int, int, int, int, int,
+ unsigned long);
+#endif
+
+static
+DGAFunctionRec I810DGAFuncs = {
+ I810_OpenFramebuffer,
+ NULL,
+ I810_SetMode,
+ I810_SetViewport,
+ I810_GetViewport,
+ I810_Sync,
+ I810_FillRect,
+ I810_BlitRect,
+#if 0
+ I810_BlitTransRect
+#else
+ NULL
+#endif
+};
+
+Bool
+I810DGAInit(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ DGAModePtr modes = NULL, newmodes = NULL, currentMode;
+ DisplayModePtr pMode, firstMode;
+ int Bpp = pScrn->bitsPerPixel >> 3;
+ int num = 0;
+
+ pMode = firstMode = pScrn->modes;
+
+ while (pMode) {
+
+ newmodes = realloc(modes, (num + 1) * sizeof(DGAModeRec));
+
+ if (!newmodes) {
+ free(modes);
+ return FALSE;
+ }
+ modes = newmodes;
+
+ currentMode = modes + num;
+ num++;
+
+ currentMode->mode = pMode;
+ currentMode->flags = DGA_CONCURRENT_ACCESS | DGA_PIXMAP_AVAILABLE;
+ if (!pI810->noAccel)
+ currentMode->flags |= DGA_FILL_RECT | DGA_BLIT_RECT;
+ if (pMode->Flags & V_DBLSCAN)
+ currentMode->flags |= DGA_DOUBLESCAN;
+ if (pMode->Flags & V_INTERLACE)
+ currentMode->flags |= DGA_INTERLACED;
+ currentMode->byteOrder = pScrn->imageByteOrder;
+ currentMode->depth = pScrn->depth;
+ currentMode->bitsPerPixel = pScrn->bitsPerPixel;
+ currentMode->red_mask = pScrn->mask.red;
+ currentMode->green_mask = pScrn->mask.green;
+ currentMode->blue_mask = pScrn->mask.blue;
+ currentMode->visualClass = (Bpp == 1) ? PseudoColor : TrueColor;
+ currentMode->viewportWidth = pMode->HDisplay;
+ currentMode->viewportHeight = pMode->VDisplay;
+ currentMode->xViewportStep = (Bpp == 3) ? 2 : 1;
+ currentMode->yViewportStep = 1;
+ currentMode->viewportFlags = DGA_FLIP_RETRACE;
+ currentMode->offset = 0;
+ currentMode->address = pI810->FbBase;
+
+ currentMode->bytesPerScanline = ((pScrn->displayWidth * Bpp) + 3) & ~3L;
+ currentMode->imageWidth = pI810->FbMemBox.x2;
+ currentMode->imageHeight = pI810->FbMemBox.y2;
+ currentMode->pixmapWidth = currentMode->imageWidth;
+ currentMode->pixmapHeight = currentMode->imageHeight;
+ currentMode->maxViewportX = currentMode->imageWidth -
+ currentMode->viewportWidth;
+ /* this might need to get clamped to some maximum */
+ currentMode->maxViewportY = currentMode->imageHeight -
+ currentMode->viewportHeight;
+
+ pMode = pMode->next;
+ if (pMode == firstMode)
+ break;
+ }
+
+ pI810->numDGAModes = num;
+ pI810->DGAModes = modes;
+
+ return DGAInit(pScreen, &I810DGAFuncs, modes, num);
+}
+
+static DisplayModePtr I810SavedDGAModes[MAXSCREENS];
+
+static Bool
+I810_SetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
+{
+ int index = pScrn->pScreen->myNum;
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (!pMode) { /* restore the original mode */
+ if (pI810->DGAactive) {
+ pScrn->currentMode = I810SavedDGAModes[index];
+ pScrn->SwitchMode(index, pScrn->currentMode, 0);
+ pScrn->AdjustFrame(index, 0, 0, 0);
+ pI810->DGAactive = FALSE;
+ }
+ } else {
+ if (!pI810->DGAactive) {
+ I810SavedDGAModes[index] = pScrn->currentMode;
+ pI810->DGAactive = TRUE;
+ }
+
+ pScrn->SwitchMode(index, pMode->mode, 0);
+ }
+
+ return TRUE;
+}
+
+static int
+I810_GetViewport(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ return pI810->DGAViewportStatus;
+}
+
+static void
+I810_SetViewport(ScrnInfoPtr pScrn, int x, int y, int flags)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ vgaHWPtr hwp = VGAHWPTR(pScrn);
+
+ pScrn->AdjustFrame(pScrn->pScreen->myNum, x, y, flags);
+
+ /* wait for retrace */
+ while ((hwp->readST01(hwp) & 0x08)) ;
+ while (!(hwp->readST01(hwp) & 0x08)) ;
+
+ pI810->DGAViewportStatus = 0;
+}
+
+static void
+I810_FillRect(ScrnInfoPtr pScrn,
+ int x, int y, int w, int h, unsigned long color)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (pI810->AccelInfoRec) {
+ (*pI810->AccelInfoRec->SetupForSolidFill) (pScrn, color, GXcopy, ~0);
+ (*pI810->AccelInfoRec->SubsequentSolidFillRect) (pScrn, x, y, w, h);
+ SET_SYNC_FLAG(pI810->AccelInfoRec);
+ }
+}
+
+static void
+I810_Sync(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (pI810->AccelInfoRec) {
+ (*pI810->AccelInfoRec->Sync) (pScrn);
+ }
+}
+
+static void
+I810_BlitRect(ScrnInfoPtr pScrn,
+ int srcx, int srcy, int w, int h, int dstx, int dsty)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (pI810->AccelInfoRec) {
+ int xdir = ((srcx < dstx) && (srcy == dsty)) ? -1 : 1;
+ int ydir = (srcy < dsty) ? -1 : 1;
+
+ (*pI810->AccelInfoRec->SetupForScreenToScreenCopy) (pScrn, xdir, ydir,
+ GXcopy, ~0, -1);
+ (*pI810->AccelInfoRec->SubsequentScreenToScreenCopy) (pScrn, srcx, srcy,
+ dstx, dsty, w, h);
+ SET_SYNC_FLAG(pI810->AccelInfoRec);
+ }
+}
+
+#if 0
+static void
+I810_BlitTransRect(ScrnInfoPtr pScrn,
+ int srcx, int srcy,
+ int w, int h, int dstx, int dsty, unsigned long color)
+{
+
+ /* this one should be separate since the XAA function would
+ * prohibit usage of ~0 as the key */
+}
+#endif
+
+static Bool
+I810_OpenFramebuffer(ScrnInfoPtr pScrn,
+ char **name,
+ unsigned char **mem, int *size, int *offset, int *flags)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ *name = NULL; /* no special device */
+ *mem = (unsigned char *)pI810->LinearAddr;
+ *size = pI810->FbMapSize;
+ *offset = 0;
+ *flags = DGA_NEED_ROOT;
+
+ return TRUE;
+}
diff --git a/src/legacy/i810/i810_dri.c b/src/legacy/i810/i810_dri.c
new file mode 100644
index 0000000..509c141
--- /dev/null
+++ b/src/legacy/i810/i810_dri.c
@@ -0,0 +1,1414 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+#include <assert.h>
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86Priv.h"
+
+#include "xf86PciInfo.h"
+#include "xf86Pci.h"
+
+#include "windowstr.h"
+#include "shadow.h"
+#include "shadowfb.h"
+
+#include "i810.h"
+#include "i810_dri.h"
+
+static char I810KernelDriverName[] = "i810";
+static char I810ClientDriverName[] = "i810";
+
+static Bool I810CreateContext(ScreenPtr pScreen, VisualPtr visual,
+ drm_context_t hwContext, void *pVisualConfigPriv,
+ DRIContextType contextStore);
+static void I810DestroyContext(ScreenPtr pScreen, drm_context_t hwContext,
+ DRIContextType contextStore);
+static void I810DRISwapContext(ScreenPtr pScreen, DRISyncType syncType,
+ DRIContextType readContextType,
+ void *readContextStore,
+ DRIContextType writeContextType,
+ void *writeContextStore);
+static void I810DRIInitBuffers(WindowPtr pWin, RegionPtr prgn, CARD32 index);
+static void I810DRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg,
+ RegionPtr prgnSrc, CARD32 index);
+
+
+static void I810EnablePageFlip(ScreenPtr pScreen);
+static void I810DisablePageFlip(ScreenPtr pScreen);
+static void I810DRITransitionSingleToMulti3d(ScreenPtr pScreen);
+static void I810DRITransitionMultiToSingle3d(ScreenPtr pScreen);
+static void I810DRITransitionTo3d(ScreenPtr pScreen);
+static void I810DRITransitionTo2d(ScreenPtr pScreen);
+
+static void I810DRIRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox);
+
+static int i810_pitches[] = {
+ 512,
+ 1024,
+ 2048,
+ 4096,
+ 0
+};
+
+static int i810_pitch_flags[] = {
+ 0x0,
+ 0x1,
+ 0x2,
+ 0x3,
+ 0
+};
+
+static unsigned int i810_drm_version = 0;
+
+Bool
+I810CleanupDma(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ drmI810Init info;
+
+ memset(&info, 0, sizeof(drmI810Init));
+ info.func = I810_CLEANUP_DMA;
+
+ if (drmCommandWrite(pI810->drmSubFD, DRM_I810_INIT,
+ &info, sizeof(drmI810Init))) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "[dri] I810 Dma Cleanup Failed\n");
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+Bool
+I810InitDma(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810RingBuffer *ring = pI810->LpRing;
+ I810DRIPtr pI810DRI = (I810DRIPtr) pI810->pDRIInfo->devPrivate;
+ drmI810Init info;
+
+ memset(&info, 0, sizeof(drmI810Init));
+
+ info.ring_start = ring->mem.Start;
+ info.ring_end = ring->mem.End;
+ info.ring_size = ring->mem.Size;
+ info.mmio_offset = (unsigned int)pI810DRI->regs;
+ info.buffers_offset = (unsigned int)pI810->buffer_map;
+ info.sarea_priv_offset = sizeof(XF86DRISAREARec);
+
+ info.front_offset = 0;
+ info.back_offset = pI810->BackBuffer.Start;
+ info.depth_offset = pI810->DepthBuffer.Start;
+ info.overlay_offset = pI810->OverlayStart;
+ info.overlay_physical = pI810->OverlayPhysical;
+ info.w = pScrn->virtualX;
+ info.h = pScrn->virtualY;
+ info.pitch = pI810->auxPitch;
+ info.pitch_bits = pI810->auxPitchBits;
+
+ /* We require DRM v1.2 or greater. Since DRM v1.2 broke compatibility
+ * we created a new v1.4 that supports a new init function. Eventually the
+ * old init function will go away. If you change the drm interface, make a
+ * new init type too so that we can detect the new client.
+ */
+ switch(i810_drm_version) {
+ case ((1<<16) | 0):
+ case ((1<<16) | 1):
+ case ((1<<16) | 2):
+ case ((1<<16) | 3):
+ /* Use OLD drm < 1.4 init */
+ info.func = I810_INIT_DMA;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Init PRE v1.4 interface.\n");
+ break;
+ default:
+ case ((1<<16) | 4):
+ /* DRM version 1.3 or greater init */
+ info.func = I810_INIT_DMA_1_4;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "[drm] Init v1.4 interface.\n");
+ break;
+ }
+
+ if (drmCommandWrite(pI810->drmSubFD, DRM_I810_INIT,
+ &info, sizeof(drmI810Init))) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "[drm] I810 Dma Initialization failed.\n");
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+static unsigned int
+mylog2(unsigned int n)
+{
+ unsigned int log2 = 1;
+
+ while (n > 1)
+ n >>= 1, log2++;
+ return log2;
+}
+
+Bool
+I810DRIScreenInit(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ DRIInfoPtr pDRIInfo;
+ I810DRIPtr pI810DRI;
+ unsigned long tom;
+ drm_handle_t agpHandle;
+ drm_handle_t dcacheHandle;
+ int sysmem_size = 0;
+ int back_size = 0;
+ unsigned int pitch_idx = 0;
+ int bufs;
+ int width = pScrn->displayWidth * pI810->cpp;
+ int i;
+
+ /* Hardware 3D rendering only implemented for 16bpp */
+ /* And it only works for 5:6:5 (Mark) */
+ if (pScrn->depth != 16)
+ return FALSE;
+
+ /* Check that the DRI, and DRM modules have been loaded by testing
+ * for known symbols in each module. */
+ if (!xf86LoaderCheckSymbol("drmAvailable"))
+ return FALSE;
+ if (!xf86LoaderCheckSymbol("DRIQueryVersion")) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] I810DRIScreenInit failed (libdri.a too old)\n");
+ return FALSE;
+ }
+
+ /* adjust width first */
+#define Elements(x) sizeof(x)/sizeof(*x)
+ for (pitch_idx = 0; pitch_idx < Elements(i810_pitches); pitch_idx++)
+ if (width <= i810_pitches[pitch_idx])
+ break;
+
+ if (pitch_idx == Elements(i810_pitches)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[dri] Couldn't find depth/back buffer pitch");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ } else {
+ /* for tiled memory to work, the buffer needs to have the
+ * number of lines as a multiple of 16 (the tile size),
+ * - airlied */
+ int lines = (pScrn->virtualY + 15) / 16 * 16;
+ back_size = i810_pitches[pitch_idx] * lines;
+ back_size = ((back_size + 4096 - 1) / 4096) * 4096;
+ }
+
+ pScrn->displayWidth = i810_pitches[pitch_idx] / pI810->cpp;
+
+ /* Check the DRI version */
+ {
+ int major, minor, patch;
+
+ DRIQueryVersion(&major, &minor, &patch);
+ if (major != DRIINFO_MAJOR_VERSION || minor < DRIINFO_MINOR_VERSION) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] I810DRIScreenInit failed because of a version mismatch.\n"
+ "[dri] libdri version is %d.%d.%d bug version %d.%d.x is needed.\n"
+ "[dri] Disabling DRI.\n", major, minor, patch,
+ DRIINFO_MAJOR_VERSION, DRIINFO_MINOR_VERSION);
+ return FALSE;
+ }
+ }
+
+ pDRIInfo = DRICreateInfoRec();
+ if (!pDRIInfo) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] DRICreateInfoRec failed. Disabling DRI.\n");
+ return FALSE;
+ }
+
+/* pDRIInfo->wrap.ValidateTree = 0; */
+/* pDRIInfo->wrap.PostValidateTree = 0; */
+
+ pI810->pDRIInfo = pDRIInfo;
+ pI810->LockHeld = 0;
+
+ pDRIInfo->drmDriverName = I810KernelDriverName;
+ pDRIInfo->clientDriverName = I810ClientDriverName;
+ if (xf86LoaderCheckSymbol("DRICreatePCIBusID")) {
+ pDRIInfo->busIdString = DRICreatePCIBusID(pI810->PciInfo);
+ } else {
+ pDRIInfo->busIdString = malloc(64);
+ sprintf(pDRIInfo->busIdString, "PCI:%d:%d:%d",
+ ((pI810->PciInfo->domain << 8) | pI810->PciInfo->bus),
+ pI810->PciInfo->dev, pI810->PciInfo->func
+ );
+ }
+ pDRIInfo->ddxDriverMajorVersion = I810_MAJOR_VERSION;
+ pDRIInfo->ddxDriverMinorVersion = I810_MINOR_VERSION;
+ pDRIInfo->ddxDriverPatchVersion = I810_PATCHLEVEL;
+ pDRIInfo->frameBufferPhysicalAddress = (pointer) pI810->LinearAddr;
+ pDRIInfo->frameBufferSize = (((pScrn->displayWidth *
+ pScrn->virtualY * pI810->cpp) +
+ 4096 - 1) / 4096) * 4096;
+
+ pDRIInfo->frameBufferStride = pScrn->displayWidth * pI810->cpp;
+ pDRIInfo->ddxDrawableTableEntry = I810_MAX_DRAWABLES;
+
+ if (SAREA_MAX_DRAWABLES < I810_MAX_DRAWABLES)
+ pDRIInfo->maxDrawableTableEntry = SAREA_MAX_DRAWABLES;
+ else
+ pDRIInfo->maxDrawableTableEntry = I810_MAX_DRAWABLES;
+
+ /* For now the mapping works by using a fixed size defined
+ * in the SAREA header
+ */
+ if (sizeof(XF86DRISAREARec) + sizeof(I810SAREARec) > SAREA_MAX) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] Data does not fit in SAREA\n");
+ return FALSE;
+ }
+ pDRIInfo->SAREASize = SAREA_MAX;
+
+ if (!(pI810DRI = (I810DRIPtr) calloc(sizeof(I810DRIRec), 1))) {
+ DRIDestroyInfoRec(pI810->pDRIInfo);
+ pI810->pDRIInfo = NULL;
+ return FALSE;
+ }
+ pDRIInfo->devPrivate = pI810DRI;
+ pDRIInfo->devPrivateSize = sizeof(I810DRIRec);
+ pDRIInfo->contextSize = sizeof(I810DRIContextRec);
+
+ pDRIInfo->CreateContext = I810CreateContext;
+ pDRIInfo->DestroyContext = I810DestroyContext;
+ pDRIInfo->SwapContext = I810DRISwapContext;
+ pDRIInfo->InitBuffers = I810DRIInitBuffers;
+ pDRIInfo->MoveBuffers = I810DRIMoveBuffers;
+ pDRIInfo->bufferRequests = DRI_ALL_WINDOWS;
+ pDRIInfo->TransitionTo2d = I810DRITransitionTo2d;
+ pDRIInfo->TransitionTo3d = I810DRITransitionTo3d;
+ pDRIInfo->TransitionSingleToMulti3D = I810DRITransitionSingleToMulti3d;
+ pDRIInfo->TransitionMultiToSingle3D = I810DRITransitionMultiToSingle3d;
+
+ pDRIInfo->createDummyCtx = TRUE;
+ pDRIInfo->createDummyCtxPriv = FALSE;
+
+ /* This adds the framebuffer as a drm map *before* we have asked agp
+ * to allocate it. Scary stuff, hold on...
+ */
+ if (!DRIScreenInit(pScreen, pDRIInfo, &pI810->drmSubFD)) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] DRIScreenInit failed. Disabling DRI.\n");
+ free(pDRIInfo->devPrivate);
+ pDRIInfo->devPrivate = NULL;
+ DRIDestroyInfoRec(pI810->pDRIInfo);
+ pI810->pDRIInfo = NULL;
+ return FALSE;
+ }
+
+ /* Check the i810 DRM versioning */
+ {
+ drmVersionPtr version;
+
+ /* Check the DRM lib version.
+ * drmGetLibVersion was not supported in version 1.0, so check for
+ * symbol first to avoid possible crash or hang.
+ */
+ if (xf86LoaderCheckSymbol("drmGetLibVersion")) {
+ version = drmGetLibVersion(pI810->drmSubFD);
+ } else
+ {
+ /* drmlib version 1.0.0 didn't have the drmGetLibVersion
+ * entry point. Fake it by allocating a version record
+ * via drmGetVersion and changing it to version 1.0.0
+ */
+ version = drmGetVersion(pI810->drmSubFD);
+ version->version_major = 1;
+ version->version_minor = 0;
+ version->version_patchlevel = 0;
+ }
+
+#define REQ_MAJ 1
+#define REQ_MIN 1
+ if (version) {
+ if (version->version_major != REQ_MAJ ||
+ version->version_minor < REQ_MIN) {
+ /* incompatible drm library version */
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] I810DRIScreenInit failed because of a version mismatch.\n"
+ "[dri] libdrm.a module version is %d.%d.%d but version %d.%d.x is needed.\n"
+ "[dri] Disabling DRI.\n",
+ version->version_major,
+ version->version_minor, version->version_patchlevel,
+ REQ_MAJ, REQ_MIN);
+ drmFreeVersion(version);
+ I810DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ drmFreeVersion(version);
+ }
+
+ /* Check the i810 DRM version */
+ version = drmGetVersion(pI810->drmSubFD);
+ if (version) {
+ i810_drm_version = (version->version_major<<16) |
+ version->version_minor;
+ if (version->version_major != 1 || version->version_minor < 2) {
+ /* incompatible drm version */
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] I810DRIScreenInit failed because of a version mismatch.\n"
+ "[dri] i810.o kernel module version is %d.%d.%d but version 1.2.0 or greater is needed.\n"
+ "[dri] Disabling DRI.\n",
+ version->version_major,
+ version->version_minor, version->version_patchlevel);
+ I810DRICloseScreen(pScreen);
+ drmFreeVersion(version);
+ return FALSE;
+ }
+ pI810->drmMinor = version->version_minor;
+ drmFreeVersion(version);
+ }
+ }
+
+ pI810DRI->regsSize = I810_REG_SIZE;
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->MMIOAddr,
+ pI810DRI->regsSize, DRM_REGISTERS, 0,
+ (drmAddress) &pI810DRI->regs) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "[drm] drmAddMap(regs) failed\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ xf86DrvMsg(pScreen->myNum, X_INFO, "[drm] Registers = 0x%08x\n",
+ (int)pI810DRI->regs);
+
+ pI810->backHandle = DRM_AGP_NO_HANDLE;
+ pI810->zHandle = DRM_AGP_NO_HANDLE;
+ pI810->cursorHandle = DRM_AGP_NO_HANDLE;
+ pI810->xvmcHandle = DRM_AGP_NO_HANDLE;
+ pI810->sysmemHandle = DRM_AGP_NO_HANDLE;
+ pI810->agpAcquired = FALSE;
+ pI810->dcacheHandle = DRM_AGP_NO_HANDLE;
+
+ /* Agp Support - Need this just to get the framebuffer.
+ */
+ if (drmAgpAcquire(pI810->drmSubFD) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "[agp] drmAgpAquire failed\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ pI810->agpAcquired = TRUE;
+
+ if (drmAgpEnable(pI810->drmSubFD, 0) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "[agp] drmAgpEnable failed\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ memset(&pI810->DcacheMem, 0, sizeof(I810MemRange));
+ memset(&pI810->BackBuffer, 0, sizeof(I810MemRange));
+ memset(&pI810->DepthBuffer, 0, sizeof(I810MemRange));
+ pI810->CursorPhysical = 0;
+ pI810->CursorARGBPhysical = 0;
+
+ /* Dcache - half the speed of normal ram, but has use as a Z buffer
+ * under the DRI.
+ */
+
+ drmAgpAlloc(pI810->drmSubFD, 4096 * 1024, 1, NULL,
+ (drmAddress) &dcacheHandle);
+ pI810->dcacheHandle = dcacheHandle;
+
+ xf86DrvMsg(pScreen->myNum, X_INFO, "[agp] dcacheHandle : 0x%x\n",
+ (int)dcacheHandle);
+
+ sysmem_size = pScrn->videoRam * 1024;
+ if (dcacheHandle != DRM_AGP_NO_HANDLE) {
+ if (back_size > 4 * 1024 * 1024) {
+ xf86DrvMsg(pScreen->myNum, X_INFO,
+ "[dri] Backsize is larger then 4 meg\n");
+ sysmem_size = sysmem_size - 2 * back_size;
+ drmAgpFree(pI810->drmSubFD, dcacheHandle);
+ pI810->dcacheHandle = dcacheHandle = DRM_AGP_NO_HANDLE;
+ } else {
+ sysmem_size = sysmem_size - back_size;
+ }
+ } else {
+ sysmem_size = sysmem_size - 2 * back_size;
+ }
+
+ /* Max size is 48 without XvMC, 41 with 6 surfaces, 40 with 7 surfaces */
+ if (pI810->numSurfaces && (pI810->numSurfaces == 6)) {
+ if (sysmem_size > (pI810->FbMapSize - 7 * 1024 * 1024)) {
+ sysmem_size = (pI810->FbMapSize - 7 * 1024 * 1024);
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "User requested more memory then fits in the agp aperture\n"
+ "Truncating to %d bytes of memory\n", sysmem_size);
+ }
+ }
+ if (pI810->numSurfaces && (pI810->numSurfaces == 7)) {
+ if (sysmem_size > (pI810->FbMapSize - 8 * 1024 * 1024)) {
+ sysmem_size = (pI810->FbMapSize - 8 * 1024 * 1024);
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "User requested more memory then fits in the agp aperture\n"
+ "Truncating to %d bytes of memory\n", sysmem_size);
+ }
+ }
+
+ if (sysmem_size > pI810->FbMapSize) {
+ sysmem_size = pI810->FbMapSize;
+
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[dri] User requested more memory then fits in the agp"
+ " aperture\n\tTruncating to %d bytes of memory\n",
+ sysmem_size);
+ }
+
+ sysmem_size -= 4096; /* remove 4k for the hw cursor */
+ sysmem_size -= 16384; /* remove 16k for the ARGB hw cursor */
+
+ pI810->SysMem.Start = 0;
+ pI810->SysMem.Size = sysmem_size;
+ pI810->SysMem.End = sysmem_size;
+ tom = sysmem_size;
+
+ pI810->SavedSysMem = pI810->SysMem;
+
+ if (dcacheHandle != DRM_AGP_NO_HANDLE) {
+ if (drmAgpBind(pI810->drmSubFD, dcacheHandle, pI810->DepthOffset) == 0) {
+ memset(&pI810->DcacheMem, 0, sizeof(I810MemRange));
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: Found 4096K Z buffer memory\n");
+ pI810->DcacheMem.Start = pI810->DepthOffset;
+ pI810->DcacheMem.Size = 1024 * 4096;
+ pI810->DcacheMem.End =
+ pI810->DcacheMem.Start + pI810->DcacheMem.Size;
+ if (!I810AllocLow
+ (&(pI810->DepthBuffer), &(pI810->DcacheMem), back_size)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] Depth buffer allocation failed\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: dcache bind failed\n");
+ drmAgpFree(pI810->drmSubFD, dcacheHandle);
+ pI810->dcacheHandle = dcacheHandle = DRM_AGP_NO_HANDLE;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: no dcache memory found\n");
+ }
+
+ drmAgpAlloc(pI810->drmSubFD, back_size, 0, NULL,
+ (drmAddress) &agpHandle);
+ pI810->backHandle = agpHandle;
+
+ if (agpHandle != DRM_AGP_NO_HANDLE) {
+ if (drmAgpBind(pI810->drmSubFD, agpHandle, pI810->BackOffset) == 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] Bound backbuffer memory\n");
+
+ pI810->BackBuffer.Start = pI810->BackOffset;
+ pI810->BackBuffer.Size = back_size;
+ pI810->BackBuffer.End = (pI810->BackBuffer.Start +
+ pI810->BackBuffer.Size);
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] Unable to bind backbuffer. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[dri] Unable to allocate backbuffer memory. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ if (dcacheHandle == DRM_AGP_NO_HANDLE) {
+ drmAgpAlloc(pI810->drmSubFD, back_size, 0, NULL,
+ (drmAddress) &agpHandle);
+
+ pI810->zHandle = agpHandle;
+
+ if (agpHandle != DRM_AGP_NO_HANDLE) {
+ if (drmAgpBind(pI810->drmSubFD, agpHandle, pI810->DepthOffset) == 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] Bound depthbuffer memory\n");
+ pI810->DepthBuffer.Start = pI810->DepthOffset;
+ pI810->DepthBuffer.Size = back_size;
+ pI810->DepthBuffer.End = (pI810->DepthBuffer.Start +
+ pI810->DepthBuffer.Size);
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] Unable to bind depthbuffer. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] Unable to allocate depthbuffer memory. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ }
+
+ /* Now allocate and bind the agp space. This memory will include the
+ * regular framebuffer as well as texture memory.
+ */
+ drmAgpAlloc(pI810->drmSubFD, sysmem_size, 0, NULL,
+ (drmAddress)&agpHandle);
+ pI810->sysmemHandle = agpHandle;
+
+ if (agpHandle != DRM_AGP_NO_HANDLE) {
+ if (drmAgpBind(pI810->drmSubFD, agpHandle, 0) == 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] Bound System Texture Memory\n");
+ } else {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "[agp] Unable to bind system texture memory. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ } else {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "[agp] Unable to allocate system texture memory. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+/* Allocate 7 or 8MB for XvMC this is setup as follows to best use tiled
+ regions and required surface pitches. (Numbers are adjusted if the
+ AGP region is only 32MB
+ For numSurfaces == 6
+ 44 - 48MB = 4MB Fence, 8 Tiles wide
+ 43 - 44MB = 1MB Fence, 8 Tiles wide
+ 42 - 43MB = 1MB Fence, 4 Tiles wide
+ 41 - 42MB = 1MB Fence, 4 Tiles wide
+ For numSurfaces == 7
+ 44 - 48MB = 4MB Fence, 8 Tiles wide
+ 43 - 44MB = 1MB Fence, 8 Tiles wide
+ 42.5 - 43MB = 0.5MB Fence, 8 Tiles wide
+ 42 - 42.5MB = 0.5MB Fence, 4 Tiles wide
+ 40 - 42MB = 2MB Fence, 4 Tiles wide
+ */
+ if (pI810->numSurfaces) {
+ if (pI810->numSurfaces == 6) {
+ pI810->MC.Size = 7 * 1024 * 1024;
+ pI810->MC.Start = pI810->FbMapSize - 7 * 1024 * 1024;
+
+ }
+ if (pI810->numSurfaces == 7) {
+ pI810->MC.Size = 8 * 1024 * 1024;
+ pI810->MC.Start = pI810->FbMapSize - 8 * 1024 * 1024;
+ }
+ drmAgpAlloc(pI810->drmSubFD, pI810->MC.Size, 0, NULL,
+ (drmAddress) &agpHandle);
+
+ pI810->xvmcHandle = agpHandle;
+
+ if (agpHandle != DRM_AGP_NO_HANDLE) {
+ if (drmAgpBind(pI810->drmSubFD, agpHandle, pI810->MC.Start) == 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "GART: Allocated 7MB for HWMC\n");
+ pI810->MC.End = pI810->MC.Start + pI810->MC.Size;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "GART: HWMC bind failed\n");
+ pI810->MC.Start = 0;
+ pI810->MC.Size = 0;
+ pI810->MC.End = 0;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "GART: HWMC alloc failed\n");
+ pI810->MC.Start = 0;
+ pI810->MC.Size = 0;
+ pI810->MC.End = 0;
+ }
+ pI810->xvmcContext = 0;
+ }
+
+ drmAgpAlloc(pI810->drmSubFD, 4096, 2,
+ (unsigned long *)&pI810->CursorPhysical,
+ (drmAddress) &agpHandle);
+
+ pI810->cursorHandle = agpHandle;
+
+ if (agpHandle != DRM_AGP_NO_HANDLE) {
+ tom = sysmem_size;
+
+ if (drmAgpBind(pI810->drmSubFD, agpHandle, tom) == 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: Allocated 4K for mouse cursor image\n");
+ pI810->CursorStart = tom;
+ tom += 4096;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: cursor bind failed\n");
+ pI810->CursorPhysical = 0;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: cursor alloc failed\n");
+ pI810->CursorPhysical = 0;
+ }
+
+ drmAgpAlloc(pI810->drmSubFD, 16384, 2,
+ (unsigned long *)&pI810->CursorARGBPhysical,
+ (drmAddress) &agpHandle);
+
+ pI810->cursorARGBHandle = agpHandle;
+
+ if (agpHandle != DRM_AGP_NO_HANDLE) {
+ int r;
+
+ if ((r = drmAgpBind(pI810->drmSubFD, agpHandle, tom)) == 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: Allocated 16K for ARGB mouse cursor image\n");
+ pI810->CursorARGBStart = tom;
+ tom += 16384;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: ARGB cursor bind failed\n");
+ pI810->CursorARGBPhysical = 0;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[agp] GART: ARGB cursor alloc failed\n");
+ pI810->CursorARGBPhysical = 0;
+ }
+
+ /* Steal some of the excess cursor space for the overlay regs.
+ */
+ pI810->OverlayPhysical = pI810->CursorPhysical + 1024;
+ pI810->OverlayStart = pI810->CursorStart + 1024;
+
+ I810SetTiledMemory(pScrn, 1,
+ pI810->DepthBuffer.Start,
+ i810_pitches[pitch_idx], 8 * 1024 * 1024);
+
+ I810SetTiledMemory(pScrn, 2,
+ pI810->BackBuffer.Start,
+ i810_pitches[pitch_idx], 8 * 1024 * 1024);
+
+ /* These are for HWMC surfaces */
+ if (pI810->numSurfaces == 6) {
+ I810SetTiledMemory(pScrn, 3, pI810->MC.Start, 512, 1024 * 1024);
+
+ I810SetTiledMemory(pScrn, 4,
+ pI810->MC.Start + 1024 * 1024, 512, 1024 * 1024);
+
+ I810SetTiledMemory(pScrn, 5,
+ pI810->MC.Start + 1024 * 1024 * 2,
+ 1024, 1024 * 1024);
+
+ I810SetTiledMemory(pScrn, 6,
+ pI810->MC.Start + 1024 * 1024 * 3,
+ 1024, 4 * 1024 * 1024);
+ }
+ if (pI810->numSurfaces == 7) {
+ I810SetTiledMemory(pScrn, 3, pI810->MC.Start, 512, 2 * 1024 * 1024);
+
+ I810SetTiledMemory(pScrn, 4,
+ pI810->MC.Start + 2 * 1024 * 1024, 512, 512 * 1024);
+
+ I810SetTiledMemory(pScrn, 5,
+ pI810->MC.Start + 2 * 1024 * 1024 + 512 * 1024,
+ 1024, 512 * 1024);
+
+ I810SetTiledMemory(pScrn, 6,
+ pI810->MC.Start + 3 * 1024 * 1024,
+ 1024, 1 * 1024 * 1024);
+
+ I810SetTiledMemory(pScrn, 7,
+ pI810->MC.Start + 4 * 1024 * 1024,
+ 1024, 4 * 1024 * 1024);
+
+ }
+
+ pI810->auxPitch = i810_pitches[pitch_idx];
+ pI810->auxPitchBits = i810_pitch_flags[pitch_idx];
+ pI810->SavedDcacheMem = pI810->DcacheMem;
+ pI810DRI->backbufferSize = pI810->BackBuffer.Size;
+
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->BackBuffer.Start,
+ pI810->BackBuffer.Size, DRM_AGP, 0,
+ (drmAddress) &pI810DRI->backbuffer) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[drm] drmAddMap(backbuffer) failed. Disabling DRI\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ pI810DRI->depthbufferSize = pI810->DepthBuffer.Size;
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->DepthBuffer.Start,
+ pI810->DepthBuffer.Size, DRM_AGP, 0,
+ (drmAddress) &pI810DRI->depthbuffer) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[drm] drmAddMap(depthbuffer) failed. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ /* Allocate FrontBuffer etc. */
+ if (!I810AllocateFront(pScrn)) {
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ /* Allocate buffer memory */
+ I810AllocHigh(&(pI810->BufferMem), &(pI810->SysMem),
+ I810_DMA_BUF_NR * I810_DMA_BUF_SZ);
+
+ xf86DrvMsg(pScreen->myNum, X_INFO, "[dri] Buffer map : %lx\n",
+ pI810->BufferMem.Start);
+
+ if (pI810->BufferMem.Start == 0 ||
+ pI810->BufferMem.End - pI810->BufferMem.Start >
+ I810_DMA_BUF_NR * I810_DMA_BUF_SZ) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[dri] Not enough memory for dma buffers. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->BufferMem.Start,
+ pI810->BufferMem.Size, DRM_AGP, 0,
+ (drmAddress) &pI810->buffer_map) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[drm] drmAddMap(buffer_map) failed. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ pI810DRI->agp_buffers = pI810->buffer_map;
+ pI810DRI->agp_buf_size = pI810->BufferMem.Size;
+
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->LpRing->mem.Start,
+ pI810->LpRing->mem.Size, DRM_AGP, 0,
+ (drmAddress) &pI810->ring_map) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[drm] drmAddMap(ring_map) failed. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ /* Use the rest of memory for textures. */
+ pI810DRI->textureSize = pI810->SysMem.Size;
+
+ i = mylog2(pI810DRI->textureSize / I810_NR_TEX_REGIONS);
+
+ if (i < I810_LOG_MIN_TEX_REGION_SIZE)
+ i = I810_LOG_MIN_TEX_REGION_SIZE;
+
+ pI810DRI->logTextureGranularity = i;
+ pI810DRI->textureSize = (pI810DRI->textureSize >> i) << i; /* truncate */
+
+ if (pI810DRI->textureSize < 512 * 1024) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[drm] Less then 512k memory left for textures. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ I810AllocLow(&(pI810->TexMem), &(pI810->SysMem), pI810DRI->textureSize);
+
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t) pI810->TexMem.Start,
+ pI810->TexMem.Size, DRM_AGP, 0,
+ (drmAddress) &pI810DRI->textures) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR,
+ "[drm] drmAddMap(textures) failed. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ if ((bufs = drmAddBufs(pI810->drmSubFD,
+ I810_DMA_BUF_NR,
+ I810_DMA_BUF_SZ,
+ DRM_AGP_BUFFER, pI810->BufferMem.Start)) <= 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[drm] failure adding %d %d byte DMA buffers. Disabling DRI.\n",
+ I810_DMA_BUF_NR, I810_DMA_BUF_SZ);
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[drm] added %d %d byte DMA buffers\n", bufs, I810_DMA_BUF_SZ);
+
+ I810InitDma(pScrn);
+
+ /* Okay now initialize the dma engine */
+
+ if (!pI810DRI->irq) {
+ pI810DRI->irq = drmGetInterruptFromBusID(pI810->drmSubFD,
+ ((pI810->PciInfo->domain << 8) |
+ pI810->PciInfo->bus),
+ pI810->PciInfo->dev,
+ pI810->PciInfo->func
+ );
+ if ((drmCtlInstHandler(pI810->drmSubFD, pI810DRI->irq)) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[drm] failure adding irq handler, there is a device "
+ "already using that irq\n Consider rearranging your "
+ "PCI cards. Disabling DRI.\n");
+ DRICloseScreen(pScreen);
+ return FALSE;
+ }
+ }
+
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[drm] dma control initialized, using IRQ %d\n", pI810DRI->irq);
+
+ pI810DRI->deviceID = DEVICE_ID(pI810->PciInfo);
+ pI810DRI->width = pScrn->virtualX;
+ pI810DRI->height = pScrn->virtualY;
+ pI810DRI->mem = pScrn->videoRam * 1024;
+ pI810DRI->cpp = pI810->cpp;
+
+ pI810DRI->fbOffset = pI810->FrontBuffer.Start;
+ pI810DRI->fbStride = pI810->auxPitch;
+
+ pI810DRI->bitsPerPixel = pScrn->bitsPerPixel;
+
+ pI810DRI->textureOffset = pI810->TexMem.Start;
+
+ pI810DRI->backOffset = pI810->BackBuffer.Start;
+ pI810DRI->depthOffset = pI810->DepthBuffer.Start;
+
+ pI810DRI->ringOffset = pI810->LpRing->mem.Start;
+ pI810DRI->ringSize = pI810->LpRing->mem.Size;
+
+ pI810DRI->auxPitch = pI810->auxPitch;
+ pI810DRI->auxPitchBits = pI810->auxPitchBits;
+ pI810DRI->sarea_priv_offset = sizeof(XF86DRISAREARec);
+
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "[dri] visual configs initialized.\n");
+ pI810->pDRIInfo->driverSwapMethod = DRI_HIDE_X_CONTEXT;
+
+ return TRUE;
+}
+
+void
+I810DRICloseScreen(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810DRIPtr pI810DRI = (I810DRIPtr) pI810->pDRIInfo->devPrivate;
+
+ if (pI810DRI->irq) {
+ drmCtlUninstHandler(pI810->drmSubFD);
+ pI810DRI->irq = 0;
+ }
+
+ I810CleanupDma(pScrn);
+
+ if (pI810->dcacheHandle!=DRM_AGP_NO_HANDLE)
+ drmAgpFree(pI810->drmSubFD, pI810->dcacheHandle);
+ if (pI810->backHandle!=DRM_AGP_NO_HANDLE)
+ drmAgpFree(pI810->drmSubFD, pI810->backHandle);
+ if (pI810->zHandle!=DRM_AGP_NO_HANDLE)
+ drmAgpFree(pI810->drmSubFD, pI810->zHandle);
+ if (pI810->cursorHandle!=DRM_AGP_NO_HANDLE)
+ drmAgpFree(pI810->drmSubFD, pI810->cursorHandle);
+ if (pI810->xvmcHandle!=DRM_AGP_NO_HANDLE)
+ drmAgpFree(pI810->drmSubFD, pI810->xvmcHandle);
+ if (pI810->sysmemHandle!=DRM_AGP_NO_HANDLE)
+ drmAgpFree(pI810->drmSubFD, pI810->sysmemHandle);
+
+ if (pI810->agpAcquired == TRUE)
+ drmAgpRelease(pI810->drmSubFD);
+
+ pI810->backHandle = DRM_AGP_NO_HANDLE;
+ pI810->zHandle = DRM_AGP_NO_HANDLE;
+ pI810->cursorHandle = DRM_AGP_NO_HANDLE;
+ pI810->xvmcHandle = DRM_AGP_NO_HANDLE;
+ pI810->sysmemHandle = DRM_AGP_NO_HANDLE;
+ pI810->agpAcquired = FALSE;
+ pI810->dcacheHandle = DRM_AGP_NO_HANDLE;
+
+ DRICloseScreen(pScreen);
+
+ if (pI810->pDRIInfo) {
+ if (pI810->pDRIInfo->devPrivate) {
+ free(pI810->pDRIInfo->devPrivate);
+ pI810->pDRIInfo->devPrivate = NULL;
+ }
+ DRIDestroyInfoRec(pI810->pDRIInfo);
+ pI810->pDRIInfo = NULL;
+ }
+}
+
+static Bool
+I810CreateContext(ScreenPtr pScreen, VisualPtr visual,
+ drm_context_t hwContext, void *pVisualConfigPriv,
+ DRIContextType contextStore)
+{
+ return TRUE;
+}
+
+static void
+I810DestroyContext(ScreenPtr pScreen, drm_context_t hwContext,
+ DRIContextType contextStore)
+{
+}
+
+Bool
+I810DRIFinishScreenInit(ScreenPtr pScreen)
+{
+ I810SAREARec *sPriv = (I810SAREARec *) DRIGetSAREAPrivate(pScreen);
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr info = I810PTR(pScrn);
+
+ memset(sPriv, 0, sizeof(sPriv));
+
+ /* Have shadow run only while there is 3d active.
+ */
+ if (info->allowPageFlip && info->drmMinor >= 3) {
+ ShadowFBInit( pScreen, I810DRIRefreshArea );
+ }
+ else
+ info->allowPageFlip = 0;
+ return DRIFinishScreenInit(pScreen);
+}
+
+void
+I810DRISwapContext(ScreenPtr pScreen, DRISyncType syncType,
+ DRIContextType oldContextType, void *oldContext,
+ DRIContextType newContextType, void *newContext)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (syncType == DRI_3D_SYNC &&
+ oldContextType == DRI_2D_CONTEXT && newContextType == DRI_2D_CONTEXT) {
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("I810DRISwapContext (in)\n");
+
+ if (!pScrn->vtSema)
+ return;
+ pI810->LockHeld = 1;
+ I810RefreshRing(pScrn);
+ } else if (syncType == DRI_2D_SYNC &&
+ oldContextType == DRI_NO_CONTEXT &&
+ newContextType == DRI_2D_CONTEXT) {
+ pI810->LockHeld = 0;
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("I810DRISwapContext (out)\n");
+ } else if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("I810DRISwapContext (other)\n");
+}
+
+static void
+I810DRIInitBuffers(WindowPtr pWin, RegionPtr prgn, CARD32 index)
+{
+ ScreenPtr pScreen = pWin->drawable.pScreen;
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ BoxPtr pbox = REGION_RECTS(prgn);
+ int nbox = REGION_NUM_RECTS(prgn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("I810DRIInitBuffers\n");
+
+ I810SetupForSolidFill(pScrn, 0, GXcopy, -1);
+ while (nbox--) {
+ I810SelectBuffer(pScrn, I810_SELECT_BACK);
+ I810SubsequentSolidFillRect(pScrn, pbox->x1, pbox->y1,
+ pbox->x2 - pbox->x1, pbox->y2 - pbox->y1);
+ pbox++;
+ }
+
+ /* Clear the depth buffer - uses 0xffff rather than 0.
+ */
+ pbox = REGION_RECTS(prgn);
+ nbox = REGION_NUM_RECTS(prgn);
+ I810SelectBuffer(pScrn, I810_SELECT_DEPTH);
+ I810SetupForSolidFill(pScrn, 0xffff, GXcopy, -1);
+ while (nbox--) {
+ I810SubsequentSolidFillRect(pScrn, pbox->x1, pbox->y1,
+ pbox->x2 - pbox->x1, pbox->y2 - pbox->y1);
+ pbox++;
+ }
+ I810SelectBuffer(pScrn, I810_SELECT_FRONT);
+
+ if (pI810->AccelInfoRec)
+ pI810->AccelInfoRec->NeedToSync = TRUE;
+}
+
+/* This routine is a modified form of XAADoBitBlt with the calls to
+ * ScreenToScreenBitBlt built in. My routine has the prgnSrc as source
+ * instead of destination. My origin is upside down so the ydir cases
+ * are reversed.
+ *
+ * KW: can you believe that this is called even when a 2d window moves?
+ */
+static void
+I810DRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg,
+ RegionPtr prgnSrc, CARD32 index)
+{
+ ScreenPtr pScreen = pParent->drawable.pScreen;
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ BoxPtr pboxTmp, pboxNext, pboxBase;
+ DDXPointPtr pptTmp, pptNew2 = NULL;
+ int xdir, ydir;
+
+ int screenwidth = pScrn->virtualX;
+ int screenheight = pScrn->virtualY;
+
+ BoxPtr pbox = REGION_RECTS(prgnSrc);
+ int nbox = REGION_NUM_RECTS(prgnSrc);
+
+ BoxPtr pboxNew1 = NULL;
+ BoxPtr pboxNew2 = NULL;
+ DDXPointPtr pptNew1 = NULL;
+ DDXPointPtr pptSrc = &ptOldOrg;
+
+ int dx = pParent->drawable.x - ptOldOrg.x;
+ int dy = pParent->drawable.y - ptOldOrg.y;
+
+ /* If the copy will overlap in Y, reverse the order */
+ if (dy > 0) {
+ ydir = -1;
+
+ if (nbox > 1) {
+ /* Keep ordering in each band, reverse order of bands */
+ pboxNew1 = (BoxPtr) malloc(sizeof(BoxRec) * nbox);
+ if (!pboxNew1)
+ return;
+ pptNew1 = (DDXPointPtr) malloc(sizeof(DDXPointRec) * nbox);
+ if (!pptNew1) {
+ free(pboxNew1);
+ return;
+ }
+ pboxBase = pboxNext = pbox + nbox - 1;
+ while (pboxBase >= pbox) {
+ while ((pboxNext >= pbox) && (pboxBase->y1 == pboxNext->y1))
+ pboxNext--;
+ pboxTmp = pboxNext + 1;
+ pptTmp = pptSrc + (pboxTmp - pbox);
+ while (pboxTmp <= pboxBase) {
+ *pboxNew1++ = *pboxTmp++;
+ *pptNew1++ = *pptTmp++;
+ }
+ pboxBase = pboxNext;
+ }
+ pboxNew1 -= nbox;
+ pbox = pboxNew1;
+ pptNew1 -= nbox;
+ pptSrc = pptNew1;
+ }
+ } else {
+ /* No changes required */
+ ydir = 1;
+ }
+
+ /* If the regions will overlap in X, reverse the order */
+ if (dx > 0) {
+ xdir = -1;
+
+ if (nbox > 1) {
+ /*reverse orderof rects in each band */
+ pboxNew2 = (BoxPtr) malloc(sizeof(BoxRec) * nbox);
+ pptNew2 = (DDXPointPtr) malloc(sizeof(DDXPointRec) * nbox);
+ if (!pboxNew2 || !pptNew2) {
+ if (pptNew2)
+ free(pptNew2);
+ if (pboxNew2)
+ free(pboxNew2);
+ if (pboxNew1) {
+ free(pptNew1);
+ free(pboxNew1);
+ }
+ return;
+ }
+ pboxBase = pboxNext = pbox;
+ while (pboxBase < pbox + nbox) {
+ while ((pboxNext < pbox + nbox) && (pboxNext->y1 == pboxBase->y1))
+ pboxNext++;
+ pboxTmp = pboxNext;
+ pptTmp = pptSrc + (pboxTmp - pbox);
+ while (pboxTmp != pboxBase) {
+ *pboxNew2++ = *--pboxTmp;
+ *pptNew2++ = *--pptTmp;
+ }
+ pboxBase = pboxNext;
+ }
+ pboxNew2 -= nbox;
+ pbox = pboxNew2;
+ pptNew2 -= nbox;
+ pptSrc = pptNew2;
+ }
+ } else {
+ /* No changes are needed */
+ xdir = 1;
+ }
+
+ /* SelectBuffer isn't really a good concept for the i810.
+ */
+ I810EmitFlush(pScrn);
+ I810SetupForScreenToScreenCopy(pScrn, xdir, ydir, GXcopy, -1, -1);
+ for (; nbox--; pbox++) {
+
+ int x1 = pbox->x1;
+ int y1 = pbox->y1;
+ int destx = x1 + dx;
+ int desty = y1 + dy;
+ int w = pbox->x2 - x1 + 1;
+ int h = pbox->y2 - y1 + 1;
+
+ if (destx < 0)
+ x1 -= destx, w += destx, destx = 0;
+ if (desty < 0)
+ y1 -= desty, h += desty, desty = 0;
+ if (destx + w > screenwidth)
+ w = screenwidth - destx;
+ if (desty + h > screenheight)
+ h = screenheight - desty;
+ if (w <= 0)
+ continue;
+ if (h <= 0)
+ continue;
+
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("MoveBuffers %d,%d %dx%d dx: %d dy: %d\n",
+ x1, y1, w, h, dx, dy);
+
+ I810SelectBuffer(pScrn, I810_SELECT_BACK);
+ I810SubsequentScreenToScreenCopy(pScrn, x1, y1, destx, desty, w, h);
+ I810SelectBuffer(pScrn, I810_SELECT_DEPTH);
+ I810SubsequentScreenToScreenCopy(pScrn, x1, y1, destx, desty, w, h);
+ }
+ I810SelectBuffer(pScrn, I810_SELECT_FRONT);
+ I810EmitFlush(pScrn);
+
+ if (pboxNew2) {
+ free(pptNew2);
+ free(pboxNew2);
+ }
+ if (pboxNew1) {
+ free(pptNew1);
+ free(pboxNew1);
+ }
+
+ if (pI810->AccelInfoRec)
+ pI810->AccelInfoRec->NeedToSync = TRUE;
+}
+
+
+/* Use the miext/shadow module to maintain a list of dirty rectangles.
+ * These are blitted to the back buffer to keep both buffers clean
+ * during page-flipping when the 3d application isn't fullscreen.
+ *
+ * Unlike most use of the shadow code, both buffers are in video memory.
+ *
+ * An alternative to this would be to organize for all on-screen drawing
+ * operations to be duplicated for the two buffers. That might be
+ * faster, but seems like a lot more work...
+ */
+
+
+/* This should be done *before* XAA syncs or fires its buffer.
+ * Otherwise will have to fire it again???
+ */
+static void I810DRIRefreshArea(ScrnInfoPtr pScrn, int num, BoxPtr pbox)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int i;
+ I810SAREAPtr pSAREAPriv = DRIGetSAREAPrivate(pScrn->pScreen);
+ unsigned int br13;
+ int cpp=2;
+
+
+ /* Don't want to do this when no 3d is active and pages are
+ * right-way-round
+ */
+ if (!pSAREAPriv->pf_active && pSAREAPriv->pf_current_page == 0)
+ return;
+
+ br13 = (pI810->auxPitch) | (0xcc << 16);
+
+ for (i = 0 ; i < num ; i++, pbox++) {
+ unsigned int w = min(pbox->y2, pScrn->virtualY-1) - max(pbox->y1, 0) + 1;
+ unsigned int h = min(pbox->x2, pScrn->virtualX-1) - max(pbox->x1, 0) + 1;
+ unsigned int dst = max(pbox->x1, 0)*cpp + (max(pbox->y1, 0)*pI810->auxPitch);
+
+ BEGIN_LP_RING(6);
+
+ OUT_RING(BR00_BITBLT_CLIENT | BR00_OP_SRC_COPY_BLT | 0x4);
+ OUT_RING(br13);
+ OUT_RING( (h<<16) | (w*cpp) );
+ OUT_RING(pI810->BackBuffer.Start + dst);
+ OUT_RING(br13 & 0xffff);
+ OUT_RING(dst);
+
+ ADVANCE_LP_RING();
+ }
+
+}
+
+static void I810EnablePageFlip(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810SAREAPtr pSAREAPriv = DRIGetSAREAPrivate(pScreen);
+ int cpp=2;
+ pSAREAPriv->pf_enabled = pI810->allowPageFlip;
+ pSAREAPriv->pf_active = 0;
+
+ if (pI810->allowPageFlip) {
+ unsigned int br13 = pI810->auxPitch | (0xcc << 16);
+
+ BEGIN_LP_RING(6);
+
+ OUT_RING(BR00_BITBLT_CLIENT | BR00_OP_SRC_COPY_BLT | 0x4);
+ OUT_RING(br13);
+ OUT_RING((pScrn->virtualY << 16) | (pScrn->virtualX*cpp));
+ OUT_RING(pI810->BackBuffer.Start);
+ OUT_RING(br13 & 0xFFFF);
+ OUT_RING(0);
+ ADVANCE_LP_RING();
+
+ pSAREAPriv->pf_active = 1;
+ }
+
+}
+
+static void I810DisablePageFlip(ScreenPtr pScreen)
+{
+ I810SAREAPtr pSAREAPriv = DRIGetSAREAPrivate(pScreen);
+
+ pSAREAPriv->pf_active=0;
+}
+
+static void I810DRITransitionSingleToMulti3d(ScreenPtr pScreen)
+{
+ /* Tell the clients not to pageflip. How?
+ * -- Field in sarea, plus bumping the window counters.
+ * -- DRM needs to cope with Front-to-Back swapbuffers.
+ */
+ I810DisablePageFlip(pScreen);
+}
+
+static void I810DRITransitionMultiToSingle3d(ScreenPtr pScreen)
+{
+ /* Let the remaining 3d app start page flipping again */
+ I810EnablePageFlip(pScreen);
+}
+
+static void I810DRITransitionTo3d(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ I810EnablePageFlip(pScreen);
+ pI810->have3DWindows = 1;
+}
+
+static void I810DRITransitionTo2d(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810SAREAPtr pSAREAPriv = DRIGetSAREAPrivate(pScreen);
+
+ /* Try flipping back to the front page if necessary */
+ if (pSAREAPriv->pf_current_page == 1)
+ drmCommandNone(pI810->drmSubFD, DRM_I810_FLIP);
+
+ /* Shut down shadowing if we've made it back to the front page */
+ if (pSAREAPriv->pf_current_page == 0) {
+ I810DisablePageFlip(pScreen);
+ }
+ pI810->have3DWindows = 0;
+}
+
+Bool
+I810DRILeave(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (pI810->directRenderingEnabled) {
+ if (pI810->dcacheHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->dcacheHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
+ if (pI810->backHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->backHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
+ if (pI810->zHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->zHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
+ if (pI810->sysmemHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->sysmemHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
+ if (pI810->xvmcHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->xvmcHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
+ if (pI810->cursorHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->cursorHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
+ if (pI810->cursorARGBHandle != 0)
+ if (drmAgpUnbind(pI810->drmSubFD, pI810->cursorARGBHandle) != 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno));
+ return FALSE;
+ }
+ if (pI810->agpAcquired == TRUE)
+ drmAgpRelease(pI810->drmSubFD);
+ pI810->agpAcquired = FALSE;
+ }
+ return TRUE;
+}
+
+Bool
+I810DRIEnter(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (pI810->directRenderingEnabled) {
+
+ if (pI810->agpAcquired == FALSE)
+ drmAgpAcquire(pI810->drmSubFD);
+ pI810->agpAcquired = TRUE;
+ if (pI810->dcacheHandle != 0)
+ if (drmAgpBind(pI810->drmSubFD, pI810->dcacheHandle,
+ pI810->DepthOffset) != 0)
+ return FALSE;
+ if (pI810->backHandle != 0)
+ if (drmAgpBind(pI810->drmSubFD, pI810->backHandle,
+ pI810->BackOffset) != 0)
+ return FALSE;
+ if (pI810->zHandle != 0)
+ if (drmAgpBind(pI810->drmSubFD, pI810->zHandle,
+ pI810->DepthOffset) != 0)
+ return FALSE;
+ if (pI810->sysmemHandle != 0)
+ if (drmAgpBind(pI810->drmSubFD, pI810->sysmemHandle, 0) != 0)
+ return FALSE;
+ if (pI810->xvmcHandle != 0)
+ if (drmAgpBind(pI810->drmSubFD, pI810->xvmcHandle,
+ pI810->MC.Start) != 0)
+ return FALSE;
+ if (pI810->cursorHandle != 0)
+ if (drmAgpBind(pI810->drmSubFD, pI810->cursorHandle,
+ pI810->CursorStart) != 0)
+ return FALSE;
+ if (pI810->cursorARGBHandle != 0)
+ if (drmAgpBind(pI810->drmSubFD, pI810->cursorARGBHandle,
+ pI810->CursorARGBStart) != 0)
+ return FALSE;
+ }
+ return TRUE;
+}
diff --git a/src/legacy/i810/i810_dri.h b/src/legacy/i810/i810_dri.h
new file mode 100644
index 0000000..16b6f08
--- /dev/null
+++ b/src/legacy/i810/i810_dri.h
@@ -0,0 +1,131 @@
+
+#ifndef _I810_DRI_
+#define _I810_DRI_
+
+#include "xf86drm.h"
+#include "i810_common.h"
+
+#define I810_MAX_DRAWABLES 256
+
+#define I810_MAJOR_VERSION 1
+#define I810_MINOR_VERSION 7
+#define I810_PATCHLEVEL 4
+
+typedef struct {
+ drm_handle_t regs;
+ drmSize regsSize;
+
+ drmSize backbufferSize;
+ drm_handle_t backbuffer;
+
+ drmSize depthbufferSize;
+ drm_handle_t depthbuffer;
+
+ drm_handle_t textures;
+ int textureSize;
+
+ drm_handle_t agp_buffers;
+ drmSize agp_buf_size;
+
+ int deviceID;
+ int width;
+ int height;
+ int mem;
+ int cpp;
+ int bitsPerPixel;
+ int fbOffset;
+ int fbStride;
+
+ int backOffset;
+ int depthOffset;
+
+ int auxPitch;
+ int auxPitchBits;
+
+ int logTextureGranularity;
+ int textureOffset;
+
+ /* For non-dma direct rendering.
+ */
+ int ringOffset;
+ int ringSize;
+
+ drmBufMapPtr drmBufs;
+ int irq;
+ unsigned int sarea_priv_offset;
+
+} I810DRIRec, *I810DRIPtr;
+
+/* WARNING: Do not change the SAREA structure without changing the kernel
+ * as well */
+
+#define I810_UPLOAD_TEX0IMAGE 0x1 /* handled clientside */
+#define I810_UPLOAD_TEX1IMAGE 0x2 /* handled clientside */
+#define I810_UPLOAD_CTX 0x4
+#define I810_UPLOAD_BUFFERS 0x8
+#define I810_UPLOAD_TEX0 0x10
+#define I810_UPLOAD_TEX1 0x20
+#define I810_UPLOAD_CLIPRECTS 0x40
+
+typedef struct {
+ unsigned char next, prev; /* indices to form a circular LRU */
+ unsigned char in_use; /* owned by a client, or free? */
+ int age; /* tracked by clients to update local LRU's */
+} I810TexRegionRec, *I810TexRegionPtr;
+
+typedef struct {
+ unsigned int ContextState[I810_CTX_SETUP_SIZE];
+ unsigned int BufferState[I810_DEST_SETUP_SIZE];
+ unsigned int TexState[2][I810_TEX_SETUP_SIZE];
+ unsigned int dirty;
+
+ unsigned int nbox;
+ drm_clip_rect_t boxes[I810_NR_SAREA_CLIPRECTS];
+
+ /* Maintain an LRU of contiguous regions of texture space. If
+ * you think you own a region of texture memory, and it has an
+ * age different to the one you set, then you are mistaken and
+ * it has been stolen by another client. If global texAge
+ * hasn't changed, there is no need to walk the list.
+ *
+ * These regions can be used as a proxy for the fine-grained
+ * texture information of other clients - by maintaining them
+ * in the same lru which is used to age their own textures,
+ * clients have an approximate lru for the whole of global
+ * texture space, and can make informed decisions as to which
+ * areas to kick out. There is no need to choose whether to
+ * kick out your own texture or someone else's - simply eject
+ * them all in LRU order.
+ */
+
+ drmTextureRegion texList[I810_NR_TEX_REGIONS + 1];
+
+ /* Last elt is sentinal */
+ int texAge; /* last time texture was uploaded */
+
+ int last_enqueue; /* last time a buffer was enqueued */
+ int last_dispatch; /* age of the most recently dispatched buffer */
+ int last_quiescent; /* */
+
+ int ctxOwner; /* last context to upload state */
+
+ int vertex_prim;
+
+ int pf_enabled; /* is pageflipping allowed? */
+ int pf_active; /* is pageflipping active right now? */
+ int pf_current_page; /* which buffer is being displayed? */
+
+
+} I810SAREARec, *I810SAREAPtr;
+
+typedef struct {
+ /* Nothing here yet */
+ int dummy;
+} I810ConfigPrivRec, *I810ConfigPrivPtr;
+
+typedef struct {
+ /* Nothing here yet */
+ int dummy;
+} I810DRIContextRec, *I810DRIContextPtr;
+
+#endif
diff --git a/src/legacy/i810/i810_driver.c b/src/legacy/i810/i810_driver.c
new file mode 100644
index 0000000..3637e25
--- /dev/null
+++ b/src/legacy/i810/i810_driver.c
@@ -0,0 +1,2120 @@
+
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ *
+ * Add ARGB HW cursor support:
+ * Alan Hourihane <alanh@tungstengraphics.com>
+ *
+ */
+
+/*
+ * This server does not support these XFree86 4.0 features yet
+ * shadowFb (if requested or acceleration is off)
+ * Overlay planes
+ * DGA
+ */
+
+#include <math.h>
+#include <string.h>
+#include <unistd.h>
+
+/*
+ * These are X and server generic header files.
+ */
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "xf86cmap.h"
+
+#include "compiler.h"
+#include "mibstore.h"
+#include "vgaHW.h"
+#include "mipointer.h"
+#include "micmap.h"
+
+#include "fb.h"
+#include "miscstruct.h"
+#include "xf86xv.h"
+#include <X11/extensions/Xv.h>
+#include "vbe.h"
+
+#include "i810.h"
+
+#ifdef XF86DRI
+#include "dri.h"
+#endif
+
+#include "../legacy.h"
+
+static Bool I810PreInit(ScrnInfoPtr pScrn, int flags);
+static Bool I810ScreenInit(int Index, ScreenPtr pScreen, int argc,
+ char **argv);
+static Bool I810EnterVT(int scrnIndex, int flags);
+static void I810LeaveVT(int scrnIndex, int flags);
+static Bool I810CloseScreen(int scrnIndex, ScreenPtr pScreen);
+static Bool I810SaveScreen(ScreenPtr pScreen, Bool unblank);
+static void I810FreeScreen(int scrnIndex, int flags);
+static void I810DisplayPowerManagementSet(ScrnInfoPtr pScrn,
+ int PowerManagermentMode,
+ int flags);
+static ModeStatus I810ValidMode(int scrnIndex, DisplayModePtr mode,
+ Bool verbose, int flags);
+
+typedef enum {
+ OPTION_NOACCEL,
+ OPTION_SW_CURSOR,
+ OPTION_COLOR_KEY,
+ OPTION_CACHE_LINES,
+ OPTION_DAC_6BIT,
+ OPTION_DRI,
+ OPTION_NO_DDC,
+ OPTION_SHOW_CACHE,
+ OPTION_XVMC_SURFACES,
+ OPTION_PAGEFLIP
+} I810Opts;
+
+static const OptionInfoRec I810Options[] = {
+ {OPTION_NOACCEL, "NoAccel", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_SW_CURSOR, "SWcursor", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_COLOR_KEY, "ColorKey", OPTV_INTEGER, {0}, FALSE},
+ {OPTION_CACHE_LINES, "CacheLines", OPTV_INTEGER, {0}, FALSE},
+ {OPTION_DAC_6BIT, "Dac6Bit", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_DRI, "DRI", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_NO_DDC, "NoDDC", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_SHOW_CACHE, "ShowCache", OPTV_BOOLEAN, {0}, FALSE},
+ {OPTION_XVMC_SURFACES, "XvMCSurfaces", OPTV_INTEGER, {0}, FALSE},
+ {OPTION_PAGEFLIP, "PageFlip", OPTV_BOOLEAN, {0}, FALSE},
+ {-1, NULL, OPTV_NONE, {0}, FALSE}
+};
+/* *INDENT-ON* */
+
+#ifndef I810_DEBUG
+int I810_DEBUG = (0
+/* | DEBUG_ALWAYS_SYNC */
+/* | DEBUG_VERBOSE_ACCEL */
+/* | DEBUG_VERBOSE_SYNC */
+/* | DEBUG_VERBOSE_VGA */
+/* | DEBUG_VERBOSE_RING */
+/* | DEBUG_VERBOSE_OUTREG */
+/* | DEBUG_VERBOSE_MEMORY */
+/* | DEBUG_VERBOSE_CURSOR */
+ );
+#endif
+
+#ifdef XF86DRI
+static int i810_pitches[] = {
+ 512,
+ 1024,
+ 2048,
+ 4096,
+ 0
+};
+#endif
+
+int I830EntityIndex = -1;
+
+/*
+ * I810GetRec and I810FreeRec --
+ *
+ * Private data for the driver is stored in the screen structure.
+ * These two functions create and destroy that private data.
+ *
+ */
+static Bool
+I810GetRec(ScrnInfoPtr pScrn)
+{
+ if (pScrn->driverPrivate)
+ return TRUE;
+
+ pScrn->driverPrivate = xnfcalloc(sizeof(I810Rec), 1);
+ return TRUE;
+}
+
+static void
+I810FreeRec(ScrnInfoPtr pScrn)
+{
+ if (!pScrn)
+ return;
+ if (!pScrn->driverPrivate)
+ return;
+ free(pScrn->driverPrivate);
+ pScrn->driverPrivate = NULL;
+}
+
+struct pci_device *
+intel_host_bridge (void)
+{
+ static const struct pci_slot_match bridge_match = {
+ 0, 0, 0, PCI_MATCH_ANY, 0
+ };
+ struct pci_device_iterator *slot_iterator;
+ struct pci_device *bridge;
+
+ slot_iterator = pci_slot_match_iterator_create (&bridge_match);
+ bridge = pci_device_next (slot_iterator);
+ pci_iterator_destroy (slot_iterator);
+ return bridge;
+}
+
+static void
+I810ProbeDDC(ScrnInfoPtr pScrn, int index)
+{
+ vbeInfoPtr pVbe;
+
+ if (xf86LoadSubModule(pScrn, "vbe")) {
+ pVbe = VBEInit(NULL, index);
+ ConfiguredMonitor = vbeDoEDID(pVbe, NULL);
+ vbeFree(pVbe);
+ }
+}
+
+static xf86MonPtr
+I810DoDDC(ScrnInfoPtr pScrn, int index)
+{
+ vbeInfoPtr pVbe;
+ xf86MonPtr MonInfo = NULL;
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ /* Honour Option "noDDC" */
+ if (xf86ReturnOptValBool(pI810->Options, OPTION_NO_DDC, FALSE)) {
+ return MonInfo;
+ }
+
+ if (xf86LoadSubModule(pScrn, "vbe") && (pVbe = VBEInit(NULL, index))) {
+ MonInfo = vbeDoEDID(pVbe, NULL);
+ xf86PrintEDID(MonInfo);
+ xf86SetDDCproperties(pScrn, MonInfo);
+ vbeFree(pVbe);
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "this driver cannot do DDC without VBE\n");
+ }
+
+ return MonInfo;
+}
+
+/*
+ * I810PreInit --
+ *
+ * Do initial setup of the board before we know what resolution we will
+ * be running at.
+ *
+ */
+static Bool
+I810PreInit(ScrnInfoPtr pScrn, int flags)
+{
+ vgaHWPtr hwp;
+ I810Ptr pI810;
+ ClockRangePtr clockRanges;
+ int i;
+ MessageType from;
+ int flags24;
+ rgb defaultWeight = { 0, 0, 0 };
+ int mem;
+ Bool enable;
+ struct intel_chipset chipset;
+
+ if (pScrn->numEntities != 1)
+ return FALSE;
+
+ /* Allocate driverPrivate */
+ if (!I810GetRec(pScrn))
+ return FALSE;
+
+ pI810 = I810PTR(pScrn);
+
+ pI810->pEnt = xf86GetEntityInfo(pScrn->entityList[0]);
+ if (pI810->pEnt->location.type != BUS_PCI)
+ return FALSE;
+
+ if (flags & PROBE_DETECT) {
+ I810ProbeDDC(pScrn, pI810->pEnt->index);
+ return TRUE;
+ }
+
+ /* The vgahw module should be loaded here when needed */
+ if (!xf86LoadSubModule(pScrn, "vgahw"))
+ return FALSE;
+
+ /* Allocate a vgaHWRec */
+ if (!vgaHWGetHWRec(pScrn))
+ return FALSE;
+ hwp = VGAHWPTR(pScrn);
+ pI810->ioBase = hwp->PIOOffset;
+
+ pI810->PciInfo = xf86GetPciInfoForEntity(pI810->pEnt->index);
+
+ /* Set pScrn->monitor */
+ pScrn->monitor = pScrn->confScreen->monitor;
+
+ flags24 = Support24bppFb | PreferConvert32to24 | SupportConvert32to24;
+ if (!xf86SetDepthBpp(pScrn, 16, 0, 16, flags24)) {
+ return FALSE;
+ } else {
+ switch (pScrn->depth) {
+ case 8:
+ case 15:
+ case 16:
+ case 24:
+ break;
+ default:
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Given depth (%d) is not supported by i810 driver\n",
+ pScrn->depth);
+ return FALSE;
+ }
+ }
+ xf86PrintDepthBpp(pScrn);
+
+ switch (pScrn->bitsPerPixel) {
+ case 8:
+ case 16:
+ case 24:
+ break;
+ default:
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Given bpp (%d) is not supported by i810 driver\n",
+ pScrn->bitsPerPixel);
+ return FALSE;
+ }
+
+ if (!xf86SetWeight(pScrn, defaultWeight, defaultWeight))
+ return FALSE;
+
+ if (!xf86SetDefaultVisual(pScrn, -1))
+ return FALSE;
+
+ /* We use a programmable clock */
+ pScrn->progClock = TRUE;
+
+ pI810->cpp = pScrn->bitsPerPixel / 8;
+
+ /* Process the options */
+ xf86CollectOptions(pScrn, NULL);
+ if (!(pI810->Options = malloc(sizeof(I810Options))))
+ return FALSE;
+ memcpy(pI810->Options, I810Options, sizeof(I810Options));
+ xf86ProcessOptions(pScrn->scrnIndex, pScrn->options, pI810->Options);
+
+ pScrn->rgbBits = 8;
+ if (xf86ReturnOptValBool(pI810->Options, OPTION_DAC_6BIT, FALSE))
+ pScrn->rgbBits = 6;
+
+ if (xf86ReturnOptValBool(pI810->Options, OPTION_SHOW_CACHE, FALSE))
+ pI810->showCache = TRUE;
+ else
+ pI810->showCache = FALSE;
+
+ /* 6-BIT dac isn't reasonable for modes with > 8bpp */
+ if (xf86ReturnOptValBool(pI810->Options, OPTION_DAC_6BIT, FALSE) &&
+ pScrn->bitsPerPixel > 8) {
+ OptionInfoPtr ptr;
+
+ ptr = xf86TokenToOptinfo(pI810->Options, OPTION_DAC_6BIT);
+ ptr->found = FALSE;
+ }
+
+ if (xf86ReturnOptValBool(pI810->Options, OPTION_NOACCEL, FALSE))
+ pI810->noAccel = TRUE;
+
+ if (!pI810->noAccel) {
+ if (!xf86LoadSubModule(pScrn, "xaa")) {
+ I810FreeRec(pScrn);
+ return FALSE;
+ }
+ }
+
+#ifdef XF86DRI
+ pI810->directRenderingDisabled =
+ !xf86ReturnOptValBool(pI810->Options, OPTION_DRI, TRUE);
+
+ if (!pI810->directRenderingDisabled) {
+ if (pI810->noAccel) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "DRI is disabled because it "
+ "needs 2D acceleration.\n");
+ pI810->directRenderingDisabled=TRUE;
+ } else if (pScrn->depth!=16) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "DRI is disabled because it "
+ "runs only at 16-bit depth.\n");
+ pI810->directRenderingDisabled=TRUE;
+ }
+ }
+#endif
+
+ /* Get DDC info from monitor */
+ /* after xf86ProcessOptions,
+ * because it is controlled by options [no]vbe and [no]ddc
+ */
+ I810DoDDC(pScrn, pI810->pEnt->index);
+
+ /* We have to use PIO to probe, because we haven't mapped yet */
+ I810SetPIOAccess(pI810);
+
+ intel_detect_chipset(pScrn, pI810->PciInfo, &chipset);
+
+ /*
+ * Set the Chipset and ChipRev, allowing config file entries to
+ * override.
+ */
+ if (pI810->pEnt->device->chipset && *pI810->pEnt->device->chipset) {
+ pScrn->chipset = pI810->pEnt->device->chipset;
+ from = X_CONFIG;
+ } else if (pI810->pEnt->device->chipID >= 0) {
+ pScrn->chipset = (char *)xf86TokenToString(intel_chipsets,
+ pI810->pEnt->device->chipID);
+ from = X_CONFIG;
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "ChipID override: 0x%04X\n",
+ pI810->pEnt->device->chipID);
+ } else {
+ from = X_PROBED;
+ pScrn->chipset = (char *)xf86TokenToString(intel_chipsets,
+ DEVICE_ID(pI810->PciInfo));
+ }
+ if (pI810->pEnt->device->chipRev >= 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "ChipRev override: %d\n",
+ pI810->pEnt->device->chipRev);
+ }
+
+ xf86DrvMsg(pScrn->scrnIndex, from, "Chipset: \"%s\"\n",
+ (pScrn->chipset != NULL) ? pScrn->chipset : "Unknown i810");
+
+ pI810->LinearAddr = pI810->PciInfo->regions[0].base_addr;
+ xf86DrvMsg(pScrn->scrnIndex, from, "Linear framebuffer at 0x%lX\n",
+ (unsigned long)pI810->LinearAddr);
+
+ pI810->MMIOAddr = pI810->PciInfo->regions[1].base_addr;
+ xf86DrvMsg(pScrn->scrnIndex, from, "IO registers at addr 0x%lX\n",
+ (unsigned long)pI810->MMIOAddr);
+
+ /* AGP GART support is required. Don't proceed any further if it isn't
+ * present.
+ */
+ if (!xf86AgpGARTSupported()) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "AGP GART support is not available. Make sure your kernel has\n"
+ "\tagpgart support or that the agpgart kernel module is loaded.\n");
+ return FALSE;
+ }
+
+ /* Find out memory bus frequency.
+ */
+ {
+ uint32_t whtcfg_pamr_drp;
+
+ pci_device_cfg_read_u32(pI810->PciInfo, & whtcfg_pamr_drp, WHTCFG_PAMR_DRP);
+
+ /* Need this for choosing watermarks.
+ */
+ if ((whtcfg_pamr_drp & LM_FREQ_MASK) == LM_FREQ_133)
+ pI810->LmFreqSel = 133;
+ else
+ pI810->LmFreqSel = 100;
+ }
+
+ /* Default to 4MB framebuffer, which is sufficient for all
+ * supported 2d resolutions. If the user has specified a different
+ * size in the XF86Config, use that amount instead.
+ *
+ * Changed to 8 Meg so we can have acceleration by default (Mark).
+ */
+ mem = I810CheckAvailableMemory(pScrn);
+ if (pI810->directRenderingDisabled || mem < 131072) /* < 128 MB */
+ pScrn->videoRam = 8192;
+ else if (mem < 196608)
+ pScrn->videoRam = 16384; /* < 192 MB */
+ else
+ pScrn->videoRam = 24576;
+
+ from = X_DEFAULT;
+
+ if (pI810->pEnt->device->videoRam) {
+ pScrn->videoRam = pI810->pEnt->device->videoRam;
+ from = X_CONFIG;
+ }
+
+ if (mem > 0 && mem < pScrn->videoRam) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "%dk of memory was requested,"
+ " but the\n\t maximum AGP memory available is %dk.\n",
+ pScrn->videoRam, mem);
+ from = X_PROBED;
+ if (mem > (6 * 1024)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Reducing video memory to 4MB\n");
+ pScrn->videoRam = 4096;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Less than 6MB of AGP memory"
+ " is available. Cannot proceed.\n");
+ I810FreeRec(pScrn);
+ return FALSE;
+ }
+ }
+
+ xf86DrvMsg(pScrn->scrnIndex, from,
+ "Will alloc AGP framebuffer: %d kByte\n", pScrn->videoRam);
+
+ /* Calculate Fixed Offsets depending on graphics aperture size */
+ {
+ struct pci_device *bridge = intel_host_bridge ();
+ uint32_t smram_miscc;
+
+ pci_device_cfg_read_u32 (bridge, & smram_miscc, SMRAM_MISCC);
+
+ if ((smram_miscc & GFX_MEM_WIN_SIZE) == GFX_MEM_WIN_32M) {
+ pI810->FbMapSize = 0x1000000;
+ pI810->DepthOffset = 0x1000000;
+ pI810->BackOffset = 0x1800000;
+ } else {
+ pI810->FbMapSize = 0x3000000;
+ pI810->DepthOffset = 0x3000000;
+ pI810->BackOffset = 0x3800000;
+ }
+ }
+
+ /*
+ * If the driver can do gamma correction, it should call xf86SetGamma()
+ * here.
+ */
+ {
+ Gamma zeros = { 0.0, 0.0, 0.0 };
+
+ if (!xf86SetGamma(pScrn, zeros)) {
+ return FALSE;
+ }
+ }
+
+ pI810->MaxClock = 0;
+ if (pI810->pEnt->device->dacSpeeds[0]) {
+ switch (pScrn->bitsPerPixel) {
+ case 8:
+ pI810->MaxClock = pI810->pEnt->device->dacSpeeds[DAC_BPP8];
+ break;
+ case 16:
+ pI810->MaxClock = pI810->pEnt->device->dacSpeeds[DAC_BPP16];
+ break;
+ case 24:
+ pI810->MaxClock = pI810->pEnt->device->dacSpeeds[DAC_BPP24];
+ break;
+ case 32: /* not supported */
+ pI810->MaxClock = pI810->pEnt->device->dacSpeeds[DAC_BPP32];
+ break;
+ }
+ if (!pI810->MaxClock)
+ pI810->MaxClock = pI810->pEnt->device->dacSpeeds[0];
+ } else {
+ switch (pScrn->bitsPerPixel) {
+ case 8:
+ pI810->MaxClock = 203000;
+ break;
+ case 16:
+ pI810->MaxClock = 163000;
+ break;
+ case 24:
+ pI810->MaxClock = 136000;
+ break;
+ case 32: /* not supported */
+ pI810->MaxClock = 86000;
+ }
+ }
+ clockRanges = xnfcalloc(sizeof(ClockRange), 1);
+ clockRanges->next = NULL;
+ /* 9.4MHz appears to be the smallest that works. */
+ clockRanges->minClock = 9500;
+ clockRanges->maxClock = pI810->MaxClock;
+ clockRanges->clockIndex = -1;
+ clockRanges->interlaceAllowed = TRUE;
+ clockRanges->doubleScanAllowed = FALSE;
+
+ i = xf86ValidateModes(pScrn, pScrn->monitor->Modes,
+ pScrn->display->modes, clockRanges,
+#ifndef XF86DRI
+ 0, 320, 1600, 64 * pScrn->bitsPerPixel,
+#else
+ i810_pitches, 0, 0, 64 * pScrn->bitsPerPixel,
+#endif
+ 200, 1200,
+ pScrn->display->virtualX, pScrn->display->virtualY,
+ pScrn->videoRam * 1024, LOOKUP_BEST_REFRESH);
+
+ if (i == -1) {
+ I810FreeRec(pScrn);
+ return FALSE;
+ }
+
+ xf86PruneDriverModes(pScrn);
+
+ if (!i || !pScrn->modes) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No valid modes found\n");
+ I810FreeRec(pScrn);
+ return FALSE;
+ }
+
+ xf86SetCrtcForModes(pScrn, INTERLACE_HALVE_V);
+
+ pScrn->currentMode = pScrn->modes;
+
+ xf86PrintModes(pScrn);
+
+ xf86SetDpi(pScrn, 0, 0);
+
+ if (!xf86LoadSubModule(pScrn, "fb")) {
+ I810FreeRec(pScrn);
+ return FALSE;
+ }
+
+ if (!xf86ReturnOptValBool(pI810->Options, OPTION_SW_CURSOR, FALSE)) {
+ if (!xf86LoadSubModule(pScrn, "ramdac")) {
+ I810FreeRec(pScrn);
+ return FALSE;
+ }
+ }
+
+ if (xf86GetOptValInteger
+ (pI810->Options, OPTION_COLOR_KEY, &(pI810->colorKey))) {
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG,
+ "video overlay key set to 0x%x\n", pI810->colorKey);
+ } else {
+ pI810->colorKey = (1 << pScrn->offset.red) |
+ (1 << pScrn->offset.green) |
+ (((pScrn->mask.blue >> pScrn->offset.blue) -
+ 1) << pScrn->offset.blue);
+ }
+
+ pI810->allowPageFlip=FALSE;
+ enable = xf86ReturnOptValBool(pI810->Options, OPTION_PAGEFLIP, FALSE);
+
+#ifdef XF86DRI
+ if (!pI810->directRenderingDisabled) {
+ pI810->allowPageFlip = enable;
+ if (pI810->allowPageFlip == TRUE)
+ {
+ if (!xf86LoadSubModule(pScrn, "shadowfb")) {
+ pI810->allowPageFlip = 0;
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Couldn't load shadowfb module:\n");
+ }
+ }
+
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "page flipping %s\n",
+ enable ? "enabled" : "disabled");
+
+ }
+#endif
+
+ if (xf86GetOptValInteger(pI810->Options, OPTION_XVMC_SURFACES,
+ &(pI810->numSurfaces))) {
+ xf86DrvMsg(pScrn->scrnIndex, X_CONFIG, "%d XvMC Surfaces Requested.\n",
+ pI810->numSurfaces);
+ if (pI810->numSurfaces > 7) {
+ xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
+ "Using 7 XvMC Surfaces (Maximum Allowed).\n");
+ pI810->numSurfaces = 7;
+ }
+ if (pI810->numSurfaces < 6) {
+ xf86DrvMsg(pScrn->scrnIndex, X_PROBED,
+ "Using 6 XvMC Surfaces (Minimum Allowed).\n");
+ pI810->numSurfaces = 6;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "XvMC is Disabled: use XvMCSurfaces config option to enable.\n");
+ pI810->numSurfaces = 0;
+ }
+
+#ifdef XF86DRI
+ /* Load the dri module if requested. */
+ if (xf86ReturnOptValBool(pI810->Options, OPTION_DRI, FALSE)) {
+ xf86LoadSubModule(pScrn, "dri");
+ }
+#endif
+
+ /* We won't be using the VGA access after the probe */
+ I810SetMMIOAccess(pI810);
+ return TRUE;
+}
+
+static Bool
+I810MapMMIO(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ struct pci_device *const device = pI810->PciInfo;
+ int err;
+
+ err = pci_device_map_range (device,
+ pI810->MMIOAddr,
+ I810_REG_SIZE,
+ PCI_DEV_MAP_FLAG_WRITABLE,
+ (void **) &pI810->MMIOBase);
+ if (err)
+ {
+ xf86DrvMsg (pScrn->scrnIndex, X_ERROR,
+ "Unable to map mmio BAR. %s (%d)\n",
+ strerror (err), err);
+ return FALSE;
+ }
+ return TRUE;
+}
+
+static Bool
+I810MapMem(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ struct pci_device *const device = pI810->PciInfo;
+ int err;
+
+ if (!I810MapMMIO(pScrn))
+ return FALSE;
+
+ err = pci_device_map_range (device,
+ pI810->LinearAddr,
+ pI810->FbMapSize,
+ PCI_DEV_MAP_FLAG_WRITABLE | PCI_DEV_MAP_FLAG_WRITE_COMBINE,
+ (void **) &pI810->FbBase);
+ if (err)
+ {
+ xf86DrvMsg (pScrn->scrnIndex, X_ERROR,
+ "Unable to map frame buffer BAR. %s (%d)\n",
+ strerror (err), err);
+ return FALSE;
+ }
+
+ pI810->LpRing->virtual_start = pI810->FbBase + pI810->LpRing->mem.Start;
+
+ return TRUE;
+}
+
+static void
+I810UnmapMMIO(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ pci_device_unmap_range (pI810->PciInfo, pI810->MMIOBase, I810_REG_SIZE);
+ pI810->MMIOBase = NULL;
+}
+
+static Bool
+I810UnmapMem(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ pci_device_unmap_range (pI810->PciInfo, pI810->FbBase, pI810->FbMapSize);
+ pI810->FbBase = NULL;
+ I810UnmapMMIO(pScrn);
+ return TRUE;
+}
+
+/* Famous last words
+ */
+void
+I810PrintErrorState(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ ErrorF("pgetbl_ctl: 0x%lx pgetbl_err: 0x%lx\n",
+ (unsigned long) INREG(PGETBL_CTL), (unsigned long) INREG(PGE_ERR));
+
+ ErrorF("ipeir: %lx iphdr: %lx\n", (unsigned long) INREG(IPEIR),
+ (unsigned long) INREG(IPEHR));
+
+ ErrorF("LP ring tail: %lx head: %lx len: %lx start %lx\n",
+ (unsigned long) INREG(LP_RING + RING_TAIL),
+ (unsigned long) INREG(LP_RING + RING_HEAD) & HEAD_ADDR,
+ (unsigned long) INREG(LP_RING + RING_LEN),
+ (unsigned long) INREG(LP_RING + RING_START));
+
+ ErrorF("eir: %x esr: %x emr: %x\n",
+ INREG16(EIR), INREG16(ESR), INREG16(EMR));
+
+ ErrorF("instdone: %x instpm: %x\n", INREG16(INST_DONE), INREG8(INST_PM));
+
+ ErrorF("memmode: %lx instps: %lx\n", (unsigned long) INREG(MEMMODE),
+ (unsigned long) INREG(INST_PS));
+
+ ErrorF("hwstam: %x ier: %x imr: %x iir: %x\n",
+ INREG16(HWSTAM), INREG16(IER), INREG16(IMR), INREG16(IIR));
+}
+
+/*
+ * I810Save --
+ *
+ * This function saves the video state. It reads all of the SVGA registers
+ * into the vgaI810Rec data structure. There is in general no need to
+ * mask out bits here - just read the registers.
+ */
+static void
+DoSave(ScrnInfoPtr pScrn, vgaRegPtr vgaReg, I810RegPtr i810Reg,
+ Bool saveFonts)
+{
+ I810Ptr pI810;
+ vgaHWPtr hwp;
+ int i;
+
+ pI810 = I810PTR(pScrn);
+ hwp = VGAHWPTR(pScrn);
+
+ /*
+ * This function will handle creating the data structure and filling
+ * in the generic VGA portion.
+ */
+ if (saveFonts)
+ vgaHWSave(pScrn, vgaReg, VGA_SR_MODE | VGA_SR_FONTS | VGA_SR_CMAP);
+ else
+ vgaHWSave(pScrn, vgaReg, VGA_SR_MODE | VGA_SR_CMAP);
+
+ /*
+ * The port I/O code necessary to read in the extended registers
+ * into the fields of the vgaI810Rec structure goes here.
+ */
+ i810Reg->IOControl = hwp->readCrtc(hwp, IO_CTNL);
+ i810Reg->AddressMapping = pI810->readControl(pI810, GRX, ADDRESS_MAPPING);
+ i810Reg->BitBLTControl = INREG8(BITBLT_CNTL);
+ i810Reg->VideoClk2_M = INREG16(VCLK2_VCO_M);
+ i810Reg->VideoClk2_N = INREG16(VCLK2_VCO_N);
+ i810Reg->VideoClk2_DivisorSel = INREG8(VCLK2_VCO_DIV_SEL);
+
+ i810Reg->ExtVertTotal = hwp->readCrtc(hwp, EXT_VERT_TOTAL);
+ i810Reg->ExtVertDispEnd = hwp->readCrtc(hwp, EXT_VERT_DISPLAY);
+ i810Reg->ExtVertSyncStart = hwp->readCrtc(hwp, EXT_VERT_SYNC_START);
+ i810Reg->ExtVertBlankStart = hwp->readCrtc(hwp, EXT_VERT_BLANK_START);
+ i810Reg->ExtHorizTotal = hwp->readCrtc(hwp, EXT_HORIZ_TOTAL);
+ i810Reg->ExtHorizBlank = hwp->readCrtc(hwp, EXT_HORIZ_BLANK);
+ i810Reg->ExtOffset = hwp->readCrtc(hwp, EXT_OFFSET);
+ i810Reg->InterlaceControl = hwp->readCrtc(hwp, INTERLACE_CNTL);
+
+ i810Reg->PixelPipeCfg0 = INREG8(PIXPIPE_CONFIG_0);
+ i810Reg->PixelPipeCfg1 = INREG8(PIXPIPE_CONFIG_1);
+ i810Reg->PixelPipeCfg2 = INREG8(PIXPIPE_CONFIG_2);
+ i810Reg->DisplayControl = INREG8(DISPLAY_CNTL);
+ i810Reg->LMI_FIFO_Watermark = INREG(FWATER_BLC);
+
+ for (i = 0; i < 8; i++)
+ i810Reg->Fence[i] = INREG(FENCE + i * 4);
+
+ i810Reg->LprbTail = INREG(LP_RING + RING_TAIL);
+ i810Reg->LprbHead = INREG(LP_RING + RING_HEAD);
+ i810Reg->LprbStart = INREG(LP_RING + RING_START);
+ i810Reg->LprbLen = INREG(LP_RING + RING_LEN);
+
+ if ((i810Reg->LprbTail & TAIL_ADDR) != (i810Reg->LprbHead & HEAD_ADDR) &&
+ i810Reg->LprbLen & RING_VALID) {
+ I810PrintErrorState(pScrn);
+ FatalError("Active ring not flushed\n");
+ }
+}
+
+static void
+I810Save(ScrnInfoPtr pScrn)
+{
+ vgaHWPtr hwp;
+ I810Ptr pI810;
+ uint32_t temp;
+
+ hwp = VGAHWPTR(pScrn);
+ pI810 = I810PTR(pScrn);
+ DoSave(pScrn, &hwp->SavedReg, &pI810->SavedReg, TRUE);
+
+ temp = INREG(MEMMODE);
+ temp |= 4;
+ OUTREG(MEMMODE, temp);
+}
+
+static void
+i810PrintMode(vgaRegPtr vgaReg, I810RegPtr mode)
+{
+ int i;
+
+ ErrorF(" MiscOut: %x\n", vgaReg->MiscOutReg);
+
+ ErrorF("SEQ: ");
+ for (i = 0; i < vgaReg->numSequencer; i++) {
+ if ((i & 7) == 0)
+ ErrorF("\n");
+ ErrorF(" %d: %x", i, vgaReg->Sequencer[i]);
+ }
+ ErrorF("\n");
+
+ ErrorF("CRTC: ");
+ for (i = 0; i < vgaReg->numCRTC; i++) {
+ if ((i & 3) == 0)
+ ErrorF("\n");
+ ErrorF(" %d: %x", i, vgaReg->CRTC[i]);
+ }
+ ErrorF("\n");
+
+ ErrorF("GFX: ");
+ for (i = 0; i < vgaReg->numGraphics; i++) {
+ if ((i & 7) == 0)
+ ErrorF("\n");
+ ErrorF(" %d: %x", i, vgaReg->Graphics[i]);
+ }
+ ErrorF("\n");
+
+ ErrorF("ATTR: ");
+ for (i = 0; i < vgaReg->numAttribute; i++) {
+ if ((i & 7) == 0)
+ ErrorF("\n");
+ ErrorF(" %d: %x", i, vgaReg->Attribute[i]);
+ }
+ ErrorF("\n");
+
+ ErrorF(" DisplayControl: %x\n", mode->DisplayControl);
+ ErrorF(" PixelPipeCfg0: %x\n", mode->PixelPipeCfg0);
+ ErrorF(" PixelPipeCfg1: %x\n", mode->PixelPipeCfg1);
+ ErrorF(" PixelPipeCfg2: %x\n", mode->PixelPipeCfg2);
+ ErrorF(" VideoClk2_M: %x\n", mode->VideoClk2_M);
+ ErrorF(" VideoClk2_N: %x\n", mode->VideoClk2_N);
+ ErrorF(" VideoClk2_DivisorSel: %x\n", mode->VideoClk2_DivisorSel);
+ ErrorF(" AddressMapping: %x\n", mode->AddressMapping);
+ ErrorF(" IOControl: %x\n", mode->IOControl);
+ ErrorF(" BitBLTControl: %x\n", mode->BitBLTControl);
+ ErrorF(" ExtVertTotal: %x\n", mode->ExtVertTotal);
+ ErrorF(" ExtVertDispEnd: %x\n", mode->ExtVertDispEnd);
+ ErrorF(" ExtVertSyncStart: %x\n", mode->ExtVertSyncStart);
+ ErrorF(" ExtVertBlankStart: %x\n", mode->ExtVertBlankStart);
+ ErrorF(" ExtHorizTotal: %x\n", mode->ExtHorizTotal);
+ ErrorF(" ExtHorizBlank: %x\n", mode->ExtHorizBlank);
+ ErrorF(" ExtOffset: %x\n", mode->ExtOffset);
+ ErrorF(" InterlaceControl: %x\n", mode->InterlaceControl);
+ ErrorF(" LMI_FIFO_Watermark: %x\n", mode->LMI_FIFO_Watermark);
+ ErrorF(" LprbTail: %x\n", mode->LprbTail);
+ ErrorF(" LprbHead: %x\n", mode->LprbHead);
+ ErrorF(" LprbStart: %x\n", mode->LprbStart);
+ ErrorF(" LprbLen: %x\n", mode->LprbLen);
+}
+
+static void
+DoRestore(ScrnInfoPtr pScrn, vgaRegPtr vgaReg, I810RegPtr i810Reg,
+ Bool restoreFonts)
+{
+ I810Ptr pI810;
+ vgaHWPtr hwp;
+ unsigned char temp;
+ unsigned int itemp;
+ int i;
+
+ pI810 = I810PTR(pScrn);
+ hwp = VGAHWPTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_VGA) {
+ ErrorF("Setting mode in I810Restore:\n");
+ i810PrintMode(vgaReg, i810Reg);
+ }
+
+ vgaHWProtect(pScrn, TRUE);
+
+ usleep(50000);
+
+ /* Turn off DRAM Refresh */
+ temp = INREG8(DRAM_ROW_CNTL_HI);
+ temp &= ~DRAM_REFRESH_RATE;
+ temp |= DRAM_REFRESH_DISABLE;
+ OUTREG8(DRAM_ROW_CNTL_HI, temp);
+
+ usleep(1000); /* Wait 1 ms */
+
+ /* Write the M, N and P values */
+ OUTREG16(VCLK2_VCO_M, i810Reg->VideoClk2_M);
+ OUTREG16(VCLK2_VCO_N, i810Reg->VideoClk2_N);
+ OUTREG8(VCLK2_VCO_DIV_SEL, i810Reg->VideoClk2_DivisorSel);
+
+ /*
+ * Turn on 8 bit dac mode, if requested. This is needed to make
+ * sure that vgaHWRestore writes the values into the DAC properly.
+ * The problem occurs if 8 bit dac mode is requested and the HW is
+ * in 6 bit dac mode. If this happens, all the values are
+ * automatically shifted left twice by the HW and incorrect colors
+ * will be displayed on the screen. The only time this can happen
+ * is at server startup time and when switching back from a VT.
+ */
+ temp = INREG8(PIXPIPE_CONFIG_0);
+ temp &= 0x7F; /* Save all but the 8 bit dac mode bit */
+ temp |= (i810Reg->PixelPipeCfg0 & DAC_8_BIT);
+ OUTREG8(PIXPIPE_CONFIG_0, temp);
+
+ /*
+ * Code to restore any SVGA registers that have been saved/modified
+ * goes here. Note that it is allowable, and often correct, to
+ * only modify certain bits in a register by a read/modify/write cycle.
+ *
+ * A special case - when using an external clock-setting program,
+ * this function must not change bits associated with the clock
+ * selection. This condition can be checked by the condition:
+ *
+ * if (i810Reg->std.NoClock >= 0)
+ * restore clock-select bits.
+ */
+ if (restoreFonts)
+ vgaHWRestore(pScrn, vgaReg, VGA_SR_FONTS | VGA_SR_MODE | VGA_SR_CMAP);
+ else
+ vgaHWRestore(pScrn, vgaReg, VGA_SR_MODE | VGA_SR_CMAP);
+
+ hwp->writeCrtc(hwp, EXT_VERT_TOTAL, i810Reg->ExtVertTotal);
+ hwp->writeCrtc(hwp, EXT_VERT_DISPLAY, i810Reg->ExtVertDispEnd);
+ hwp->writeCrtc(hwp, EXT_VERT_SYNC_START, i810Reg->ExtVertSyncStart);
+ hwp->writeCrtc(hwp, EXT_VERT_BLANK_START, i810Reg->ExtVertBlankStart);
+ hwp->writeCrtc(hwp, EXT_HORIZ_TOTAL, i810Reg->ExtHorizTotal);
+ hwp->writeCrtc(hwp, EXT_HORIZ_BLANK, i810Reg->ExtHorizBlank);
+ hwp->writeCrtc(hwp, EXT_OFFSET, i810Reg->ExtOffset);
+
+ temp = hwp->readCrtc(hwp, INTERLACE_CNTL);
+ temp &= ~INTERLACE_ENABLE;
+ temp |= i810Reg->InterlaceControl;
+ hwp->writeCrtc(hwp, INTERLACE_CNTL, temp);
+
+ temp = pI810->readControl(pI810, GRX, ADDRESS_MAPPING);
+ temp &= 0xE0; /* Save reserved bits 7:5 */
+ temp |= i810Reg->AddressMapping;
+ pI810->writeControl(pI810, GRX, ADDRESS_MAPPING, temp);
+
+ /* Setting the OVRACT Register for video overlay */
+ {
+ uint32_t LCD_TV_Control = INREG(LCD_TV_C);
+ uint32_t TV_HTotal = INREG(LCD_TV_HTOTAL);
+ uint32_t ActiveStart, ActiveEnd;
+
+ if((LCD_TV_Control & LCD_TV_ENABLE)
+ && !(LCD_TV_Control & LCD_TV_VGAMOD)
+ && TV_HTotal) {
+ ActiveStart = ((TV_HTotal >> 16) & 0xfff) - 31;
+ ActiveEnd = (TV_HTotal & 0x3ff) - 31;
+ } else {
+ ActiveStart = i810Reg->OverlayActiveStart;
+ ActiveEnd = i810Reg->OverlayActiveEnd;
+ }
+ OUTREG(LCD_TV_OVRACT,
+ (ActiveEnd << 16) | ActiveStart);
+ }
+
+ /* Turn on DRAM Refresh */
+ temp = INREG8(DRAM_ROW_CNTL_HI);
+ temp &= ~DRAM_REFRESH_RATE;
+ temp |= DRAM_REFRESH_60HZ;
+ OUTREG8(DRAM_ROW_CNTL_HI, temp);
+
+ temp = INREG8(BITBLT_CNTL);
+ temp &= ~COLEXP_MODE;
+ temp |= i810Reg->BitBLTControl;
+ OUTREG8(BITBLT_CNTL, temp);
+
+ temp = INREG8(DISPLAY_CNTL);
+ temp &= ~(VGA_WRAP_MODE | GUI_MODE);
+ temp |= i810Reg->DisplayControl;
+ OUTREG8(DISPLAY_CNTL, temp);
+
+ temp = INREG8(PIXPIPE_CONFIG_0);
+ temp &= 0x64; /* Save reserved bits 6:5,2 */
+ temp |= i810Reg->PixelPipeCfg0;
+ OUTREG8(PIXPIPE_CONFIG_0, temp);
+
+ temp = INREG8(PIXPIPE_CONFIG_2);
+ temp &= 0xF3; /* Save reserved bits 7:4,1:0 */
+ temp |= i810Reg->PixelPipeCfg2;
+ OUTREG8(PIXPIPE_CONFIG_2, temp);
+
+ temp = INREG8(PIXPIPE_CONFIG_1);
+ temp &= ~DISPLAY_COLOR_MODE;
+ temp &= 0xEF; /* Restore the CRT control bit */
+ temp |= i810Reg->PixelPipeCfg1;
+ OUTREG8(PIXPIPE_CONFIG_1, temp);
+
+ OUTREG16(EIR, 0);
+
+ itemp = INREG(FWATER_BLC);
+ itemp &= ~(LM_BURST_LENGTH | LM_FIFO_WATERMARK |
+ MM_BURST_LENGTH | MM_FIFO_WATERMARK);
+ itemp |= i810Reg->LMI_FIFO_Watermark;
+ OUTREG(FWATER_BLC, itemp);
+
+ for (i = 0; i < 8; i++) {
+ OUTREG(FENCE + i * 4, i810Reg->Fence[i]);
+ if (I810_DEBUG & DEBUG_VERBOSE_VGA)
+ ErrorF("Fence Register : %x\n", i810Reg->Fence[i]);
+ }
+
+ /* First disable the ring buffer (Need to wait for empty first?, if so
+ * should probably do it before entering this section)
+ */
+ itemp = INREG(LP_RING + RING_LEN);
+ itemp &= ~RING_VALID_MASK;
+ OUTREG(LP_RING + RING_LEN, itemp);
+
+ /* Set up the low priority ring buffer.
+ */
+ OUTREG(LP_RING + RING_TAIL, 0);
+ OUTREG(LP_RING + RING_HEAD, 0);
+
+ pI810->LpRing->head = 0;
+ pI810->LpRing->tail = 0;
+
+ itemp = INREG(LP_RING + RING_START);
+ itemp &= ~(START_ADDR);
+ itemp |= i810Reg->LprbStart;
+ OUTREG(LP_RING + RING_START, itemp);
+
+ itemp = INREG(LP_RING + RING_LEN);
+ itemp &= ~(RING_NR_PAGES | RING_REPORT_MASK | RING_VALID_MASK);
+ itemp |= i810Reg->LprbLen;
+ OUTREG(LP_RING + RING_LEN, itemp);
+
+ if (!(vgaReg->Attribute[0x10] & 0x1)) {
+ usleep(50000);
+ if (restoreFonts)
+ vgaHWRestore(pScrn, vgaReg,
+ VGA_SR_FONTS | VGA_SR_MODE | VGA_SR_CMAP);
+ else
+ vgaHWRestore(pScrn, vgaReg, VGA_SR_MODE | VGA_SR_CMAP);
+ }
+
+ vgaHWProtect(pScrn, FALSE);
+
+ temp = hwp->readCrtc(hwp, IO_CTNL);
+ temp &= ~(EXTENDED_ATTR_CNTL | EXTENDED_CRTC_CNTL);
+ temp |= i810Reg->IOControl;
+ hwp->writeCrtc(hwp, IO_CTNL, temp);
+}
+
+static void
+I810SetRingRegs(ScrnInfoPtr pScrn)
+{
+ unsigned int itemp;
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ OUTREG(LP_RING + RING_TAIL, 0);
+ OUTREG(LP_RING + RING_HEAD, 0);
+
+ itemp = INREG(LP_RING + RING_START);
+ itemp &= ~(START_ADDR);
+ itemp |= pI810->LpRing->mem.Start;
+ OUTREG(LP_RING + RING_START, itemp);
+
+ itemp = INREG(LP_RING + RING_LEN);
+ itemp &= ~(RING_NR_PAGES | RING_REPORT_MASK | RING_VALID_MASK);
+ itemp |= ((pI810->LpRing->mem.Size - 4096) | RING_NO_REPORT | RING_VALID);
+ OUTREG(LP_RING + RING_LEN, itemp);
+}
+
+static void
+I810Restore(ScrnInfoPtr pScrn)
+{
+ vgaHWPtr hwp;
+ I810Ptr pI810;
+
+ hwp = VGAHWPTR(pScrn);
+ pI810 = I810PTR(pScrn);
+
+ DoRestore(pScrn, &hwp->SavedReg, &pI810->SavedReg, TRUE);
+}
+
+/*
+ * I810CalcVCLK --
+ *
+ * Determine the closest clock frequency to the one requested.
+ */
+
+#define MAX_VCO_FREQ 600.0
+#define TARGET_MAX_N 30
+#define REF_FREQ 24.0
+
+#define CALC_VCLK(m,n,p) \
+ (double)m / ((double)n * (1 << p)) * 4 * REF_FREQ
+
+static void
+I810CalcVCLK(ScrnInfoPtr pScrn, double freq)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810RegPtr i810Reg = &pI810->ModeReg;
+ int m, n, p;
+ double f_out;
+ double f_err;
+ double f_vco;
+ int m_best = 0, n_best = 0, p_best = 0;
+ double f_target = freq;
+ double err_max = 0.005;
+ double err_target = 0.001;
+ double err_best = 999999.0;
+
+ p_best = p = log(MAX_VCO_FREQ / f_target) / log((double)2);
+ /* Make sure p is within range. */
+ if (p_best > 5) {
+ p_best = p = 5;
+ }
+
+ f_vco = f_target * (1 << p);
+
+ n = 2;
+ do {
+ n++;
+ m = f_vco / (REF_FREQ / (double)n) / (double)4.0 + 0.5;
+ if (m < 3)
+ m = 3;
+ f_out = CALC_VCLK(m, n, p);
+ f_err = 1.0 - (f_target / f_out);
+ if (fabs(f_err) < err_max) {
+ m_best = m;
+ n_best = n;
+ err_best = f_err;
+ }
+ } while ((fabs(f_err) >= err_target) &&
+ ((n <= TARGET_MAX_N) || (fabs(err_best) > err_max)));
+
+ if (fabs(f_err) < err_target) {
+ m_best = m;
+ n_best = n;
+ }
+
+ i810Reg->VideoClk2_M = (m_best - 2) & 0x3FF;
+ i810Reg->VideoClk2_N = (n_best - 2) & 0x3FF;
+ i810Reg->VideoClk2_DivisorSel = (p_best << 4);
+
+ xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 3,
+ "Setting dot clock to %.1f MHz " "[ 0x%x 0x%x 0x%x ] "
+ "[ %d %d %d ]\n", CALC_VCLK(m_best, n_best, p_best),
+ i810Reg->VideoClk2_M, i810Reg->VideoClk2_N,
+ i810Reg->VideoClk2_DivisorSel, m_best, n_best, p_best);
+}
+
+static Bool
+I810SetMode(ScrnInfoPtr pScrn, DisplayModePtr mode)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810RegPtr i810Reg = &pI810->ModeReg;
+ vgaRegPtr pVga = &VGAHWPTR(pScrn)->ModeReg;
+ double dclk = mode->Clock / 1000.0;
+
+ switch (pScrn->bitsPerPixel) {
+ case 8:
+ pVga->CRTC[0x13] = pScrn->displayWidth >> 3;
+ i810Reg->ExtOffset = pScrn->displayWidth >> 11;
+ i810Reg->PixelPipeCfg1 = DISPLAY_8BPP_MODE;
+ i810Reg->BitBLTControl = COLEXP_8BPP;
+ break;
+ case 16:
+ if (pScrn->weight.green == 5) {
+ i810Reg->PixelPipeCfg1 = DISPLAY_15BPP_MODE;
+ } else {
+ i810Reg->PixelPipeCfg1 = DISPLAY_16BPP_MODE;
+ }
+ pVga->CRTC[0x13] = pScrn->displayWidth >> 2;
+ i810Reg->ExtOffset = pScrn->displayWidth >> 10;
+ i810Reg->BitBLTControl = COLEXP_16BPP;
+
+ /* Enable Palette Programming for Direct Color visuals. -jens */
+ i810Reg->PixelPipeCfg2 = DISPLAY_GAMMA_ENABLE;
+ break;
+ case 24:
+ pVga->CRTC[0x13] = (pScrn->displayWidth * 3) >> 3;
+ i810Reg->ExtOffset = (pScrn->displayWidth * 3) >> 11;
+
+ i810Reg->PixelPipeCfg1 = DISPLAY_24BPP_MODE;
+ i810Reg->BitBLTControl = COLEXP_24BPP;
+
+ /* Enable Palette Programming for Direct Color visuals. -jens */
+ i810Reg->PixelPipeCfg2 = DISPLAY_GAMMA_ENABLE;
+ break;
+ default:
+ break;
+ }
+
+ /* Turn on 8 bit dac if requested */
+ if (xf86ReturnOptValBool(pI810->Options, OPTION_DAC_6BIT, FALSE))
+ i810Reg->PixelPipeCfg0 = DAC_6_BIT;
+ else
+ i810Reg->PixelPipeCfg0 = DAC_8_BIT;
+
+ /* Do not delay CRT Blank: needed for video overlay */
+ i810Reg->PixelPipeCfg1 |= 0x10;
+
+ /* Turn on Extended VGA Interpretation */
+ i810Reg->IOControl = EXTENDED_CRTC_CNTL;
+
+ /* Turn on linear and page mapping */
+ i810Reg->AddressMapping = (LINEAR_MODE_ENABLE | GTT_MEM_MAP_ENABLE);
+
+ /* Turn on GUI mode */
+ i810Reg->DisplayControl = HIRES_MODE;
+
+ /* Calculate the extended CRTC regs */
+ i810Reg->ExtVertTotal = (mode->CrtcVTotal - 2) >> 8;
+ i810Reg->ExtVertDispEnd = (mode->CrtcVDisplay - 1) >> 8;
+ i810Reg->ExtVertSyncStart = mode->CrtcVSyncStart >> 8;
+ i810Reg->ExtVertBlankStart = mode->CrtcVBlankStart >> 8;
+ i810Reg->ExtHorizTotal = ((mode->CrtcHTotal >> 3) - 5) >> 8;
+ i810Reg->ExtHorizBlank = (((mode->CrtcHBlankEnd >> 3) - 1) & 0x40) >> 6;
+
+ /*
+ * the KGA fix in vgaHW.c results in the first
+ * scanline and the first character clock (8 pixels)
+ * of each scanline thereafter on display with an i810
+ * to be blank. Restoring CRTC 3, 5, & 22 to their
+ * "theoretical" values corrects the problem. KAO.
+ */
+ pVga->CRTC[3] = (((mode->CrtcHBlankEnd >> 3) - 1) & 0x1F) | 0x80;
+ pVga->CRTC[5] = ((((mode->CrtcHBlankEnd >> 3) - 1) & 0x20) << 2)
+ | (((mode->CrtcHSyncEnd >> 3)) & 0x1F);
+ pVga->CRTC[22] = (mode->CrtcVBlankEnd - 1) & 0xFF;
+
+ i810Reg->ExtHorizBlank = vgaHWHBlankKGA(mode, pVga, 7, 0);
+ vgaHWVBlankKGA(mode, pVga, 8, 0);
+
+ /*
+ * The following workarounds are needed to get video overlay working
+ * at 1024x768 and 1280x1024 display resolutions.
+ */
+ if ((mode->CrtcVDisplay == 768) && (i810Reg->ExtVertBlankStart == 3)) {
+ i810Reg->ExtVertBlankStart = 2;
+ }
+ if ((mode->CrtcVDisplay == 1024) && (i810Reg->ExtVertBlankStart == 4)) {
+ i810Reg->ExtVertBlankStart = 3;
+ }
+
+ /* OVRACT Register */
+ i810Reg->OverlayActiveStart = mode->CrtcHTotal - 32;
+ i810Reg->OverlayActiveEnd = mode->CrtcHDisplay - 32;
+
+ /* Turn on interlaced mode if necessary */
+ if (mode->Flags & V_INTERLACE) {
+ i810Reg->InterlaceControl = INTERLACE_ENABLE;
+ i810Reg->ExtVertDispEnd *= 2;
+ } else
+ i810Reg->InterlaceControl = INTERLACE_DISABLE;
+
+ /*
+ * Set the overscan color to 0.
+ * NOTE: This only affects >8bpp mode.
+ */
+ pVga->Attribute[0x11] = 0;
+
+ /*
+ * Calculate the VCLK that most closely matches the requested dot
+ * clock.
+ */
+ I810CalcVCLK(pScrn, dclk);
+
+ /* Since we program the clocks ourselves, always use VCLK2. */
+ pVga->MiscOutReg |= 0x0C;
+
+ /* Calculate the FIFO Watermark and Burst Length. */
+ i810Reg->LMI_FIFO_Watermark = I810CalcWatermark(pScrn, dclk, FALSE);
+
+ /* Setup the ring buffer */
+ i810Reg->LprbTail = 0;
+ i810Reg->LprbHead = 0;
+ i810Reg->LprbStart = pI810->LpRing->mem.Start;
+
+ if (i810Reg->LprbStart)
+ i810Reg->LprbLen = ((pI810->LpRing->mem.Size - 4096) |
+ RING_NO_REPORT | RING_VALID);
+ else
+ i810Reg->LprbLen = RING_INVALID;
+
+ return TRUE;
+}
+
+static Bool
+I810ModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode)
+{
+ vgaHWPtr hwp;
+ I810Ptr pI810;
+
+ hwp = VGAHWPTR(pScrn);
+ pI810 = I810PTR(pScrn);
+
+ vgaHWUnlock(hwp);
+
+ if (!vgaHWInit(pScrn, mode))
+ return FALSE;
+
+ pScrn->vtSema = TRUE;
+
+ if (!I810SetMode(pScrn, mode))
+ return FALSE;
+
+#ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ DRILock(screenInfo.screens[pScrn->scrnIndex], 0);
+ pI810->LockHeld = 1;
+ }
+#endif
+
+ DoRestore(pScrn, &hwp->ModeReg, &pI810->ModeReg, FALSE);
+
+#ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ DRIUnlock(screenInfo.screens[pScrn->scrnIndex]);
+ pI810->LockHeld = 0;
+ }
+#endif
+
+ return TRUE;
+}
+
+static void
+I810LoadPalette15(ScrnInfoPtr pScrn, int numColors, int *indices,
+ LOCO * colors, VisualPtr pVisual)
+{
+ vgaHWPtr hwp;
+ int i, j, index;
+ unsigned char r, g, b;
+
+ hwp = VGAHWPTR(pScrn);
+
+ for (i = 0; i < numColors; i++) {
+ index = indices[i];
+ r = colors[index].red;
+ g = colors[index].green;
+ b = colors[index].blue;
+ for (j = 0; j < 8; j++) {
+ hwp->writeDacWriteAddr(hwp, (index << 3) + j);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+ }
+ }
+}
+
+static void
+I810LoadPalette16(ScrnInfoPtr pScrn, int numColors, int *indices,
+ LOCO * colors, VisualPtr pVisual)
+{
+ vgaHWPtr hwp;
+ int i, index;
+ unsigned char r, g, b;
+
+ hwp = VGAHWPTR(pScrn);
+
+ /* Load all four entries in each of the 64 color ranges. -jens */
+ for (i = 0; i < numColors; i++) {
+ index = indices[i / 2];
+ r = colors[index].red;
+ b = colors[index].blue;
+ index = indices[i];
+ g = colors[index].green;
+
+ hwp->writeDacWriteAddr(hwp, index << 2);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+
+ hwp->writeDacWriteAddr(hwp, (index << 2) + 1);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+
+ hwp->writeDacWriteAddr(hwp, (index << 2) + 2);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+
+ hwp->writeDacWriteAddr(hwp, (index << 2) + 3);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+
+ i++;
+ index = indices[i];
+ g = colors[index].green;
+
+ hwp->writeDacWriteAddr(hwp, index << 2);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+
+ hwp->writeDacWriteAddr(hwp, (index << 2) + 1);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+
+ hwp->writeDacWriteAddr(hwp, (index << 2) + 2);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+
+ hwp->writeDacWriteAddr(hwp, (index << 2) + 3);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+ }
+}
+
+static void
+I810LoadPalette24(ScrnInfoPtr pScrn, int numColors, int *indices,
+ LOCO * colors, VisualPtr pVisual)
+{
+ vgaHWPtr hwp;
+ int i, index;
+ unsigned char r, g, b;
+
+ hwp = VGAHWPTR(pScrn);
+
+ for (i = 0; i < numColors; i++) {
+ index = indices[i];
+ r = colors[index].red;
+ g = colors[index].green;
+ b = colors[index].blue;
+ hwp->writeDacWriteAddr(hwp, index);
+ hwp->writeDacData(hwp, r);
+ hwp->writeDacData(hwp, g);
+ hwp->writeDacData(hwp, b);
+ }
+}
+
+Bool
+I810AllocateFront(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int cache_lines = -1;
+
+ if (pI810->DoneFrontAlloc)
+ return TRUE;
+
+ memset(&(pI810->FbMemBox), 0, sizeof(BoxRec));
+ /* Alloc FrontBuffer/Ring/Accel memory */
+ pI810->FbMemBox.x1 = 0;
+ pI810->FbMemBox.x2 = pScrn->displayWidth;
+ pI810->FbMemBox.y1 = 0;
+ pI810->FbMemBox.y2 = pScrn->virtualY;
+
+ xf86GetOptValInteger(pI810->Options, OPTION_CACHE_LINES, &cache_lines);
+
+ if (cache_lines < 0) {
+ /* make sure there is enough for two DVD sized YUV buffers */
+ cache_lines = (pScrn->depth == 24) ? 256 : 384;
+ if (pScrn->displayWidth <= 1024)
+ cache_lines *= 2;
+ }
+ /* Make sure there's enough space for cache_lines.
+ *
+ * Had a bug here where maxCacheLines was computed to be less than 0.
+ * Not sure why 256 was initially subtracted from videoRam in the
+ * maxCacheLines calculation, but that was causing a problem
+ * for configurations that have exactly enough Ram for the framebuffer.
+ * Common code should catch the case where there isn't enough space for
+ * framebuffer, we'll just check for no space for cache_lines. -jens
+ *
+ */
+ {
+ int maxCacheLines;
+
+ maxCacheLines = (pScrn->videoRam * 1024 /
+ (pScrn->bitsPerPixel / 8) /
+ pScrn->displayWidth) - pScrn->virtualY;
+ if (maxCacheLines < 0)
+ maxCacheLines = 0;
+ if (cache_lines > maxCacheLines)
+ cache_lines = maxCacheLines;
+ }
+ pI810->FbMemBox.y2 += cache_lines;
+
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Adding %i scanlines for pixmap caching\n", cache_lines);
+
+ /* Reserve room for the framebuffer and pixcache. Put at the top
+ * of memory so we can have nice alignment for the tiled regions at
+ * the start of memory.
+ */
+
+ if (!I810AllocLow(&(pI810->FrontBuffer),
+ &(pI810->SysMem),
+ ALIGN((pI810->FbMemBox.x2 * pI810->FbMemBox.y2 * pI810->cpp), 4096))) {
+ xf86DrvMsg(pScrn->scrnIndex,
+ X_WARNING, "Framebuffer allocation failed\n");
+ return FALSE;
+ }
+
+ memset(pI810->LpRing, 0, sizeof(I810RingBuffer));
+ if (I810AllocLow(&(pI810->LpRing->mem), &(pI810->SysMem), 16 * 4096)) {
+ pI810->LpRing->tail_mask = pI810->LpRing->mem.Size - 1;
+ pI810->LpRing->virtual_start = pI810->FbBase + pI810->LpRing->mem.Start;
+ pI810->LpRing->head = 0;
+ pI810->LpRing->tail = 0;
+ pI810->LpRing->space = 0;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Ring buffer allocation failed\n");
+ return (FALSE);
+ }
+
+ if (I810AllocLow(&pI810->Scratch, &(pI810->SysMem), 64 * 1024) ||
+ I810AllocLow(&pI810->Scratch, &(pI810->SysMem), 16 * 1024)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Allocated Scratch Memory\n");
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Scratch memory allocation failed\n");
+ return (FALSE);
+ }
+
+ pI810->DoneFrontAlloc = TRUE;
+ return TRUE;
+}
+
+static Bool
+I810ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
+{
+ ScrnInfoPtr pScrn;
+ vgaHWPtr hwp;
+ I810Ptr pI810;
+ VisualPtr visual;
+
+ pScrn = xf86Screens[pScreen->myNum];
+ pI810 = I810PTR(pScrn);
+ hwp = VGAHWPTR(pScrn);
+
+ pI810->LpRing = calloc(sizeof(I810RingBuffer),1);
+ if (!pI810->LpRing) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Could not allocate lpring data structure.\n");
+ return FALSE;
+ }
+
+ miClearVisualTypes();
+
+ /* Re-implemented Direct Color support, -jens */
+ if (!miSetVisualTypes(pScrn->depth, miGetDefaultVisualMask(pScrn->depth),
+ pScrn->rgbBits, pScrn->defaultVisual))
+ return FALSE;
+
+ if (!miSetPixmapDepths())
+ return FALSE;
+
+ {
+ I810RegPtr i810Reg = &pI810->ModeReg;
+ int i;
+
+ for (i = 0; i < 8; i++)
+ i810Reg->Fence[i] = 0;
+ }
+
+ /* Have to init the DRM earlier than in other drivers to get agp
+ * memory. Wonder if this is going to be a problem...
+ */
+
+#ifdef XF86DRI
+ /*
+ * Setup DRI after visuals have been established, but before fbScreenInit
+ * is called. fbScreenInit will eventually call into the drivers
+ * InitGLXVisuals call back.
+ */
+ /*
+ * pI810->directRenderingDisabled is set once in PreInit. Reinitialise
+ * pI810->directRenderingEnabled based on it each generation.
+ */
+ pI810->directRenderingEnabled = !pI810->directRenderingDisabled;
+
+ if (pI810->directRenderingEnabled==TRUE)
+ pI810->directRenderingEnabled = I810DRIScreenInit(pScreen);
+
+#else
+ pI810->directRenderingEnabled = FALSE;
+ if (!I810AllocateGARTMemory(pScrn))
+ return FALSE;
+ if (!I810AllocateFront(pScrn))
+ return FALSE;
+#endif
+
+ if (!I810MapMem(pScrn))
+ return FALSE;
+
+ pScrn->memPhysBase = (unsigned long)pI810->LinearAddr;
+ pScrn->fbOffset = 0;
+
+ vgaHWSetMmioFuncs(hwp, pI810->MMIOBase, 0);
+ vgaHWGetIOBase(hwp);
+ if (!vgaHWMapMem(pScrn))
+ return FALSE;
+
+ I810Save(pScrn);
+ if (!I810ModeInit(pScrn, pScrn->currentMode))
+ return FALSE;
+
+ I810SaveScreen(pScreen, FALSE);
+ I810AdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0);
+
+ if (!fbScreenInit(pScreen, pI810->FbBase + pScrn->fbOffset,
+ pScrn->virtualX, pScrn->virtualY,
+ pScrn->xDpi, pScrn->yDpi,
+ pScrn->displayWidth, pScrn->bitsPerPixel))
+ return FALSE;
+
+ if (pScrn->bitsPerPixel > 8) {
+ /* Fixup RGB ordering */
+ visual = pScreen->visuals + pScreen->numVisuals;
+ while (--visual >= pScreen->visuals) {
+ if ((visual->class | DynamicClass) == DirectColor) {
+ visual->offsetRed = pScrn->offset.red;
+ visual->offsetGreen = pScrn->offset.green;
+ visual->offsetBlue = pScrn->offset.blue;
+ visual->redMask = pScrn->mask.red;
+ visual->greenMask = pScrn->mask.green;
+ visual->blueMask = pScrn->mask.blue;
+ }
+ }
+ }
+
+ fbPictureInit(pScreen, NULL, 0);
+
+ xf86SetBlackWhitePixels(pScreen);
+
+#ifdef XF86DRI
+ if (pI810->LpRing->mem.Start == 0 && pI810->directRenderingEnabled) {
+ pI810->directRenderingEnabled = FALSE;
+ I810DRICloseScreen(pScreen);
+ }
+
+ if (!pI810->directRenderingEnabled) {
+ pI810->DoneFrontAlloc = FALSE;
+ if (!I810AllocateGARTMemory(pScrn))
+ return FALSE;
+ if (!I810AllocateFront(pScrn))
+ return FALSE;
+ }
+#endif
+
+#ifdef XFreeXDGA
+ I810DGAInit(pScreen);
+#endif
+
+ if (!xf86InitFBManager(pScreen, &(pI810->FbMemBox))) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Failed to init memory manager\n");
+ return FALSE;
+ }
+
+ if (!xf86ReturnOptValBool(pI810->Options, OPTION_NOACCEL, FALSE)) {
+ if (pI810->LpRing->mem.Size != 0) {
+ I810SetRingRegs(pScrn);
+
+ if (!I810AccelInit(pScreen)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Hardware acceleration initialization failed\n");
+ } else /* PK added 16.02.2004 */
+ I810EmitFlush(pScrn);
+ }
+ }
+
+ miInitializeBackingStore(pScreen);
+ xf86SetBackingStore(pScreen);
+ xf86SetSilkenMouse(pScreen);
+
+ miDCInitialize(pScreen, xf86GetPointerScreenFuncs());
+
+ if (!xf86ReturnOptValBool(pI810->Options, OPTION_SW_CURSOR, FALSE)) {
+ if (!I810CursorInit(pScreen)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "Hardware cursor initialization failed\n");
+ }
+ }
+
+ if (!miCreateDefColormap(pScreen))
+ return FALSE;
+
+ /* Use driver specific palette load routines for Direct Color support. -jens */
+ if (pScrn->bitsPerPixel == 16) {
+ if (pScrn->depth == 15) {
+ if (!xf86HandleColormaps(pScreen, 256, 8, I810LoadPalette15, NULL,
+ CMAP_PALETTED_TRUECOLOR |
+ CMAP_RELOAD_ON_MODE_SWITCH))
+ return FALSE;
+ } else {
+ if (!xf86HandleColormaps(pScreen, 256, 8, I810LoadPalette16, NULL,
+ CMAP_PALETTED_TRUECOLOR |
+ CMAP_RELOAD_ON_MODE_SWITCH))
+ return FALSE;
+ }
+ } else {
+ if (!xf86HandleColormaps(pScreen, 256, 8, I810LoadPalette24, NULL,
+ CMAP_PALETTED_TRUECOLOR |
+ CMAP_RELOAD_ON_MODE_SWITCH))
+ return FALSE;
+ }
+
+ xf86DPMSInit(pScreen, I810DisplayPowerManagementSet, 0);
+
+ I810InitVideo(pScreen);
+
+#ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ /* Now that mi, fb, drm and others have done their thing,
+ * complete the DRI setup.
+ */
+ pI810->directRenderingEnabled = I810DRIFinishScreenInit(pScreen);
+ }
+#ifdef XvMCExtension
+ if ((pI810->directRenderingEnabled) && (pI810->numSurfaces)) {
+ /* Initialize the hardware motion compensation code */
+ I810InitMC(pScreen);
+ }
+#endif
+#endif
+
+ if (pI810->directRenderingEnabled) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Direct rendering enabled\n");
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "Direct rendering disabled\n");
+ }
+
+ pScreen->SaveScreen = I810SaveScreen;
+ pI810->CloseScreen = pScreen->CloseScreen;
+ pScreen->CloseScreen = I810CloseScreen;
+
+ if (serverGeneration == 1)
+ xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options);
+
+ return TRUE;
+}
+
+Bool
+I810SwitchMode(int scrnIndex, DisplayModePtr mode, int flags)
+{
+ ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
+#if 0
+ I810Ptr pI810 = I810PTR(pScrn);
+#endif
+ if (I810_DEBUG & DEBUG_VERBOSE_CURSOR)
+ ErrorF("I810SwitchMode %p %x\n", (void *)mode, flags);
+
+#if 0
+/*
+ * This has been added to prevent lockups on mode switch by modeling
+ * it after I810Leave()/I810Enter() but the call to I810DRILeave()
+ * was missing so it caused the opposite.
+ * The version below works but it is doubtful it does any good.
+ * If lockups on mode switch are still seen revisit this code. (EE)
+ */
+
+# ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("calling dri lock\n");
+ DRILock(screenInfo.screens[scrnIndex], 0);
+ pI810->LockHeld = 1;
+ }
+# endif
+ if (pI810->AccelInfoRec != NULL) {
+ I810RefreshRing(pScrn);
+ I810Sync(pScrn);
+ pI810->AccelInfoRec->NeedToSync = FALSE;
+ }
+ I810Restore(pScrn);
+
+# ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ if (!I810DRILeave(pScrn))
+ return FALSE;
+ if (!I810DRIEnter(pScrn))
+ return FALSE;
+
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("calling dri unlock\n");
+ DRIUnlock(screenInfo.screens[scrnIndex]);
+ pI810->LockHeld = 0;
+ }
+# endif
+#endif
+ return I810ModeInit(pScrn, mode);
+}
+
+void
+I810AdjustFrame(int scrnIndex, int x, int y, int flags)
+{
+ ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
+ I810Ptr pI810 = I810PTR(pScrn);
+ vgaHWPtr hwp = VGAHWPTR(pScrn);
+ int Base;
+
+#if 1
+ if (pI810->showCache) {
+ int lastline = pI810->FbMapSize /
+ ((pScrn->displayWidth * pScrn->bitsPerPixel) / 8);
+ lastline -= pScrn->currentMode->VDisplay;
+ if (y > 0)
+ y += pScrn->currentMode->VDisplay;
+ if (y > lastline) y = lastline;
+ }
+#endif
+ Base = (y * pScrn->displayWidth + x) >> 2;
+
+ if (I810_DEBUG & DEBUG_VERBOSE_CURSOR)
+ ErrorF("I810AdjustFrame %d,%d %x\n", x, y, flags);
+
+ switch (pScrn->bitsPerPixel) {
+ case 8:
+ break;
+ case 16:
+ Base *= 2;
+ break;
+ case 24:
+ /* KW: Need to do 16-pixel alignment for i810, otherwise you
+ * get bad watermark problems. Need to fixup the mouse
+ * pointer positioning to take this into account.
+ */
+ pI810->CursorOffset = (Base & 0x3) * 4;
+ Base &= ~0x3;
+ Base *= 3;
+ break;
+ case 32:
+ Base *= 4;
+ break;
+ }
+
+ hwp->writeCrtc(hwp, START_ADDR_LO, Base & 0xFF);
+ hwp->writeCrtc(hwp, START_ADDR_HI, (Base & 0xFF00) >> 8);
+ hwp->writeCrtc(hwp, EXT_START_ADDR_HI, (Base & 0x3FC00000) >> 22);
+ hwp->writeCrtc(hwp, EXT_START_ADDR,
+ ((Base & 0x00eF0000) >> 16 | EXT_START_ADDR_ENABLE));
+}
+
+/* These functions are usually called with the lock **not held**.
+ */
+static Bool
+I810EnterVT(int scrnIndex, int flags)
+{
+ ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
+
+#ifdef XF86DRI
+ I810Ptr pI810 = I810PTR(pScrn);
+#endif
+
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("\n\nENTER VT\n");
+
+ if (!I810BindGARTMemory(pScrn)) {
+ return FALSE;
+ }
+#ifdef XF86DRI
+ if (!I810DRIEnter(pScrn)) {
+ return FALSE;
+ }
+ if (pI810->directRenderingEnabled) {
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("calling dri unlock\n");
+ DRIUnlock(screenInfo.screens[scrnIndex]);
+ pI810->LockHeld = 0;
+ }
+#endif
+
+ if (!I810ModeInit(pScrn, pScrn->currentMode))
+ return FALSE;
+ I810AdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0);
+ return TRUE;
+}
+
+static void
+I810LeaveVT(int scrnIndex, int flags)
+{
+ ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
+ vgaHWPtr hwp = VGAHWPTR(pScrn);
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("\n\n\nLeave VT\n");
+
+#ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ if (I810_DEBUG & DEBUG_VERBOSE_DRI)
+ ErrorF("calling dri lock\n");
+ DRILock(screenInfo.screens[scrnIndex], 0);
+ pI810->LockHeld = 1;
+ }
+#endif
+
+ if (pI810->AccelInfoRec != NULL) {
+ I810RefreshRing(pScrn);
+ I810Sync(pScrn);
+ pI810->AccelInfoRec->NeedToSync = FALSE;
+ }
+ I810Restore(pScrn);
+
+ if (!I810UnbindGARTMemory(pScrn))
+ return;
+#ifdef XF86DRI
+ if (!I810DRILeave(pScrn))
+ return;
+#endif
+
+ vgaHWLock(hwp);
+}
+
+static Bool
+I810CloseScreen(int scrnIndex, ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
+ vgaHWPtr hwp = VGAHWPTR(pScrn);
+ I810Ptr pI810 = I810PTR(pScrn);
+ XAAInfoRecPtr infoPtr = pI810->AccelInfoRec;
+
+ if (pScrn->vtSema == TRUE) {
+ if (pI810->AccelInfoRec != NULL) {
+ I810RefreshRing(pScrn);
+ I810Sync(pScrn);
+ pI810->AccelInfoRec->NeedToSync = FALSE;
+ }
+ I810Restore(pScrn);
+ vgaHWLock(hwp);
+ }
+#ifdef XF86DRI
+ if (pI810->directRenderingEnabled) {
+ I810DRICloseScreen(pScreen);
+ pI810->directRenderingEnabled = FALSE;
+ }
+#endif
+
+ if (pScrn->vtSema == TRUE) {
+ I810UnbindGARTMemory(pScrn);
+ I810Restore(pScrn);
+ vgaHWLock(hwp);
+ }
+
+ I810UnmapMem(pScrn);
+ vgaHWUnmapMem(pScrn);
+
+ if (pI810->ScanlineColorExpandBuffers) {
+ free(pI810->ScanlineColorExpandBuffers);
+ pI810->ScanlineColorExpandBuffers = NULL;
+ }
+
+ if (infoPtr) {
+ if (infoPtr->ScanlineColorExpandBuffers)
+ free(infoPtr->ScanlineColorExpandBuffers);
+ XAADestroyInfoRec(infoPtr);
+ pI810->AccelInfoRec = NULL;
+ }
+
+ if (pI810->CursorInfoRec) {
+ xf86DestroyCursorInfoRec(pI810->CursorInfoRec);
+ pI810->CursorInfoRec = NULL;
+ }
+
+ /* Free all allocated video ram.
+ */
+ pI810->SysMem = pI810->SavedSysMem;
+ pI810->DcacheMem = pI810->SavedDcacheMem;
+ pI810->DoneFrontAlloc = FALSE;
+
+ /* Need to actually close the gart fd, or the unbound memory will just sit
+ * around. Will prevent the Xserver from recycling.
+ */
+ xf86GARTCloseScreen(scrnIndex);
+
+ free(pI810->LpRing);
+ pI810->LpRing = NULL;
+
+ pScrn->vtSema = FALSE;
+ pScreen->CloseScreen = pI810->CloseScreen;
+ return (*pScreen->CloseScreen) (scrnIndex, pScreen);
+}
+
+static void
+I810FreeScreen(int scrnIndex, int flags)
+{
+ I810FreeRec(xf86Screens[scrnIndex]);
+ if (xf86LoaderCheckSymbol("vgaHWFreeHWRec"))
+ vgaHWFreeHWRec(xf86Screens[scrnIndex]);
+}
+
+static ModeStatus
+I810ValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags)
+{
+ if (mode->Flags & V_INTERLACE) {
+ if (verbose) {
+ xf86DrvMsg(scrnIndex, X_PROBED,
+ "Removing interlaced mode \"%s\"\n", mode->name);
+ }
+ return MODE_BAD;
+ }
+ return MODE_OK;
+}
+
+static Bool
+I810SaveScreen(ScreenPtr pScreen, Bool unblack)
+{
+ return vgaHWSaveScreen(pScreen, unblack);
+}
+
+static void
+I810DisplayPowerManagementSet(ScrnInfoPtr pScrn, int PowerManagementMode,
+ int flags)
+{
+ I810Ptr pI810;
+ unsigned char SEQ01 = 0;
+ int DPMSSyncSelect = 0;
+
+ pI810 = I810PTR(pScrn);
+ switch (PowerManagementMode) {
+ case DPMSModeOn:
+ /* Screen: On; HSync: On, VSync: On */
+ SEQ01 = 0x00;
+ DPMSSyncSelect = HSYNC_ON | VSYNC_ON;
+ break;
+ case DPMSModeStandby:
+ /* Screen: Off; HSync: Off, VSync: On */
+ SEQ01 = 0x20;
+ DPMSSyncSelect = HSYNC_OFF | VSYNC_ON;
+ break;
+ case DPMSModeSuspend:
+ /* Screen: Off; HSync: On, VSync: Off */
+ SEQ01 = 0x20;
+ DPMSSyncSelect = HSYNC_ON | VSYNC_OFF;
+ break;
+ case DPMSModeOff:
+ /* Screen: Off; HSync: Off, VSync: Off */
+ SEQ01 = 0x20;
+ DPMSSyncSelect = HSYNC_OFF | VSYNC_OFF;
+ break;
+ }
+
+ /* Turn the screen on/off */
+ SEQ01 |= pI810->readControl(pI810, SRX, 0x01) & ~0x20;
+ pI810->writeControl(pI810, SRX, 0x01, SEQ01);
+
+ /* Set the DPMS mode */
+ OUTREG8(DPMS_SYNC_SELECT, DPMSSyncSelect);
+}
+
+const OptionInfoRec *
+lg_i810_available_options(int chipid, int busid)
+{
+ return I810Options;
+}
+
+
+void lg_i810_init(ScrnInfoPtr scrn)
+{
+ scrn->PreInit = I810PreInit;
+ scrn->ScreenInit = I810ScreenInit;
+ scrn->SwitchMode = I810SwitchMode;
+ scrn->AdjustFrame = I810AdjustFrame;
+ scrn->EnterVT = I810EnterVT;
+ scrn->LeaveVT = I810LeaveVT;
+ scrn->FreeScreen = I810FreeScreen;
+ scrn->ValidMode = I810ValidMode;
+}
diff --git a/src/legacy/i810/i810_hwmc.c b/src/legacy/i810/i810_hwmc.c
new file mode 100644
index 0000000..724e1be
--- /dev/null
+++ b/src/legacy/i810/i810_hwmc.c
@@ -0,0 +1,419 @@
+/***************************************************************************
+
+Copyright 2000 Intel Corporation. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * i810_hwmc.c: i810 HWMC Driver
+ *
+ * Authors:
+ * Matt Sottek <matthew.j.sottek@intel.com>
+ *
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <string.h>
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "compiler.h"
+#include "xf86PciInfo.h"
+#include "xf86Pci.h"
+#include "xf86fbman.h"
+#include "regionstr.h"
+
+#include "i810.h"
+#include "i810_dri.h"
+
+#include "xf86xv.h"
+#include "xf86xvmc.h"
+#include <X11/extensions/Xv.h>
+#include <X11/extensions/XvMC.h>
+#include "xaa.h"
+#include "xaalocal.h"
+#include "dixstruct.h"
+#include "fourcc.h"
+
+int I810XvMCCreateContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext,
+ int *num_priv, long **priv );
+void I810XvMCDestroyContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext);
+
+int I810XvMCCreateSurface (ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf,
+ int *num_priv, long **priv );
+void I810XvMCDestroySurface (ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf);
+
+int I810XvMCCreateSubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSurf,
+ int *num_priv, long **priv );
+void I810XvMCDestroySubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSurf);
+
+
+typedef struct {
+ drm_context_t drmcontext;
+ unsigned int fbBase;
+ unsigned int OverlayOffset;
+ unsigned int OverlaySize;
+ unsigned int SurfacesOffset;
+ unsigned int SurfacesSize;
+ char busIdString[10];
+ char pad[2];
+} I810XvMCCreateContextRec;
+
+
+static int yv12_subpicture_index_list[2] =
+{
+ FOURCC_IA44,
+ FOURCC_AI44
+};
+
+static XF86MCImageIDList yv12_subpicture_list =
+{
+ 2,
+ yv12_subpicture_index_list
+};
+
+static XF86MCSurfaceInfoRec i810_YV12_mpg2_surface =
+{
+ FOURCC_YV12,
+ XVMC_CHROMA_FORMAT_420,
+ 0,
+ 720,
+ 576,
+ 720,
+ 576,
+ XVMC_MPEG_2,
+ XVMC_OVERLAID_SURFACE | XVMC_SUBPICTURE_INDEPENDENT_SCALING |
+ XVMC_INTRA_UNSIGNED,
+ &yv12_subpicture_list
+};
+
+static XF86MCSurfaceInfoRec i810_YV12_mpg1_surface =
+{
+ FOURCC_YV12,
+ XVMC_CHROMA_FORMAT_420,
+ 0,
+ 720,
+ 576,
+ 720,
+ 576,
+ XVMC_MPEG_1,
+ XVMC_OVERLAID_SURFACE | XVMC_SUBPICTURE_INDEPENDENT_SCALING |
+ XVMC_INTRA_UNSIGNED,
+ &yv12_subpicture_list
+};
+
+static XF86MCSurfaceInfoPtr ppSI[2] =
+{
+ (XF86MCSurfaceInfoPtr)&i810_YV12_mpg2_surface,
+ (XF86MCSurfaceInfoPtr)&i810_YV12_mpg1_surface
+};
+
+/* List of subpicture types that we support */
+static XF86ImageRec ia44_subpicture = XVIMAGE_IA44;
+static XF86ImageRec ai44_subpicture = XVIMAGE_AI44;
+
+static XF86ImagePtr i810_subpicture_list[2] =
+{
+ (XF86ImagePtr)&ia44_subpicture,
+ (XF86ImagePtr)&ai44_subpicture
+};
+
+/* Fill in the device dependent adaptor record.
+ * This is named "I810 Video Overlay" because this code falls under the
+ * XV extenstion, the name must match or it won't be used.
+ *
+ * Surface and Subpicture - see above
+ * Function pointers to functions below
+ */
+static XF86MCAdaptorRec pAdapt =
+{
+ "I810 Video Overlay", /* name */
+ 2, /* num_surfaces */
+ ppSI, /* surfaces */
+ 2, /* num_subpictures */
+ i810_subpicture_list, /* subpictures */
+ (xf86XvMCCreateContextProcPtr)I810XvMCCreateContext,
+ (xf86XvMCDestroyContextProcPtr)I810XvMCDestroyContext,
+ (xf86XvMCCreateSurfaceProcPtr)I810XvMCCreateSurface,
+ (xf86XvMCDestroySurfaceProcPtr)I810XvMCDestroySurface,
+ (xf86XvMCCreateSubpictureProcPtr)I810XvMCCreateSubpicture,
+ (xf86XvMCDestroySubpictureProcPtr)I810XvMCDestroySubpicture
+};
+
+static XF86MCAdaptorPtr ppAdapt[1] =
+{
+ (XF86MCAdaptorPtr)&pAdapt
+};
+
+/**************************************************************************
+ *
+ * I810InitMC
+ *
+ * Initialize the hardware motion compenstation extention for this
+ * hardware. The initialization routines want the address of the pointers
+ * to the structures, not the address of the structures. This means we
+ * allocate (or create static?) the pointer memory and pass that
+ * address. This seems a little convoluted.
+ *
+ * We need to allocate memory for the device depended adaptor record.
+ * This is what holds the pointers to all our device functions.
+ *
+ * We need to map the overlay registers into the drm.
+ *
+ * We need to map the surfaces into the drm.
+ *
+ * Inputs:
+ * Screen pointer
+ *
+ * Outputs:
+ * None, this calls the device independent screen initialization
+ * function.
+ *
+ * Revisions:
+ *
+ **************************************************************************/
+void I810InitMC(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ int i;
+
+ /* Clear the Surface Allocation */
+ for(i=0; i<I810_MAX_SURFACES; i++) {
+ pI810->surfaceAllocation[i] = 0;
+ }
+
+ /* Cursor is at a page boundary, Overlay regs are not, don't forget */
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t)pI810->CursorStart,
+ 4096, DRM_AGP, 0, (drmAddress) &pI810->overlay_map) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "drmAddMap(overlay) failed\n");
+ return;
+ }
+ if (drmAddMap(pI810->drmSubFD, (drm_handle_t)pI810->MC.Start,
+ pI810->MC.Size, DRM_AGP, 0, (drmAddress) &pI810->mc_map) < 0) {
+ xf86DrvMsg(pScreen->myNum, X_ERROR, "drmAddMap(MC) failed\n");
+ return;
+ }
+ xf86XvMCScreenInit(pScreen, 1, ppAdapt);
+}
+
+/**************************************************************************
+ *
+ * I810XvMCCreateContext
+ *
+ * Some info about the private data:
+ *
+ * Set *num_priv to the number of 32bit words that make up the size of
+ * of the data that priv will point to.
+ *
+ * *priv = (long *) calloc (elements, sizeof(element))
+ * *num_priv = (elements * sizeof(element)) >> 2;
+ *
+ **************************************************************************/
+
+int I810XvMCCreateContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext,
+ int *num_priv, long **priv )
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ DRIInfoPtr pDRIInfo = pI810->pDRIInfo;
+ I810XvMCCreateContextRec *contextRec;
+
+
+ if(!pI810->directRenderingEnabled) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "I810XvMCCreateContext: Cannot use XvMC without DRI!\n");
+ return BadAlloc;
+ }
+
+ /* Context Already in use! */
+ if(pI810->xvmcContext) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "I810XvMCCreateContext: 2 XvMC Contexts Attempted, not supported.\n");
+ return BadAlloc;
+ }
+
+ *priv = calloc(1,sizeof(I810XvMCCreateContextRec));
+ contextRec = (I810XvMCCreateContextRec *)*priv;
+
+ if(!*priv) {
+ *num_priv = 0;
+ return BadAlloc;
+ }
+
+ *num_priv = sizeof(I810XvMCCreateContextRec) >> 2;
+ if(drmCreateContext(pI810->drmSubFD, &(contextRec->drmcontext) ) < 0) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "I810XvMCCreateContext: Unable to create DRMContext!\n");
+ free(*priv);
+ return BadAlloc;
+ }
+
+ drmAuthMagic(pI810->drmSubFD, pContext->flags);
+
+ pI810->xvmcContext = contextRec->drmcontext;
+ contextRec->fbBase = pScrn->memPhysBase;
+
+ /* Overlay Regs are at 1024 offset into the Cursor Space */
+ contextRec->OverlayOffset = pI810->CursorStart;
+ contextRec->OverlaySize = 4096;
+
+ contextRec->SurfacesOffset = pI810->MC.Start;
+ contextRec->SurfacesSize = pI810->MC.Size;
+ strncpy (contextRec->busIdString, pDRIInfo->busIdString, 9);
+
+ return Success;
+}
+
+
+int I810XvMCCreateSurface (ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf,
+ int *num_priv, long **priv )
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int i;
+
+ *priv = (long *)calloc(2,sizeof(long));
+
+ if(!*priv) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "I810XvMCCreateSurface: Unable to allocate memory!\n");
+ *num_priv = 0;
+ return BadAlloc;
+ }
+ *num_priv = 2;
+
+ /* Surface Arrangement is different based on 6 or 7 Surfaces */
+ if(pI810->numSurfaces == 6) {
+ for(i=0; i<pI810->numSurfaces; i++) {
+ if(!pI810->surfaceAllocation[i]) {
+ pI810->surfaceAllocation[i] = pSurf->surface_id;
+ /* Y data starts at 2MB offset, each surface is 576k */
+ (*priv)[0] = (2*1024*1024 + 576*1024 * i);
+ /* UV data starts at 0 offset, each set is 288k */
+ (*priv)[1] = (576*512 * i);
+ return Success;
+ }
+ }
+ }
+ if(pI810->numSurfaces == 7) {
+ for(i=0; i<pI810->numSurfaces; i++) {
+ if(!pI810->surfaceAllocation[i]) {
+ pI810->surfaceAllocation[i] = pSurf->surface_id;
+ /* Y data starts at 2.5MB offset, each surface is 576k */
+ (*priv)[0] = (2*1024*1024 + 512*1024 + 576*1024 * i);
+ /* UV data starts at 0 offset, each set is 288k */
+ (*priv)[1] = (576*512 * i);
+ return Success;
+ }
+ }
+ }
+ (*priv)[0] = 0;
+ (*priv)[1] = 0;
+ return BadAlloc;
+}
+
+int I810XvMCCreateSubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSubp,
+ int *num_priv, long **priv )
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int i;
+
+ *priv = (long *)calloc(1,sizeof(long));
+
+ if(!*priv) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "I810XvMCCreateSubpicture: Unable to allocate memory!\n");
+ *num_priv = 0;
+ return BadAlloc;
+ }
+ *num_priv = 1;
+
+ if(pI810->numSurfaces == 6) {
+ for(i=6; i<8; i++) {
+ if(!pI810->surfaceAllocation[i]) {
+ pI810->surfaceAllocation[i] = pSubp->subpicture_id;
+ /* Subpictures are after the Y surfaces in memory */
+ (*priv)[0] = (2*1024*1024 + 576*1024 * i);
+ return Success;
+ }
+ }
+ }
+ if(pI810->numSurfaces == 7) {
+ for(i=7; i<9; i++) {
+ if(!pI810->surfaceAllocation[i]) {
+ pI810->surfaceAllocation[i] = pSubp->subpicture_id;
+ /* Subpictures are after the Y surfaces in memory */
+ (*priv)[0] = (2*1024*1024 + 512*1024 + 576*1024 * i);
+ return Success;
+ }
+ }
+ }
+
+ (*priv)[0] = 0;
+ return BadAlloc;
+}
+
+void I810XvMCDestroyContext (ScrnInfoPtr pScrn, XvMCContextPtr pContext)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ drmDestroyContext(pI810->drmSubFD,pI810->xvmcContext);
+ pI810->xvmcContext = 0;
+}
+
+void I810XvMCDestroySurface (ScrnInfoPtr pScrn, XvMCSurfacePtr pSurf)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int i;
+
+ for(i=0; i<I810_MAX_SURFACES; i++) {
+ if(pI810->surfaceAllocation[i] == pSurf->surface_id) {
+ pI810->surfaceAllocation[i] = 0;
+ return;
+ }
+ }
+ return;
+}
+
+void I810XvMCDestroySubpicture (ScrnInfoPtr pScrn, XvMCSubpicturePtr pSubp)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ int i;
+
+ for(i=pI810->numSurfaces; i<I810_MAX_SURFACES + I810_MAX_SUBPICTURES; i++) {
+ if(pI810->surfaceAllocation[i] == pSubp->subpicture_id) {
+ pI810->surfaceAllocation[i] = 0;
+ return;
+ }
+ }
+ return;
+}
+
+
+
+
+
+
diff --git a/src/legacy/i810/i810_io.c b/src/legacy/i810/i810_io.c
new file mode 100644
index 0000000..a6cf305
--- /dev/null
+++ b/src/legacy/i810/i810_io.c
@@ -0,0 +1,133 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/*
+ * Authors:
+ * Daryll Strauss <daryll@precisioninsight.com>
+ *
+ */
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "compiler.h"
+
+#ifdef BUILD_FOR_I830
+#include "i830.h"
+#define pI810 pI830
+#define I810Ptr I830Ptr
+#define I810WriteControlPIO I830WriteControlPIO
+#define I810ReadControlPIO I830ReadControlPIO
+#define I810WriteStandardPIO I830WriteStandardPIO
+#define I810ReadStandardPIO I830ReadStandardPIO
+#define I810SetPIOAccess I830SetPIOAccess
+#define I810WriteControlMMIO I830WriteControlMMIO
+#define I810ReadControlMMIO I830ReadControlMMIO
+#define I810WriteStandardMMIO I830WriteStandardMMIO
+#define I810ReadStandardMMIO I830ReadStandardMMIO
+#define I810SetMMIOAccess I830SetMMIOAccess
+#else
+#include "i810.h"
+#endif
+
+#define minb(p) *(volatile uint8_t *)(pI810->MMIOBase + (p))
+#define moutb(p,v) *(volatile uint8_t *)(pI810->MMIOBase + (p)) = (v)
+
+static void
+I810WriteControlPIO(I810Ptr pI810, IOADDRESS addr, uint8_t index, uint8_t val)
+{
+ addr += pI810->ioBase;
+ outb(addr, index);
+ outb(addr + 1, val);
+}
+
+static uint8_t
+I810ReadControlPIO(I810Ptr pI810, IOADDRESS addr, uint8_t index)
+{
+ addr += pI810->ioBase;
+ outb(addr, index);
+ return inb(addr + 1);
+}
+
+static void
+I810WriteStandardPIO(I810Ptr pI810, IOADDRESS addr, uint8_t val)
+{
+ outb(pI810->ioBase + addr, val);
+}
+
+static uint8_t
+I810ReadStandardPIO(I810Ptr pI810, IOADDRESS addr)
+{
+ return inb(pI810->ioBase + addr);
+}
+
+void
+I810SetPIOAccess(I810Ptr pI810)
+{
+ pI810->writeControl = I810WriteControlPIO;
+ pI810->readControl = I810ReadControlPIO;
+ pI810->writeStandard = I810WriteStandardPIO;
+ pI810->readStandard = I810ReadStandardPIO;
+}
+
+static void
+I810WriteControlMMIO(I810Ptr pI810, IOADDRESS addr, uint8_t index, uint8_t val)
+{
+ moutb(addr, index);
+ moutb(addr + 1, val);
+}
+
+static uint8_t
+I810ReadControlMMIO(I810Ptr pI810, IOADDRESS addr, uint8_t index)
+{
+ moutb(addr, index);
+ return minb(addr + 1);
+}
+
+static void
+I810WriteStandardMMIO(I810Ptr pI810, IOADDRESS addr, uint8_t val)
+{
+ moutb(addr, val);
+}
+
+static uint8_t
+I810ReadStandardMMIO(I810Ptr pI810, IOADDRESS addr)
+{
+ return minb(addr);
+}
+
+void
+I810SetMMIOAccess(I810Ptr pI810)
+{
+ pI810->writeControl = I810WriteControlMMIO;
+ pI810->readControl = I810ReadControlMMIO;
+ pI810->writeStandard = I810WriteStandardMMIO;
+ pI810->readStandard = I810ReadStandardMMIO;
+}
diff --git a/src/legacy/i810/i810_memory.c b/src/legacy/i810/i810_memory.c
new file mode 100644
index 0000000..f57ddbe
--- /dev/null
+++ b/src/legacy/i810/i810_memory.c
@@ -0,0 +1,428 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ *
+ */
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+
+#include "i810.h"
+#include "i810_reg.h"
+
+int
+I810AllocLow(I810MemRange * result, I810MemRange * pool, int size)
+{
+ if (size > (long)pool->Size)
+ return 0;
+
+ pool->Size -= size;
+ result->Size = size;
+ result->Start = pool->Start;
+ result->End = pool->Start += size;
+
+ return 1;
+}
+
+int
+I810AllocHigh(I810MemRange * result, I810MemRange * pool, int size)
+{
+ if (size > (long)pool->Size)
+ return 0;
+
+ pool->Size -= size;
+ result->Size = size;
+ result->End = pool->End;
+ result->Start = pool->End -= size;
+
+ return 1;
+}
+
+int
+I810AllocateGARTMemory(ScrnInfoPtr pScrn)
+{
+ unsigned long size = pScrn->videoRam * 1024;
+ I810Ptr pI810 = I810PTR(pScrn);
+ int key;
+ long tom = 0;
+ unsigned long physical;
+
+ if (!xf86AgpGARTSupported() || !xf86AcquireGART(pScrn->scrnIndex)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
+ "AGP GART support is either not available or cannot be used.\n"
+ "\tMake sure your kernel has agpgart support or has the\n"
+ "\tagpgart module loaded.\n");
+ return FALSE;
+ }
+
+ /* This allows the 2d only Xserver to regen */
+ pI810->agpAcquired2d = TRUE;
+
+ /*
+ * I810/I815
+ *
+ * Treat the gart like video memory - we assume we own all that is
+ * there, so ignore EBUSY errors. Don't try to remove it on
+ * failure, either, as other X server may be using it.
+ */
+
+ if ((key = xf86AllocateGARTMemory(pScrn->scrnIndex, size, 0, NULL)) == -1)
+ return FALSE;
+
+ pI810->VramOffset = 0;
+ pI810->VramKey = key;
+
+ if (!xf86BindGARTMemory(pScrn->scrnIndex, key, 0))
+ return FALSE;
+
+ pI810->SysMem.Start = 0;
+ pI810->SysMem.Size = size;
+ pI810->SysMem.End = size;
+ pI810->SavedSysMem = pI810->SysMem;
+
+ tom = pI810->SysMem.End;
+
+ pI810->DcacheMem.Start = 0;
+ pI810->DcacheMem.End = 0;
+ pI810->DcacheMem.Size = 0;
+ pI810->CursorPhysical = 0;
+ pI810->CursorARGBPhysical = 0;
+
+ /*
+ * Dcache - half the speed of normal ram, so not really useful for
+ * a 2d server. Don't bother reporting its presence. This is
+ * mapped in addition to the requested amount of system ram.
+ */
+
+ size = 1024 * 4096;
+
+ /*
+ * Keep it 512K aligned for the sake of tiled regions.
+ */
+
+ tom += 0x7ffff;
+ tom &= ~0x7ffff;
+
+ if ((key = xf86AllocateGARTMemory(pScrn->scrnIndex, size, 1, NULL)) != -1) {
+ pI810->DcacheOffset = tom;
+ pI810->DcacheKey = key;
+ if (!xf86BindGARTMemory(pScrn->scrnIndex, key, tom)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Allocation of %ld bytes for DCACHE failed\n", size);
+ pI810->DcacheKey = -1;
+ } else {
+ pI810->DcacheMem.Start = tom;
+ pI810->DcacheMem.Size = size;
+ pI810->DcacheMem.End = pI810->DcacheMem.Start + pI810->DcacheMem.Size;
+ tom = pI810->DcacheMem.End;
+ }
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "No physical memory available for %ld bytes of DCACHE\n",
+ size);
+ pI810->DcacheKey = -1;
+ }
+
+ /*
+ * Mouse cursor -- The i810 (crazy) needs a physical address in
+ * system memory from which to upload the cursor. We get this from
+ * the agpgart module using a special memory type.
+ */
+
+ /*
+ * 4k for the cursor is excessive, I'm going to steal 3k for
+ * overlay registers later
+ */
+
+ size = 4096;
+
+ if ((key =
+ xf86AllocateGARTMemory(pScrn->scrnIndex, size, 2, &physical)) == -1) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "No physical memory available for HW cursor\n");
+ pI810->HwcursKey = -1;
+ pI810->CursorStart = 0;
+ } else {
+ pI810->HwcursOffset = tom;
+ pI810->HwcursKey = key;
+ if (!xf86BindGARTMemory(pScrn->scrnIndex, key, tom)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Allocation of %ld bytes for HW cursor failed\n", size);
+ pI810->HwcursKey = -1;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Allocated of %ld bytes for HW cursor\n", size);
+ pI810->CursorPhysical = physical;
+ pI810->CursorStart = tom;
+ tom += size;
+ }
+ }
+
+ /*
+ * 16k for the ARGB cursor
+ */
+
+ size = 16384;
+
+ if ((key =
+ xf86AllocateGARTMemory(pScrn->scrnIndex, size, 2, &physical)) == -1) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "No physical memory available for ARGB HW cursor\n");
+ pI810->ARGBHwcursKey = -1;
+ pI810->CursorARGBStart = 0;
+ } else {
+ pI810->ARGBHwcursOffset = tom;
+ pI810->ARGBHwcursKey = key;
+ if (!xf86BindGARTMemory(pScrn->scrnIndex, key, tom)) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Allocation of %ld bytes for ARGB HW cursor failed\n", size);
+ pI810->ARGBHwcursKey = -1;
+ } else {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Allocated of %ld bytes for ARGB HW cursor\n", size);
+ pI810->CursorARGBPhysical = physical;
+ pI810->CursorARGBStart = tom;
+ tom += size;
+ }
+ }
+
+ /*
+ * Overlay register buffer -- Just like the cursor, the i810 needs a
+ * physical address in system memory from which to upload the overlay
+ * registers.
+ */
+
+ if (pI810->CursorStart != 0) {
+ pI810->OverlayPhysical = pI810->CursorPhysical + 1024;
+ pI810->OverlayStart = pI810->CursorStart + 1024;
+ }
+
+ pI810->GttBound = 1;
+
+ return TRUE;
+}
+
+/* Tiled memory is good... really, really good...
+ *
+ * Need to make it less likely that we miss out on this - probably
+ * need to move the frontbuffer away from the 'guarenteed' alignment
+ * of the first memory segment, or perhaps allocate a discontigous
+ * framebuffer to get more alignment 'sweet spots'.
+ */
+void
+I810SetTiledMemory(ScrnInfoPtr pScrn, int nr, unsigned int start,
+ unsigned int pitch, unsigned int size)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810RegPtr i810Reg = &pI810->ModeReg;
+ uint32_t val;
+ uint32_t fence_mask = 0;
+
+ if (nr < 0 || nr > 7) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING, "%s - fence %d out of range\n",
+ "I810SetTiledMemory", nr);
+ return;
+ }
+
+ i810Reg->Fence[nr] = 0;
+
+ fence_mask = ~FENCE_START_MASK;
+
+ if (start & fence_mask) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "%s %d: start (%x) is not 512k aligned\n",
+ "I810SetTiledMemory", nr, start);
+ return;
+ }
+
+ if (start % size) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "%s %d: start (%x) is not size (%x) aligned\n",
+ "I810SetTiledMemory", nr, start, size);
+ return;
+ }
+
+ if (pitch & 127) {
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "%s %d: pitch (%x) not a multiple of 128 bytes\n",
+ "I810SetTiledMemory", nr, pitch);
+ return;
+ }
+
+ val = (start | FENCE_X_MAJOR | FENCE_VALID);
+
+ switch (size) {
+ case KB(512):
+ val |= FENCE_SIZE_512K;
+ break;
+ case MB(1):
+ val |= FENCE_SIZE_1M;
+ break;
+ case MB(2):
+ val |= FENCE_SIZE_2M;
+ break;
+ case MB(4):
+ val |= FENCE_SIZE_4M;
+ break;
+ case MB(8):
+ val |= FENCE_SIZE_8M;
+ break;
+ case MB(16):
+ val |= FENCE_SIZE_16M;
+ break;
+ case MB(32):
+ val |= FENCE_SIZE_32M;
+ break;
+ default:
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "%s %d: illegal size (0x%x)\n", "I810SetTiledMemory", nr,
+ size);
+ return;
+ }
+
+ switch (pitch / 128) {
+ case 1:
+ val |= FENCE_PITCH_1;
+ break;
+ case 2:
+ val |= FENCE_PITCH_2;
+ break;
+ case 4:
+ val |= FENCE_PITCH_4;
+ break;
+ case 8:
+ val |= FENCE_PITCH_8;
+ break;
+ case 16:
+ val |= FENCE_PITCH_16;
+ break;
+ case 32:
+ val |= FENCE_PITCH_32;
+ break;
+ default:
+ xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
+ "%s %d: illegal size (0x%x)\n", "I810SetTiledMemory", nr,
+ size);
+ return;
+ }
+
+ i810Reg->Fence[nr] = val;
+}
+
+Bool
+I810BindGARTMemory(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (xf86AgpGARTSupported() && !pI810->directRenderingEnabled
+ && !pI810->GttBound) {
+ if (!xf86AcquireGART(pScrn->scrnIndex))
+ return FALSE;
+
+ if (pI810->VramKey != -1
+ && !xf86BindGARTMemory(pScrn->scrnIndex, pI810->VramKey,
+ pI810->VramOffset))
+ return FALSE;
+
+ if (pI810->DcacheKey != -1
+ && !xf86BindGARTMemory(pScrn->scrnIndex, pI810->DcacheKey,
+ pI810->DcacheOffset))
+ return FALSE;
+
+ if (pI810->HwcursKey != -1
+ && !xf86BindGARTMemory(pScrn->scrnIndex, pI810->HwcursKey,
+ pI810->HwcursOffset))
+ return FALSE;
+
+ if (pI810->ARGBHwcursKey != -1
+ && !xf86BindGARTMemory(pScrn->scrnIndex, pI810->ARGBHwcursKey,
+ pI810->ARGBHwcursOffset))
+ return FALSE;
+
+ pI810->GttBound = 1;
+ }
+
+ return TRUE;
+}
+
+Bool
+I810UnbindGARTMemory(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if (xf86AgpGARTSupported() && !pI810->directRenderingEnabled
+ && pI810->GttBound) {
+ if (pI810->VramKey != -1
+ && !xf86UnbindGARTMemory(pScrn->scrnIndex, pI810->VramKey))
+ return FALSE;
+
+ if (pI810->DcacheKey != -1
+ && !xf86UnbindGARTMemory(pScrn->scrnIndex, pI810->DcacheKey))
+ return FALSE;
+
+ if (pI810->HwcursKey != -1
+ && !xf86UnbindGARTMemory(pScrn->scrnIndex, pI810->HwcursKey))
+ return FALSE;
+
+ if (pI810->ARGBHwcursKey != -1
+ && !xf86UnbindGARTMemory(pScrn->scrnIndex, pI810->ARGBHwcursKey))
+ return FALSE;
+
+ if (!xf86ReleaseGART(pScrn->scrnIndex))
+ return FALSE;
+
+ pI810->GttBound = 0;
+ }
+
+ return TRUE;
+}
+
+int
+I810CheckAvailableMemory(ScrnInfoPtr pScrn)
+{
+ AgpInfoPtr agpinf;
+ int maxPages;
+
+ if (!xf86AgpGARTSupported() ||
+ !xf86AcquireGART(pScrn->scrnIndex) ||
+ (agpinf = xf86GetAGPInfo(pScrn->scrnIndex)) == NULL ||
+ !xf86ReleaseGART(pScrn->scrnIndex))
+ return -1;
+
+ maxPages = agpinf->totalPages - agpinf->usedPages;
+ xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 2, "%s: %dk available\n",
+ "I810CheckAvailableMemory", maxPages * 4);
+
+ return maxPages * 4;
+}
diff --git a/src/legacy/i810/i810_reg.h b/src/legacy/i810/i810_reg.h
new file mode 100644
index 0000000..54faeb3
--- /dev/null
+++ b/src/legacy/i810/i810_reg.h
@@ -0,0 +1,3194 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/** @file
+ * Register names and fields for Intel graphics.
+ */
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ * Eric Anholt <eric@anholt.net>
+ *
+ * based on the i740 driver by
+ * Kevin E. Martin <kevin@precisioninsight.com>
+ *
+ *
+ */
+
+#ifndef _I810_REG_H
+#define _I810_REG_H
+
+/* I/O register offsets
+ */
+#define SRX 0x3C4 /* p208 */
+#define GRX 0x3CE /* p213 */
+#define ARX 0x3C0 /* p224 */
+
+/* VGA Color Palette Registers */
+#define DACMASK 0x3C6 /* p232 */
+#define DACSTATE 0x3C7 /* p232 */
+#define DACRX 0x3C7 /* p233 */
+#define DACWX 0x3C8 /* p233 */
+#define DACDATA 0x3C9 /* p233 */
+
+/* CRT Controller Registers (CRX) */
+#define START_ADDR_HI 0x0C /* p246 */
+#define START_ADDR_LO 0x0D /* p247 */
+#define VERT_SYNC_END 0x11 /* p249 */
+#define EXT_VERT_TOTAL 0x30 /* p257 */
+#define EXT_VERT_DISPLAY 0x31 /* p258 */
+#define EXT_VERT_SYNC_START 0x32 /* p259 */
+#define EXT_VERT_BLANK_START 0x33 /* p260 */
+#define EXT_HORIZ_TOTAL 0x35 /* p261 */
+#define EXT_HORIZ_BLANK 0x39 /* p261 */
+#define EXT_START_ADDR 0x40 /* p262 */
+#define EXT_START_ADDR_ENABLE 0x80
+#define EXT_OFFSET 0x41 /* p263 */
+#define EXT_START_ADDR_HI 0x42 /* p263 */
+#define INTERLACE_CNTL 0x70 /* p264 */
+#define INTERLACE_ENABLE 0x80
+#define INTERLACE_DISABLE 0x00
+
+/* Miscellaneous Output Register
+ */
+#define MSR_R 0x3CC /* p207 */
+#define MSR_W 0x3C2 /* p207 */
+#define IO_ADDR_SELECT 0x01
+
+#define MDA_BASE 0x3B0 /* p207 */
+#define CGA_BASE 0x3D0 /* p207 */
+
+/* CR80 - IO Control, p264
+ */
+#define IO_CTNL 0x80
+#define EXTENDED_ATTR_CNTL 0x02
+#define EXTENDED_CRTC_CNTL 0x01
+
+/* GR10 - Address mapping, p221
+ */
+#define ADDRESS_MAPPING 0x10
+#define PAGE_TO_LOCAL_MEM_ENABLE 0x10
+#define GTT_MEM_MAP_ENABLE 0x08
+#define PACKED_MODE_ENABLE 0x04
+#define LINEAR_MODE_ENABLE 0x02
+#define PAGE_MAPPING_ENABLE 0x01
+
+#define HOTKEY_VBIOS_SWITCH_BLOCK 0x80
+#define HOTKEY_SWITCH 0x20
+#define HOTKEY_TOGGLE 0x10
+
+/* Blitter control, p378
+ */
+#define BITBLT_CNTL 0x7000c
+#define COLEXP_MODE 0x30
+#define COLEXP_8BPP 0x00
+#define COLEXP_16BPP 0x10
+#define COLEXP_24BPP 0x20
+#define COLEXP_RESERVED 0x30
+#define BITBLT_STATUS 0x01
+
+#define CHDECMISC 0x10111
+#define DCC 0x10200
+#define C0DRB0 0x10200
+#define C0DRB1 0x10202
+#define C0DRB2 0x10204
+#define C0DRB3 0x10206
+#define C0DRA01 0x10208
+#define C0DRA23 0x1020a
+#define C1DRB0 0x10600
+#define C1DRB1 0x10602
+#define C1DRB2 0x10604
+#define C1DRB3 0x10606
+#define C1DRA01 0x10608
+#define C1DRA23 0x1060a
+
+/* p375.
+ */
+#define DISPLAY_CNTL 0x70008
+#define VGA_WRAP_MODE 0x02
+#define VGA_WRAP_AT_256KB 0x00
+#define VGA_NO_WRAP 0x02
+#define GUI_MODE 0x01
+#define STANDARD_VGA_MODE 0x00
+#define HIRES_MODE 0x01
+
+/* p375
+ */
+#define PIXPIPE_CONFIG_0 0x70009
+#define DAC_8_BIT 0x80
+#define DAC_6_BIT 0x00
+#define HW_CURSOR_ENABLE 0x10
+#define EXTENDED_PALETTE 0x01
+
+/* p375
+ */
+#define PIXPIPE_CONFIG_1 0x7000a
+#define DISPLAY_COLOR_MODE 0x0F
+#define DISPLAY_VGA_MODE 0x00
+#define DISPLAY_8BPP_MODE 0x02
+#define DISPLAY_15BPP_MODE 0x04
+#define DISPLAY_16BPP_MODE 0x05
+#define DISPLAY_24BPP_MODE 0x06
+#define DISPLAY_32BPP_MODE 0x07
+
+/* p375
+ */
+#define PIXPIPE_CONFIG_2 0x7000b
+#define DISPLAY_GAMMA_ENABLE 0x08
+#define DISPLAY_GAMMA_DISABLE 0x00
+#define OVERLAY_GAMMA_ENABLE 0x04
+#define OVERLAY_GAMMA_DISABLE 0x00
+
+
+/* p380
+ */
+#define DISPLAY_BASE 0x70020
+#define DISPLAY_BASE_MASK 0x03fffffc
+
+
+/* Cursor control registers, pp383-384
+ */
+/* Desktop (845G, 865G) */
+#define CURSOR_CONTROL 0x70080
+#define CURSOR_ENABLE 0x80000000
+#define CURSOR_GAMMA_ENABLE 0x40000000
+#define CURSOR_STRIDE_MASK 0x30000000
+#define CURSOR_FORMAT_SHIFT 24
+#define CURSOR_FORMAT_MASK (0x07 << CURSOR_FORMAT_SHIFT)
+#define CURSOR_FORMAT_2C (0x00 << CURSOR_FORMAT_SHIFT)
+#define CURSOR_FORMAT_3C (0x01 << CURSOR_FORMAT_SHIFT)
+#define CURSOR_FORMAT_4C (0x02 << CURSOR_FORMAT_SHIFT)
+#define CURSOR_FORMAT_ARGB (0x04 << CURSOR_FORMAT_SHIFT)
+#define CURSOR_FORMAT_XRGB (0x05 << CURSOR_FORMAT_SHIFT)
+
+/* Mobile and i810 */
+#define CURSOR_A_CONTROL CURSOR_CONTROL
+#define CURSOR_ORIGIN_SCREEN 0x00 /* i810 only */
+#define CURSOR_ORIGIN_DISPLAY 0x1 /* i810 only */
+#define CURSOR_MODE 0x27
+#define CURSOR_MODE_DISABLE 0x00
+#define CURSOR_MODE_32_4C_AX 0x01 /* i810 only */
+#define CURSOR_MODE_64_3C 0x04
+#define CURSOR_MODE_64_4C_AX 0x05
+#define CURSOR_MODE_64_4C 0x06
+#define CURSOR_MODE_64_32B_AX 0x07
+#define CURSOR_MODE_64_ARGB_AX (0x20 | CURSOR_MODE_64_32B_AX)
+#define MCURSOR_PIPE_SELECT (1 << 28)
+#define MCURSOR_PIPE_A 0x00
+#define MCURSOR_PIPE_B (1 << 28)
+#define MCURSOR_GAMMA_ENABLE (1 << 26)
+#define MCURSOR_MEM_TYPE_LOCAL (1 << 25)
+
+
+#define CURSOR_BASEADDR 0x70084
+#define CURSOR_A_BASE CURSOR_BASEADDR
+#define CURSOR_BASEADDR_MASK 0x1FFFFF00
+#define CURSOR_A_POSITION 0x70088
+#define CURSOR_POS_SIGN 0x8000
+#define CURSOR_POS_MASK 0x007FF
+#define CURSOR_X_SHIFT 0
+#define CURSOR_Y_SHIFT 16
+#define CURSOR_X_LO 0x70088
+#define CURSOR_X_HI 0x70089
+#define CURSOR_X_POS 0x00
+#define CURSOR_X_NEG 0x80
+#define CURSOR_Y_LO 0x7008A
+#define CURSOR_Y_HI 0x7008B
+#define CURSOR_Y_POS 0x00
+#define CURSOR_Y_NEG 0x80
+
+#define CURSOR_A_PALETTE0 0x70090
+#define CURSOR_A_PALETTE1 0x70094
+#define CURSOR_A_PALETTE2 0x70098
+#define CURSOR_A_PALETTE3 0x7009C
+
+#define CURSOR_SIZE 0x700A0
+#define CURSOR_SIZE_MASK 0x3FF
+#define CURSOR_SIZE_HSHIFT 0
+#define CURSOR_SIZE_VSHIFT 12
+
+#define CURSOR_B_CONTROL 0x700C0
+#define CURSOR_B_BASE 0x700C4
+#define CURSOR_B_POSITION 0x700C8
+#define CURSOR_B_PALETTE0 0x700D0
+#define CURSOR_B_PALETTE1 0x700D4
+#define CURSOR_B_PALETTE2 0x700D8
+#define CURSOR_B_PALETTE3 0x700DC
+
+
+/* Similar registers exist in Device 0 on the i810 (pp55-65), but I'm
+ * not sure they refer to local (graphics) memory.
+ *
+ * These details are for the local memory control registers,
+ * (pp301-310). The test machines are not equiped with local memory,
+ * so nothing is tested. Only a single row seems to be supported.
+ */
+#define DRAM_ROW_TYPE 0x3000
+#define DRAM_ROW_0 0x01
+#define DRAM_ROW_0_SDRAM 0x01
+#define DRAM_ROW_0_EMPTY 0x00
+#define DRAM_ROW_CNTL_LO 0x3001
+#define DRAM_PAGE_MODE_CTRL 0x10
+#define DRAM_RAS_TO_CAS_OVRIDE 0x08
+#define DRAM_CAS_LATENCY 0x04
+#define DRAM_RAS_TIMING 0x02
+#define DRAM_RAS_PRECHARGE 0x01
+#define DRAM_ROW_CNTL_HI 0x3002
+#define DRAM_REFRESH_RATE 0x18
+#define DRAM_REFRESH_DISABLE 0x00
+#define DRAM_REFRESH_60HZ 0x08
+#define DRAM_REFRESH_FAST_TEST 0x10
+#define DRAM_REFRESH_RESERVED 0x18
+#define DRAM_SMS 0x07
+#define DRAM_SMS_NORMAL 0x00
+#define DRAM_SMS_NOP_ENABLE 0x01
+#define DRAM_SMS_ABPCE 0x02
+#define DRAM_SMS_MRCE 0x03
+#define DRAM_SMS_CBRCE 0x04
+
+/* p307
+ */
+#define DPMS_SYNC_SELECT 0x5002
+#define VSYNC_CNTL 0x08
+#define VSYNC_ON 0x00
+#define VSYNC_OFF 0x08
+#define HSYNC_CNTL 0x02
+#define HSYNC_ON 0x00
+#define HSYNC_OFF 0x02
+
+#define GPIOA 0x5010
+#define GPIOB 0x5014
+#define GPIOC 0x5018
+#define GPIOD 0x501c
+#define GPIOE 0x5020
+#define GPIOF 0x5024
+#define GPIOG 0x5028
+#define GPIOH 0x502c
+# define GPIO_CLOCK_DIR_MASK (1 << 0)
+# define GPIO_CLOCK_DIR_IN (0 << 1)
+# define GPIO_CLOCK_DIR_OUT (1 << 1)
+# define GPIO_CLOCK_VAL_MASK (1 << 2)
+# define GPIO_CLOCK_VAL_OUT (1 << 3)
+# define GPIO_CLOCK_VAL_IN (1 << 4)
+# define GPIO_CLOCK_PULLUP_DISABLE (1 << 5)
+# define GPIO_DATA_DIR_MASK (1 << 8)
+# define GPIO_DATA_DIR_IN (0 << 9)
+# define GPIO_DATA_DIR_OUT (1 << 9)
+# define GPIO_DATA_VAL_MASK (1 << 10)
+# define GPIO_DATA_VAL_OUT (1 << 11)
+# define GPIO_DATA_VAL_IN (1 << 12)
+# define GPIO_DATA_PULLUP_DISABLE (1 << 13)
+
+/* GMBus registers for hardware-assisted (non-bitbanging) I2C access */
+#define GMBUS0 0x5100
+#define GMBUS1 0x5104
+#define GMBUS2 0x5108
+#define GMBUS3 0x510c
+#define GMBUS4 0x5110
+#define GMBUS5 0x5120
+
+/* p317, 319
+ */
+#define VCLK2_VCO_M 0x6008 /* treat as 16 bit? (includes msbs) */
+#define VCLK2_VCO_N 0x600a
+#define VCLK2_VCO_DIV_SEL 0x6012
+
+#define VCLK_DIVISOR_VGA0 0x6000
+#define VCLK_DIVISOR_VGA1 0x6004
+#define VCLK_POST_DIV 0x6010
+/** Selects a post divisor of 4 instead of 2. */
+# define VGA1_PD_P2_DIV_4 (1 << 15)
+/** Overrides the p2 post divisor field */
+# define VGA1_PD_P1_DIV_2 (1 << 13)
+# define VGA1_PD_P1_SHIFT 8
+/** P1 value is 2 greater than this field */
+# define VGA1_PD_P1_MASK (0x1f << 8)
+/** Selects a post divisor of 4 instead of 2. */
+# define VGA0_PD_P2_DIV_4 (1 << 7)
+/** Overrides the p2 post divisor field */
+# define VGA0_PD_P1_DIV_2 (1 << 5)
+# define VGA0_PD_P1_SHIFT 0
+/** P1 value is 2 greater than this field */
+# define VGA0_PD_P1_MASK (0x1f << 0)
+
+#define POST_DIV_SELECT 0x70
+#define POST_DIV_1 0x00
+#define POST_DIV_2 0x10
+#define POST_DIV_4 0x20
+#define POST_DIV_8 0x30
+#define POST_DIV_16 0x40
+#define POST_DIV_32 0x50
+#define VCO_LOOP_DIV_BY_4M 0x00
+#define VCO_LOOP_DIV_BY_16M 0x04
+
+
+/* Instruction Parser Mode Register
+ * - p281
+ * - 2 new bits.
+ */
+#define INST_PM 0x20c0
+#define AGP_SYNC_PACKET_FLUSH_ENABLE 0x20 /* reserved */
+#define SYNC_PACKET_FLUSH_ENABLE 0x10
+#define TWO_D_INST_DISABLE 0x08
+#define THREE_D_INST_DISABLE 0x04
+#define STATE_VAR_UPDATE_DISABLE 0x02
+#define PAL_STIP_DISABLE 0x01
+
+
+#define MEMMODE 0x20dc
+
+
+/* Instruction parser error register. p279
+ */
+#define IPEIR 0x2088
+#define IPEHR 0x208C
+
+#define INST_DONE 0x2090
+# define IDCT_DONE (1 << 30)
+# define IQ_DONE (1 << 29)
+# define PR_DONE (1 << 28)
+# define VLD_DONE (1 << 27)
+# define IP_DONE (1 << 26)
+# define FBC_DONE (1 << 25)
+# define BINNER_DONE (1 << 24)
+# define SF_DONE (1 << 23)
+# define SE_DONE (1 << 22)
+# define WM_DONE (1 << 21)
+# define IZ_DONE (1 << 20)
+# define PERSPECTIVE_INTERP_DONE (1 << 19)
+# define DISPATCHER_DONE (1 << 18)
+# define PROJECTION_DONE (1 << 17)
+# define DEPENDENT_ADDRESS_DONE (1 << 16)
+# define QUAD_CACHE_DONE (1 << 15)
+# define TEXTURE_FETCH_DONE (1 << 14)
+# define TEXTURE_DECOMPRESS_DONE (1 << 13)
+# define SAMPLER_CACHE_DONE (1 << 12)
+# define FILTER_DONE (1 << 11)
+# define BYPASS_FIFO_DONE (1 << 10)
+# define PS_DONE (1 << 9)
+# define CC_DONE (1 << 8)
+# define MAP_FILTER_DONE (1 << 7)
+# define MAP_L2_IDLE (1 << 6)
+# define RING_2_ENABLE (1 << 2)
+# define RING_1_ENABLE (1 << 1)
+# define RING_0_ENABLE (1 << 0)
+
+#define SCPD0 0x209c /* debug */
+#define INST_PS 0x20c4
+#define IPEIR_I965 0x2064 /* i965 */
+#define IPEHR_I965 0x2068 /* i965 */
+#define INST_DONE_I965 0x206c
+# define I965_SF_DONE (1 << 23)
+# define I965_SE_DONE (1 << 22)
+# define I965_WM_DONE (1 << 21)
+# define I965_TEXTURE_FETCH_DONE (1 << 14)
+# define I965_SAMPLER_CACHE_DONE (1 << 12)
+# define I965_FILTER_DONE (1 << 11)
+# define I965_PS_DONE (1 << 9)
+# define I965_CC_DONE (1 << 8)
+# define I965_MAP_FILTER_DONE (1 << 7)
+# define I965_MAP_L2_IDLE (1 << 6)
+# define I965_CP_DONE (1 << 1)
+# define I965_RING_0_ENABLE (1 << 0)
+#define INST_PS_I965 0x2070
+
+/* Current active ring head address:
+ */
+#define ACTHD_I965 0x2074
+#define ACTHD 0x20C8
+
+/* Current primary/secondary DMA fetch addresses:
+ */
+#define DMA_FADD_P 0x2078
+#define DMA_FADD_S 0x20d4
+#define INST_DONE_1 0x207c
+
+#define CACHE_MODE_0 0x2120
+#define CACHE_MODE_1 0x2124
+#define MI_MODE 0x209c
+#define MI_DISPLAY_POWER_DOWN 0x20e0
+#define MI_ARB_STATE 0x20e4
+#define MI_RDRET_STATE 0x20fc
+
+/* Start addresses for each of the primary rings:
+ */
+#define PR0_STR 0x20f0
+#define PR1_STR 0x20f4
+#define PR2_STR 0x20f8
+
+#define WIZ_CTL 0x7c00
+#define WIZ_CTL_SINGLE_SUBSPAN (1<<6)
+#define WIZ_CTL_IGNORE_STALLS (1<<5)
+
+#define SVG_WORK_CTL 0x7408
+
+#define TS_CTL 0x7e00
+#define TS_MUX_ERR_CODE (0<<8)
+#define TS_MUX_URB_0 (1<<8)
+#define TS_MUX_DISPATCH_ID_0 (10<<8)
+#define TS_MUX_ERR_CODE_VALID (15<<8)
+#define TS_MUX_TID_0 (16<<8)
+#define TS_MUX_EUID_0 (18<<8)
+#define TS_MUX_FFID_0 (22<<8)
+#define TS_MUX_EOT (26<<8)
+#define TS_MUX_SIDEBAND_0 (27<<8)
+#define TS_SNAP_ALL_CHILD (1<<2)
+#define TS_SNAP_ALL_ROOT (1<<1)
+#define TS_SNAP_ENABLE (1<<0)
+
+#define TS_DEBUG_DATA 0x7e0c
+
+#define TD_CTL 0x8000
+#define TD_CTL2 0x8004
+
+
+#define ECOSKPD 0x21d0
+#define EXCC 0x2028
+
+/* I965 debug regs:
+ */
+#define IA_VERTICES_COUNT_QW 0x2310
+#define IA_PRIMITIVES_COUNT_QW 0x2318
+#define VS_INVOCATION_COUNT_QW 0x2320
+#define GS_INVOCATION_COUNT_QW 0x2328
+#define GS_PRIMITIVES_COUNT_QW 0x2330
+#define CL_INVOCATION_COUNT_QW 0x2338
+#define CL_PRIMITIVES_COUNT_QW 0x2340
+#define PS_INVOCATION_COUNT_QW 0x2348
+#define PS_DEPTH_COUNT_QW 0x2350
+#define TIMESTAMP_QW 0x2358
+#define CLKCMP_QW 0x2360
+
+
+
+
+
+
+/* General error reporting regs, p296
+ */
+#define EIR 0x20B0
+#define EMR 0x20B4
+#define ESR 0x20B8
+# define ERR_VERTEX_MAX (1 << 5) /* lpt/cst */
+# define ERR_PGTBL_ERROR (1 << 4)
+# define ERR_DISPLAY_OVERLAY_UNDERRUN (1 << 3)
+# define ERR_MAIN_MEMORY_REFRESH (1 << 1)
+# define ERR_INSTRUCTION_ERROR (1 << 0)
+
+
+/* Interrupt Control Registers
+ * - new bits for i810
+ * - new register hwstam (mask)
+ */
+#define HWS_PGA 0x2080
+#define PWRCTXA 0x2088 /* 965GM+ only */
+#define PWRCTX_EN (1<<0)
+#define HWSTAM 0x2098 /* p290 */
+#define IER 0x20a0 /* p291 */
+#define IIR 0x20a4 /* p292 */
+#define IMR 0x20a8 /* p293 */
+#define ISR 0x20ac /* p294 */
+#define HW_ERROR 0x8000
+#define SYNC_STATUS_TOGGLE 0x1000
+#define DPY_0_FLIP_PENDING 0x0800
+#define DPY_1_FLIP_PENDING 0x0400 /* not implemented on i810 */
+#define OVL_0_FLIP_PENDING 0x0200
+#define OVL_1_FLIP_PENDING 0x0100 /* not implemented on i810 */
+#define DPY_0_VBLANK 0x0080
+#define DPY_0_EVENT 0x0040
+#define DPY_1_VBLANK 0x0020 /* not implemented on i810 */
+#define DPY_1_EVENT 0x0010 /* not implemented on i810 */
+#define HOST_PORT_EVENT 0x0008 /* */
+#define CAPTURE_EVENT 0x0004 /* */
+#define USER_DEFINED 0x0002
+#define BREAKPOINT 0x0001
+
+
+#define INTR_RESERVED (0x6000 | \
+ DPY_1_FLIP_PENDING | \
+ OVL_1_FLIP_PENDING | \
+ DPY_1_VBLANK | \
+ DPY_1_EVENT | \
+ HOST_PORT_EVENT | \
+ CAPTURE_EVENT )
+
+/* FIFO Watermark and Burst Length Control Register
+ *
+ * - different offset and contents on i810 (p299) (fewer bits per field)
+ * - some overlay fields added
+ * - what does it all mean?
+ */
+#define FWATER_BLC 0x20d8
+#define FWATER_BLC2 0x20dc
+#define MM_BURST_LENGTH 0x00700000
+#define MM_FIFO_WATERMARK 0x0001F000
+#define LM_BURST_LENGTH 0x00000700
+#define LM_FIFO_WATERMARK 0x0000001F
+
+
+/* Fence/Tiling ranges [0..7]
+ */
+#define FENCE 0x2000
+#define FENCE_NR 8
+
+#define FENCE_NEW 0x3000
+#define FENCE_NEW_NR 16
+
+#define FENCE_LINEAR 0
+#define FENCE_XMAJOR 1
+#define FENCE_YMAJOR 2
+
+#define I915G_FENCE_START_MASK 0x0ff00000
+
+#define I830_FENCE_START_MASK 0x07f80000
+
+#define FENCE_START_MASK 0x03F80000
+#define FENCE_X_MAJOR 0x00000000
+#define FENCE_Y_MAJOR 0x00001000
+#define FENCE_SIZE_MASK 0x00000700
+#define FENCE_SIZE_512K 0x00000000
+#define FENCE_SIZE_1M 0x00000100
+#define FENCE_SIZE_2M 0x00000200
+#define FENCE_SIZE_4M 0x00000300
+#define FENCE_SIZE_8M 0x00000400
+#define FENCE_SIZE_16M 0x00000500
+#define FENCE_SIZE_32M 0x00000600
+#define FENCE_SIZE_64M 0x00000700
+#define I915G_FENCE_SIZE_1M 0x00000000
+#define I915G_FENCE_SIZE_2M 0x00000100
+#define I915G_FENCE_SIZE_4M 0x00000200
+#define I915G_FENCE_SIZE_8M 0x00000300
+#define I915G_FENCE_SIZE_16M 0x00000400
+#define I915G_FENCE_SIZE_32M 0x00000500
+#define I915G_FENCE_SIZE_64M 0x00000600
+#define I915G_FENCE_SIZE_128M 0x00000700
+#define I965_FENCE_X_MAJOR 0x00000000
+#define I965_FENCE_Y_MAJOR 0x00000002
+#define FENCE_PITCH_1 0x00000000
+#define FENCE_PITCH_2 0x00000010
+#define FENCE_PITCH_4 0x00000020
+#define FENCE_PITCH_8 0x00000030
+#define FENCE_PITCH_16 0x00000040
+#define FENCE_PITCH_32 0x00000050
+#define FENCE_PITCH_64 0x00000060
+#define FENCE_VALID 0x00000001
+
+
+/* Registers to control page table, p274
+ */
+#define PGETBL_CTL 0x2020
+#define PGETBL_ADDR_MASK 0xFFFFF000
+#define PGETBL_ENABLE_MASK 0x00000001
+#define PGETBL_ENABLED 0x00000001
+/** Added in 965G, this field has the actual size of the global GTT */
+#define PGETBL_SIZE_MASK 0x0000000e
+#define PGETBL_SIZE_512KB (0 << 1)
+#define PGETBL_SIZE_256KB (1 << 1)
+#define PGETBL_SIZE_128KB (2 << 1)
+#define PGETBL_SIZE_1MB (3 << 1)
+#define PGETBL_SIZE_2MB (4 << 1)
+#define PGETBL_SIZE_1_5MB (5 << 1)
+#define G33_PGETBL_SIZE_MASK (3 << 8)
+#define G33_PGETBL_SIZE_1M (1 << 8)
+#define G33_PGETBL_SIZE_2M (2 << 8)
+
+#define I830_PTE_BASE 0x10000
+#define PTE_ADDRESS_MASK 0xfffff000
+#define PTE_ADDRESS_MASK_HIGH 0x000000f0 /* i915+ */
+#define PTE_MAPPING_TYPE_UNCACHED (0 << 1)
+#define PTE_MAPPING_TYPE_DCACHE (1 << 1) /* i830 only */
+#define PTE_MAPPING_TYPE_CACHED (3 << 1)
+#define PTE_MAPPING_TYPE_MASK (3 << 1)
+#define PTE_VALID (1 << 0)
+
+/** @defgroup PGE_ERR
+ * @{
+ */
+/** Page table debug register for i845 */
+#define PGE_ERR 0x2024
+#define PGE_ERR_ADDR_MASK 0xFFFFF000
+#define PGE_ERR_ID_MASK 0x00000038
+#define PGE_ERR_CAPTURE 0x00000000
+#define PGE_ERR_OVERLAY 0x00000008
+#define PGE_ERR_DISPLAY 0x00000010
+#define PGE_ERR_HOST 0x00000018
+#define PGE_ERR_RENDER 0x00000020
+#define PGE_ERR_BLITTER 0x00000028
+#define PGE_ERR_MAPPING 0x00000030
+#define PGE_ERR_CMD_PARSER 0x00000038
+#define PGE_ERR_TYPE_MASK 0x00000007
+#define PGE_ERR_INV_TABLE 0x00000000
+#define PGE_ERR_INV_PTE 0x00000001
+#define PGE_ERR_MIXED_TYPES 0x00000002
+#define PGE_ERR_PAGE_MISS 0x00000003
+#define PGE_ERR_ILLEGAL_TRX 0x00000004
+#define PGE_ERR_LOCAL_MEM 0x00000005
+#define PGE_ERR_TILED 0x00000006
+/** @} */
+
+/** @defgroup PGTBL_ER
+ * @{
+ */
+/** Page table debug register for i945 */
+# define PGTBL_ER 0x2024
+# define PGTBL_ERR_MT_TILING (1 << 27)
+# define PGTBL_ERR_MT_GTT_PTE (1 << 26)
+# define PGTBL_ERR_LC_TILING (1 << 25)
+# define PGTBL_ERR_LC_GTT_PTE (1 << 24)
+# define PGTBL_ERR_BIN_VERTEXDATA_GTT_PTE (1 << 23)
+# define PGTBL_ERR_BIN_INSTRUCTION_GTT_PTE (1 << 22)
+# define PGTBL_ERR_CS_VERTEXDATA_GTT_PTE (1 << 21)
+# define PGTBL_ERR_CS_INSTRUCTION_GTT_PTE (1 << 20)
+# define PGTBL_ERR_CS_GTT (1 << 19)
+# define PGTBL_ERR_OVERLAY_TILING (1 << 18)
+# define PGTBL_ERR_OVERLAY_GTT_PTE (1 << 16)
+# define PGTBL_ERR_DISPC_TILING (1 << 14)
+# define PGTBL_ERR_DISPC_GTT_PTE (1 << 12)
+# define PGTBL_ERR_DISPB_TILING (1 << 10)
+# define PGTBL_ERR_DISPB_GTT_PTE (1 << 8)
+# define PGTBL_ERR_DISPA_TILING (1 << 6)
+# define PGTBL_ERR_DISPA_GTT_PTE (1 << 4)
+# define PGTBL_ERR_HOST_PTE_DATA (1 << 1)
+# define PGTBL_ERR_HOST_GTT_PTE (1 << 0)
+/** @} */
+
+/* Ring buffer registers, p277, overview p19
+ */
+#define LP_RING 0x2030
+#define HP_RING 0x2040
+
+#define RING_TAIL 0x00
+#define TAIL_ADDR 0x000FFFF8
+#define I830_TAIL_MASK 0x001FFFF8
+
+#define RING_HEAD 0x04
+#define HEAD_WRAP_COUNT 0xFFE00000
+#define HEAD_WRAP_ONE 0x00200000
+#define HEAD_ADDR 0x001FFFFC
+#define I830_HEAD_MASK 0x001FFFFC
+
+#define RING_START 0x08
+#define START_ADDR 0x03FFFFF8
+#define I830_RING_START_MASK 0xFFFFF000
+
+#define RING_LEN 0x0C
+#define RING_NR_PAGES 0x001FF000
+#define I830_RING_NR_PAGES 0x001FF000
+#define RING_REPORT_MASK 0x00000006
+#define RING_REPORT_64K 0x00000002
+#define RING_REPORT_128K 0x00000004
+#define RING_NO_REPORT 0x00000000
+#define RING_VALID_MASK 0x00000001
+#define RING_VALID 0x00000001
+#define RING_INVALID 0x00000000
+
+
+
+/* BitBlt Instructions
+ *
+ * There are many more masks & ranges yet to add.
+ */
+#define BR00_BITBLT_CLIENT 0x40000000
+#define BR00_OP_COLOR_BLT 0x10000000
+#define BR00_OP_SRC_COPY_BLT 0x10C00000
+#define BR00_OP_FULL_BLT 0x11400000
+#define BR00_OP_MONO_SRC_BLT 0x11800000
+#define BR00_OP_MONO_SRC_COPY_BLT 0x11000000
+#define BR00_OP_MONO_PAT_BLT 0x11C00000
+#define BR00_OP_MONO_SRC_COPY_IMMEDIATE_BLT (0x61 << 22)
+#define BR00_OP_TEXT_IMMEDIATE_BLT 0xc000000
+
+
+#define BR00_TPCY_DISABLE 0x00000000
+#define BR00_TPCY_ENABLE 0x00000010
+
+#define BR00_TPCY_ROP 0x00000000
+#define BR00_TPCY_NO_ROP 0x00000020
+#define BR00_TPCY_EQ 0x00000000
+#define BR00_TPCY_NOT_EQ 0x00000040
+
+#define BR00_PAT_MSB_FIRST 0x00000000 /* ? */
+
+#define BR00_PAT_VERT_ALIGN 0x000000e0
+
+#define BR00_LENGTH 0x0000000F
+
+#define BR09_DEST_ADDR 0x03FFFFFF
+
+#define BR11_SOURCE_PITCH 0x00003FFF
+
+#define BR12_SOURCE_ADDR 0x03FFFFFF
+
+#define BR13_SOLID_PATTERN 0x80000000
+#define BR13_RIGHT_TO_LEFT 0x40000000
+#define BR13_LEFT_TO_RIGHT 0x00000000
+#define BR13_MONO_TRANSPCY 0x20000000
+#define BR13_MONO_PATN_TRANS 0x10000000
+#define BR13_USE_DYN_DEPTH 0x04000000
+#define BR13_DYN_8BPP 0x00000000
+#define BR13_DYN_16BPP 0x01000000
+#define BR13_DYN_24BPP 0x02000000
+#define BR13_ROP_MASK 0x00FF0000
+#define BR13_DEST_PITCH 0x0000FFFF
+#define BR13_PITCH_SIGN_BIT 0x00008000
+
+#define BR14_DEST_HEIGHT 0xFFFF0000
+#define BR14_DEST_WIDTH 0x0000FFFF
+
+#define BR15_PATTERN_ADDR 0x03FFFFFF
+
+#define BR16_SOLID_PAT_COLOR 0x00FFFFFF
+#define BR16_BACKGND_PAT_CLR 0x00FFFFFF
+
+#define BR17_FGND_PAT_CLR 0x00FFFFFF
+
+#define BR18_SRC_BGND_CLR 0x00FFFFFF
+#define BR19_SRC_FGND_CLR 0x00FFFFFF
+
+
+/* Instruction parser instructions
+ */
+
+#define INST_PARSER_CLIENT 0x00000000
+#define INST_OP_FLUSH 0x02000000
+#define INST_FLUSH_MAP_CACHE 0x00000001
+
+
+#define GFX_OP_USER_INTERRUPT ((0<<29)|(2<<23))
+
+
+/* Registers in the i810 host-pci bridge pci config space which affect
+ * the i810 graphics operations.
+ */
+#define SMRAM_MISCC 0x70
+#define GMS 0x000000c0
+#define GMS_DISABLE 0x00000000
+#define GMS_ENABLE_BARE 0x00000040
+#define GMS_ENABLE_512K 0x00000080
+#define GMS_ENABLE_1M 0x000000c0
+#define USMM 0x00000030
+#define USMM_DISABLE 0x00000000
+#define USMM_TSEG_ZERO 0x00000010
+#define USMM_TSEG_512K 0x00000020
+#define USMM_TSEG_1M 0x00000030
+#define GFX_MEM_WIN_SIZE 0x00010000
+#define GFX_MEM_WIN_32M 0x00010000
+#define GFX_MEM_WIN_64M 0x00000000
+
+/* Overkill? I don't know. Need to figure out top of mem to make the
+ * SMRAM calculations come out. Linux seems to have problems
+ * detecting it all on its own, so this seems a reasonable double
+ * check to any user supplied 'mem=...' boot param.
+ *
+ * ... unfortunately this reg doesn't work according to spec on the
+ * test hardware.
+ */
+#define WHTCFG_PAMR_DRP 0x50
+#define SYS_DRAM_ROW_0_SHIFT 16
+#define SYS_DRAM_ROW_1_SHIFT 20
+#define DRAM_MASK 0x0f
+#define DRAM_VALUE_0 0
+#define DRAM_VALUE_1 8
+/* No 2 value defined */
+#define DRAM_VALUE_3 16
+#define DRAM_VALUE_4 16
+#define DRAM_VALUE_5 24
+#define DRAM_VALUE_6 32
+#define DRAM_VALUE_7 32
+#define DRAM_VALUE_8 48
+#define DRAM_VALUE_9 64
+#define DRAM_VALUE_A 64
+#define DRAM_VALUE_B 96
+#define DRAM_VALUE_C 128
+#define DRAM_VALUE_D 128
+#define DRAM_VALUE_E 192
+#define DRAM_VALUE_F 256 /* nice one, geezer */
+#define LM_FREQ_MASK 0x10
+#define LM_FREQ_133 0x10
+#define LM_FREQ_100 0x00
+
+
+
+
+/* These are 3d state registers, but the state is invarient, so we let
+ * the X server handle it:
+ */
+
+
+
+/* GFXRENDERSTATE_COLOR_CHROMA_KEY, p135
+ */
+#define GFX_OP_COLOR_CHROMA_KEY ((0x3<<29)|(0x1d<<24)|(0x2<<16)|0x1)
+#define CC1_UPDATE_KILL_WRITE (1<<28)
+#define CC1_ENABLE_KILL_WRITE (1<<27)
+#define CC1_DISABLE_KILL_WRITE 0
+#define CC1_UPDATE_COLOR_IDX (1<<26)
+#define CC1_UPDATE_CHROMA_LOW (1<<25)
+#define CC1_UPDATE_CHROMA_HI (1<<24)
+#define CC1_CHROMA_LOW_MASK ((1<<24)-1)
+#define CC2_COLOR_IDX_SHIFT 24
+#define CC2_COLOR_IDX_MASK (0xff<<24)
+#define CC2_CHROMA_HI_MASK ((1<<24)-1)
+
+
+#define GFX_CMD_CONTEXT_SEL ((0<<29)|(0x5<<23))
+#define CS_UPDATE_LOAD (1<<17)
+#define CS_UPDATE_USE (1<<16)
+#define CS_UPDATE_LOAD (1<<17)
+#define CS_LOAD_CTX0 0
+#define CS_LOAD_CTX1 (1<<8)
+#define CS_USE_CTX0 0
+#define CS_USE_CTX1 (1<<0)
+
+/* I810 LCD/TV registers */
+#define LCD_TV_HTOTAL 0x60000
+#define LCD_TV_C 0x60018
+#define LCD_TV_OVRACT 0x6001C
+
+#define LCD_TV_ENABLE (1 << 31)
+#define LCD_TV_VGAMOD (1 << 28)
+
+/* I830 CRTC registers */
+#define HTOTAL_A 0x60000
+#define HBLANK_A 0x60004
+#define HSYNC_A 0x60008
+#define VTOTAL_A 0x6000c
+#define VBLANK_A 0x60010
+#define VSYNC_A 0x60014
+#define PIPEASRC 0x6001c
+#define BCLRPAT_A 0x60020
+#define VSYNCSHIFT_A 0x60028
+
+#define HTOTAL_B 0x61000
+#define HBLANK_B 0x61004
+#define HSYNC_B 0x61008
+#define VTOTAL_B 0x6100c
+#define VBLANK_B 0x61010
+#define VSYNC_B 0x61014
+#define PIPEBSRC 0x6101c
+#define BCLRPAT_B 0x61020
+#define VSYNCSHIFT_B 0x61028
+
+#define PP_STATUS 0x61200
+# define PP_ON (1 << 31)
+/**
+ * Indicates that all dependencies of the panel are on:
+ *
+ * - PLL enabled
+ * - pipe enabled
+ * - LVDS/DVOB/DVOC on
+ */
+# define PP_READY (1 << 30)
+# define PP_SEQUENCE_NONE (0 << 28)
+# define PP_SEQUENCE_ON (1 << 28)
+# define PP_SEQUENCE_OFF (2 << 28)
+# define PP_SEQUENCE_MASK 0x30000000
+
+#define PP_CONTROL 0x61204
+# define POWER_DOWN_ON_RESET (1 << 1)
+# define POWER_TARGET_ON (1 << 0)
+
+#define PP_ON_DELAYS 0x61208
+#define PP_OFF_DELAYS 0x6120c
+#define PP_DIVISOR 0x61210
+
+#define PFIT_CONTROL 0x61230
+# define PFIT_ENABLE (1 << 31)
+/* Pre-965 */
+# define VERT_INTERP_DISABLE (0 << 10)
+# define VERT_INTERP_BILINEAR (1 << 10)
+# define VERT_INTERP_MASK (3 << 10)
+# define VERT_AUTO_SCALE (1 << 9)
+# define HORIZ_INTERP_DISABLE (0 << 6)
+# define HORIZ_INTERP_BILINEAR (1 << 6)
+# define HORIZ_INTERP_MASK (3 << 6)
+# define HORIZ_AUTO_SCALE (1 << 5)
+# define PANEL_8TO6_DITHER_ENABLE (1 << 3)
+/* 965+ */
+# define PFIT_PIPE_MASK (3 << 29)
+# define PFIT_PIPE_SHIFT 29
+# define PFIT_SCALING_MODE_MASK (7 << 26)
+# define PFIT_SCALING_AUTO (0 << 26)
+# define PFIT_SCALING_PROGRAMMED (1 << 26)
+# define PFIT_SCALING_PILLAR (2 << 26)
+# define PFIT_SCALING_LETTER (3 << 26)
+# define PFIT_FILTER_SELECT_MASK (3 << 24)
+# define PFIT_FILTER_FUZZY (0 << 24)
+# define PFIT_FILTER_CRISP (1 << 24)
+# define PFIT_FILTER_MEDIAN (2 << 24)
+
+#define PFIT_PGM_RATIOS 0x61234
+/* Pre-965 */
+# define PFIT_VERT_SCALE_SHIFT 20
+# define PFIT_VERT_SCALE_MASK 0xfff00000
+# define PFIT_HORIZ_SCALE_SHIFT 4
+# define PFIT_HORIZ_SCALE_MASK 0x0000fff0
+/* 965+ */
+# define PFIT_VERT_SCALE_SHIFT_965 16
+# define PFIT_VERT_SCALE_MASK_965 0x1fff0000
+# define PFIT_HORIZ_SCALE_SHIFT_965 0
+# define PFIT_HORIZ_SCALE_MASK_965 0x00001fff
+
+#define DPLL_A 0x06014
+#define DPLL_B 0x06018
+# define DPLL_VCO_ENABLE (1 << 31)
+# define DPLL_DVO_HIGH_SPEED (1 << 30)
+# define DPLL_SYNCLOCK_ENABLE (1 << 29)
+# define DPLL_VGA_MODE_DIS (1 << 28)
+# define DPLLB_MODE_DAC_SERIAL (1 << 26) /* i915 */
+# define DPLLB_MODE_LVDS (2 << 26) /* i915 */
+# define DPLL_MODE_MASK (3 << 26)
+# define DPLL_DAC_SERIAL_P2_CLOCK_DIV_10 (0 << 24) /* i915 */
+# define DPLL_DAC_SERIAL_P2_CLOCK_DIV_5 (1 << 24) /* i915 */
+# define DPLLB_LVDS_P2_CLOCK_DIV_14 (0 << 24) /* i915 */
+# define DPLLB_LVDS_P2_CLOCK_DIV_7 (1 << 24) /* i915 */
+# define DPLL_P2_CLOCK_DIV_MASK 0x03000000 /* i915 */
+# define DPLL_FPA01_P1_POST_DIV_MASK 0x00ff0000 /* i915 */
+# define DPLL_FPA01_P1_POST_DIV_MASK_IGD 0x00ff8000 /* IGD */
+/**
+ * The i830 generation, in DAC/serial mode, defines p1 as two plus this
+ * bitfield, or just 2 if PLL_P1_DIVIDE_BY_TWO is set.
+ */
+# define DPLL_FPA01_P1_POST_DIV_MASK_I830 0x001f0000
+/**
+ * The i830 generation, in LVDS mode, defines P1 as the bit number set within
+ * this field (only one bit may be set).
+ */
+# define DPLL_FPA01_P1_POST_DIV_MASK_I830_LVDS 0x003f0000
+# define DPLL_FPA01_P1_POST_DIV_SHIFT 16
+# define DPLL_FPA01_P1_POST_DIV_SHIFT_IGD 15
+/* Ironlake */
+# define DPLL_FPA0_P1_POST_DIV_SHIFT 16
+
+# define PLL_P2_DIVIDE_BY_4 (1 << 23) /* i830, required in DVO non-gang */
+# define PLL_P1_DIVIDE_BY_TWO (1 << 21) /* i830 */
+# define PLL_REF_INPUT_DREFCLK (0 << 13)
+# define PLL_REF_INPUT_TVCLKINA (1 << 13) /* i830 */
+# define PLL_REF_INPUT_SUPER_SSC (1 << 13) /* Ironlake: 120M SSC */
+# define PLL_REF_INPUT_TVCLKINBC (2 << 13) /* SDVO TVCLKIN */
+# define PLLB_REF_INPUT_SPREADSPECTRUMIN (3 << 13)
+# define PLL_REF_INPUT_MASK (3 << 13)
+# define PLL_REF_INPUT_DMICLK (5 << 13) /* Ironlake: DMI refclk */
+# define PLL_LOAD_PULSE_PHASE_SHIFT 9
+/*
+ * Parallel to Serial Load Pulse phase selection.
+ * Selects the phase for the 10X DPLL clock for the PCIe
+ * digital display port. The range is 4 to 13; 10 or more
+ * is just a flip delay. The default is 6
+ */
+# define PLL_LOAD_PULSE_PHASE_MASK (0xf << PLL_LOAD_PULSE_PHASE_SHIFT)
+# define DISPLAY_RATE_SELECT_FPA1 (1 << 8)
+/* Ironlake */
+# define PLL_REF_SDVO_HDMI_MULTIPLIER_SHIFT 9
+# define PLL_REF_SDVO_HDMI_MULTIPLIER_MASK (7 << 9)
+# define PLL_REF_SDVO_HDMI_MULTIPLIER(x) (((x)-1)<< PLL_REF_SDVO_HDMI_MULTIPLIER_SHIFT)
+# define DPLL_FPA1_P1_POST_DIV_SHIFT 0
+# define DPLL_FPA1_P1_POST_DIV_MASK 0xff
+
+/**
+ * SDVO multiplier for 945G/GM. Not used on 965.
+ *
+ * \sa DPLL_MD_UDI_MULTIPLIER_MASK
+ */
+# define SDVO_MULTIPLIER_MASK 0x000000ff
+# define SDVO_MULTIPLIER_SHIFT_HIRES 4
+# define SDVO_MULTIPLIER_SHIFT_VGA 0
+
+/** @defgroup DPLL_MD
+ * @{
+ */
+/** Pipe A SDVO/UDI clock multiplier/divider register for G965. */
+#define DPLL_A_MD 0x0601c
+/** Pipe B SDVO/UDI clock multiplier/divider register for G965. */
+#define DPLL_B_MD 0x06020
+/**
+ * UDI pixel divider, controlling how many pixels are stuffed into a packet.
+ *
+ * Value is pixels minus 1. Must be set to 1 pixel for SDVO.
+ */
+# define DPLL_MD_UDI_DIVIDER_MASK 0x3f000000
+# define DPLL_MD_UDI_DIVIDER_SHIFT 24
+/** UDI pixel divider for VGA, same as DPLL_MD_UDI_DIVIDER_MASK. */
+# define DPLL_MD_VGA_UDI_DIVIDER_MASK 0x003f0000
+# define DPLL_MD_VGA_UDI_DIVIDER_SHIFT 16
+/**
+ * SDVO/UDI pixel multiplier.
+ *
+ * SDVO requires that the bus clock rate be between 1 and 2 Ghz, and the bus
+ * clock rate is 10 times the DPLL clock. At low resolution/refresh rate
+ * modes, the bus rate would be below the limits, so SDVO allows for stuffing
+ * dummy bytes in the datastream at an increased clock rate, with both sides of
+ * the link knowing how many bytes are fill.
+ *
+ * So, for a mode with a dotclock of 65Mhz, we would want to double the clock
+ * rate to 130Mhz to get a bus rate of 1.30Ghz. The DPLL clock rate would be
+ * set to 130Mhz, and the SDVO multiplier set to 2x in this register and
+ * through an SDVO command.
+ *
+ * This register field has values of multiplication factor minus 1, with
+ * a maximum multiplier of 5 for SDVO.
+ */
+# define DPLL_MD_UDI_MULTIPLIER_MASK 0x00003f00
+# define DPLL_MD_UDI_MULTIPLIER_SHIFT 8
+/** SDVO/UDI pixel multiplier for VGA, same as DPLL_MD_UDI_MULTIPLIER_MASK.
+ * This best be set to the default value (3) or the CRT won't work. No,
+ * I don't entirely understand what this does...
+ */
+# define DPLL_MD_VGA_UDI_MULTIPLIER_MASK 0x0000003f
+# define DPLL_MD_VGA_UDI_MULTIPLIER_SHIFT 0
+/** @} */
+
+#define DPLL_TEST 0x606c
+# define DPLLB_TEST_SDVO_DIV_1 (0 << 22)
+# define DPLLB_TEST_SDVO_DIV_2 (1 << 22)
+# define DPLLB_TEST_SDVO_DIV_4 (2 << 22)
+# define DPLLB_TEST_SDVO_DIV_MASK (3 << 22)
+# define DPLLB_TEST_N_BYPASS (1 << 19)
+# define DPLLB_TEST_M_BYPASS (1 << 18)
+# define DPLLB_INPUT_BUFFER_ENABLE (1 << 16)
+# define DPLLA_TEST_N_BYPASS (1 << 3)
+# define DPLLA_TEST_M_BYPASS (1 << 2)
+# define DPLLA_INPUT_BUFFER_ENABLE (1 << 0)
+
+#define D_STATE 0x6104
+#define DSPCLK_GATE_D 0x6200
+# define DPUNIT_B_CLOCK_GATE_DISABLE (1 << 30) /* 965 */
+# define VSUNIT_CLOCK_GATE_DISABLE (1 << 29) /* 965 */
+# define VRHUNIT_CLOCK_GATE_DISABLE (1 << 28) /* 965 */
+# define VRDUNIT_CLOCK_GATE_DISABLE (1 << 27) /* 965 */
+# define AUDUNIT_CLOCK_GATE_DISABLE (1 << 26) /* 965 */
+# define DPUNIT_A_CLOCK_GATE_DISABLE (1 << 25) /* 965 */
+# define DPCUNIT_CLOCK_GATE_DISABLE (1 << 24) /* 965 */
+# define TVRUNIT_CLOCK_GATE_DISABLE (1 << 23) /* 915-945 */
+# define TVCUNIT_CLOCK_GATE_DISABLE (1 << 22) /* 915-945 */
+# define TVFUNIT_CLOCK_GATE_DISABLE (1 << 21) /* 915-945 */
+# define TVEUNIT_CLOCK_GATE_DISABLE (1 << 20) /* 915-945 */
+# define DVSUNIT_CLOCK_GATE_DISABLE (1 << 19) /* 915-945 */
+# define DSSUNIT_CLOCK_GATE_DISABLE (1 << 18) /* 915-945 */
+# define DDBUNIT_CLOCK_GATE_DISABLE (1 << 17) /* 915-945 */
+# define DPRUNIT_CLOCK_GATE_DISABLE (1 << 16) /* 915-945 */
+# define DPFUNIT_CLOCK_GATE_DISABLE (1 << 15) /* 915-945 */
+# define DPBMUNIT_CLOCK_GATE_DISABLE (1 << 14) /* 915-945 */
+# define DPLSUNIT_CLOCK_GATE_DISABLE (1 << 13) /* 915-945 */
+# define DPLUNIT_CLOCK_GATE_DISABLE (1 << 12) /* 915-945 */
+# define DPOUNIT_CLOCK_GATE_DISABLE (1 << 11)
+# define DPBUNIT_CLOCK_GATE_DISABLE (1 << 10)
+# define DCUNIT_CLOCK_GATE_DISABLE (1 << 9)
+# define DPUNIT_CLOCK_GATE_DISABLE (1 << 8)
+# define VRUNIT_CLOCK_GATE_DISABLE (1 << 7) /* 915+: reserved */
+# define OVHUNIT_CLOCK_GATE_DISABLE (1 << 6) /* 830-865 */
+# define DPIOUNIT_CLOCK_GATE_DISABLE (1 << 6) /* 915-945 */
+# define OVFUNIT_CLOCK_GATE_DISABLE (1 << 5)
+# define OVBUNIT_CLOCK_GATE_DISABLE (1 << 4)
+/**
+ * This bit must be set on the 830 to prevent hangs when turning off the
+ * overlay scaler.
+ */
+# define OVRUNIT_CLOCK_GATE_DISABLE (1 << 3)
+# define OVCUNIT_CLOCK_GATE_DISABLE (1 << 2)
+# define OVUUNIT_CLOCK_GATE_DISABLE (1 << 1)
+# define ZVUNIT_CLOCK_GATE_DISABLE (1 << 0) /* 830 */
+# define OVLUNIT_CLOCK_GATE_DISABLE (1 << 0) /* 845,865 */
+
+#define RENCLK_GATE_D1 0x6204
+# define BLITTER_CLOCK_GATE_DISABLE (1 << 13) /* 945GM only */
+# define MPEG_CLOCK_GATE_DISABLE (1 << 12) /* 945GM only */
+# define PC_FE_CLOCK_GATE_DISABLE (1 << 11)
+# define PC_BE_CLOCK_GATE_DISABLE (1 << 10)
+# define WINDOWER_CLOCK_GATE_DISABLE (1 << 9)
+# define INTERPOLATOR_CLOCK_GATE_DISABLE (1 << 8)
+# define COLOR_CALCULATOR_CLOCK_GATE_DISABLE (1 << 7)
+# define MOTION_COMP_CLOCK_GATE_DISABLE (1 << 6)
+# define MAG_CLOCK_GATE_DISABLE (1 << 5)
+/** This bit must be unset on 855,865 */
+# define MECI_CLOCK_GATE_DISABLE (1 << 4)
+# define DCMP_CLOCK_GATE_DISABLE (1 << 3)
+# define MEC_CLOCK_GATE_DISABLE (1 << 2)
+# define MECO_CLOCK_GATE_DISABLE (1 << 1)
+/** This bit must be set on 855,865. */
+# define SV_CLOCK_GATE_DISABLE (1 << 0)
+# define I915_MPEG_CLOCK_GATE_DISABLE (1 << 16)
+# define I915_VLD_IP_PR_CLOCK_GATE_DISABLE (1 << 15)
+# define I915_MOTION_COMP_CLOCK_GATE_DISABLE (1 << 14)
+# define I915_BD_BF_CLOCK_GATE_DISABLE (1 << 13)
+# define I915_SF_SE_CLOCK_GATE_DISABLE (1 << 12)
+# define I915_WM_CLOCK_GATE_DISABLE (1 << 11)
+# define I915_IZ_CLOCK_GATE_DISABLE (1 << 10)
+# define I915_PI_CLOCK_GATE_DISABLE (1 << 9)
+# define I915_DI_CLOCK_GATE_DISABLE (1 << 8)
+# define I915_SH_SV_CLOCK_GATE_DISABLE (1 << 7)
+# define I915_PL_DG_QC_FT_CLOCK_GATE_DISABLE (1 << 6)
+# define I915_SC_CLOCK_GATE_DISABLE (1 << 5)
+# define I915_FL_CLOCK_GATE_DISABLE (1 << 4)
+# define I915_DM_CLOCK_GATE_DISABLE (1 << 3)
+# define I915_PS_CLOCK_GATE_DISABLE (1 << 2)
+# define I915_CC_CLOCK_GATE_DISABLE (1 << 1)
+# define I915_BY_CLOCK_GATE_DISABLE (1 << 0)
+
+# define I965_RCZ_CLOCK_GATE_DISABLE (1 << 30)
+/** This bit must always be set on 965G/965GM */
+# define I965_RCC_CLOCK_GATE_DISABLE (1 << 29)
+# define I965_RCPB_CLOCK_GATE_DISABLE (1 << 28)
+# define I965_DAP_CLOCK_GATE_DISABLE (1 << 27)
+# define I965_ROC_CLOCK_GATE_DISABLE (1 << 26)
+# define I965_GW_CLOCK_GATE_DISABLE (1 << 25)
+# define I965_TD_CLOCK_GATE_DISABLE (1 << 24)
+/** This bit must always be set on 965G */
+# define I965_ISC_CLOCK_GATE_DISABLE (1 << 23)
+# define I965_IC_CLOCK_GATE_DISABLE (1 << 22)
+# define I965_EU_CLOCK_GATE_DISABLE (1 << 21)
+# define I965_IF_CLOCK_GATE_DISABLE (1 << 20)
+# define I965_TC_CLOCK_GATE_DISABLE (1 << 19)
+# define I965_SO_CLOCK_GATE_DISABLE (1 << 17)
+# define I965_FBC_CLOCK_GATE_DISABLE (1 << 16)
+# define I965_MARI_CLOCK_GATE_DISABLE (1 << 15)
+# define I965_MASF_CLOCK_GATE_DISABLE (1 << 14)
+# define I965_MAWB_CLOCK_GATE_DISABLE (1 << 13)
+# define I965_EM_CLOCK_GATE_DISABLE (1 << 12)
+# define I965_UC_CLOCK_GATE_DISABLE (1 << 11)
+# define I965_SI_CLOCK_GATE_DISABLE (1 << 6)
+# define I965_MT_CLOCK_GATE_DISABLE (1 << 5)
+# define I965_PL_CLOCK_GATE_DISABLE (1 << 4)
+# define I965_DG_CLOCK_GATE_DISABLE (1 << 3)
+# define I965_QC_CLOCK_GATE_DISABLE (1 << 2)
+# define I965_FT_CLOCK_GATE_DISABLE (1 << 1)
+# define I965_DM_CLOCK_GATE_DISABLE (1 << 0)
+
+#define RENCLK_GATE_D2 0x6208
+#define VF_UNIT_CLOCK_GATE_DISABLE (1 << 9)
+#define GS_UNIT_CLOCK_GATE_DISABLE (1 << 7)
+#define CL_UNIT_CLOCK_GATE_DISABLE (1 << 6)
+#define RAMCLK_GATE_D 0x6210 /* CRL only */
+#define DEUC 0x6214 /* CRL only */
+
+/*
+ * This is a PCI config space register to manipulate backlight brightness
+ * It is used when the BLM_LEGACY_MODE is turned on. When enabled, the first
+ * byte of this config register sets brightness within the range from
+ * 0 to 0xff
+ */
+#define LEGACY_BACKLIGHT_BRIGHTNESS 0xf4
+
+#define BLC_PWM_CTL 0x61254
+#define BACKLIGHT_MODULATION_FREQ_SHIFT (17)
+#define BACKLIGHT_MODULATION_FREQ_SHIFT2 (16)
+/**
+ * This is the most significant 15 bits of the number of backlight cycles in a
+ * complete cycle of the modulated backlight control.
+ *
+ * The actual value is this field multiplied by two.
+ */
+#define BACKLIGHT_MODULATION_FREQ_MASK (0x7fff << 17)
+#define BACKLIGHT_MODULATION_FREQ_MASK2 (0xffff << 16)
+#define BLM_LEGACY_MODE (1 << 16)
+
+/**
+ * This is the number of cycles out of the backlight modulation cycle for which
+ * the backlight is on.
+ *
+ * This field must be no greater than the number of cycles in the complete
+ * backlight modulation cycle.
+ */
+#define BACKLIGHT_DUTY_CYCLE_SHIFT (0)
+#define BACKLIGHT_DUTY_CYCLE_MASK (0xffff)
+
+/* On 965+ backlight control is in another register */
+#define BLC_PWM_CTL2 0x61250
+#define BLM_LEGACY_MODE2 (1 << 30)
+
+#define BLM_CTL 0x61260
+#define BLM_THRESHOLD_0 0x61270
+#define BLM_THRESHOLD_1 0x61274
+#define BLM_THRESHOLD_2 0x61278
+#define BLM_THRESHOLD_3 0x6127c
+#define BLM_THRESHOLD_4 0x61280
+#define BLM_THRESHOLD_5 0x61284
+
+#define BLM_ACCUMULATOR_0 0x61290
+#define BLM_ACCUMULATOR_1 0x61294
+#define BLM_ACCUMULATOR_2 0x61298
+#define BLM_ACCUMULATOR_3 0x6129c
+#define BLM_ACCUMULATOR_4 0x612a0
+#define BLM_ACCUMULATOR_5 0x612a4
+
+#define FPA0 0x06040
+#define FPA1 0x06044
+#define FPB0 0x06048
+#define FPB1 0x0604c
+# define FP_N_DIV_MASK 0x003f0000
+# define FP_N_IGD_DIV_MASK 0x00ff0000
+# define FP_N_DIV_SHIFT 16
+# define FP_M1_DIV_MASK 0x00003f00
+# define FP_M1_DIV_SHIFT 8
+# define FP_M2_DIV_MASK 0x0000003f
+# define FP_M2_IGD_DIV_MASK 0x000000ff
+# define FP_M2_DIV_SHIFT 0
+
+#define PORT_HOTPLUG_EN 0x61110
+# define HDMIB_HOTPLUG_INT_EN (1 << 29)
+# define HDMIC_HOTPLUG_INT_EN (1 << 28)
+# define HDMID_HOTPLUG_INT_EN (1 << 27)
+# define SDVOB_HOTPLUG_INT_EN (1 << 26)
+# define SDVOC_HOTPLUG_INT_EN (1 << 25)
+# define TV_HOTPLUG_INT_EN (1 << 18)
+# define CRT_HOTPLUG_INT_EN (1 << 9)
+# define CRT_HOTPLUG_ACTIVATION_PERIOD_32 (0 << 8)
+/* must use period 64 on GM45 according to docs */
+# define CRT_HOTPLUG_ACTIVATION_PERIOD_64 (1 << 8)
+# define CRT_HOTPLUG_DAC_ON_TIME_2M (0 << 7)
+# define CRT_HOTPLUG_DAC_ON_TIME_4M (1 << 7)
+# define CRT_HOTPLUG_VOLTAGE_COMPARE_40 (0 << 5)
+# define CRT_HOTPLUG_VOLTAGE_COMPARE_50 (1 << 5)
+# define CRT_HOTPLUG_VOLTAGE_COMPARE_60 (2 << 5)
+# define CRT_HOTPLUG_VOLTAGE_COMPARE_70 (3 << 5)
+# define CRT_HOTPLUG_VOLTAGE_COMPARE_MASK (3 << 5)
+# define CRT_HOTPLUG_DETECT_DELAY_1G (0 << 4)
+# define CRT_HOTPLUG_DETECT_DELAY_2G (1 << 4)
+# define CRT_HOTPLUG_FORCE_DETECT (1 << 3)
+# define CRT_HOTPLUG_DETECT_VOLTAGE_325MV (0 << 2)
+# define CRT_HOTPLUG_DETECT_VOLTAGE_475MV (1 << 2)
+# define CRT_HOTPLUG_MASK (0x3fc) /* Bits 9-2 */
+# define CRT_FORCE_HOTPLUG_MASK 0xfffffe1f
+
+#define PORT_HOTPLUG_STAT 0x61114
+# define HDMIB_HOTPLUG_INT_STATUS (1 << 29)
+# define HDMIC_HOTPLUG_INT_STATUS (1 << 28)
+# define HDMID_HOTPLUG_INT_STATUS (1 << 27)
+# define CRT_HOTPLUG_INT_STATUS (1 << 11)
+# define TV_HOTPLUG_INT_STATUS (1 << 10)
+# define CRT_HOTPLUG_MONITOR_MASK (3 << 8)
+# define CRT_HOTPLUG_MONITOR_COLOR (3 << 8)
+# define CRT_HOTPLUG_MONITOR_MONO (2 << 8)
+# define CRT_HOTPLUG_MONITOR_NONE (0 << 8)
+# define SDVOC_HOTPLUG_INT_STATUS (1 << 7)
+# define SDVOB_HOTPLUG_INT_STATUS (1 << 6)
+
+#define SDVOB 0x61140
+#define SDVOC 0x61160
+#define SDVO_ENABLE (1 << 31)
+#define SDVO_PIPE_B_SELECT (1 << 30)
+#define SDVO_STALL_SELECT (1 << 29)
+#define SDVO_INTERRUPT_ENABLE (1 << 26)
+/**
+ * 915G/GM SDVO pixel multiplier.
+ *
+ * Programmed value is multiplier - 1, up to 5x.
+ *
+ * \sa DPLL_MD_UDI_MULTIPLIER_MASK
+ */
+#define SDVO_PORT_MULTIPLY_MASK (7 << 23)
+#define SDVO_PORT_MULTIPLY_SHIFT 23
+#define SDVO_PHASE_SELECT_MASK (15 << 19)
+#define SDVO_PHASE_SELECT_DEFAULT (6 << 19)
+#define SDVO_CLOCK_OUTPUT_INVERT (1 << 18)
+#define SDVOC_GANG_MODE (1 << 16)
+#define SDVO_ENCODING_SDVO (0x0 << 10)
+#define SDVO_ENCODING_HDMI (0x2 << 10)
+/** Requird for HDMI operation */
+#define SDVO_NULL_PACKETS_DURING_VSYNC (1 << 9)
+#define SDVO_COLOR_NOT_FULL_RANGE (1 << 8)
+#define SDVO_BORDER_ENABLE (1 << 7)
+#define SDVO_AUDIO_ENABLE (1 << 6)
+/** New with 965, default is to be set */
+#define SDVO_VSYNC_ACTIVE_HIGH (1 << 4)
+/** New with 965, default is to be set */
+#define SDVO_HSYNC_ACTIVE_HIGH (1 << 3)
+/** 915/945 only, read-only bit */
+#define SDVOB_PCIE_CONCURRENCY (1 << 3)
+#define SDVO_DETECTED (1 << 2)
+/* Bits to be preserved when writing */
+#define SDVOB_PRESERVE_MASK ((1 << 17) | (1 << 16) | (1 << 14))
+#define SDVOC_PRESERVE_MASK (1 << 17)
+
+#define UDIB_SVB_SHB_CODES 0x61144
+#define UDIB_SHA_BLANK_CODES 0x61148
+#define UDIB_START_END_FILL_CODES 0x6114c
+
+
+#define SDVOUDI 0x61150
+
+#define I830_HTOTAL_MASK 0xfff0000
+#define I830_HACTIVE_MASK 0x7ff
+
+#define I830_HBLANKEND_MASK 0xfff0000
+#define I830_HBLANKSTART_MASK 0xfff
+
+#define I830_HSYNCEND_MASK 0xfff0000
+#define I830_HSYNCSTART_MASK 0xfff
+
+#define I830_VTOTAL_MASK 0xfff0000
+#define I830_VACTIVE_MASK 0x7ff
+
+#define I830_VBLANKEND_MASK 0xfff0000
+#define I830_VBLANKSTART_MASK 0xfff
+
+#define I830_VSYNCEND_MASK 0xfff0000
+#define I830_VSYNCSTART_MASK 0xfff
+
+#define I830_PIPEA_HORZ_MASK 0x7ff0000
+#define I830_PIPEA_VERT_MASK 0x7ff
+
+#define ADPA 0x61100
+#define ADPA_DAC_ENABLE (1<<31)
+#define ADPA_DAC_DISABLE 0
+#define ADPA_PIPE_SELECT_MASK (1<<30)
+#define ADPA_PIPE_A_SELECT 0
+#define ADPA_PIPE_B_SELECT (1<<30)
+#define ADPA_USE_VGA_HVPOLARITY (1<<15)
+#define ADPA_SETS_HVPOLARITY 0
+#define ADPA_VSYNC_CNTL_DISABLE (1<<11)
+#define ADPA_VSYNC_CNTL_ENABLE 0
+#define ADPA_HSYNC_CNTL_DISABLE (1<<10)
+#define ADPA_HSYNC_CNTL_ENABLE 0
+#define ADPA_VSYNC_ACTIVE_HIGH (1<<4)
+#define ADPA_VSYNC_ACTIVE_LOW 0
+#define ADPA_HSYNC_ACTIVE_HIGH (1<<3)
+#define ADPA_HSYNC_ACTIVE_LOW 0
+
+
+#define DVOA 0x61120
+#define DVOB 0x61140
+#define DVOC 0x61160
+#define DVO_ENABLE (1 << 31)
+#define DVO_PIPE_B_SELECT (1 << 30)
+#define DVO_PIPE_STALL_UNUSED (0 << 28)
+#define DVO_PIPE_STALL (1 << 28)
+#define DVO_PIPE_STALL_TV (2 << 28)
+#define DVO_PIPE_STALL_MASK (3 << 28)
+#define DVO_USE_VGA_SYNC (1 << 15)
+#define DVO_DATA_ORDER_I740 (0 << 14)
+#define DVO_DATA_ORDER_FP (1 << 14)
+#define DVO_VSYNC_DISABLE (1 << 11)
+#define DVO_HSYNC_DISABLE (1 << 10)
+#define DVO_VSYNC_TRISTATE (1 << 9)
+#define DVO_HSYNC_TRISTATE (1 << 8)
+#define DVO_BORDER_ENABLE (1 << 7)
+#define DVO_DATA_ORDER_GBRG (1 << 6)
+#define DVO_DATA_ORDER_RGGB (0 << 6)
+#define DVO_DATA_ORDER_GBRG_ERRATA (0 << 6)
+#define DVO_DATA_ORDER_RGGB_ERRATA (1 << 6)
+#define DVO_VSYNC_ACTIVE_HIGH (1 << 4)
+#define DVO_HSYNC_ACTIVE_HIGH (1 << 3)
+#define DVO_BLANK_ACTIVE_HIGH (1 << 2)
+#define DVO_OUTPUT_CSTATE_PIXELS (1 << 1) /* SDG only */
+#define DVO_OUTPUT_SOURCE_SIZE_PIXELS (1 << 0) /* SDG only */
+#define DVO_PRESERVE_MASK (0x7<<24)
+
+#define DVOA_SRCDIM 0x61124
+#define DVOB_SRCDIM 0x61144
+#define DVOC_SRCDIM 0x61164
+#define DVO_SRCDIM_HORIZONTAL_SHIFT 12
+#define DVO_SRCDIM_VERTICAL_SHIFT 0
+
+/** @defgroup LVDS
+ * @{
+ */
+/**
+ * This register controls the LVDS output enable, pipe selection, and data
+ * format selection.
+ *
+ * All of the clock/data pairs are force powered down by power sequencing.
+ */
+#define LVDS 0x61180
+/**
+ * Enables the LVDS port. This bit must be set before DPLLs are enabled, as
+ * the DPLL semantics change when the LVDS is assigned to that pipe.
+ */
+# define LVDS_PORT_EN (1 << 31)
+/** Selects pipe B for LVDS data. Must be set on pre-965. */
+# define LVDS_PIPEB_SELECT (1 << 30)
+
+/* on 965, dithering is enabled in this register, not PFIT_CONTROL */
+# define LVDS_DITHER_ENABLE (1 << 25)
+
+/*
+ * Selects between .0 and .1 formats:
+ *
+ * 0 = 1x18.0, 2x18.0, 1x24.0 or 2x24.0
+ * 1 = 1x24.1 or 2x24.1
+ */
+# define LVDS_DATA_FORMAT_DOT_ONE (1 << 24)
+
+/* Using LE instead of HS on second channel control signal */
+# define LVDS_LE_CONTROL_ENABLE (1 << 23)
+
+/* Using LF instead of VS on second channel control signal */
+# define LVDS_LF_CONTROL_ENABLE (1 << 22)
+
+/* invert vsync signal polarity */
+# define LVDS_VSYNC_POLARITY_INVERT (1 << 21)
+
+/* invert hsync signal polarity */
+# define LVDS_HSYNC_POLARITY_INVERT (1 << 20)
+
+/* invert display enable signal polarity */
+# define LVDS_DE_POLARITY_INVERT (1 << 19)
+
+/*
+ * Control signals for second channel, ignored in single channel modes
+ */
+
+/* send DE, HS, VS on second channel */
+# define LVDS_SECOND_CHANNEL_DE_HS_VS (0 << 17)
+
+# define LVDS_SECOND_CHANNEL_RESERVED (1 << 17)
+
+/* Send zeros instead of DE, HS, VS on second channel */
+# define LVDS_SECOND_CHANNEL_ZEROS (2 << 17)
+
+/* Set DE=0, HS=LE, VS=LF on second channel */
+# define LVDS_SECOND_CHANNEL_HS_VS (3 << 17)
+
+/*
+ * Send duplicate data for channel reserved bits, otherwise send zeros
+ */
+# define LVDS_CHANNEL_DUP_RESERVED (1 << 16)
+
+/*
+ * Enable border for unscaled (or aspect-scaled) display
+ */
+# define LVDS_BORDER_ENABLE (1 << 15)
+
+/*
+ * Tri-state the LVDS buffers when powered down, otherwise
+ * they are set to 0V
+ */
+# define LVDS_POWER_DOWN_TRI_STATE (1 << 10)
+
+/**
+ * Enables the A0-A2 data pairs and CLKA, containing 18 bits of color data per
+ * pixel.
+ */
+# define LVDS_A0A2_CLKA_POWER_MASK (3 << 8)
+# define LVDS_A0A2_CLKA_POWER_DOWN (0 << 8)
+# define LVDS_A0A2_CLKA_POWER_UP (3 << 8)
+/**
+ * Controls the A3 data pair, which contains the additional LSBs for 24 bit
+ * mode. Only enabled if LVDS_A0A2_CLKA_POWER_UP also indicates it should be
+ * on.
+ */
+# define LVDS_A3_POWER_MASK (3 << 6)
+# define LVDS_A3_POWER_DOWN (0 << 6)
+# define LVDS_A3_POWER_UP (3 << 6)
+/**
+ * Controls the CLKB pair. This should only be set when LVDS_B0B3_POWER_UP
+ * is set.
+ */
+# define LVDS_CLKB_POWER_MASK (3 << 4)
+# define LVDS_CLKB_POWER_DOWN (0 << 4)
+# define LVDS_CLKB_POWER_UP (3 << 4)
+
+/**
+ * Controls the B0-B3 data pairs. This must be set to match the DPLL p2
+ * setting for whether we are in dual-channel mode. The B3 pair will
+ * additionally only be powered up when LVDS_A3_POWER_UP is set.
+ */
+# define LVDS_B0B3_POWER_MASK (3 << 2)
+# define LVDS_B0B3_POWER_DOWN (0 << 2)
+# define LVDS_B0B3_POWER_UP (3 << 2)
+
+/** @} */
+
+#define DP_B 0x64100
+#define DPB_AUX_CH_CTL 0x64110
+#define DPB_AUX_CH_DATA1 0x64114
+#define DPB_AUX_CH_DATA2 0x64118
+#define DPB_AUX_CH_DATA3 0x6411c
+#define DPB_AUX_CH_DATA4 0x64120
+#define DPB_AUX_CH_DATA5 0x64124
+
+#define DP_C 0x64200
+#define DPC_AUX_CH_CTL 0x64210
+#define DPC_AUX_CH_DATA1 0x64214
+#define DPC_AUX_CH_DATA2 0x64218
+#define DPC_AUX_CH_DATA3 0x6421c
+#define DPC_AUX_CH_DATA4 0x64220
+#define DPC_AUX_CH_DATA5 0x64224
+
+#define DP_D 0x64300
+#define DPD_AUX_CH_CTL 0x64310
+#define DPD_AUX_CH_DATA1 0x64314
+#define DPD_AUX_CH_DATA2 0x64318
+#define DPD_AUX_CH_DATA3 0x6431c
+#define DPD_AUX_CH_DATA4 0x64320
+#define DPD_AUX_CH_DATA5 0x64324
+
+/*
+ * Two channel clock control. Turn this on if you need clkb for two channel mode
+ * Overridden by global LVDS power sequencing
+ */
+
+/* clkb off */
+# define LVDS_CLKB_POWER_DOWN (0 << 4)
+
+/* powered up, but clkb forced to 0 */
+# define LVDS_CLKB_POWER_PARTIAL (1 << 4)
+
+/* clock B running */
+# define LVDS_CLKB_POWER_UP (3 << 4)
+
+/*
+ * Two channel mode B0-B2 control. Sets state when power is on.
+ * Set to POWER_DOWN in single channel mode, other settings enable
+ * two channel mode. The CLKB power control controls whether that clock
+ * is enabled during two channel mode.
+ *
+ */
+/* Everything is off, including B3 and CLKB */
+# define LVDS_B_POWER_DOWN (0 << 2)
+
+/* B0, B1, B2 and data lines forced to 0. timing is active */
+# define LVDS_B_POWER_PARTIAL (1 << 2)
+
+/* data lines active (both timing and colour) */
+# define LVDS_B_POWER_UP (3 << 2)
+
+/** @defgroup TV_CTL
+ * @{
+ */
+#define TV_CTL 0x68000
+/** Enables the TV encoder */
+# define TV_ENC_ENABLE (1 << 31)
+/** Sources the TV encoder input from pipe B instead of A. */
+# define TV_ENC_PIPEB_SELECT (1 << 30)
+/** Outputs composite video (DAC A only) */
+# define TV_ENC_OUTPUT_COMPOSITE (0 << 28)
+/** Outputs SVideo video (DAC B/C) */
+# define TV_ENC_OUTPUT_SVIDEO (1 << 28)
+/** Outputs Component video (DAC A/B/C) */
+# define TV_ENC_OUTPUT_COMPONENT (2 << 28)
+/** Outputs Composite and SVideo (DAC A/B/C) */
+# define TV_ENC_OUTPUT_SVIDEO_COMPOSITE (3 << 28)
+# define TV_TRILEVEL_SYNC (1 << 21)
+/** Enables slow sync generation (945GM only) */
+# define TV_SLOW_SYNC (1 << 20)
+/** Selects 4x oversampling for 480i and 576p */
+# define TV_OVERSAMPLE_4X (0 << 18)
+/** Selects 2x oversampling for 720p and 1080i */
+# define TV_OVERSAMPLE_2X (1 << 18)
+/** Selects no oversampling for 1080p */
+# define TV_OVERSAMPLE_NONE (2 << 18)
+/** Selects 8x oversampling */
+# define TV_OVERSAMPLE_8X (3 << 18)
+/** Selects progressive mode rather than interlaced */
+# define TV_PROGRESSIVE (1 << 17)
+/** Sets the colorburst to PAL mode. Required for non-M PAL modes. */
+# define TV_PAL_BURST (1 << 16)
+/** Field for setting delay of Y compared to C */
+# define TV_YC_SKEW_MASK (7 << 12)
+/** Enables a fix for 480p/576p standard definition modes on the 915GM only */
+# define TV_ENC_SDP_FIX (1 << 11)
+/**
+ * Enables a fix for the 915GM only.
+ *
+ * Not sure what it does.
+ */
+# define TV_ENC_C0_FIX (1 << 10)
+/** Bits that must be preserved by software */
+# define TV_CTL_SAVE ((1 << 11) | (3 << 9) | (7 << 6) | 0xf)
+# define TV_FUSE_STATE_MASK (3 << 4)
+/** Read-only state that reports all features enabled */
+# define TV_FUSE_STATE_ENABLED (0 << 4)
+/** Read-only state that reports that Macrovision is disabled in hardware*/
+# define TV_FUSE_STATE_NO_MACROVISION (1 << 4)
+/** Read-only state that reports that TV-out is disabled in hardware. */
+# define TV_FUSE_STATE_DISABLED (2 << 4)
+/** Normal operation */
+# define TV_TEST_MODE_NORMAL (0 << 0)
+/** Encoder test pattern 1 - combo pattern */
+# define TV_TEST_MODE_PATTERN_1 (1 << 0)
+/** Encoder test pattern 2 - full screen vertical 75% color bars */
+# define TV_TEST_MODE_PATTERN_2 (2 << 0)
+/** Encoder test pattern 3 - full screen horizontal 75% color bars */
+# define TV_TEST_MODE_PATTERN_3 (3 << 0)
+/** Encoder test pattern 4 - random noise */
+# define TV_TEST_MODE_PATTERN_4 (4 << 0)
+/** Encoder test pattern 5 - linear color ramps */
+# define TV_TEST_MODE_PATTERN_5 (5 << 0)
+/**
+ * This test mode forces the DACs to 50% of full output.
+ *
+ * This is used for load detection in combination with TVDAC_SENSE_MASK
+ */
+# define TV_TEST_MODE_MONITOR_DETECT (7 << 0)
+# define TV_TEST_MODE_MASK (7 << 0)
+/** @} */
+
+/** @defgroup TV_DAC
+ * @{
+ */
+#define TV_DAC 0x68004
+/**
+ * Reports that DAC state change logic has reported change (RO).
+ *
+ * This gets cleared when TV_DAC_STATE_EN is cleared
+*/
+# define TVDAC_STATE_CHG (1 << 31)
+# define TVDAC_SENSE_MASK (7 << 28)
+/** Reports that DAC A voltage is above the detect threshold */
+# define TVDAC_A_SENSE (1 << 30)
+/** Reports that DAC B voltage is above the detect threshold */
+# define TVDAC_B_SENSE (1 << 29)
+/** Reports that DAC C voltage is above the detect threshold */
+# define TVDAC_C_SENSE (1 << 28)
+/**
+ * Enables DAC state detection logic, for load-based TV detection.
+ *
+ * The PLL of the chosen pipe (in TV_CTL) must be running, and the encoder set
+ * to off, for load detection to work.
+ */
+# define TVDAC_STATE_CHG_EN (1 << 27)
+/** Sets the DAC A sense value to high */
+# define TVDAC_A_SENSE_CTL (1 << 26)
+/** Sets the DAC B sense value to high */
+# define TVDAC_B_SENSE_CTL (1 << 25)
+/** Sets the DAC C sense value to high */
+# define TVDAC_C_SENSE_CTL (1 << 24)
+/** Overrides the ENC_ENABLE and DAC voltage levels */
+# define DAC_CTL_OVERRIDE (1 << 7)
+/** Sets the slew rate. Must be preserved in software */
+# define ENC_TVDAC_SLEW_FAST (1 << 6)
+# define DAC_A_1_3_V (0 << 4)
+# define DAC_A_1_1_V (1 << 4)
+# define DAC_A_0_7_V (2 << 4)
+# define DAC_A_MASK (3 << 4)
+# define DAC_B_1_3_V (0 << 2)
+# define DAC_B_1_1_V (1 << 2)
+# define DAC_B_0_7_V (2 << 2)
+# define DAC_B_MASK (3 << 2)
+# define DAC_C_1_3_V (0 << 0)
+# define DAC_C_1_1_V (1 << 0)
+# define DAC_C_0_7_V (2 << 0)
+# define DAC_C_MASK (3 << 0)
+/** @} */
+
+/**
+ * CSC coefficients are stored in a floating point format with 9 bits of
+ * mantissa and 2 or 3 bits of exponent. The exponent is represented as 2**-n,
+ * where 2-bit exponents are unsigned n, and 3-bit exponents are signed n with
+ * -1 (0x3) being the only legal negative value.
+ */
+#define TV_CSC_Y 0x68010
+# define TV_RY_MASK 0x07ff0000
+# define TV_RY_SHIFT 16
+# define TV_GY_MASK 0x00000fff
+# define TV_GY_SHIFT 0
+
+#define TV_CSC_Y2 0x68014
+# define TV_BY_MASK 0x07ff0000
+# define TV_BY_SHIFT 16
+/**
+ * Y attenuation for component video.
+ *
+ * Stored in 1.9 fixed point.
+ */
+# define TV_AY_MASK 0x000003ff
+# define TV_AY_SHIFT 0
+
+#define TV_CSC_U 0x68018
+# define TV_RU_MASK 0x07ff0000
+# define TV_RU_SHIFT 16
+# define TV_GU_MASK 0x000007ff
+# define TV_GU_SHIFT 0
+
+#define TV_CSC_U2 0x6801c
+# define TV_BU_MASK 0x07ff0000
+# define TV_BU_SHIFT 16
+/**
+ * U attenuation for component video.
+ *
+ * Stored in 1.9 fixed point.
+ */
+# define TV_AU_MASK 0x000003ff
+# define TV_AU_SHIFT 0
+
+#define TV_CSC_V 0x68020
+# define TV_RV_MASK 0x0fff0000
+# define TV_RV_SHIFT 16
+# define TV_GV_MASK 0x000007ff
+# define TV_GV_SHIFT 0
+
+#define TV_CSC_V2 0x68024
+# define TV_BV_MASK 0x07ff0000
+# define TV_BV_SHIFT 16
+/**
+ * V attenuation for component video.
+ *
+ * Stored in 1.9 fixed point.
+ */
+# define TV_AV_MASK 0x000007ff
+# define TV_AV_SHIFT 0
+
+/** @defgroup TV_CSC_KNOBS
+ * @{
+ */
+#define TV_CLR_KNOBS 0x68028
+/** 2s-complement brightness adjustment */
+# define TV_BRIGHTNESS_MASK 0xff000000
+# define TV_BRIGHTNESS_SHIFT 24
+/** Contrast adjustment, as a 2.6 unsigned floating point number */
+# define TV_CONTRAST_MASK 0x00ff0000
+# define TV_CONTRAST_SHIFT 16
+/** Saturation adjustment, as a 2.6 unsigned floating point number */
+# define TV_SATURATION_MASK 0x0000ff00
+# define TV_SATURATION_SHIFT 8
+/** Hue adjustment, as an integer phase angle in degrees */
+# define TV_HUE_MASK 0x000000ff
+# define TV_HUE_SHIFT 0
+/** @} */
+
+/** @defgroup TV_CLR_LEVEL
+ * @{
+ */
+#define TV_CLR_LEVEL 0x6802c
+/** Controls the DAC level for black */
+# define TV_BLACK_LEVEL_MASK 0x01ff0000
+# define TV_BLACK_LEVEL_SHIFT 16
+/** Controls the DAC level for blanking */
+# define TV_BLANK_LEVEL_MASK 0x000001ff
+# define TV_BLANK_LEVEL_SHIFT 0
+/* @} */
+
+/** @defgroup TV_H_CTL_1
+ * @{
+ */
+#define TV_H_CTL_1 0x68030
+/** Number of pixels in the hsync. */
+# define TV_HSYNC_END_MASK 0x1fff0000
+# define TV_HSYNC_END_SHIFT 16
+/** Total number of pixels minus one in the line (display and blanking). */
+# define TV_HTOTAL_MASK 0x00001fff
+# define TV_HTOTAL_SHIFT 0
+/** @} */
+
+/** @defgroup TV_H_CTL_2
+ * @{
+ */
+#define TV_H_CTL_2 0x68034
+/** Enables the colorburst (needed for non-component color) */
+# define TV_BURST_ENA (1 << 31)
+/** Offset of the colorburst from the start of hsync, in pixels minus one. */
+# define TV_HBURST_START_SHIFT 16
+# define TV_HBURST_START_MASK 0x1fff0000
+/** Length of the colorburst */
+# define TV_HBURST_LEN_SHIFT 0
+# define TV_HBURST_LEN_MASK 0x0001fff
+/** @} */
+
+/** @defgroup TV_H_CTL_3
+ * @{
+ */
+#define TV_H_CTL_3 0x68038
+/** End of hblank, measured in pixels minus one from start of hsync */
+# define TV_HBLANK_END_SHIFT 16
+# define TV_HBLANK_END_MASK 0x1fff0000
+/** Start of hblank, measured in pixels minus one from start of hsync */
+# define TV_HBLANK_START_SHIFT 0
+# define TV_HBLANK_START_MASK 0x0001fff
+/** @} */
+
+/** @defgroup TV_V_CTL_1
+ * @{
+ */
+#define TV_V_CTL_1 0x6803c
+/** XXX */
+# define TV_NBR_END_SHIFT 16
+# define TV_NBR_END_MASK 0x07ff0000
+/** XXX */
+# define TV_VI_END_F1_SHIFT 8
+# define TV_VI_END_F1_MASK 0x00003f00
+/** XXX */
+# define TV_VI_END_F2_SHIFT 0
+# define TV_VI_END_F2_MASK 0x0000003f
+/** @} */
+
+/** @defgroup TV_V_CTL_2
+ * @{
+ */
+#define TV_V_CTL_2 0x68040
+/** Length of vsync, in half lines */
+# define TV_VSYNC_LEN_MASK 0x07ff0000
+# define TV_VSYNC_LEN_SHIFT 16
+/** Offset of the start of vsync in field 1, measured in one less than the
+ * number of half lines.
+ */
+# define TV_VSYNC_START_F1_MASK 0x00007f00
+# define TV_VSYNC_START_F1_SHIFT 8
+/**
+ * Offset of the start of vsync in field 2, measured in one less than the
+ * number of half lines.
+ */
+# define TV_VSYNC_START_F2_MASK 0x0000007f
+# define TV_VSYNC_START_F2_SHIFT 0
+/** @} */
+
+/** @defgroup TV_V_CTL_3
+ * @{
+ */
+#define TV_V_CTL_3 0x68044
+/** Enables generation of the equalization signal */
+# define TV_EQUAL_ENA (1 << 31)
+/** Length of vsync, in half lines */
+# define TV_VEQ_LEN_MASK 0x007f0000
+# define TV_VEQ_LEN_SHIFT 16
+/** Offset of the start of equalization in field 1, measured in one less than
+ * the number of half lines.
+ */
+# define TV_VEQ_START_F1_MASK 0x0007f00
+# define TV_VEQ_START_F1_SHIFT 8
+/**
+ * Offset of the start of equalization in field 2, measured in one less than
+ * the number of half lines.
+ */
+# define TV_VEQ_START_F2_MASK 0x000007f
+# define TV_VEQ_START_F2_SHIFT 0
+/** @} */
+
+/** @defgroup TV_V_CTL_4
+ * @{
+ */
+#define TV_V_CTL_4 0x68048
+/**
+ * Offset to start of vertical colorburst, measured in one less than the
+ * number of lines from vertical start.
+ */
+# define TV_VBURST_START_F1_MASK 0x003f0000
+# define TV_VBURST_START_F1_SHIFT 16
+/**
+ * Offset to the end of vertical colorburst, measured in one less than the
+ * number of lines from the start of NBR.
+ */
+# define TV_VBURST_END_F1_MASK 0x000000ff
+# define TV_VBURST_END_F1_SHIFT 0
+/** @} */
+
+/** @defgroup TV_V_CTL_5
+ * @{
+ */
+#define TV_V_CTL_5 0x6804c
+/**
+ * Offset to start of vertical colorburst, measured in one less than the
+ * number of lines from vertical start.
+ */
+# define TV_VBURST_START_F2_MASK 0x003f0000
+# define TV_VBURST_START_F2_SHIFT 16
+/**
+ * Offset to the end of vertical colorburst, measured in one less than the
+ * number of lines from the start of NBR.
+ */
+# define TV_VBURST_END_F2_MASK 0x000000ff
+# define TV_VBURST_END_F2_SHIFT 0
+/** @} */
+
+/** @defgroup TV_V_CTL_6
+ * @{
+ */
+#define TV_V_CTL_6 0x68050
+/**
+ * Offset to start of vertical colorburst, measured in one less than the
+ * number of lines from vertical start.
+ */
+# define TV_VBURST_START_F3_MASK 0x003f0000
+# define TV_VBURST_START_F3_SHIFT 16
+/**
+ * Offset to the end of vertical colorburst, measured in one less than the
+ * number of lines from the start of NBR.
+ */
+# define TV_VBURST_END_F3_MASK 0x000000ff
+# define TV_VBURST_END_F3_SHIFT 0
+/** @} */
+
+/** @defgroup TV_V_CTL_7
+ * @{
+ */
+#define TV_V_CTL_7 0x68054
+/**
+ * Offset to start of vertical colorburst, measured in one less than the
+ * number of lines from vertical start.
+ */
+# define TV_VBURST_START_F4_MASK 0x003f0000
+# define TV_VBURST_START_F4_SHIFT 16
+/**
+ * Offset to the end of vertical colorburst, measured in one less than the
+ * number of lines from the start of NBR.
+ */
+# define TV_VBURST_END_F4_MASK 0x000000ff
+# define TV_VBURST_END_F4_SHIFT 0
+/** @} */
+
+/** @defgroup TV_SC_CTL_1
+ * @{
+ */
+#define TV_SC_CTL_1 0x68060
+/** Turns on the first subcarrier phase generation DDA */
+# define TV_SC_DDA1_EN (1 << 31)
+/** Turns on the first subcarrier phase generation DDA */
+# define TV_SC_DDA2_EN (1 << 30)
+/** Turns on the first subcarrier phase generation DDA */
+# define TV_SC_DDA3_EN (1 << 29)
+/** Sets the subcarrier DDA to reset frequency every other field */
+# define TV_SC_RESET_EVERY_2 (0 << 24)
+/** Sets the subcarrier DDA to reset frequency every fourth field */
+# define TV_SC_RESET_EVERY_4 (1 << 24)
+/** Sets the subcarrier DDA to reset frequency every eighth field */
+# define TV_SC_RESET_EVERY_8 (2 << 24)
+/** Sets the subcarrier DDA to never reset the frequency */
+# define TV_SC_RESET_NEVER (3 << 24)
+/** Sets the peak amplitude of the colorburst.*/
+# define TV_BURST_LEVEL_MASK 0x00ff0000
+# define TV_BURST_LEVEL_SHIFT 16
+/** Sets the increment of the first subcarrier phase generation DDA */
+# define TV_SCDDA1_INC_MASK 0x00000fff
+# define TV_SCDDA1_INC_SHIFT 0
+/** @} */
+
+/** @defgroup TV_SC_CTL_2
+ * @{
+ */
+#define TV_SC_CTL_2 0x68064
+/** Sets the rollover for the second subcarrier phase generation DDA */
+# define TV_SCDDA2_SIZE_MASK 0x7fff0000
+# define TV_SCDDA2_SIZE_SHIFT 16
+/** Sets the increent of the second subcarrier phase generation DDA */
+# define TV_SCDDA2_INC_MASK 0x00007fff
+# define TV_SCDDA2_INC_SHIFT 0
+/** @} */
+
+/** @defgroup TV_SC_CTL_3
+ * @{
+ */
+#define TV_SC_CTL_3 0x68068
+/** Sets the rollover for the third subcarrier phase generation DDA */
+# define TV_SCDDA3_SIZE_MASK 0x7fff0000
+# define TV_SCDDA3_SIZE_SHIFT 16
+/** Sets the increent of the third subcarrier phase generation DDA */
+# define TV_SCDDA3_INC_MASK 0x00007fff
+# define TV_SCDDA3_INC_SHIFT 0
+/** @} */
+
+/** @defgroup TV_WIN_POS
+ * @{
+ */
+#define TV_WIN_POS 0x68070
+/** X coordinate of the display from the start of horizontal active */
+# define TV_XPOS_MASK 0x1fff0000
+# define TV_XPOS_SHIFT 16
+/** Y coordinate of the display from the start of vertical active (NBR) */
+# define TV_YPOS_MASK 0x00000fff
+# define TV_YPOS_SHIFT 0
+/** @} */
+
+/** @defgroup TV_WIN_SIZE
+ * @{
+ */
+#define TV_WIN_SIZE 0x68074
+/** Horizontal size of the display window, measured in pixels*/
+# define TV_XSIZE_MASK 0x1fff0000
+# define TV_XSIZE_SHIFT 16
+/**
+ * Vertical size of the display window, measured in pixels.
+ *
+ * Must be even for interlaced modes.
+ */
+# define TV_YSIZE_MASK 0x00000fff
+# define TV_YSIZE_SHIFT 0
+/** @} */
+
+/** @defgroup TV_FILTER_CTL_1
+ * @{
+ */
+#define TV_FILTER_CTL_1 0x68080
+/**
+ * Enables automatic scaling calculation.
+ *
+ * If set, the rest of the registers are ignored, and the calculated values can
+ * be read back from the register.
+ */
+# define TV_AUTO_SCALE (1 << 31)
+/**
+ * Disables the vertical filter.
+ *
+ * This is required on modes more than 1024 pixels wide */
+# define TV_V_FILTER_BYPASS (1 << 29)
+/** Enables adaptive vertical filtering */
+# define TV_VADAPT (1 << 28)
+# define TV_VADAPT_MODE_MASK (3 << 26)
+/** Selects the least adaptive vertical filtering mode */
+# define TV_VADAPT_MODE_LEAST (0 << 26)
+/** Selects the moderately adaptive vertical filtering mode */
+# define TV_VADAPT_MODE_MODERATE (1 << 26)
+/** Selects the most adaptive vertical filtering mode */
+# define TV_VADAPT_MODE_MOST (3 << 26)
+/**
+ * Sets the horizontal scaling factor.
+ *
+ * This should be the fractional part of the horizontal scaling factor divided
+ * by the oversampling rate. TV_HSCALE should be less than 1, and set to:
+ *
+ * (src width - 1) / ((oversample * dest width) - 1)
+ */
+# define TV_HSCALE_FRAC_MASK 0x00003fff
+# define TV_HSCALE_FRAC_SHIFT 0
+/** @} */
+
+/** @defgroup TV_FILTER_CTL_2
+ * @{
+ */
+#define TV_FILTER_CTL_2 0x68084
+/**
+ * Sets the integer part of the 3.15 fixed-point vertical scaling factor.
+ *
+ * TV_VSCALE should be (src height - 1) / ((interlace * dest height) - 1)
+ */
+# define TV_VSCALE_INT_MASK 0x00038000
+# define TV_VSCALE_INT_SHIFT 15
+/**
+ * Sets the fractional part of the 3.15 fixed-point vertical scaling factor.
+ *
+ * \sa TV_VSCALE_INT_MASK
+ */
+# define TV_VSCALE_FRAC_MASK 0x00007fff
+# define TV_VSCALE_FRAC_SHIFT 0
+/** @} */
+
+/** @defgroup TV_FILTER_CTL_3
+ * @{
+ */
+#define TV_FILTER_CTL_3 0x68088
+/**
+ * Sets the integer part of the 3.15 fixed-point vertical scaling factor.
+ *
+ * TV_VSCALE should be (src height - 1) / (1/4 * (dest height - 1))
+ *
+ * For progressive modes, TV_VSCALE_IP_INT should be set to zeroes.
+ */
+# define TV_VSCALE_IP_INT_MASK 0x00038000
+# define TV_VSCALE_IP_INT_SHIFT 15
+/**
+ * Sets the fractional part of the 3.15 fixed-point vertical scaling factor.
+ *
+ * For progressive modes, TV_VSCALE_IP_INT should be set to zeroes.
+ *
+ * \sa TV_VSCALE_IP_INT_MASK
+ */
+# define TV_VSCALE_IP_FRAC_MASK 0x00007fff
+# define TV_VSCALE_IP_FRAC_SHIFT 0
+/** @} */
+
+/** @defgroup TV_CC_CONTROL
+ * @{
+ */
+#define TV_CC_CONTROL 0x68090
+# define TV_CC_ENABLE (1 << 31)
+/**
+ * Specifies which field to send the CC data in.
+ *
+ * CC data is usually sent in field 0.
+ */
+# define TV_CC_FID_MASK (1 << 27)
+# define TV_CC_FID_SHIFT 27
+/** Sets the horizontal position of the CC data. Usually 135. */
+# define TV_CC_HOFF_MASK 0x03ff0000
+# define TV_CC_HOFF_SHIFT 16
+/** Sets the vertical position of the CC data. Usually 21 */
+# define TV_CC_LINE_MASK 0x0000003f
+# define TV_CC_LINE_SHIFT 0
+/** @} */
+
+/** @defgroup TV_CC_DATA
+ * @{
+ */
+#define TV_CC_DATA 0x68094
+# define TV_CC_RDY (1 << 31)
+/** Second word of CC data to be transmitted. */
+# define TV_CC_DATA_2_MASK 0x007f0000
+# define TV_CC_DATA_2_SHIFT 16
+/** First word of CC data to be transmitted. */
+# define TV_CC_DATA_1_MASK 0x0000007f
+# define TV_CC_DATA_1_SHIFT 0
+/** @}
+ */
+
+/** @{ */
+#define TV_H_LUMA_0 0x68100
+#define TV_H_LUMA_59 0x681ec
+#define TV_H_CHROMA_0 0x68200
+#define TV_H_CHROMA_59 0x682ec
+#define TV_V_LUMA_0 0x68300
+#define TV_V_LUMA_42 0x683a8
+#define TV_V_CHROMA_0 0x68400
+#define TV_V_CHROMA_42 0x684a8
+/** @} */
+
+#define PIPEA_DSL 0x70000
+
+#define PIPEACONF 0x70008
+#define PIPEACONF_ENABLE (1<<31)
+#define PIPEACONF_DISABLE 0
+#define PIPEACONF_DOUBLE_WIDE (1<<30)
+#define I965_PIPECONF_ACTIVE (1<<30)
+#define PIPEACONF_SINGLE_WIDE 0
+#define PIPEACONF_PIPE_UNLOCKED 0
+#define PIPEACONF_PIPE_LOCKED (1<<25)
+#define PIPEACONF_PALETTE 0
+#define PIPEACONF_GAMMA (1<<24)
+/* Ironlake: gamma */
+#define PIPECONF_PALETTE_8BIT (0<<24)
+#define PIPECONF_PALETTE_10BIT (1<<24)
+#define PIPECONF_PALETTE_12BIT (2<<24)
+#define PIPECONF_FORCE_BORDER (1<<25)
+#define PIPECONF_PROGRESSIVE (0 << 21)
+#define PIPECONF_INTERLACE_W_FIELD_INDICATION (6 << 21)
+#define PIPECONF_INTERLACE_FIELD_0_ONLY (7 << 21)
+/* Ironlake */
+#define PIPECONF_MSA_TIMING_DELAY (0<<18) /* for eDP */
+#define PIPECONF_NO_DYNAMIC_RATE_CHANGE (0 << 16)
+#define PIPECONF_NO_ROTATION (0<<14)
+#define PIPECONF_FULL_COLOR_RANGE (0<<13)
+#define PIPECONF_CE_COLOR_RANGE (1<<13)
+#define PIPECONF_COLOR_SPACE_RGB (0<<11)
+#define PIPECONF_COLOR_SPACE_YUV601 (1<<11)
+#define PIPECONF_COLOR_SPACE_YUV709 (2<<11)
+#define PIPECONF_CONNECT_DEFAULT (0<<9)
+#define PIPECONF_8BPP (0<<5)
+#define PIPECONF_10BPP (1<<5)
+#define PIPECONF_6BPP (2<<5)
+#define PIPECONF_12BPP (3<<5)
+#define PIPECONF_ENABLE_DITHER (1<<4)
+#define PIPECONF_DITHER_SPATIAL (0<<2)
+#define PIPECONF_DITHER_ST1 (1<<2)
+#define PIPECONF_DITHER_ST2 (2<<2)
+#define PIPECONF_DITHER_TEMPORAL (3<<2)
+
+#define PIPEAGCMAXRED 0x70010
+#define PIPEAGCMAXGREEN 0x70014
+#define PIPEAGCMAXBLUE 0x70018
+#define PIPEASTAT 0x70024
+# define FIFO_UNDERRUN (1 << 31)
+# define CRC_ERROR_ENABLE (1 << 29)
+# define CRC_DONE_ENABLE (1 << 28)
+# define GMBUS_EVENT_ENABLE (1 << 27)
+# define VSYNC_INT_ENABLE (1 << 25)
+# define DLINE_COMPARE_ENABLE (1 << 24)
+# define DPST_EVENT_ENABLE (1 << 23)
+# define LBLC_EVENT_ENABLE (1 << 22)
+# define OFIELD_INT_ENABLE (1 << 21)
+# define EFIELD_INT_ENABLE (1 << 20)
+# define SVBLANK_INT_ENABLE (1 << 18)
+# define VBLANK_INT_ENABLE (1 << 17)
+# define OREG_UPDATE_ENABLE (1 << 16)
+# define CRC_ERROR_INT_STATUS (1 << 13)
+# define CRC_DONE_INT_STATUS (1 << 12)
+# define GMBUS_INT_STATUS (1 << 11)
+# define VSYNC_INT_STATUS (1 << 9)
+# define DLINE_COMPARE_STATUS (1 << 8)
+# define DPST_EVENT_STATUS (1 << 7)
+# define LBLC_EVENT_STATUS (1 << 6)
+# define OFIELD_INT_STATUS (1 << 5)
+# define EFIELD_INT_STATUS (1 << 4)
+# define SVBLANK_INT_STATUS (1 << 2)
+# define VBLANK_INT_STATUS (1 << 1)
+# define OREG_UPDATE_STATUS (1 << 0)
+
+
+#define DSPARB 0x70030
+#define DSPARB_CSTART_SHIFT 7
+#define DSPARB_BSTART_SHIFT 0
+#define DSPARB_BEND_SHIFT 9 /* on 855 */
+#define DSPARB_AEND_SHIFT 0
+#define DSPFW1 0x70034
+#define DSPFW2 0x70038
+#define DSPFW3 0x7003c
+/*
+ * The two pipe frame counter registers are not synchronized, so
+ * reading a stable value is somewhat tricky. The following code
+ * should work:
+ *
+ * do {
+ * high1 = ((INREG(PIPEAFRAMEHIGH) & PIPE_FRAME_HIGH_MASK) >> PIPE_FRAME_HIGH_SHIFT;
+ * low1 = ((INREG(PIPEAFRAMEPIXEL) & PIPE_FRAME_LOW_MASK) >> PIPE_FRAME_LOW_SHIFT);
+ * high2 = ((INREG(PIPEAFRAMEHIGH) & PIPE_FRAME_HIGH_MASK) >> PIPE_FRAME_HIGH_SHIFT);
+ * } while (high1 != high2);
+ * frame = (high1 << 8) | low1;
+ */
+#define PIPEAFRAMEHIGH 0x70040
+#define PIPE_FRAME_HIGH_MASK 0x0000ffff
+#define PIPE_FRAME_HIGH_SHIFT 0
+#define PIPEAFRAMEPIXEL 0x70044
+#define PIPE_FRAME_LOW_MASK 0xff000000
+#define PIPE_FRAME_LOW_SHIFT 24
+/*
+ * Pixel within the current frame is counted in the PIPEAFRAMEPIXEL register
+ * and is 24 bits wide.
+ */
+#define PIPE_PIXEL_MASK 0x00ffffff
+#define PIPE_PIXEL_SHIFT 0
+
+/*
+ * Computing GMCH M and N values.
+ *
+ * GMCH M/N = dot clock * bytes per pixel / ls_clk * # of lanes
+ *
+ * ls_clk (we assume) is the DP link clock (1.62 or 2.7 GHz)
+ *
+ * The GMCH value is used internally
+ */
+#define PIPEA_GMCH_DATA_M 0x70050
+
+/* Transfer unit size for display port - 1, default is 0x3f (for TU size 64) */
+#define PIPE_GMCH_DATA_M_TU_SIZE_MASK (0x3f << 25)
+#define PIPE_GMCH_DATA_M_TU_SIZE_SHIFT 25
+
+#define PIPE_GMCH_DATA_M_MASK (0xffffff)
+
+#define PIPEA_GMCH_DATA_N 0x70054
+#define PIPE_GMCH_DATA_N_MASK (0xffffff)
+
+/*
+ * Computing Link M and N values.
+ *
+ * Link M / N = pixel_clock / ls_clk
+ *
+ * (the DP spec calls pixel_clock the 'strm_clk')
+ *
+ * The Link value is transmitted in the Main Stream
+ * Attributes and VB-ID.
+ */
+
+#define PIPEA_DP_LINK_M 0x70060
+#define PIPEA_DP_LINK_M_MASK (0xffffff)
+
+#define PIPEA_DP_LINK_N 0x70064
+#define PIPEA_DP_LINK_N_MASK (0xffffff)
+
+#define PIPEB_DSL 0x71000
+
+#define PIPEBCONF 0x71008
+#define PIPEBCONF_ENABLE (1<<31)
+#define PIPEBCONF_DISABLE 0
+#define PIPEBCONF_DOUBLE_WIDE (1<<30)
+#define PIPEBCONF_DISABLE 0
+#define PIPEBCONF_GAMMA (1<<24)
+#define PIPEBCONF_PALETTE 0
+
+#define PIPEBGCMAXRED 0x71010
+#define PIPEBGCMAXGREEN 0x71014
+#define PIPEBGCMAXBLUE 0x71018
+#define PIPEBSTAT 0x71024
+#define PIPEBFRAMEHIGH 0x71040
+#define PIPEBFRAMEPIXEL 0x71044
+
+#define PIPEB_GMCH_DATA_M 0x71050
+#define PIPEB_GMCH_DATA_N 0x71054
+#define PIPEB_DP_LINK_M 0x71060
+#define PIPEB_DP_LINK_N 0x71064
+
+#define DSPACNTR 0x70180
+#define DSPBCNTR 0x71180
+#define DISPLAY_PLANE_ENABLE (1<<31)
+#define DISPLAY_PLANE_DISABLE 0
+#define DISPLAY_PLANE_TILED (1<<10)
+#define DISPPLANE_GAMMA_ENABLE (1<<30)
+#define DISPPLANE_GAMMA_DISABLE 0
+#define DISPPLANE_PIXFORMAT_MASK (0xf<<26)
+#define DISPPLANE_8BPP (0x2<<26)
+#define DISPPLANE_15_16BPP (0x4<<26)
+#define DISPPLANE_16BPP (0x5<<26)
+#define DISPPLANE_32BPP_NO_ALPHA (0x6<<26) /* Ironlake: BGRX */
+#define DISPPLANE_32BPP (0x7<<26) /* Ironlake: not support */
+/* Ironlake */
+#define DISPPLANE_32BPP_10 (0x8<<26) /* 2:10:10:10 */
+#define DISPPLANE_32BPP_BGRX (0xa<<26)
+#define DISPPLANE_64BPP (0xc<<26)
+#define DISPPLANE_32BPP_RGBX (0xe<<26)
+#define DISPPLANE_STEREO_ENABLE (1<<25)
+#define DISPPLANE_STEREO_DISABLE 0
+#define DISPPLANE_SEL_PIPE_MASK (1<<24)
+#define DISPPLANE_SEL_PIPE_A 0 /* Ironlake: don't use */
+#define DISPPLANE_SEL_PIPE_B (1<<24)
+#define DISPPLANE_NORMAL_RANGE (0<<25)
+#define DISPPLANE_EXT_RANGE (1<<25)
+/* Ironlake */
+#define DISPPLANE_CSC_BYPASS (0<<24)
+#define DISPPLANE_CSC_PASSTHROUGH (1<<24)
+#define DISPPLANE_SRC_KEY_ENABLE (1<<22)
+#define DISPPLANE_SRC_KEY_DISABLE 0
+#define DISPPLANE_LINE_DOUBLE (1<<20)
+#define DISPPLANE_NO_LINE_DOUBLE 0
+#define DISPPLANE_STEREO_POLARITY_FIRST 0
+#define DISPPLANE_STEREO_POLARITY_SECOND (1<<18)
+/* plane B only */
+#define DISPPLANE_ALPHA_TRANS_ENABLE (1<<15)
+#define DISPPLANE_ALPHA_TRANS_DISABLE 0
+#define DISPPLANE_SPRITE_ABOVE_DISPLAYA 0
+#define DISPPLANE_SPRITE_ABOVE_OVERLAY (1)
+/* Ironlake */
+#define DISPPLANE_X_TILE (1<<10)
+#define DISPPLANE_LINEAR (0<<10)
+
+#define DSPABASE 0x70184
+/* Ironlake */
+#define DSPALINOFF 0x70184
+#define DSPASTRIDE 0x70188
+
+#define DSPBBASE 0x71184
+/* Ironlake */
+#define DSPBLINOFF 0x71184
+#define DSPBADDR DSPBBASE
+#define DSPBSTRIDE 0x71188
+
+#define DSPAKEYVAL 0x70194
+#define DSPAKEYMASK 0x70198
+
+#define DSPAPOS 0x7018C /* reserved */
+#define DSPASIZE 0x70190
+#define DSPBPOS 0x7118C
+#define DSPBSIZE 0x71190
+
+#define DSPASURF 0x7019C
+#define DSPATILEOFF 0x701A4
+
+#define DSPBSURF 0x7119C
+#define DSPBTILEOFF 0x711A4
+
+#define VGACNTRL 0x71400
+# define VGA_DISP_DISABLE (1 << 31)
+# define VGA_2X_MODE (1 << 30)
+# define VGA_PIPE_B_SELECT (1 << 29)
+
+/* Various masks for reserved bits, etc. */
+#define I830_FWATER1_MASK (~((1<<11)|(1<<10)|(1<<9)| \
+ (1<<8)|(1<<26)|(1<<25)|(1<<24)|(1<<5)|(1<<4)|(1<<3)| \
+ (1<<2)|(1<<1)|1|(1<<20)|(1<<19)|(1<<18)|(1<<17)|(1<<16)))
+#define I830_FWATER2_MASK ~(0)
+
+#define DV0A_RESERVED ((1<<26)|(1<<25)|(1<<24)|(1<<23)|(1<<22)|(1<<21)|(1<<20)|(1<<19)|(1<<18)|(1<<16)|(1<<5)|(1<<1)|1)
+#define DV0B_RESERVED ((1<<27)|(1<<26)|(1<<25)|(1<<24)|(1<<23)|(1<<22)|(1<<21)|(1<<20)|(1<<19)|(1<<18)|(1<<16)|(1<<5)|(1<<1)|1)
+#define VGA0_N_DIVISOR_MASK ((1<<21)|(1<<20)|(1<<19)|(1<<18)|(1<<17)|(1<<16))
+#define VGA0_M1_DIVISOR_MASK ((1<<13)|(1<<12)|(1<<11)|(1<<10)|(1<<9)|(1<<8))
+#define VGA0_M2_DIVISOR_MASK ((1<<5)|(1<<4)|(1<<3)|(1<<2)|(1<<1)|1)
+#define VGA0_M1M2N_RESERVED ~(VGA0_N_DIVISOR_MASK|VGA0_M1_DIVISOR_MASK|VGA0_M2_DIVISOR_MASK)
+#define VGA0_POSTDIV_MASK ((1<<7)|(1<<5)|(1<<4)|(1<<3)|(1<<2)|(1<<1)|1)
+#define VGA1_POSTDIV_MASK ((1<<15)|(1<<13)|(1<<12)|(1<<11)|(1<<10)|(1<<9)|(1<<8))
+#define VGA_POSTDIV_RESERVED ~(VGA0_POSTDIV_MASK|VGA1_POSTDIV_MASK|(1<<7)|(1<<15))
+#define DPLLA_POSTDIV_MASK ((1<<23)|(1<<21)|(1<<20)|(1<<19)|(1<<18)|(1<<17)|(1<<16))
+#define DPLLA_RESERVED ((1<<27)|(1<<26)|(1<<25)|(1<<24)|(1<<22)|(1<<15)|(1<<12)|(1<<11)|(1<<10)|(1<<9)|(1<<8)|(1<<7)|(1<<6)|(1<<5)|(1<<4)|(1<<3)|(1<<2)|(1<<1)|1)
+#define ADPA_RESERVED ((1<<2)|(1<<1)|1|(1<<9)|(1<<8)|(1<<7)|(1<<6)|(1<<5)|(1<<30)|(1<<29)|(1<<28)|(1<<27)|(1<<26)|(1<<25)|(1<<24)|(1<<23)|(1<<22)|(1<<21)|(1<<20)|(1<<19)|(1<<18)|(1<<17)|(1<<16))
+#define SUPER_WORD 32
+#define BURST_A_MASK ((1<<11)|(1<<10)|(1<<9)|(1<<8))
+#define BURST_B_MASK ((1<<26)|(1<<25)|(1<<24))
+#define WATER_A_MASK ((1<<5)|(1<<4)|(1<<3)|(1<<2)|(1<<1)|1)
+#define WATER_B_MASK ((1<<20)|(1<<19)|(1<<18)|(1<<17)|(1<<16))
+#define WATER_RESERVED ((1<<31)|(1<<30)|(1<<29)|(1<<28)|(1<<27)|(1<<23)|(1<<22)|(1<<21)|(1<<15)|(1<<14)|(1<<13)|(1<<12)|(1<<7)|(1<<6))
+#define PIPEACONF_RESERVED ((1<<29)|(1<<28)|(1<<27)|(1<<23)|(1<<22)|(1<<21)|(1<<20)|(1<<19)|(1<<18)|(1<<17)|(1<<16)|0xffff)
+#define PIPEBCONF_RESERVED ((1<<30)|(1<<29)|(1<<28)|(1<<27)|(1<<26)|(1<<25)|(1<<23)|(1<<22)|(1<<21)|(1<<20)|(1<<19)|(1<<18)|(1<<17)|(1<<16)|0xffff)
+#define DSPACNTR_RESERVED ((1<<23)|(1<<19)|(1<<17)|(1<<16)|0xffff)
+#define DSPBCNTR_RESERVED ((1<<23)|(1<<19)|(1<<17)|(1<<16)|0x7ffe)
+
+#define I830_GMCH_CTRL 0x52
+
+#define I830_GMCH_ENABLED 0x4
+#define I830_GMCH_MEM_MASK 0x1
+#define I830_GMCH_MEM_64M 0x1
+#define I830_GMCH_MEM_128M 0
+
+#define I830_GMCH_GMS_MASK 0x70
+#define I830_GMCH_GMS_DISABLED 0x00
+#define I830_GMCH_GMS_LOCAL 0x10
+#define I830_GMCH_GMS_STOLEN_512 0x20
+#define I830_GMCH_GMS_STOLEN_1024 0x30
+#define I830_GMCH_GMS_STOLEN_8192 0x40
+
+#define I830_RDRAM_CHANNEL_TYPE 0x03010
+#define I830_RDRAM_ND(x) (((x) & 0x20) >> 5)
+#define I830_RDRAM_DDT(x) (((x) & 0x18) >> 3)
+
+#define I855_GMCH_GMS_MASK (0xF << 4)
+#define I855_GMCH_GMS_DISABLED 0x00
+#define I855_GMCH_GMS_STOLEN_1M (0x1 << 4)
+#define I855_GMCH_GMS_STOLEN_4M (0x2 << 4)
+#define I855_GMCH_GMS_STOLEN_8M (0x3 << 4)
+#define I855_GMCH_GMS_STOLEN_16M (0x4 << 4)
+#define I855_GMCH_GMS_STOLEN_32M (0x5 << 4)
+#define I915G_GMCH_GMS_STOLEN_48M (0x6 << 4)
+#define I915G_GMCH_GMS_STOLEN_64M (0x7 << 4)
+#define G33_GMCH_GMS_STOLEN_128M (0x8 << 4)
+#define G33_GMCH_GMS_STOLEN_256M (0x9 << 4)
+#define INTEL_GMCH_GMS_STOLEN_96M (0xa << 4)
+#define INTEL_GMCH_GMS_STOLEN_160M (0xb << 4)
+#define INTEL_GMCH_GMS_STOLEN_224M (0xc << 4)
+#define INTEL_GMCH_GMS_STOLEN_352M (0xd << 4)
+
+
+#define I915_GCFGC 0xf0
+#define I915_LOW_FREQUENCY_ENABLE (1 << 7)
+#define I915_DISPLAY_CLOCK_190_200_MHZ (0 << 4)
+#define I915_DISPLAY_CLOCK_333_MHZ (4 << 4)
+#define I915_DISPLAY_CLOCK_MASK (7 << 4)
+
+#define I855_HPLLCC 0xc0
+#define I855_CLOCK_CONTROL_MASK (3 << 0)
+#define I855_CLOCK_133_200 (0 << 0)
+#define I855_CLOCK_100_200 (1 << 0)
+#define I855_CLOCK_100_133 (2 << 0)
+#define I855_CLOCK_166_250 (3 << 0)
+
+/* BLT commands */
+#define COLOR_BLT_CMD ((2<<29)|(0x40<<22)|(0x3))
+#define COLOR_BLT_WRITE_ALPHA (1<<21)
+#define COLOR_BLT_WRITE_RGB (1<<20)
+
+#define XY_COLOR_BLT_CMD ((2<<29)|(0x50<<22)|(0x4))
+#define XY_COLOR_BLT_WRITE_ALPHA (1<<21)
+#define XY_COLOR_BLT_WRITE_RGB (1<<20)
+#define XY_COLOR_BLT_TILED (1<<11)
+
+#define XY_SETUP_CLIP_BLT_CMD ((2<<29)|(3<<22)|1)
+
+#define XY_SRC_COPY_BLT_CMD ((2<<29)|(0x53<<22)|6)
+#define XY_SRC_COPY_BLT_WRITE_ALPHA (1<<21)
+#define XY_SRC_COPY_BLT_WRITE_RGB (1<<20)
+#define XY_SRC_COPY_BLT_SRC_TILED (1<<15)
+#define XY_SRC_COPY_BLT_DST_TILED (1<<11)
+
+#define SRC_COPY_BLT_CMD ((2<<29)|(0x43<<22)|0x4)
+#define SRC_COPY_BLT_WRITE_ALPHA (1<<21)
+#define SRC_COPY_BLT_WRITE_RGB (1<<20)
+
+#define XY_PAT_BLT_IMMEDIATE ((2<<29)|(0x72<<22))
+
+#define XY_MONO_PAT_BLT_CMD ((0x2<<29)|(0x52<<22)|0x7)
+#define XY_MONO_PAT_VERT_SEED ((1<<10)|(1<<9)|(1<<8))
+#define XY_MONO_PAT_HORT_SEED ((1<<14)|(1<<13)|(1<<12))
+#define XY_MONO_PAT_BLT_WRITE_ALPHA (1<<21)
+#define XY_MONO_PAT_BLT_WRITE_RGB (1<<20)
+
+#define XY_MONO_SRC_BLT_CMD ((0x2<<29)|(0x54<<22)|(0x6))
+#define XY_MONO_SRC_BLT_WRITE_ALPHA (1<<21)
+#define XY_MONO_SRC_BLT_WRITE_RGB (1<<20)
+
+#define STATE3D_FOG_MODE ((3<<29)|(0x1d<<24)|(0x89<<16)|2)
+#define FOG_MODE_VERTEX (1<<31)
+
+#define DISABLE_TEX_TRANSFORM (1<<28)
+#define TEXTURE_SET(x) (x<<29)
+
+#define STATE3D_VERTEX_TRANSFORM ((3<<29)|(0x1d<<24)|(0x8b<<16))
+#define DISABLE_VIEWPORT_TRANSFORM (1<<31)
+#define DISABLE_PERSPECTIVE_DIVIDE (1<<29)
+
+#define MI_SET_CONTEXT (0x18<<23)
+#define CTXT_NO_RESTORE (1)
+#define CTXT_PALETTE_SAVE_DISABLE (1<<3)
+#define CTXT_PALETTE_RESTORE_DISABLE (1<<2)
+
+/* Dword 0 */
+#define MI_VERTEX_BUFFER (0x17<<23)
+#define MI_VERTEX_BUFFER_IDX(x) (x<<20)
+#define MI_VERTEX_BUFFER_PITCH(x) (x<<13)
+#define MI_VERTEX_BUFFER_WIDTH(x) (x<<6)
+/* Dword 1 */
+#define MI_VERTEX_BUFFER_DISABLE (1)
+
+/* Overlay Flip */
+#define MI_OVERLAY_FLIP (0x11<<23)
+#define MI_OVERLAY_FLIP_CONTINUE (0<<21)
+#define MI_OVERLAY_FLIP_ON (1<<21)
+#define MI_OVERLAY_FLIP_OFF (2<<21)
+
+/* Wait for Events */
+#define MI_WAIT_FOR_EVENT (0x03<<23)
+#define MI_WAIT_FOR_PIPEB_SVBLANK (1<<18)
+#define MI_WAIT_FOR_PIPEA_SVBLANK (1<<17)
+#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16)
+#define MI_WAIT_FOR_PIPEB_VBLANK (1<<7)
+#define MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW (1<<5)
+#define MI_WAIT_FOR_PIPEA_VBLANK (1<<3)
+#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW (1<<1)
+
+/* Set the scan line for MI_WAIT_FOR_PIPE?_SCAN_LINE_WINDOW */
+#define MI_LOAD_SCAN_LINES_INCL (0x12<<23)
+#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEA (0)
+#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEB (0x1<<20)
+
+/* Flush */
+#define MI_FLUSH (0x04<<23)
+#define MI_WRITE_DIRTY_STATE (1<<4)
+#define MI_END_SCENE (1<<3)
+#define MI_GLOBAL_SNAPSHOT_COUNT_RESET (1<<3)
+#define MI_INHIBIT_RENDER_CACHE_FLUSH (1<<2)
+#define MI_STATE_INSTRUCTION_CACHE_FLUSH (1<<1)
+#define MI_INVALIDATE_MAP_CACHE (1<<0)
+/* broadwater flush bits */
+#define BRW_MI_GLOBAL_SNAPSHOT_RESET (1 << 3)
+
+/* Noop */
+#define MI_NOOP 0x00
+#define MI_NOOP_WRITE_ID (1<<22)
+#define MI_NOOP_ID_MASK (1<<22 - 1)
+
+#define STATE3D_COLOR_FACTOR ((0x3<<29)|(0x1d<<24)|(0x01<<16))
+
+/* Batch */
+#define MI_BATCH_BUFFER ((0x30 << 23) | 1)
+#define MI_BATCH_BUFFER_START (0x31 << 23)
+#define MI_BATCH_BUFFER_END (0xA << 23)
+#define MI_BATCH_NON_SECURE (1)
+#define MI_BATCH_NON_SECURE_I965 (1 << 8)
+
+/* STATE3D_FOG_MODE stuff */
+#define ENABLE_FOG_SOURCE (1<<27)
+#define ENABLE_FOG_CONST (1<<24)
+#define ENABLE_FOG_DENSITY (1<<23)
+
+#define MAX_DISPLAY_PIPES 2
+
+typedef enum {
+ CrtIndex = 0,
+ TvIndex,
+ DfpIndex,
+ LfpIndex,
+ Crt2Index,
+ Tv2Index,
+ Dfp2Index,
+ Lfp2Index,
+ NumDisplayTypes
+} DisplayType;
+
+/* What's connected to the pipes (as reported by the BIOS) */
+#define PIPE_ACTIVE_MASK 0xff
+#define PIPE_CRT_ACTIVE (1 << CrtIndex)
+#define PIPE_TV_ACTIVE (1 << TvIndex)
+#define PIPE_DFP_ACTIVE (1 << DfpIndex)
+#define PIPE_LCD_ACTIVE (1 << LfpIndex)
+#define PIPE_CRT2_ACTIVE (1 << Crt2Index)
+#define PIPE_TV2_ACTIVE (1 << Tv2Index)
+#define PIPE_DFP2_ACTIVE (1 << Dfp2Index)
+#define PIPE_LCD2_ACTIVE (1 << Lfp2Index)
+
+#define PIPE_SIZED_DISP_MASK (PIPE_DFP_ACTIVE | \
+ PIPE_LCD_ACTIVE | \
+ PIPE_DFP2_ACTIVE)
+
+#define PIPE_A_SHIFT 0
+#define PIPE_B_SHIFT 8
+#define PIPE_SHIFT(n) ((n) == 0 ? \
+ PIPE_A_SHIFT : PIPE_B_SHIFT)
+
+/*
+ * Some BIOS scratch area registers. The 845 (and 830?) store the amount
+ * of video memory available to the BIOS in SWF1.
+ */
+
+#define SWF0 0x71410
+#define SWF1 0x71414
+#define SWF2 0x71418
+#define SWF3 0x7141c
+#define SWF4 0x71420
+#define SWF5 0x71424
+#define SWF6 0x71428
+
+/*
+ * 855 scratch registers.
+ */
+#define SWF00 0x70410
+#define SWF01 0x70414
+#define SWF02 0x70418
+#define SWF03 0x7041c
+#define SWF04 0x70420
+#define SWF05 0x70424
+#define SWF06 0x70428
+
+#define SWF10 SWF0
+#define SWF11 SWF1
+#define SWF12 SWF2
+#define SWF13 SWF3
+#define SWF14 SWF4
+#define SWF15 SWF5
+#define SWF16 SWF6
+
+#define SWF30 0x72414
+#define SWF31 0x72418
+#define SWF32 0x7241c
+
+/*
+ * Overlay registers. These are overlay registers accessed via MMIO.
+ * Those loaded via the overlay register page are defined in i830_video.c.
+ */
+#define OVADD 0x30000
+
+#define DOVSTA 0x30008
+#define OC_BUF (0x3<<20)
+
+#define OGAMC5 0x30010
+#define OGAMC4 0x30014
+#define OGAMC3 0x30018
+#define OGAMC2 0x3001c
+#define OGAMC1 0x30020
+#define OGAMC0 0x30024
+
+
+/*
+ * Palette registers
+ */
+#define PALETTE_A 0x0a000
+#define PALETTE_B 0x0a800
+
+/* Framebuffer compression */
+#define FBC_CFB_BASE 0x03200 /* 4k page aligned */
+#define FBC_LL_BASE 0x03204 /* 4k page aligned */
+#define FBC_CONTROL 0x03208
+#define FBC_CTL_EN (1<<31)
+#define FBC_CTL_PERIODIC (1<<30)
+#define FBC_CTL_INTERVAL_SHIFT (16)
+#define FBC_CTL_UNCOMPRESSIBLE (1<<14)
+#define FBC_CTL_STRIDE_SHIFT (5)
+#define FBC_CTL_FENCENO (1<<0)
+#define FBC_COMMAND 0x0320c
+#define FBC_CMD_COMPRESS (1<<0)
+#define FBC_STATUS 0x03210
+#define FBC_STAT_COMPRESSING (1<<31)
+#define FBC_STAT_COMPRESSED (1<<30)
+#define FBC_STAT_MODIFIED (1<<29)
+#define FBC_STAT_CURRENT_LINE (1<<0)
+#define FBC_CONTROL2 0x03214
+#define FBC_CTL_FENCE_DBL (0<<4)
+#define FBC_CTL_IDLE_IMM (0<<2)
+#define FBC_CTL_IDLE_FULL (1<<2)
+#define FBC_CTL_IDLE_LINE (2<<2)
+#define FBC_CTL_IDLE_DEBUG (3<<2)
+#define FBC_CTL_CPU_FENCE (1<<1)
+#define FBC_CTL_PLANEA (0<<0)
+#define FBC_CTL_PLANEB (1<<0)
+#define FBC_FENCE_OFF 0x0321b
+#define FBC_MOD_NUM 0x03220
+#define FBC_TAG_DEBUG 0x03300
+
+#define FBC_LL_SIZE (1536)
+#define FBC_LL_PAD (32)
+
+/* Framebuffer compression version 2 */
+#define DPFC_CB_BASE 0x3200
+#define DPFC_CONTROL 0x3208
+#define DPFC_CTL_EN (1<<31)
+#define DPFC_CTL_PLANEA (0<<30)
+#define DPFC_CTL_PLANEB (1<<30)
+#define DPFC_CTL_FENCE_EN (1<<29)
+#define DPFC_CTL_LIMIT_1X (0<<6)
+#define DPFC_CTL_LIMIT_2X (1<<6)
+#define DPFC_CTL_LIMIT_4X (2<<6)
+#define DPFC_RECOMP_CTL 0x320c
+#define DPFC_RECOMP_STALL_EN (1<<27)
+#define DPFC_RECOMP_STALL_WM_SHIFT (16)
+#define DPFC_RECOMP_STALL_WM_MASK (0x07ff0000)
+#define DPFC_RECOMP_TIMER_COUNT_SHIFT (0)
+#define DPFC_RECOMP_TIMER_COUNT_MASK (0x0000003f)
+#define DPFC_STATUS 0x3210
+#define DPFC_INVAL_SEG_SHIFT (16)
+#define DPFC_INVAL_SEG_MASK (0x07ff0000)
+#define DPFC_COMP_SEG_SHIFT (0)
+#define DPFC_COMP_SEG_MASK (0x000003ff)
+#define DPFC_STATUS2 0x3214
+#define DPFC_FENCE_YOFF 0x3218
+
+#define PEG_BAND_GAP_DATA 0x14d68
+
+#define MCHBAR_RENDER_STANDBY 0x111B8
+#define RENDER_STANDBY_ENABLE (1 << 30)
+
+/* Ironlake */
+
+/* warmup time in us */
+#define WARMUP_PCH_REF_CLK_SSC_MOD 1
+#define WARMUP_PCH_FDI_RECEIVER_PLL 25
+#define WARMUP_PCH_DPLL 50
+#define WARMUP_CPU_DP_PLL 20
+#define WARMUP_CPU_FDI_TRANSMITTER_PLL 10
+#define WARMUP_DMI_LATENCY 20
+#define FDI_TRAIN_PATTERN_1_TIME 0.5
+#define FDI_TRAIN_PATTERN_2_TIME 1.5
+#define FDI_ONE_IDLE_PATTERN_TIME 31
+
+#define CPU_VGACNTRL 0x41000
+
+#define DIGITAL_PORT_HOTPLUG_CNTRL 0x44030
+#define DIGITAL_PORTA_HOTPLUG_ENABLE (1 << 4)
+#define DIGITAL_PORTA_SHORT_PULSE_2MS (0 << 2)
+#define DIGITAL_PORTA_SHORT_PULSE_4_5MS (1 << 2)
+#define DIGITAL_PORTA_SHORT_PULSE_6MS (2 << 2)
+#define DIGITAL_PORTA_SHORT_PULSE_100MS (3 << 2)
+#define DIGITAL_PORTA_NO_DETECT (0 << 0)
+#define DIGITAL_PORTA_LONG_PULSE_DETECT_MASK (1 << 1)
+#define DIGITAL_PORTA_SHORT_PULSE_DETECT_MASK (1 << 0)
+
+/* refresh rate hardware control */
+#define RR_HW_CTL 0x45300
+#define RR_HW_LOW_POWER_FRAMES_MASK 0xff
+#define RR_HW_HIGH_POWER_FRAMES_MASK 0xff00
+
+#define FDI_PLL_BIOS_0 0x46000
+#define FDI_PLL_BIOS_1 0x46004
+#define FDI_PLL_BIOS_2 0x46008
+#define DISPLAY_PORT_PLL_BIOS_0 0x4600c
+#define DISPLAY_PORT_PLL_BIOS_1 0x46010
+#define DISPLAY_PORT_PLL_BIOS_2 0x46014
+
+#define FDI_PLL_FREQ_CTL 0x46030
+#define FDI_PLL_FREQ_CHANGE_REQUEST (1<<24)
+#define FDI_PLL_FREQ_LOCK_LIMIT_MASK 0xfff00
+#define FDI_PLL_FREQ_DISABLE_COUNT_LIMIT_MASK 0xff
+
+#define PIPEA_DATA_M1 0x60030
+#define TU_SIZE(x) (((x)-1) << 25) /* default size 64 */
+#define TU_SIZE_MASK 0x7e000000
+#define PIPEA_DATA_M1_OFFSET 0
+#define PIPEA_DATA_N1 0x60034
+#define PIPEA_DATA_N1_OFFSET 0
+
+#define PIPEA_DATA_M2 0x60038
+#define PIPEA_DATA_M2_OFFSET 0
+#define PIPEA_DATA_N2 0x6003c
+#define PIPEA_DATA_N2_OFFSET 0
+
+#define PIPEA_LINK_M1 0x60040
+#define PIPEA_LINK_M1_OFFSET 0
+#define PIPEA_LINK_N1 0x60044
+#define PIPEA_LINK_N1_OFFSET 0
+
+#define PIPEA_LINK_M2 0x60048
+#define PIPEA_LINK_M2_OFFSET 0
+#define PIPEA_LINK_N2 0x6004c
+#define PIPEA_LINK_N2_OFFSET 0
+
+/* PIPEB timing regs are same start from 0x61000 */
+
+#define PIPEB_DATA_M1 0x61030
+#define PIPEB_DATA_M1_OFFSET 0
+#define PIPEB_DATA_N1 0x61034
+#define PIPEB_DATA_N1_OFFSET 0
+
+#define PIPEB_DATA_M2 0x61038
+#define PIPEB_DATA_M2_OFFSET 0
+#define PIPEB_DATA_N2 0x6103c
+#define PIPEB_DATA_N2_OFFSET 0
+
+#define PIPEB_LINK_M1 0x61040
+#define PIPEB_LINK_M1_OFFSET 0
+#define PIPEB_LINK_N1 0x61044
+#define PIPEB_LINK_N1_OFFSET 0
+
+#define PIPEB_LINK_M2 0x61048
+#define PIPEB_LINK_M2_OFFSET 0
+#define PIPEB_LINK_N2 0x6104c
+#define PIPEB_LINK_N2_OFFSET 0
+
+/* PIPECONF for pipe A/B addr is same */
+
+/* cusor A is only connected to pipe A,
+ cursor B is connected to pipe B. Otherwise no change. */
+
+/* Plane A/B, DSPACNTR/DSPBCNTR addr not changed */
+
+/* CPU panel fitter */
+#define PFA_CTL_1 0x68080
+#define PFB_CTL_1 0x68880
+#define PF_ENABLE (1<<31)
+
+#define PFA_WIN_POS 0x68070
+#define PFB_WIN_POS 0x68870
+#define PFA_WIN_SIZE 0x68074
+#define PFB_WIN_SIZE 0x68874
+
+/* legacy palette */
+#define LGC_PALETTE_A 0x4a000
+#define LGC_PALETTE_B 0x4a800
+
+/* interrupts */
+#define DE_MASTER_IRQ_CONTROL (1 << 31)
+#define DE_SPRITEB_FLIP_DONE (1 << 29)
+#define DE_SPRITEA_FLIP_DONE (1 << 28)
+#define DE_PLANEB_FLIP_DONE (1 << 27)
+#define DE_PLANEA_FLIP_DONE (1 << 26)
+#define DE_PCU_EVENT (1 << 25)
+#define DE_GTT_FAULT (1 << 24)
+#define DE_POISON (1 << 23)
+#define DE_PERFORM_COUNTER (1 << 22)
+#define DE_PCH_EVENT (1 << 21)
+#define DE_AUX_CHANNEL_A (1 << 20)
+#define DE_DP_A_HOTPLUG (1 << 19)
+#define DE_GSE (1 << 18)
+#define DE_PIPEB_VBLANK (1 << 15)
+#define DE_PIPEB_EVEN_FIELD (1 << 14)
+#define DE_PIPEB_ODD_FIELD (1 << 13)
+#define DE_PIPEB_LINE_COMPARE (1 << 12)
+#define DE_PIPEB_VSYNC (1 << 11)
+#define DE_PIPEB_FIFO_UNDERRUN (1 << 8)
+#define DE_PIPEA_VBLANK (1 << 7)
+#define DE_PIPEA_EVEN_FIELD (1 << 6)
+#define DE_PIPEA_ODD_FIELD (1 << 5)
+#define DE_PIPEA_LINE_COMPARE (1 << 4)
+#define DE_PIPEA_VSYNC (1 << 3)
+#define DE_PIPEA_FIFO_UNDERRUN (1 << 0)
+
+#define DEISR 0x44000
+#define DEIMR 0x44004
+#define DEIIR 0x44008
+#define DEIER 0x4400c
+
+/* GT interrupt */
+#define GT_SYNC_STATUS (1 << 2)
+#define GT_USER_INTERRUPT (1 << 0)
+
+#define GTISR 0x44010
+#define GTIMR 0x44014
+#define GTIIR 0x44018
+#define GTIER 0x4401c
+
+/* PCH */
+
+/* south display engine interrupt */
+#define SDE_CRT_HOTPLUG (1 << 11)
+#define SDE_PORTD_HOTPLUG (1 << 10)
+#define SDE_PORTC_HOTPLUG (1 << 9)
+#define SDE_PORTB_HOTPLUG (1 << 8)
+#define SDE_SDVOB_HOTPLUG (1 << 6)
+
+#define SDEISR 0xc4000
+#define SDEIMR 0xc4004
+#define SDEIIR 0xc4008
+#define SDEIER 0xc400c
+
+/* digital port hotplug */
+#define PCH_PORT_HOTPLUG 0xc4030
+#define PORTD_HOTPLUG_ENABLE (1 << 20)
+#define PORTD_PULSE_DURATION_2ms (0)
+#define PORTD_PULSE_DURATION_4_5ms (1 << 18)
+#define PORTD_PULSE_DURATION_6ms (2 << 18)
+#define PORTD_PULSE_DURATION_100ms (3 << 18)
+#define PORTD_HOTPLUG_NO_DETECT (0)
+#define PORTD_HOTPLUG_SHORT_DETECT (1 << 16)
+#define PORTD_HOTPLUG_LONG_DETECT (1 << 17)
+#define PORTC_HOTPLUG_ENABLE (1 << 12)
+#define PORTC_PULSE_DURATION_2ms (0)
+#define PORTC_PULSE_DURATION_4_5ms (1 << 10)
+#define PORTC_PULSE_DURATION_6ms (2 << 10)
+#define PORTC_PULSE_DURATION_100ms (3 << 10)
+#define PORTC_HOTPLUG_NO_DETECT (0)
+#define PORTC_HOTPLUG_SHORT_DETECT (1 << 8)
+#define PORTC_HOTPLUG_LONG_DETECT (1 << 9)
+#define PORTB_HOTPLUG_ENABLE (1 << 4)
+#define PORTB_PULSE_DURATION_2ms (0)
+#define PORTB_PULSE_DURATION_4_5ms (1 << 2)
+#define PORTB_PULSE_DURATION_6ms (2 << 2)
+#define PORTB_PULSE_DURATION_100ms (3 << 2)
+#define PORTB_HOTPLUG_NO_DETECT (0)
+#define PORTB_HOTPLUG_SHORT_DETECT (1 << 0)
+#define PORTB_HOTPLUG_LONG_DETECT (1 << 1)
+
+#define PCH_GPIOA 0xc5010
+#define PCH_GPIOB 0xc5014
+#define PCH_GPIOC 0xc5018
+#define PCH_GPIOD 0xc501c
+#define PCH_GPIOE 0xc5020
+#define PCH_GPIOF 0xc5024
+#define PCH_GMBUS0 0xc5100
+#define PCH_GMBUS1 0xc5104
+#define PCH_GMBUS2 0xc5108
+#define PCH_GMBUS3 0xc510c
+#define PCH_GMBUS4 0xc5110
+#define PCH_GMBUS5 0xc5120
+
+#define PCH_DPLL_A 0xc6014
+#define PCH_DPLL_B 0xc6018
+
+#define PCH_FPA0 0xc6040
+#define PCH_FPA1 0xc6044
+#define PCH_FPB0 0xc6048
+#define PCH_FPB1 0xc604c
+
+#define PCH_DPLL_TEST 0xc606c
+
+#define PCH_DREF_CONTROL 0xC6200
+#define DREF_CONTROL_MASK 0x7fc3
+#define DREF_CPU_SOURCE_OUTPUT_DISABLE (0<<13)
+#define DREF_CPU_SOURCE_OUTPUT_DOWNSPREAD (2<<13)
+#define DREF_CPU_SOURCE_OUTPUT_NONSPREAD (3<<13)
+#define DREF_SSC_SOURCE_DISABLE (0<<11)
+#define DREF_SSC_SOURCE_ENABLE (2<<11)
+#define DREF_NONSPREAD_SOURCE_DISABLE (0<<9)
+#define DREF_NONSPREAD_SOURCE_ENABLE (2<<9)
+#define DREF_SUPERSPREAD_SOURCE_DISABLE (0<<7)
+#define DREF_SUPERSPREAD_SOURCE_ENABLE (2<<7)
+#define DREF_SSC4_DOWNSPREAD (0<<6)
+#define DREF_SSC4_CENTERSPREAD (1<<6)
+#define DREF_SSC1_DISABLE (0<<1)
+#define DREF_SSC1_ENABLE (1<<1)
+#define DREF_SSC4_DISABLE (0)
+#define DREF_SSC4_ENABLE (1)
+
+#define PCH_RAWCLK_FREQ 0xc6204
+#define FDL_TP1_TIMER_SHIFT 12
+#define FDL_TP1_TIMER_MASK (3<<12)
+#define FDL_TP2_TIMER_SHIFT 10
+#define FDL_TP2_TIMER_MASK (3<<10)
+#define RAWCLK_FREQ_MASK 0x3ff
+
+#define PCH_DPLL_TMR_CFG 0xc6208
+
+#define PCH_SSC4_PARMS 0xc6210
+#define PCH_SSC4_AUX_PARMS 0xc6214
+
+/* transcoder */
+
+#define TRANS_HTOTAL_A 0xe0000
+#define TRANS_HTOTAL_SHIFT 16
+#define TRANS_HACTIVE_SHIFT 0
+#define TRANS_HBLANK_A 0xe0004
+#define TRANS_HBLANK_END_SHIFT 16
+#define TRANS_HBLANK_START_SHIFT 0
+#define TRANS_HSYNC_A 0xe0008
+#define TRANS_HSYNC_END_SHIFT 16
+#define TRANS_HSYNC_START_SHIFT 0
+#define TRANS_VTOTAL_A 0xe000c
+#define TRANS_VTOTAL_SHIFT 16
+#define TRANS_VACTIVE_SHIFT 0
+#define TRANS_VBLANK_A 0xe0010
+#define TRANS_VBLANK_END_SHIFT 16
+#define TRANS_VBLANK_START_SHIFT 0
+#define TRANS_VSYNC_A 0xe0014
+#define TRANS_VSYNC_END_SHIFT 16
+#define TRANS_VSYNC_START_SHIFT 0
+
+#define TRANSA_DATA_M1 0xe0030
+#define TRANSA_DATA_N1 0xe0034
+#define TRANSA_DATA_M2 0xe0038
+#define TRANSA_DATA_N2 0xe003c
+#define TRANSA_DP_LINK_M1 0xe0040
+#define TRANSA_DP_LINK_N1 0xe0044
+#define TRANSA_DP_LINK_M2 0xe0048
+#define TRANSA_DP_LINK_N2 0xe004c
+
+#define TRANS_HTOTAL_B 0xe1000
+#define TRANS_HBLANK_B 0xe1004
+#define TRANS_HSYNC_B 0xe1008
+#define TRANS_VTOTAL_B 0xe100c
+#define TRANS_VBLANK_B 0xe1010
+#define TRANS_VSYNC_B 0xe1014
+
+#define TRANSB_DATA_M1 0xe1030
+#define TRANSB_DATA_N1 0xe1034
+#define TRANSB_DATA_M2 0xe1038
+#define TRANSB_DATA_N2 0xe103c
+#define TRANSB_DP_LINK_M1 0xe1040
+#define TRANSB_DP_LINK_N1 0xe1044
+#define TRANSB_DP_LINK_M2 0xe1048
+#define TRANSB_DP_LINK_N2 0xe104c
+
+#define TRANSACONF 0xf0008
+#define TRANSBCONF 0xf1008
+#define TRANS_DISABLE (0<<31)
+#define TRANS_ENABLE (1<<31)
+#define TRANS_STATE_MASK (1<<30)
+#define TRANS_STATE_DISABLE (0<<30)
+#define TRANS_STATE_ENABLE (1<<30)
+#define TRANS_FSYNC_DELAY_HB1 (0<<27)
+#define TRANS_FSYNC_DELAY_HB2 (1<<27)
+#define TRANS_FSYNC_DELAY_HB3 (2<<27)
+#define TRANS_FSYNC_DELAY_HB4 (3<<27)
+#define TRANS_DP_AUDIO_ONLY (1<<26)
+#define TRANS_DP_VIDEO_AUDIO (0<<26)
+#define TRANS_PROGRESSIVE (0<<21)
+#define TRANS_8BPC (0<<5)
+#define TRANS_10BPC (1<<5)
+#define TRANS_6BPC (2<<5)
+#define TRANS_12BPC (3<<5)
+
+#define FDI_RXA_CHICKEN 0xc200c
+#define FDI_RXB_CHICKEN 0xc2010
+#define FDI_RX_PHASE_SYNC_POINTER_ENABLE (1)
+
+/* CPU: FDI_TX */
+#define FDI_TXA_CTL 0x60100
+#define FDI_TXB_CTL 0x61100
+#define FDI_TX_DISABLE (0<<31)
+#define FDI_TX_ENABLE (1<<31)
+#define FDI_LINK_TRAIN_PATTERN_1 (0<<28)
+#define FDI_LINK_TRAIN_PATTERN_2 (1<<28)
+#define FDI_LINK_TRAIN_PATTERN_IDLE (2<<28)
+#define FDI_LINK_TRAIN_NONE (3<<28)
+#define FDI_LINK_TRAIN_VOLTAGE_0_4V (0<<25)
+#define FDI_LINK_TRAIN_VOLTAGE_0_6V (1<<25)
+#define FDI_LINK_TRAIN_VOLTAGE_0_8V (2<<25)
+#define FDI_LINK_TRAIN_VOLTAGE_1_2V (3<<25)
+#define FDI_LINK_TRAIN_PRE_EMPHASIS_NONE (0<<22)
+#define FDI_LINK_TRAIN_PRE_EMPHASIS_1_5X (1<<22)
+#define FDI_LINK_TRAIN_PRE_EMPHASIS_2X (2<<22)
+#define FDI_LINK_TRAIN_PRE_EMPHASIS_3X (3<<22)
+#define FDI_DP_PORT_WIDTH_X1 (0<<19)
+#define FDI_DP_PORT_WIDTH_X2 (1<<19)
+#define FDI_DP_PORT_WIDTH_X3 (2<<19)
+#define FDI_DP_PORT_WIDTH_X4 (3<<19)
+#define FDI_TX_ENHANCE_FRAME_ENABLE (1<<18)
+/* Ironlake: hardwired to 1 */
+#define FDI_TX_PLL_ENABLE (1<<14)
+/* both Tx and Rx */
+#define FDI_SCRAMBLING_ENABLE (0<<7)
+#define FDI_SCRAMBLING_DISABLE (1<<7)
+
+/* FDI_RX, FDI_X is hard-wired to Transcoder_X */
+#define FDI_RXA_CTL 0xf000c
+#define FDI_RXB_CTL 0xf100c
+#define FDI_RX_ENABLE (1<<31)
+#define FDI_RX_DISABLE (0<<31)
+/* train, dp width same as FDI_TX */
+#define FDI_DP_PORT_WIDTH_X8 (7<<19)
+#define FDI_8BPC (0<<16)
+#define FDI_10BPC (1<<16)
+#define FDI_6BPC (2<<16)
+#define FDI_12BPC (3<<16)
+#define FDI_LINK_REVERSE_OVERWRITE (1<<15)
+#define FDI_DMI_LINK_REVERSE_MASK (1<<14)
+#define FDI_RX_PLL_ENABLE (1<<13)
+#define FDI_FS_ERR_CORRECT_ENABLE (1<<11)
+#define FDI_FE_ERR_CORRECT_ENABLE (1<<10)
+#define FDI_FS_ERR_REPORT_ENABLE (1<<9)
+#define FDI_FE_ERR_REPORT_ENABLE (1<<8)
+#define FDI_RX_ENHANCE_FRAME_ENABLE (1<<6)
+#define FDI_SEL_RAWCLK (0<<4)
+#define FDI_SEL_PCDCLK (1<<4)
+
+#define FDI_RXA_MISC 0xf0010
+#define FDI_RXB_MISC 0xf1010
+#define FDI_RXA_TUSIZE1 0xf0030
+#define FDI_RXA_TUSIZE2 0xf0038
+#define FDI_RXB_TUSIZE1 0xf1030
+#define FDI_RXB_TUSIZE2 0xf1038
+
+/* FDI_RX interrupt register format */
+#define FDI_RX_INTER_LANE_ALIGN (1<<10)
+#define FDI_RX_SYMBOL_LOCK (1<<9) /* train 2 */
+#define FDI_RX_BIT_LOCK (1<<8) /* train 1 */
+#define FDI_RX_TRAIN_PATTERN_2_FAIL (1<<7)
+#define FDI_RX_FS_CODE_ERR (1<<6)
+#define FDI_RX_FE_CODE_ERR (1<<5)
+#define FDI_RX_SYMBOL_ERR_RATE_ABOVE (1<<4)
+#define FDI_RX_HDCP_LINK_FAIL (1<<3)
+#define FDI_RX_PIXEL_FIFO_OVERFLOW (1<<2)
+#define FDI_RX_CROSS_CLOCK_OVERFLOW (1<<1)
+#define FDI_RX_SYMBOL_QUEUE_OVERFLOW (1<<0)
+
+#define FDI_RXA_IIR 0xf0014
+#define FDI_RXA_IMR 0xf0018
+#define FDI_RXB_IIR 0xf1014
+#define FDI_RXB_IMR 0xf1018
+
+#define FDI_PLL_CTL_1 0xfe000
+#define FDI_PLL_CTL_2 0xfe004
+
+/* CRT */
+#define PCH_ADPA 0xe1100
+#define ADPA_TRANS_SELECT_MASK (1<<30)
+#define ADPA_TRANS_A_SELECT 0
+#define ADPA_TRANS_B_SELECT (1<<30)
+/* HPD is here */
+#define ADPA_CRT_HOTPLUG_MASK 0x03ff0000 /* bit 25-16 */
+#define ADPA_CRT_HOTPLUG_MONITOR_NONE (0<<24)
+#define ADPA_CRT_HOTPLUG_MONITOR_MASK (3<<24)
+#define ADPA_CRT_HOTPLUG_MONITOR_COLOR (3<<24)
+#define ADPA_CRT_HOTPLUG_MONITOR_MONO (2<<24)
+#define ADPA_CRT_HOTPLUG_ENABLE (1<<23)
+#define ADPA_CRT_HOTPLUG_PERIOD_64 (0<<22)
+#define ADPA_CRT_HOTPLUG_PERIOD_128 (1<<22)
+#define ADPA_CRT_HOTPLUG_WARMUP_5MS (0<<21)
+#define ADPA_CRT_HOTPLUG_WARMUP_10MS (1<<21)
+#define ADPA_CRT_HOTPLUG_SAMPLE_2S (0<<20)
+#define ADPA_CRT_HOTPLUG_SAMPLE_4S (1<<20)
+#define ADPA_CRT_HOTPLUG_VOLTAGE_40 (0<<18)
+#define ADPA_CRT_HOTPLUG_VOLTAGE_50 (1<<18)
+#define ADPA_CRT_HOTPLUG_VOLTAGE_60 (2<<18)
+#define ADPA_CRT_HOTPLUG_VOLTAGE_70 (3<<18)
+#define ADPA_CRT_HOTPLUG_VOLREF_325MV (0<<17)
+#define ADPA_CRT_HOTPLUG_VOLREF_475MV (1<<17)
+#define ADPA_CRT_HOTPLUG_FORCE_TRIGGER (1<<16)
+/* polarity control not changed */
+
+/* or SDVOB */
+#define HDMIB 0xe1140
+#define PORT_ENABLE (1 << 31)
+#define TRANSCODER_A (0)
+#define TRANSCODER_B (1 << 30)
+#define COLOR_FORMAT_8bpc (0)
+#define COLOR_FORMAT_12bpc (3 << 26)
+#define SDVOB_HOTPLUG_ENABLE (1 << 23)
+#define SDVO_ENCODING (0)
+#define TMDS_ENCODING (2 << 10)
+#define NULL_PACKET_VSYNC_ENABLE (1 << 9)
+#define SDVOB_BORDER_ENABLE (1 << 7)
+#define AUDIO_ENABLE (1 << 6)
+#define VSYNC_ACTIVE_HIGH (1 << 4)
+#define HSYNC_ACTIVE_HIGH (1 << 3)
+#define PORT_DETECTED (1 << 2)
+
+#define HDMIC 0xe1150
+#define HDMID 0xe1160
+#define PCH_LVDS 0xe1180
+
+#define AUD_CONFIG 0x62000
+#define AUD_DEBUG 0x62010
+#define AUD_VID_DID 0x62020
+#define AUD_RID 0x62024
+#define AUD_SUBN_CNT 0x62028
+#define AUD_FUNC_GRP 0x62040
+#define AUD_SUBN_CNT2 0x62044
+#define AUD_GRP_CAP 0x62048
+#define AUD_PWRST 0x6204c
+#define AUD_SUPPWR 0x62050
+#define AUD_SID 0x62054
+#define AUD_OUT_CWCAP 0x62070
+#define AUD_OUT_PCMSIZE 0x62074
+#define AUD_OUT_STR 0x62078
+#define AUD_OUT_DIG_CNVT 0x6207c
+#define AUD_OUT_CH_STR 0x62080
+#define AUD_OUT_STR_DESC 0x62084
+#define AUD_PINW_CAP 0x620a0
+#define AUD_PIN_CAP 0x620a4
+#define AUD_PINW_CONNLNG 0x620a8
+#define AUD_PINW_CONNLST 0x620ac
+#define AUD_PINW_CNTR 0x620b0
+#define AUD_PINW_UNSOLRESP 0x620b8
+#define AUD_CNTL_ST 0x620b4
+#define AUD_PINW_CONFIG 0x620bc
+#define AUD_HDMIW_STATUS 0x620d4
+#define AUD_HDMIW_HDMIEDID 0x6210c
+#define AUD_HDMIW_INFOFR 0x62118
+#define AUD_CONV_CHCNT 0x62120
+#define AUD_CTS_ENABLE 0x62128
+
+#define VIDEO_DIP_CTL 0x61170
+
+#endif /* _I810_REG_H */
diff --git a/src/legacy/i810/i810_ring.h b/src/legacy/i810/i810_ring.h
new file mode 100644
index 0000000..e6e354f
--- /dev/null
+++ b/src/legacy/i810/i810_ring.h
@@ -0,0 +1,90 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+Copyright © 2002 David Dawes
+
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+#ifndef _INTEL_RING_H
+#define _INTEL_RING_H
+
+#define OUT_RING(n) do { \
+ if (I810_DEBUG & DEBUG_VERBOSE_RING) \
+ ErrorF("OUT_RING %lx: %x, (mask %x)\n", \
+ (unsigned long)(outring), (unsigned int)(n), ringmask); \
+ *(volatile unsigned int *)(virt + outring) = n; \
+ outring += 4; ringused += 4; \
+ outring &= ringmask; \
+} while (0)
+
+#define ADVANCE_LP_RING() do { \
+ if (ringused > needed) \
+ FatalError("%s: ADVANCE_LP_RING: exceeded allocation %d/%d\n ", \
+ __FUNCTION__, ringused, needed); \
+ else if (ringused < needed) \
+ FatalError("%s: ADVANCE_LP_RING: under-used allocation %d/%d\n ", \
+ __FUNCTION__, ringused, needed); \
+ pI810->LpRing->tail = outring; \
+ pI810->LpRing->space -= ringused; \
+ if (outring & 0x07) \
+ FatalError("%s: ADVANCE_LP_RING: " \
+ "outring (0x%x) isn't on a QWord boundary\n", \
+ __FUNCTION__, outring); \
+ OUTREG(LP_RING + RING_TAIL, outring); \
+} while (0)
+
+/*
+ * XXX Note: the head/tail masks are different for 810 and i830.
+ * If the i810 always sets the higher bits to 0, then this shouldn't be
+ * a problem. Check this!
+ */
+#define DO_RING_IDLE() do { \
+ int _head; \
+ int _tail; \
+ do { \
+ _head = INREG(LP_RING + RING_HEAD) & I830_HEAD_MASK; \
+ _tail = INREG(LP_RING + RING_TAIL) & I830_TAIL_MASK; \
+ DELAY(10); \
+ } while (_head != _tail); \
+} while( 0)
+
+#define BEGIN_LP_RING(n) \
+ unsigned int outring, ringmask, ringused = 0; \
+ volatile unsigned char *virt; \
+ int needed; \
+ if ((n) & 1) \
+ ErrorF("BEGIN_LP_RING called with odd argument: %d\n", n); \
+ if ((n) > 2 && (I810_DEBUG&DEBUG_ALWAYS_SYNC)) \
+ DO_RING_IDLE(); \
+ needed = (n) * 4; \
+ if (pI810->LpRing->space < needed) \
+ WaitRingFunc(pScrn, needed, 0); \
+ outring = pI810->LpRing->tail; \
+ ringmask = pI810->LpRing->tail_mask; \
+ virt = pI810->LpRing->virtual_start; \
+ if (I810_DEBUG & DEBUG_VERBOSE_RING) \
+ ErrorF( "BEGIN_LP_RING %d in %s\n", n, FUNCTION_NAME);
+
+#endif /* _INTEL_RING_H */
diff --git a/src/legacy/i810/i810_video.c b/src/legacy/i810/i810_video.c
new file mode 100644
index 0000000..68dc471
--- /dev/null
+++ b/src/legacy/i810/i810_video.c
@@ -0,0 +1,1423 @@
+/***************************************************************************
+
+Copyright 2000 Intel Corporation. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * i810_video.c: i810 Xv driver. Based on the mga Xv driver by Mark Vojkovich.
+ *
+ * Authors:
+ * Jonathan Bian <jonathan.bian@intel.com>
+ * Offscreen Images:
+ * Matt Sottek <matthew.j.sottek@intel.com>
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <string.h>
+
+#include "xf86.h"
+#include "xf86_OSproc.h"
+#include "compiler.h"
+#include "xf86PciInfo.h"
+#include "xf86Pci.h"
+#include "xf86fbman.h"
+#include "regionstr.h"
+
+#include "i810.h"
+#include "xf86xv.h"
+#include <X11/extensions/Xv.h>
+#include "xaa.h"
+#include "xaalocal.h"
+#include "dixstruct.h"
+#include "fourcc.h"
+
+#define OFF_DELAY 250 /* milliseconds */
+#define FREE_DELAY 15000
+
+#define OFF_TIMER 0x01
+#define FREE_TIMER 0x02
+#define CLIENT_VIDEO_ON 0x04
+
+#define TIMER_MASK (OFF_TIMER | FREE_TIMER)
+
+static void I810InitOffscreenImages(ScreenPtr);
+
+static XF86VideoAdaptorPtr I810SetupImageVideo(ScreenPtr);
+static void I810StopVideo(ScrnInfoPtr, pointer, Bool);
+static int I810SetPortAttribute(ScrnInfoPtr, Atom, INT32, pointer);
+static int I810GetPortAttribute(ScrnInfoPtr, Atom ,INT32 *, pointer);
+static void I810QueryBestSize(ScrnInfoPtr, Bool,
+ short, short, short, short, unsigned int *, unsigned int *, pointer);
+static int I810PutImage( ScrnInfoPtr,
+ short, short, short, short, short, short, short, short,
+ int, unsigned char*, short, short, Bool, RegionPtr, pointer,
+ DrawablePtr);
+static int I810QueryImageAttributes(ScrnInfoPtr,
+ int, unsigned short *, unsigned short *, int *, int *);
+
+static void I810BlockHandler(int, pointer, pointer, pointer);
+
+#define MAKE_ATOM(a) MakeAtom(a, sizeof(a) - 1, TRUE)
+
+static Atom xvBrightness, xvContrast, xvColorKey;
+
+#define IMAGE_MAX_WIDTH 1440
+#define IMAGE_FAST_WIDTH 720
+#define IMAGE_MAX_HEIGHT 1080
+#define Y_BUF_SIZE (IMAGE_MAX_WIDTH * IMAGE_MAX_HEIGHT)
+
+#define OVERLAY_UPDATE(p) OUTREG(0x30000, p | 0x80000000);
+
+/*
+ * OV0CMD - Overlay Command Register
+ */
+#define VERTICAL_CHROMINANCE_FILTER 0x70000000
+#define VC_SCALING_OFF 0x00000000
+#define VC_LINE_REPLICATION 0x10000000
+#define VC_UP_INTERPOLATION 0x20000000
+#define VC_PIXEL_DROPPING 0x50000000
+#define VC_DOWN_INTERPOLATION 0x60000000
+#define VERTICAL_LUMINANCE_FILTER 0x0E000000
+#define VL_SCALING_OFF 0x00000000
+#define VL_LINE_REPLICATION 0x02000000
+#define VL_UP_INTERPOLATION 0x04000000
+#define VL_PIXEL_DROPPING 0x0A000000
+#define VL_DOWN_INTERPOLATION 0x0C000000
+#define HORIZONTAL_CHROMINANCE_FILTER 0x01C00000
+#define HC_SCALING_OFF 0x00000000
+#define HC_LINE_REPLICATION 0x00400000
+#define HC_UP_INTERPOLATION 0x00800000
+#define HC_PIXEL_DROPPING 0x01400000
+#define HC_DOWN_INTERPOLATION 0x01800000
+#define HORIZONTAL_LUMINANCE_FILTER 0x00380000
+#define HL_SCALING_OFF 0x00000000
+#define HL_LINE_REPLICATION 0x00080000
+#define HL_UP_INTERPOLATION 0x00100000
+#define HL_PIXEL_DROPPING 0x00280000
+#define HL_DOWN_INTERPOLATION 0x00300000
+
+#define Y_ADJUST 0x00010000
+#define OV_BYTE_ORDER 0x0000C000
+#define UV_SWAP 0x00004000
+#define Y_SWAP 0x00008000
+#define Y_AND_UV_SWAP 0x0000C000
+#define SOURCE_FORMAT 0x00003C00
+#define RGB_555 0x00000800
+#define RGB_565 0x00000C00
+#define YUV_422 0x00002000
+#define YUV_411 0x00002400
+#define YUV_420 0x00003000
+#define YUV_410 0x00003800
+#define BUFFER_AND_FIELD 0x00000006
+#define BUFFER0_FIELD0 0x00000000
+#define BUFFER1_FIELD0 0x00000004
+#define OVERLAY_ENABLE 0x00000001
+
+#define UV_VERT_BUF1 0x02
+#define UV_VERT_BUF0 0x04
+
+/*
+ * DOV0STA - Display/Overlay 0 Status Register
+ */
+#define DOV0STA 0x30008
+
+#define MINUV_SCALE 0x1
+
+#define RGB16ToColorKey(c) \
+ (((c & 0xF800) << 8) | ((c & 0x07E0) << 5) | ((c & 0x001F) << 3))
+
+#define RGB15ToColorKey(c) \
+ (((c & 0x7c00) << 9) | ((c & 0x03E0) << 6) | ((c & 0x001F) << 3))
+
+void I810InitVideo(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ XF86VideoAdaptorPtr *adaptors, *newAdaptors = NULL;
+ XF86VideoAdaptorPtr newAdaptor = NULL;
+ int num_adaptors;
+
+ if (pScrn->bitsPerPixel != 8)
+ {
+ newAdaptor = I810SetupImageVideo(pScreen);
+ I810InitOffscreenImages(pScreen);
+ }
+
+ num_adaptors = xf86XVListGenericAdaptors(pScrn, &adaptors);
+
+ if(newAdaptor) {
+ if(!num_adaptors) {
+ num_adaptors = 1;
+ adaptors = &newAdaptor;
+ } else {
+ newAdaptors = /* need to free this someplace */
+ malloc((num_adaptors + 1) * sizeof(XF86VideoAdaptorPtr*));
+ if(newAdaptors) {
+ memcpy(newAdaptors, adaptors, num_adaptors *
+ sizeof(XF86VideoAdaptorPtr));
+ newAdaptors[num_adaptors] = newAdaptor;
+ adaptors = newAdaptors;
+ num_adaptors++;
+ }
+ }
+ }
+
+ if(num_adaptors)
+ xf86XVScreenInit(pScreen, adaptors, num_adaptors);
+
+ if(newAdaptors)
+ free(newAdaptors);
+}
+
+/* *INDENT-OFF* */
+/* client libraries expect an encoding */
+static XF86VideoEncodingRec DummyEncoding[1] =
+{
+ {
+ 0,
+ "XV_IMAGE",
+ IMAGE_MAX_WIDTH, IMAGE_MAX_HEIGHT,
+ {1, 1}
+ }
+};
+
+#define NUM_FORMATS 3
+
+static XF86VideoFormatRec Formats[NUM_FORMATS] =
+{
+ {15, TrueColor}, {16, TrueColor}, {24, TrueColor}
+};
+
+#define NUM_ATTRIBUTES 3
+
+static XF86AttributeRec Attributes[NUM_ATTRIBUTES] =
+{
+ {XvSettable | XvGettable, 0, (1 << 24) - 1, "XV_COLORKEY"},
+ {XvSettable | XvGettable, -128, 127, "XV_BRIGHTNESS"},
+ {XvSettable | XvGettable, 0, 255, "XV_CONTRAST"}
+};
+
+#define NUM_IMAGES 6
+
+#define I810_RV15 0x35315652
+#define I810_RV16 0x36315652
+
+static XF86ImageRec Images[NUM_IMAGES] =
+{
+ {
+ I810_RV15,
+ XvRGB,
+ LSBFirst,
+ {'R','V','1','5',
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
+ 16,
+ XvPacked,
+ 1,
+ 15, 0x7C00, 0x03E0, 0x001F,
+ 0, 0, 0,
+ 0, 0, 0,
+ 0, 0, 0,
+ {'R','V','B',0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ XvTopToBottom
+ },
+ {
+ I810_RV16,
+ XvRGB,
+ LSBFirst,
+ {'R','V','1','6',
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
+ 16,
+ XvPacked,
+ 1,
+ 16, 0xF800, 0x07E0, 0x001F,
+ 0, 0, 0,
+ 0, 0, 0,
+ 0, 0, 0,
+ {'R','V','B',0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+ XvTopToBottom
+ },
+ XVIMAGE_YUY2,
+ XVIMAGE_YV12,
+ XVIMAGE_I420,
+ XVIMAGE_UYVY
+};
+/* *INDENT-ON* */
+
+typedef struct {
+ uint32_t OBUF_0Y;
+ uint32_t OBUF_1Y;
+ uint32_t OBUF_0U;
+ uint32_t OBUF_0V;
+ uint32_t OBUF_1U;
+ uint32_t OBUF_1V;
+ uint32_t OV0STRIDE;
+ uint32_t YRGB_VPH;
+ uint32_t UV_VPH;
+ uint32_t HORZ_PH;
+ uint32_t INIT_PH;
+ uint32_t DWINPOS;
+ uint32_t DWINSZ;
+ uint32_t SWID;
+ uint32_t SWIDQW;
+ uint32_t SHEIGHT;
+ uint32_t YRGBSCALE;
+ uint32_t UVSCALE;
+ uint32_t OV0CLRC0;
+ uint32_t OV0CLRC1;
+ uint32_t DCLRKV;
+ uint32_t DCLRKM;
+ uint32_t SCLRKVH;
+ uint32_t SCLRKVL;
+ uint32_t SCLRKM;
+ uint32_t OV0CONF;
+ uint32_t OV0CMD;
+} I810OverlayRegRec, *I810OverlayRegPtr;
+
+typedef struct {
+ uint32_t YBuf0offset;
+ uint32_t UBuf0offset;
+ uint32_t VBuf0offset;
+
+ uint32_t YBuf1offset;
+ uint32_t UBuf1offset;
+ uint32_t VBuf1offset;
+
+ unsigned char currentBuf;
+
+ int brightness;
+ int contrast;
+
+ RegionRec clip;
+ uint32_t colorKey;
+
+ uint32_t videoStatus;
+ Time offTime;
+ Time freeTime;
+ FBLinearPtr linear;
+} I810PortPrivRec, *I810PortPrivPtr;
+
+#define GET_PORT_PRIVATE(pScrn) \
+ (I810PortPrivPtr)((I810PTR(pScrn))->adaptor->pPortPrivates[0].ptr)
+
+static void I810ResetVideo(ScrnInfoPtr pScrn)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810PortPrivPtr pPriv = pI810->adaptor->pPortPrivates[0].ptr;
+ I810OverlayRegPtr overlay = (I810OverlayRegPtr) (pI810->FbBase + pI810->OverlayStart);
+
+ /*
+ * Default to maximum image size in YV12
+ */
+
+ overlay->YRGB_VPH = 0;
+ overlay->UV_VPH = 0;
+ overlay->HORZ_PH = 0;
+ overlay->INIT_PH = 0;
+ overlay->DWINPOS = 0;
+ overlay->DWINSZ = (IMAGE_MAX_HEIGHT << 16) | IMAGE_MAX_WIDTH;
+ overlay->SWID = IMAGE_MAX_WIDTH | (IMAGE_MAX_WIDTH << 15);
+ overlay->SWIDQW = (IMAGE_MAX_WIDTH >> 3) | (IMAGE_MAX_WIDTH << 12);
+ overlay->SHEIGHT = IMAGE_MAX_HEIGHT | (IMAGE_MAX_HEIGHT << 15);
+ overlay->YRGBSCALE = 0x80004000; /* scale factor 1 */
+ overlay->UVSCALE = 0x80004000; /* scale factor 1 */
+ overlay->OV0CLRC0 = 0x4000; /* brightness: 0 contrast: 1.0 */
+ overlay->OV0CLRC1 = 0x80; /* saturation: bypass */
+
+ /*
+ * Enable destination color keying
+ */
+ switch(pScrn->depth) {
+ case 16: overlay->DCLRKV = RGB16ToColorKey(pPriv->colorKey);
+ overlay->DCLRKM = 0x80070307;
+ break;
+ case 15: overlay->DCLRKV = RGB15ToColorKey(pPriv->colorKey);
+ overlay->DCLRKM = 0x80070707;
+ break;
+ default: overlay->DCLRKV = pPriv->colorKey;
+ overlay->DCLRKM = 0x80000000;
+ break;
+ }
+
+ overlay->SCLRKVH = 0;
+ overlay->SCLRKVL = 0;
+ overlay->SCLRKM = 0; /* source color key disable */
+ overlay->OV0CONF = 0; /* two 720 pixel line buffers */
+
+ overlay->OV0CMD = VC_UP_INTERPOLATION | HC_UP_INTERPOLATION | Y_ADJUST |
+ YUV_420;
+
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+}
+
+
+static XF86VideoAdaptorPtr
+I810SetupImageVideo(ScreenPtr pScreen)
+{
+ ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ I810Ptr pI810 = I810PTR(pScrn);
+ XF86VideoAdaptorPtr adapt;
+ I810PortPrivPtr pPriv;
+
+ if(!(adapt = calloc(1, sizeof(XF86VideoAdaptorRec) +
+ sizeof(I810PortPrivRec) +
+ sizeof(DevUnion))))
+ return NULL;
+
+ adapt->type = XvWindowMask | XvInputMask | XvImageMask;
+ adapt->flags = VIDEO_OVERLAID_IMAGES | VIDEO_CLIP_TO_VIEWPORT;
+ adapt->name = "I810 Video Overlay";
+ adapt->nEncodings = 1;
+ adapt->pEncodings = DummyEncoding;
+ adapt->nFormats = NUM_FORMATS;
+ adapt->pFormats = Formats;
+ adapt->nPorts = 1;
+ adapt->pPortPrivates = (DevUnion*)(&adapt[1]);
+
+ pPriv = (I810PortPrivPtr)(&adapt->pPortPrivates[1]);
+
+ adapt->pPortPrivates[0].ptr = (pointer)(pPriv);
+ adapt->pAttributes = Attributes;
+ adapt->nImages = NUM_IMAGES;
+ adapt->nAttributes = NUM_ATTRIBUTES;
+ adapt->pImages = Images;
+ adapt->PutVideo = NULL;
+ adapt->PutStill = NULL;
+ adapt->GetVideo = NULL;
+ adapt->GetStill = NULL;
+ adapt->StopVideo = I810StopVideo;
+ adapt->SetPortAttribute = I810SetPortAttribute;
+ adapt->GetPortAttribute = I810GetPortAttribute;
+ adapt->QueryBestSize = I810QueryBestSize;
+ adapt->PutImage = I810PutImage;
+ adapt->QueryImageAttributes = I810QueryImageAttributes;
+
+ pPriv->colorKey = pI810->colorKey & ((1 << pScrn->depth) - 1);
+ pPriv->videoStatus = 0;
+ pPriv->brightness = 0;
+ pPriv->contrast = 64;
+ pPriv->linear = NULL;
+ pPriv->currentBuf = 0;
+
+ /* gotta uninit this someplace */
+ REGION_NULL(pScreen, &pPriv->clip);
+
+ pI810->adaptor = adapt;
+
+ pI810->BlockHandler = pScreen->BlockHandler;
+ pScreen->BlockHandler = I810BlockHandler;
+
+ xvBrightness = MAKE_ATOM("XV_BRIGHTNESS");
+ xvContrast = MAKE_ATOM("XV_CONTRAST");
+ xvColorKey = MAKE_ATOM("XV_COLORKEY");
+
+ I810ResetVideo(pScrn);
+
+ return adapt;
+}
+
+
+/* I810ClipVideo -
+
+ Takes the dst box in standard X BoxRec form (top and left
+ edges inclusive, bottom and right exclusive). The new dst
+ box is returned. The source boundaries are given (x1, y1
+ inclusive, x2, y2 exclusive) and returned are the new source
+ boundaries in 16.16 fixed point.
+*/
+
+static void
+I810ClipVideo(
+ BoxPtr dst,
+ INT32 *x1,
+ INT32 *x2,
+ INT32 *y1,
+ INT32 *y2,
+ BoxPtr extents, /* extents of the clip region */
+ INT32 width,
+ INT32 height
+){
+ INT32 vscale, hscale, delta;
+ int diff;
+
+ hscale = ((*x2 - *x1) << 16) / (dst->x2 - dst->x1);
+ vscale = ((*y2 - *y1) << 16) / (dst->y2 - dst->y1);
+
+ *x1 <<= 16; *x2 <<= 16;
+ *y1 <<= 16; *y2 <<= 16;
+
+ diff = extents->x1 - dst->x1;
+ if(diff > 0) {
+ dst->x1 = extents->x1;
+ *x1 += diff * hscale;
+ }
+ diff = dst->x2 - extents->x2;
+ if(diff > 0) {
+ dst->x2 = extents->x2;
+ *x2 -= diff * hscale;
+ }
+ diff = extents->y1 - dst->y1;
+ if(diff > 0) {
+ dst->y1 = extents->y1;
+ *y1 += diff * vscale;
+ }
+ diff = dst->y2 - extents->y2;
+ if(diff > 0) {
+ dst->y2 = extents->y2;
+ *y2 -= diff * vscale;
+ }
+
+ if(*x1 < 0) {
+ diff = (- *x1 + hscale - 1)/ hscale;
+ dst->x1 += diff;
+ *x1 += diff * hscale;
+ }
+ delta = *x2 - (width << 16);
+ if(delta > 0) {
+ diff = (delta + hscale - 1)/ hscale;
+ dst->x2 -= diff;
+ *x2 -= diff * hscale;
+ }
+ if(*y1 < 0) {
+ diff = (- *y1 + vscale - 1)/ vscale;
+ dst->y1 += diff;
+ *y1 += diff * vscale;
+ }
+ delta = *y2 - (height << 16);
+ if(delta > 0) {
+ diff = (delta + vscale - 1)/ vscale;
+ dst->y2 -= diff;
+ *y2 -= diff * vscale;
+ }
+}
+
+static void
+I810StopVideo(ScrnInfoPtr pScrn, pointer data, Bool shutdown)
+{
+ I810PortPrivPtr pPriv = (I810PortPrivPtr)data;
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ I810OverlayRegPtr overlay = (I810OverlayRegPtr) (pI810->FbBase + pI810->OverlayStart);
+
+ REGION_EMPTY(pScrn->pScreen, &pPriv->clip);
+
+ if(shutdown) {
+ if(pPriv->videoStatus & CLIENT_VIDEO_ON) {
+ overlay->OV0CMD &= 0xFFFFFFFE;
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+ }
+ if(pPriv->linear) {
+ xf86FreeOffscreenLinear(pPriv->linear);
+ pPriv->linear = NULL;
+ }
+ pPriv->videoStatus = 0;
+ } else {
+ if(pPriv->videoStatus & CLIENT_VIDEO_ON) {
+ pPriv->videoStatus |= OFF_TIMER;
+ pPriv->offTime = currentTime.milliseconds + OFF_DELAY;
+ }
+ }
+
+}
+
+static int
+I810SetPortAttribute(
+ ScrnInfoPtr pScrn,
+ Atom attribute,
+ INT32 value,
+ pointer data
+){
+ I810PortPrivPtr pPriv = (I810PortPrivPtr)data;
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810OverlayRegPtr overlay = (I810OverlayRegPtr) (pI810->FbBase + pI810->OverlayStart);
+
+ if(attribute == xvBrightness) {
+ if((value < -128) || (value > 127))
+ return BadValue;
+ pPriv->brightness = value;
+ overlay->OV0CLRC0 = (pPriv->contrast << 8) | (pPriv->brightness & 0xff);
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+ } else
+ if(attribute == xvContrast) {
+ if((value < 0) || (value > 255))
+ return BadValue;
+ pPriv->contrast = value;
+ overlay->OV0CLRC0 = (pPriv->contrast << 8) | (pPriv->brightness & 0xff);
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+ } else
+ if(attribute == xvColorKey) {
+ pPriv->colorKey = value;
+ switch(pScrn->depth) {
+ case 16: overlay->DCLRKV = RGB16ToColorKey(pPriv->colorKey);
+ break;
+ case 15: overlay->DCLRKV = RGB15ToColorKey(pPriv->colorKey);
+ break;
+ default: overlay->DCLRKV = pPriv->colorKey;
+ break;
+ }
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+ REGION_EMPTY(pScrn->pScreen, &pPriv->clip);
+ } else return BadMatch;
+
+ return Success;
+}
+
+static int
+I810GetPortAttribute(
+ ScrnInfoPtr pScrn,
+ Atom attribute,
+ INT32 *value,
+ pointer data
+){
+ I810PortPrivPtr pPriv = (I810PortPrivPtr)data;
+
+ if(attribute == xvBrightness) {
+ *value = pPriv->brightness;
+ } else
+ if(attribute == xvContrast) {
+ *value = pPriv->contrast;
+ } else
+ if(attribute == xvColorKey) {
+ *value = pPriv->colorKey;
+ } else return BadMatch;
+
+ return Success;
+}
+
+static void
+I810QueryBestSize(
+ ScrnInfoPtr pScrn,
+ Bool motion,
+ short vid_w, short vid_h,
+ short drw_w, short drw_h,
+ unsigned int *p_w, unsigned int *p_h,
+ pointer data
+){
+ if(vid_w > (drw_w << 1)) drw_w = vid_w >> 1;
+ if(vid_h > (drw_h << 1)) drw_h = vid_h >> 1;
+
+ *p_w = drw_w;
+ *p_h = drw_h;
+}
+
+
+static void
+I810CopyPackedData(
+ ScrnInfoPtr pScrn,
+ unsigned char *buf,
+ int srcPitch,
+ int dstPitch,
+ int top,
+ int left,
+ int h,
+ int w
+ )
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810PortPrivPtr pPriv = pI810->adaptor->pPortPrivates[0].ptr;
+ unsigned char *src, *dst;
+
+ src = buf + (top*srcPitch) + (left<<1);
+
+ if (pPriv->currentBuf == 0)
+ dst = pI810->FbBase + pPriv->YBuf0offset;
+ else
+ dst = pI810->FbBase + pPriv->YBuf1offset;
+
+ w <<= 1;
+ while(h--) {
+ memcpy(dst, src, w);
+ src += srcPitch;
+ dst += dstPitch;
+ }
+}
+
+static void
+I810CopyPlanarData(
+ ScrnInfoPtr pScrn,
+ unsigned char *buf,
+ int srcPitch,
+ int dstPitch, /* of chroma */
+ int srcH,
+ int top,
+ int left,
+ int h,
+ int w,
+ int id
+ )
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810PortPrivPtr pPriv = pI810->adaptor->pPortPrivates[0].ptr;
+ int i;
+ unsigned char *src1, *src2, *src3, *dst1, *dst2, *dst3;
+
+ /* Copy Y data */
+ src1 = buf + (top*srcPitch) + left;
+ if (pPriv->currentBuf == 0)
+ dst1 = pI810->FbBase + pPriv->YBuf0offset;
+ else
+ dst1 = pI810->FbBase + pPriv->YBuf1offset;
+
+ for (i = 0; i < h; i++) {
+ memcpy(dst1, src1, w);
+ src1 += srcPitch;
+ dst1 += dstPitch << 1;
+ }
+
+ /* Copy V data for YV12, or U data for I420 */
+ src2 = buf + (srcH*srcPitch) + ((top*srcPitch)>>2) + (left>>1);
+ if (pPriv->currentBuf == 0) {
+ if (id == FOURCC_I420)
+ dst2 = pI810->FbBase + pPriv->UBuf0offset;
+ else
+ dst2 = pI810->FbBase + pPriv->VBuf0offset;
+ } else {
+ if (id == FOURCC_I420)
+ dst2 = pI810->FbBase + pPriv->UBuf1offset;
+ else
+ dst2 = pI810->FbBase + pPriv->VBuf1offset;
+ }
+
+ for (i = 0; i < h/2; i++) {
+ memcpy(dst2, src2, w/2);
+ src2 += srcPitch>>1;
+ dst2 += dstPitch;
+ }
+
+ /* Copy U data for YV12, or V data for I420 */
+ src3 = buf + (srcH*srcPitch) + ((srcH*srcPitch)>>2) + ((top*srcPitch)>>2) + (left>>1);
+ if (pPriv->currentBuf == 0) {
+ if (id == FOURCC_I420)
+ dst3 = pI810->FbBase + pPriv->VBuf0offset;
+ else
+ dst3 = pI810->FbBase + pPriv->UBuf0offset;
+ } else {
+ if (id == FOURCC_I420)
+ dst3 = pI810->FbBase + pPriv->VBuf1offset;
+ else
+ dst3 = pI810->FbBase + pPriv->UBuf1offset;
+ }
+
+ for (i = 0; i < h/2; i++) {
+ memcpy(dst3, src3, w/2);
+ src3 += srcPitch>>1;
+ dst3 += dstPitch;
+ }
+}
+
+static void
+I810DisplayVideo(
+ ScrnInfoPtr pScrn,
+ int id,
+ short width, short height,
+ int dstPitch, /* of chroma for 4:2:0 */
+ int x1, int y1, int x2, int y2,
+ BoxPtr dstBox,
+ short src_w, short src_h,
+ short drw_w, short drw_h
+){
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810PortPrivPtr pPriv = pI810->adaptor->pPortPrivates[0].ptr;
+ I810OverlayRegPtr overlay = (I810OverlayRegPtr) (pI810->FbBase + pI810->OverlayStart);
+ int xscaleInt, xscaleFract, yscaleInt, yscaleFract;
+ int xscaleIntUV = 0, xscaleFractUV = 0, yscaleIntUV = 0, yscaleFractUV = 0;
+ unsigned int swidth;
+
+ switch(id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ swidth = ALIGN(width, 8);
+ overlay->SWID = (swidth << 15) | swidth;
+ overlay->SWIDQW = (swidth << 12) | (swidth >> 3);
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ swidth = ALIGN(width, 4) << 1;
+ overlay->SWID = swidth;
+ overlay->SWIDQW = swidth >> 3;
+ break;
+ }
+
+ /* wide video formats (>720 pixels) are special */
+ if( swidth > IMAGE_FAST_WIDTH ) {
+ overlay->OV0CONF = 1; /* one 1440 pixel line buffer */
+ } else {
+ overlay->OV0CONF = 0; /* two 720 pixel line buffers */
+ }
+
+ overlay->SHEIGHT = height | (height << 15);
+ overlay->DWINPOS = (dstBox->y1 << 16) | (dstBox->x1);
+ overlay->DWINSZ = ((dstBox->y2 - dstBox->y1) << 16) |
+ (dstBox->x2 - dstBox->x1);
+
+ /* buffer locations */
+ overlay->OBUF_0Y = pPriv->YBuf0offset;
+ overlay->OBUF_1Y = pPriv->YBuf1offset;
+ overlay->OBUF_0U = pPriv->UBuf0offset;
+ overlay->OBUF_0V = pPriv->VBuf0offset;
+ overlay->OBUF_1U = pPriv->UBuf1offset;
+ overlay->OBUF_1V = pPriv->VBuf1offset;
+
+ /*
+ * Calculate horizontal and vertical scaling factors, default to 1:1
+ */
+ overlay->YRGBSCALE = 0x80004000;
+ overlay->UVSCALE = 0x80004000;
+
+ /*
+ * Initially, YCbCr and Overlay Enable and
+ * vertical chrominance up interpolation and horozontal chrominance
+ * up interpolation
+ */
+ overlay->OV0CMD = VC_UP_INTERPOLATION | HC_UP_INTERPOLATION | Y_ADJUST |
+ OVERLAY_ENABLE;
+
+ if ((drw_w != src_w) || (drw_h != src_h))
+ {
+ xscaleInt = (src_w / drw_w) & 0x3;
+ xscaleFract = (src_w << 12) / drw_w;
+ yscaleInt = (src_h / drw_h) & 0x3;
+ yscaleFract = (src_h << 12) / drw_h;
+
+ overlay->YRGBSCALE = (xscaleInt << 15) |
+ ((xscaleFract & 0xFFF) << 3) |
+ (yscaleInt) |
+ ((yscaleFract & 0xFFF) << 20);
+
+ if (drw_w > src_w)
+ {
+ /* horizontal up-scaling */
+ overlay->OV0CMD &= ~HORIZONTAL_CHROMINANCE_FILTER;
+ overlay->OV0CMD &= ~HORIZONTAL_LUMINANCE_FILTER;
+ overlay->OV0CMD |= (HC_UP_INTERPOLATION | HL_UP_INTERPOLATION);
+ }
+
+ if (drw_h > src_h)
+ {
+ /* vertical up-scaling */
+ overlay->OV0CMD &= ~VERTICAL_CHROMINANCE_FILTER;
+ overlay->OV0CMD &= ~VERTICAL_LUMINANCE_FILTER;
+ overlay->OV0CMD |= (VC_UP_INTERPOLATION | VL_UP_INTERPOLATION);
+ }
+
+ if (drw_w < src_w)
+ {
+ /* horizontal down-scaling */
+ overlay->OV0CMD &= ~HORIZONTAL_CHROMINANCE_FILTER;
+ overlay->OV0CMD &= ~HORIZONTAL_LUMINANCE_FILTER;
+ overlay->OV0CMD |= (HC_DOWN_INTERPOLATION | HL_DOWN_INTERPOLATION);
+ }
+
+ if (drw_h < src_h)
+ {
+ /* vertical down-scaling */
+ overlay->OV0CMD &= ~VERTICAL_CHROMINANCE_FILTER;
+ overlay->OV0CMD &= ~VERTICAL_LUMINANCE_FILTER;
+ overlay->OV0CMD |= (VC_DOWN_INTERPOLATION | VL_DOWN_INTERPOLATION);
+ }
+
+ /* now calculate the UV scaling factor */
+
+ if (xscaleFract)
+ {
+ xscaleFractUV = xscaleFract >> MINUV_SCALE;
+ overlay->OV0CMD &= ~HC_DOWN_INTERPOLATION;
+ overlay->OV0CMD |= HC_UP_INTERPOLATION;
+ }
+
+ if (xscaleInt)
+ {
+ xscaleIntUV = xscaleInt >> MINUV_SCALE;
+ if (xscaleIntUV)
+ {
+ overlay->OV0CMD &= ~HC_UP_INTERPOLATION;
+ }
+ }
+
+ if (yscaleFract)
+ {
+ yscaleFractUV = yscaleFract >> MINUV_SCALE;
+ overlay->OV0CMD &= ~VC_DOWN_INTERPOLATION;
+ overlay->OV0CMD |= VC_UP_INTERPOLATION;
+ }
+
+ if (yscaleInt)
+ {
+ yscaleIntUV = yscaleInt >> MINUV_SCALE;
+ if (yscaleIntUV)
+ {
+ overlay->OV0CMD &= ~VC_UP_INTERPOLATION;
+ overlay->OV0CMD |= VC_DOWN_INTERPOLATION;
+ }
+ }
+
+ overlay->UVSCALE = yscaleIntUV | ((xscaleFractUV & 0xFFF) << 3) |
+ ((yscaleFractUV & 0xFFF) << 20);
+ }
+
+ switch(id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ /* set UV vertical phase to -0.25 */
+ overlay->UV_VPH = 0x30003000;
+ overlay->INIT_PH = UV_VERT_BUF0 | UV_VERT_BUF1;
+ overlay->OV0STRIDE = (dstPitch << 1) | (dstPitch << 16);
+ overlay->OV0CMD &= ~SOURCE_FORMAT;
+ overlay->OV0CMD |= YUV_420;
+ break;
+ case I810_RV15:
+ case I810_RV16:
+ overlay->UV_VPH = 0;
+ overlay->INIT_PH = 0;
+ overlay->OV0STRIDE = dstPitch;
+ overlay->OV0CMD &= ~SOURCE_FORMAT;
+ overlay->OV0CMD |= (id==I810_RV15 ? RGB_555 : RGB_565);
+ overlay->OV0CMD &= ~OV_BYTE_ORDER;
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ overlay->UV_VPH = 0;
+ overlay->INIT_PH = 0;
+ overlay->OV0STRIDE = dstPitch;
+ overlay->OV0CMD &= ~SOURCE_FORMAT;
+ overlay->OV0CMD |= YUV_422;
+ overlay->OV0CMD &= ~OV_BYTE_ORDER;
+ if (id == FOURCC_UYVY)
+ overlay->OV0CMD |= Y_SWAP;
+ break;
+ }
+
+ overlay->OV0CMD &= ~BUFFER_AND_FIELD;
+ if (pPriv->currentBuf == 0)
+ overlay->OV0CMD |= BUFFER0_FIELD0;
+ else
+ overlay->OV0CMD |= BUFFER1_FIELD0;
+
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+
+}
+
+static FBLinearPtr
+I810AllocateMemory(
+ ScrnInfoPtr pScrn,
+ FBLinearPtr linear,
+ int size
+){
+ ScreenPtr pScreen;
+ FBLinearPtr new_linear;
+
+ if(linear) {
+ if(linear->size >= size)
+ return linear;
+
+ if(xf86ResizeOffscreenLinear(linear, size))
+ return linear;
+
+ xf86FreeOffscreenLinear(linear);
+ }
+
+ pScreen = screenInfo.screens[pScrn->scrnIndex];
+
+ new_linear = xf86AllocateOffscreenLinear(pScreen, size, 4,
+ NULL, NULL, NULL);
+
+ if(!new_linear) {
+ int max_size;
+
+ xf86QueryLargestOffscreenLinear(pScreen, &max_size, 4,
+ PRIORITY_EXTREME);
+
+ if(max_size < size) return NULL;
+
+ xf86PurgeUnlockedOffscreenAreas(pScreen);
+ new_linear = xf86AllocateOffscreenLinear(pScreen, size, 4,
+ NULL, NULL, NULL);
+ }
+
+ return new_linear;
+}
+
+static int
+I810PutImage(
+ ScrnInfoPtr pScrn,
+ short src_x, short src_y,
+ short drw_x, short drw_y,
+ short src_w, short src_h,
+ short drw_w, short drw_h,
+ int id, unsigned char* buf,
+ short width, short height,
+ Bool sync,
+ RegionPtr clipBoxes, pointer data,
+ DrawablePtr pDraw
+){
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810PortPrivPtr pPriv = (I810PortPrivPtr)data;
+ INT32 x1, x2, y1, y2;
+ int srcPitch, dstPitch;
+ int top, left, npixels, nlines, size, loops;
+ BoxRec dstBox;
+
+
+ /* Clip */
+ x1 = src_x;
+ x2 = src_x + src_w;
+ y1 = src_y;
+ y2 = src_y + src_h;
+
+ dstBox.x1 = drw_x;
+ dstBox.x2 = drw_x + drw_w;
+ dstBox.y1 = drw_y;
+ dstBox.y2 = drw_y + drw_h;
+
+ I810ClipVideo(&dstBox, &x1, &x2, &y1, &y2,
+ REGION_EXTENTS(pScrn->pScreen, clipBoxes), width, height);
+
+ if((x1 >= x2) || (y1 >= y2))
+ return Success;
+ /*
+ * Fix for 4 pixel granularity of AdjustFrame
+ * unless boarder is clipped by frame
+ */
+ dstBox.x1 -= (pScrn->frameX0 &
+ ((dstBox.x1 == pScrn->frameX0) ? ~0x0UL : ~0x3UL));
+ dstBox.x2 -= (pScrn->frameX0 & ~0x3);
+ dstBox.y1 -= pScrn->frameY0;
+ dstBox.y2 -= pScrn->frameY0;
+
+ switch(id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ srcPitch = ALIGN(width, 4);
+ dstPitch = ALIGN((width >> 1), 8); /* of chroma */
+ size = dstPitch * height * 3;
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ srcPitch = (width << 1);
+ dstPitch = ALIGN(srcPitch, 8);
+ size = dstPitch * height;
+ break;
+ }
+
+ if(!(pPriv->linear = I810AllocateMemory(pScrn, pPriv->linear,
+ (pScrn->bitsPerPixel == 16) ? size : (size >> 1))))
+ return BadAlloc;
+
+ /* fixup pointers */
+ pPriv->YBuf0offset = pPriv->linear->offset * pI810->cpp;
+ pPriv->UBuf0offset = pPriv->YBuf0offset + (dstPitch * 2 * height);
+ pPriv->VBuf0offset = pPriv->UBuf0offset + (dstPitch * height >> 1);
+
+ pPriv->YBuf1offset = (pPriv->linear->offset * pI810->cpp) + size;
+ pPriv->UBuf1offset = pPriv->YBuf1offset + (dstPitch * 2 * height);
+ pPriv->VBuf1offset = pPriv->UBuf1offset + (dstPitch * height >> 1);
+
+
+ /* Make sure this buffer isn't in use */
+ loops = 0;
+ while (loops < 1000000) {
+ if(((INREG(DOV0STA)&0x00100000)>>20) == pPriv->currentBuf) {
+ break;
+ }
+ loops++;
+ }
+ if(loops >= 1000000) {
+ pPriv->currentBuf = !pPriv->currentBuf;
+ }
+
+
+ /* buffer swap */
+ if (pPriv->currentBuf == 0)
+ pPriv->currentBuf = 1;
+ else
+ pPriv->currentBuf = 0;
+
+ /* copy data */
+ top = y1 >> 16;
+ left = (x1 >> 16) & ~1;
+ npixels = ALIGN(((x2 + 0xffff) >> 16), 2) - left;
+
+ switch(id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ top &= ~1;
+ nlines = ALIGN(((y2 + 0xffff) >> 16), 2) - top;
+ I810CopyPlanarData(pScrn, buf, srcPitch, dstPitch, height, top, left,
+ nlines, npixels, id);
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ nlines = ((y2 + 0xffff) >> 16) - top;
+ I810CopyPackedData(pScrn, buf, srcPitch, dstPitch, top, left, nlines,
+ npixels);
+ break;
+ }
+
+ /* update cliplist */
+ if(!REGION_EQUAL(pScrn->pScreen, &pPriv->clip, clipBoxes)) {
+ REGION_COPY(pScrn->pScreen, &pPriv->clip, clipBoxes);
+ /* draw these */
+ xf86XVFillKeyHelperDrawable(pDraw, pPriv->colorKey, clipBoxes);
+ }
+
+ I810DisplayVideo(pScrn, id, width, height, dstPitch,
+ x1, y1, x2, y2, &dstBox, src_w, src_h, drw_w, drw_h);
+
+ pPriv->videoStatus = CLIENT_VIDEO_ON;
+
+ return Success;
+}
+
+
+static int
+I810QueryImageAttributes(
+ ScrnInfoPtr pScrn,
+ int id,
+ unsigned short *w, unsigned short *h,
+ int *pitches, int *offsets
+){
+ int size, tmp;
+
+ if(*w > IMAGE_MAX_WIDTH) *w = IMAGE_MAX_WIDTH;
+ if(*h > IMAGE_MAX_HEIGHT) *h = IMAGE_MAX_HEIGHT;
+
+ *w = (*w + 1) & ~1;
+ if(offsets) offsets[0] = 0;
+
+ switch(id) {
+ /* IA44 is for XvMC only */
+ case FOURCC_IA44:
+ case FOURCC_AI44:
+ if(pitches) pitches[0] = *w;
+ size = *w * *h;
+ break;
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ *h = (*h + 1) & ~1;
+ size = (*w + 3) & ~3;
+ if(pitches) pitches[0] = size;
+ size *= *h;
+ if(offsets) offsets[1] = size;
+ tmp = ((*w >> 1) + 3) & ~3;
+ if(pitches) pitches[1] = pitches[2] = tmp;
+ tmp *= (*h >> 1);
+ size += tmp;
+ if(offsets) offsets[2] = size;
+ size += tmp;
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ size = *w << 1;
+ if(pitches) pitches[0] = size;
+ size *= *h;
+ break;
+ }
+
+ return size;
+}
+
+static void
+I810BlockHandler (
+ int i,
+ pointer blockData,
+ pointer pTimeout,
+ pointer pReadmask
+){
+ ScreenPtr pScreen = screenInfo.screens[i];
+ ScrnInfoPtr pScrn = xf86Screens[i];
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810PortPrivPtr pPriv = GET_PORT_PRIVATE(pScrn);
+ I810OverlayRegPtr overlay = (I810OverlayRegPtr) (pI810->FbBase + pI810->OverlayStart);
+
+ pScreen->BlockHandler = pI810->BlockHandler;
+
+ (*pScreen->BlockHandler) (i, blockData, pTimeout, pReadmask);
+
+ pScreen->BlockHandler = I810BlockHandler;
+
+ if(pPriv->videoStatus & TIMER_MASK) {
+ UpdateCurrentTime();
+ if(pPriv->videoStatus & OFF_TIMER) {
+ if(pPriv->offTime < currentTime.milliseconds) {
+ /* Turn off the overlay */
+ overlay->OV0CMD &= 0xFFFFFFFE;
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+
+ pPriv->videoStatus = FREE_TIMER;
+ pPriv->freeTime = currentTime.milliseconds + FREE_DELAY;
+ }
+ } else { /* FREE_TIMER */
+ if(pPriv->freeTime < currentTime.milliseconds) {
+ if(pPriv->linear) {
+ xf86FreeOffscreenLinear(pPriv->linear);
+ pPriv->linear = NULL;
+ }
+ pPriv->videoStatus = 0;
+ }
+ }
+ }
+}
+
+
+/***************************************************************************
+ * Offscreen Images
+ ***************************************************************************/
+
+typedef struct {
+ FBLinearPtr linear;
+ Bool isOn;
+} OffscreenPrivRec, * OffscreenPrivPtr;
+
+static int
+I810AllocateSurface(
+ ScrnInfoPtr pScrn,
+ int id,
+ unsigned short w,
+ unsigned short h,
+ XF86SurfacePtr surface
+){
+ FBLinearPtr linear;
+ int pitch, size, bpp;
+ OffscreenPrivPtr pPriv;
+ I810Ptr pI810 = I810PTR(pScrn);
+
+ if((w > 1024) || (h > 1024))
+ return BadAlloc;
+
+ w = ALIGN(w, 2);
+ pitch = ALIGN((w << 1), 16);
+ bpp = pScrn->bitsPerPixel >> 3;
+ size = ((pitch * h) + bpp - 1) / bpp;
+
+ if(!(linear = I810AllocateMemory(pScrn, NULL, size)))
+ return BadAlloc;
+
+ surface->width = w;
+ surface->height = h;
+
+ if(!(surface->pitches = malloc(sizeof(int)))) {
+ xf86FreeOffscreenLinear(linear);
+ return BadAlloc;
+ }
+ if(!(surface->offsets = malloc(sizeof(int)))) {
+ free(surface->pitches);
+ xf86FreeOffscreenLinear(linear);
+ return BadAlloc;
+ }
+ if(!(pPriv = malloc(sizeof(OffscreenPrivRec)))) {
+ free(surface->pitches);
+ free(surface->offsets);
+ xf86FreeOffscreenLinear(linear);
+ return BadAlloc;
+ }
+
+ pPriv->linear = linear;
+ pPriv->isOn = FALSE;
+
+ surface->pScrn = pScrn;
+ surface->id = id;
+ surface->pitches[0] = pitch;
+ surface->offsets[0] = linear->offset * bpp;
+ surface->devPrivate.ptr = (pointer)pPriv;
+
+ memset(pI810->FbBase + surface->offsets[0],0,size);
+
+ return Success;
+}
+
+static int
+I810StopSurface(
+ XF86SurfacePtr surface
+){
+ OffscreenPrivPtr pPriv = (OffscreenPrivPtr)surface->devPrivate.ptr;
+
+ if(pPriv->isOn) {
+ I810Ptr pI810 = I810PTR(surface->pScrn);
+
+ I810OverlayRegPtr overlay = (I810OverlayRegPtr) (pI810->FbBase + pI810->OverlayStart);
+
+ overlay->OV0CMD &= 0xFFFFFFFE;
+ OVERLAY_UPDATE(pI810->OverlayPhysical);
+
+ pPriv->isOn = FALSE;
+ }
+
+ return Success;
+}
+
+
+static int
+I810FreeSurface(
+ XF86SurfacePtr surface
+){
+ OffscreenPrivPtr pPriv = (OffscreenPrivPtr)surface->devPrivate.ptr;
+
+ if(pPriv->isOn) {
+ I810StopSurface(surface);
+ }
+ xf86FreeOffscreenLinear(pPriv->linear);
+ free(surface->pitches);
+ free(surface->offsets);
+ free(surface->devPrivate.ptr);
+
+ return Success;
+}
+
+static int
+I810GetSurfaceAttribute(
+ ScrnInfoPtr pScrn,
+ Atom attribute,
+ INT32 *value
+){
+ return I810GetPortAttribute(pScrn, attribute, value, NULL);
+}
+
+static int
+I810SetSurfaceAttribute(
+ ScrnInfoPtr pScrn,
+ Atom attribute,
+ INT32 value
+){
+ return I810SetPortAttribute(pScrn, attribute, value, NULL);
+}
+
+
+static int
+I810DisplaySurface(
+ XF86SurfacePtr surface,
+ short src_x, short src_y,
+ short drw_x, short drw_y,
+ short src_w, short src_h,
+ short drw_w, short drw_h,
+ RegionPtr clipBoxes
+){
+ OffscreenPrivPtr pPriv = (OffscreenPrivPtr)surface->devPrivate.ptr;
+ ScrnInfoPtr pScrn = surface->pScrn;
+ I810Ptr pI810 = I810PTR(pScrn);
+ I810PortPrivPtr pI810Priv = GET_PORT_PRIVATE(pScrn);
+
+ INT32 x1, y1, x2, y2;
+ INT32 loops = 0;
+ BoxRec dstBox;
+
+ x1 = src_x;
+ x2 = src_x + src_w;
+ y1 = src_y;
+ y2 = src_y + src_h;
+
+ dstBox.x1 = drw_x;
+ dstBox.x2 = drw_x + drw_w;
+ dstBox.y1 = drw_y;
+ dstBox.y2 = drw_y + drw_h;
+
+ I810ClipVideo(&dstBox, &x1, &x2, &y1, &y2,
+ REGION_EXTENTS(screenInfo.screens[0], clipBoxes),
+ surface->width, surface->height);
+
+ /*
+ * Fix for 4 pixel granularity of AdjustFrame
+ * unless boarder is clipped by frame
+ */
+ dstBox.x1 -= (pScrn->frameX0 &
+ ((dstBox.x1 == pScrn->frameX0) ? ~0x0UL : ~0x3UL));
+ dstBox.x2 -= (pScrn->frameX0 & ~0x3);
+ dstBox.y1 -= pScrn->frameY0;
+ dstBox.y2 -= pScrn->frameY0;
+
+ /* fixup pointers */
+ pI810Priv->YBuf0offset = surface->offsets[0];
+ pI810Priv->YBuf1offset = pI810Priv->YBuf0offset;
+
+ /* wait for the last rendered buffer to be flipped in */
+ while (((INREG(DOV0STA)&0x00100000)>>20) != pI810Priv->currentBuf) {
+ if(loops == 200000) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO, "Overlay Lockup\n");
+ break;
+ }
+ loops++;
+ }
+
+ /* buffer swap */
+ if (pI810Priv->currentBuf == 0)
+ pI810Priv->currentBuf = 1;
+ else
+ pI810Priv->currentBuf = 0;
+
+ I810ResetVideo(pScrn);
+
+ I810DisplayVideo(pScrn, surface->id, surface->width, surface->height,
+ surface->pitches[0], x1, y1, x2, y2, &dstBox,
+ src_w, src_h, drw_w, drw_h);
+
+ xf86XVFillKeyHelper(pScrn->pScreen, pI810Priv->colorKey, clipBoxes);
+
+ pPriv->isOn = TRUE;
+ /* we've prempted the XvImage stream so set its free timer */
+ if(pI810Priv->videoStatus & CLIENT_VIDEO_ON) {
+ REGION_EMPTY(pScrn->pScreen, & pI810Priv->clip);
+ UpdateCurrentTime();
+ pI810Priv->videoStatus = FREE_TIMER;
+ pI810Priv->freeTime = currentTime.milliseconds + FREE_DELAY;
+ pScrn->pScreen->BlockHandler = I810BlockHandler;
+ }
+
+ return Success;
+}
+
+
+static void
+I810InitOffscreenImages(ScreenPtr pScreen)
+{
+ XF86OffscreenImagePtr offscreenImages;
+
+ /* need to free this someplace */
+ if(!(offscreenImages = malloc(sizeof(XF86OffscreenImageRec)))) {
+ return;
+ }
+
+ offscreenImages[0].image = &Images[0];
+ offscreenImages[0].flags = VIDEO_OVERLAID_IMAGES |
+ VIDEO_CLIP_TO_VIEWPORT;
+ offscreenImages[0].alloc_surface = I810AllocateSurface;
+ offscreenImages[0].free_surface = I810FreeSurface;
+ offscreenImages[0].display = I810DisplaySurface;
+ offscreenImages[0].stop = I810StopSurface;
+ offscreenImages[0].setAttribute = I810SetSurfaceAttribute;
+ offscreenImages[0].getAttribute = I810GetSurfaceAttribute;
+ offscreenImages[0].max_width = 1024;
+ offscreenImages[0].max_height = 1024;
+ offscreenImages[0].num_attributes = 1;
+ offscreenImages[0].attributes = Attributes;
+
+ xf86XVRegisterOffscreenImages(pScreen, offscreenImages, 1);
+}
+
diff --git a/src/legacy/i810/i810_wmark.c b/src/legacy/i810/i810_wmark.c
new file mode 100644
index 0000000..71b2a82
--- /dev/null
+++ b/src/legacy/i810/i810_wmark.c
@@ -0,0 +1,313 @@
+/**************************************************************************
+
+Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
+All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
+ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*
+ * Authors:
+ * Keith Whitwell <keith@tungstengraphics.com>
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "xf86.h"
+#include "i810.h"
+
+struct wm_info {
+ double freq;
+ unsigned int wm;
+};
+
+static struct wm_info i810_wm_8_100[] = {
+ {0, 0x22003000},
+ {25.2, 0x22003000},
+ {28.0, 0x22003000},
+ {31.5, 0x22003000},
+ {36.0, 0x22007000},
+ {40.0, 0x22007000},
+ {45.0, 0x22007000},
+ {49.5, 0x22008000},
+ {50.0, 0x22008000},
+ {56.3, 0x22008000},
+ {65.0, 0x22008000},
+ {75.0, 0x22008000},
+ {78.8, 0x22008000},
+ {80.0, 0x22008000},
+ {94.0, 0x22008000},
+ {96.0, 0x22107000},
+ {99.0, 0x22107000},
+ {108.0, 0x22107000},
+ {121.0, 0x22107000},
+ {128.9, 0x22107000},
+ {132.0, 0x22109000},
+ {135.0, 0x22109000},
+ {157.5, 0x2210b000},
+ {162.0, 0x2210b000},
+ {175.5, 0x2210b000},
+ {189.0, 0x2220e000},
+ {202.5, 0x2220e000}
+};
+
+static struct wm_info i810_wm_16_100[] = {
+ {0, 0x22004000},
+ {25.2, 0x22006000},
+ {28.0, 0x22006000},
+ {31.5, 0x22007000},
+ {36.0, 0x22007000},
+ {40.0, 0x22007000},
+ {45.0, 0x22007000},
+ {49.5, 0x22009000},
+ {50.0, 0x22009000},
+ {56.3, 0x22108000},
+ {65.0, 0x2210e000},
+ {75.0, 0x2210e000},
+ {78.8, 0x2210e000},
+ {80.0, 0x22210000},
+ {94.5, 0x22210000},
+ {96.0, 0x22210000},
+ {99.0, 0x22210000},
+ {108.0, 0x22210000},
+ {121.0, 0x22210000},
+ {128.9, 0x22210000},
+ {132.0, 0x22314000},
+ {135.0, 0x22314000},
+ {157.5, 0x22415000},
+ {162.0, 0x22416000},
+ {175.5, 0x22416000},
+ {189.0, 0x22416000},
+ {195.0, 0x22416000},
+ {202.5, 0x22416000}
+};
+
+static struct wm_info i810_wm_24_100[] = {
+ {0, 0x22006000},
+ {25.2, 0x22009000},
+ {28.0, 0x22009000},
+ {31.5, 0x2200a000},
+ {36.0, 0x2210c000},
+ {40.0, 0x2210c000},
+ {45.0, 0x2210c000},
+ {49.5, 0x22111000},
+ {50.0, 0x22111000},
+ {56.3, 0x22111000},
+ {65.0, 0x22214000},
+ {75.0, 0x22214000},
+ {78.8, 0x22215000},
+ {80.0, 0x22216000},
+ {94.5, 0x22218000},
+ {96.0, 0x22418000},
+ {99.0, 0x22418000},
+ {108.0, 0x22418000},
+ {121.0, 0x22418000},
+ {128.9, 0x22419000},
+ {132.0, 0x22519000},
+ {135.0, 0x4441d000},
+ {157.5, 0x44419000},
+ {162.0, 0x44419000},
+ {175.5, 0x44419000},
+ {189.0, 0x44419000},
+ {195.0, 0x44419000},
+ {202.5, 0x44419000}
+};
+
+#if 0
+/* not used */
+static struct wm_info i810_wm_32_100[] = {
+ {0, 0x2210b000},
+ {60, 0x22415000}, /* 0x314000 works too */
+ {80, 0x22419000} /* 0x518000 works too */
+};
+#endif
+
+static struct wm_info i810_wm_8_133[] = {
+ {0, 0x22003000},
+ {25.2, 0x22003000},
+ {28.0, 0x22003000},
+ {31.5, 0x22003000},
+ {36.0, 0x22007000},
+ {40.0, 0x22007000},
+ {45.0, 0x22007000},
+ {49.5, 0x22008000},
+ {50.0, 0x22008000},
+ {56.3, 0x22008000},
+ {65.0, 0x22008000},
+ {75.0, 0x22008000},
+ {78.8, 0x22008000},
+ {80.0, 0x22008000},
+ {94.0, 0x22008000},
+ {96.0, 0x22107000},
+ {99.0, 0x22107000},
+ {108.0, 0x22107000},
+ {121.0, 0x22107000},
+ {128.9, 0x22107000},
+ {132.0, 0x22109000},
+ {135.0, 0x22109000},
+ {157.5, 0x2210b000},
+ {162.0, 0x2210b000},
+ {175.5, 0x2210b000},
+ {189.0, 0x2220e000},
+ {202.5, 0x2220e000}
+};
+
+static struct wm_info i810_wm_16_133[] = {
+ {0, 0x22004000},
+ {25.2, 0x22006000},
+ {28.0, 0x22006000},
+ {31.5, 0x22007000},
+ {36.0, 0x22007000},
+ {40.0, 0x22007000},
+ {45.0, 0x22007000},
+ {49.5, 0x22009000},
+ {50.0, 0x22009000},
+ {56.3, 0x22108000},
+ {65.0, 0x2210e000},
+ {75.0, 0x2210e000},
+ {78.8, 0x2210e000},
+ {80.0, 0x22210000},
+ {94.5, 0x22210000},
+ {96.0, 0x22210000},
+ {99.0, 0x22210000},
+ {108.0, 0x22210000},
+ {121.0, 0x22210000},
+ {128.9, 0x22210000},
+ {132.0, 0x22314000},
+ {135.0, 0x22314000},
+ {157.5, 0x22415000},
+ {162.0, 0x22416000},
+ {175.5, 0x22416000},
+ {189.0, 0x22416000},
+ {195.0, 0x22416000},
+ {202.5, 0x22416000}
+};
+
+static struct wm_info i810_wm_24_133[] = {
+ {0, 0x22006000},
+ {25.2, 0x22009000},
+ {28.0, 0x22009000},
+ {31.5, 0x2200a000},
+ {36.0, 0x2210c000},
+ {40.0, 0x2210c000},
+ {45.0, 0x2210c000},
+ {49.5, 0x22111000},
+ {50.0, 0x22111000},
+ {56.3, 0x22111000},
+ {65.0, 0x22214000},
+ {75.0, 0x22214000},
+ {78.8, 0x22215000},
+ {80.0, 0x22216000},
+ {94.5, 0x22218000},
+ {96.0, 0x22418000},
+ {99.0, 0x22418000},
+ {108.0, 0x22418000},
+ {121.0, 0x22418000},
+ {128.9, 0x22419000},
+ {132.0, 0x22519000},
+ {135.0, 0x4441d000},
+ {157.5, 0x44419000},
+ {162.0, 0x44419000},
+ {175.5, 0x44419000},
+ {189.0, 0x44419000},
+ {195.0, 0x44419000},
+ {202.5, 0x44419000}
+};
+
+#define Elements(x) (sizeof(x)/sizeof(*x))
+
+/*
+ * I810CalcFIFO --
+ *
+ * Calculate burst length and FIFO watermark.
+ */
+
+unsigned int
+I810CalcWatermark(ScrnInfoPtr pScrn, double freq, Bool dcache)
+{
+ I810Ptr pI810 = I810PTR(pScrn);
+ struct wm_info *tab;
+ int nr;
+ int i;
+
+ if (pI810->LmFreqSel == 100) {
+ switch (pScrn->bitsPerPixel) {
+ case 8:
+ tab = i810_wm_8_100;
+ nr = Elements(i810_wm_8_100);
+ break;
+ case 16:
+ tab = i810_wm_16_100;
+ nr = Elements(i810_wm_16_100);
+ break;
+ case 24:
+ tab = i810_wm_24_100;
+ nr = Elements(i810_wm_24_100);
+ break;
+ default:
+ return 0;
+ }
+ } else {
+ switch (pScrn->bitsPerPixel) {
+ case 8:
+ tab = i810_wm_8_133;
+ nr = Elements(i810_wm_8_133);
+ break;
+ case 16:
+ tab = i810_wm_16_133;
+ nr = Elements(i810_wm_16_133);
+ break;
+ case 24:
+ tab = i810_wm_24_133;
+ nr = Elements(i810_wm_24_133);
+ break;
+ default:
+ return 0;
+ }
+ }
+
+ for (i = 0; i < nr && tab[i].freq < freq; i++) ;
+
+ if (i == nr)
+ i--;
+
+ xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 3,
+ "chose watermark 0x%x: (tab.freq %.1f)\n",
+ tab[i].wm, tab[i].freq);
+
+ /* None of these values (sourced from intel) have watermarks for
+ * the dcache memory. Fake it for now by using the same watermark
+ * for both...
+ *
+ * Update: this is probably because dcache isn't real useful as
+ * framebuffer memory, so intel's drivers don't need watermarks
+ * for that memory because they never use it to feed the ramdacs.
+ * We do use it in the fallback mode, so keep the watermarks for
+ * now.
+ */
+ if (dcache)
+ return (tab[i].wm & ~0xffffff) | ((tab[i].wm >> 12) & 0xfff);
+ else
+ return tab[i].wm;
+}
diff --git a/src/legacy/i810/xvmc/I810XvMC.c b/src/legacy/i810/xvmc/I810XvMC.c
new file mode 100644
index 0000000..0754ff4
--- /dev/null
+++ b/src/legacy/i810/xvmc/I810XvMC.c
@@ -0,0 +1,4509 @@
+/***************************************************************************
+
+Copyright 2001 Intel Corporation. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/*************************************************************************
+** File libI810XvMC.c
+**
+** Authors:
+** Matt Sottek <matthew.j.sottek@intel.com>
+** Bob Paauwe <bob.j.paauwe@intel.com>
+**
+**
+***************************************************************************/
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <errno.h>
+#include <signal.h>
+#include <fcntl.h>
+#include <dirent.h>
+#include <string.h>
+
+#include <sys/ioctl.h>
+#include <X11/Xlibint.h>
+#include <fourcc.h>
+#include <X11/extensions/Xv.h>
+#include <X11/extensions/Xvlib.h>
+#include <X11/extensions/XvMC.h>
+#include <X11/extensions/XvMClib.h>
+#include "I810XvMC.h"
+
+static int error_base;
+static int event_base;
+
+/***************************************************************************
+// Function: i810_get_free_buffer
+// Description: Allocates a free dma page using kernel ioctls, then
+// programs the data into the already allocated dma buffer list.
+// Arguments: pI810XvMC private data structure from the current context.
+// Notes: We faked the drmMapBufs for the i810's security so now we have
+// to insert an allocated page into the correct spot in the faked
+// list to keep up appearences.
+// Concept for this function was taken from Mesa sources.
+// Returns: drmBufPtr containing the information about the allocated page.
+***************************************************************************/
+drmBufPtr i810_get_free_buffer(i810XvMCContext *pI810XvMC) {
+ drmI810DMA dma;
+ drmBufPtr buf;
+
+ dma.granted = 0;
+ dma.request_size = 4096;
+ while(!dma.granted) {
+ if(GET_BUFFER(pI810XvMC, dma) || !dma.granted)
+ FLUSH(pI810XvMC);
+ } /* No DMA granted */
+
+ buf = &(pI810XvMC->dmabufs->list[dma.request_idx]);
+ buf->idx = dma.request_idx;
+ buf->used = 0;
+ buf->total = dma.request_size;
+ buf->address = (drmAddress)dma.virtual;
+ return buf;
+}
+
+/***************************************************************************
+// Function: free_privContext
+// Description: Free's the private context structure if the reference
+// count is 0.
+***************************************************************************/
+void i810_free_privContext(i810XvMCContext *pI810XvMC) {
+
+ I810_LOCK(pI810XvMC,DRM_LOCK_QUIESCENT);
+
+
+ pI810XvMC->ref--;
+ if(!pI810XvMC->ref) {
+ drmUnmapBufs(pI810XvMC->dmabufs);
+ drmUnmap(pI810XvMC->overlay.address,pI810XvMC->overlay.size);
+ drmUnmap(pI810XvMC->surfaces.address,pI810XvMC->surfaces.size);
+ drmClose(pI810XvMC->fd);
+
+ free(pI810XvMC->dmabufs->list);
+ free(pI810XvMC);
+ }
+
+ I810_UNLOCK(pI810XvMC);
+}
+
+
+/***************************************************************************
+// Function: XvMCCreateContext
+// Description: Create a XvMC context for the given surface parameters.
+// Arguments:
+// display - Connection to the X server.
+// port - XvPortID to use as avertised by the X connection.
+// surface_type_id - Unique identifier for the Surface type.
+// width - Width of the surfaces.
+// height - Height of the surfaces.
+// flags - one or more of the following
+// XVMC_DIRECT - A direct rendered context is requested.
+//
+// Notes: surface_type_id and width/height parameters must match those
+// returned by XvMCListSurfaceTypes.
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCCreateContext(Display *display, XvPortID port,
+ int surface_type_id, int width, int height, int flags,
+ XvMCContext *context) {
+ i810XvMCContext *pI810XvMC;
+ int priv_count;
+ uint *priv_data;
+ uint magic;
+ Status ret;
+ int major, minor;
+
+ /* Verify Obvious things first */
+ if(context == NULL) {
+ return XvMCBadContext;
+ }
+
+ if(!(flags & XVMC_DIRECT)) {
+ /* Indirect */
+ printf("Indirect Rendering not supported!\nUsing Direct.");
+ }
+
+ /* Limit use to root for now */
+ if(geteuid()) {
+ printf("Use of XvMC on i810 is currently limited to root\n");
+ return BadAccess;
+ }
+
+ /* FIXME: Check $DISPLAY for legal values here */
+
+ context->surface_type_id = surface_type_id;
+ context->width = (unsigned short)width;
+ context->height = (unsigned short)height;
+ context->flags = flags;
+ context->port = port;
+ /*
+ Width, Height, and flags are checked against surface_type_id
+ and port for validity inside the X server, no need to check
+ here.
+ */
+
+ /* Allocate private Context data */
+ context->privData = (void *)malloc(sizeof(i810XvMCContext));
+ if(!context->privData) {
+ printf("Unable to allocate resources for XvMC context.\n");
+ return BadAlloc;
+ }
+ pI810XvMC = (i810XvMCContext *)context->privData;
+
+
+ /* Verify the XvMC extension exists */
+ if(! XvMCQueryExtension(display, &event_base,
+ &error_base)) {
+ printf("XvMC Extension is not available!\n");
+ return BadAlloc;
+ }
+ /* Verify XvMC version */
+ ret = XvMCQueryVersion(display, &major, &minor);
+ if(ret) {
+ printf("XvMCQuery Version Failed, unable to determine protocol version\n");
+ }
+ /* FIXME: Check Major and Minor here */
+
+ /* Check for drm */
+ if(! drmAvailable()) {
+ printf("Direct Rendering is not avilable on this system!\n");
+ return BadAlloc;
+ }
+
+ /*
+ Build the Attribute Atoms, and Initialize the ones that exist
+ in Xv.
+ */
+ pI810XvMC->xv_colorkey = XInternAtom(display,"XV_COLORKEY",0);
+ if(!pI810XvMC->xv_colorkey) {
+ return XvBadPort;
+ }
+ ret = XvGetPortAttribute(display,port,pI810XvMC->xv_colorkey,
+ &pI810XvMC->colorkey);
+ if(ret) {
+ return ret;
+ }
+ pI810XvMC->xv_brightness = XInternAtom(display,"XV_BRIGHTNESS",0);
+ pI810XvMC->xv_saturation = XInternAtom(display,"XV_SATURATION",0);
+ pI810XvMC->xv_contrast = XInternAtom(display,"XV_CONTRAST",0);
+ pI810XvMC->brightness = 0;
+ pI810XvMC->saturation = 0x80; /* 1.0 in 3.7 format */
+ pI810XvMC->contrast = 0x40; /* 1.0 in 3.6 format */
+
+ /* Open DRI Device */
+ if((pI810XvMC->fd = drmOpen("i810",NULL)) < 0) {
+ printf("DRM Device for i810 could not be opened.\n");
+ free(pI810XvMC);
+ return BadAccess;
+ } /* !pI810XvMC->fd */
+
+ /* Get magic number and put it in privData for passing */
+ drmGetMagic(pI810XvMC->fd,&magic);
+ context->flags = (unsigned long)magic;
+
+ /*
+ Pass control to the X server to create a drm_context_t for us and
+ validate the with/height and flags.
+ */
+ if((ret = _xvmc_create_context(display, context, &priv_count, &priv_data))) {
+ printf("Unable to create XvMC Context.\n");
+ return ret;
+ }
+
+ /*
+ X server returns a structure like this:
+ drm_context_t
+ fbBase
+ OverlayOffset
+ OverlaySize
+ SurfacesOffset
+ SurfacesSize
+ busIdString = 9 char + 1
+ */
+ if(priv_count != 9) {
+ printf("_xvmc_create_context() returned incorrect data size!\n");
+ printf("\tExpected 9, got %d\n",priv_count);
+ _xvmc_destroy_context(display, context);
+ free(pI810XvMC);
+ return BadAlloc;
+ }
+ pI810XvMC->drmcontext = priv_data[0];
+ pI810XvMC->fb_base = priv_data[1];
+ pI810XvMC->overlay.offset = priv_data[2] + priv_data[1];
+ pI810XvMC->overlay.size = priv_data[3];
+ pI810XvMC->surfaces.offset = priv_data[4] + priv_data[1];
+ pI810XvMC->surfaces.size = priv_data[5];
+ strncpy(pI810XvMC->busIdString,(char *)&priv_data[6],9);
+ pI810XvMC->busIdString[9] = '\0';
+
+ /* Must free the private data we were passed from X */
+ free(priv_data);
+
+ /* Initialize private context values */
+ pI810XvMC->current = 0;
+ pI810XvMC->lock = 0;
+ pI810XvMC->last_flip = 0;
+ pI810XvMC->dual_prime = 0;
+
+ /*
+ Map dma Buffers: Not really, this would be a drmMapBufs
+ but due to the i810 security model we have to just create an
+ empty data structure to fake it.
+ */
+ pI810XvMC->dmabufs = (drmBufMapPtr)malloc(sizeof(drmBufMap));
+ if(pI810XvMC->dmabufs == NULL) {
+ printf("Dma Bufs could not be mapped.\n");
+ _xvmc_destroy_context(display, context);
+ free(pI810XvMC);
+ return BadAlloc;
+ } /* pI810XvMC->dmabufs == NULL */
+ memset(pI810XvMC->dmabufs, 0, sizeof(drmBufMap));
+ pI810XvMC->dmabufs->list = (drmBufPtr)malloc(sizeof(drmBuf) *
+ I810_DMA_BUF_NR);
+ if(pI810XvMC->dmabufs->list == NULL) {
+ printf("Dma Bufs could not be mapped.\n");
+ _xvmc_destroy_context(display, context);
+ free(pI810XvMC);
+ return BadAlloc;
+ } /* pI810XvMC->dmabufs->list == NULL */
+ memset(pI810XvMC->dmabufs->list, 0, sizeof(drmBuf) * I810_DMA_BUF_NR);
+
+ /* Map the Overlay memory */
+ if(drmMap(pI810XvMC->fd,pI810XvMC->overlay.offset,
+ pI810XvMC->overlay.size,&(pI810XvMC->overlay.address)) < 0) {
+ printf("Unable to map Overlay at offset 0x%x and size 0x%x\n",
+ (unsigned int)pI810XvMC->overlay.offset,pI810XvMC->overlay.size);
+ _xvmc_destroy_context(display, context);
+ free(pI810XvMC->dmabufs->list);
+ free(pI810XvMC);
+ return BadAlloc;
+ } /* drmMap() < 0 */
+
+ /* Overlay Regs are offset 1024 into Overlay Map */
+ pI810XvMC->oregs = (i810OverlayRec *)
+ ((unsigned char *)pI810XvMC->overlay.address + 1024);
+
+ /* Map Surfaces */
+ if(drmMap(pI810XvMC->fd,pI810XvMC->surfaces.offset,
+ pI810XvMC->surfaces.size,&(pI810XvMC->surfaces.address)) < 0) {
+ printf("Unable to map XvMC Surfaces.\n");
+ _xvmc_destroy_context(display, context);
+ free(pI810XvMC->dmabufs->list);
+ free(pI810XvMC);
+ return BadAlloc;
+ } /* drmMap() < 0 */
+
+ /*
+ There is a tiny chance that someone was using the overlay and
+ issued a flip that hasn't finished. To be 100% sure I'll just
+ take the lock and sleep for the worst case time for a flip.
+ */
+ I810_LOCK(pI810XvMC,DRM_LOCK_QUIESCENT);
+ usleep(20000); /* 1/50th Sec for 50hz refresh */
+
+ /* Set up Overlay regs with Initial Values */
+ pI810XvMC->oregs->YRGB_VPH = 0;
+ pI810XvMC->oregs->UV_VPH = 0;
+ pI810XvMC->oregs->HORZ_PH = 0;
+ pI810XvMC->oregs->INIT_PH = 0;
+ pI810XvMC->oregs->DWINPOS = 0;
+ pI810XvMC->oregs->DWINSZ = (I810_XVMC_MAXHEIGHT << 16) |
+ I810_XVMC_MAXWIDTH;
+ pI810XvMC->oregs->SWID = I810_XVMC_MAXWIDTH | (I810_XVMC_MAXWIDTH << 15);
+ pI810XvMC->oregs->SWIDQW = (I810_XVMC_MAXWIDTH >> 3) |
+ (I810_XVMC_MAXWIDTH << 12);
+ pI810XvMC->oregs->SHEIGHT = I810_XVMC_MAXHEIGHT |
+ (I810_XVMC_MAXHEIGHT << 15);
+ pI810XvMC->oregs->YRGBSCALE = 0x80004000; /* scale factor 1 */
+ pI810XvMC->oregs->UVSCALE = 0x80004000; /* scale factor 1 */
+ pI810XvMC->oregs->OV0CLRC0 = 0x4000; /* brightness: 0 contrast: 1.0 */
+ pI810XvMC->oregs->OV0CLRC1 = 0x80; /* saturation: bypass */
+
+ /* Destination Colorkey Setup */
+ pI810XvMC->oregs->DCLRKV = RGB16ToColorKey(pI810XvMC->colorkey);
+ pI810XvMC->oregs->DCLRKM = 0x80070307;
+
+
+ pI810XvMC->oregs->SCLRKVH = 0;
+ pI810XvMC->oregs->SCLRKVL = 0;
+ pI810XvMC->oregs->SCLRKM = 0; /* source color key disable */
+ pI810XvMC->oregs->OV0CONF = 0; /* two 720 pixel line buffers */
+
+ pI810XvMC->oregs->OV0CMD = VC_UP_INTERPOLATION | HC_UP_INTERPOLATION |
+ Y_ADJUST | YUV_420;
+
+ pI810XvMC->ref = 1;
+
+ I810_UNLOCK(pI810XvMC);
+
+ return Success;
+
+}
+
+/***************************************************************************
+// Function: XvMCDestroyContext
+// Description: Destorys the specified context.
+//
+// Arguments:
+// display - Specifies the connection to the server.
+// context - The context to be destroyed.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCDestroyContext(Display *display, XvMCContext *context) {
+ i810XvMCContext *pI810XvMC;
+
+ if(context == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+ if(context->privData == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+ pI810XvMC = (i810XvMCContext *)context->privData;
+
+ /* Turn off the overlay */
+ if(pI810XvMC->last_flip) {
+ I810_LOCK(pI810XvMC,DRM_LOCK_QUIESCENT);
+
+ /* Make sure last flip is done */
+ BLOCK_OVERLAY(pI810XvMC,pI810XvMC->current);
+
+ pI810XvMC->oregs->OV0CMD = VC_UP_INTERPOLATION | HC_UP_INTERPOLATION |
+ Y_ADJUST;
+ pI810XvMC->current = !pI810XvMC->current;
+ if(pI810XvMC->current == 1) {
+ pI810XvMC->oregs->OV0CMD |= BUFFER1_FIELD0;
+ }
+ else {
+ pI810XvMC->oregs->OV0CMD |= BUFFER0_FIELD0;
+ }
+ OVERLAY_FLIP(pI810XvMC);
+ pI810XvMC->last_flip++;
+
+ /* Wait for the flip */
+ BLOCK_OVERLAY(pI810XvMC,pI810XvMC->current);
+
+ I810_UNLOCK(pI810XvMC);
+ }
+
+ /* Pass Control to the X server to destroy the drm_context_t */
+ _xvmc_destroy_context(display, context);
+
+ i810_free_privContext(pI810XvMC);
+ context->privData = NULL;
+
+ return Success;
+}
+
+
+/***************************************************************************
+// Function: XvMCCreateSurface
+***************************************************************************/
+_X_EXPORT Status XvMCCreateSurface( Display *display, XvMCContext *context,
+ XvMCSurface *surface) {
+ i810XvMCContext *pI810XvMC;
+ i810XvMCSurface *pI810Surface;
+ int priv_count;
+ uint *priv_data;
+ Status ret;
+
+ if((surface == NULL) || (context == NULL) || (display == NULL)){
+ return BadValue;
+ }
+
+ pI810XvMC = (i810XvMCContext *)context->privData;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+
+
+ surface->privData = (i810XvMCSurface *)malloc(sizeof(i810XvMCSurface));
+ if(!surface->privData) {
+ return BadAlloc;
+ }
+ pI810Surface = (i810XvMCSurface *)surface->privData;
+
+ /* Initialize private values */
+ pI810Surface->privContext = pI810XvMC;
+ pI810Surface->last_render = 0;
+ pI810Surface->last_flip = 0;
+ pI810Surface->second_field = 0;
+
+ if((ret = _xvmc_create_surface(display, context, surface,
+ &priv_count, &priv_data))) {
+ free(pI810Surface);
+ printf("Unable to create XvMCSurface.\n");
+ return ret;
+ }
+
+ /*
+ _xvmc_create_subpicture returns 2 uints with the offset into
+ the DRM map for the Y surface and UV surface.
+ */
+ if(priv_count != 2) {
+ printf("_xvmc_create_surface() return incorrect data size.\n");
+ printf("Expected 2 got %d\n",priv_count);
+ free(priv_data);
+ free(pI810Surface);
+ return BadAlloc;
+ }
+ /* Data == Client Address, offset == Physical address offset */
+ pI810Surface->data = pI810XvMC->surfaces.address;
+ pI810Surface->offset = pI810XvMC->surfaces.offset;
+
+
+ /*
+ i810's MC Engine needs surfaces of 2^x (x= 9,10,11,12) pitch
+ and the Tiler need 512k aligned surfaces, basically we are
+ stuck with fixed memory with pitch 1024 for Y data. UV = 512.
+ */
+ pI810Surface->pitch = 10;
+ if((surface->surface_type_id == FOURCC_UYVY) ||
+ (surface->surface_type_id == FOURCC_YUY2)) {
+ /* This is not implemented server side. */
+ pI810Surface->pitch++;
+ }
+
+ /*
+ offsets[0,1,2] == Offsets from either data or offset for the Y
+ U and V surfaces.
+ */
+ pI810Surface->offsets[0] = priv_data[0];
+ if(((unsigned long)pI810Surface->data + pI810Surface->offsets[0]) & 4095) {
+ printf("XvMCCreateSurface: Surface offset 0 is not 4096 aligned\n");
+ }
+
+ if((surface->surface_type_id == FOURCC_UYVY) ||
+ (surface->surface_type_id == FOURCC_YUY2)) {
+ /* Packed surface, not fully implemented */
+ pI810Surface->offsets[1] = 0;
+ pI810Surface->offsets[2] = 0;
+ }
+ else {
+ /* Planar surface */
+ pI810Surface->offsets[1] = priv_data[1];
+ if(((unsigned long)pI810Surface->data + pI810Surface->offsets[1]) & 2047) {
+ printf("XvMCCreateSurface: Surface offset 1 is not 2048 aligned\n");
+ }
+
+ pI810Surface->offsets[2] = ((unsigned long)pI810Surface->offsets[1] +
+ (1<<(pI810Surface->pitch - 1)) * 288);
+ if(((unsigned long)pI810Surface->data + pI810Surface->offsets[2]) & 2047) {
+ printf("XvMCCreateSurface: Surface offset 2 is not 2048 aligned\n");
+ }
+
+ }
+
+ /* Free data returned from xvmc_create_surface */
+ free(priv_data);
+
+ /* Clear the surface to 0 */
+ memset((void *)((unsigned long)pI810Surface->data + (unsigned long)pI810Surface->offsets[0]),
+ 0, ((1<<pI810Surface->pitch) * surface->height));
+
+ switch(surface->surface_type_id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ /* Destination buffer info command */
+ pI810Surface->dbi1y = ((((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[0]) & ~0xfc000fff) |
+ (pI810Surface->pitch - 9));
+ pI810Surface->dbi1u = ((((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[1]) & ~0xfc000fff) |
+ (pI810Surface->pitch - 10));
+ pI810Surface->dbi1v = ((((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[2]) & ~0xfc000fff) |
+ (pI810Surface->pitch - 10));
+
+ /* Destination buffer variables command */
+ pI810Surface->dbv1 = (0x8<<20) | (0x8<<16);
+ /* Map info command */
+ pI810Surface->mi1y = (0x1<<24) | (1<<9) | (pI810Surface->pitch - 3);
+ pI810Surface->mi1u = (0x1<<24) | (1<<9) | (pI810Surface->pitch - 4);
+ pI810Surface->mi1v = (0x1<<24) | (1<<9) | (pI810Surface->pitch - 4);
+
+ pI810Surface->mi2y = (((unsigned int)surface->height - 1)<<16) |
+ ((unsigned int)surface->width - 1);
+ pI810Surface->mi2u = (((unsigned int)surface->height - 1)<<15) |
+ (((unsigned int)surface->width - 1)>>1);
+ pI810Surface->mi2v = pI810Surface->mi2u;
+
+ pI810Surface->mi3y = ((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[0]) & ~0x0000000f;
+ pI810Surface->mi3u = ((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[1]) & ~0x0000000f;
+ pI810Surface->mi3v = ((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[2]) & ~0x0000000f;
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ /* Destination buffer info command */
+ pI810Surface->dbi1y = ((((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[0]) & ~0xfc000fff) |
+ (pI810Surface->pitch - 9));
+ /* Destination buffer variables command */
+ if(surface->surface_type_id == FOURCC_YUY2) {
+ pI810Surface->dbv1 = 0x5<<8;
+ pI810Surface->mi1y = 0x5<<24 | pI810Surface->pitch | 0x1<<21;
+ }
+ else {
+ pI810Surface->dbv1 = 0x4<<8;
+ pI810Surface->mi1y = 0x5<<24 | (pI810Surface->pitch - 3);
+ }
+ pI810Surface->mi2y = (((unsigned int)surface->width - 1)<<16) |
+ ((unsigned int)surface->height - 1);
+ pI810Surface->mi3y = ((unsigned int)pI810Surface->offset +
+ pI810Surface->offsets[0]) & ~0xfc000fff;
+ break;
+ }
+ pI810XvMC->ref++;
+
+ return Success;
+}
+
+
+/***************************************************************************
+// Function: XvMCDestroySurface
+***************************************************************************/
+_X_EXPORT Status XvMCDestroySurface(Display *display, XvMCSurface *surface) {
+ i810XvMCSurface *pI810Surface;
+ i810XvMCContext *pI810XvMC;
+
+ if((display == NULL) || (surface == NULL)) {
+ return BadValue;
+ }
+ if(surface->privData == NULL) {
+ return (error_base + XvMCBadSurface);
+ }
+
+ pI810Surface = (i810XvMCSurface *)surface->privData;
+ if(pI810Surface->last_flip) {
+ XvMCSyncSurface(display,surface);
+ }
+ pI810XvMC = (i810XvMCContext *)pI810Surface->privContext;
+
+ _xvmc_destroy_surface(display,surface);
+
+ i810_free_privContext(pI810XvMC);
+
+ free(pI810Surface);
+ surface->privData = NULL;
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCCreateBlocks
+***************************************************************************/
+_X_EXPORT Status XvMCCreateBlocks(Display *display, XvMCContext *context,
+ unsigned int num_blocks,
+ XvMCBlockArray *block) {
+
+ if((display == NULL) || (context == NULL) || (num_blocks == 0)) {
+ return BadValue;
+ }
+
+ block->blocks = (short *)malloc(num_blocks<<6 * sizeof(short));
+ if(block->blocks == NULL) {
+ return BadAlloc;
+ }
+
+ block->num_blocks = num_blocks;
+ block->context_id = context->context_id;
+
+ block->privData = NULL;
+
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCDestroyBlocks
+***************************************************************************/
+_X_EXPORT Status XvMCDestroyBlocks(Display *display, XvMCBlockArray *block) {
+ if(display == NULL) {
+ return BadValue;
+ }
+
+ free(block->blocks);
+ block->num_blocks = 0;
+ block->context_id = 0;
+ block->privData = NULL;
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCCreateMacroBlocks
+***************************************************************************/
+_X_EXPORT Status XvMCCreateMacroBlocks(Display *display, XvMCContext *context,
+ unsigned int num_blocks,
+ XvMCMacroBlockArray *blocks) {
+
+ if((display == NULL) || (context == NULL) || (blocks == NULL) ||
+ (num_blocks == 0)) {
+ return BadValue;
+ }
+ memset(blocks,0,sizeof(XvMCMacroBlockArray));
+ blocks->context_id = context->context_id;
+ blocks->privData = NULL;
+
+ blocks->macro_blocks = (XvMCMacroBlock *)
+ malloc(num_blocks * sizeof(XvMCMacroBlock));
+ if(blocks->macro_blocks == NULL) {
+ return BadAlloc;
+ }
+ blocks->num_blocks = num_blocks;
+
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCDestroyMacroBlocks
+***************************************************************************/
+_X_EXPORT Status XvMCDestroyMacroBlocks(Display *display, XvMCMacroBlockArray *block) {
+ if((display == NULL) || (block == NULL)) {
+ return BadValue;
+ }
+ if(block->macro_blocks) {
+ free(block->macro_blocks);
+ }
+ block->context_id = 0;
+ block->num_blocks = 0;
+ block->privData = NULL;
+
+ return Success;
+}
+
+
+/***************************************************************************
+// Function: dp (Debug Print)
+// Description: This function prints out in hex i * uint32_t at the address
+// supplied. This enables you to print out the dma buffers from
+// within the debugger even though they are not in your address space.
+***************************************************************************/
+void dp(unsigned int *address, unsigned int i) {
+ int j;
+
+ printf("DebugPrint:\n");
+ for(j=0; j<i; j++) {
+ printf("0x%8.8x ",address[j]);
+ if(j && !(j & 7)) { printf("\n");}
+ }
+}
+
+/***************************************************************************
+// Macro: PACK_*
+// Description: Packs 16bit signed data from blocks into either 8bit unsigned
+// intra data or 16bit signed correction data, both packed into
+// 32 bit integers.
+***************************************************************************/
+#define PACK_INTRA_DATA(d,b,n) \
+ do { \
+ char *dp = (char *)d; \
+ char *bp = (char *)b; \
+ int counter; \
+ for(counter = 0; counter < n; counter++) { \
+ *dp++ = *bp; \
+ bp += 2; \
+ } \
+ }while(0);
+
+#define PACK_CORR_DATA(d,b,n) \
+ memcpy(d,b,n); \
+ d = (uint *)((unsigned long)d + n);
+
+#define MARK_CORR_DATA(d,n) \
+ do { \
+ uint* q = (uint*)((unsigned long)d - n); \
+ while((unsigned long)q < (unsigned long)d) { \
+ *q++ += 0x00330033; \
+ } \
+ }while(0);
+
+#define MARK_INTRA_BLOCK(d) \
+ do { \
+ int q; \
+ for(q=0; q<16; q++) { \
+ d[q] += 0x33333333; \
+ } \
+ }while(0);
+
+/*
+ Used for DCT 1 when we need DCT 0. Instead
+ of reading from one block we read from two and
+ interlace.
+*/
+#define PACK_CORR_DATA_1to0(d,top,bottom) \
+ do { \
+ short *t = top,*b = bottom; \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 16); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 16); \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 16); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 16); \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 16); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 16); \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 16); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 16); \
+ }while(0);
+
+/* Used for DCT 0 when we need DCT 1. */
+#define PACK_CORR_DATA_0to1(d,top,bottom) \
+ do{ \
+ short *t = top,*b = bottom; \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 32); \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 32); \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 32); \
+ PACK_CORR_DATA(d,t,16); \
+ t = (short *)((unsigned long)t + 32); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ }while(0);
+
+#define PACK_CORR_DATA_SHORT(d,block) \
+ do { \
+ short *b = block; \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ PACK_CORR_DATA(d,b,16); \
+ b = (short *)((unsigned long)b + 32); \
+ }while(0);
+
+/* Lookup tables to speed common calculations */
+static unsigned int drps_table[] = {2<<6,3<<6};
+
+static unsigned int mvfs_table[] = {
+ 0x12,
+ 0x1a,
+ 0x13,
+ 0x1b
+};
+
+static unsigned int type_table[] = {
+ 0x1<<12, /* This is an error so make it Forward motion */
+ 0x1<<12,
+ 0x1<<12,
+ 0x1<<12,
+ 0x2<<12,
+ 0x2<<12,
+ 0x3<<12,
+ 0x3<<12,
+ 0x1<<12, /* Pattern but no Motion, Make motion Forward */
+ 0x1<<12,
+ 0x1<<12,
+ 0x1<<12,
+ 0x2<<12,
+ 0x2<<12,
+ 0x3<<12,
+ 0x3<<12
+};
+
+static unsigned int y_frame_bytes[] = {
+ 0,0,0,0,128,128,128,128,
+ 128,128,128,128,256,256,256,256,
+ 128,128,128,128,256,256,256,256,
+ 256,256,256,256,384,384,384,384,
+ 128,128,128,128,256,256,256,256,
+ 256,256,256,256,384,384,384,384,
+ 256,256,256,256,384,384,384,384,
+ 384,384,384,384,512,512,512,512
+};
+
+static unsigned int u_frame_bytes[] = {
+ 0,0,128,128,0,0,128,128,
+ 0,0,128,128,0,0,128,128,
+ 0,0,128,128,0,0,128,128,
+ 0,0,128,128,0,0,128,128,
+ 0,0,128,128,0,0,128,128,
+ 0,0,128,128,0,0,128,128,
+ 0,0,128,128,0,0,128,128,
+ 0,0,128,128,0,0,128,128
+};
+
+static unsigned int v_frame_bytes[] = {
+ 0,128,0,128,0,128,0,128,
+ 0,128,0,128,0,128,0,128,
+ 0,128,0,128,0,128,0,128,
+ 0,128,0,128,0,128,0,128,
+ 0,128,0,128,0,128,0,128,
+ 0,128,0,128,0,128,0,128,
+ 0,128,0,128,0,128,0,128,
+ 0,128,0,128,0,128,0,128
+};
+
+static unsigned int y_first_field_bytes[] = {
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+ 128,128,128,128,128,128,128,128,
+ 128,128,128,128,128,128,128,128,
+ 128,128,128,128,128,128,128,128,
+ 128,128,128,128,128,128,128,128,
+ 256,256,256,256,256,256,256,256,
+ 256,256,256,256,256,256,256,256
+};
+
+static unsigned int y_second_field_bytes[] = {
+ 0,0,0,0,128,128,128,128,
+ 128,128,128,128,256,256,256,256,
+ 0,0,0,0,128,128,128,128,
+ 128,128,128,128,256,256,256,256,
+ 0,0,0,0,128,128,128,128,
+ 128,128,128,128,256,256,256,256,
+ 0,0,0,0,128,128,128,128,
+ 128,128,128,128,256,256,256,256
+};
+
+static unsigned int y_dct0_field_bytes[] = {
+ 0,0,0,0,128,128,128,128,
+ 128,128,128,128,256,256,256,256,
+ 128,128,128,128,128,128,128,128,
+ 256,256,256,256,256,256,256,256,
+ 128,128,128,128,256,256,256,256,
+ 128,128,128,128,256,256,256,256,
+ 256,256,256,256,256,256,256,256,
+ 256,256,256,256,256,256,256,256
+};
+
+static unsigned int y_dct1_frame_bytes[] = {
+ 0,0,0,0,256,256,256,256,
+ 256,256,256,256,512,512,512,512,
+ 256,256,256,256,256,256,256,256,
+ 512,512,512,512,512,512,512,512,
+ 256,256,256,256,512,512,512,512,
+ 256,256,256,256,512,512,512,512,
+ 512,512,512,512,512,512,512,512,
+ 512,512,512,512,512,512,512,512
+};
+
+static unsigned int u_field_bytes[] = {
+ 0,0,64,64,0,0,64,64,
+ 0,0,64,64,0,0,64,64,
+ 0,0,64,64,0,0,64,64,
+ 0,0,64,64,0,0,64,64,
+ 0,0,64,64,0,0,64,64,
+ 0,0,64,64,0,0,64,64,
+ 0,0,64,64,0,0,64,64,
+ 0,0,64,64,0,0,64,64
+};
+
+static unsigned int v_field_bytes[] = {
+ 0,64,0,64,0,64,0,64,
+ 0,64,0,64,0,64,0,64,
+ 0,64,0,64,0,64,0,64,
+ 0,64,0,64,0,64,0,64,
+ 0,64,0,64,0,64,0,64,
+ 0,64,0,64,0,64,0,64,
+ 0,64,0,64,0,64,0,64,
+ 0,64,0,64,0,64,0,64
+};
+
+static short empty_block[] = {
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0
+};
+
+
+/***************************************************************************
+// Function: dispatchYContext
+// Description: Allocate a DMA buffer write the Y MC Context info in it,
+// and dispatch it to hardware.
+***************************************************************************/
+
+static __inline__ void dispatchYContext(i810XvMCSurface *privTarget,
+ i810XvMCSurface *privPast,
+ i810XvMCSurface *privFuture,
+ i810XvMCContext *pI810XvMC) {
+ uint *data;
+ drmBufPtr pDMA;
+ drm_i810_mc_t mc;
+
+ pDMA = i810_get_free_buffer(pI810XvMC);
+ data = pDMA->address;
+ *data++ = CMD_FLUSH;
+ *data++ = BOOLEAN_ENA_2;
+ *data++ = CMD_FLUSH;
+ *data++ = DEST_BUFFER_INFO;
+ *data++ = privTarget->dbi1y;
+ *data++ = DEST_BUFFER_VAR;
+ *data++ = privTarget->dbv1;
+ /* Past Surface */
+ *data++ = CMD_MAP_INFO;
+ *data++ = privPast->mi1y;
+ *data++ = privPast->mi2y;
+ *data++ = privPast->mi3y;
+ /* Future Surface */
+ *data++ = CMD_MAP_INFO;
+ *data++ = privFuture->mi1y | 0x1<<28;
+ *data++ = privFuture->mi2y;
+ *data++ = privFuture->mi3y;
+
+ mc.idx = pDMA->idx;
+ mc.used = (unsigned long)data - (unsigned long)pDMA->address;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+}
+
+static __inline__ void renderError(void) {
+ printf("Invalid Macroblock Parameters found.\n");
+ return;
+}
+
+/***************************************************************************
+// Function: renderIntrainFrame
+// Description: inline function that sets hardware parameters for an Intra
+// encoded macroblock in a Frame picture.
+***************************************************************************/
+static __inline__ void renderIntrainFrame(uint **datay,uint **datau,
+ uint **datav,
+ XvMCMacroBlock *mb,
+ short *block_ptr) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Y Blocks */
+ *dy++ = GFXBLOCK + 68;
+ *dy++ = (1<<30) | (3<<28) | (0xf<<24);
+ *dy++ = ((uint)mb->x<<20) | ((uint)mb->y<<4);
+ *dy++ = (16<<16) | 16;
+ *dy++ = 0;
+ *dy++ = 0;
+ PACK_INTRA_DATA(dy,block_ptr,256);
+ dy += 64;
+ block_ptr += 256;
+ /* End Y Blocks */
+
+ /* U Block */
+ *du++ = GFXBLOCK + 20;
+ *du++ = (2<<30) | (1<<28) | (1<<23);
+ *du++ = (((uint)mb->x)<<19) | (((uint)mb->y)<<3);
+ *du++ = (8<<16) | 8;
+ *du++ = 0;
+ *du++ = 0;
+ PACK_INTRA_DATA(du,block_ptr,64);
+ du += 16;
+ block_ptr += 64;
+
+ /* V Block */
+ *dv++ = GFXBLOCK + 20;
+ *dv++ = (3<<30) | (1<<28) | (1<<22);
+ *dv++ = (((uint)mb->x)<<19) | (((uint)mb->y)<<3);
+ *dv++ = (8<<16) | 8;
+ *dv++ = 0;
+ *dv++ = 0;
+ PACK_INTRA_DATA(dv,block_ptr,64);
+ dv += 16;
+ block_ptr += 64;
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderIntrainFrameDCT1
+// Description: inline function that sets hardware parameters for an Intra
+// encoded macroblock in a Frame picture with DCT type 1.
+***************************************************************************/
+static __inline__ void renderIntrainFrameDCT1(uint **datay,uint **datau,
+ uint **datav,XvMCMacroBlock *mb,
+ short *block_ptr,uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+
+ /* Y Blocks */
+ *dy++ = GFXBLOCK + 36;
+ *dy++ = (1<<30) | (2<<28) | (0x3<<26) | (0x2<<6);
+ *dy++ = ((uint)mb->x<<20) | ((uint)mb->y<<3);
+ *dy++ = (8<<16) | 16;
+ *dy++ = 0;
+ *dy++ = 0;
+ PACK_INTRA_DATA(dy,block_ptr,128);
+ dy += 32;
+ block_ptr += 128;
+
+ /* Second Y block */
+ *dy++ = GFXBLOCK + 36;
+ *dy++ = (1<<30) | (2<<28) | (0x3<<26) | (0x3<<6);
+ *dy++ = ((uint)mb->x<<20) | ((uint)mb->y<<3);
+ *dy++ = (8<<16) | 16;
+ *dy++ = 0;
+ *dy++ = 0;
+ PACK_INTRA_DATA(dy,block_ptr,128);
+ dy += 32;
+ block_ptr += 128;
+ /* End Y Blocks */
+
+
+ /* U Block */
+ *du++ = GFXBLOCK + 20;
+ *du++ = (2<<30) | (1<<28) | (1<<23);
+ *du++ = (((uint)mb->x)<<19) | (((uint)mb->y)<<3);
+ *du++ = (8<<16) | 8;
+ *du++ = 0;
+ *du++ = 0;
+ PACK_INTRA_DATA(du,block_ptr,64);
+ du += 16;
+ block_ptr += 64;
+
+ /* V Block */
+ *dv++ = GFXBLOCK + 20;
+ *dv++ = (3<<30) | (1<<28) | (1<<22);
+ *dv++ = (((uint)mb->x)<<19) | (((uint)mb->y)<<3);
+ *dv++ = (8<<16) | 8;
+ *dv++ = 0;
+ *dv++ = 0;
+ PACK_INTRA_DATA(dv,block_ptr,64);
+ dv += 16;
+ block_ptr += 64;
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+
+/***************************************************************************
+// Function: renderIntrainField
+// Description: inline function that sets hardware parameters for an Intra
+// encoded macroblock in Field pictures.
+***************************************************************************/
+static __inline__ void renderIntrainField(uint **datay,uint **datau,
+ uint **datav,
+ XvMCMacroBlock *mb,short *block_ptr,
+ uint ps) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<4);
+ uint dw1 = drps_table[~ps & 0x1];
+
+ /* Y Blocks */
+ *dy++ = GFXBLOCK + 68;
+ *dy++ = (1<<30) | (3<<28) | (0xf<<24) | dw1;
+ *dy++ = xy;
+ *dy++ = (16<<16) | 16;
+ *dy++ = 0;
+ *dy++ = 0;
+ PACK_INTRA_DATA(dy,block_ptr,256);
+ dy += 64;
+ block_ptr += 256;
+ /* End Y Blocks */
+
+ xy >>= 1;
+
+ /* U Block */
+ *du++ = GFXBLOCK + 20;
+ *du++ = (2<<30) | (1<<28) | (1<<23) | dw1;
+ *du++ = xy;
+ *du++ = (8<<16) | 8;
+ *du++ = 0;
+ *du++ = 0;
+ PACK_INTRA_DATA(du,block_ptr,64);
+ du += 16;
+ block_ptr += 64;
+
+ /* V Block */
+ *dv++ = GFXBLOCK + 20;
+ *dv++ = (3<<30) | (1<<28) | (1<<22) | dw1;
+ *dv++ = xy;
+ *dv++ = (8<<16) | 8;
+ *dv++ = 0;
+ *dv++ = 0;
+ PACK_INTRA_DATA(dv,block_ptr,64);
+ dv += 16;
+ block_ptr += 64;
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+
+/***************************************************************************
+// Function: renderFieldinField
+// Description: inline function that sets hardware parameters for a Field
+// encoded macroblock in a Field Picture.
+***************************************************************************/
+static __inline__ void renderFieldinField(uint **datay,uint **datau,
+ uint **datav,
+ XvMCMacroBlock *mb,short *block_ptr,
+ uint ps, uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ short fmv[2];
+ short bmv[2];
+ /* gfxblock dword 1 */
+ uint dw1;
+
+ uint parity = ~ps & XVMC_TOP_FIELD;
+
+ uint ysize = y_frame_bytes[mb->coded_block_pattern];
+ uint usize = u_frame_bytes[mb->coded_block_pattern];
+ uint vsize = v_frame_bytes[mb->coded_block_pattern];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<4);
+
+ /* i810 Specific flag used to identify the second field in a P frame */
+ if(flags & 0x80000000) {
+ /* P Frame */
+ if((mb->motion_vertical_field_select & XVMC_SELECT_FIRST_FORWARD) ==
+ parity) {
+ /* Same parity, use reference field (map0) */
+ dw1 = 1<<12 | ((0x2 + parity)<<6) | ((0x2 + parity)<<3) |
+ (((uint)mb->coded_block_pattern)<<22);
+ fmv[0] = mb->PMV[0][0][1];
+ fmv[1] = mb->PMV[0][0][0];
+ bmv[0] = 0;
+ bmv[1] = 0;
+ }
+ else {
+ /*
+ Opposite parity, set up as if it were backward
+ motion and use map1.
+ */
+ dw1 = 2<<12 | ((0x2 + parity)<<6) | (0x3 - parity) |
+ (((uint)mb->coded_block_pattern)<<22);
+ bmv[0] = mb->PMV[0][0][1];
+ bmv[1] = mb->PMV[0][0][0];
+ fmv[0] = 0;
+ fmv[1] = 0;
+ }
+ }
+ else {
+ dw1 = type_table[mb->macroblock_type & 0xf] |
+ drps_table[~ps & 0x1] |
+ mvfs_table[mb->motion_vertical_field_select & 3] |
+ (((uint)mb->coded_block_pattern)<<22);
+
+ fmv[0] = mb->PMV[0][0][1];
+ fmv[1] = mb->PMV[0][0][0];
+
+ bmv[0] = mb->PMV[0][1][1];
+ bmv[1] = mb->PMV[0][1][0];
+ }
+
+ /* Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (3<<28) | dw1;
+ *dy++ = xy;
+ *dy++ = (16<<16) | 16;
+ *dy++ = *(uint *)fmv;
+ *dy++ = *(uint *)bmv;
+ PACK_CORR_DATA(dy,block_ptr,ysize);
+ block_ptr = (short *)((unsigned long)block_ptr + ysize);
+ /* End Y Blocks */
+
+ fmv[0] /= 2;
+ fmv[1] /= 2;
+ bmv[0] /= 2;
+ bmv[1] /= 2;
+ xy >>= 1;
+
+ /* U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1;
+ *du++ = xy;
+ *du++ = (8<<16) | 8;
+ *du++ = *(uint *)fmv;
+ *du++ = *(uint *)bmv;
+ PACK_CORR_DATA(du,block_ptr,usize);
+ block_ptr = (short *)((unsigned long)block_ptr + usize);
+
+ /* V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1;
+ *dv++ = xy;
+ *dv++ = (8<<16) | 8;
+ *dv++ = *(uint *)fmv;
+ *dv++ = *(uint *)bmv;
+ PACK_CORR_DATA(dv,block_ptr,vsize);
+ block_ptr = (short *)((unsigned long)block_ptr + vsize);
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: render16x8inField
+// Description: inline function that sets hardware parameters for a 16x8
+// encoded macroblock in a field picture.
+***************************************************************************/
+static __inline__ void render16x8inField(uint **datay,uint **datau,
+ uint **datav,
+ XvMCMacroBlock *mb,short *block_ptr,
+ uint ps, uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ short fmv[4];
+ short bmv[4];
+ /* gfxblock dword 1 */
+ uint dw1[2];
+
+ uint y1size = y_first_field_bytes[mb->coded_block_pattern];
+ uint y2size = y_second_field_bytes[mb->coded_block_pattern];
+ uint usize = u_field_bytes[mb->coded_block_pattern];
+ uint vsize = v_field_bytes[mb->coded_block_pattern];
+
+ uint parity = ~ps & XVMC_TOP_FIELD;
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<4);
+
+ /* i810 Specific flag used to identify the second field in a P frame */
+ if(flags & 0x80000000) {
+ /* P Frame */
+ if((mb->motion_vertical_field_select & XVMC_SELECT_FIRST_FORWARD) ==
+ parity) {
+ /* Same parity, use reference field (map0) */
+ dw1[0] = 1<<12 | ((0x2 + parity)<<6) | ((0x2 + parity)<<3) |
+ (((uint)mb->coded_block_pattern)<<22);
+
+ fmv[0] = mb->PMV[0][0][1];
+ fmv[1] = mb->PMV[0][0][0];
+ bmv[0] = 0;
+ bmv[1] = 0;
+ }
+ else {
+ /*
+ Opposite parity, set up as if it were backward
+ motion and use map1.
+ */
+ dw1[0] = 2<<12 | ((0x2 + parity)<<6) | (0x3 - parity) |
+ (((uint)mb->coded_block_pattern)<<22);
+
+ bmv[0] = mb->PMV[0][0][1];
+ bmv[1] = mb->PMV[0][0][0];
+ fmv[0] = 0;
+ fmv[1] = 0;
+ }
+ if((mb->motion_vertical_field_select & XVMC_SELECT_SECOND_FORWARD) ==
+ (parity<<2)) {
+ /* Same parity, use reference field (map0) */
+ dw1[1] = 1<<12 | ((0x2 + parity)<<6) | ((0x2 + parity)<<3) |
+ ((((uint)mb->coded_block_pattern<<22) & (0x3<<22)) |
+ (((uint)mb->coded_block_pattern<<24) & (0x3<<26)));
+
+ fmv[2] = mb->PMV[1][0][1];
+ fmv[3] = mb->PMV[1][0][0];
+ bmv[2] = 0;
+ bmv[3] = 0;
+ }
+ else {
+ /*
+ Opposite parity, set up as if it were backward
+ motion and use map1.
+ */
+ dw1[1] = 2<<12 | ((0x2 + parity)<<6) | (0x3 - parity) |
+ ((((uint)mb->coded_block_pattern<<22) & (0x3<<22)) |
+ (((uint)mb->coded_block_pattern<<24) & (0x3<<26)));
+
+ bmv[2] = mb->PMV[1][0][1];
+ bmv[3] = mb->PMV[1][0][0];
+ fmv[2] = 0;
+ fmv[3] = 0;
+ }
+ }
+ else {
+ dw1[0] = type_table[mb->macroblock_type & 0xf] |
+ drps_table[~ps & 0x1] |
+ mvfs_table[mb->motion_vertical_field_select & 3] |
+ (((uint)mb->coded_block_pattern)<<22);
+
+ dw1[1] = type_table[mb->macroblock_type & 0xf] |
+ drps_table[~ps & 0x1] |
+ mvfs_table[(mb->motion_vertical_field_select>>2) & 0x3] |
+ ((((uint)mb->coded_block_pattern<<22) & (0x3<<22)) |
+ (((uint)mb->coded_block_pattern<<24) & (0x3<<26)));
+
+ fmv[0] = mb->PMV[0][0][1];
+ fmv[1] = mb->PMV[0][0][0];
+ fmv[2] = mb->PMV[1][0][1];
+ fmv[3] = mb->PMV[1][0][0];
+
+ bmv[0] = mb->PMV[0][1][1];
+ bmv[1] = mb->PMV[0][1][0];
+ bmv[2] = mb->PMV[1][1][1];
+ bmv[3] = mb->PMV[1][1][0];
+ }
+
+ /* First Y Block */
+ *dy++ = GFXBLOCK + 4 + (y1size>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[0];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = *(uint *)fmv;
+ *dy++ = *(uint *)bmv;
+ PACK_CORR_DATA(dy,block_ptr,y1size);
+ block_ptr = (short *)((unsigned long)block_ptr + y1size);
+
+ /* Second Y Block */
+ *dy++ = GFXBLOCK + 4 + (y2size>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[1];
+ *dy++ = (xy + 8);
+ *dy++ = (8<<16) | 16;
+ *dy++ = *(uint *)&fmv[2];
+ *dy++ = *(uint *)&bmv[2];
+ PACK_CORR_DATA(dy,block_ptr,y2size);
+ block_ptr = (short *)((unsigned long)block_ptr + y2size);
+ /* End Y Blocks */
+
+ fmv[0] /= 2;
+ fmv[1] /= 2;
+ fmv[2] /= 2;
+ fmv[3] /= 2;
+
+ bmv[0] /= 2;
+ bmv[1] /= 2;
+ bmv[2] /= 2;
+ bmv[3] /= 2;
+
+ xy >>= 1;
+
+ /* U Blocks */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[0];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = *(uint *)fmv;
+ *du++ = *(uint *)bmv;
+ PACK_CORR_DATA(du,block_ptr,usize);
+ block_ptr = (short *)((unsigned long)block_ptr + usize);
+
+ /* Second U block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[1];
+ *du++ = (xy + 4);
+ *du++ = (4<<16) | 8;
+ *du++ = *(uint *)&fmv[2];
+ *du++ = *(uint *)&bmv[2];
+ PACK_CORR_DATA(du,block_ptr,usize);
+ block_ptr = (short *)((unsigned long)block_ptr + usize);
+ /* End U Blocks */
+
+ /* V Blocks */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[0];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = *(uint *)fmv;
+ *dv++ = *(uint *)bmv;
+ PACK_CORR_DATA(dv,block_ptr,vsize);
+ block_ptr = (short *)((unsigned long)block_ptr + vsize);
+
+ /* Second V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[1];
+ *dv++ = (xy + 4);
+ *dv++ = (4<<16) | 8;
+ *dv++ = *(uint *)&fmv[2];
+ *dv++ = *(uint *)&bmv[2];
+ PACK_CORR_DATA(dv,block_ptr,vsize);
+ block_ptr = (short *)((unsigned long)block_ptr + vsize);
+ /* End V Blocks */
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderDualPrimeinField
+// Description: inline function that sets hardware parameters for a Dual
+// prime encoded macroblock in a field picture.
+***************************************************************************/
+static __inline__ void renderDualPrimeinField(uint **datay,uint **datau,
+ uint **datav,XvMCMacroBlock *mb,
+ short *block_ptr,uint ps,
+ uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ short fmv[2];
+ short bmv[2];
+ /* gfxblock dword 1 */
+ uint dw1;
+
+
+ uint ysize = y_frame_bytes[mb->coded_block_pattern];
+ uint usize = u_frame_bytes[mb->coded_block_pattern];
+ uint vsize = v_frame_bytes[mb->coded_block_pattern];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<4);
+
+
+ if(ps & XVMC_TOP_FIELD) {
+ dw1 = (mb->coded_block_pattern<<22) | 3<<12 | 2<<6 | 2<<3 | 3;
+ }
+ else {
+ dw1 = (mb->coded_block_pattern<<22) | 3<<12 | 3<<6 | 3<<3 | 2;
+ }
+ fmv[0] = mb->PMV[0][0][1];
+ fmv[1] = mb->PMV[0][0][0];
+ bmv[0] = mb->PMV[0][1][1];
+ bmv[1] = mb->PMV[0][1][0];
+
+ /* Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (3<<28) | dw1;
+ *dy++ = xy;
+ *dy++ = (16<<16) | 16;
+ *dy++ = *(uint *)fmv;
+ *dy++ = *(uint *)bmv;
+ PACK_CORR_DATA(dy,block_ptr,ysize);
+ block_ptr = (short *)((unsigned long)block_ptr + ysize);
+ /* End Y Blocks */
+
+ fmv[0] /= 2;
+ fmv[1] /= 2;
+ bmv[0] /= 2;
+ bmv[1] /= 2;
+ xy >>= 1;
+
+ /* U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1;
+ *du++ = xy;
+ *du++ = (8<<16) | 8;
+ *du++ = *(uint *)fmv;
+ *du++ = *(uint *)bmv;
+ PACK_CORR_DATA(du,block_ptr,usize);
+ block_ptr = (short *)((unsigned long)block_ptr + usize);
+
+ /* V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1;
+ *dv++ = xy;
+ *dv++ = (8<<16) | 8;
+ *dv++ = *(uint *)fmv;
+ *dv++ = *(uint *)bmv;
+ PACK_CORR_DATA(dv,block_ptr,vsize);
+ block_ptr = (short *)((unsigned long)block_ptr + vsize);
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderFieldinFrame
+// Description: inline function that sets hardware parameters for a Field
+// encoded macroblock in a frame picture.
+***************************************************************************/
+typedef union {
+ short s[4];
+ uint u[2];
+} su_t;
+
+static __inline__ void renderFieldinFrame(uint **datay,uint **datau,
+ uint **datav,
+ XvMCMacroBlock *mb,short *block_ptr,
+ uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ su_t fmv;
+ su_t bmv;
+ /* gfxblock dword 1 */
+ uint dw1[2];
+
+ uint y1size = y_first_field_bytes[mb->coded_block_pattern];
+ uint y2size = y_second_field_bytes[mb->coded_block_pattern];
+ uint usize = u_field_bytes[mb->coded_block_pattern];
+ uint vsize = v_field_bytes[mb->coded_block_pattern];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<3);
+
+ dw1[0] = type_table[mb->macroblock_type & 0xf] | (0x2<<6) |
+ mvfs_table[mb->motion_vertical_field_select & 3] |
+ (((uint)mb->coded_block_pattern)<<22);
+
+ dw1[1] = type_table[mb->macroblock_type & 0xf] | (0x3<<6) |
+ mvfs_table[mb->motion_vertical_field_select>>2] |
+ (((mb->coded_block_pattern & 0x3) |
+ ((mb->coded_block_pattern & 0xc)<<2))<<22);
+
+ fmv.s[0] = mb->PMV[0][0][1]/2;
+ fmv.s[1] = mb->PMV[0][0][0];
+ fmv.s[2] = mb->PMV[1][0][1]/2;
+ fmv.s[3] = mb->PMV[1][0][0];
+
+ bmv.s[0] = mb->PMV[0][1][1]/2;
+ bmv.s[1] = mb->PMV[0][1][0];
+ bmv.s[2] = mb->PMV[1][1][1]/2;
+ bmv.s[3] = mb->PMV[1][1][0];
+
+ /* First Y Block */
+ *dy++ = GFXBLOCK + 4 + (y1size>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[0];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[0];
+ *dy++ = bmv.u[0];
+ PACK_CORR_DATA(dy,block_ptr,y1size);
+ block_ptr = (short *)((unsigned long)block_ptr + y1size);
+
+ /* Second Y Block */
+ *dy++ = GFXBLOCK + 4 + (y2size>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[1];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[1];
+ *dy++ = bmv.u[1];
+ PACK_CORR_DATA(dy,block_ptr,y2size);
+ block_ptr = (short *)((unsigned long)block_ptr + y2size);
+ /* End Y Blocks */
+
+ fmv.s[0] /= 2;
+ fmv.s[1] /= 2;
+ fmv.s[2] /= 2;
+ fmv.s[3] /= 2;
+
+ bmv.s[0] /= 2;
+ bmv.s[1] /= 2;
+ bmv.s[2] /= 2;
+ bmv.s[3] /= 2;
+
+ xy >>= 1;
+
+ /* U Blocks */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[0];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[0];
+ *du++ = bmv.u[0];
+ if(usize) {
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ }
+
+ /* Second U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[1];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[1];
+ *du++ = bmv.u[1];
+ if(usize) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End U Blocks */
+
+ /* V Blocks */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[0];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[0];
+ *dv++ = bmv.u[0];
+ if(vsize) {
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ }
+
+ /* Second V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[1];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[1];
+ *dv++ = bmv.u[1];
+ if(vsize) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End V Blocks */
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderFieldinFrameDCT0
+// Description: inline function that sets hardware parameters for a Field
+// encoded macroblock in a frame picture with DCT0.
+***************************************************************************/
+static __inline__ void renderFieldinFrameDCT0(uint **datay,uint **datau,
+ uint **datav,XvMCMacroBlock *mb,
+ short *block_ptr,uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ su_t fmv;
+ su_t bmv;
+ /* CBP */
+ uint cbp = (uint)mb->coded_block_pattern;
+ /* gfxblock dword 1 */
+ uint dw1[2];
+
+ short * top_left_b = NULL;
+ short * top_right_b = NULL;
+ short * bottom_left_b = NULL;
+ short * bottom_right_b = NULL;
+
+ unsigned int ysize = y_dct0_field_bytes[cbp];
+ unsigned int usize = u_field_bytes[cbp];
+ unsigned int vsize = v_field_bytes[cbp];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<3);
+
+ dw1[0] = type_table[mb->macroblock_type & 0xf] | (0x2<<6) |
+ mvfs_table[mb->motion_vertical_field_select & 3] |
+ ((cbp | ((cbp<<2) & 0x30))<<22);
+
+ dw1[1] = type_table[mb->macroblock_type & 0xf] | (0x3<<6) |
+ mvfs_table[mb->motion_vertical_field_select>>2] |
+ ((cbp | ((cbp<<2) & 0x30))<<22);
+
+
+ fmv.s[0] = mb->PMV[0][0][1]/2;
+ fmv.s[1] = mb->PMV[0][0][0];
+ fmv.s[2] = mb->PMV[1][0][1]/2;
+ fmv.s[3] = mb->PMV[1][0][0];
+
+ bmv.s[0] = mb->PMV[0][1][1]/2;
+ bmv.s[1] = mb->PMV[0][1][0];
+ bmv.s[2] = mb->PMV[1][1][1]/2;
+ bmv.s[3] = mb->PMV[1][1][0];
+
+ /*
+ The i810 cannot use DCT0 directly with field motion, we have to
+ interlace the data for it. We use a zero block when the CBP has
+ one half of the to-be-interlaced data but not the other half.
+ */
+ top_left_b = &empty_block[0];
+ if(cbp & 0x20) {
+ top_left_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ top_right_b = &empty_block[0];
+ if(cbp & 0x10) {
+ top_right_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ bottom_left_b = &empty_block[0];
+ if(cbp & 0x8) {
+ bottom_left_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ bottom_right_b = &empty_block[0];
+ if(cbp & 0x4) {
+ bottom_right_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ /* First Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[0];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[0];
+ *dy++ = bmv.u[0];
+ if(dw1[0] & (1<<27)) {
+ PACK_CORR_DATA_0to1(dy,top_left_b,bottom_left_b);
+ }
+ if(dw1[0] & (1<<26)) {
+ PACK_CORR_DATA_0to1(dy,top_right_b,bottom_right_b);
+ }
+
+ /* Second Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[1];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[1];
+ *dy++ = bmv.u[1];
+ if(dw1[1] & (1<<27)) {
+ top_left_b = (short *)((unsigned long)top_left_b + 16);
+ bottom_left_b = (short *)((unsigned long)bottom_left_b + 16);
+ PACK_CORR_DATA_0to1(dy,top_left_b,bottom_left_b);
+ }
+ if(dw1[1] & (1<<26)) {
+ top_right_b = (short *)((unsigned long)top_right_b + 16);
+ bottom_right_b = (short *)((unsigned long)bottom_right_b + 16);
+ PACK_CORR_DATA_0to1(dy,top_right_b,bottom_right_b);
+ }
+ /* End Y Blocks */
+
+ fmv.s[0] /= 2;
+ fmv.s[1] /= 2;
+ fmv.s[2] /= 2;
+ fmv.s[3] /= 2;
+
+ bmv.s[0] /= 2;
+ bmv.s[1] /= 2;
+ bmv.s[2] /= 2;
+ bmv.s[3] /= 2;
+
+ xy >>= 1;
+
+ /* U Blocks */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[0];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[0];
+ *du++ = bmv.u[0];
+ if(usize) {
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ }
+
+ /* Second U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[1];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[1];
+ *du++ = bmv.u[1];
+ if(usize) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End U Blocks */
+
+ /* V Blocks */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[0];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[0];
+ *dv++ = bmv.u[0];
+ if(vsize) {
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ }
+
+ /* Second V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[1];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[1];
+ *dv++ = bmv.u[1];
+ if(vsize) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End V Blocks */
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderFrameinFrame
+// Description: inline function that sets hardware parameters for a Frame
+// encoded macroblock in a frame picture.
+***************************************************************************/
+static __inline__ void renderFrameinFrame(uint **datay,uint **datau,
+ uint **datav,
+ XvMCMacroBlock *mb,short *block_ptr,
+ uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ su_t fmv;
+ su_t bmv;
+ /* gfxblock dword 1 */
+ uint dw1;
+
+ unsigned int ysize = y_frame_bytes[mb->coded_block_pattern];
+ unsigned int usize = u_frame_bytes[mb->coded_block_pattern];
+ unsigned int vsize = v_frame_bytes[mb->coded_block_pattern];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<4);
+
+ dw1 = type_table[mb->macroblock_type & 0xf] |
+ (((uint)mb->coded_block_pattern)<<22);
+
+
+ fmv.s[0] = mb->PMV[0][0][1];
+ fmv.s[1] = mb->PMV[0][0][0];
+
+ bmv.s[0] = mb->PMV[0][1][1];
+ bmv.s[1] = mb->PMV[0][1][0];
+
+ /* Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (3<<28) | dw1;
+ *dy++ = xy;
+ *dy++ = (16<<16) | 16;
+ *dy++ = fmv.u[0];
+ *dy++ = bmv.u[0];
+ PACK_CORR_DATA(dy,block_ptr,ysize);
+ block_ptr = (short *)((unsigned long)block_ptr + ysize);
+ /* End Y Blocks */
+
+ fmv.s[0] /= 2;
+ fmv.s[1] /= 2;
+
+ bmv.s[0] /= 2;
+ bmv.s[1] /= 2;
+
+ xy >>= 1;
+
+ /* U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1;
+ *du++ = xy;
+ *du++ = (8<<16) | 8;
+ *du++ = fmv.u[0];
+ *du++ = bmv.u[0];
+ PACK_CORR_DATA(du,block_ptr,usize);
+ block_ptr = (short *)((unsigned long)block_ptr + usize);
+ /* End U Block */
+
+ /* V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1;
+ *dv++ = xy;
+ *dv++ = (8<<16) | 8;
+ *dv++ = fmv.u[0];
+ *dv++ = bmv.u[0];
+ PACK_CORR_DATA(dv,block_ptr,vsize);
+ block_ptr = (short *)((unsigned long)block_ptr + vsize);
+ /* End V Block */
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderFrameinFrameDCT1
+// Description: inline function that sets hardware parameters for a Frame
+// encoded macroblock in a frame picture with DCT type 1.
+***************************************************************************/
+static __inline__ void renderFrameinFrameDCT1(uint **datay,uint **datau,
+ uint **datav,XvMCMacroBlock *mb,
+ short *block_ptr,uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ su_t fmv;
+ su_t bmv;
+
+ short * top_left_b = NULL;
+ short * top_right_b = NULL;
+ short * bottom_left_b = NULL;
+ short * bottom_right_b = NULL;
+
+ uint temp_bp = 0;
+
+ uint ysize = y_dct1_frame_bytes[mb->coded_block_pattern];
+ uint usize = u_frame_bytes[mb->coded_block_pattern];
+ uint vsize = v_frame_bytes[mb->coded_block_pattern];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<4);
+
+ uint dw1 = type_table[mb->macroblock_type & 0xf] |
+ (((uint)mb->coded_block_pattern)<<22);
+
+ fmv.s[0] = mb->PMV[0][0][1];
+ fmv.s[1] = mb->PMV[0][0][0];
+
+ bmv.s[0] = mb->PMV[0][1][1];
+ bmv.s[1] = mb->PMV[0][1][0];
+
+ /*
+ It is easiest to find out what blocks are in need of reading first
+ rather than as we go.
+ */
+ top_left_b = &empty_block[0];
+ if(dw1 & (1<<27)) {
+ temp_bp |= (1<<25);
+ top_left_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ top_right_b = &empty_block[0];
+ if(dw1 & (1<<26)) {
+ temp_bp |= (1<<24);
+ top_right_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ bottom_left_b = &empty_block[0];
+ if(dw1 & (1<<25)) {
+ temp_bp |= (1<<27);
+ bottom_left_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ bottom_right_b = &empty_block[0];
+ if(dw1 & (1<<24)) {
+ temp_bp |= (1<<26);
+ bottom_right_b = block_ptr;
+ block_ptr += 64;
+ }
+ dw1 |= temp_bp;
+
+ /* Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (3<<28) | dw1;
+ *dy++ = xy;
+ *dy++ = (16<<16) | 16;
+ *dy++ = fmv.u[0];
+ *dy++ = bmv.u[0];
+ if(dw1 & (1<<27)) {
+ PACK_CORR_DATA_1to0(dy,top_left_b,bottom_left_b);
+ top_left_b = (short *)((unsigned long)top_left_b + 64);
+ bottom_left_b = (short *)((unsigned long)bottom_left_b + 64);
+ }
+ if(dw1 & (1<<26)) {
+ PACK_CORR_DATA_1to0(dy,top_right_b,bottom_right_b);
+ top_right_b = (short *)((unsigned long)top_right_b + 64);
+ bottom_right_b = (short *)((unsigned long)bottom_right_b + 64);
+ }
+ if(dw1 & (1<<27)) {
+ PACK_CORR_DATA_1to0(dy,top_left_b,bottom_left_b);
+ }
+ if(dw1 & (1<<26)) {
+ PACK_CORR_DATA_1to0(dy,top_right_b,bottom_right_b);
+ }
+ /* End Y Block */
+
+ fmv.s[0] /= 2;
+ fmv.s[1] /= 2;
+
+ bmv.s[0] /= 2;
+ bmv.s[1] /= 2;
+
+ xy >>= 1;
+
+ /* U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1;
+ *du++ = xy;
+ *du++ = (8<<16) | 8;
+ *du++ = fmv.u[0];
+ *du++ = bmv.u[0];
+ PACK_CORR_DATA(du,block_ptr,usize);
+ block_ptr = (short *)((unsigned long)block_ptr + usize);
+
+ /* V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1;
+ *dv++ = xy;
+ *dv++ = (8<<16) | 8;
+ *dv++ = fmv.u[0];
+ *dv++ = bmv.u[0];
+ PACK_CORR_DATA(dv,block_ptr,vsize);
+ block_ptr = (short *)((unsigned long)block_ptr + vsize);
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderDualPrimeinFrame
+// Description: inline function that sets hardware parameters for a Dual
+// Prime encoded macroblock in a frame picture with dct 1.
+***************************************************************************/
+static __inline__ void renderDualPrimeinFrame(uint **datay,uint **datau,
+ uint **datav,XvMCMacroBlock *mb,
+ short *block_ptr,uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ su_t fmv;
+ su_t bmv;
+ /* gfxblock dword 1 */
+ uint dw1[2];
+
+ uint y1size = y_first_field_bytes[mb->coded_block_pattern];
+ uint y2size = y_second_field_bytes[mb->coded_block_pattern];
+ uint usize = u_field_bytes[mb->coded_block_pattern];
+ uint vsize = v_field_bytes[mb->coded_block_pattern];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<3);
+
+ /*
+ Past Surface (map 0) is used for same parity prediction,
+ Future surface (map 1) is used for opposite.
+ */
+ dw1[0] = (((uint)mb->coded_block_pattern)<<22) |
+ 3<<12 | 2<<6 | 2<<3 | 3;
+ dw1[1] = (((mb->coded_block_pattern & 0x3) |
+ ((mb->coded_block_pattern & 0xc)<<2))<<22) |
+ 3<<12 | 3<<6 | 3<<3 | 2;
+
+ fmv.s[0] = mb->PMV[0][0][1];
+ fmv.s[1] = mb->PMV[0][0][0];
+ bmv.s[0] = mb->PMV[1][0][1];
+ bmv.s[1] = mb->PMV[1][0][0];
+
+ fmv.s[2] = mb->PMV[0][0][1];
+ fmv.s[3] = mb->PMV[0][0][0];
+ bmv.s[2] = mb->PMV[1][1][1];
+ bmv.s[3] = mb->PMV[1][1][0];
+
+ /* First Y Block */
+ *dy++ = GFXBLOCK + 4 + (y1size>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[0];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[0];
+ *dy++ = bmv.u[0];;
+ PACK_CORR_DATA(dy,block_ptr,y1size);
+ block_ptr = (short *)((unsigned long)block_ptr + y1size);
+
+ /* Second Y Block */
+ *dy++ = GFXBLOCK + 4 + (y2size>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[1];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[1];
+ *dy++ = bmv.u[1];
+ PACK_CORR_DATA(dy,block_ptr,y2size);
+ block_ptr = (short *)((unsigned long)block_ptr + y2size);
+
+ fmv.s[0] /= 2;
+ fmv.s[1] /= 2;
+ bmv.s[0] /= 2;
+ bmv.s[1] /= 2;
+
+ fmv.s[2] /= 2;
+ fmv.s[3] /= 2;
+ bmv.s[2] /= 2;
+ bmv.s[3] /= 2;
+
+ xy >>= 1;
+
+ /* U Blocks */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[0];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[0];
+ *du++ = bmv.u[0];
+ if(dw1[0] & (1<<23)) {
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ }
+
+ /* Second U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[1];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[1];
+ *du++ = bmv.u[1];
+ if(dw1[1] & (1<<23)) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End U Blocks */
+
+ /* V Blocks */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[0];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[0];
+ *dv++ = bmv.u[0];
+ if(dw1[0] & (1<<22)) {
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ }
+
+ /* Second V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[1];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[1];
+ *dv++ = bmv.u[1];
+ if(dw1[1] & (1<<22)) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End V Blocks */
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+/***************************************************************************
+// Function: renderDualPrimeinFrameDCT0
+// Description: inline function that sets hardware parameters for a Dual
+// Prime encoded macroblock in a frame picture with dct 0.
+***************************************************************************/
+static __inline__ void renderDualPrimeinFrameDCT0(uint **datay,uint **datau,
+ uint **datav,
+ XvMCMacroBlock *mb,
+ short *block_ptr,
+ uint flags) {
+
+ register uint *dy = *datay;
+ register uint *du = *datau;
+ register uint *dv = *datav;
+
+ /* Motion Vectors */
+ su_t fmv;
+ su_t bmv;
+ /* gfxblock dword 1 */
+ uint dw1[2];
+
+ short * top_left_b = NULL;
+ short * top_right_b = NULL;
+ short * bottom_left_b = NULL;
+ short * bottom_right_b = NULL;
+
+ uint cbp = (uint)mb->coded_block_pattern;
+
+ uint ysize = y_dct0_field_bytes[cbp];
+ uint usize = u_field_bytes[cbp];
+ uint vsize = v_field_bytes[cbp];
+
+ uint xy = ((uint)mb->x<<20) | ((uint)mb->y<<3);
+
+ /*
+ Past Surface (map 0) is used for same parity prediction,
+ Future surface (map 1) is used for opposite.
+ */
+ dw1[0] = ((cbp | ((cbp<<2) & 0x30))<<22) |
+ 3<<12 | 2<<6 | 2<<3 | 3;
+ dw1[1] = ((cbp | ((cbp<<2) & 0x30))<<22) |
+ 3<<12 | 3<<6 | 3<<3 | 2;
+
+ fmv.s[0] = mb->PMV[0][0][1];
+ fmv.s[1] = mb->PMV[0][0][0];
+ bmv.s[0] = mb->PMV[1][0][1];
+ bmv.s[1] = mb->PMV[1][0][0];
+
+ fmv.s[2] = mb->PMV[0][0][1];
+ fmv.s[3] = mb->PMV[0][0][0];
+ bmv.s[2] = mb->PMV[1][1][1];
+ bmv.s[3] = mb->PMV[1][1][0];
+
+ /*
+ The i810 cannot use DCT0 directly with field motion, we have to
+ interlace the data for it. We use a zero block when the CBP has
+ one half of the to-be-interlaced data but not the other half.
+ */
+ top_left_b = &empty_block[0];
+ if(cbp & 0x20) {
+ top_left_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ top_right_b = &empty_block[0];
+ if(cbp & 0x10) {
+ top_right_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ bottom_left_b = &empty_block[0];
+ if(cbp & 0x8) {
+ bottom_left_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ bottom_right_b = &empty_block[0];
+ if(cbp & 0x4) {
+ bottom_right_b = block_ptr;
+ block_ptr += 64;
+ }
+
+ /* First Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[0];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[0];
+ *dy++ = bmv.u[0];
+ if(cbp & 0x20) {
+ PACK_CORR_DATA_0to1(dy,top_left_b,bottom_left_b);
+ }
+ if(cbp & 0x10) {
+ PACK_CORR_DATA_0to1(dy,top_right_b,bottom_right_b);
+ }
+
+ /* Second Y Block */
+ *dy++ = GFXBLOCK + 4 + (ysize>>2);
+ *dy++ = (1<<30) | (2<<28) | dw1[1];
+ *dy++ = xy;
+ *dy++ = (8<<16) | 16;
+ *dy++ = fmv.u[1];
+ *dy++ = bmv.u[1];
+ if(cbp & 0x20) {
+ top_left_b = (short *)((unsigned long)top_left_b + 16);
+ bottom_left_b = (short *)((unsigned long)bottom_left_b + 16);
+ PACK_CORR_DATA_0to1(dy,top_left_b,bottom_left_b);
+ }
+ if(cbp & 0x10) {
+ top_right_b = (short *)((unsigned long)top_right_b + 16);
+ bottom_right_b = (short *)((unsigned long)bottom_right_b + 16);
+ PACK_CORR_DATA_0to1(dy,top_right_b,bottom_right_b);
+ }
+ /* End Y Blocks */
+
+
+ fmv.s[0] /= 2;
+ fmv.s[1] /= 2;
+ bmv.s[0] /= 2;
+ bmv.s[1] /= 2;
+
+ fmv.s[2] /= 2;
+ fmv.s[3] /= 2;
+ bmv.s[2] /= 2;
+ bmv.s[3] /= 2;
+
+ xy >>= 1;
+
+ /* U Blocks */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[0];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[0];
+ *du++ = bmv.u[0];
+ if(cbp & (1<<23)) {
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ }
+
+ /* Second U Block */
+ *du++ = GFXBLOCK + 4 + (usize>>2);
+ *du++ = (2<<30) | (1<<28) | dw1[1];
+ *du++ = xy;
+ *du++ = (4<<16) | 8;
+ *du++ = fmv.u[1];
+ *du++ = bmv.u[1];
+ if(cbp & (1<<23)) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(du,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End U Blocks */
+
+ /* V Blocks */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[0];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[0];
+ *dv++ = bmv.u[0];
+ if(cbp & (1<<22)) {
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ }
+
+ /* Second V Block */
+ *dv++ = GFXBLOCK + 4 + (vsize>>2);
+ *dv++ = (3<<30) | (1<<28) | dw1[1];
+ *dv++ = xy;
+ *dv++ = (4<<16) | 8;
+ *dv++ = fmv.u[1];
+ *dv++ = bmv.u[1];
+ if(cbp & (1<<22)) {
+ block_ptr = (short *)((unsigned long)block_ptr + 16);
+ PACK_CORR_DATA_SHORT(dv,block_ptr);
+ block_ptr = (short *)((unsigned long)block_ptr + 112);
+ }
+ /* End V Blocks */
+
+ *datay = dy;
+ *datau = du;
+ *datav = dv;
+}
+
+
+/***************************************************************************
+// Function: XvMCRenderSurface
+// Description: This function does the actual HWMC. Given a list of
+// macroblock structures it dispatched the hardware commands to execute
+// them. DMA buffer containing Y data are dispatched as they fill up
+// U and V DMA buffers are queued until all Y's are done. This minimizes
+// the context flipping and flushing required when switching between Y
+// U and V surfaces.
+***************************************************************************/
+#define UV_QUEUE 14
+_X_EXPORT Status XvMCRenderSurface(Display *display, XvMCContext *context,
+ unsigned int picture_structure,
+ XvMCSurface *target_surface,
+ XvMCSurface *past_surface,
+ XvMCSurface *future_surface,
+ unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray *macroblock_array,
+ XvMCBlockArray *blocks) {
+ /* Dma Data Structures */
+ drmBufPtr pDMAy = NULL,pDMAu[UV_QUEUE],pDMAv[UV_QUEUE];
+ int u_index = 0,v_index = 0;
+ int dirty_context = 1;
+
+ /* Block Pointer */
+ short *block_ptr;
+ /* Current Macroblock Pointer */
+ XvMCMacroBlock *mb;
+
+ drm_i810_mc_t mc;
+ int i,j;
+ i810XvMCSurface *privTarget;
+ i810XvMCSurface *privFuture = NULL;
+ i810XvMCSurface *privPast = NULL;
+ i810XvMCContext *pI810XvMC;
+
+ /* DMA Pointers set to NULL */
+ uint *datay = NULL;
+ uint *datau = NULL;
+ uint *datav = NULL;
+
+
+ /* Check Parameters for validity */
+ if((target_surface == NULL) || (context == NULL) || (display == NULL)) {
+ printf("Error, Invalid Target,Context, or DIsplay!\n");
+ return BadValue;
+ }
+
+ if(num_macroblocks == 0) {return Success;}
+ if((macroblock_array == NULL) || (blocks == NULL)) {return BadValue;}
+ if(context->privData == NULL) {return BadValue;}
+ pI810XvMC = (i810XvMCContext *)context->privData;
+
+
+ if(target_surface->privData == NULL) {
+ printf("Error, Invalid Target Surface!\n");
+ return BadValue;
+ }
+ privTarget = (i810XvMCSurface *)target_surface->privData;
+
+ if(macroblock_array->num_blocks < (num_macroblocks + first_macroblock)) {
+ printf("Error, Too many macroblocks requested for MB array size.\n");
+ return BadValue;
+ }
+
+ /* Test For YV12 Surface */
+ if(context->surface_type_id != FOURCC_YV12) {
+ printf("Error, HWMC only possible on YV12 Surfaces\n");
+ return BadValue;
+ }
+
+ /* P Frame Test */
+ if(past_surface == NULL) {
+ /* Just to avoid some ifs later. */
+ privPast = privTarget;
+ }
+ else {
+ if(past_surface->privData == NULL) {
+ printf("Error, Invalid Past Surface!\n");
+ return BadValue;
+ }
+ privPast = (i810XvMCSurface *)past_surface->privData;
+ }
+
+
+ /* B Frame Test */
+ if(future_surface == NULL) {
+ privFuture = privTarget;
+ if(pI810XvMC->dual_prime) {
+ privFuture = privPast;
+ /* I810 Specific flag for marking when dual prime is in use. */
+ flags |= 0x40000000;
+ }
+
+ /*
+ References are different for the Second Field Picture. The
+ i810 needs to know if it is the second field picture in a
+ P picture. We use a Private flag to mark this.
+ */
+ if(flags & XVMC_SECOND_FIELD) {
+ /* I810 Specific flag for marking second fields. */
+ flags |= 0x80000000;
+ }
+ }
+ else {
+ if((future_surface->privData == NULL) || (past_surface == NULL)) {
+ printf("Error, Invalid Future Surface or No Past Surface!\n");
+ return BadValue;
+ }
+ privFuture = (i810XvMCSurface *)future_surface->privData;
+
+ /*
+ Undo Second Field flag since the second field in B frames is just like
+ the first.
+ */
+ flags &= ~0x80000000;
+ }
+
+ /* Lock For DMA */
+ I810_LOCK(pI810XvMC,0);
+
+ for(i=first_macroblock; i<(num_macroblocks + first_macroblock); i++) {
+ /* Set up values needed for each macroblock */
+ mb = &macroblock_array->macro_blocks[i];
+ block_ptr = &(blocks->blocks[mb->index<<6]);
+
+ /* Lockup can happen if the coordinates are too far out of range */
+ if(mb->x > target_surface->width>>4) {
+ mb->x = 0;
+ }
+ if(mb->y > target_surface->height>>4) {
+ mb->y = 0;
+ }
+
+ /* If buffers are almost full dispatch them */
+ if(datay) {
+ pDMAy->used = (unsigned long)datay - (unsigned long)pDMAy->address;
+ if(pDMAy->used > 3520) {
+ if(dirty_context) {
+ dispatchYContext(privTarget,privPast,privFuture,pI810XvMC);
+ }
+ dirty_context = 0;
+ mc.idx = pDMAy->idx;
+ mc.used = pDMAy->used;
+ datay = NULL;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+ } /* datay near full */
+ } /* if(datay) */
+ if(datau) {
+ pDMAu[u_index]->used = (unsigned long)datau - (unsigned long)pDMAu[u_index]->address;
+ if(pDMAu[u_index]->used > 3904) {
+ u_index++;
+ datau = NULL;
+ if(u_index == UV_QUEUE) {
+ for(j=0; j<UV_QUEUE; j++) {
+ mc.idx = pDMAu[j]->idx;
+ mc.used = pDMAu[j]->used;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+ }
+ u_index = 0;
+ dirty_context = 1;
+ } /* if(u_index == UV_QUEUE) */
+ } /* datau near full */
+ } /* if(datau) */
+ if(datav) {
+ pDMAv[v_index]->used = (unsigned long)datav - (unsigned long)pDMAv[v_index]->address;
+ if(pDMAv[v_index]->used > 3904) {
+ v_index++;
+ datav = NULL;
+ if(v_index == UV_QUEUE) {
+ for(j=0; j<UV_QUEUE; j++) {
+ mc.idx = pDMAv[j]->idx;
+ mc.used = pDMAv[j]->used;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+ }
+ v_index = 0;
+ dirty_context = 1;
+ } /* if(v_index == UV_QUEUE) */
+ } /* datav near full */
+ } /* if(datav) */
+
+ /* Allocate buffers if this is the first loop,or if we just dispatched */
+ if(datay == NULL) {
+ pDMAy = i810_get_free_buffer(pI810XvMC);
+ datay = pDMAy->address;
+ }/* if(datay == NULL) */
+ if(datau == NULL) {
+ pDMAu[u_index] = i810_get_free_buffer(pI810XvMC);
+ datau = pDMAu[u_index]->address;
+ if(u_index == 0) {
+ *datau++ = CMD_FLUSH;
+ *datau++ = BOOLEAN_ENA_2;
+ *datau++ = CMD_FLUSH;
+ *datau++ = DEST_BUFFER_INFO;
+ *datau++ = privTarget->dbi1u;
+ *datau++ = DEST_BUFFER_VAR;
+ *datau++ = privTarget->dbv1;
+ /* Past Surface */
+ *datau++ = CMD_MAP_INFO;
+ *datau++ = privPast->mi1u;
+ *datau++ = privPast->mi2u;
+ *datau++ = privPast->mi3u;
+ /* Future Surface */
+ *datau++ = CMD_MAP_INFO;
+ *datau++ = privFuture->mi1u | 0x1<<28;
+ *datau++ = privFuture->mi2u;
+ *datau++ = privFuture->mi3u;
+ }
+ } /* if(datau == NULL) */
+ if(datav == NULL) {
+ pDMAv[v_index] = i810_get_free_buffer(pI810XvMC);
+ datav = pDMAv[v_index]->address;
+ if(v_index == 0) {
+ *datav++ = CMD_FLUSH;
+ *datav++ = BOOLEAN_ENA_2;
+ *datav++ = CMD_FLUSH;
+ *datav++ = DEST_BUFFER_INFO;
+ *datav++ = privTarget->dbi1v;
+ *datav++ = DEST_BUFFER_VAR;
+ *datav++ = privTarget->dbv1;
+ /* Past Surface */
+ *datav++ = CMD_MAP_INFO;
+ *datav++ = privPast->mi1v;
+ *datav++ = privPast->mi2v;
+ *datav++ = privPast->mi3v;
+ /* Future Surface */
+ *datav++ = CMD_MAP_INFO;
+ *datav++ = privFuture->mi1v | 0x1<<28;
+ *datav++ = privFuture->mi2v;
+ *datav++ = privFuture->mi3v;
+ }
+ }/* if(datav == NULL) */
+
+ /* Catch no pattern case */
+ if(!(mb->macroblock_type & 0x8)) {
+ mb->coded_block_pattern = 0;
+ }
+
+
+ if(mb->motion_type == XVMC_PREDICTION_DUAL_PRIME) {
+ /*
+ By default the maps will not be set up for dual
+ prime. We have to change them.
+ */
+ if(!pI810XvMC->dual_prime) {
+ pI810XvMC->dual_prime = 1;
+ privFuture = privPast;
+ /* Y */
+ *datay++ = CMD_MAP_INFO;
+ *datay++ = privFuture->mi1y | 0x1<<28;
+ *datay++ = privFuture->mi2y;
+ *datay++ = privFuture->mi3y;
+ /* U */
+ *datau++ = CMD_MAP_INFO;
+ *datau++ = privFuture->mi1u | 0x1<<28;
+ *datau++ = privFuture->mi2u;
+ *datau++ = privFuture->mi3u;
+ /* V */
+ *datav++ = CMD_MAP_INFO;
+ *datav++ = privFuture->mi1v | 0x1<<28;
+ *datav++ = privFuture->mi2v;
+ *datav++ = privFuture->mi3v;
+ }
+ }
+ if((pI810XvMC->dual_prime) &&
+ (mb->motion_type != XVMC_PREDICTION_DUAL_PRIME)) {
+ pI810XvMC->dual_prime = 0;
+ privFuture = privTarget;
+ /* Y */
+ *datay++ = CMD_MAP_INFO;
+ *datay++ = privFuture->mi1y | 0x1<<28;
+ *datay++ = privFuture->mi2y;
+ *datay++ = privFuture->mi3y;
+ /* U */
+ *datau++ = CMD_MAP_INFO;
+ *datau++ = privFuture->mi1u | 0x1<<28;
+ *datau++ = privFuture->mi2u;
+ *datau++ = privFuture->mi3u;
+ /* V */
+ *datav++ = CMD_MAP_INFO;
+ *datav++ = privFuture->mi1v | 0x1<<28;
+ *datav++ = privFuture->mi2v;
+ *datav++ = privFuture->mi3v;
+ }
+
+
+ /* Frame Picture */
+ if((picture_structure & XVMC_FRAME_PICTURE) == XVMC_FRAME_PICTURE) {
+ /* Intra Blocks */
+ if(mb->macroblock_type & XVMC_MB_TYPE_INTRA) {
+ if(mb->dct_type) {
+ renderIntrainFrameDCT1(&datay,&datau,&datav,mb,block_ptr,flags);
+ continue;
+ }
+ renderIntrainFrame(&datay,&datau,&datav,mb,block_ptr);
+ continue;
+ }
+ switch((mb->motion_type & 0x3) | (mb->dct_type<<2)) {
+ case 0x2: /* Frame DCT0 */
+ renderFrameinFrame(&datay,&datau,&datav,mb,block_ptr,flags);
+ continue;
+ case 0x5: /* Field DCT1 */
+ renderFieldinFrame(&datay,&datau,&datav,mb,block_ptr,flags);
+ continue;
+ case 0x6: /* Frame DCT1 */
+ renderFrameinFrameDCT1(&datay,&datau,&datav,mb,block_ptr,flags);
+ continue;
+ case 0x1: /* Field DCT0 */
+ renderFieldinFrameDCT0(&datay,&datau,&datav,mb,block_ptr,flags);
+ continue;
+ case 0x3: /* Dual Prime DCT0 */
+ renderDualPrimeinFrame(&datay,&datau,&datav,mb,block_ptr,flags);
+ continue;
+ case 0x7: /* Dual Prime DCT1 */
+ renderDualPrimeinFrameDCT0(&datay,&datau,&datav,mb,block_ptr,flags);
+ continue;
+ default: /* No Motion Type */
+ renderError();
+ continue;
+ } /* Switch */
+ } /* Frame Picture */
+
+ /* Field Pictures */
+ if(mb->macroblock_type & XVMC_MB_TYPE_INTRA) {
+ renderIntrainField(&datay,&datau,&datav,mb,block_ptr,picture_structure);
+ continue;
+ }
+ switch(mb->motion_type & 0x3) {
+ case 0x1: /* Field Motion */
+ renderFieldinField(&datay,&datau,&datav,mb,block_ptr,picture_structure,
+ flags);
+ continue;
+ case 0x2: /* 16x8 Motion */
+ render16x8inField(&datay,&datau,&datav,mb,block_ptr,picture_structure,
+ flags);
+ continue;
+ case 0x3: /* Dual Prime */
+ renderDualPrimeinField(&datay,&datau,&datav,mb,block_ptr,
+ picture_structure,flags);
+ continue;
+ default: /* No Motion Type */
+ renderError();
+ continue;
+ }
+ continue;
+
+ } /* for each Macroblock */
+
+ /* Dispatch remaining DMA buffers */
+ if(dirty_context) {
+ dispatchYContext(privTarget,privPast,privFuture,pI810XvMC);
+ }
+ mc.idx = pDMAy->idx;
+ mc.used = (unsigned long)datay - (unsigned long)pDMAy->address;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+
+ pDMAu[u_index]->used = (unsigned long)datau - (unsigned long)pDMAu[u_index]->address;
+ for(j=0; j<=u_index; j++) {
+ mc.idx = pDMAu[j]->idx;
+ mc.used = pDMAu[j]->used;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+ }
+ pDMAv[v_index]->used = (unsigned long)datav - (unsigned long)pDMAv[v_index]->address;
+ for(j=0; j<=v_index; j++) {
+ mc.idx = pDMAv[j]->idx;
+ mc.used = pDMAv[j]->used;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+ }
+
+ I810_UNLOCK(pI810XvMC);
+
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCPutSurface
+// Description:
+// Arguments:
+// display: Connection to X server
+// surface: Surface to be displayed
+// draw: X Drawable on which to display the surface
+// srcx: X coordinate of the top left corner of the region to be
+// displayed within the surface.
+// srcy: Y coordinate of the top left corner of the region to be
+// displayed within the surface.
+// srcw: Width of the region to be displayed.
+// srch: Height of the region to be displayed.
+// destx: X cordinate of the top left corner of the destination region
+// in the drawable coordinates.
+// desty: Y cordinate of the top left corner of the destination region
+// in the drawable coordinates.
+// destw: Width of the destination region.
+// desth: Height of the destination region.
+// flags: One or more of the following.
+// XVMC_TOP_FIELD - Display only the Top field of the surface.
+// XVMC_BOTTOM_FIELD - Display only the Bottom Field of the surface.
+// XVMC_FRAME_PICTURE - Display both fields or frame.
+//
+// Info: Portions of this function derived from i810_video.c (XFree86)
+//
+// This function is organized so that we wait as long as possible before
+// touching the overlay registers. Since we don't know that the last
+// flip has happened yet we want to give the overlay as long as
+// possible to catch up before we have to check on its progress. This
+// makes it unlikely that we have to wait on the last flip.
+***************************************************************************/
+_X_EXPORT Status XvMCPutSurface(Display *display,XvMCSurface *surface,
+ Drawable draw, short srcx, short srcy,
+ unsigned short srcw, unsigned short srch,
+ short destx, short desty,
+ unsigned short destw, unsigned short desth,
+ int flags) {
+ i810XvMCContext *pI810XvMC;
+ i810XvMCSurface *pI810Surface;
+ i810OverlayRecPtr pORegs;
+ unsigned int ysrc_offset,uvsrc_offset;
+ Box extents;
+ uint window_width,window_height;
+ unsigned int xscaleInt = 0,xscaleFract = 0,yscaleInt = 0,yscaleFract = 0;
+ unsigned int xscaleFractUV = 0,xscaleIntUV = 0,yscaleFractUV = 0;
+ unsigned int yscaleIntUV = 0,yPitch = 0,uvPitch = 0;
+ unsigned int ovcmd = 0;
+ uint d;
+ double xscale,yscale;
+ int diff;
+ int clipped_srcx, clipped_srcy, clipped_destx, clipped_desty;
+ int clipped_srcw, clipped_srch, clipped_destw, clipped_desth;
+ uint x1,y1,root_width,root_height;
+ int x2 = 0, y2 = 0,unused;
+ uint nChilds;
+ int stat;
+ Window win,root,parent,*pChilds;
+
+
+ if((display == NULL) || (surface == NULL)) {
+ return BadValue;
+ }
+
+ if(surface->privData == NULL) {
+ return (error_base + XvMCBadSurface);
+ }
+ pI810Surface = (i810XvMCSurface *)surface->privData;
+ pI810XvMC = (i810XvMCContext *)pI810Surface->privContext;
+ pORegs = (i810OverlayRecPtr)pI810XvMC->oregs;
+
+
+ switch(surface->surface_type_id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ yPitch = (srcw + 7) & ~7;
+ uvPitch = ((srcw>>1) + 7) & ~7;
+ if((flags & XVMC_FRAME_PICTURE) != XVMC_FRAME_PICTURE) {
+ srch = srch>>1;
+ }
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ /* FIXME: Non Planar not fully implemented. */
+ return BadValue;
+ yPitch = ((srcw + 7) & ~7) << 1;
+ break;
+ }/* switch(surface->surface_type_id) */
+
+ /*
+ FIXME: This should be using the DRI's clip rect but that isn't
+ all hooked up yet. This has some latency but we get by.
+ */
+ win = draw;
+ XQueryTree(display,win,&root,&parent,&pChilds,&nChilds);
+ if(nChilds) XFree(pChilds);
+ XGetGeometry(display,win, &root, &x2, &y2, &window_width,
+ &window_height, &d, &d);
+ x1 = x2;
+ y1 = y2;
+ win = parent;
+ do {
+ XQueryTree(display,win,&root,&parent,&pChilds,&nChilds);
+ if(nChilds) XFree(pChilds);
+ XGetGeometry(display,win, &root, &x2, &y2, &d, &d, &d, &d);
+ x1 += x2;
+ y1 += y2;
+ win = parent;
+ }while(win != root);
+ XGetGeometry(display,root, &root, &unused, &unused,
+ &root_width, &root_height, &d, &d);
+
+ /* Left edge of Video window clipped to screen */
+ extents.x1 = 0;
+ if(x1 > extents.x1) {
+ extents.x1 = x1;
+ }
+ /* Right edge of Video window clipped to screen */
+ extents.x2 = root_width;
+ if(extents.x2 > (x1 + window_width)) {
+ extents.x2 = x1 + window_width;
+ }
+ /* Top edge of Video window clipped to screen */
+ extents.y1 = 0;
+ if(y1 > extents.y1) {
+ extents.y1 = y1;
+ }
+ /* Bottom edge of Video window clipped to screen */
+ extents.y2 = root_height;
+ if(extents.y2 > (y1 + window_height)) {
+ extents.y2 = y1 + window_height;
+ }
+
+ /*
+ Clipping is more difficult than is seems. We need to keep the
+ scaling factors even if the destination window needs to be clipped.
+ We clip the destination window first then apply a scaled version
+ to the source window.
+ */
+
+ /* Put destination coords in screen coords */
+ destx += x1;
+ desty += y1;
+
+ /* Scale factors requested */
+ xscale = (double)srcw / (double)destw;
+ yscale = (double)srch / (double)desth;
+
+ /*
+ If destination window needs to be clipped we actually adjust both
+ the src and dest window so as to keep the scaling that was requested
+ */
+ clipped_srcx = srcx;
+ clipped_srcy = srcy;
+ clipped_destx = destx;
+ clipped_desty = desty;
+ clipped_srcw = srcw;
+ clipped_srch = srch;
+ clipped_destw = destw;
+ clipped_desth = desth;
+
+ /* Clip to the source surface boundaries */
+ if(clipped_srcx < 0) {
+ clipped_destx += (0 - clipped_srcx) / xscale;
+ clipped_srcw -= clipped_srcx;
+ clipped_destw -= clipped_srcx / xscale;
+ clipped_srcx = 0;
+ }
+ if((clipped_srcw + clipped_srcx) > surface->width) {
+ clipped_srcw = surface->width - clipped_srcx;
+ clipped_destw -= (clipped_srcw - srcw) / xscale;
+ }
+ if(clipped_srcy < 0) {
+ clipped_desty += (0 - clipped_srcy) / yscale;
+ clipped_srch -= clipped_srcy;
+ clipped_desth -= clipped_srcy / yscale;
+ clipped_srcy = 0;
+ }
+ if((clipped_srch + clipped_srcy) > surface->height) {
+ clipped_srch = surface->height - clipped_srcy;
+ clipped_desth -= (clipped_srch - srch) / yscale;
+ }
+
+ /* Clip to the extents */
+ if(clipped_destx < extents.x1) {
+ diff = extents.x1 - clipped_destx;
+ clipped_srcx += diff * xscale;
+ clipped_srcw -= diff * xscale;
+ clipped_destw -= diff;
+ clipped_destx = extents.x1;
+ }
+
+ diff = (clipped_destx + clipped_destw) - extents.x2;
+ if(diff > 0) {
+ clipped_destw -= diff;
+ clipped_srcw -= diff * xscale;
+ }
+
+ if(clipped_desty < extents.y1) {
+ diff = extents.y1 - clipped_desty;
+ clipped_srcy += diff * yscale;
+ clipped_srch -= diff * yscale;
+ clipped_desth -= diff;
+ clipped_desty = 0;
+ }
+
+ diff = (clipped_desty + clipped_desth) - extents.y2;
+ if(diff > 0) {
+ clipped_desth -= diff;
+ clipped_srch -= diff * yscale;
+ }
+
+ /* If the whole window is clipped turn off the overlay */
+ if((clipped_destx + clipped_destw < extents.x1) ||
+ (clipped_desty + clipped_desth < extents.y1) ||
+ (clipped_destx > extents.x2) ||
+ (clipped_desty > extents.y2)) {
+ return XvMCHideSurface(display, surface);
+ }
+
+ /*
+ Adjust the source offset width and height according to the clipped
+ destination window.
+ */
+ ysrc_offset = ((clipped_srcx + 1) & ~1) +
+ ((clipped_srcy + 1) & ~1) * (1<<pI810Surface->pitch);
+ uvsrc_offset = (clipped_srcx>>1) +
+ (clipped_srcy>>1) * (1<<(pI810Surface->pitch - 1));
+
+ /*
+ Initially, YCbCr and Overlay Enable and
+ vertical chrominance up interpolation and horozontal chrominance
+ up interpolation
+ */
+ ovcmd = VC_UP_INTERPOLATION | HC_UP_INTERPOLATION |
+ Y_ADJUST | OVERLAY_ENABLE;
+
+ if ((clipped_destw != clipped_srcw) ||
+ (clipped_desth != clipped_srch)) {
+ xscaleInt = (clipped_srcw / clipped_destw) & 0x3;
+ xscaleFract = (clipped_srcw << 12) / clipped_destw;
+ yscaleInt = (clipped_srch / clipped_desth) & 0x3;
+ yscaleFract = (clipped_srch << 12) / clipped_desth;
+
+ if (clipped_destw > clipped_srcw) {
+ /* horizontal up-scaling */
+ ovcmd &= ~HORIZONTAL_CHROMINANCE_FILTER;
+ ovcmd &= ~HORIZONTAL_LUMINANCE_FILTER;
+ ovcmd |= (HC_UP_INTERPOLATION | HL_UP_INTERPOLATION);
+ }
+
+ if (clipped_desth > clipped_srch) {
+ /* vertical up-scaling */
+ ovcmd &= ~VERTICAL_CHROMINANCE_FILTER;
+ ovcmd &= ~VERTICAL_LUMINANCE_FILTER;
+ ovcmd |= (VC_UP_INTERPOLATION | VL_UP_INTERPOLATION);
+ }
+
+ if (clipped_destw < clipped_srcw) {
+ /* horizontal down-scaling */
+ ovcmd &= ~HORIZONTAL_CHROMINANCE_FILTER;
+ ovcmd &= ~HORIZONTAL_LUMINANCE_FILTER;
+ ovcmd |= (HC_DOWN_INTERPOLATION | HL_DOWN_INTERPOLATION);
+ }
+
+ if (clipped_desth < clipped_srch) {
+ /* vertical down-scaling */
+ ovcmd &= ~VERTICAL_CHROMINANCE_FILTER;
+ ovcmd &= ~VERTICAL_LUMINANCE_FILTER;
+ ovcmd |= (VC_DOWN_INTERPOLATION | VL_DOWN_INTERPOLATION);
+ }
+
+ /* now calculate the UV scaling factor */
+ if (xscaleFract) {
+ xscaleFractUV = xscaleFract >> MINUV_SCALE;
+ ovcmd &= ~HC_DOWN_INTERPOLATION;
+ ovcmd |= HC_UP_INTERPOLATION;
+ }
+
+ if (xscaleInt) {
+ xscaleIntUV = xscaleInt >> MINUV_SCALE;
+ if (xscaleIntUV) {
+ ovcmd &= ~HC_UP_INTERPOLATION;
+ }
+ }
+
+ if (yscaleFract) {
+ yscaleFractUV = yscaleFract >> MINUV_SCALE;
+ ovcmd &= ~VC_DOWN_INTERPOLATION;
+ ovcmd |= VC_UP_INTERPOLATION;
+ }
+
+ if (yscaleInt) {
+ yscaleIntUV = yscaleInt >> MINUV_SCALE;
+ if (yscaleIntUV) {
+ ovcmd &= ~VC_UP_INTERPOLATION;
+ ovcmd |= VC_DOWN_INTERPOLATION;
+ }
+ }
+
+ }/* if((destw != srcw) || (desth != srch)) */
+
+ /* Lock the DRM */
+ I810_LOCK(pI810XvMC,0);
+
+ /* Block until rendering on this surface is finished */
+ stat = XVMC_RENDERING;
+ while(stat & XVMC_RENDERING) {
+ XvMCGetSurfaceStatus(display,surface,&stat);
+ }
+ /* Block until the last flip is finished */
+ if(pI810XvMC->last_flip) {
+ BLOCK_OVERLAY(pI810XvMC,pI810XvMC->current);
+ }
+
+ pI810XvMC->current = !pI810XvMC->current;
+ pORegs->OV0CMD = ovcmd;
+
+ if ((clipped_destw != clipped_srcw) ||
+ (clipped_desth != clipped_srch)) {
+ pORegs->YRGBSCALE = (xscaleInt << 15) |
+ ((xscaleFract & 0xFFF) << 3) | (yscaleInt) |
+ ((yscaleFract & 0xFFF) << 20);
+
+ pORegs->UVSCALE = yscaleIntUV | ((xscaleFractUV & 0xFFF) << 3) |
+ ((yscaleFractUV & 0xFFF) << 20);
+ }
+ else {
+ /* Normal 1:1 scaling */
+ pORegs->YRGBSCALE = 0x80004000;
+ pORegs->UVSCALE = 0x80004000;
+ }
+
+ pORegs->SHEIGHT = clipped_srch | (clipped_srch << 15);
+ pORegs->DWINPOS = (clipped_desty << 16) | clipped_destx;
+ pORegs->DWINSZ = ((clipped_desth<< 16) | (clipped_destw));
+
+ /* Attributes */
+ pORegs->OV0CLRC0 = ((pI810XvMC->contrast & 0x1ff)<<8) |
+ (pI810XvMC->brightness & 0xff);
+ pORegs->OV0CLRC1 = (pI810XvMC->saturation & 0x3ff);
+
+ /* Destination Colorkey Setup */
+ pI810XvMC->oregs->DCLRKV = RGB16ToColorKey(pI810XvMC->colorkey);
+
+ /* buffer locations, add the offset from the clipping */
+ if(pI810XvMC->current) {
+ pORegs->OBUF_1Y = (unsigned long)pI810Surface->offset +
+ (unsigned long)pI810Surface->offsets[0] + ysrc_offset;
+ pORegs->OBUF_1V = (unsigned long)pI810Surface->offset +
+ (unsigned long)pI810Surface->offsets[2] + uvsrc_offset;
+ pORegs->OBUF_1U = (unsigned long)pI810Surface->offset +
+ (unsigned long)pI810Surface->offsets[1] + uvsrc_offset;
+ }
+ else {
+ pORegs->OBUF_0Y = (unsigned long)pI810Surface->offset +
+ (unsigned long)pI810Surface->offsets[0] + ysrc_offset;
+ pORegs->OBUF_0V = (unsigned long)pI810Surface->offset +
+ (unsigned long)pI810Surface->offsets[2] + uvsrc_offset;
+ pORegs->OBUF_0U = (unsigned long)pI810Surface->offset +
+ (unsigned long)pI810Surface->offsets[1] + uvsrc_offset;
+ }
+
+ switch(surface->surface_type_id) {
+ case FOURCC_YV12:
+ case FOURCC_I420:
+ pORegs->SWID = (uvPitch << 16) | yPitch;
+ pORegs->SWIDQW = (uvPitch << 13) | (yPitch >> 3);
+ pORegs->OV0STRIDE = (1<<pI810Surface->pitch) |
+ ((1<<pI810Surface->pitch) << 15);
+ pORegs->OV0CMD &= ~SOURCE_FORMAT;
+ pORegs->OV0CMD |= YUV_420;
+ if((flags & XVMC_FRAME_PICTURE) != XVMC_FRAME_PICTURE) {
+ /* Top Field Only */
+ if(flags & XVMC_TOP_FIELD) {
+ if(pI810XvMC->current == 1) {
+ pORegs->OV0CMD |= (VERTICAL_PHASE_BOTH | FLIP_TYPE_FIELD |
+ BUFFER1_FIELD0);
+ }
+ else {
+ pORegs->OV0CMD |= (VERTICAL_PHASE_BOTH | FLIP_TYPE_FIELD |
+ BUFFER0_FIELD0);
+ }
+ pORegs->YRGB_VPH = 1<<15 | 1<<31;
+ pORegs->UV_VPH = 3<<14 | 3<<30;
+ pORegs->INIT_PH = 0x06 | 0x18;
+ }
+ /* Bottom Field Only */
+ else {
+ if(pI810XvMC->current == 1) {
+ pORegs->OV0CMD |= (VERTICAL_PHASE_BOTH | FLIP_TYPE_FIELD |
+ BUFFER1_FIELD1);
+ }
+ else {
+ pORegs->OV0CMD |= (VERTICAL_PHASE_BOTH | FLIP_TYPE_FIELD |
+ BUFFER0_FIELD1);
+ }
+ pORegs->YRGB_VPH = 0;
+ pORegs->UV_VPH = 7<<29 | 7<<13;
+ pORegs->INIT_PH = 0x06;
+ }
+ }
+ /* Frame Picture */
+ else {
+ if(pI810XvMC->current == 1) {
+ pORegs->OV0CMD |= BUFFER1_FIELD0;
+ }
+ else {
+ pORegs->OV0CMD |= BUFFER0_FIELD0;
+ }
+ pORegs->YRGB_VPH = 0;
+ pORegs->UV_VPH = 0;
+ pORegs->INIT_PH = 0;
+ }
+ break;
+ case FOURCC_UYVY:
+ case FOURCC_YUY2:
+ default:
+ pORegs->SWID = srcw;
+ pORegs->SWIDQW = srcw >> 3;
+ pORegs->OV0STRIDE = pI810Surface->pitch;
+ pORegs->OV0CMD &= ~SOURCE_FORMAT;
+ pORegs->OV0CMD |= YUV_422;
+ pORegs->OV0CMD &= ~OV_BYTE_ORDER;
+ if (surface->surface_type_id == FOURCC_UYVY) {
+ pORegs->OV0CMD |= Y_SWAP;
+ }
+
+ pORegs->OV0CMD &= ~BUFFER_AND_FIELD;
+ if(pI810XvMC->current == 1) {
+ pORegs->OV0CMD |= BUFFER1_FIELD0;
+ }
+ else {
+ pORegs->OV0CMD |= BUFFER0_FIELD0;
+ }
+
+ break;
+ } /* switch(surface->surface_type_id) */
+
+
+
+ OVERLAY_FLIP(pI810XvMC);
+
+ /*
+ The Overlay only flips when it knows you changed
+ something. So the first time change stuff while it
+ is watching to be sure.
+ */
+ if(!pI810XvMC->last_flip) {
+ pORegs->OV0CMD &= ~0x4;
+ if(pI810XvMC->current == 1) {
+ pORegs->OV0CMD |= BUFFER1_FIELD0;
+ }
+ else {
+ pORegs->OV0CMD |= BUFFER0_FIELD0;
+ }
+ }
+ pI810Surface->last_flip = ++pI810XvMC->last_flip;
+ I810_UNLOCK(pI810XvMC);
+
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCSyncSurface
+// Arguments:
+// display - Connection to the X server
+// surface - The surface to synchronize
+// Info:
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCSyncSurface(Display *display,XvMCSurface *surface) {
+ Status ret;
+ int stat=0;
+ /*
+ FIXME: Perhaps a timer here to prevent lockup?
+ FIXME: Perhaps a usleep to not be busy waiting?
+ */
+ do {
+ ret = XvMCGetSurfaceStatus(display,surface,&stat);
+ }while(!ret && (stat & XVMC_RENDERING));
+ return ret;
+}
+
+/***************************************************************************
+// Function: XvMCFlushSurface
+// Description:
+// This function commits pending rendering requests to ensure that they
+// wll be completed in a finite amount of time.
+// Arguments:
+// display - Connection to X server
+// surface - Surface to flush
+// Info:
+// This command is a noop for i810 becuase we always dispatch buffers in
+// render. There is little gain to be had with 4k buffers.
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCFlushSurface(Display * display, XvMCSurface *surface) {
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCGetSurfaceStatus
+// Description:
+// Arguments:
+// display: connection to X server
+// surface: The surface to query
+// stat: One of the Following
+// XVMC_RENDERING - The last XvMCRenderSurface command has not
+// completed.
+// XVMC_DISPLAYING - The surface is currently being displayed or a
+// display is pending.
+***************************************************************************/
+_X_EXPORT Status XvMCGetSurfaceStatus(Display *display, XvMCSurface *surface,
+ int *stat) {
+ i810XvMCSurface *privSurface;
+ i810XvMCContext *pI810XvMC;
+ int temp;
+
+ if((display == NULL) || (surface == NULL) || (stat == NULL)) {
+ return BadValue;
+ }
+ if(surface->privData == NULL) {
+ return BadValue;
+ }
+ *stat = 0;
+ privSurface = surface->privData;
+
+ pI810XvMC = privSurface->privContext;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadSurface);
+ }
+
+ I810_LOCK(pI810XvMC,0);
+ if(privSurface->last_flip) {
+ /* This can not happen */
+ if(pI810XvMC->last_flip < privSurface->last_flip) {
+ printf("Error: Context last flip is less than surface last flip.\n");
+ return BadValue;
+ }
+ /*
+ If the context has 2 or more flips after this surface it
+ cannot be displaying. Don't bother to check.
+ */
+ if(!(pI810XvMC->last_flip > (privSurface->last_flip + 1))) {
+ /*
+ If this surface was the last flipped it is either displaying
+ or about to be so don't bother checking.
+ */
+ if(pI810XvMC->last_flip == privSurface->last_flip) {
+ *stat |= XVMC_DISPLAYING;
+ }
+ else {
+ /*
+ In this case there has been one more flip since our surface's
+ but we need to check if it is finished or not.
+ */
+ temp = GET_FSTATUS(pI810XvMC);
+ if(((temp & (1<<20))>>20) != pI810XvMC->current) {
+ *stat |= XVMC_DISPLAYING;
+ }
+ }
+ }
+ }
+
+ if(privSurface->last_render &&
+ (privSurface->last_render > GET_RSTATUS(pI810XvMC))) {
+ *stat |= XVMC_RENDERING;
+ }
+ I810_UNLOCK(pI810XvMC);
+
+ return Success;
+}
+
+/***************************************************************************
+//
+// Surface manipulation functions
+//
+***************************************************************************/
+
+/***************************************************************************
+// Function: XvMCHideSurface
+// Description: Stops the display of a surface.
+// Arguments:
+// display - Connection to the X server.
+// surface - surface to be hidden.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCHideSurface(Display *display, XvMCSurface *surface) {
+ i810XvMCSurface *pI810Surface;
+ i810XvMCContext *pI810XvMC;
+ int ss, xx;
+
+ /* Did we get a good display and surface passed into us? */
+ if(display == NULL) {
+ return BadValue;
+ }
+
+ if(surface == NULL) {
+ return (error_base + XvMCBadSurface);
+ }
+
+ XvMCSyncSurface(display, surface);
+
+ /* Get surface private data pointer */
+ if(surface->privData == NULL) {
+ return (error_base + XvMCBadSurface);
+ }
+ pI810Surface = (i810XvMCSurface *)surface->privData;
+
+ /*
+ Get the status of the surface, if it is not currently displayed
+ we don't need to worry about it.
+ */
+ if((xx = XvMCGetSurfaceStatus(display, surface, &ss)) != Success) {
+ return xx;
+ }
+ if(! (ss & XVMC_DISPLAYING)) {
+ return Success;
+ }
+
+ /* Get the associated context pointer */
+ pI810XvMC = (i810XvMCContext *)pI810Surface->privContext;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadSurface);
+ }
+
+ if(pI810XvMC->last_flip) {
+ I810_LOCK(pI810XvMC,DRM_LOCK_QUIESCENT);
+
+ /* Make sure last flip is done */
+ BLOCK_OVERLAY(pI810XvMC,pI810XvMC->current);
+
+ /* Set the registers to turn the overlay off */
+ pI810XvMC->oregs->OV0CMD = VC_UP_INTERPOLATION | HC_UP_INTERPOLATION |
+ Y_ADJUST;
+ pI810XvMC->current = !pI810XvMC->current;
+ if(pI810XvMC->current == 1) {
+ pI810XvMC->oregs->OV0CMD |= BUFFER1_FIELD0;
+ }
+ else {
+ pI810XvMC->oregs->OV0CMD |= BUFFER0_FIELD0;
+ }
+ OVERLAY_FLIP(pI810XvMC);
+ /*
+ Increment the context flip but not the surface. This way no
+ surface has the last flip #.
+ */
+ pI810XvMC->last_flip++;
+
+
+ /* Now wait until the hardware reads the registers and makes the change. */
+ BLOCK_OVERLAY(pI810XvMC,pI810XvMC->current)
+
+ I810_UNLOCK(pI810XvMC);
+ }
+
+ return Success;
+}
+
+
+
+
+/***************************************************************************
+//
+// Functions that deal with subpictures
+//
+***************************************************************************/
+
+
+
+/***************************************************************************
+// Function: XvMCCreateSubpicture
+// Description: This creates a subpicture by filling out the XvMCSubpicture
+// structure passed to it and returning Success.
+// Arguments:
+// display - Connection to the X server.
+// context - The context to create the subpicture for.
+// subpicture - Pre-allocated XvMCSubpicture structure to be filled in.
+// width - of subpicture
+// height - of subpicture
+// xvimage_id - The id describing the XvImage format.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCCreateSubpicture(Display *display, XvMCContext *context,
+ XvMCSubpicture *subpicture,
+ unsigned short width, unsigned short height,
+ int xvimage_id) {
+ i810XvMCContext *pI810XvMC;
+ i810XvMCSubpicture *pI810Subpicture;
+ int priv_count;
+ uint *priv_data;
+ Status ret;
+
+ if((subpicture == NULL) || (context == NULL) || (display == NULL)){
+ return BadValue;
+ }
+
+ pI810XvMC = (i810XvMCContext *)context->privData;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+
+
+ subpicture->context_id = context->context_id;
+ subpicture->xvimage_id = xvimage_id;
+
+ /* These need to be checked to make sure they are not too big! */
+ subpicture->width = width;
+ subpicture->height = height;
+
+ subpicture->privData =
+ (i810XvMCSubpicture *)malloc(sizeof(i810XvMCSubpicture));
+
+ if(!subpicture->privData) {
+ return BadAlloc;
+ }
+ pI810Subpicture = (i810XvMCSubpicture *)subpicture->privData;
+
+
+ if((ret = _xvmc_create_subpicture(display, context, subpicture,
+ &priv_count, &priv_data))) {
+ printf("Unable to create XvMCSubpicture.\n");
+ return ret;
+ }
+
+ if(priv_count != 1) {
+ printf("_xvmc_create_subpicture() returned incorrect data size.\n");
+ printf("Expected 1 got %d\n",priv_count);
+ free(priv_data);
+ return BadAlloc;
+ }
+ /* Data == Client Address, offset == Physical address offset */
+ pI810Subpicture->data = pI810XvMC->surfaces.address;
+ pI810Subpicture->offset = pI810XvMC->surfaces.offset;
+
+ /* Initialize private values */
+ pI810Subpicture->privContext = pI810XvMC;
+
+ pI810Subpicture->last_render = 0;
+ pI810Subpicture->last_flip = 0;
+
+ /* Based on the xvimage_id we will need to set the other values */
+ subpicture->num_palette_entries = 16;
+ subpicture->entry_bytes = 3;
+ strcpy(subpicture->component_order,"YUV");
+
+ /*
+ i810's MC Engine needs surfaces of 2^x (x= 9,10,11,12) pitch
+ and the Tiler need 512k aligned surfaces, basically we are
+ stuck with fixed memory with pitch 1024.
+ */
+ pI810Subpicture->pitch = 10;
+
+ /*
+ offsets[0] == offset into the map described by either
+ address (Client memeory address) or offset (physical offset from fb base)
+ */
+ pI810Subpicture->offsets[0] = priv_data[0];
+ if(((unsigned long)pI810Subpicture->data + pI810Subpicture->offsets[0]) & 4095) {
+ printf("XvMCCreateSubpicture: Subpicture offset 0 is not 4096 aligned\n");
+ }
+
+ /* Free data returned from xvmc_create_surface */
+ free(priv_data);
+
+ /* Clear the surface to 0 */
+ memset((void *)((unsigned long)pI810Subpicture->data + (unsigned long)pI810Subpicture->offsets[0]),
+ 0, ((1<<pI810Subpicture->pitch) * subpicture->height));
+
+ switch(subpicture->xvimage_id) {
+ case FOURCC_IA44:
+ case FOURCC_AI44:
+ /* Destination buffer info command */
+ pI810Subpicture->dbi1 = ((((unsigned int)pI810Subpicture->offset +
+ pI810Subpicture->offsets[0]) & ~0xfc000fff) |
+ (pI810Subpicture->pitch - 9));
+
+ /* Destination buffer variables command */
+ pI810Subpicture->dbv1 = (0x8<<20) | (0x8<<16);
+
+ /* Map info command */
+ pI810Subpicture->mi1 = (0x0<<24) | (3<<21) | (1<<9) |
+ (pI810Subpicture->pitch - 3);
+
+ pI810Subpicture->mi2 = (((unsigned int)subpicture->height - 1)<<16) |
+ ((unsigned int)subpicture->width - 1);
+
+ pI810Subpicture->mi3 = ((unsigned int)pI810Subpicture->offset +
+ pI810Subpicture->offsets[0]) & ~0xfc00000f;
+ break;
+ default:
+ free(subpicture->privData);
+ return BadMatch;
+ }
+
+ pI810XvMC->ref++;
+ return Success;
+}
+
+
+
+/***************************************************************************
+// Function: XvMCClearSubpicture
+// Description: Clear the area of the given subpicture to "color".
+// structure passed to it and returning Success.
+// Arguments:
+// display - Connection to the X server.
+// subpicture - Subpicture to clear.
+// x, y, width, height - rectangle in the subpicture to clear.
+// color - The data to file the rectangle with.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCClearSubpicture(Display *display, XvMCSubpicture *subpicture,
+ short x, short y,
+ unsigned short width, unsigned short height,
+ unsigned int color) {
+
+ i810XvMCContext *pI810XvMC;
+ i810XvMCSubpicture *pI810Subpicture;
+ int i;
+
+ if((subpicture == NULL) || (display == NULL)){
+ return BadValue;
+ }
+
+ if(!subpicture->privData) {
+ return (error_base + XvMCBadSubpicture);
+ }
+ pI810Subpicture = (i810XvMCSubpicture *)subpicture->privData;
+
+ pI810XvMC = (i810XvMCContext *)pI810Subpicture->privContext;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+ if((x < 0) || (x + width > subpicture->width)) {
+ return BadValue;
+ }
+
+ if((y < 0) || (y + height > subpicture->height)) {
+ return BadValue;
+ }
+
+ for(i=y; i<y + height; i++) {
+ memset((void *)((unsigned long)pI810Subpicture->data +
+ (unsigned long)pI810Subpicture->offsets[0] + x +
+ (1<<pI810Subpicture->pitch) * i),(char)color,width);
+ }
+
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCCompositeSubpicture
+// Description: Composite the XvImae on the subpicture. This composit uses
+// non-premultiplied alpha. Destination alpha is utilized
+// except for with indexed subpictures. Indexed subpictures
+// use a simple "replace".
+// Arguments:
+// display - Connection to the X server.
+// subpicture - Subpicture to clear.
+// image - the XvImage to be used as the source of the composite.
+// srcx, srcy, width, height - The rectangle from the image to be used.
+// dstx, dsty - location in the subpicture to composite the source.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCCompositeSubpicture(Display *display, XvMCSubpicture *subpicture,
+ XvImage *image,
+ short srcx, short srcy,
+ unsigned short width, unsigned short height,
+ short dstx, short dsty) {
+
+ i810XvMCContext *pI810XvMC;
+ i810XvMCSubpicture *pI810Subpicture;
+ int i;
+
+ if((subpicture == NULL) || (display == NULL)){
+ return BadValue;
+ }
+
+ if(!subpicture->privData) {
+ return (error_base + XvMCBadSubpicture);
+ }
+ pI810Subpicture = (i810XvMCSubpicture *)subpicture->privData;
+
+ pI810XvMC = (i810XvMCContext *)pI810Subpicture->privContext;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+ if((srcx < 0) || (srcx + width > image->width)) {
+ return BadValue;
+ }
+
+ if((dstx < 0) || (dstx + width > subpicture->width)) {
+ return BadValue;
+ }
+
+ if((srcy < 0) || (srcy + height > image->height)) {
+ return BadValue;
+ }
+
+ if((dsty < 0) || (dsty + height > subpicture->height)) {
+ return BadValue;
+ }
+
+ for(i=0; i<height; i++) {
+ memcpy((void *)((unsigned long)pI810Subpicture->data +
+ (unsigned long)pI810Subpicture->offsets[0] + dstx +
+ (1<<pI810Subpicture->pitch) * (i + dsty)),
+ (void *)((unsigned long)image->data +
+ (unsigned long)image->offsets[0] + srcx +
+ image->pitches[0] * (i + srcy))
+ ,width);
+ }
+
+ return Success;
+
+}
+
+
+/***************************************************************************
+// Function: XvMCDestroySubpicture
+// Description: Destroys the specified subpicture.
+// Arguments:
+// display - Connection to the X server.
+// subpicture - Subpicture to be destroyed.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCDestroySubpicture(Display *display, XvMCSubpicture *subpicture) {
+
+ i810XvMCSubpicture *pI810Subpicture;
+ i810XvMCContext *pI810XvMC;
+
+ if((display == NULL) || (subpicture == NULL)) {
+ return BadValue;
+ }
+ if(!subpicture->privData) {
+ return (error_base + XvMCBadSubpicture);
+ }
+ pI810Subpicture = (i810XvMCSubpicture *)subpicture->privData;
+
+ pI810XvMC = (i810XvMCContext *)pI810Subpicture->privContext;
+ if(!pI810XvMC) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+
+ if(pI810Subpicture->last_render) {
+ XvMCSyncSubpicture(display,subpicture);
+ }
+
+ _xvmc_destroy_subpicture(display,subpicture);
+
+ i810_free_privContext(pI810XvMC);
+
+ free(pI810Subpicture);
+ subpicture->privData = NULL;
+ return Success;
+}
+
+
+/***************************************************************************
+// Function: XvMCSetSubpicturePalette
+// Description: Set the subpictures palette
+// Arguments:
+// display - Connection to the X server.
+// subpicture - Subpiture to set palette for.
+// palette - A pointer to an array holding the palette data. The array
+// is num_palette_entries * entry_bytes in size.
+// Returns: Status
+***************************************************************************/
+
+_X_EXPORT Status XvMCSetSubpicturePalette(Display *display, XvMCSubpicture *subpicture,
+ unsigned char *palette) {
+ i810XvMCSubpicture *privSubpicture;
+ int i,j;
+
+ if((display == NULL) || (subpicture == NULL)) {
+ return BadValue;
+ }
+ if(subpicture->privData == NULL) {
+ return (error_base + XvMCBadSubpicture);
+ }
+ privSubpicture = (i810XvMCSubpicture *)subpicture->privData;
+
+ j=0;
+ for(i=0; i<16; i++) {
+ privSubpicture->palette[0][i] = palette[j++];
+ privSubpicture->palette[1][i] = palette[j++];
+ privSubpicture->palette[2][i] = palette[j++];
+ }
+ return Success;
+}
+
+/***************************************************************************
+// Function: XvMCBlendSubpicture
+// Description:
+// The behavior of this function is different depending on whether
+// or not the XVMC_BACKEND_SUBPICTURE flag is set in the XvMCSurfaceInfo.
+// i810 only support frontend behavior.
+//
+// XVMC_BACKEND_SUBPICTURE not set ("frontend" behavior):
+//
+// XvMCBlendSubpicture is a no-op in this case.
+//
+// Arguments:
+// display - Connection to the X server.
+// subpicture - The subpicture to be blended into the video.
+// target_surface - The surface to be displayed with the blended subpic.
+// source_surface - Source surface prior to blending.
+// subx, suby, subw, subh - The rectangle from the subpicture to use.
+// surfx, surfy, surfw, surfh - The rectangle in the surface to blend
+// blend the subpicture rectangle into. Scaling can ocure if
+// XVMC_SUBPICTURE_INDEPENDENT_SCALING is set.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCBlendSubpicture(Display *display, XvMCSurface *target_surface,
+ XvMCSubpicture *subpicture,
+ short subx, short suby,
+ unsigned short subw, unsigned short subh,
+ short surfx, short surfy,
+ unsigned short surfw, unsigned short surfh) {
+
+ return BadMatch;
+}
+
+
+
+/***************************************************************************
+// Function: XvMCBlendSubpicture2
+// Description:
+// The behavior of this function is different depending on whether
+// or not the XVMC_BACKEND_SUBPICTURE flag is set in the XvMCSurfaceInfo.
+// i810 only supports frontend blending.
+//
+// XVMC_BACKEND_SUBPICTURE not set ("frontend" behavior):
+//
+// XvMCBlendSubpicture2 blends the source_surface and subpicture and
+// puts it in the target_surface. This does not effect the status of
+// the source surface but will cause the target_surface to query
+// XVMC_RENDERING until the blend is completed.
+//
+// Arguments:
+// display - Connection to the X server.
+// subpicture - The subpicture to be blended into the video.
+// target_surface - The surface to be displayed with the blended subpic.
+// source_surface - Source surface prior to blending.
+// subx, suby, subw, subh - The rectangle from the subpicture to use.
+// surfx, surfy, surfw, surfh - The rectangle in the surface to blend
+// blend the subpicture rectangle into. Scaling can ocure if
+// XVMC_SUBPICTURE_INDEPENDENT_SCALING is set.
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCBlendSubpicture2(Display *display,
+ XvMCSurface *source_surface,
+ XvMCSurface *target_surface,
+ XvMCSubpicture *subpicture,
+ short subx, short suby,
+ unsigned short subw, unsigned short subh,
+ short surfx, short surfy,
+ unsigned short surfw, unsigned short surfh) {
+ drmBufPtr pDMA;
+ unsigned int *data;
+ i810XvMCContext *pI810XvMC;
+ i810XvMCSubpicture *privSubpicture;
+ i810XvMCSurface *privTarget;
+ i810XvMCSurface *privSource;
+ drm_i810_mc_t mc;
+ int i,j;
+
+ if(display == NULL) {
+ return BadValue;
+ }
+
+ if(subpicture == NULL) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+ if((target_surface == NULL) || (source_surface == NULL)) {
+ return (error_base + XvMCBadSurface);
+ }
+
+ if((subpicture->xvimage_id != FOURCC_AI44) &&
+ (subpicture->xvimage_id != FOURCC_IA44)) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+ if(!subpicture->privData) {
+ return (error_base + XvMCBadSubpicture);
+ }
+ privSubpicture = (i810XvMCSubpicture *)subpicture->privData;
+
+ pI810XvMC = (i810XvMCContext *)privSubpicture->privContext;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+ if(!target_surface->privData) {
+ return (error_base + XvMCBadSurface);
+ }
+ privTarget = (i810XvMCSurface *)target_surface->privData;
+
+ if(!source_surface->privData) {
+ return (error_base + XvMCBadSurface);
+ }
+ privSource = (i810XvMCSurface *)source_surface->privData;
+
+
+ /* Check that size isn't bigger than subpicture */
+ if((subx + subw) > subpicture->width) {
+ return BadValue;
+ }
+ if((suby + subh) > subpicture->height) {
+ return BadValue;
+ }
+ /* Check that dest isn't bigger than surface */
+ if((surfx + surfw) > target_surface->width) {
+ return BadValue;
+ }
+ if((surfy + surfh) > target_surface->height) {
+ return BadValue;
+ }
+ /* Make sure surfaces match */
+ if(target_surface->width != source_surface->width) {
+ return BadValue;
+ }
+ if(target_surface->height != source_surface->height) {
+ return BadValue;
+ }
+
+ /* Lock For DMA */
+ I810_LOCK(pI810XvMC,0);
+
+ /* Allocate DMA buffer */
+ pDMA = i810_get_free_buffer(pI810XvMC);
+ data = pDMA->address;
+
+ /* Copy Y data first */
+ /* SOURCE_COPY_BLT */
+ *data++ = (2<<29) | (0x43<<22) | 0x4;
+ *data++ = (0xcc<<16) | (1<<26) | (1<<privTarget->pitch);
+ *data++ = (target_surface->height<<16) | target_surface->width;
+ *data++ = privTarget->offset + privTarget->offsets[0];
+ *data++ = (1<<privSource->pitch);
+ *data++ = privSource->offset + privSource->offsets[0];
+
+ /* Select Context 1 for loading */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<17) | (1<<8);
+ *data++ = CMD_FLUSH;
+
+ /* Load Palette */
+ *data++ = MAP_PALETTE_LOAD;
+ /* 16 levels of alpha for each Y */
+ switch(subpicture->xvimage_id) {
+ case FOURCC_IA44:
+ for(i=0; i<16; i++) {
+ for(j=0; j<16; j++) {
+ *data++ = (j<<12) | (j<<8) | privSubpicture->palette[0][i];
+ }
+ }
+ break;
+ case FOURCC_AI44:
+ for(i=0; i<16; i++) {
+ for(j=0; j<16; j++) {
+ *data++ = (i<<12) | (i<<8) | privSubpicture->palette[0][j];
+ }
+ }
+ break;
+ }
+ /* TARGET */
+ /* *data++ = CMD_FLUSH; */
+ /* *data++ = BOOLEAN_ENA_2; */
+ *data++ = CMD_FLUSH;
+ *data++ = DEST_BUFFER_INFO;
+ *data++ = privTarget->dbi1y;
+ *data++ = DEST_BUFFER_VAR;
+ *data++ = privTarget->dbv1;
+
+ /* ALPHA */
+ *data++ = CMD_MAP_INFO;
+ *data++ = privSubpicture->mi1;
+ *data++ = privSubpicture->mi2;
+ *data++ = privSubpicture->mi3;
+
+ *data++ = VERTEX_FORMAT | (1<<8) | (3<<1);
+ *data++ = BOOLEAN_ENA_1;
+ *data++ = SRC_DEST_BLEND_MONO | (0x940);
+ /* Map Filter */
+ *data++ = (3<<29) | (0x1c<<24) | (2<<19) | (0x224);
+
+ /* Use context 1 */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<16) | 1;
+ *data++ = CMD_FLUSH;
+
+ /* Drawing Rect Info */
+ *data++ = DRAWING_RECT_INFO;
+ *data++ = 0x0;
+ *data++ = 0x0;
+ *data++ = 0x0;
+ *data++ = 0x0;
+ *data++ = 0x0;
+
+ /* GFXPRIMITIVE RECTANGLE */
+ *data++ = (3<<29) | (0x1f<<24) | (0x7<<18) | 11;
+ /* Bottom Right Vertex */
+ *(float *)data++ = (float) (surfx + surfw);
+ *(float *)data++ = (float) (surfy + surfh);
+ *(float *)data++ = (float) (subx + subw);
+ *(float *)data++ = (float) (suby + subh);
+ /* Bottom Left Vertex */
+ *(float *)data++ = (float) surfx;
+ *(float *)data++ = (float) (surfy + surfh);
+ *(float *)data++ = (float) subx;
+ *(float *)data++ = (float) (suby + subh);
+ /* Top Left Vertex */
+ *(float *)data++ = (float) surfx;
+ *(float *)data++ = (float) surfy;
+ *(float *)data++ = (float) subx;
+ *(float *)data++ = (float) suby;
+
+ /* Load and Use Context 0 */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<17) | (1<<16);
+ *data++ = CMD_FLUSH;
+
+ /* U data */
+ /* SOURCE_COPY_BLT */
+ *data++ = (2<<29) | (0x43<<22) | 0x4;
+ *data++ = (0xcc<<16) | (1<<26) | (1<<(privTarget->pitch - 1));
+ *data++ = (target_surface->height<<15) | (target_surface->width>>1);
+ *data++ = (unsigned long)privTarget->offset + (unsigned long)privTarget->offsets[1];
+ *data++ = (1<<(privSource->pitch - 1));
+ *data++ = (unsigned long)privSource->offset + (unsigned long)privSource->offsets[1];
+
+ /* Context 1 select */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<17) | (1<<8);
+ *data++ = CMD_FLUSH;
+ /* ALPHA PALETTE */
+ *data++ = MAP_PALETTE_LOAD;
+ /* 16 levels of alpha for each Y */
+ switch(subpicture->xvimage_id) {
+ case FOURCC_IA44:
+ for(i=0; i<16; i++) {
+ for(j=0; j<16; j++) {
+ *data++ = (j<<12) | (j<<8) | privSubpicture->palette[2][i];
+ }
+ }
+ break;
+ case FOURCC_AI44:
+ for(i=0; i<16; i++) {
+ for(j=0; j<16; j++) {
+ *data++ = (i<<12) | (i<<8) | privSubpicture->palette[2][j];
+ }
+ }
+ break;
+ }
+ /* TARGET */
+ *data++ = CMD_FLUSH;
+ *data++ = BOOLEAN_ENA_2;
+ *data++ = CMD_FLUSH;
+ *data++ = DEST_BUFFER_INFO;
+ *data++ = privTarget->dbi1u;
+ *data++ = DEST_BUFFER_VAR;
+ *data++ = privTarget->dbv1;
+
+ /* ALPHA */
+ *data++ = CMD_MAP_INFO;
+ *data++ = privSubpicture->mi1;
+ *data++ = privSubpicture->mi2;
+ *data++ = privSubpicture->mi3;
+
+ *data++ = VERTEX_FORMAT | (1<<8) | (3<<1);
+ *data++ = BOOLEAN_ENA_1;
+ *data++ = SRC_DEST_BLEND_MONO | (0x940);
+ /* Map Filter */
+ *data++ = (3<<29) | (0x1c<<24) | (2<<19) | (1<<16) | (0x224);
+
+ /* Use context 1 */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<16) | 1;
+ *data++ = CMD_FLUSH;
+
+ /* Drawing Rect Info */
+ *data++ = (3<<29) | (0x1d<<24) | (0x80<<16) | 3;
+ *data++ = 0;
+ *data++ = 0;
+ *data++ = 0;
+ *data++ = 0;
+ *data++ = 0;
+
+ /* Rectangle */
+ *data++ = (3<<29) | (0x1f<<24) | (0x7<<18) | 11;
+ /* Bottom Right */
+ *(float *)data++ = (float) ((surfx + surfw)>>1);
+ *(float *)data++ = (float) ((surfy + surfh)>>1);
+ *(float *)data++ = (float) subx + subw;
+ *(float *)data++ = (float) suby + subh;
+ /* Bottom Left */
+ *(float *)data++ = (float) (surfx>>1);
+ *(float *)data++ = (float) ((surfy + surfh)>>1);
+ *(float *)data++ = (float) subx;
+ *(float *)data++ = (float) suby + subh;
+ /* Top Left */
+ *(float *)data++ = (float) (surfx>>1);
+ *(float *)data++ = (float) (surfy>>1);
+ *(float *)data++ = (float) subx;
+ *(float *)data++ = (float) suby;
+
+ /* Load and Use Context 0 */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<17) | (1<<16);
+ *data++ = CMD_FLUSH;
+
+ /* V data */
+ /* SOURCE_COPY_BLT */
+ *data++ = (2<<29) | (0x43<<22) | 0x4;
+ *data++ = (0xcc<<16) | (1<<26) | (1<<(privTarget->pitch - 1));
+ *data++ = (target_surface->height<<15) | (target_surface->width>>1);
+ *data++ = (unsigned long)privTarget->offset + (unsigned long)privTarget->offsets[2];
+ *data++ = (1<<(privSource->pitch - 1));
+ *data++ = (unsigned long)privSource->offset + (unsigned long)privSource->offsets[2];
+
+ /* Context 1 select */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<17) | (1<<8);
+ *data++ = CMD_FLUSH;
+
+ /* ALPHA PALETTE */
+ *data++ = MAP_PALETTE_LOAD;
+ /* 16 levels of alpha for each Y */
+ switch(subpicture->xvimage_id) {
+ case FOURCC_IA44:
+ for(i=0; i<16; i++) {
+ for(j=0; j<16; j++) {
+ *data++ = (j<<12) | (j<<8) | privSubpicture->palette[1][i];
+ }
+ }
+ break;
+ case FOURCC_AI44:
+ for(i=0; i<16; i++) {
+ for(j=0; j<16; j++) {
+ *data++ = (i<<12) | (i<<8) | privSubpicture->palette[1][j];
+ }
+ }
+ break;
+ }
+ /* TARGET */
+ *data++ = CMD_FLUSH;
+ *data++ = BOOLEAN_ENA_2;
+ *data++ = CMD_FLUSH;
+ *data++ = DEST_BUFFER_INFO;
+ *data++ = privTarget->dbi1v;
+ *data++ = DEST_BUFFER_VAR;
+ *data++ = privTarget->dbv1;
+
+ /* ALPHA */
+ *data++ = CMD_MAP_INFO;
+ *data++ = privSubpicture->mi1;
+ *data++ = privSubpicture->mi2;
+ *data++ = privSubpicture->mi3;
+
+ *data++ = VERTEX_FORMAT | (1<<8) | (3<<1);
+ *data++ = BOOLEAN_ENA_1;
+ *data++ = SRC_DEST_BLEND_MONO | (0x940);
+ /* Map Filter */
+ *data++ = (3<<29) | (0x1c<<24) | (2<<19) | (1<<16) | (0x224);
+
+ /* Use context 1 */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<16) | 1;
+ *data++ = CMD_FLUSH;
+
+ /* Drawing Rect Info */
+ *data++ = (3<<29) | (0x1d<<24) | (0x80<<16) | 3;
+ *data++ = 0;
+ *data++ = 0;
+ *data++ = 0;
+ *data++ = 0;
+ *data++ = 0;
+
+ /* Rectangle */
+ *data++ = (3<<29) | (0x1f<<24) | (0x7<<18) | 11;
+ /* Bottom Right */
+ *(float *)data++ = (float) ((surfx + surfw)>>1);
+ *(float *)data++ = (float) ((surfy + surfh)>>1);
+ *(float *)data++ = (float) subx + subw;
+ *(float *)data++ = (float) suby + subh;
+ /* Bottom Left */
+ *(float *)data++ = (float) (surfx>>1);
+ *(float *)data++ = (float) ((surfy + surfh)>>1);
+ *(float *)data++ = (float) subx;
+ *(float *)data++ = (float) suby + subh;
+ /* Top Left */
+ *(float *)data++ = (float) (surfx>>1);
+ *(float *)data++ = (float) (surfy>>1);
+ *(float *)data++ = (float) subx;
+ *(float *)data++ = (float) suby;
+
+ /* Load and Use Context 0 */
+ *data++ = CMD_FLUSH;
+ *data++ = (5<<23) | (1<<17) | (1<<16);
+ *data++ = CMD_FLUSH;
+
+
+ /* Dispatch */
+ pDMA->used = (unsigned long)data - (unsigned long)pDMA->address;
+ mc.idx = pDMA->idx;
+ mc.used = pDMA->used;
+ mc.last_render = ++pI810XvMC->last_render;
+ privTarget->last_render = pI810XvMC->last_render;
+ I810_MC(pI810XvMC,mc);
+
+ I810_UNLOCK(pI810XvMC);
+ return Success;
+}
+
+
+
+/***************************************************************************
+// Function: XvMCSyncSubpicture
+// Description: This function blocks until all composite/clear requests on
+// the subpicture have been complete.
+// Arguments:
+// display - Connection to the X server.
+// subpicture - The subpicture to synchronize
+//
+// Returns: Status
+***************************************************************************/
+_X_EXPORT Status XvMCSyncSubpicture(Display *display, XvMCSubpicture *subpicture) {
+ Status ret;
+ int stat=0;
+ do {
+ ret = XvMCGetSubpictureStatus(display,subpicture,&stat);
+ }while(!ret && (stat & XVMC_RENDERING));
+ return ret;
+}
+
+
+
+/***************************************************************************
+// Function: XvMCFlushSubpicture
+// Description: This function commits pending composite/clear requests to
+// ensure that they will be completed in a finite amount of
+// time.
+// Arguments:
+// display - Connection to the X server.
+// subpicture - The subpicture whos compsiting should be flushed
+//
+// Returns: Status
+// NOTES: i810 always dispatches commands so flush is a no-op
+***************************************************************************/
+_X_EXPORT Status XvMCFlushSubpicture(Display *display, XvMCSubpicture *subpicture) {
+ if(display == NULL) {
+ return BadValue;
+ }
+ if(subpicture == NULL) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+ return Success;
+}
+
+
+
+/***************************************************************************
+// Function: XvMCGetSubpictureStatus
+// Description: This function gets the current status of a subpicture
+//
+// Arguments:
+// display - Connection to the X server.
+// subpicture - The subpicture whos status is being queried
+// stat - The status of the subpicture. It can be any of the following
+// OR'd together:
+// XVMC_RENDERING - Last composite or clear request not completed
+// XVMC_DISPLAYING - Suppicture currently being displayed.
+//
+// Returns: Status
+// Notes: i810 always blends into a third surface so the subpicture is
+// never actually displaying, only a copy of it is displaying. We only
+// have to worry about the rendering case.
+***************************************************************************/
+_X_EXPORT Status XvMCGetSubpictureStatus(Display *display, XvMCSubpicture *subpicture,
+ int *stat) {
+
+ i810XvMCSubpicture *privSubpicture;
+ i810XvMCContext *pI810XvMC;
+
+ if((display == NULL) || (stat == NULL)) {
+ return BadValue;
+ }
+ if((subpicture == NULL) || (subpicture->privData == NULL)) {
+ return (error_base + XvMCBadSubpicture);
+ }
+ *stat = 0;
+ privSubpicture = (i810XvMCSubpicture *)subpicture->privData;
+
+ pI810XvMC = (i810XvMCContext *)privSubpicture->privContext;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadSubpicture);
+ }
+
+ I810_LOCK(pI810XvMC,0);
+
+ if(privSubpicture->last_render &&
+ (privSubpicture->last_render > GET_RSTATUS(pI810XvMC))) {
+ *stat |= XVMC_RENDERING;
+ }
+ I810_UNLOCK(pI810XvMC);
+
+ return Success;
+}
+
+#define NUM_XVMC_ATTRIBUTES 4
+static XvAttribute I810_XVMC_ATTRIBUTES[] = {
+ {XvGettable | XvSettable, 0, 0xffffff, "XV_COLORKEY"},
+ {XvGettable | XvSettable, -127, +127, "XV_BRIGHTNESS"},
+ {XvGettable | XvSettable, 0, 0x1ff, "XV_CONTRAST"},
+ {XvGettable | XvSettable, 0, 0x3ff, "XV_SATURATION"}
+};
+
+
+/***************************************************************************
+// Function: XvMCQueryAttributes
+// Description: An array of XvAttributes of size "number" is returned by
+// this function. If there are no attributes, NULL is returned and number
+// is set to 0. The array may be freed with xfree().
+//
+// Arguments:
+// display - Connection to the X server.
+// context - The context whos attributes we are querying.
+// number - The number of returned atoms.
+//
+// Returns:
+// An array of XvAttributes.
+// Notes:
+// For i810 we support these Attributes:
+// XV_COLORKEY: The colorkey value, initialized from the Xv value at
+// context creation time.
+// XV_BRIGHTNESS
+// XV_CONTRAST
+// XV_SATURATION
+***************************************************************************/
+_X_EXPORT XvAttribute *XvMCQueryAttributes(Display *display, XvMCContext *context,
+ int *number) {
+ i810XvMCContext *pI810XvMC;
+ XvAttribute *attributes;
+
+ if(number == NULL) {
+ return NULL;
+ }
+ if(display == NULL) {
+ *number = 0;
+ return NULL;
+ }
+ if(context == NULL) {
+ *number = 0;
+ return NULL;
+ }
+ pI810XvMC = context->privData;
+ if(pI810XvMC == NULL) {
+ *number = 0;
+ return NULL;
+ }
+
+ attributes = (XvAttribute *)malloc(NUM_XVMC_ATTRIBUTES *
+ sizeof(XvAttribute));
+ if(attributes == NULL) {
+ *number = 0;
+ return NULL;
+ }
+
+ memcpy(attributes,I810_XVMC_ATTRIBUTES,(NUM_XVMC_ATTRIBUTES *
+ sizeof(XvAttribute)));
+
+ *number = NUM_XVMC_ATTRIBUTES;
+ return attributes;
+}
+
+/***************************************************************************
+// Function: XvMCSetAttribute
+// Description: This function sets a context-specific attribute.
+//
+// Arguments:
+// display - Connection to the X server.
+// context - The context whos attributes we are querying.
+// attribute - The X atom of the attribute to be changed.
+// value - The new value for the attribute.
+//
+// Returns:
+// Status
+// Notes:
+// For i810 we support these Attributes:
+// XV_COLORKEY: The colorkey value, initialized from the Xv value at
+// context creation time.
+// XV_BRIGHTNESS
+// XV_CONTRAST
+// XV_SATURATION
+***************************************************************************/
+_X_EXPORT Status XvMCSetAttribute(Display *display, XvMCContext *context,
+ Atom attribute, int value) {
+ i810XvMCContext *pI810XvMC;
+
+ if(display == NULL) {
+ return BadValue;
+ }
+ if(context == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+ pI810XvMC = context->privData;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+
+ if(attribute == pI810XvMC->xv_colorkey) {
+ if((value < I810_XVMC_ATTRIBUTES[0].min_value) ||
+ (value > I810_XVMC_ATTRIBUTES[0].max_value)) {
+ return BadValue;
+ }
+ pI810XvMC->colorkey = value;
+ return Success;
+ }
+ if(attribute == pI810XvMC->xv_brightness) {
+ if((value < I810_XVMC_ATTRIBUTES[1].min_value) ||
+ (value > I810_XVMC_ATTRIBUTES[1].max_value)) {
+ return BadValue;
+ }
+ pI810XvMC->brightness = value;
+ return Success;
+ }
+ if(attribute == pI810XvMC->xv_saturation) {
+ if((value < I810_XVMC_ATTRIBUTES[2].min_value) ||
+ (value > I810_XVMC_ATTRIBUTES[2].max_value)) {
+ return BadValue;
+ }
+ pI810XvMC->saturation = value;
+ return Success;
+ }
+ if(attribute == pI810XvMC->xv_contrast) {
+ if((value < I810_XVMC_ATTRIBUTES[3].min_value) ||
+ (value > I810_XVMC_ATTRIBUTES[3].max_value)) {
+ return BadValue;
+ }
+ pI810XvMC->contrast = value;
+ return Success;
+ }
+ return BadValue;
+}
+
+/***************************************************************************
+// Function: XvMCGetAttribute
+// Description: This function queries a context-specific attribute and
+// returns the value.
+//
+// Arguments:
+// display - Connection to the X server.
+// context - The context whos attributes we are querying.
+// attribute - The X atom of the attribute to be queried
+// value - The returned attribute value
+//
+// Returns:
+// Status
+// Notes:
+// For i810 we support these Attributes:
+// XV_COLORKEY: The colorkey value, initialized from the Xv value at
+// context creation time.
+// XV_BRIGHTNESS
+// XV_CONTRAST
+// XV_SATURATION
+***************************************************************************/
+_X_EXPORT Status XvMCGetAttribute(Display *display, XvMCContext *context,
+ Atom attribute, int *value) {
+ i810XvMCContext *pI810XvMC;
+
+ if(display == NULL) {
+ return BadValue;
+ }
+ if(context == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+ pI810XvMC = context->privData;
+ if(pI810XvMC == NULL) {
+ return (error_base + XvMCBadContext);
+ }
+ if(value == NULL) {
+ return BadValue;
+ }
+
+ if(attribute == pI810XvMC->xv_colorkey) {
+ *value = pI810XvMC->colorkey;
+ return Success;
+ }
+ if(attribute == pI810XvMC->xv_brightness) {
+ *value = pI810XvMC->brightness;
+ return Success;
+ }
+ if(attribute == pI810XvMC->xv_saturation) {
+ *value = pI810XvMC->saturation;
+ return Success;
+ }
+ if(attribute == pI810XvMC->xv_contrast) {
+ *value = pI810XvMC->contrast;
+ return Success;
+ }
+ return BadValue;
+}
+
+
+
+
diff --git a/src/legacy/i810/xvmc/I810XvMC.h b/src/legacy/i810/xvmc/I810XvMC.h
new file mode 100644
index 0000000..9e31147
--- /dev/null
+++ b/src/legacy/i810/xvmc/I810XvMC.h
@@ -0,0 +1,366 @@
+/***************************************************************************
+
+Copyright 2001 Intel Corporation. All Rights Reserved.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sub license, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice (including the
+next paragraph) shall be included in all copies or substantial portions
+of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+IN NO EVENT SHALL INTEL, AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+**************************************************************************/
+
+/***************************************************************************
+ * libI810XvMC.h: MC Driver i810 includes
+ *
+ * Authors:
+ * Matt Sottek <matthew.j.sottek@intel.com>
+ *
+ *
+ ***************************************************************************/
+
+
+#ifndef I810XVMC_H
+#define I810XVMC_H
+
+/* #define XVMC_DEBUG(x) do {x; }while(0); */
+#define XVMC_DEBUG(x)
+
+#include <stdint.h>
+#include "xf86drm.h"
+#include "../i810_common.h"
+#include <X11/Xlibint.h>
+
+
+/***************************************************************************
+// i810OverlayRec: Structure that is used to reference the overlay
+// register memory. A i810OverlayRecPtr is set to the address of the
+// allocated overlay registers.
+***************************************************************************/
+typedef struct _i810OverlayRec {
+ unsigned int OBUF_0Y;
+ unsigned int OBUF_1Y;
+ unsigned int OBUF_0U;
+ unsigned int OBUF_0V;
+ unsigned int OBUF_1U;
+ unsigned int OBUF_1V;
+ unsigned int OV0STRIDE;
+ unsigned int YRGB_VPH;
+ unsigned int UV_VPH;
+ unsigned int HORZ_PH;
+ unsigned int INIT_PH;
+ unsigned int DWINPOS;
+ unsigned int DWINSZ;
+ unsigned int SWID;
+ unsigned int SWIDQW;
+ unsigned int SHEIGHT;
+ unsigned int YRGBSCALE;
+ unsigned int UVSCALE;
+ unsigned int OV0CLRC0;
+ unsigned int OV0CLRC1;
+ unsigned int DCLRKV;
+ unsigned int DCLRKM;
+ unsigned int SCLRKVH;
+ unsigned int SCLRKVL;
+ unsigned int SCLRKM;
+ unsigned int OV0CONF;
+ unsigned int OV0CMD;
+} i810OverlayRec, *i810OverlayRecPtr;
+
+
+/***************************************************************************
+// i810XvMCDrmMap: Holds the data about the DRM maps
+***************************************************************************/
+typedef struct _i810XvMCDrmMap {
+ drm_handle_t offset;
+ drmAddress address;
+ unsigned int size;
+} i810XvMCDrmMap, *i810XvMCDrmMapPtr;
+
+/***************************************************************************
+// i810XvMCContext: Private Context data referenced via the privData
+// pointer in the XvMCContext structure.
+***************************************************************************/
+typedef struct _i810XvMCContext {
+ int fd; /* File descriptor for /dev/dri */
+ i810XvMCDrmMap overlay;
+ i810XvMCDrmMap surfaces;
+ drmBufMapPtr dmabufs; /* Data structure to hold available dma buffers */
+ drm_context_t drmcontext;
+ unsigned int last_render;
+ unsigned int last_flip;
+ unsigned short ref;
+ unsigned short current;
+ int lock; /* Lightweight lock to avoid locking twice */
+ char busIdString[10]; /* PCI:0:1:0 or PCI:0:2:0 */
+ i810OverlayRecPtr oregs;
+ unsigned int dual_prime; /* Flag to identify when dual prime is in use. */
+ unsigned int fb_base;
+ Atom xv_colorkey;
+ Atom xv_brightness;
+ Atom xv_contrast;
+ Atom xv_saturation;
+ int brightness;
+ int saturation;
+ int contrast;
+ int colorkey;
+} i810XvMCContext;
+
+/***************************************************************************
+// i810XvMCSurface: Private data structure for each XvMCSurface. This
+// structure is referenced by the privData pointer in the XvMCSurface
+// structure.
+***************************************************************************/
+typedef struct _i810XvMCSurface {
+ unsigned int pitch;
+ unsigned int dbi1y; /* Destination buffer info command word 1 for Y */
+ unsigned int dbi1u; /* Destination buffer info command word 1 for U */
+ unsigned int dbi1v; /* Destination buffer info command word 1 for V */
+ unsigned int dbv1; /* Destination buffer variables command word 1 */
+ unsigned int mi1y; /* Map Info command word 1 (Minus bit 28) for Y */
+ unsigned int mi1u; /* Map Info command word 1 (Minus bit 28) for U */
+ unsigned int mi1v; /* Map Info command word 1 (Minus bit 28) for V */
+ unsigned int mi2y; /* Map info command word 2 for y */
+ unsigned int mi2u; /* Map info command word 2 for y */
+ unsigned int mi2v; /* Map info command word 2 for y */
+ unsigned int mi3y; /* Map info command word 3 */
+ unsigned int mi3u; /* Map info command word 3 */
+ unsigned int mi3v; /* Map info command word 3 */
+ unsigned int last_render;
+ unsigned int last_flip;
+ unsigned int second_field; /* Flags a surface that is only half done */
+ drmAddress data;
+ drm_handle_t offset;
+ unsigned int offsets[3];
+ i810XvMCContext *privContext;
+} i810XvMCSurface;
+
+/***************************************************************************
+// i810XvMCSubpicture: Private data structure for each XvMCSubpicture. This
+// structure is referenced by the privData pointer in the XvMCSubpicture
+// structure.
+***************************************************************************/
+typedef struct _i810XvMCSubpicture {
+ unsigned int pitch;
+ unsigned int dbi1; /* Destination buffer info command word 1 */
+ unsigned int dbv1; /* Destination buffer variables command word */
+ unsigned int mi1; /* Map Info command word 1 (Minus bit 28) */
+ unsigned int mi2; /* Map info command word 2 */
+ unsigned int mi3; /* Map info command word 3 */
+ unsigned int last_render;
+ unsigned int last_flip;
+ drmAddress data;
+ drm_handle_t offset;
+ unsigned int offsets[1];
+ unsigned char palette[3][16];
+ i810XvMCContext *privContext;
+} i810XvMCSubpicture;
+
+typedef struct _Box {
+ int x1,y1,x2,y2;
+} Box, *BoxPtr;
+
+/***************************************************************************
+// drm_i810_overlay_t: Structure returned by overlay info ioctl.
+// NOTE: If you change this structure you will have to change the equiv.
+// structure in the kernel.
+***************************************************************************/
+typedef struct _drm_i810_overlay_t {
+ unsigned int offset;
+ unsigned int physical;
+} drm_i810_overlay_t;
+
+/***************************************************************************
+// drm_i810_dma_t: Structure used by dma allocation ioctl.
+// NOTE: If you change this structure you will have to change the equiv.
+// structure in the kernel.
+***************************************************************************/
+typedef struct _drm_i810_dma {
+ void *virtual;
+ int request_idx;
+ int request_size;
+ int granted;
+} drm_i810_dma_t;
+
+/***************************************************************************
+// drm_i810_mc_t: Structure used by mc dispatch ioctl.
+// NOTE: If you change this structure you will have to change the equiv.
+// structure in the kernel.
+***************************************************************************/
+typedef struct _drm_i810_mc {
+ int idx; /* buffer index */
+ int used; /* nr bytes in use */
+ int num_blocks; /* number of GFXBlocks */
+ int *length; /* List of lengths for GFXBlocks */
+ unsigned int last_render; /* Last render request */
+} drm_i810_mc_t;
+
+/* Subpicture fourcc */
+#define FOURCC_IA44 0x34344149
+
+/* Static Parameters */
+#define I810_XVMC_MAXWIDTH 720
+#define I810_XVMC_MAXHEIGHT 576
+#define I810_DEFAULT16_COLORKEY 31
+#define I810_DMA_BUF_NR 256
+
+/* COMMANDS */
+#define CMD_FLUSH ((4<<23) | 0x1)
+#define BOOLEAN_ENA_1 ((3<<29) | (3<<24) | (3<<2))
+#define BOOLEAN_ENA_2 ((3<<29) | (4<<24) | (3<<16) | (1<<3) | (1<<2))
+#define DEST_BUFFER_INFO (0x15<<23)
+#define DEST_BUFFER_VAR ((0x3<<29) | (0x1d<<24) | (0x85<<16))
+#define DRAWING_RECT_INFO ((3<<29) | (0x1d<<24) | (0x80<<16) | 3)
+#define GFXBLOCK ((0x3<<29) | (0x1e<<24))
+#define CMD_MAP_INFO ((0x3<<29) | (0x1d<<24) | 0x2)
+#define MAP_PALETTE_LOAD ((3<<29) | (0x1d<<24) | (0x82<<16) | 0xff)
+#define VERTEX_FORMAT ((3<<29) | (0x5<<24))
+#define SRC_DEST_BLEND_MONO ((3<<29) | (8<<24))
+
+/* Bit Patterns */
+
+/*
+ * OV0CMD - Overlay Command Register
+ */
+#define VERTICAL_CHROMINANCE_FILTER 0x70000000
+#define VC_SCALING_OFF 0x00000000
+#define VC_LINE_REPLICATION 0x10000000
+#define VC_UP_INTERPOLATION 0x20000000
+#define VC_PIXEL_DROPPING 0x50000000
+#define VC_DOWN_INTERPOLATION 0x60000000
+#define VERTICAL_LUMINANCE_FILTER 0x0E000000
+#define VL_SCALING_OFF 0x00000000
+#define VL_LINE_REPLICATION 0x02000000
+#define VL_UP_INTERPOLATION 0x04000000
+#define VL_PIXEL_DROPPING 0x0A000000
+#define VL_DOWN_INTERPOLATION 0x0C000000
+#define HORIZONTAL_CHROMINANCE_FILTER 0x01C00000
+#define HC_SCALING_OFF 0x00000000
+#define HC_LINE_REPLICATION 0x00400000
+#define HC_UP_INTERPOLATION 0x00800000
+#define HC_PIXEL_DROPPING 0x01400000
+#define HC_DOWN_INTERPOLATION 0x01800000
+#define HORIZONTAL_LUMINANCE_FILTER 0x00380000
+#define HL_SCALING_OFF 0x00000000
+#define HL_LINE_REPLICATION 0x00080000
+#define HL_UP_INTERPOLATION 0x00100000
+#define HL_PIXEL_DROPPING 0x00280000
+#define HL_DOWN_INTERPOLATION 0x00300000
+
+#define Y_ADJUST 0x00010000
+#define OV_BYTE_ORDER 0x0000C000
+#define UV_SWAP 0x00004000
+#define Y_SWAP 0x00008000
+#define Y_AND_UV_SWAP 0x0000C000
+#define SOURCE_FORMAT 0x00003C00
+#define RGB_555 0x00000800
+#define RGB_565 0x00000C00
+#define YUV_422 0x00002000
+#define YUV_411 0x00002400
+#define YUV_420 0x00003000
+#define YUV_410 0x00003800
+#define VERTICAL_PHASE_BOTH 0x00000020
+#define FLIP_TYPE_FIELD 0x00000020
+#define FLIP_TYPE_FRAME 0x00000000
+#define BUFFER_AND_FIELD 0x00000006
+#define BUFFER0_FIELD0 0x00000000
+#define BUFFER0_FIELD1 0x00000002
+#define BUFFER1_FIELD0 0x00000004
+#define BUFFER1_FIELD1 0x00000006
+#define OVERLAY_ENABLE 0x00000001
+
+/*
+ * DOV0STA - Display/Overlay 0 Status Register
+ */
+#define DOV0STA 0x30008
+#define OV0ADD 0x30000
+#define MINUV_SCALE 0x1
+
+#define RGB16ToColorKey(c) \
+ (((c & 0xF800) << 8) | ((c & 0x07E0) << 5) | ((c & 0x001F) << 3))
+
+/* Locking Macros lightweight lock used to prevent relocking */
+#define I810_LOCK(c,f) \
+ if(!c->lock) { \
+ drmGetLock(c->fd, c->drmcontext, f); \
+ } \
+ c->lock++;
+
+#define I810_UNLOCK(c) \
+ c->lock--; \
+ if(!c->lock) { \
+ drmUnlock(c->fd, c->drmcontext); \
+ }
+
+/*
+ Block until the passed in value (n) is the active
+ buffer on the overlay.
+*/
+#define BLOCK_OVERLAY(c,n) \
+ do { \
+ int temp,i=0; \
+ while(i < 100000) { \
+ temp = GET_FSTATUS(c); \
+ if(((temp & (1<<20))>>20) == n) { \
+ break; \
+ } \
+ usleep(10); \
+ } \
+ if(i == 100000) { \
+ printf("Overlay Lockup.\n"); \
+ return BadAlloc; \
+ } \
+ }while(0);
+
+#define OVERLAY_INFO(c,i) drmCommandRead(c->fd, DRM_I810_OV0INFO, &i, sizeof(i))
+#define OVERLAY_FLIP(c) drmCommandNone(c->fd, DRM_I810_OV0FLIP)
+#define GET_FSTATUS(c) drmCommandNone(c->fd, DRM_I810_FSTATUS)
+#define I810_MC(c,mc) drmCommandWrite(c->fd, DRM_I810_MC, &mc, sizeof(mc))
+#define GET_RSTATUS(c) drmCommandNone(c->fd, DRM_I810_RSTATUS)
+#define GET_BUFFER(c,dma) drmCommandWriteRead(c->fd, DRM_I810_GETBUF, &dma, sizeof(drmI810DMA))
+#define FLUSH(c) drmCommandNone(c->fd, DRM_I810_FLUSH)
+
+/*
+ Definitions for temporary wire protocol hooks to be replaced
+ when a HW independent libXvMC is created.
+*/
+extern Status _xvmc_create_context(Display *dpy, XvMCContext *context,
+ int *priv_count, uint **priv_data);
+
+extern Status _xvmc_destroy_context(Display *dpy, XvMCContext *context);
+
+extern Status _xvmc_create_surface(Display *dpy, XvMCContext *context,
+ XvMCSurface *surface, int *priv_count,
+ uint **priv_data);
+
+extern Status _xvmc_destroy_surface(Display *dpy, XvMCSurface *surface);
+
+extern Status _xvmc_create_subpicture(Display *dpy, XvMCContext *context,
+ XvMCSubpicture *subpicture,
+ int *priv_count, uint **priv_data);
+
+extern Status _xvmc_destroy_subpicture(Display *dpy,
+ XvMCSubpicture *subpicture);
+
+/*
+ Prototypes
+*/
+drmBufPtr i810_get_free_buffer(i810XvMCContext *pI810XvMC);
+void i810_free_privContext(i810XvMCContext *pI810XvMC);
+void dp(unsigned int *address, unsigned int i);
+
+#endif
diff --git a/src/legacy/i810/xvmc/Makefile.am b/src/legacy/i810/xvmc/Makefile.am
new file mode 100644
index 0000000..1bac311
--- /dev/null
+++ b/src/legacy/i810/xvmc/Makefile.am
@@ -0,0 +1,11 @@
+if XVMC
+lib_LTLIBRARIES=libI810XvMC.la
+endif
+
+libI810XvMC_la_SOURCES = I810XvMC.c \
+ I810XvMC.h
+
+AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ -DTRUE=1 -DFALSE=0
+
+libI810XvMC_la_LDFLAGS = -version-number 1:0:0
+libI810XvMC_la_LIBADD = @DRI_LIBS@ @DRM_LIBS@ @XVMCLIB_LIBS@
diff --git a/src/legacy/i810/xvmc/Makefile.in b/src/legacy/i810/xvmc/Makefile.in
new file mode 100644
index 0000000..57f9685
--- /dev/null
+++ b/src/legacy/i810/xvmc/Makefile.in
@@ -0,0 +1,581 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/legacy/i810/xvmc
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(libdir)"
+LTLIBRARIES = $(lib_LTLIBRARIES)
+libI810XvMC_la_DEPENDENCIES =
+am_libI810XvMC_la_OBJECTS = I810XvMC.lo
+libI810XvMC_la_OBJECTS = $(am_libI810XvMC_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+libI810XvMC_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(AM_CFLAGS) $(CFLAGS) $(libI810XvMC_la_LDFLAGS) $(LDFLAGS) -o \
+ $@
+@XVMC_TRUE@am_libI810XvMC_la_rpath = -rpath $(libdir)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+SOURCES = $(libI810XvMC_la_SOURCES)
+DIST_SOURCES = $(libI810XvMC_la_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+@XVMC_TRUE@lib_LTLIBRARIES = libI810XvMC.la
+libI810XvMC_la_SOURCES = I810XvMC.c \
+ I810XvMC.h
+
+AM_CFLAGS = @CWARNFLAGS@ @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ -DTRUE=1 -DFALSE=0
+libI810XvMC_la_LDFLAGS = -version-number 1:0:0
+libI810XvMC_la_LIBADD = @DRI_LIBS@ @DRM_LIBS@ @XVMCLIB_LIBS@
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/legacy/i810/xvmc/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/legacy/i810/xvmc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+ list2=; for p in $$list; do \
+ if test -f $$p; then \
+ list2="$$list2 $$p"; \
+ else :; fi; \
+ done; \
+ test -z "$$list2" || { \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
+ }
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+ for p in $$list; do \
+ $(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
+ done
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libI810XvMC.la: $(libI810XvMC_la_OBJECTS) $(libI810XvMC_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libI810XvMC_la_LINK) $(am_libI810XvMC_la_rpath) $(libI810XvMC_la_OBJECTS) $(libI810XvMC_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/I810XvMC.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES)
+installdirs:
+ for dir in "$(DESTDIR)$(libdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-libLTLIBRARIES
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am: uninstall-libLTLIBRARIES
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libLTLIBRARIES clean-libtool ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am \
+ install-libLTLIBRARIES install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-compile \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ tags uninstall uninstall-am uninstall-libLTLIBRARIES
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/legacy/legacy.h b/src/legacy/legacy.h
new file mode 100644
index 0000000..7bdd172
--- /dev/null
+++ b/src/legacy/legacy.h
@@ -0,0 +1,3 @@
+/* The old i810 (only) driver. */
+const OptionInfoRec *lg_i810_available_options(int chipid, int busid);
+void lg_i810_init(ScrnInfoPtr scrn);
diff --git a/src/render_program/Makefile.am b/src/render_program/Makefile.am
new file mode 100644
index 0000000..1a19437
--- /dev/null
+++ b/src/render_program/Makefile.am
@@ -0,0 +1,121 @@
+INTEL_G4A = \
+ exa_sf.g4a \
+ exa_sf_mask.g4a \
+ exa_wm_src_affine.g4a \
+ exa_wm_src_projective.g4a \
+ exa_wm_src_sample_argb.g4a \
+ exa_wm_src_sample_a.g4a \
+ exa_wm_src_sample_planar.g4a \
+ exa_wm_mask_affine.g4a \
+ exa_wm_mask_projective.g4a \
+ exa_wm_mask_sample_argb.g4a \
+ exa_wm_mask_sample_a.g4a \
+ exa_wm_noca.g4a \
+ exa_wm_ca.g4a \
+ exa_wm_ca_srcalpha.g4a \
+ exa_wm_write.g4a \
+ exa_wm_yuv_rgb.g4a \
+ exa_wm_xy.g4a
+
+INTEL_G4I = \
+ exa_wm.g4i \
+ exa_wm_affine.g4i \
+ exa_wm_projective.g4i
+
+INTEL_G4B = \
+ exa_sf.g4b \
+ exa_sf_mask.g4b \
+ exa_wm_src_affine.g4b \
+ exa_wm_src_projective.g4b \
+ exa_wm_src_sample_argb.g4b \
+ exa_wm_src_sample_a.g4b \
+ exa_wm_src_sample_planar.g4b \
+ exa_wm_mask_affine.g4b \
+ exa_wm_mask_projective.g4b \
+ exa_wm_mask_sample_argb.g4b \
+ exa_wm_mask_sample_a.g4b \
+ exa_wm_noca.g4b \
+ exa_wm_ca.g4b \
+ exa_wm_ca_srcalpha.g4b \
+ exa_wm_write.g4b \
+ exa_wm_yuv_rgb.g4b \
+ exa_wm_xy.g4b
+
+
+INTEL_G4B_GEN5 = \
+ exa_sf.g4b.gen5 \
+ exa_sf_mask.g4b.gen5 \
+ exa_wm_src_affine.g4b.gen5 \
+ exa_wm_src_projective.g4b.gen5 \
+ exa_wm_src_sample_argb.g4b.gen5 \
+ exa_wm_src_sample_a.g4b.gen5 \
+ exa_wm_src_sample_planar.g4b.gen5 \
+ exa_wm_mask_affine.g4b.gen5 \
+ exa_wm_mask_projective.g4b.gen5 \
+ exa_wm_mask_sample_argb.g4b.gen5 \
+ exa_wm_mask_sample_a.g4b.gen5 \
+ exa_wm_noca.g4b.gen5 \
+ exa_wm_ca.g4b.gen5 \
+ exa_wm_ca_srcalpha.g4b.gen5 \
+ exa_wm_write.g4b.gen5 \
+ exa_wm_yuv_rgb.g4b.gen5 \
+ exa_wm_xy.g4b.gen5
+
+INTEL_G6A = \
+ exa_wm_src_affine.g6a \
+ exa_wm_src_projective.g6a \
+ exa_wm_src_sample_argb.g6a \
+ exa_wm_src_sample_planar.g6a \
+ exa_wm_src_sample_a.g6a \
+ exa_wm_mask_affine.g6a \
+ exa_wm_mask_projective.g6a \
+ exa_wm_mask_sample_argb.g6a \
+ exa_wm_mask_sample_a.g6a \
+ exa_wm_ca.g6a \
+ exa_wm_ca_srcalpha.g6a \
+ exa_wm_noca.g6a \
+ exa_wm_write.g6a \
+ exa_wm_yuv_rgb.g6a
+
+INTEL_G6B = \
+ exa_wm_src_affine.g6b \
+ exa_wm_src_projective.g6b \
+ exa_wm_src_sample_argb.g6b \
+ exa_wm_src_sample_planar.g6b \
+ exa_wm_src_sample_a.g6b \
+ exa_wm_mask_affine.g6b \
+ exa_wm_mask_projective.g6b \
+ exa_wm_mask_sample_argb.g6b \
+ exa_wm_mask_sample_a.g6b \
+ exa_wm_ca.g6b \
+ exa_wm_ca_srcalpha.g6b \
+ exa_wm_noca.g6b \
+ exa_wm_write.g6b \
+ exa_wm_yuv_rgb.g6b
+
+EXTRA_DIST = \
+ $(INTEL_G4A) \
+ $(INTEL_G4I) \
+ $(INTEL_G4B) \
+ $(INTEL_G4B_GEN5)\
+ $(INTEL_G6A) \
+ $(INTEL_G6B)
+
+if HAVE_GEN4ASM
+
+SUFFIXES = .g4a .g4b .g6a .g6b
+.g4a.g4b:
+ m4 -I$(srcdir) -s $< > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
+
+.g6a.g6b:
+ m4 -I$(srcdir) -s $< > $*.g6m && intel-gen4asm -g 6 -o $@ $*.g6m && rm $*.g6m
+
+$(INTEL_G4B): $(INTEL_G4I)
+$(INTEL_G6B): $(INTEL_G4I)
+
+BUILT_SOURCES= $(INTEL_G4B) $(INTEL_G6B)
+
+clean-local:
+ -rm -f $(INTEL_G4B) $(INTEL_G4B_GEN5)
+ -rm -f $(INTEL_G6B)
+endif
diff --git a/src/render_program/Makefile.in b/src/render_program/Makefile.in
new file mode 100644
index 0000000..c96a02c
--- /dev/null
+++ b/src/render_program/Makefile.in
@@ -0,0 +1,517 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/render_program
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+INTEL_G4A = \
+ exa_sf.g4a \
+ exa_sf_mask.g4a \
+ exa_wm_src_affine.g4a \
+ exa_wm_src_projective.g4a \
+ exa_wm_src_sample_argb.g4a \
+ exa_wm_src_sample_a.g4a \
+ exa_wm_src_sample_planar.g4a \
+ exa_wm_mask_affine.g4a \
+ exa_wm_mask_projective.g4a \
+ exa_wm_mask_sample_argb.g4a \
+ exa_wm_mask_sample_a.g4a \
+ exa_wm_noca.g4a \
+ exa_wm_ca.g4a \
+ exa_wm_ca_srcalpha.g4a \
+ exa_wm_write.g4a \
+ exa_wm_yuv_rgb.g4a \
+ exa_wm_xy.g4a
+
+INTEL_G4I = \
+ exa_wm.g4i \
+ exa_wm_affine.g4i \
+ exa_wm_projective.g4i
+
+INTEL_G4B = \
+ exa_sf.g4b \
+ exa_sf_mask.g4b \
+ exa_wm_src_affine.g4b \
+ exa_wm_src_projective.g4b \
+ exa_wm_src_sample_argb.g4b \
+ exa_wm_src_sample_a.g4b \
+ exa_wm_src_sample_planar.g4b \
+ exa_wm_mask_affine.g4b \
+ exa_wm_mask_projective.g4b \
+ exa_wm_mask_sample_argb.g4b \
+ exa_wm_mask_sample_a.g4b \
+ exa_wm_noca.g4b \
+ exa_wm_ca.g4b \
+ exa_wm_ca_srcalpha.g4b \
+ exa_wm_write.g4b \
+ exa_wm_yuv_rgb.g4b \
+ exa_wm_xy.g4b
+
+INTEL_G4B_GEN5 = \
+ exa_sf.g4b.gen5 \
+ exa_sf_mask.g4b.gen5 \
+ exa_wm_src_affine.g4b.gen5 \
+ exa_wm_src_projective.g4b.gen5 \
+ exa_wm_src_sample_argb.g4b.gen5 \
+ exa_wm_src_sample_a.g4b.gen5 \
+ exa_wm_src_sample_planar.g4b.gen5 \
+ exa_wm_mask_affine.g4b.gen5 \
+ exa_wm_mask_projective.g4b.gen5 \
+ exa_wm_mask_sample_argb.g4b.gen5 \
+ exa_wm_mask_sample_a.g4b.gen5 \
+ exa_wm_noca.g4b.gen5 \
+ exa_wm_ca.g4b.gen5 \
+ exa_wm_ca_srcalpha.g4b.gen5 \
+ exa_wm_write.g4b.gen5 \
+ exa_wm_yuv_rgb.g4b.gen5 \
+ exa_wm_xy.g4b.gen5
+
+INTEL_G6A = \
+ exa_wm_src_affine.g6a \
+ exa_wm_src_projective.g6a \
+ exa_wm_src_sample_argb.g6a \
+ exa_wm_src_sample_planar.g6a \
+ exa_wm_src_sample_a.g6a \
+ exa_wm_mask_affine.g6a \
+ exa_wm_mask_projective.g6a \
+ exa_wm_mask_sample_argb.g6a \
+ exa_wm_mask_sample_a.g6a \
+ exa_wm_ca.g6a \
+ exa_wm_ca_srcalpha.g6a \
+ exa_wm_noca.g6a \
+ exa_wm_write.g6a \
+ exa_wm_yuv_rgb.g6a
+
+INTEL_G6B = \
+ exa_wm_src_affine.g6b \
+ exa_wm_src_projective.g6b \
+ exa_wm_src_sample_argb.g6b \
+ exa_wm_src_sample_planar.g6b \
+ exa_wm_src_sample_a.g6b \
+ exa_wm_mask_affine.g6b \
+ exa_wm_mask_projective.g6b \
+ exa_wm_mask_sample_argb.g6b \
+ exa_wm_mask_sample_a.g6b \
+ exa_wm_ca.g6b \
+ exa_wm_ca_srcalpha.g6b \
+ exa_wm_noca.g6b \
+ exa_wm_write.g6b \
+ exa_wm_yuv_rgb.g6b
+
+EXTRA_DIST = \
+ $(INTEL_G4A) \
+ $(INTEL_G4I) \
+ $(INTEL_G4B) \
+ $(INTEL_G4B_GEN5)\
+ $(INTEL_G6A) \
+ $(INTEL_G6B)
+
+@HAVE_GEN4ASM_TRUE@SUFFIXES = .g4a .g4b .g6a .g6b
+@HAVE_GEN4ASM_TRUE@BUILT_SOURCES = $(INTEL_G4B) $(INTEL_G6B)
+all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .g4a .g4b .g6a .g6b
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/render_program/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/render_program/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) check-am
+all-am: Makefile
+installdirs:
+install: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+@HAVE_GEN4ASM_FALSE@clean-local:
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: all check install install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ clean-local distclean distclean-generic distclean-libtool \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ uninstall uninstall-am
+
+@HAVE_GEN4ASM_TRUE@.g4a.g4b:
+@HAVE_GEN4ASM_TRUE@ m4 -I$(srcdir) -s $< > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
+
+@HAVE_GEN4ASM_TRUE@.g6a.g6b:
+@HAVE_GEN4ASM_TRUE@ m4 -I$(srcdir) -s $< > $*.g6m && intel-gen4asm -g 6 -o $@ $*.g6m && rm $*.g6m
+
+@HAVE_GEN4ASM_TRUE@$(INTEL_G4B): $(INTEL_G4I)
+@HAVE_GEN4ASM_TRUE@$(INTEL_G6B): $(INTEL_G4I)
+
+@HAVE_GEN4ASM_TRUE@clean-local:
+@HAVE_GEN4ASM_TRUE@ -rm -f $(INTEL_G4B) $(INTEL_G4B_GEN5)
+@HAVE_GEN4ASM_TRUE@ -rm -f $(INTEL_G6B)
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/render_program/exa_sf.g4a b/src/render_program/exa_sf.g4a
new file mode 100644
index 0000000..3e660ac
--- /dev/null
+++ b/src/render_program/exa_sf.g4a
@@ -0,0 +1,107 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Keith Packard <keithp@keithp.com>
+ * Eric Anholt <eric@anholt.net>
+ *
+ */
+
+/*
+ * Inputs (note all sub-register addresses are bytes, not float indices)
+ *
+ * Note that the vertices will have been reordered:
+ *
+ * V0 is topmost (leftmost among topmost) (upper left)
+ * V1 is next clockwise (lower right)
+ * V2 is remaining (lower left)
+ *
+ * V0 ...................... XX
+ * | .
+ * | .
+ * | .
+ * V2------------------------V1
+ *
+ * G0 thread state -- just pass along
+ *
+ * G1 and G2 are fixed by SF spec
+ *
+ * G1.0 reserved
+ * G1.4 Provoking vertex
+ * G1.8 Determinant
+ * G1.12 X1 - X0
+ * G1.16 X2 - X0
+ * G1.20 Y1 - Y0
+ * G1.24 Y2 - Y0
+ * G1.30 reserved
+ *
+ * G2.0 Z0
+ * G2.4 1/W0
+ * G2.8 Z1
+ * G2.12 1/W1
+ * G2.16 Z2
+ * G2.20 1/W2
+ * G2.24 reserved
+ * G2.30 reserved
+ *
+ * G3 is V0 Vertex Attribute Data from URB (upper left)
+ *
+ * G3.0 u0
+ * G3.4 v0
+ *
+ * G4 is V1 Vertex Attribute Data from URB (lower right)
+ *
+ * G4.0 u1
+ * G4.4 v1
+ *
+ * G5 is V2 Vertex Attribute Data from URB (lower left)
+ *
+ */
+
+/* Compute inverses of the input deltas */
+send (4) 0 g6<1>F g1.12<4,4,1>F math inv mlen 1 rlen 1 { align1 };
+
+/* texture location at V0 */
+mov (4) m3<1>F g3<4,4,1>F { align1 };
+
+/* compute V1 - V2 (motion in X) for texture coordinates */
+add (4) g7<1>F g4<4,4,1>F -g5<4,4,1>F { align1 };
+
+/* multiply by 1/dx */
+mul (4) m1<1>F g7<4,4,1>F g6.0<0,1,0>F { align1 };
+
+/* Compute V2 - V0 (motion in Y) for texture coordinates */
+add (4) g7<1>F g5<4,4,1>F -g3<4,4,1>F { align1 };
+
+/* multiply by 1/dy */
+mul (4) m2<1>F g7<4,4,1>F g6.8<0,1,0>F {align1 };
+
+/* and we're done */
+send (8) 0 null g0<8,8,1>F urb 0 transpose used complete mlen 4 rlen 0 { align1 EOT };
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
diff --git a/src/render_program/exa_sf.g4b b/src/render_program/exa_sf.g4b
new file mode 100644
index 0000000..223c9c9
--- /dev/null
+++ b/src/render_program/exa_sf.g4b
@@ -0,0 +1,15 @@
+ { 0x00400031, 0x20c01fbd, 0x0069002c, 0x01110001 },
+ { 0x00400001, 0x206003be, 0x00690060, 0x00000000 },
+ { 0x00400040, 0x20e077bd, 0x00690080, 0x006940a0 },
+ { 0x00400041, 0x202077be, 0x006900e0, 0x000000c0 },
+ { 0x00400040, 0x20e077bd, 0x006900a0, 0x00694060 },
+ { 0x00400041, 0x204077be, 0x006900e0, 0x000000c8 },
+ { 0x00600031, 0x20001fbc, 0x008d0000, 0x8640c800 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
diff --git a/src/render_program/exa_sf.g4b.gen5 b/src/render_program/exa_sf.g4b.gen5
new file mode 100644
index 0000000..a838f47
--- /dev/null
+++ b/src/render_program/exa_sf.g4b.gen5
@@ -0,0 +1,15 @@
+ { 0x00400031, 0x20c01fbd, 0x1069002c, 0x02100001 },
+ { 0x00400001, 0x206003be, 0x00690060, 0x00000000 },
+ { 0x00400040, 0x20e077bd, 0x00690080, 0x006940a0 },
+ { 0x00400041, 0x202077be, 0x006900e0, 0x000000c0 },
+ { 0x00400040, 0x20e077bd, 0x006900a0, 0x00694060 },
+ { 0x00400041, 0x204077be, 0x006900e0, 0x000000c8 },
+ { 0x00600031, 0x20001fbc, 0x648d0000, 0x8808c800 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
diff --git a/src/render_program/exa_sf_mask.g4a b/src/render_program/exa_sf_mask.g4a
new file mode 100644
index 0000000..5078d01
--- /dev/null
+++ b/src/render_program/exa_sf_mask.g4a
@@ -0,0 +1,107 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Keith Packard <keithp@keithp.com>
+ * Eric Anholt <eric@anholt.net>
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ */
+
+/*
+ * Inputs (note all sub-register addresses are bytes, not float indices)
+ *
+ * Note that the vertices will have been reordered:
+ *
+ * V0 is topmost (leftmost among topmost) (upper left)
+ * V1 is next clockwise (lower right)
+ * V2 is remaining (lower left)
+ *
+ * V0 ...................... XX
+ * | .
+ * | .
+ * | .
+ * V2------------------------V1
+ *
+ * G0 thread state -- just pass along
+ *
+ * G1 and G2 are fixed by SF spec
+ *
+ * G1.0 reserved
+ * G1.4 Provoking vertex
+ * G1.8 Determinant
+ * G1.12 X1 - X0
+ * G1.16 X2 - X0
+ * G1.20 Y1 - Y0
+ * G1.24 Y2 - Y0
+ * G1.30 reserved
+ *
+ * G2.0 Z0
+ * G2.4 1/W0
+ * G2.8 Z1
+ * G2.12 1/W1
+ * G2.16 Z2
+ * G2.20 1/W2
+ * G2.24 reserved
+ * G2.30 reserved
+ *
+ * G3 is V0 Vertex Attribute Data from URB (upper left)
+ *
+ * G3.0 u0
+ * G3.4 v0
+ *
+ * G4 is V1 Vertex Attribute Data from URB (lower right)
+ *
+ * G4.0 u1
+ * G4.4 v1
+ *
+ * G5 is V2 Vertex Attribute Data from URB (lower left)
+ *
+ */
+
+/* Compute inverses of the input deltas */
+send (4) 0 g6<1>F g1.12<4,4,1>F math inv mlen 1 rlen 1 { align1 };
+
+/* texture location at V0 */
+mov (8) m3<1>F g3<8,8,1>F { align1 };
+
+/* compute V1 - V2 (motion in X) for texture coordinates */
+add (8) g7<1>F g4<8,8,1>F -g5<8,8,1>F { align1 };
+
+/* multiply by 1/dx */
+mul (8) m1<1>F g7<8,8,1>F g6.0<0,1,0>F { align1 };
+
+/* Compute V2 - V0 (motion in Y) for texture coordinates */
+add (8) g7<1>F g5<8,8,1>F -g3<8,8,1>F { align1 };
+
+/* multiply by 1/dy */
+mul (8) m2<1>F g7<8,8,1>F g6.8<0,1,0>F {align1 };
+
+/* and we're done */
+send (8) 0 null g0<8,8,1>F urb 0 transpose used complete mlen 4 rlen 0 { align1 EOT };
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
diff --git a/src/render_program/exa_sf_mask.g4b b/src/render_program/exa_sf_mask.g4b
new file mode 100644
index 0000000..be0a77b
--- /dev/null
+++ b/src/render_program/exa_sf_mask.g4b
@@ -0,0 +1,15 @@
+ { 0x00400031, 0x20c01fbd, 0x0069002c, 0x01110001 },
+ { 0x00600001, 0x206003be, 0x008d0060, 0x00000000 },
+ { 0x00600040, 0x20e077bd, 0x008d0080, 0x008d40a0 },
+ { 0x00600041, 0x202077be, 0x008d00e0, 0x000000c0 },
+ { 0x00600040, 0x20e077bd, 0x008d00a0, 0x008d4060 },
+ { 0x00600041, 0x204077be, 0x008d00e0, 0x000000c8 },
+ { 0x00600031, 0x20001fbc, 0x008d0000, 0x8640c800 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
diff --git a/src/render_program/exa_sf_mask.g4b.gen5 b/src/render_program/exa_sf_mask.g4b.gen5
new file mode 100644
index 0000000..ca4d8c4
--- /dev/null
+++ b/src/render_program/exa_sf_mask.g4b.gen5
@@ -0,0 +1,15 @@
+ { 0x00400031, 0x20c01fbd, 0x1069002c, 0x02100001 },
+ { 0x00600001, 0x206003be, 0x008d0060, 0x00000000 },
+ { 0x00600040, 0x20e077bd, 0x008d0080, 0x008d40a0 },
+ { 0x00600041, 0x202077be, 0x008d00e0, 0x000000c0 },
+ { 0x00600040, 0x20e077bd, 0x008d00a0, 0x008d4060 },
+ { 0x00600041, 0x204077be, 0x008d00e0, 0x000000c8 },
+ { 0x00600031, 0x20001fbc, 0x648d0000, 0x8808c800 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
diff --git a/src/render_program/exa_wm.g4i b/src/render_program/exa_wm.g4i
new file mode 100644
index 0000000..5d3d45b
--- /dev/null
+++ b/src/render_program/exa_wm.g4i
@@ -0,0 +1,156 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Input parameters
+ */
+
+/* Destination X/Y */
+define(`dst_x_uw', `g1.8<2,4,0>UW')
+define(`dst_y_uw', `g1.10<2,4,0>UW')
+define(`screen_x0', `g1.0<0,1,0>F')
+define(`screen_y0', `g1.4<0,1,0>F')
+
+/* Source transformation parameters */
+define(`src_du_dx', `g3.0<0,1,0>F')
+define(`src_du_dy', `g3.4<0,1,0>F')
+define(`src_uo', `g3.12<0,1,0>F')
+define(`src_dv_dx', `g3.16<0,1,0>F')
+define(`src_dv_dy', `g3.20<0,1,0>F')
+define(`src_vo', `g3.28<0,1,0>F')
+define(`src_dw_dx', `g4.0<0,1,0>F')
+define(`src_dw_dy', `g4.4<0,1,0>F')
+define(`src_wo', `g4.12<0,1,0>F')
+
+define(`mask_du_dx', `g5.0<0,1,0>F')
+define(`mask_du_dy', `g5.4<0,1,0>F')
+define(`mask_uo', `g5.12<0,1,0>F')
+define(`mask_dv_dx', `g5.16<0,1,0>F')
+define(`mask_dv_dy', `g5.20<0,1,0>F')
+define(`mask_vo', `g5.28<0,1,0>F')
+define(`mask_dw_dx', `g6.0<0,1,0>F')
+define(`mask_dw_dy', `g6.4<0,1,0>F')
+define(`mask_wo', `g6.12<0,1,0>F')
+
+/*
+ * Local variables. Pairs must be aligned on even reg boundry
+ */
+
+/* this holds the X dest coordinates */
+define(`dst_x', `g8')
+define(`dst_x_0', `dst_x')
+define(`dst_x_1', `g9')
+
+/* this holds the Y dest coordinates */
+define(`dst_y', `g10')
+define(`dst_y_0', `dst_y')
+define(`dst_y_1', `g11')
+
+/* When computing x * dn/dx, use this */
+define(`temp_x', `g30')
+define(`temp_x_0', `temp_x')
+define(`temp_x_1', `g31')
+
+/* When computing y * dn/dy, use this */
+define(`temp_y', `g28')
+define(`temp_y_0', temp_y)
+define(`temp_y_1', `g29')
+
+/* when loading x/y, use these to hold them in UW format */
+define(`temp_x_uw', temp_x)
+define(`temp_y_uw', temp_y)
+
+/* compute source and mask u/v to this pair to send to sampler */
+define(`src_msg', `m1')
+define(`src_msg_ind',`1')
+define(`src_u', `m2')
+define(`src_v', `m4')
+define(`src_w', `g12')
+define(`src_w_0', `src_w')
+define(`src_w_1', `g13')
+
+define(`mask_msg', `m7')
+define(`mask_msg_ind',`7')
+define(`mask_u', `m8')
+define(`mask_v', `m10')
+define(`mask_w', `src_w')
+define(`mask_w_0', `src_w_0')
+define(`mask_w_1', `src_w_1')
+
+/* sample src to these registers */
+define(`src_sample_base', `g14')
+
+define(`src_sample_r', `g14')
+define(`src_sample_r_01', `g14')
+define(`src_sample_r_23', `g15')
+
+define(`src_sample_g', `g16')
+define(`src_sample_g_01', `g16')
+define(`src_sample_g_23', `g17')
+
+define(`src_sample_b', `g18')
+define(`src_sample_b_01', `g18')
+define(`src_sample_b_23', `g19')
+
+define(`src_sample_a', `g20')
+define(`src_sample_a_01', `g20')
+define(`src_sample_a_23', `g21')
+
+/* sample mask to these registers */
+define(`mask_sample_base', `g22')
+
+define(`mask_sample_r', `g22')
+define(`mask_sample_r_01', `g22')
+define(`mask_sample_r_23', `g23')
+
+define(`mask_sample_g', `g24')
+define(`mask_sample_g_01', `g24')
+define(`mask_sample_g_23', `g25')
+
+define(`mask_sample_b', `g26')
+define(`mask_sample_b_01', `g26')
+define(`mask_sample_b_23', `g27')
+
+define(`mask_sample_a', `g28')
+define(`mask_sample_a_01', `g28')
+define(`mask_sample_a_23', `g29')
+
+/* data port SIMD16 send registers */
+
+define(`data_port_msg_0', `m0')
+define(`data_port_msg_0_ind', `0')
+define(`data_port_msg_1', `m1')
+define(`data_port_r_01', `m2')
+define(`data_port_g_01', `m3')
+define(`data_port_b_01', `m4')
+define(`data_port_a_01', `m5')
+
+define(`data_port_r_23', `m6')
+define(`data_port_g_23', `m7')
+define(`data_port_b_23', `m8')
+define(`data_port_a_23', `m9')
+
diff --git a/src/render_program/exa_wm_affine.g4i b/src/render_program/exa_wm_affine.g4i
new file mode 100644
index 0000000..e72656b
--- /dev/null
+++ b/src/render_program/exa_wm_affine.g4i
@@ -0,0 +1,44 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Fragment to compute src u/v values under an affine transform
+ */
+
+/********** Compute u *************/
+
+mul (16) temp_x<1>F dst_x<8,8,1>F du_dx { compr align1 };
+mul (16) temp_y<1>F dst_y<8,8,1>F du_dy { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F temp_y<8,8,1>F { compr align1 };
+add (16) u<1>F temp_x<8,8,1>F uo { compr align1 };
+
+/********** Compute v *************/
+
+mul (16) temp_x<1>F dst_x<8,8,1>F dv_dx { compr align1 };
+mul (16) temp_y<1>F dst_y<8,8,1>F dv_dy { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F temp_y<8,8,1>F { compr align1 };
+add (16) v<1>F temp_x<8,8,1>F vo { compr align1 };
diff --git a/src/render_program/exa_wm_ca.g4a b/src/render_program/exa_wm_ca.g4a
new file mode 100644
index 0000000..5d982b3
--- /dev/null
+++ b/src/render_program/exa_wm_ca.g4a
@@ -0,0 +1,38 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Composite src and mask together, no component alpha
+ */
+
+include(`exa_wm.g4i')
+
+/* mul mask rgba channels to src */
+mul (16) src_sample_r_01<1>F src_sample_r_01<8,8,1>F mask_sample_r_01<8,8,1>F { compr align1 };
+mul (16) src_sample_g_01<1>F src_sample_g_01<8,8,1>F mask_sample_g_01<8,8,1>F { compr align1 };
+mul (16) src_sample_b_01<1>F src_sample_b_01<8,8,1>F mask_sample_b_01<8,8,1>F { compr align1 };
+mul (16) src_sample_a_01<1>F src_sample_a_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
diff --git a/src/render_program/exa_wm_ca.g4b b/src/render_program/exa_wm_ca.g4b
new file mode 100644
index 0000000..372e8b2
--- /dev/null
+++ b/src/render_program/exa_wm_ca.g4b
@@ -0,0 +1,4 @@
+ { 0x00802041, 0x21c077bd, 0x008d01c0, 0x008d02c0 },
+ { 0x00802041, 0x220077bd, 0x008d0200, 0x008d0300 },
+ { 0x00802041, 0x224077bd, 0x008d0240, 0x008d0340 },
+ { 0x00802041, 0x228077bd, 0x008d0280, 0x008d0380 },
diff --git a/src/render_program/exa_wm_ca.g4b.gen5 b/src/render_program/exa_wm_ca.g4b.gen5
new file mode 100644
index 0000000..372e8b2
--- /dev/null
+++ b/src/render_program/exa_wm_ca.g4b.gen5
@@ -0,0 +1,4 @@
+ { 0x00802041, 0x21c077bd, 0x008d01c0, 0x008d02c0 },
+ { 0x00802041, 0x220077bd, 0x008d0200, 0x008d0300 },
+ { 0x00802041, 0x224077bd, 0x008d0240, 0x008d0340 },
+ { 0x00802041, 0x228077bd, 0x008d0280, 0x008d0380 },
diff --git a/src/render_program/exa_wm_ca.g6a b/src/render_program/exa_wm_ca.g6a
new file mode 100644
index 0000000..5d982b3
--- /dev/null
+++ b/src/render_program/exa_wm_ca.g6a
@@ -0,0 +1,38 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Composite src and mask together, no component alpha
+ */
+
+include(`exa_wm.g4i')
+
+/* mul mask rgba channels to src */
+mul (16) src_sample_r_01<1>F src_sample_r_01<8,8,1>F mask_sample_r_01<8,8,1>F { compr align1 };
+mul (16) src_sample_g_01<1>F src_sample_g_01<8,8,1>F mask_sample_g_01<8,8,1>F { compr align1 };
+mul (16) src_sample_b_01<1>F src_sample_b_01<8,8,1>F mask_sample_b_01<8,8,1>F { compr align1 };
+mul (16) src_sample_a_01<1>F src_sample_a_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
diff --git a/src/render_program/exa_wm_ca.g6b b/src/render_program/exa_wm_ca.g6b
new file mode 100644
index 0000000..521a5b6
--- /dev/null
+++ b/src/render_program/exa_wm_ca.g6b
@@ -0,0 +1,4 @@
+ { 0x00800041, 0x21c077bd, 0x008d01c0, 0x008d02c0 },
+ { 0x00800041, 0x220077bd, 0x008d0200, 0x008d0300 },
+ { 0x00800041, 0x224077bd, 0x008d0240, 0x008d0340 },
+ { 0x00800041, 0x228077bd, 0x008d0280, 0x008d0380 },
diff --git a/src/render_program/exa_wm_ca_srcalpha.g4a b/src/render_program/exa_wm_ca_srcalpha.g4a
new file mode 100644
index 0000000..d1f847f
--- /dev/null
+++ b/src/render_program/exa_wm_ca_srcalpha.g4a
@@ -0,0 +1,37 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Composite src and mask together, no component alpha
+ */
+
+include(`exa_wm.g4i')
+
+mul (16) src_sample_r_01<1>F mask_sample_r_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_g_01<1>F mask_sample_g_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_b_01<1>F mask_sample_b_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_a_01<1>F mask_sample_a_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
diff --git a/src/render_program/exa_wm_ca_srcalpha.g4b b/src/render_program/exa_wm_ca_srcalpha.g4b
new file mode 100644
index 0000000..963d676
--- /dev/null
+++ b/src/render_program/exa_wm_ca_srcalpha.g4b
@@ -0,0 +1,4 @@
+ { 0x00802041, 0x21c077bd, 0x008d02c0, 0x008d0280 },
+ { 0x00802041, 0x220077bd, 0x008d0300, 0x008d0280 },
+ { 0x00802041, 0x224077bd, 0x008d0340, 0x008d0280 },
+ { 0x00802041, 0x228077bd, 0x008d0380, 0x008d0280 },
diff --git a/src/render_program/exa_wm_ca_srcalpha.g4b.gen5 b/src/render_program/exa_wm_ca_srcalpha.g4b.gen5
new file mode 100644
index 0000000..963d676
--- /dev/null
+++ b/src/render_program/exa_wm_ca_srcalpha.g4b.gen5
@@ -0,0 +1,4 @@
+ { 0x00802041, 0x21c077bd, 0x008d02c0, 0x008d0280 },
+ { 0x00802041, 0x220077bd, 0x008d0300, 0x008d0280 },
+ { 0x00802041, 0x224077bd, 0x008d0340, 0x008d0280 },
+ { 0x00802041, 0x228077bd, 0x008d0380, 0x008d0280 },
diff --git a/src/render_program/exa_wm_ca_srcalpha.g6a b/src/render_program/exa_wm_ca_srcalpha.g6a
new file mode 100644
index 0000000..d1f847f
--- /dev/null
+++ b/src/render_program/exa_wm_ca_srcalpha.g6a
@@ -0,0 +1,37 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Composite src and mask together, no component alpha
+ */
+
+include(`exa_wm.g4i')
+
+mul (16) src_sample_r_01<1>F mask_sample_r_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_g_01<1>F mask_sample_g_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_b_01<1>F mask_sample_b_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_a_01<1>F mask_sample_a_01<8,8,1>F src_sample_a_01<8,8,1>F { compr align1 };
diff --git a/src/render_program/exa_wm_ca_srcalpha.g6b b/src/render_program/exa_wm_ca_srcalpha.g6b
new file mode 100644
index 0000000..d5ab7e4
--- /dev/null
+++ b/src/render_program/exa_wm_ca_srcalpha.g6b
@@ -0,0 +1,4 @@
+ { 0x00800041, 0x21c077bd, 0x008d02c0, 0x008d0280 },
+ { 0x00800041, 0x220077bd, 0x008d0300, 0x008d0280 },
+ { 0x00800041, 0x224077bd, 0x008d0340, 0x008d0280 },
+ { 0x00800041, 0x228077bd, 0x008d0380, 0x008d0280 },
diff --git a/src/render_program/exa_wm_mask_affine.g4a b/src/render_program/exa_wm_mask_affine.g4a
new file mode 100644
index 0000000..9c52d2f
--- /dev/null
+++ b/src/render_program/exa_wm_mask_affine.g4a
@@ -0,0 +1,41 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+include(`exa_wm.g4i')
+
+define(`du_dx', `mask_du_dx')
+define(`du_dy', `mask_du_dy')
+define(`uo', `mask_uo')
+
+define(`dv_dx', `mask_dv_dx')
+define(`dv_dy', `mask_dv_dy')
+define(`vo', `mask_vo')
+
+define(`u', `mask_u')
+define(`v', `mask_v')
+
+include(`exa_wm_affine.g4i')
diff --git a/src/render_program/exa_wm_mask_affine.g4b b/src/render_program/exa_wm_mask_affine.g4b
new file mode 100644
index 0000000..14a5451
--- /dev/null
+++ b/src/render_program/exa_wm_mask_affine.g4b
@@ -0,0 +1,8 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000a0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000a4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x210077be, 0x008d03c0, 0x000000ac },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000b0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000b4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x214077be, 0x008d03c0, 0x000000bc },
diff --git a/src/render_program/exa_wm_mask_affine.g4b.gen5 b/src/render_program/exa_wm_mask_affine.g4b.gen5
new file mode 100644
index 0000000..14a5451
--- /dev/null
+++ b/src/render_program/exa_wm_mask_affine.g4b.gen5
@@ -0,0 +1,8 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000a0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000a4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x210077be, 0x008d03c0, 0x000000ac },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000b0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000b4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x214077be, 0x008d03c0, 0x000000bc },
diff --git a/src/render_program/exa_wm_mask_affine.g6a b/src/render_program/exa_wm_mask_affine.g6a
new file mode 100644
index 0000000..2daf4e2
--- /dev/null
+++ b/src/render_program/exa_wm_mask_affine.g6a
@@ -0,0 +1,47 @@
+/*
+ * Copyright © 2010 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+/*
+ * Fragment to compute src u/v values
+ */
+include(`exa_wm.g4i')
+
+define(`ul', `mask_u')
+define(`uh', `m9')
+define(`vl', `mask_v')
+define(`vh', `m11')
+
+define(`bl', `g2.0<8,8,1>F')
+define(`bh', `g4.0<8,8,1>F')
+
+define(`a0_a_x',`g8.0<0,1,0>F')
+define(`a0_a_y',`g8.16<0,1,0>F')
+
+/* U */
+pln (8) ul<1>F a0_a_x bl { align1 }; /* pixel 0-7 */
+pln (8) uh<1>F a0_a_x bh { align1 }; /* pixel 8-15 */
+
+/* V */
+pln (8) vl<1>F a0_a_y bl { align1 }; /* pixel 0-7 */
+pln (8) vh<1>F a0_a_y bh { align1 }; /* pixel 8-15 */
diff --git a/src/render_program/exa_wm_mask_affine.g6b b/src/render_program/exa_wm_mask_affine.g6b
new file mode 100644
index 0000000..e4bef29
--- /dev/null
+++ b/src/render_program/exa_wm_mask_affine.g6b
@@ -0,0 +1,4 @@
+ { 0x0060005a, 0x210077be, 0x00000100, 0x008d0040 },
+ { 0x0060005a, 0x212077be, 0x00000100, 0x008d0080 },
+ { 0x0060005a, 0x214077be, 0x00000110, 0x008d0040 },
+ { 0x0060005a, 0x216077be, 0x00000110, 0x008d0080 },
diff --git a/src/render_program/exa_wm_mask_projective.g4a b/src/render_program/exa_wm_mask_projective.g4a
new file mode 100644
index 0000000..9acaace
--- /dev/null
+++ b/src/render_program/exa_wm_mask_projective.g4a
@@ -0,0 +1,53 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+include(`exa_wm.g4i')
+
+define(`du_dx', `mask_du_dx')
+define(`du_dy', `mask_du_dy')
+define(`uo', `mask_uo')
+
+define(`dv_dx', `mask_dv_dx')
+define(`dv_dy', `mask_dv_dy')
+define(`vo', `mask_vo')
+
+define(`dw_dx', `mask_dw_dx')
+define(`dw_dy', `mask_dw_dy')
+define(`wo', `mask_wo')
+
+define(`u', `mask_u')
+define(`v', `mask_v')
+define(`w', `mask_w')
+
+define(`u_0', `mask_u_0')
+define(`v_0', `mask_v_0')
+define(`u_1', `mask_u_1')
+define(`v_1', `mask_v_1')
+define(`w_0', `mask_w_0')
+define(`w_1', `mask_w_1')
+
+include(`exa_wm_projective.g4i')
diff --git a/src/render_program/exa_wm_mask_projective.g4b b/src/render_program/exa_wm_mask_projective.g4b
new file mode 100644
index 0000000..78cb9ae
--- /dev/null
+++ b/src/render_program/exa_wm_mask_projective.g4b
@@ -0,0 +1,16 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000c0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000c4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x000000cc },
+ { 0x00600031, 0x21801fbd, 0x008d03c0, 0x01110001 },
+ { 0x00600031, 0x21a01fbd, 0x008d03e0, 0x01110001 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000a0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000a4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x000000ac },
+ { 0x00802041, 0x210077be, 0x008d03c0, 0x008d0180 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000b0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000b4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x000000bc },
+ { 0x00802041, 0x214077be, 0x008d03c0, 0x008d0180 },
diff --git a/src/render_program/exa_wm_mask_projective.g4b.gen5 b/src/render_program/exa_wm_mask_projective.g4b.gen5
new file mode 100644
index 0000000..c357459
--- /dev/null
+++ b/src/render_program/exa_wm_mask_projective.g4b.gen5
@@ -0,0 +1,16 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000c0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000c4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x000000cc },
+ { 0x00600031, 0x21801fbd, 0x108d03c0, 0x02100001 },
+ { 0x00600031, 0x21a01fbd, 0x108d03e0, 0x02100001 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000a0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000a4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x000000ac },
+ { 0x00802041, 0x210077be, 0x008d03c0, 0x008d0180 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x000000b0 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x000000b4 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x000000bc },
+ { 0x00802041, 0x214077be, 0x008d03c0, 0x008d0180 },
diff --git a/src/render_program/exa_wm_mask_projective.g6a b/src/render_program/exa_wm_mask_projective.g6a
new file mode 100644
index 0000000..378c277
--- /dev/null
+++ b/src/render_program/exa_wm_mask_projective.g6a
@@ -0,0 +1,63 @@
+/*
+ * Copyright © 2010 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+/*
+ * Fragment to compute src u/v values
+ */
+include(`exa_wm.g4i')
+
+define(`u', `mask_u')
+define(`ul', `mask_u')
+define(`uh', `m9')
+define(`v', `mask_v')
+define(`vl', `mask_v')
+define(`vh', `m11')
+define(`w', `mask_w')
+define(`wl', `mask_w_0')
+define(`wh', `mask_w_1')
+
+define(`bl', `g2.0<8,8,1>F')
+define(`bh', `g4.0<8,8,1>F')
+
+define(`a0_a_x',`g8.0<0,1,0>F')
+define(`a0_a_y',`g8.16<0,1,0>F')
+define(`a0_a_z',`g9.0<0,1,0>F')
+
+/* W */
+pln (8) temp_x_0<1>F a0_a_z bl { align1 }; /* pixel 0-7 */
+pln (8) temp_x_1<1>F a0_a_z bh { align1 }; /* pixel 8-15 */
+math (8) wl<1>F temp_x_0<8,8,1>F null inv { align1 };
+math (8) wh<1>F temp_x_1<8,8,1>F null inv { align1 };
+
+/* U */
+pln (8) temp_x_0<1>F a0_a_x bl { align1 }; /* pixel 0-7 */
+pln (8) temp_x_1<1>F a0_a_x bh { align1 }; /* pixel 8-15 */
+mul (8) ul<1>F temp_x_0<8,8,1>F wl<8,8,1>F { align1 };
+mul (8) uh<1>F temp_x_1<8,8,1>F wh<8,8,1>F { align1 };
+
+/* V */
+pln (8) temp_x_0<1>F a0_a_y bl { align1 }; /* pixel 0-7 */
+pln (8) temp_x_1<1>F a0_a_y bh { align1 }; /* pixel 8-15 */
+mul (8) vl<1>F temp_x_0<8,8,1>F wl<8,8,1>F { align1 };
+mul (8) vh<1>F temp_x_1<8,8,1>F wh<8,8,1>F { align1 };
diff --git a/src/render_program/exa_wm_mask_projective.g6b b/src/render_program/exa_wm_mask_projective.g6b
new file mode 100644
index 0000000..dddcb4b
--- /dev/null
+++ b/src/render_program/exa_wm_mask_projective.g6b
@@ -0,0 +1,12 @@
+ { 0x0060005a, 0x23c077bd, 0x00000120, 0x008d0040 },
+ { 0x0060005a, 0x23e077bd, 0x00000120, 0x008d0080 },
+ { 0x01600038, 0x218003bd, 0x008d03c0, 0x00000000 },
+ { 0x01600038, 0x21a003bd, 0x008d03e0, 0x00000000 },
+ { 0x0060005a, 0x23c077bd, 0x00000100, 0x008d0040 },
+ { 0x0060005a, 0x23e077bd, 0x00000100, 0x008d0080 },
+ { 0x00600041, 0x210077be, 0x008d03c0, 0x008d0180 },
+ { 0x00600041, 0x212077be, 0x008d03e0, 0x008d01a0 },
+ { 0x0060005a, 0x23c077bd, 0x00000110, 0x008d0040 },
+ { 0x0060005a, 0x23e077bd, 0x00000110, 0x008d0080 },
+ { 0x00600041, 0x214077be, 0x008d03c0, 0x008d0180 },
+ { 0x00600041, 0x216077be, 0x008d03e0, 0x008d01a0 },
diff --git a/src/render_program/exa_wm_mask_sample_a.g4a b/src/render_program/exa_wm_mask_sample_a.g4a
new file mode 100644
index 0000000..b1c75af
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_a.g4a
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the mask surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load only alpha */
+mov (1) g0.8<1>UD 0x00007000UD { align1 mask_disable };
+mov (8) mask_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* mask_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) mask_msg_ind /* msg reg index */
+ mask_sample_a_01<1>UW /* readback */
+ null
+ sampler (2,1,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
+
diff --git a/src/render_program/exa_wm_mask_sample_a.g4b b/src/render_program/exa_wm_mask_sample_a.g4b
new file mode 100644
index 0000000..7db47ca
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_a.g4b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00007000 },
+ { 0x00600001, 0x20e00022, 0x008d0000, 0x00000000 },
+ { 0x07800031, 0x23801c09, 0x00000000, 0x02520102 },
diff --git a/src/render_program/exa_wm_mask_sample_a.g4b.gen5 b/src/render_program/exa_wm_mask_sample_a.g4b.gen5
new file mode 100644
index 0000000..472c2bb
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_a.g4b.gen5
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00007000 },
+ { 0x00600001, 0x20e00022, 0x008d0000, 0x00000000 },
+ { 0x07800031, 0x23801c09, 0x20000000, 0x0a2a0102 },
diff --git a/src/render_program/exa_wm_mask_sample_a.g6a b/src/render_program/exa_wm_mask_sample_a.g6a
new file mode 100644
index 0000000..b1c75af
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_a.g6a
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the mask surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load only alpha */
+mov (1) g0.8<1>UD 0x00007000UD { align1 mask_disable };
+mov (8) mask_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* mask_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) mask_msg_ind /* msg reg index */
+ mask_sample_a_01<1>UW /* readback */
+ null
+ sampler (2,1,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
+
diff --git a/src/render_program/exa_wm_mask_sample_a.g6b b/src/render_program/exa_wm_mask_sample_a.g6b
new file mode 100644
index 0000000..6d1eae9
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_a.g6b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00007000 },
+ { 0x00600001, 0x20e00022, 0x008d0000, 0x00000000 },
+ { 0x02800031, 0x23801cc9, 0x000000e0, 0x0a2a0102 },
diff --git a/src/render_program/exa_wm_mask_sample_argb.g4a b/src/render_program/exa_wm_mask_sample_argb.g4a
new file mode 100644
index 0000000..78bfc92
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_argb.g4a
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the mask surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load argb */
+mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable };
+mov (8) mask_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* mask_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) mask_msg_ind /* msg reg index */
+ mask_sample_base<1>UW /* readback */
+ null
+ sampler (2,1,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */
+
diff --git a/src/render_program/exa_wm_mask_sample_argb.g4b b/src/render_program/exa_wm_mask_sample_argb.g4b
new file mode 100644
index 0000000..9026ee2
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_argb.g4b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00022, 0x008d0000, 0x00000000 },
+ { 0x07800031, 0x22c01c09, 0x00000000, 0x02580102 },
diff --git a/src/render_program/exa_wm_mask_sample_argb.g4b.gen5 b/src/render_program/exa_wm_mask_sample_argb.g4b.gen5
new file mode 100644
index 0000000..cb112d5
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_argb.g4b.gen5
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00022, 0x008d0000, 0x00000000 },
+ { 0x07800031, 0x22c01c09, 0x20000000, 0x0a8a0102 },
diff --git a/src/render_program/exa_wm_mask_sample_argb.g6a b/src/render_program/exa_wm_mask_sample_argb.g6a
new file mode 100644
index 0000000..78bfc92
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_argb.g6a
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the mask surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load argb */
+mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable };
+mov (8) mask_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* mask_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) mask_msg_ind /* msg reg index */
+ mask_sample_base<1>UW /* readback */
+ null
+ sampler (2,1,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */
+
diff --git a/src/render_program/exa_wm_mask_sample_argb.g6b b/src/render_program/exa_wm_mask_sample_argb.g6b
new file mode 100644
index 0000000..e5630bd
--- /dev/null
+++ b/src/render_program/exa_wm_mask_sample_argb.g6b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00022, 0x008d0000, 0x00000000 },
+ { 0x02800031, 0x22c01cc9, 0x000000e0, 0x0a8a0102 },
diff --git a/src/render_program/exa_wm_noca.g4a b/src/render_program/exa_wm_noca.g4a
new file mode 100644
index 0000000..d0d60fa
--- /dev/null
+++ b/src/render_program/exa_wm_noca.g4a
@@ -0,0 +1,38 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Composite src and mask together, no component alpha
+ */
+
+include(`exa_wm.g4i')
+/* mul mask's alpha channel to src */
+
+mul (16) src_sample_r_01<1>F src_sample_r_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_g_01<1>F src_sample_g_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_b_01<1>F src_sample_b_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_a_01<1>F src_sample_a_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
diff --git a/src/render_program/exa_wm_noca.g4b b/src/render_program/exa_wm_noca.g4b
new file mode 100644
index 0000000..1506334
--- /dev/null
+++ b/src/render_program/exa_wm_noca.g4b
@@ -0,0 +1,4 @@
+ { 0x00802041, 0x21c077bd, 0x008d01c0, 0x008d0380 },
+ { 0x00802041, 0x220077bd, 0x008d0200, 0x008d0380 },
+ { 0x00802041, 0x224077bd, 0x008d0240, 0x008d0380 },
+ { 0x00802041, 0x228077bd, 0x008d0280, 0x008d0380 },
diff --git a/src/render_program/exa_wm_noca.g4b.gen5 b/src/render_program/exa_wm_noca.g4b.gen5
new file mode 100644
index 0000000..1506334
--- /dev/null
+++ b/src/render_program/exa_wm_noca.g4b.gen5
@@ -0,0 +1,4 @@
+ { 0x00802041, 0x21c077bd, 0x008d01c0, 0x008d0380 },
+ { 0x00802041, 0x220077bd, 0x008d0200, 0x008d0380 },
+ { 0x00802041, 0x224077bd, 0x008d0240, 0x008d0380 },
+ { 0x00802041, 0x228077bd, 0x008d0280, 0x008d0380 },
diff --git a/src/render_program/exa_wm_noca.g6a b/src/render_program/exa_wm_noca.g6a
new file mode 100644
index 0000000..d0d60fa
--- /dev/null
+++ b/src/render_program/exa_wm_noca.g6a
@@ -0,0 +1,38 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Composite src and mask together, no component alpha
+ */
+
+include(`exa_wm.g4i')
+/* mul mask's alpha channel to src */
+
+mul (16) src_sample_r_01<1>F src_sample_r_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_g_01<1>F src_sample_g_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_b_01<1>F src_sample_b_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
+mul (16) src_sample_a_01<1>F src_sample_a_01<8,8,1>F mask_sample_a_01<8,8,1>F { compr align1 };
diff --git a/src/render_program/exa_wm_noca.g6b b/src/render_program/exa_wm_noca.g6b
new file mode 100644
index 0000000..e77ea2d
--- /dev/null
+++ b/src/render_program/exa_wm_noca.g6b
@@ -0,0 +1,4 @@
+ { 0x00800041, 0x21c077bd, 0x008d01c0, 0x008d0380 },
+ { 0x00800041, 0x220077bd, 0x008d0200, 0x008d0380 },
+ { 0x00800041, 0x224077bd, 0x008d0240, 0x008d0380 },
+ { 0x00800041, 0x228077bd, 0x008d0280, 0x008d0380 },
diff --git a/src/render_program/exa_wm_projective.g4i b/src/render_program/exa_wm_projective.g4i
new file mode 100644
index 0000000..7e2e0a8
--- /dev/null
+++ b/src/render_program/exa_wm_projective.g4i
@@ -0,0 +1,51 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/********** Compute w *************/
+
+mul (16) temp_x<1>F dst_x<8,8,1>F dw_dx { compr align1 };
+mul (16) temp_y<1>F dst_y<8,8,1>F dw_dy { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F temp_y<8,8,1>F { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F wo { compr align1 };
+send (8) 0 w_0<1>F temp_x_0<8,8,1>F math inv mlen 1 rlen 1 { align1 };
+send (8) 0 w_1<1>F temp_x_1<8,8,1>F math inv mlen 1 rlen 1 { sechalf align1 };
+
+/********** Compute u *************/
+
+mul (16) temp_x<1>F dst_x<8,8,1>F du_dx { compr align1 };
+mul (16) temp_y<1>F dst_y<8,8,1>F du_dy { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F temp_y<8,8,1>F { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F uo { compr align1 };
+mul (16) u<1>F temp_x<8,8,1>F w<8,8,1>F { compr align1 };
+
+/********** Compute v *************/
+
+mul (16) temp_x<1>F dst_x<8,8,1>F dv_dx { compr align1 };
+mul (16) temp_y<1>F dst_y<8,8,1>F dv_dy { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F temp_y<8,8,1>F { compr align1 };
+add (16) temp_x<1>F temp_x<8,8,1>F vo { compr align1 };
+mul (16) v<1>F temp_x<8,8,1>F w<8,8,1>F { compr align1 };
diff --git a/src/render_program/exa_wm_src_affine.g4a b/src/render_program/exa_wm_src_affine.g4a
new file mode 100644
index 0000000..3194b5a
--- /dev/null
+++ b/src/render_program/exa_wm_src_affine.g4a
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Fragment to compute src u/v values under an affine transform
+ */
+
+include(`exa_wm.g4i')
+
+define(`du_dx', `src_du_dx')
+define(`du_dy', `src_du_dy')
+define(`uo', `src_uo')
+
+define(`dv_dx', `src_dv_dx')
+define(`dv_dy', `src_dv_dy')
+define(`vo', `src_vo')
+
+define(`u', `src_u')
+define(`v', `src_v')
+
+include(`exa_wm_affine.g4i')
diff --git a/src/render_program/exa_wm_src_affine.g4b b/src/render_program/exa_wm_src_affine.g4b
new file mode 100644
index 0000000..d30da87
--- /dev/null
+++ b/src/render_program/exa_wm_src_affine.g4b
@@ -0,0 +1,8 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000060 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000064 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x204077be, 0x008d03c0, 0x0000006c },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000070 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000074 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x208077be, 0x008d03c0, 0x0000007c },
diff --git a/src/render_program/exa_wm_src_affine.g4b.gen5 b/src/render_program/exa_wm_src_affine.g4b.gen5
new file mode 100644
index 0000000..d30da87
--- /dev/null
+++ b/src/render_program/exa_wm_src_affine.g4b.gen5
@@ -0,0 +1,8 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000060 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000064 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x204077be, 0x008d03c0, 0x0000006c },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000070 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000074 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x208077be, 0x008d03c0, 0x0000007c },
diff --git a/src/render_program/exa_wm_src_affine.g6a b/src/render_program/exa_wm_src_affine.g6a
new file mode 100644
index 0000000..08195a4
--- /dev/null
+++ b/src/render_program/exa_wm_src_affine.g6a
@@ -0,0 +1,47 @@
+/*
+ * Copyright © 2010 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+/*
+ * Fragment to compute src u/v values
+ */
+include(`exa_wm.g4i')
+
+define(`ul', `src_u')
+define(`uh', `m3')
+define(`vl', `src_v')
+define(`vh', `m5')
+
+define(`bl', `g2.0<8,8,1>F')
+define(`bh', `g4.0<8,8,1>F')
+
+define(`a0_a_x',`g6.0<0,1,0>F')
+define(`a0_a_y',`g6.16<0,1,0>F')
+
+/* U */
+pln (8) ul<1>F a0_a_x bl { align1 }; /* pixel 0-7 */
+pln (8) uh<1>F a0_a_x bh { align1 }; /* pixel 8-15 */
+
+/* V */
+pln (8) vl<1>F a0_a_y bl { align1 }; /* pixel 0-7 */
+pln (8) vh<1>F a0_a_y bh { align1 }; /* pixel 8-15 */
diff --git a/src/render_program/exa_wm_src_affine.g6b b/src/render_program/exa_wm_src_affine.g6b
new file mode 100644
index 0000000..7035e6a
--- /dev/null
+++ b/src/render_program/exa_wm_src_affine.g6b
@@ -0,0 +1,4 @@
+ { 0x0060005a, 0x204077be, 0x000000c0, 0x008d0040 },
+ { 0x0060005a, 0x206077be, 0x000000c0, 0x008d0080 },
+ { 0x0060005a, 0x208077be, 0x000000d0, 0x008d0040 },
+ { 0x0060005a, 0x20a077be, 0x000000d0, 0x008d0080 },
diff --git a/src/render_program/exa_wm_src_projective.g4a b/src/render_program/exa_wm_src_projective.g4a
new file mode 100644
index 0000000..16c9cd5
--- /dev/null
+++ b/src/render_program/exa_wm_src_projective.g4a
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+
+include(`exa_wm.g4i')
+define(`du_dx', `src_du_dx')
+define(`du_dy', `src_du_dy')
+define(`uo', `src_uo')
+define(`dv_dx', `src_dv_dx')
+define(`dv_dy', `src_dv_dy')
+define(`vo', `src_vo')
+define(`dw_dx', `src_dw_dx')
+define(`dw_dy', `src_dw_dy')
+define(`wo', `src_wo')
+define(`u', `src_u')
+define(`v', `src_v')
+define(`w', `src_w')
+define(`u_0', `src_u_0')
+define(`v_0', `src_v_0')
+define(`u_1', `src_u_1')
+define(`v_1', `src_v_1')
+define(`w_0', `src_w_0')
+define(`w_1', `src_w_1')
+
+include(`exa_wm_projective.g4i')
diff --git a/src/render_program/exa_wm_src_projective.g4b b/src/render_program/exa_wm_src_projective.g4b
new file mode 100644
index 0000000..198bab3
--- /dev/null
+++ b/src/render_program/exa_wm_src_projective.g4b
@@ -0,0 +1,16 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000080 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000084 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x0000008c },
+ { 0x00600031, 0x21801fbd, 0x008d03c0, 0x01110001 },
+ { 0x00600031, 0x21a01fbd, 0x008d03e0, 0x01110001 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000060 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000064 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x0000006c },
+ { 0x00802041, 0x204077be, 0x008d03c0, 0x008d0180 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000070 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000074 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x0000007c },
+ { 0x00802041, 0x208077be, 0x008d03c0, 0x008d0180 },
diff --git a/src/render_program/exa_wm_src_projective.g4b.gen5 b/src/render_program/exa_wm_src_projective.g4b.gen5
new file mode 100644
index 0000000..ae3db8c
--- /dev/null
+++ b/src/render_program/exa_wm_src_projective.g4b.gen5
@@ -0,0 +1,16 @@
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000080 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000084 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x0000008c },
+ { 0x00600031, 0x21801fbd, 0x108d03c0, 0x02100001 },
+ { 0x00600031, 0x21a01fbd, 0x108d03e0, 0x02100001 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000060 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000064 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x0000006c },
+ { 0x00802041, 0x204077be, 0x008d03c0, 0x008d0180 },
+ { 0x00802041, 0x23c077bd, 0x008d0100, 0x00000070 },
+ { 0x00802041, 0x238077bd, 0x008d0140, 0x00000074 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x008d0380 },
+ { 0x00802040, 0x23c077bd, 0x008d03c0, 0x0000007c },
+ { 0x00802041, 0x208077be, 0x008d03c0, 0x008d0180 },
diff --git a/src/render_program/exa_wm_src_projective.g6a b/src/render_program/exa_wm_src_projective.g6a
new file mode 100644
index 0000000..af08eff
--- /dev/null
+++ b/src/render_program/exa_wm_src_projective.g6a
@@ -0,0 +1,63 @@
+/*
+ * Copyright © 2010 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+/*
+ * Fragment to compute src u/v values
+ */
+include(`exa_wm.g4i')
+
+define(`u', `src_u')
+define(`ul', `src_u')
+define(`uh', `m3')
+define(`v', `src_v')
+define(`vl', `src_v')
+define(`vh', `m5')
+define(`w', `src_w')
+define(`wl', `src_w_0')
+define(`wh', `src_w_1')
+
+define(`bl', `g2.0<8,8,1>F')
+define(`bh', `g4.0<8,8,1>F')
+
+define(`a0_a_x',`g6.0<0,1,0>F')
+define(`a0_a_y',`g6.16<0,1,0>F')
+define(`a0_a_z',`g7.0<0,1,0>F')
+
+/* W */
+pln (8) temp_x_0<1>F a0_a_z bl { align1 }; /* pixel 0-7 */
+pln (8) temp_x_1<1>F a0_a_z bh { align1 }; /* pixel 8-15 */
+math (8) wl<1>F temp_x_0<8,8,1>F null inv { align1 };
+math (8) wh<1>F temp_x_1<8,8,1>F null inv { align1 };
+
+/* U */
+pln (8) temp_x_0<1>F a0_a_x bl { align1 }; /* pixel 0-7 */
+pln (8) temp_x_1<1>F a0_a_x bh { align1 }; /* pixel 8-15 */
+mul (8) ul<1>F temp_x_0<8,8,1>F wl<8,8,1>F { align1 };
+mul (8) uh<1>F temp_x_1<8,8,1>F wh<8,8,1>F { align1 };
+
+/* V */
+pln (8) temp_x_0<1>F a0_a_y bl { align1 }; /* pixel 0-7 */
+pln (8) temp_x_1<1>F a0_a_y bh { align1 }; /* pixel 8-15 */
+mul (8) vl<1>F temp_x_0<8,8,1>F wl<8,8,1>F { align1 };
+mul (8) vh<1>F temp_x_1<8,8,1>F wh<8,8,1>F { align1 };
diff --git a/src/render_program/exa_wm_src_projective.g6b b/src/render_program/exa_wm_src_projective.g6b
new file mode 100644
index 0000000..8e39bff
--- /dev/null
+++ b/src/render_program/exa_wm_src_projective.g6b
@@ -0,0 +1,12 @@
+ { 0x0060005a, 0x23c077bd, 0x000000e0, 0x008d0040 },
+ { 0x0060005a, 0x23e077bd, 0x000000e0, 0x008d0080 },
+ { 0x01600038, 0x218003bd, 0x008d03c0, 0x00000000 },
+ { 0x01600038, 0x21a003bd, 0x008d03e0, 0x00000000 },
+ { 0x0060005a, 0x23c077bd, 0x000000c0, 0x008d0040 },
+ { 0x0060005a, 0x23e077bd, 0x000000c0, 0x008d0080 },
+ { 0x00600041, 0x204077be, 0x008d03c0, 0x008d0180 },
+ { 0x00600041, 0x206077be, 0x008d03e0, 0x008d01a0 },
+ { 0x0060005a, 0x23c077bd, 0x000000d0, 0x008d0040 },
+ { 0x0060005a, 0x23e077bd, 0x000000d0, 0x008d0080 },
+ { 0x00600041, 0x208077be, 0x008d03c0, 0x008d0180 },
+ { 0x00600041, 0x20a077be, 0x008d03e0, 0x008d01a0 },
diff --git a/src/render_program/exa_wm_src_sample_a.g4a b/src/render_program/exa_wm_src_sample_a.g4a
new file mode 100644
index 0000000..667bfb3
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_a.g4a
@@ -0,0 +1,48 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the src surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load alpha */
+mov (1) g0.8<1>UD 0x00007000UD { align1 mask_disable };
+mov (8) src_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* src_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_a_01<1>UW /* readback */
+ null
+ sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
diff --git a/src/render_program/exa_wm_src_sample_a.g4b b/src/render_program/exa_wm_src_sample_a.g4b
new file mode 100644
index 0000000..5e5a11f
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_a.g4b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00007000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x01800031, 0x22801c09, 0x00000000, 0x02520001 },
diff --git a/src/render_program/exa_wm_src_sample_a.g4b.gen5 b/src/render_program/exa_wm_src_sample_a.g4b.gen5
new file mode 100644
index 0000000..0e4eebe
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_a.g4b.gen5
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00007000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x01800031, 0x22801c09, 0x20000000, 0x0a2a0001 },
diff --git a/src/render_program/exa_wm_src_sample_a.g6a b/src/render_program/exa_wm_src_sample_a.g6a
new file mode 100644
index 0000000..667bfb3
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_a.g6a
@@ -0,0 +1,48 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the src surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load alpha */
+mov (1) g0.8<1>UD 0x00007000UD { align1 mask_disable };
+mov (8) src_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* src_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_a_01<1>UW /* readback */
+ null
+ sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
diff --git a/src/render_program/exa_wm_src_sample_a.g6b b/src/render_program/exa_wm_src_sample_a.g6b
new file mode 100644
index 0000000..0b4a955
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_a.g6b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00007000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x02800031, 0x22801cc9, 0x00000020, 0x0a2a0001 },
diff --git a/src/render_program/exa_wm_src_sample_argb.g4a b/src/render_program/exa_wm_src_sample_argb.g4a
new file mode 100644
index 0000000..384fe26
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_argb.g4a
@@ -0,0 +1,48 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the src surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load argb */
+mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable };
+mov (8) src_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* src_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_base<1>UW /* readback */
+ null
+ sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */
diff --git a/src/render_program/exa_wm_src_sample_argb.g4b b/src/render_program/exa_wm_src_sample_argb.g4b
new file mode 100644
index 0000000..a15e40a
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_argb.g4b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x01800031, 0x21c01c09, 0x00000000, 0x02580001 },
diff --git a/src/render_program/exa_wm_src_sample_argb.g4b.gen5 b/src/render_program/exa_wm_src_sample_argb.g4b.gen5
new file mode 100644
index 0000000..42039af
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_argb.g4b.gen5
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x01800031, 0x21c01c09, 0x20000000, 0x0a8a0001 },
diff --git a/src/render_program/exa_wm_src_sample_argb.g6a b/src/render_program/exa_wm_src_sample_argb.g6a
new file mode 100644
index 0000000..384fe26
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_argb.g6a
@@ -0,0 +1,48 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the src surface */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load argb */
+mov (1) g0.8<1>UD 0x00000000UD { align1 mask_disable };
+mov (8) src_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+
+/* src_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_base<1>UW /* readback */
+ null
+ sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 8 { align1 }; /* required message len 5, readback len 8 */
diff --git a/src/render_program/exa_wm_src_sample_argb.g6b b/src/render_program/exa_wm_src_sample_argb.g6b
new file mode 100644
index 0000000..8bfe849
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_argb.g6b
@@ -0,0 +1,3 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x02800031, 0x21c01cc9, 0x00000020, 0x0a8a0001 },
diff --git a/src/render_program/exa_wm_src_sample_planar.g4a b/src/render_program/exa_wm_src_sample_planar.g4a
new file mode 100644
index 0000000..5f5520b
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_planar.g4a
@@ -0,0 +1,66 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the src surface in planar format */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load r */
+mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable };
+
+/* src_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+
+/* sample Y */
+mov (8) src_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+send (16) src_msg_ind /* msg reg index */
+ src_sample_g<1>UW /* readback */
+ null
+ sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
+
+/* sample U (Cr) */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_r<1>UW /* readback */
+ null
+ sampler (3,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
+
+/* sample V (Cb) */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_b<1>UW /* readback */
+ null
+ sampler (5,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
diff --git a/src/render_program/exa_wm_src_sample_planar.g4b b/src/render_program/exa_wm_src_sample_planar.g4b
new file mode 100644
index 0000000..c8dc47d
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_planar.g4b
@@ -0,0 +1,5 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x01800031, 0x22001c09, 0x00000000, 0x02520001 },
+ { 0x01800031, 0x21c01c09, 0x00000000, 0x02520003 },
+ { 0x01800031, 0x22401c09, 0x00000000, 0x02520005 },
diff --git a/src/render_program/exa_wm_src_sample_planar.g4b.gen5 b/src/render_program/exa_wm_src_sample_planar.g4b.gen5
new file mode 100644
index 0000000..ce3670b
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_planar.g4b.gen5
@@ -0,0 +1,5 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x01800031, 0x22001c09, 0x20000000, 0x0a2a0001 },
+ { 0x01800031, 0x21c01c09, 0x20000000, 0x0a2a0003 },
+ { 0x01800031, 0x22401c09, 0x20000000, 0x0a2a0005 },
diff --git a/src/render_program/exa_wm_src_sample_planar.g6a b/src/render_program/exa_wm_src_sample_planar.g6a
new file mode 100644
index 0000000..5f5520b
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_planar.g6a
@@ -0,0 +1,66 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/* Sample the src surface in planar format */
+
+include(`exa_wm.g4i')
+
+/* prepare sampler read back gX register, which would be written back to output */
+
+/* use simd16 sampler, param 0 is u, param 1 is v. */
+/* 'payload' loading, assuming tex coord start from g4 */
+
+/* load r */
+mov (1) g0.8<1>UD 0x0000e000UD { align1 mask_disable };
+
+/* src_msg will be copied with g0, as it contains send desc */
+/* emit sampler 'send' cmd */
+
+/* sample Y */
+mov (8) src_msg<1>UD g0<8,8,1>UD { align1 }; /* copy to msg start reg*/
+send (16) src_msg_ind /* msg reg index */
+ src_sample_g<1>UW /* readback */
+ null
+ sampler (1,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
+
+/* sample U (Cr) */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_r<1>UW /* readback */
+ null
+ sampler (3,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
+
+/* sample V (Cb) */
+send (16) src_msg_ind /* msg reg index */
+ src_sample_b<1>UW /* readback */
+ null
+ sampler (5,0,F) /* sampler message description, (binding_table,sampler_index,datatype)
+ /* here(src->dst) we should use src_sampler and src_surface */
+ mlen 5 rlen 2 { align1 }; /* required message len 5, readback len 8 */
diff --git a/src/render_program/exa_wm_src_sample_planar.g6b b/src/render_program/exa_wm_src_sample_planar.g6b
new file mode 100644
index 0000000..0a22827
--- /dev/null
+++ b/src/render_program/exa_wm_src_sample_planar.g6b
@@ -0,0 +1,5 @@
+ { 0x00000201, 0x20080061, 0x00000000, 0x0000e000 },
+ { 0x00600001, 0x20200022, 0x008d0000, 0x00000000 },
+ { 0x02800031, 0x22001cc9, 0x00000020, 0x0a2a0001 },
+ { 0x02800031, 0x21c01cc9, 0x00000020, 0x0a2a0003 },
+ { 0x02800031, 0x22401cc9, 0x00000020, 0x0a2a0005 },
diff --git a/src/render_program/exa_wm_write.g4a b/src/render_program/exa_wm_write.g4a
new file mode 100644
index 0000000..faee80b
--- /dev/null
+++ b/src/render_program/exa_wm_write.g4a
@@ -0,0 +1,74 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+include(`exa_wm.g4i')
+
+/*
+ * Prepare data in m2-m5 for subspan(1,0), m6-m9 for subspan(3,2),
+ *
+ * Note that the SIMD16 write message takes data for the first
+ * two sub-spans followed by the data for the second two sub-spans
+ * instead of having the two sub-spans interleaved by channel. Weird.
+ */
+
+mov (8) data_port_r_01<1>F src_sample_r_01<8,8,1>F { align1 };
+mov (8) data_port_g_01<1>F src_sample_g_01<8,8,1>F { align1 };
+mov (8) data_port_b_01<1>F src_sample_b_01<8,8,1>F { align1 };
+mov (8) data_port_a_01<1>F src_sample_a_01<8,8,1>F { align1 };
+
+mov (8) data_port_r_23<1>F src_sample_r_23<8,8,1>F { sechalf align1 };
+mov (8) data_port_g_23<1>F src_sample_g_23<8,8,1>F { sechalf align1 };
+mov (8) data_port_b_23<1>F src_sample_b_23<8,8,1>F { sechalf align1 };
+mov (8) data_port_a_23<1>F src_sample_a_23<8,8,1>F { sechalf align1 };
+
+/* m0, m1 are all direct passed by PS thread payload */
+mov (8) data_port_msg_1<1>UD g1<8,8,1>UD { mask_disable align1 };
+
+/* write */
+send (16)
+ data_port_msg_0_ind
+ acc0<1>UW
+ g0<8,8,1>UW
+ write (
+ 0, /* binding_table */
+ 8, /* pixel scordboard clear, msg type simd16 single source */
+ 4, /* render target write */
+ 0 /* no write commit message */
+ )
+ mlen 10
+ rlen 0
+ { align1 EOT };
+
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+
diff --git a/src/render_program/exa_wm_write.g4b b/src/render_program/exa_wm_write.g4b
new file mode 100644
index 0000000..92e7b24
--- /dev/null
+++ b/src/render_program/exa_wm_write.g4b
@@ -0,0 +1,18 @@
+ { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 },
+ { 0x00600001, 0x206003be, 0x008d0200, 0x00000000 },
+ { 0x00600001, 0x208003be, 0x008d0240, 0x00000000 },
+ { 0x00600001, 0x20a003be, 0x008d0280, 0x00000000 },
+ { 0x00601001, 0x20c003be, 0x008d01e0, 0x00000000 },
+ { 0x00601001, 0x20e003be, 0x008d0220, 0x00000000 },
+ { 0x00601001, 0x210003be, 0x008d0260, 0x00000000 },
+ { 0x00601001, 0x212003be, 0x008d02a0, 0x00000000 },
+ { 0x00600201, 0x20200022, 0x008d0020, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x85a04800 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
diff --git a/src/render_program/exa_wm_write.g4b.gen5 b/src/render_program/exa_wm_write.g4b.gen5
new file mode 100644
index 0000000..c40560f
--- /dev/null
+++ b/src/render_program/exa_wm_write.g4b.gen5
@@ -0,0 +1,18 @@
+ { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 },
+ { 0x00600001, 0x206003be, 0x008d0200, 0x00000000 },
+ { 0x00600001, 0x208003be, 0x008d0240, 0x00000000 },
+ { 0x00600001, 0x20a003be, 0x008d0280, 0x00000000 },
+ { 0x00601001, 0x20c003be, 0x008d01e0, 0x00000000 },
+ { 0x00601001, 0x20e003be, 0x008d0220, 0x00000000 },
+ { 0x00601001, 0x210003be, 0x008d0260, 0x00000000 },
+ { 0x00601001, 0x212003be, 0x008d02a0, 0x00000000 },
+ { 0x00600201, 0x20200022, 0x008d0020, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x548d0000, 0x94084800 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
diff --git a/src/render_program/exa_wm_write.g6a b/src/render_program/exa_wm_write.g6a
new file mode 100644
index 0000000..c0f3cc1
--- /dev/null
+++ b/src/render_program/exa_wm_write.g6a
@@ -0,0 +1,77 @@
+/*
+ * Copyright © 2010 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ */
+
+include(`exa_wm.g4i')
+
+/*
+ * Prepare data in m2-m3 for Red channel, m4-m5 for Green channel,
+ * m6-m7 for Blue and m8-m9 for Alpha channel
+ */
+define(`slot_r_00', `m2')
+define(`slot_r_01', `m3')
+define(`slot_g_00', `m4')
+define(`slot_g_01', `m5')
+define(`slot_b_00', `m6')
+define(`slot_b_01', `m7')
+define(`slot_a_00', `m8')
+define(`slot_a_01', `m9')
+define(`data_port_msg_2_ind', `2')
+
+mov (8) slot_r_00<1>F src_sample_r_01<8,8,1>F { align1 };
+mov (8) slot_r_01<1>F src_sample_r_23<8,8,1>F { align1 };
+
+mov (8) slot_g_00<1>F src_sample_g_01<8,8,1>F { align1 };
+mov (8) slot_g_01<1>F src_sample_g_23<8,8,1>F { align1 };
+
+mov (8) slot_b_00<1>F src_sample_b_01<8,8,1>F { align1 };
+mov (8) slot_b_01<1>F src_sample_b_23<8,8,1>F { align1 };
+
+mov (8) slot_a_00<1>F src_sample_a_01<8,8,1>F { align1 };
+mov (8) slot_a_01<1>F src_sample_a_23<8,8,1>F { align1 };
+
+/* write */
+send (16)
+ data_port_msg_2_ind
+ acc0<1>UW
+ null
+ write (
+ 0, /* binding_table */
+ 16, /* pixel scordboard clear, msg type simd16 single source */
+ 12, /* render target write */
+ 0, /* no write commit message */
+ 0 /* headerless render target write */
+ )
+ mlen 8
+ rlen 0
+ { align1 EOT };
+
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+nop;
+
diff --git a/src/render_program/exa_wm_write.g6b b/src/render_program/exa_wm_write.g6b
new file mode 100644
index 0000000..3cb6bff
--- /dev/null
+++ b/src/render_program/exa_wm_write.g6b
@@ -0,0 +1,17 @@
+ { 0x00600001, 0x204003be, 0x008d01c0, 0x00000000 },
+ { 0x00600001, 0x206003be, 0x008d01e0, 0x00000000 },
+ { 0x00600001, 0x208003be, 0x008d0200, 0x00000000 },
+ { 0x00600001, 0x20a003be, 0x008d0220, 0x00000000 },
+ { 0x00600001, 0x20c003be, 0x008d0240, 0x00000000 },
+ { 0x00600001, 0x20e003be, 0x008d0260, 0x00000000 },
+ { 0x00600001, 0x210003be, 0x008d0280, 0x00000000 },
+ { 0x00600001, 0x212003be, 0x008d02a0, 0x00000000 },
+ { 0x05800031, 0x24001cc8, 0x00000040, 0x90019000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
+ { 0x0000007e, 0x00000000, 0x00000000, 0x00000000 },
diff --git a/src/render_program/exa_wm_xy.g4a b/src/render_program/exa_wm_xy.g4a
new file mode 100644
index 0000000..e99f5ac
--- /dev/null
+++ b/src/render_program/exa_wm_xy.g4a
@@ -0,0 +1,52 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Wang Zhenyu <zhenyu.z.wang@intel.com>
+ * Keith Packard <keithp@keithp.com>
+ */
+
+/*
+ * Register assignments:
+ *
+ * x g6/g7
+ * y g8/g9
+ *
+ * temp x g10/g11
+ * temp y g12/g13
+ *
+ * src w g14/g15
+ * src u m1/m2
+ * src v m3/m4
+ */
+
+/* Fragment to compute per-pixel XY values */
+
+include(`exa_wm.g4i')
+
+ /* Load X and Y coordinates and compute per-pixel coordinates */
+add (16) temp_x_uw<1>UW dst_x_uw 0x10101010V { align1 };
+add (16) temp_y_uw<1>UW dst_y_uw 0x11001100V { align1 };
+
+ /* subtract screen-space origin of vertex 0 */
+add (16) dst_x<1>F temp_x_uw<8,8,1>UW -screen_x0 { compr align1 };
+add (16) dst_y<1>F temp_y_uw<8,8,1>UW -screen_y0 { compr align1 };
diff --git a/src/render_program/exa_wm_xy.g4b b/src/render_program/exa_wm_xy.g4b
new file mode 100644
index 0000000..327fc29
--- /dev/null
+++ b/src/render_program/exa_wm_xy.g4b
@@ -0,0 +1,4 @@
+ { 0x00800040, 0x23c06d29, 0x00480028, 0x10101010 },
+ { 0x00800040, 0x23806d29, 0x0048002a, 0x11001100 },
+ { 0x00802040, 0x2100753d, 0x008d03c0, 0x00004020 },
+ { 0x00802040, 0x2140753d, 0x008d0380, 0x00004024 },
diff --git a/src/render_program/exa_wm_xy.g4b.gen5 b/src/render_program/exa_wm_xy.g4b.gen5
new file mode 100644
index 0000000..327fc29
--- /dev/null
+++ b/src/render_program/exa_wm_xy.g4b.gen5
@@ -0,0 +1,4 @@
+ { 0x00800040, 0x23c06d29, 0x00480028, 0x10101010 },
+ { 0x00800040, 0x23806d29, 0x0048002a, 0x11001100 },
+ { 0x00802040, 0x2100753d, 0x008d03c0, 0x00004020 },
+ { 0x00802040, 0x2140753d, 0x008d0380, 0x00004024 },
diff --git a/src/render_program/exa_wm_yuv_rgb.g4a b/src/render_program/exa_wm_yuv_rgb.g4a
new file mode 100644
index 0000000..4fb2576
--- /dev/null
+++ b/src/render_program/exa_wm_yuv_rgb.g4a
@@ -0,0 +1,98 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Keith Packard <keithp@keithp.com>
+ * Eric Anholt <eric@anholt.net>
+ *
+ */
+
+include(`exa_wm.g4i')
+
+define(`YCbCr_base', `src_sample_base')
+
+define(`Cr', `src_sample_r')
+define(`Cr_01', `src_sample_r_01')
+define(`Cr_23', `src_sample_r_23')
+
+define(`Y', `src_sample_g')
+define(`Y_01', `src_sample_g_01')
+define(`Y_23', `src_sample_g_23')
+
+define(`Cb', `src_sample_b')
+define(`Cb_01', `src_sample_b_01')
+define(`Cb_23', `src_sample_b_23')
+
+define(`Crn', `mask_sample_r')
+define(`Crn_01', `mask_sample_r_01')
+define(`Crn_23', `mask_sample_r_23')
+
+define(`Yn', `mask_sample_g')
+define(`Yn_01', `mask_sample_g_01')
+define(`Yn_23', `mask_sample_g_23')
+
+define(`Cbn', `mask_sample_b')
+define(`Cbn_01', `mask_sample_b_01')
+define(`Cbn_23', `mask_sample_b_23')
+
+ /* color space conversion function:
+ * R = Clamp ( 1.164(Y-16/255) + 1.596(Cr-128/255), 0, 1)
+ * G = Clamp ( 1.164(Y-16/255) - 0.813(Cr-128/255) - 0.392(Cb-128/255), 0, 1)
+ * B = Clamp ( 1.164(Y-16/255) + 2.017(Cb-128/255), 0, 1)
+ */
+
+ /* Normalize Y, Cb and Cr:
+ *
+ * Yn = (Y - 16/255) * 1.164
+ * Crn = Cr - 128 / 255
+ * Cbn = Cb - 128 / 255
+ */
+add (16) Yn<1>F Y<8,8,1>F -0.0627451F { compr align1 };
+mul (16) Yn<1>F Yn<8,8,1>F 1.164F { compr align1 };
+
+add (16) Crn<1>F Cr<8,8,1>F -0.501961F { compr align1 };
+
+add (16) Cbn<1>F Cb<8,8,1>F -0.501961F { compr align1 };
+
+ /*
+ * R = Y + Cr * 1.596
+ */
+mov (16) acc0<1>F Yn<8,8,1>F { compr align1 };
+mac.sat(16) src_sample_r<1>F Crn<8,8,1>F 1.596F { compr align1 };
+
+ /*
+ * G = Crn * -0.813 + Cbn * -0.392 + Y
+ */
+mov (16) acc0<1>F Yn<8,8,1>F { compr align1 };
+mac (16) acc0<1>F Crn<8,8,1>F -0.813F { compr align1 };
+mac.sat(16) src_sample_g<1>F Cbn<8,8,1>F -0.392F { compr align1 };
+
+ /*
+ * B = Cbn * 2.017 + Y
+ */
+mov (16) acc0<1>F Yn<8,8,1>F { compr align1 };
+mac.sat(16) src_sample_b<1>F Cbn<8,8,1>F 2.017F { compr align1 };
+
+ /*
+ * A = 1.0
+ */
+mov (16) src_sample_a<1>F 1.0F { compr align1 };
diff --git a/src/render_program/exa_wm_yuv_rgb.g4b b/src/render_program/exa_wm_yuv_rgb.g4b
new file mode 100644
index 0000000..01f6e2b
--- /dev/null
+++ b/src/render_program/exa_wm_yuv_rgb.g4b
@@ -0,0 +1,12 @@
+ { 0x00802040, 0x23007fbd, 0x008d0200, 0xbd808081 },
+ { 0x00802041, 0x23007fbd, 0x008d0300, 0x3f94fdf4 },
+ { 0x00802040, 0x22c07fbd, 0x008d01c0, 0xbf008084 },
+ { 0x00802040, 0x23407fbd, 0x008d0240, 0xbf008084 },
+ { 0x00802001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x80802048, 0x21c07fbd, 0x008d02c0, 0x3fcc49ba },
+ { 0x00802001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x00802048, 0x24007fbc, 0x008d02c0, 0xbf5020c5 },
+ { 0x80802048, 0x22007fbd, 0x008d0340, 0xbec8b439 },
+ { 0x00802001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x80802048, 0x22407fbd, 0x008d0340, 0x40011687 },
+ { 0x00802001, 0x228003fd, 0x00000000, 0x3f800000 },
diff --git a/src/render_program/exa_wm_yuv_rgb.g4b.gen5 b/src/render_program/exa_wm_yuv_rgb.g4b.gen5
new file mode 100644
index 0000000..01f6e2b
--- /dev/null
+++ b/src/render_program/exa_wm_yuv_rgb.g4b.gen5
@@ -0,0 +1,12 @@
+ { 0x00802040, 0x23007fbd, 0x008d0200, 0xbd808081 },
+ { 0x00802041, 0x23007fbd, 0x008d0300, 0x3f94fdf4 },
+ { 0x00802040, 0x22c07fbd, 0x008d01c0, 0xbf008084 },
+ { 0x00802040, 0x23407fbd, 0x008d0240, 0xbf008084 },
+ { 0x00802001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x80802048, 0x21c07fbd, 0x008d02c0, 0x3fcc49ba },
+ { 0x00802001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x00802048, 0x24007fbc, 0x008d02c0, 0xbf5020c5 },
+ { 0x80802048, 0x22007fbd, 0x008d0340, 0xbec8b439 },
+ { 0x00802001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x80802048, 0x22407fbd, 0x008d0340, 0x40011687 },
+ { 0x00802001, 0x228003fd, 0x00000000, 0x3f800000 },
diff --git a/src/render_program/exa_wm_yuv_rgb.g6a b/src/render_program/exa_wm_yuv_rgb.g6a
new file mode 100644
index 0000000..4fb2576
--- /dev/null
+++ b/src/render_program/exa_wm_yuv_rgb.g6a
@@ -0,0 +1,98 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+ * IN THE SOFTWARE.
+ *
+ * Authors:
+ * Keith Packard <keithp@keithp.com>
+ * Eric Anholt <eric@anholt.net>
+ *
+ */
+
+include(`exa_wm.g4i')
+
+define(`YCbCr_base', `src_sample_base')
+
+define(`Cr', `src_sample_r')
+define(`Cr_01', `src_sample_r_01')
+define(`Cr_23', `src_sample_r_23')
+
+define(`Y', `src_sample_g')
+define(`Y_01', `src_sample_g_01')
+define(`Y_23', `src_sample_g_23')
+
+define(`Cb', `src_sample_b')
+define(`Cb_01', `src_sample_b_01')
+define(`Cb_23', `src_sample_b_23')
+
+define(`Crn', `mask_sample_r')
+define(`Crn_01', `mask_sample_r_01')
+define(`Crn_23', `mask_sample_r_23')
+
+define(`Yn', `mask_sample_g')
+define(`Yn_01', `mask_sample_g_01')
+define(`Yn_23', `mask_sample_g_23')
+
+define(`Cbn', `mask_sample_b')
+define(`Cbn_01', `mask_sample_b_01')
+define(`Cbn_23', `mask_sample_b_23')
+
+ /* color space conversion function:
+ * R = Clamp ( 1.164(Y-16/255) + 1.596(Cr-128/255), 0, 1)
+ * G = Clamp ( 1.164(Y-16/255) - 0.813(Cr-128/255) - 0.392(Cb-128/255), 0, 1)
+ * B = Clamp ( 1.164(Y-16/255) + 2.017(Cb-128/255), 0, 1)
+ */
+
+ /* Normalize Y, Cb and Cr:
+ *
+ * Yn = (Y - 16/255) * 1.164
+ * Crn = Cr - 128 / 255
+ * Cbn = Cb - 128 / 255
+ */
+add (16) Yn<1>F Y<8,8,1>F -0.0627451F { compr align1 };
+mul (16) Yn<1>F Yn<8,8,1>F 1.164F { compr align1 };
+
+add (16) Crn<1>F Cr<8,8,1>F -0.501961F { compr align1 };
+
+add (16) Cbn<1>F Cb<8,8,1>F -0.501961F { compr align1 };
+
+ /*
+ * R = Y + Cr * 1.596
+ */
+mov (16) acc0<1>F Yn<8,8,1>F { compr align1 };
+mac.sat(16) src_sample_r<1>F Crn<8,8,1>F 1.596F { compr align1 };
+
+ /*
+ * G = Crn * -0.813 + Cbn * -0.392 + Y
+ */
+mov (16) acc0<1>F Yn<8,8,1>F { compr align1 };
+mac (16) acc0<1>F Crn<8,8,1>F -0.813F { compr align1 };
+mac.sat(16) src_sample_g<1>F Cbn<8,8,1>F -0.392F { compr align1 };
+
+ /*
+ * B = Cbn * 2.017 + Y
+ */
+mov (16) acc0<1>F Yn<8,8,1>F { compr align1 };
+mac.sat(16) src_sample_b<1>F Cbn<8,8,1>F 2.017F { compr align1 };
+
+ /*
+ * A = 1.0
+ */
+mov (16) src_sample_a<1>F 1.0F { compr align1 };
diff --git a/src/render_program/exa_wm_yuv_rgb.g6b b/src/render_program/exa_wm_yuv_rgb.g6b
new file mode 100644
index 0000000..01ec5e5
--- /dev/null
+++ b/src/render_program/exa_wm_yuv_rgb.g6b
@@ -0,0 +1,12 @@
+ { 0x00800040, 0x23007fbd, 0x008d0200, 0xbd808081 },
+ { 0x00800041, 0x23007fbd, 0x008d0300, 0x3f94fdf4 },
+ { 0x00800040, 0x22c07fbd, 0x008d01c0, 0xbf008084 },
+ { 0x00800040, 0x23407fbd, 0x008d0240, 0xbf008084 },
+ { 0x00800001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x80800048, 0x21c07fbd, 0x008d02c0, 0x3fcc49ba },
+ { 0x00800001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x00800048, 0x24007fbc, 0x008d02c0, 0xbf5020c5 },
+ { 0x80800048, 0x22007fbd, 0x008d0340, 0xbec8b439 },
+ { 0x00800001, 0x240003bc, 0x008d0300, 0x00000000 },
+ { 0x80800048, 0x22407fbd, 0x008d0340, 0x40011687 },
+ { 0x00800001, 0x228003fd, 0x00000000, 0x3f800000 },
diff --git a/src/xvmc/Makefile.am b/src/xvmc/Makefile.am
new file mode 100644
index 0000000..d3ed449
--- /dev/null
+++ b/src/xvmc/Makefile.am
@@ -0,0 +1,23 @@
+if XVMC
+lib_LTLIBRARIES=libIntelXvMC.la
+endif
+
+SUBDIRS = shader
+
+libIntelXvMC_la_SOURCES = intel_xvmc.c \
+ intel_xvmc.h \
+ intel_xvmc_dump.c \
+ i915_structs.h \
+ i915_program.h \
+ i915_xvmc.c \
+ i915_xvmc.h \
+ i965_xvmc.c \
+ xvmc_vld.c \
+ intel_batchbuffer.c \
+ intel_batchbuffer.h
+
+AM_CFLAGS = @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
+ @XVMCLIB_CFLAGS@ -I$(top_srcdir)/src -DTRUE=1 -DFALSE=0
+
+libIntelXvMC_la_LDFLAGS = -version-number 1:0:0
+libIntelXvMC_la_LIBADD = @DRI_LIBS@ @DRM_LIBS@ @XVMCLIB_LIBS@ -lpthread -ldrm_intel
diff --git a/src/xvmc/Makefile.in b/src/xvmc/Makefile.in
new file mode 100644
index 0000000..b9e0494
--- /dev/null
+++ b/src/xvmc/Makefile.in
@@ -0,0 +1,752 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/xvmc
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(libdir)"
+LTLIBRARIES = $(lib_LTLIBRARIES)
+libIntelXvMC_la_DEPENDENCIES =
+am_libIntelXvMC_la_OBJECTS = intel_xvmc.lo intel_xvmc_dump.lo \
+ i915_xvmc.lo i965_xvmc.lo xvmc_vld.lo intel_batchbuffer.lo
+libIntelXvMC_la_OBJECTS = $(am_libIntelXvMC_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+libIntelXvMC_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \
+ $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \
+ $(AM_CFLAGS) $(CFLAGS) $(libIntelXvMC_la_LDFLAGS) $(LDFLAGS) \
+ -o $@
+@XVMC_TRUE@am_libIntelXvMC_la_rpath = -rpath $(libdir)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+SOURCES = $(libIntelXvMC_la_SOURCES)
+DIST_SOURCES = $(libIntelXvMC_la_SOURCES)
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+@XVMC_TRUE@lib_LTLIBRARIES = libIntelXvMC.la
+SUBDIRS = shader
+libIntelXvMC_la_SOURCES = intel_xvmc.c \
+ intel_xvmc.h \
+ intel_xvmc_dump.c \
+ i915_structs.h \
+ i915_program.h \
+ i915_xvmc.c \
+ i915_xvmc.h \
+ i965_xvmc.c \
+ xvmc_vld.c \
+ intel_batchbuffer.c \
+ intel_batchbuffer.h
+
+AM_CFLAGS = @XORG_CFLAGS@ @DRM_CFLAGS@ @DRI_CFLAGS@ \
+ @XVMCLIB_CFLAGS@ -I$(top_srcdir)/src -DTRUE=1 -DFALSE=0
+
+libIntelXvMC_la_LDFLAGS = -version-number 1:0:0
+libIntelXvMC_la_LIBADD = @DRI_LIBS@ @DRM_LIBS@ @XVMCLIB_LIBS@ -lpthread -ldrm_intel
+all: all-recursive
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/xvmc/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/xvmc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+install-libLTLIBRARIES: $(lib_LTLIBRARIES)
+ @$(NORMAL_INSTALL)
+ test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+ list2=; for p in $$list; do \
+ if test -f $$p; then \
+ list2="$$list2 $$p"; \
+ else :; fi; \
+ done; \
+ test -z "$$list2" || { \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
+ }
+
+uninstall-libLTLIBRARIES:
+ @$(NORMAL_UNINSTALL)
+ @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
+ for p in $$list; do \
+ $(am__strip_dir) \
+ echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
+ $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
+ done
+
+clean-libLTLIBRARIES:
+ -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
+ @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libIntelXvMC.la: $(libIntelXvMC_la_OBJECTS) $(libIntelXvMC_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(libIntelXvMC_la_LINK) $(am_libIntelXvMC_la_rpath) $(libIntelXvMC_la_OBJECTS) $(libIntelXvMC_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i915_xvmc.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/i965_xvmc.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_batchbuffer.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_xvmc.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/intel_xvmc_dump.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xvmc_vld.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile $(LTLIBRARIES)
+installdirs: installdirs-recursive
+installdirs-am:
+ for dir in "$(DESTDIR)$(libdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
+ mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am: install-libLTLIBRARIES
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am: uninstall-libLTLIBRARIES
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic \
+ clean-libLTLIBRARIES clean-libtool ctags ctags-recursive \
+ distclean distclean-compile distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-libLTLIBRARIES install-man install-pdf \
+ install-pdf-am install-ps install-ps-am install-strip \
+ installcheck installcheck-am installdirs installdirs-am \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+ pdf pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
+ uninstall-libLTLIBRARIES
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/xvmc/i915_program.h b/src/xvmc/i915_program.h
new file mode 100644
index 0000000..da31543
--- /dev/null
+++ b/src/xvmc/i915_program.h
@@ -0,0 +1,274 @@
+#ifndef _I915_PROGRAM_H
+#define _I915_PROGRAM_H
+
+#define REG_TYPE_R 0 /* temporary regs, no need to
+ * dcl, must be written before
+ * read -- Preserved between
+ * phases.
+ */
+#define REG_TYPE_T 1 /* Interpolated values, must be
+ * dcl'ed before use.
+ *
+ * 0..7: texture coord,
+ * 8: diffuse spec,
+ * 9: specular color,
+ * 10: fog parameter in w.
+ */
+#define REG_TYPE_CONST 2 /* Restriction: only one const
+ * can be referenced per
+ * instruction, though it may be
+ * selected for multiple inputs.
+ * Constants not initialized
+ * default to zero.
+ */
+#define REG_TYPE_S 3 /* sampler */
+#define REG_TYPE_OC 4 /* output color (rgba) */
+#define REG_TYPE_OD 5 /* output depth (w), xyz are
+ * temporaries. If not written,
+ * interpolated depth is used?
+ */
+#define REG_TYPE_U 6 /* unpreserved temporaries */
+#define REG_TYPE_MASK 0x7
+#define REG_NR_MASK 0xf
+
+/* REG_TYPE_T:
+ */
+#define T_TEX0 0
+#define T_TEX1 1
+#define T_TEX2 2
+#define T_TEX3 3
+#define T_TEX4 4
+#define T_TEX5 5
+#define T_TEX6 6
+#define T_TEX7 7
+#define T_DIFFUSE 8
+#define T_SPECULAR 9
+#define T_FOG_W 10 /* interpolated fog is in W coord */
+
+/* Arithmetic instructions */
+
+/* .replicate_swizzle == selection and replication of a particular
+ * scalar channel, ie., .xxxx, .yyyy, .zzzz or .wwww
+ */
+#define A0_NOP (0x0<<24) /* no operation */
+#define A0_ADD (0x1<<24) /* dst = src0 + src1 */
+#define A0_MOV (0x2<<24) /* dst = src0 */
+#define A0_MUL (0x3<<24) /* dst = src0 * src1 */
+#define A0_MAD (0x4<<24) /* dst = src0 * src1 + src2 */
+#define A0_DP2ADD (0x5<<24) /* dst.xyzw = src0.xy dot src1.xy + src2.replicate_swizzle */
+#define A0_DP3 (0x6<<24) /* dst.xyzw = src0.xyz dot src1.xyz */
+#define A0_DP4 (0x7<<24) /* dst.xyzw = src0.xyzw dot src1.xyzw */
+#define A0_FRC (0x8<<24) /* dst = src0 - floor(src0) */
+#define A0_RCP (0x9<<24) /* dst.xyzw = 1/(src0.replicate_swizzle) */
+#define A0_RSQ (0xa<<24) /* dst.xyzw = 1/(sqrt(abs(src0.replicate_swizzle))) */
+#define A0_EXP (0xb<<24) /* dst.xyzw = exp2(src0.replicate_swizzle) */
+#define A0_LOG (0xc<<24) /* dst.xyzw = log2(abs(src0.replicate_swizzle)) */
+#define A0_CMP (0xd<<24) /* dst = (src0 >= 0.0) ? src1 : src2 */
+#define A0_MIN (0xe<<24) /* dst = (src0 < src1) ? src0 : src1 */
+#define A0_MAX (0xf<<24) /* dst = (src0 >= src1) ? src0 : src1 */
+#define A0_FLR (0x10<<24) /* dst = floor(src0) */
+#define A0_MOD (0x11<<24) /* dst = src0 fmod 1.0 */
+#define A0_TRC (0x12<<24) /* dst = int(src0) */
+#define A0_SGE (0x13<<24) /* dst = src0 >= src1 ? 1.0 : 0.0 */
+#define A0_SLT (0x14<<24) /* dst = src0 < src1 ? 1.0 : 0.0 */
+#define A0_DEST_SATURATE (1<<22)
+#define A0_DEST_TYPE_SHIFT 19
+/* Allow: R, OC, OD, U */
+#define A0_DEST_NR_SHIFT 14
+/* Allow R: 0..15, OC,OD: 0..0, U: 0..2 */
+#define A0_DEST_CHANNEL_X (1<<10)
+#define A0_DEST_CHANNEL_Y (2<<10)
+#define A0_DEST_CHANNEL_Z (4<<10)
+#define A0_DEST_CHANNEL_W (8<<10)
+#define A0_DEST_CHANNEL_ALL (0xf<<10)
+#define A0_DEST_CHANNEL_SHIFT 10
+#define A0_SRC0_TYPE_SHIFT 7
+#define A0_SRC0_NR_SHIFT 2
+
+#define A0_DEST_CHANNEL_XY (A0_DEST_CHANNEL_X|A0_DEST_CHANNEL_Y)
+#define A0_DEST_CHANNEL_XYZ (A0_DEST_CHANNEL_XY|A0_DEST_CHANNEL_Z)
+
+#define SRC_X 0
+#define SRC_Y 1
+#define SRC_Z 2
+#define SRC_W 3
+#define SRC_ZERO 4
+#define SRC_ONE 5
+
+#define A1_SRC0_CHANNEL_X_NEGATE (1<<31)
+#define A1_SRC0_CHANNEL_X_SHIFT 28
+#define A1_SRC0_CHANNEL_Y_NEGATE (1<<27)
+#define A1_SRC0_CHANNEL_Y_SHIFT 24
+#define A1_SRC0_CHANNEL_Z_NEGATE (1<<23)
+#define A1_SRC0_CHANNEL_Z_SHIFT 20
+#define A1_SRC0_CHANNEL_W_NEGATE (1<<19)
+#define A1_SRC0_CHANNEL_W_SHIFT 16
+#define A1_SRC1_TYPE_SHIFT 13
+#define A1_SRC1_NR_SHIFT 8
+#define A1_SRC1_CHANNEL_X_NEGATE (1<<7)
+#define A1_SRC1_CHANNEL_X_SHIFT 4
+#define A1_SRC1_CHANNEL_Y_NEGATE (1<<3)
+#define A1_SRC1_CHANNEL_Y_SHIFT 0
+
+#define A2_SRC1_CHANNEL_Z_NEGATE (1<<31)
+#define A2_SRC1_CHANNEL_Z_SHIFT 28
+#define A2_SRC1_CHANNEL_W_NEGATE (1<<27)
+#define A2_SRC1_CHANNEL_W_SHIFT 24
+#define A2_SRC2_TYPE_SHIFT 21
+#define A2_SRC2_NR_SHIFT 16
+#define A2_SRC2_CHANNEL_X_NEGATE (1<<15)
+#define A2_SRC2_CHANNEL_X_SHIFT 12
+#define A2_SRC2_CHANNEL_Y_NEGATE (1<<11)
+#define A2_SRC2_CHANNEL_Y_SHIFT 8
+#define A2_SRC2_CHANNEL_Z_NEGATE (1<<7)
+#define A2_SRC2_CHANNEL_Z_SHIFT 4
+#define A2_SRC2_CHANNEL_W_NEGATE (1<<3)
+#define A2_SRC2_CHANNEL_W_SHIFT 0
+
+/* Declaration instructions */
+#define D0_DCL (0x19<<24) /* Declare a t (interpolated attrib)
+ * register or an s (sampler)
+ * register. */
+#define D0_SAMPLE_TYPE_SHIFT 22
+#define D0_SAMPLE_TYPE_2D (0x0<<22)
+#define D0_SAMPLE_TYPE_CUBE (0x1<<22)
+#define D0_SAMPLE_TYPE_VOLUME (0x2<<22)
+#define D0_SAMPLE_TYPE_MASK (0x3<<22)
+
+#define D0_TYPE_SHIFT 19
+/* Allow: T, S */
+#define D0_NR_SHIFT 14
+/* Allow T: 0..10, S: 0..15 */
+#define D0_CHANNEL_X (1<<10)
+#define D0_CHANNEL_Y (2<<10)
+#define D0_CHANNEL_Z (4<<10)
+#define D0_CHANNEL_W (8<<10)
+#define D0_CHANNEL_ALL (0xf<<10)
+#define D0_CHANNEL_NONE (0<<10)
+
+#define D0_CHANNEL_XY (D0_CHANNEL_X|D0_CHANNEL_Y)
+#define D0_CHANNEL_XYZ (D0_CHANNEL_XY|D0_CHANNEL_Z)
+
+/* I915 Errata: Do not allow (xz), (xw), (xzw) combinations for diffuse
+ * or specular declarations.
+ *
+ * For T dcls, only allow: (x), (xy), (xyz), (w), (xyzw)
+ *
+ * Must be zero for S (sampler) dcls
+ */
+#define D1_MBZ 0
+#define D2_MBZ 0
+
+/* Texture instructions */
+#define T0_TEXLD (0x15<<24) /* Sample texture using predeclared
+ * sampler and address, and output
+ * filtered texel data to destination
+ * register */
+#define T0_TEXLDP (0x16<<24) /* Same as texld but performs a
+ * perspective divide of the texture
+ * coordinate .xyz values by .w before
+ * sampling. */
+#define T0_TEXLDB (0x17<<24) /* Same as texld but biases the
+ * computed LOD by w. Only S4.6 two's
+ * comp is used. This implies that a
+ * float to fixed conversion is
+ * done. */
+#define T0_TEXKILL (0x18<<24) /* Does not perform a sampling
+ * operation. Simply kills the pixel
+ * if any channel of the address
+ * register is < 0.0. */
+#define T0_DEST_TYPE_SHIFT 19
+/* Allow: R, OC, OD, U */
+/* Note: U (unpreserved) regs do not retain their values between
+ * phases (cannot be used for feedback)
+ *
+ * Note: oC and OD registers can only be used as the destination of a
+ * texture instruction once per phase (this is an implementation
+ * restriction).
+ */
+#define T0_DEST_NR_SHIFT 14
+/* Allow R: 0..15, OC,OD: 0..0, U: 0..2 */
+#define T0_SAMPLER_NR_SHIFT 0 /* This field ignored for TEXKILL */
+#define T0_SAMPLER_NR_MASK (0xf<<0)
+
+#define T1_ADDRESS_REG_TYPE_SHIFT 24 /* Reg to use as texture coord */
+/* Allow R, T, OC, OD -- R, OC, OD are 'dependent' reads, new program phase */
+#define T1_ADDRESS_REG_NR_SHIFT 17
+#define T2_MBZ 0
+
+/* Having zero and one in here makes the definition of swizzle a lot
+ * easier.
+ */
+#define UREG_TYPE_SHIFT 29
+#define UREG_NR_SHIFT 24
+#define UREG_CHANNEL_X_NEGATE_SHIFT 23
+#define UREG_CHANNEL_X_SHIFT 20
+#define UREG_CHANNEL_Y_NEGATE_SHIFT 19
+#define UREG_CHANNEL_Y_SHIFT 16
+#define UREG_CHANNEL_Z_NEGATE_SHIFT 15
+#define UREG_CHANNEL_Z_SHIFT 12
+#define UREG_CHANNEL_W_NEGATE_SHIFT 11
+#define UREG_CHANNEL_W_SHIFT 8
+#define UREG_CHANNEL_ZERO_NEGATE_MBZ 5
+#define UREG_CHANNEL_ZERO_SHIFT 4
+#define UREG_CHANNEL_ONE_NEGATE_MBZ 1
+#define UREG_CHANNEL_ONE_SHIFT 0
+
+#define UREG_BAD 0xffffffff /* not a valid ureg */
+
+#define X SRC_X
+#define Y SRC_Y
+#define Z SRC_Z
+#define W SRC_W
+#define ZERO SRC_ZERO
+#define ONE SRC_ONE
+
+/* Construct a ureg:
+ */
+#define UREG(type, nr) (((type) << UREG_TYPE_SHIFT) | \
+ ((nr) << UREG_NR_SHIFT) | \
+ (X << UREG_CHANNEL_X_SHIFT) | \
+ (Y << UREG_CHANNEL_Y_SHIFT) | \
+ (Z << UREG_CHANNEL_Z_SHIFT) | \
+ (W << UREG_CHANNEL_W_SHIFT) | \
+ (ZERO << UREG_CHANNEL_ZERO_SHIFT) | \
+ (ONE << UREG_CHANNEL_ONE_SHIFT))
+
+#define GET_CHANNEL_SRC( reg, channel ) ((reg<<(channel*4)) & (0xf<<20))
+#define CHANNEL_SRC( src, channel ) (src>>(channel*4))
+
+#define GET_UREG_TYPE(reg) (((reg) >> UREG_TYPE_SHIFT) & REG_TYPE_MASK)
+#define GET_UREG_NR(reg) (((reg) >> UREG_NR_SHIFT) & REG_NR_MASK)
+
+#define UREG_XYZW_CHANNEL_MASK 0x00ffff00
+
+#define A0_DEST(reg) (((reg) & UREG_TYPE_NR_MASK) >> UREG_A0_DEST_SHIFT_LEFT)
+#define D0_DEST(reg) (((reg) & UREG_TYPE_NR_MASK) >> UREG_A0_DEST_SHIFT_LEFT)
+#define T0_DEST(reg) (((reg) & UREG_TYPE_NR_MASK) >> UREG_A0_DEST_SHIFT_LEFT)
+#define A0_SRC0(reg) (((reg) & UREG_MASK) >> UREG_A0_SRC0_SHIFT_LEFT)
+#define A1_SRC0(reg) (((reg) & UREG_MASK) << UREG_A1_SRC0_SHIFT_RIGHT)
+#define A1_SRC1(reg) (((reg) & UREG_MASK) >> UREG_A1_SRC1_SHIFT_LEFT)
+#define A2_SRC1(reg) (((reg) & UREG_MASK) << UREG_A2_SRC1_SHIFT_RIGHT)
+#define A2_SRC2(reg) (((reg) & UREG_MASK) >> UREG_A2_SRC2_SHIFT_LEFT)
+
+/* These are special, and don't have swizzle/negate bits.
+ */
+#define T0_SAMPLER( reg ) (GET_UREG_NR(reg) << T0_SAMPLER_NR_SHIFT)
+#define T1_ADDRESS_REG( reg ) ((GET_UREG_NR(reg) << T1_ADDRESS_REG_NR_SHIFT) | \
+ (GET_UREG_TYPE(reg) << T1_ADDRESS_REG_TYPE_SHIFT))
+
+/* Macros for translating UREG's into the various register fields used
+ * by the I915 programmable unit.
+ */
+#define UREG_A0_DEST_SHIFT_LEFT (UREG_TYPE_SHIFT - A0_DEST_TYPE_SHIFT)
+#define UREG_A0_SRC0_SHIFT_LEFT (UREG_TYPE_SHIFT - A0_SRC0_TYPE_SHIFT)
+#define UREG_A1_SRC0_SHIFT_RIGHT (A1_SRC0_CHANNEL_W_SHIFT - UREG_CHANNEL_W_SHIFT)
+#define UREG_A1_SRC1_SHIFT_LEFT (UREG_TYPE_SHIFT - A1_SRC1_TYPE_SHIFT)
+#define UREG_A2_SRC1_SHIFT_RIGHT (A2_SRC1_CHANNEL_W_SHIFT - UREG_CHANNEL_W_SHIFT)
+#define UREG_A2_SRC2_SHIFT_LEFT (UREG_TYPE_SHIFT - A2_SRC2_TYPE_SHIFT)
+
+#define UREG_MASK 0xffffff00
+#define UREG_TYPE_NR_MASK ((REG_TYPE_MASK << UREG_TYPE_SHIFT) | \
+ (REG_NR_MASK << UREG_NR_SHIFT))
+
+#endif
diff --git a/src/xvmc/i915_structs.h b/src/xvmc/i915_structs.h
new file mode 100644
index 0000000..2aa9d23
--- /dev/null
+++ b/src/xvmc/i915_structs.h
@@ -0,0 +1,926 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Xiang Haihao <haihao.xiang@intel.com>
+ *
+ */
+
+#ifndef _I915_STRUCTS_H
+#define _I915_STRUCTS_H
+
+#include <stdint.h>
+
+/* BLT */
+#define CMD_2D 0x02
+#define OPC_COLOR_BLT (0x40)
+
+struct i915_color_blt {
+ struct {
+ unsigned length:5;
+ unsigned pad0:15;
+ unsigned bpp_mask:2;
+ unsigned opcode:7;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned pitch:16;
+ unsigned rop:8;
+ unsigned color_depth:2;
+ unsigned pad0:6;
+ } dw1;
+
+ struct {
+ unsigned width:16;
+ unsigned height:16;
+ } dw2;
+
+ struct {
+ unsigned address;
+ } dw3;
+
+ struct {
+ unsigned pattern;
+ } dw4;
+};
+
+/* 3D_INSTRUCTION */
+#define CMD_3D 0x03
+#define OPCODE_3D(x) (CMD_3D << 29 | (x) << 16)
+
+#define OPC_3DMPEG_MACROBLOCK_IPICTURE (0x01 + (0x1e << 5))
+#define OPC_3DMPEG_SET_ORIGIN (0x10 + (0x1e << 5))
+#define OPC_3DMPEG_MACROBLOCK (0x11 + (0x1e << 5))
+#define OPC_3DMPEG_SLICE (0x12 + (0x1e << 5))
+#define OPC_3DMPEG_QM_PALETTE_LOAD (0x13 + (0x1e << 5))
+
+#define OPC_3DSTATE_SCISSOR_ENABLE (0x10 + (0x1c << 5))
+
+#define OPC_3DSTATE_MAP_STATE (0x00 + (0x1d << 8))
+#define OPC_3DSTATE_SAMPLER_STATE (0x01 + (0x1d << 8))
+#define OPC_3DSTATE_LOAD_STATE_IMMEDIATE_1 (0x04 + (0x1d << 8))
+#define OP_3D_LOAD_STATE_IMMEDIATE_1 OPCODE_3D(OPC_3DSTATE_LOAD_STATE_IMMEDIATE_1)
+#define OPC_3DSTATE_PIXEL_SHADER_PROGRAM (0x05 + (0x1d << 8))
+#define OPC_3DSTATE_PIXEL_SHADER_CONSTANTS (0x06 + (0x1d << 8))
+#define OPC_3DSTATE_LOAD_INDIRECT (0x07 + (0x1d << 8))
+#define OP_3D_LOAD_INDIRECT OPCODE_3D(OPC_3DSTATE_LOAD_INDIRECT)
+
+#define OPC_3DSTATE_MODES_5 (0x0c)
+#define OPC_3DSTATE_COORD_SET_BINDINGS (0x16)
+#define OPC_3DPRIMITIVE (0x1f)
+
+#define OPC_3DSTATE_DRAWING_RECTANGLE (0x80 + (0x1d << 8))
+#define OPC_3DSTATE_SCISSOR_RECTANGLE (0x81 + (0x1d << 8))
+#define OPC_3DSTATE_DEST_BUFFER_VARIABLES (0x85 + (0x1d << 8))
+#define OPC_3DSTATE_DEST_BUFFER_VARIABLES_MPEG (0x87 + (0x1d << 8))
+#define OPC_3DSTATE_BUFFER_INFO (0x8e + (0x1d << 8))
+
+/*
+ * 3DMPEG instructions
+ */
+struct i915_3dmpeg_macroblock_header {
+ struct {
+ unsigned length:19;
+ unsigned opcode:10;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned mb_intra:1;
+ unsigned forward:1;
+ unsigned backward:1;
+ unsigned h263_4mv:1;
+ unsigned pad0:1;
+ unsigned dct_type:1;
+ unsigned pad1:2;
+ unsigned motion_type:2;
+ unsigned pad2:2;
+ unsigned vertical_field_select:4;
+ unsigned coded_block_pattern:6;
+ unsigned pad3:2;
+ unsigned skipped_macroblocks:7;
+ unsigned pad4:1;
+ } dw1;
+};
+
+struct i915_3dmpeg_macroblock_0mv {
+ struct i915_3dmpeg_macroblock_header header;
+};
+
+struct i915_3dmpeg_macroblock_1fbmv {
+ struct i915_3dmpeg_macroblock_header header;
+ unsigned dw2;
+ unsigned dw3;
+};
+struct i915_3dmpeg_macroblock_2fbmv {
+ struct i915_3dmpeg_macroblock_header header;
+ unsigned dw2;
+ unsigned dw3;
+ unsigned dw4;
+ unsigned dw5;
+};
+
+struct i915_3dmpeg_macroblock_5fmv {
+ struct i915_3dmpeg_macroblock_header header;
+ unsigned dw2;
+ unsigned dw3;
+ unsigned dw4;
+ unsigned dw5;
+ unsigned dw6;
+};
+
+struct i915_3dmpeg_macroblock_ipicture {
+ struct {
+ unsigned pad0:5;
+ unsigned dct_type:1;
+ unsigned pad1:13;
+ unsigned opcode:10;
+ unsigned type:3;
+ } dw0;
+};
+
+struct i915_3dmpeg_set_origin {
+ struct {
+ unsigned length:19;
+ unsigned opcode:10;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned v_origin:7;
+ unsigned pad0:1;
+ unsigned h_origin:7;
+ unsigned pad1:17;
+ } dw1;
+};
+
+struct i915_3dmpeg_slice {
+ struct {
+ unsigned length:19;
+ unsigned opcode:10;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned fst_mb_bit_off:3;
+ unsigned pad0:5;
+ unsigned mb_count:7;
+ unsigned pad1:1;
+ unsigned v_position:7;
+ unsigned pad2:1;
+ unsigned h_position:7;
+ unsigned pad3:1;
+ } dw1;
+
+ struct {
+ unsigned length_minus_one:17;
+ unsigned pad0:7;
+ unsigned qt_scale_code:5;
+ unsigned pad1:3;
+ } dw2;
+};
+
+struct i915_3dmpeg_qm_palette_load {
+ struct {
+ unsigned length:4;
+ unsigned pad0:15;
+ unsigned opcode:10;
+ unsigned type:3;
+ } dw0;
+
+ unsigned quantmatrix[16];
+};
+
+/*
+ * 3DSTATE instruction
+ */
+#define BUFFERID_COLOR_BACK 3
+#define BUFFERID_COLOR_AUX 4
+#define BUFFERID_MC_INTRA_CORR 5
+#define BUFFERID_DEPTH 7
+
+#define TILEWALK_XMAJOR 0
+#define TILEWALK_YMAJOR 1
+
+struct i915_3dstate_buffer_info {
+ struct {
+ unsigned length:16;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned pad0:2;
+ unsigned pitch:12;
+ unsigned pad1:7;
+ unsigned walk:1;
+ unsigned tiled_surface:1;
+ unsigned fence_regs:1;
+ unsigned buffer_id:4;
+ unsigned aux_id:1;
+ unsigned pad2:3;
+ } dw1;
+
+ struct {
+ unsigned pad0:2;
+ unsigned base_address:27;
+ unsigned pad1:3;
+ } dw2;
+};
+
+#define COLORBUFFER_8BIT 0x00
+#define COLORBUFFER_X1R5G5B5 0x01
+#define COLORBUFFER_R5G6B5 0x02
+#define COLORBUFFER_A8R8G8B8 0x03
+#define COLORBUFFER_YCRCB_SWAP 0x04
+#define COLORBUFFER_YCRCB_NORMAL 0x05
+#define COLORBUFFER_YCRCB_SWAPUV 0x06
+#define COLORBUFFER_YCRCB_SWAPUVY 0x07
+#define COLORBUFFER_A4R4G4B4 0x08
+#define COLORBUFFER_A1R5G5B5 0x09
+#define COLORBUFFER_A2R10G10B10 0x0a
+
+struct i915_3dstate_dest_buffer_variables {
+ struct {
+ unsigned length:16;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned v_ls_offset:1;
+ unsigned v_ls:1;
+ unsigned depth_fmt:2;
+ unsigned pad0:4;
+ unsigned color_fmt:4;
+ unsigned yuv422_select:3;
+ unsigned pad1:1;
+ unsigned dest_v_bias:4;
+ unsigned dest_h_bias:4;
+ unsigned dither_enhancement:1;
+ unsigned linear_gamma:1;
+ unsigned dither_pattern:2;
+ unsigned lod_preclamp:1;
+ unsigned edt_zone:1; /* early depth test in zone rendering */
+ unsigned texture_default_color:1;
+ unsigned edt_classic:1; /* early depth test in classic mode */
+ } dw1;
+};
+
+#define MPEG_DECODE_MC 0
+#define MPEG_DECODE_VLD_IDCT_MC 1
+
+#define MPEG_I_PICTURE 1
+#define MPEG_P_PICTURE 2
+#define MPEG_B_PICTURE 3
+
+#define MC_SUB_1H 0
+#define MC_SUB_2H 1
+#define MC_SUB_4H 2
+
+#define MC_SUB_1V 0
+#define MC_SUB_2V 1
+
+struct i915_3dstate_dest_buffer_variables_mpeg {
+ struct {
+ unsigned length:16;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned picture_width:7;
+ unsigned pad0:1;
+ unsigned v_subsample_factor:2;
+ unsigned h_subsample_factor:2;
+ unsigned tff:1;
+ unsigned mismatch:1;
+ unsigned pad1:1;
+ unsigned intra8:1;
+ unsigned abort_on_error:8;
+ unsigned pad2:4;
+ unsigned bidir_avrg_control:1;
+ unsigned rcontrol:1;
+ unsigned decode_mode:2;
+ } dw1;
+
+ struct {
+ unsigned pad0:1;
+ unsigned picture_coding_type:2;
+ unsigned pad1:2;
+ unsigned scan_order:1;
+ unsigned pad2:2;
+ unsigned q_scale_type:1;
+ unsigned concealment:1;
+ unsigned fpf_dct:1;
+ unsigned pad3:2;
+ unsigned intra_dc:2;
+ unsigned intra_vlc:1;
+ unsigned f_code00:4;
+ unsigned f_code01:4;
+ unsigned f_code10:4;
+ unsigned f_code11:4;
+ } dw2;
+};
+
+struct i915_mc_static_indirect_state_buffer {
+ struct i915_3dstate_buffer_info dest_y;
+ struct i915_3dstate_buffer_info dest_u;
+ struct i915_3dstate_buffer_info dest_v;
+ struct i915_3dstate_dest_buffer_variables dest_buf;
+ struct i915_3dstate_dest_buffer_variables_mpeg dest_buf_mpeg;
+ struct i915_3dstate_buffer_info corr;
+};
+
+#define MAP_MAP0 0x0001
+#define MAP_MAP1 0x0002
+#define MAP_MAP2 0x0004
+#define MAP_MAP3 0x0008
+#define MAP_MAP4 0x0010
+#define MAP_MAP5 0x0020
+#define MAP_MAP6 0x0040
+#define MAP_MAP7 0x0080
+#define MAP_MAP8 0x0100
+#define MAP_MAP9 0x0200
+#define MAP_MAP10 0x0400
+#define MAP_MAP11 0x0800
+#define MAP_MAP12 0x1000
+#define MAP_MAP13 0x2000
+#define MAP_MAP14 0x4000
+#define MAP_MAP15 0x8000
+
+struct texture_map {
+ struct {
+ unsigned v_ls_offset:1;
+ unsigned v_ls:1;
+ unsigned base_address:27;
+ unsigned pad0:2;
+ unsigned untrusted:1;
+ } tm0;
+
+ struct {
+ unsigned tile_walk:1;
+ unsigned tiled_surface:1;
+ unsigned utilize_fence_regs:1;
+ unsigned texel_fmt:4;
+ unsigned surface_fmt:3;
+ unsigned width:11;
+ unsigned height:11;
+ } tm1;
+
+ struct {
+ unsigned depth:8;
+ unsigned mipmap_layout:1;
+ unsigned max_lod:6;
+ unsigned cube_face:6;
+ unsigned pitch:11;
+ } tm2;
+};
+
+struct i915_3dstate_map_state {
+ struct {
+ unsigned length:6;
+ unsigned pad0:9;
+ unsigned retain:1;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned map_mask:16;
+ unsigned pad0:16;
+ } dw1;
+};
+
+struct i915_mc_map_state {
+ struct i915_3dstate_map_state y_map;
+ struct texture_map y_forward;
+ struct texture_map y_backward;
+ struct i915_3dstate_map_state u_map;
+ struct texture_map u_forward;
+ struct texture_map u_backward;
+ struct i915_3dstate_map_state v_map;
+ struct texture_map v_forward;
+ struct texture_map v_backward;
+};
+
+#define SAMPLER_SAMPLER0 0x0001
+#define SAMPLER_SAMPLER1 0x0002
+#define SAMPLER_SAMPLER2 0x0004
+#define SAMPLER_SAMPLER3 0x0008
+#define SAMPLER_SAMPLER4 0x0010
+#define SAMPLER_SAMPLER5 0x0020
+#define SAMPLER_SAMPLER6 0x0040
+#define SAMPLER_SAMPLER7 0x0080
+#define SAMPLER_SAMPLER8 0x0100
+#define SAMPLER_SAMPLER9 0x0200
+#define SAMPLER_SAMPLER10 0x0400
+#define SAMPLER_SAMPLER11 0x0800
+#define SAMPLER_SAMPLER12 0x1000
+#define SAMPLER_SAMPLER13 0x2000
+#define SAMPLER_SAMPLER14 0x4000
+#define SAMPLER_SAMPLER15 0x8000
+
+#define MIPFILTER_NONE 0
+#define MIPFILTER_NEAREST 1
+#define MIPFILTER_LINEAR 3
+
+#define MAPFILTER_NEAREST 0
+#define MAPFILTER_LINEAR 1
+#define MAPFILTER_ANISOTROPIC 2
+#define MAPFILTER_4X4_1 3
+#define MAPFILTER_4X4_2 4
+#define MAPFILTER_4X4_FLAT 5
+#define MAPFILTER_MONO 6
+
+#define ANISORATIO_2 0
+#define ANISORATIO_4 1
+
+#define PREFILTEROP_ALWAYS 0
+#define PREFILTEROP_NEVER 1
+#define PREFILTEROP_LESS 2
+#define PREFILTEROP_EQUAL 3
+#define PREFILTEROP_LEQUAL 4
+#define PREFILTEROP_GREATER 5
+#define PREFILTEROP_NOTEQUAL 6
+#define PREFILTEROP_GEQUAL 7
+
+#define TEXCOORDMODE_WRAP 0
+#define TEXCOORDMODE_MIRROR 1
+#define TEXCOORDMODE_CLAMP 2
+#define TEXCOORDMODE_CUBE 3
+#define TEXCOORDMODE_CLAMP_BORDER 4
+#define TEXCOORDMODE_MIRROR_ONCE 5
+
+struct texture_sampler {
+ struct {
+ unsigned shadow_function:3;
+ unsigned max_anisotropy:1;
+ unsigned shadow_enable:1;
+ unsigned lod_bias:9;
+ unsigned min_filter:3;
+ unsigned mag_filter:3;
+ unsigned mip_filter:2;
+ unsigned base_level:5;
+ unsigned chromakey_index:2;
+ unsigned color_conversion:1;
+ unsigned planar2packet:1;
+ unsigned reverse_gamma:1;
+ } ts0;
+
+ struct {
+ unsigned east_deinterlacer:1;
+ unsigned map_index:4;
+ unsigned normalized_coor:1;
+ unsigned tcz_control:3;
+ unsigned tcy_control:3;
+ unsigned tcx_control:3;
+ unsigned chromakey_enable:1;
+ unsigned keyed_texture_filter:1;
+ unsigned kill_pixel:1;
+ unsigned pad0:6;
+ unsigned min_lod:8;
+ } ts1;
+
+ struct {
+ unsigned default_color;
+ } ts2;
+};
+
+struct i915_3dstate_sampler_state {
+ struct {
+ unsigned length:6;
+ unsigned pad0:10;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned sampler_masker:16;
+ unsigned pad0:16;
+ } dw1;
+ /* we always use two samplers for mc */
+ struct texture_sampler sampler0;
+ struct texture_sampler sampler1;
+};
+
+struct arithmetic_inst {
+ struct {
+ unsigned pad0:2;
+ unsigned src0_reg:5;
+ unsigned src0_reg_t:3;
+ unsigned dest_channel_mask:4;
+ unsigned dest_reg:4;
+ unsigned pad1:1;
+ unsigned dest_reg_t:3;
+ unsigned dest_saturate:1;
+ unsigned pad2:1;
+ unsigned opcode:5;
+ unsigned pad3:3;
+ } dw0;
+
+ struct {
+ unsigned src1_y_select:3;
+ unsigned src1_y_negate:1;
+ unsigned src1_x_select:3;
+ unsigned src1_x_negate:1;
+ unsigned src1_reg:5;
+ unsigned src1_reg_t:3;
+ unsigned src0_w_select:3;
+ unsigned src0_w_negate:1;
+ unsigned src0_z_select:3;
+ unsigned src0_z_negate:1;
+ unsigned src0_y_select:3;
+ unsigned src0_y_negate:1;
+ unsigned src0_x_select:3;
+ unsigned src0_x_negate:1;
+ } dw1;
+
+ struct {
+ unsigned src2_w_select:3;
+ unsigned src2_w_negate:1;
+ unsigned src2_z_select:3;
+ unsigned src2_z_negate:1;
+ unsigned src2_y_select:3;
+ unsigned src2_y_negate:1;
+ unsigned src2_x_select:3;
+ unsigned src2_x_negate:1;
+ unsigned src2_reg:5;
+ unsigned src2_reg_t:3;
+ unsigned src1_w_select:3;
+ unsigned src1_w_negate:1;
+ unsigned src1_z_select:3;
+ unsigned src1_z_negate:1;
+ } dw2;
+};
+
+struct texture_inst {
+ struct {
+ unsigned sampler_reg:4;
+ unsigned pad0:10;
+ unsigned dest_reg:4;
+ unsigned pad1:1;
+ unsigned dest_reg_t:3;
+ unsigned pad2:2;
+ unsigned opcode:5;
+ unsigned pad3:3;
+ } dw0;
+
+ struct {
+ unsigned pad0:16;
+ unsigned address_reg:5;
+ unsigned pad1:3;
+ unsigned address_reg_t:3;
+ unsigned pad2:5;
+ } dw1;
+
+ struct {
+ unsigned pad0;
+ } dw2;
+};
+
+struct declaration_inst {
+ struct {
+ unsigned pad0:10;
+ unsigned decl_channel_mask:4;
+ unsigned decl_reg:4;
+ unsigned pad1:1;
+ unsigned decl_reg_t:2;
+ unsigned pad2:1;
+ unsigned sampler_type:2;
+ unsigned opcode:5;
+ unsigned pad3:3;
+ } dw0;
+
+ struct {
+ unsigned pad0;
+ } dw1;
+
+ struct {
+ unsigned pad0;
+ } dw2;
+};
+
+union shader_inst {
+ struct arithmetic_inst a;
+ struct texture_inst t;
+ struct declaration_inst d;
+};
+
+struct i915_3dstate_pixel_shader_header {
+ unsigned length:9;
+ unsigned pad0:6;
+ unsigned retain:1;
+ unsigned opcode:13;
+ unsigned type:3;
+};
+
+struct i915_3dstate_pixel_shader_program {
+ struct i915_3dstate_pixel_shader_header shader0;
+ /* mov oC, c0.0000 */
+ uint32_t inst0[3];
+
+ struct i915_3dstate_pixel_shader_header shader1;
+ /* dcl t0.xy */
+ /* dcl t1.xy */
+ /* dcl_2D s0 */
+ /* texld r0, t0, s0 */
+ /* mov oC, r0 */
+ uint32_t inst1[3 * 5];
+
+ struct i915_3dstate_pixel_shader_header shader2;
+ /* dcl t2.xy */
+ /* dcl t3.xy */
+ /* dcl_2D s1 */
+ /* texld r0, t2, s1 */
+ /* mov oC, r0 */
+ uint32_t inst2[3 * 5];
+
+ struct i915_3dstate_pixel_shader_header shader3;
+ /* dcl t0.xy */
+ /* dcl t1.xy */
+ /* dcl t2.xy */
+ /* dcl t3.xy */
+ /* dcl_2D s0 */
+ /* dcl_2D s1 */
+ /* texld r0, t0, s0 */
+ /* texld r0, t2, s1 */
+ /* add r0, r0, r1 */
+ /* mov oC, r0 */
+ uint32_t inst3[3 * 10];
+};
+
+#define REG_CR0 0x00000001
+#define REG_CR1 0x00000002
+#define REG_CR2 0x00000004
+#define REG_CR3 0x00000008
+#define REG_CR4 0x00000010
+#define REG_CR5 0x00000020
+#define REG_CR6 0x00000040
+#define REG_CR7 0x00000080
+#define REG_CR8 0x00000100
+#define REG_CR9 0x00000200
+#define REG_CR10 0x00000400
+#define REG_CR11 0x00000800
+#define REG_CR12 0x00001000
+#define REG_CR13 0x00002000
+#define REG_CR14 0x00004000
+#define REG_CR15 0x00008000
+#define REG_CR16 0x00010000
+#define REG_CR17 0x00020000
+#define REG_CR18 0x00040000
+#define REG_CR19 0x00080000
+#define REG_CR20 0x00100000
+#define REG_CR21 0x00200000
+#define REG_CR22 0x00400000
+#define REG_CR23 0x00800000
+#define REG_CR24 0x01000000
+#define REG_CR25 0x02000000
+#define REG_CR26 0x04000000
+#define REG_CR27 0x08000000
+#define REG_CR28 0x10000000
+#define REG_CR29 0x20000000
+#define REG_CR30 0x40000000
+#define REG_CR31 0x80000000
+
+struct shader_constant {
+ float x;
+ float y;
+ float z;
+ float w;
+};
+
+struct i915_3dstate_pixel_shader_constants {
+ struct {
+ unsigned length:8;
+ unsigned pad0:8;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned reg_mask;
+ } dw1;
+ /* we only need one constant */
+ struct shader_constant value;
+};
+
+#define BLOCK_SIS 0x01
+#define BLOCK_DIS 0x02
+#define BLOCK_SSB 0x04
+#define BLOCK_MSB 0x08
+#define BLOCK_PSP 0x10
+#define BLOCK_PSC 0x20
+#define BLOCK_MASK_SHIFT 8
+
+typedef struct _state_ddword {
+ struct {
+ unsigned valid:1;
+ unsigned force:1;
+ unsigned buffer_address:30;
+ } dw0;
+
+ struct {
+ unsigned length:9;
+ unsigned pad0:23;
+ } dw1;
+} sis_state, msb_state;
+#define STATE_VALID 0x1
+#define STATE_FORCE 0x2
+
+struct i915_3dstate_load_indirect {
+ struct {
+ unsigned length:8;
+ unsigned block_mask:6;
+ unsigned mem_select:1;
+ unsigned pad0:1;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+};
+
+#define OP_3D_LOAD_INDIRECT_GFX_ADDR (1 << 14)
+
+#define TEXCOORDFMT_2FP 0x00
+#define TEXCOORDFMT_3FP 0x01
+#define TEXCOORDFMT_4FP 0x02
+#define TEXCOORDFMT_1FP 0x03
+#define TEXCOORDFMT_2FP_16 0x04
+#define TEXCOORDFMT_4FP_16 0x05
+#define TEXCOORDFMT_NOT_PRESENT 0x0f
+struct s2_dword {
+ unsigned set0_texcoord_fmt:4;
+ unsigned set1_texcoord_fmt:4;
+ unsigned set2_texcoord_fmt:4;
+ unsigned set3_texcoord_fmt:4;
+ unsigned set4_texcoord_fmt:4;
+ unsigned set5_texcoord_fmt:4;
+ unsigned set6_texcoord_fmt:4;
+ unsigned set7_texcoord_fmt:4;
+};
+
+#define S3_SET0_PCD (1 << 0*4)
+#define S3_SET1_PCD (1 << 1*4)
+#define S3_SET2_PCD (1 << 2*4)
+#define S3_SET3_PCD (1 << 3*4)
+#define S3_SET4_PCD (1 << 4*4)
+#define S3_SET5_PCD (1 << 5*4)
+#define S3_SET6_PCD (1 << 6*4)
+#define S3_SET7_PCD (1 << 7*4)
+
+#define VERTEXHAS_XYZ 1
+#define VERTEXHAS_XYZW 2
+#define VERTEXHAS_XY 3
+#define VERTEXHAS_XYW 4
+
+#define CULLMODE_BOTH 0
+#define CULLMODE_NONE 1
+#define CULLMODE_CW 2
+#define CULLMODE_CCW 3
+
+#define SHADEMODE_LINEAR 0
+#define SHADEMODE_FLAT 1
+struct s4_dword {
+ unsigned anti_aliasing_enable:1;
+ unsigned sprite_point_enable:1;
+ unsigned fog_parameter_present:1;
+ unsigned local_depth_offset_enable:1;
+ unsigned force_specular_diffuse_color:1;
+ unsigned force_default_diffuse_color:1;
+ unsigned position_mask:3;
+ unsigned local_depth_offset_present:1;
+ unsigned diffuse_color_presetn:1;
+ unsigned specular_color_fog_factor_present:1;
+ unsigned point_width_present:1;
+ unsigned cull_mode:2;
+ unsigned color_shade_mode:1;
+ unsigned specular_shade_mode:1;
+ unsigned fog_shade_mode:1;
+ unsigned alpha_shade_mode:1;
+ unsigned line_width:4;
+ unsigned point_width:9;
+};
+
+struct s5_dword {
+ unsigned logic_op_enable:1;
+ unsigned color_dither_enable:1;
+ unsigned stencil_test_enable:1;
+ unsigned stencil_buffer_write_enable:1;
+ unsigned stencil_pass_depth_pass_op:3;
+ unsigned stencil_pass_depth_fail_op:3;
+ unsigned stencil_fail_op:3;
+ unsigned stencil_test_function:3;
+ unsigned stencil_reference_value:8;
+ unsigned fog_enable:1;
+ unsigned global_depth_offset_enable:1;
+ unsigned last_pixel_enable:1;
+ unsigned force_default_point_width:1;
+ unsigned color_buffer_component_write_disable:4;
+};
+
+#define S6_COLOR_BUFFER_WRITE (1 << 2)
+#define S6_DST_BLEND_FACTOR_SHIFT 4
+#define S6_SRC_BLEND_FACTOR_SHIFT 8
+#define S6_DEPTH_TEST_ENABLE (1 << 19)
+
+struct s7_dword {
+ unsigned global_depth_offset_const;
+};
+
+#define OP_3D_LOAD_STATE_IMM_LOAD_S0 (1 << 4)
+#define OP_3D_LOAD_STATE_IMM_LOAD_S1 (1 << 5)
+#define OP_3D_LOAD_STATE_IMM_LOAD_S2 (1 << 6)
+#define OP_3D_LOAD_STATE_IMM_LOAD_S3 (1 << 7)
+#define OP_3D_LOAD_STATE_IMM_LOAD_S4 (1 << 8)
+#define OP_3D_LOAD_STATE_IMM_LOAD_S5 (1 << 9)
+#define OP_3D_LOAD_STATE_IMM_LOAD_S6 (1 << 10)
+#define OP_3D_LOAD_STATE_IMM_LOAD_S7 (1 << 11)
+
+struct i915_3dstate_scissor_rectangle {
+ struct {
+ unsigned length:16;
+ unsigned opcode:13;
+ unsigned type:3;
+ } dw0;
+
+ struct {
+ unsigned min_x:16;
+ unsigned min_y:16;
+ } dw1;
+
+ struct {
+ unsigned max_x:16;
+ unsigned max_y:16;
+ } dw2;
+};
+
+#define VERTEX_INLINE 0x00
+#define VERTEX_INDIRECT 0x01
+
+#define PRIM_TRILIST 0x00
+#define PRIM_TRISTRIP 0x01
+#define PRIM_TRISTRIP_REVERSE 0x02
+#define PRIM_TRIFAN 0x03
+#define PRIM_POLYGON 0x04
+#define PRIM_LINELIST 0x05
+#define PRIM_LINESTRIP 0x06
+#define PRIM_RECTLIST 0x07
+#define PRIM_POINTLIST 0x08
+#define PRIM_DIB 0x09
+#define PRIM_CLEAR_RECT 0x0a
+#define PRIM_ZONE_INIT 0x0d
+
+struct texture_coordinate_set {
+ unsigned tcx;
+ unsigned tcy;
+};
+
+struct vertex_data {
+ unsigned x;
+ unsigned y;
+ struct texture_coordinate_set tc0;
+ struct texture_coordinate_set tc1;
+};
+
+struct i915_3dprimitive {
+ union {
+ struct {
+ unsigned length:18;
+ unsigned prim:5;
+ unsigned vertex_location:1;
+ unsigned opcode:5;
+ unsigned type:3;
+ } inline_prim;
+
+ struct {
+ unsigned vertex_count:16;
+ unsigned pad0:1;
+ unsigned vertex_access_mode:1;
+ unsigned prim:5;
+ unsigned vertex_location:1;
+ unsigned opcode:5;
+ unsigned type:3;
+ } indirect_prim;
+ } dw0;
+};
+#endif /*_I915_STRUCTS_H */
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c
new file mode 100644
index 0000000..fbd4555
--- /dev/null
+++ b/src/xvmc/i915_xvmc.c
@@ -0,0 +1,1225 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Xiang Haihao <haihao.xiang@intel.com>
+ *
+ */
+
+#include <sys/ioctl.h>
+
+#include "i915_xvmc.h"
+#include "i915_structs.h"
+#include "i915_program.h"
+
+#define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1))
+
+#define STRIDE(w) (ALIGN((w), 1024))
+#define SIZE_Y420(w, h) (h * STRIDE(w))
+#define SIZE_UV420(w, h) ((h >> 1) * STRIDE(w >> 1))
+#define SIZE_YUV420(w, h) (SIZE_Y420(w,h) + SIZE_UV420(w,h) * 2)
+#define UOFFSET(context) (SIZE_Y420(context->width, context->height))
+#define VOFFSET(context) (SIZE_Y420(context->width, context->height) + \
+ SIZE_UV420(context->width, context->height))
+
+typedef union {
+ int16_t component[2];
+ int32_t v;
+} vector_t;
+
+static void i915_inst_arith(unsigned int *inst,
+ unsigned int op,
+ unsigned int dest,
+ unsigned int mask,
+ unsigned int saturate,
+ unsigned int src0, unsigned int src1,
+ unsigned int src2)
+{
+ dest = UREG(GET_UREG_TYPE(dest), GET_UREG_NR(dest));
+ *inst = (op | A0_DEST(dest) | mask | saturate | A0_SRC0(src0));
+ inst++;
+ *inst = (A1_SRC0(src0) | A1_SRC1(src1));
+ inst++;
+ *inst = (A2_SRC1(src1) | A2_SRC2(src2));
+}
+
+static void i915_inst_decl(unsigned int *inst,
+ unsigned int type,
+ unsigned int nr, unsigned int d0_flags)
+{
+ unsigned int reg = UREG(type, nr);
+
+ *inst = (D0_DCL | D0_DEST(reg) | d0_flags);
+ inst++;
+ *inst = D1_MBZ;
+ inst++;
+ *inst = D2_MBZ;
+}
+
+static void i915_inst_texld(unsigned int *inst,
+ unsigned int op,
+ unsigned int dest,
+ unsigned int coord, unsigned int sampler)
+{
+ dest = UREG(GET_UREG_TYPE(dest), GET_UREG_NR(dest));
+ *inst = (op | T0_DEST(dest) | T0_SAMPLER(sampler));
+ inst++;
+ *inst = T1_ADDRESS_REG(coord);
+ inst++;
+ *inst = T2_MBZ;
+}
+
+static void i915_mc_one_time_context_init(XvMCContext * context)
+{
+ unsigned int dest, src0, src1, src2;
+ i915XvMCContext *pI915XvMC = (i915XvMCContext *) context->privData;
+ int i;
+ struct i915_3dstate_sampler_state *sampler_state;
+ struct i915_3dstate_pixel_shader_program *pixel_shader_program;
+ struct i915_3dstate_pixel_shader_constants *pixel_shader_constants;
+
+ /* sampler static state */
+ drm_intel_gem_bo_map_gtt(pI915XvMC->ssb_bo);
+ sampler_state = pI915XvMC->ssb_bo->virtual;
+
+ memset(sampler_state, 0, sizeof(*sampler_state));
+ sampler_state->dw0.type = CMD_3D;
+ sampler_state->dw0.opcode = OPC_3DSTATE_SAMPLER_STATE;
+ sampler_state->dw0.length = 6;
+ sampler_state->dw1.sampler_masker = SAMPLER_SAMPLER0 | SAMPLER_SAMPLER1;
+
+ sampler_state->sampler0.ts0.reverse_gamma = 0;
+ sampler_state->sampler0.ts0.planar2packet = 0;
+ sampler_state->sampler0.ts0.color_conversion = 0;
+ sampler_state->sampler0.ts0.chromakey_index = 0;
+ sampler_state->sampler0.ts0.base_level = 0;
+ sampler_state->sampler0.ts0.mip_filter = MIPFILTER_NONE; /* NONE */
+ sampler_state->sampler0.ts0.mag_filter = MAPFILTER_LINEAR; /* LINEAR */
+ sampler_state->sampler0.ts0.min_filter = MAPFILTER_LINEAR; /* LINEAR */
+ sampler_state->sampler0.ts0.lod_bias = 0; /* 0.0 */
+ sampler_state->sampler0.ts0.shadow_enable = 0;
+ sampler_state->sampler0.ts0.max_anisotropy = ANISORATIO_2;
+ sampler_state->sampler0.ts0.shadow_function = PREFILTEROP_ALWAYS;
+ sampler_state->sampler0.ts1.min_lod = 0; /* 0.0 Maximum Mip Level */
+ sampler_state->sampler0.ts1.kill_pixel = 0;
+ sampler_state->sampler0.ts1.keyed_texture_filter = 0;
+ sampler_state->sampler0.ts1.chromakey_enable = 0;
+ sampler_state->sampler0.ts1.tcx_control = TEXCOORDMODE_CLAMP;
+ sampler_state->sampler0.ts1.tcy_control = TEXCOORDMODE_CLAMP;
+ sampler_state->sampler0.ts1.tcz_control = TEXCOORDMODE_CLAMP;
+ sampler_state->sampler0.ts1.normalized_coor = 0;
+ sampler_state->sampler0.ts1.map_index = 0;
+ sampler_state->sampler0.ts1.east_deinterlacer = 0;
+ sampler_state->sampler0.ts2.default_color = 0;
+
+ sampler_state->sampler1.ts0.reverse_gamma = 0;
+ sampler_state->sampler1.ts0.planar2packet = 0;
+ sampler_state->sampler1.ts0.color_conversion = 0;
+ sampler_state->sampler1.ts0.chromakey_index = 0;
+ sampler_state->sampler1.ts0.base_level = 0;
+ sampler_state->sampler1.ts0.mip_filter = MIPFILTER_NONE; /* NONE */
+ sampler_state->sampler1.ts0.mag_filter = MAPFILTER_LINEAR; /* LINEAR */
+ sampler_state->sampler1.ts0.min_filter = MAPFILTER_LINEAR; /* LINEAR */
+ sampler_state->sampler1.ts0.lod_bias = 0; /* 0.0 */
+ sampler_state->sampler1.ts0.shadow_enable = 0;
+ sampler_state->sampler1.ts0.max_anisotropy = ANISORATIO_2;
+ sampler_state->sampler1.ts0.shadow_function = PREFILTEROP_ALWAYS;
+ sampler_state->sampler1.ts1.min_lod = 0; /* 0.0 Maximum Mip Level */
+ sampler_state->sampler1.ts1.kill_pixel = 0;
+ sampler_state->sampler1.ts1.keyed_texture_filter = 0;
+ sampler_state->sampler1.ts1.chromakey_enable = 0;
+ sampler_state->sampler1.ts1.tcx_control = TEXCOORDMODE_CLAMP;
+ sampler_state->sampler1.ts1.tcy_control = TEXCOORDMODE_CLAMP;
+ sampler_state->sampler1.ts1.tcz_control = TEXCOORDMODE_CLAMP;
+ sampler_state->sampler1.ts1.normalized_coor = 0;
+ sampler_state->sampler1.ts1.map_index = 1;
+ sampler_state->sampler1.ts1.east_deinterlacer = 0;
+ sampler_state->sampler1.ts2.default_color = 0;
+
+ drm_intel_gem_bo_unmap_gtt(pI915XvMC->ssb_bo);
+
+ /* pixel shader static state */
+ drm_intel_gem_bo_map_gtt(pI915XvMC->psp_bo);
+ pixel_shader_program = pI915XvMC->psp_bo->virtual;
+
+ memset(pixel_shader_program, 0, sizeof(*pixel_shader_program));
+ pixel_shader_program->shader0.type = CMD_3D;
+ pixel_shader_program->shader0.opcode = OPC_3DSTATE_PIXEL_SHADER_PROGRAM;
+ pixel_shader_program->shader0.retain = 1;
+ pixel_shader_program->shader0.length = 2; /* 1 inst */
+ i = 0;
+
+ dest = UREG(REG_TYPE_OC, 0);
+ src0 = UREG(REG_TYPE_CONST, 0);
+ src1 = 0;
+ src2 = 0;
+ i915_inst_arith(&pixel_shader_program->inst0[i], A0_MOV,
+ dest, A0_DEST_CHANNEL_ALL, A0_DEST_SATURATE, src0, src1,
+ src2);
+
+ pixel_shader_program->shader1.type = CMD_3D;
+ pixel_shader_program->shader1.opcode = OPC_3DSTATE_PIXEL_SHADER_PROGRAM;
+ pixel_shader_program->shader1.retain = 1;
+ pixel_shader_program->shader1.length = 14; /* 5 inst */
+ i = 0;
+ /* dcl t0.xy */
+ i915_inst_decl(&pixel_shader_program->inst1[i], REG_TYPE_T, T_TEX0,
+ D0_CHANNEL_XY);
+ i += 3;
+ /* dcl t1.xy */
+ i915_inst_decl(&pixel_shader_program->inst1[i], REG_TYPE_T, T_TEX1,
+ D0_CHANNEL_XY);
+ /* dcl_2D s0 */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst1[i], REG_TYPE_S, 0,
+ D0_SAMPLE_TYPE_2D);
+ /* texld r0, t0, s0 */
+ i += 3;
+ dest = UREG(REG_TYPE_R, 0);
+ src0 = UREG(REG_TYPE_T, 0); /* COORD */
+ src1 = UREG(REG_TYPE_S, 0); /* SAMPLER */
+ i915_inst_texld(&pixel_shader_program->inst1[i], T0_TEXLD, dest, src0,
+ src1);
+ /* mov oC, r0 */
+ i += 3;
+ dest = UREG(REG_TYPE_OC, 0);
+ src0 = UREG(REG_TYPE_R, 0);
+ src1 = src2 = 0;
+ i915_inst_arith(&pixel_shader_program->inst1[i], A0_MOV, dest,
+ A0_DEST_CHANNEL_ALL, A0_DEST_SATURATE, src0, src1,
+ src2);
+
+ pixel_shader_program->shader2.type = CMD_3D;
+ pixel_shader_program->shader2.opcode = OPC_3DSTATE_PIXEL_SHADER_PROGRAM;
+ pixel_shader_program->shader2.retain = 1;
+ pixel_shader_program->shader2.length = 14; /* 5 inst */
+ i = 0;
+ /* dcl t2.xy */
+ i915_inst_decl(&pixel_shader_program->inst2[i], REG_TYPE_T, T_TEX2,
+ D0_CHANNEL_XY);
+ /* dcl t3.xy */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst2[i], REG_TYPE_T, T_TEX3,
+ D0_CHANNEL_XY);
+ /* dcl_2D s1 */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst2[i], REG_TYPE_S, 1,
+ D0_SAMPLE_TYPE_2D);
+ /* texld r0, t2, s1 */
+ i += 3;
+ dest = UREG(REG_TYPE_R, 0);
+ src0 = UREG(REG_TYPE_T, 2); /* COORD */
+ src1 = UREG(REG_TYPE_S, 1); /* SAMPLER */
+ i915_inst_texld(&pixel_shader_program->inst2[i], T0_TEXLD, dest, src0,
+ src1);
+ /* mov oC, r0 */
+ i += 3;
+ dest = UREG(REG_TYPE_OC, 0);
+ src0 = UREG(REG_TYPE_R, 0);
+ src1 = src2 = 0;
+ i915_inst_arith(&pixel_shader_program->inst2[i], A0_MOV, dest,
+ A0_DEST_CHANNEL_ALL, A0_DEST_SATURATE, src0, src1,
+ src2);
+
+ /* Shader 3 */
+ pixel_shader_program->shader3.type = CMD_3D;
+ pixel_shader_program->shader3.opcode = OPC_3DSTATE_PIXEL_SHADER_PROGRAM;
+ pixel_shader_program->shader3.retain = 1;
+ pixel_shader_program->shader3.length = 29; /* 10 inst */
+ i = 0;
+ /* dcl t0.xy */
+ i915_inst_decl(&pixel_shader_program->inst3[i], REG_TYPE_T, T_TEX0,
+ D0_CHANNEL_XY);
+ /* dcl t1.xy */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst3[i], REG_TYPE_T, T_TEX1,
+ D0_CHANNEL_XY);
+ /* dcl t2.xy */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst3[i], REG_TYPE_T, T_TEX2,
+ D0_CHANNEL_XY);
+ /* dcl t3.xy */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst3[i], REG_TYPE_T, T_TEX3,
+ D0_CHANNEL_XY);
+ /* dcl_2D s0 */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst3[i], REG_TYPE_S, 0,
+ D0_SAMPLE_TYPE_2D);
+ /* dcl_2D s1 */
+ i += 3;
+ i915_inst_decl(&pixel_shader_program->inst3[i], REG_TYPE_S, 1,
+ D0_SAMPLE_TYPE_2D);
+ /* texld r0, t0, s0 */
+ i += 3;
+ dest = UREG(REG_TYPE_R, 0);
+ src0 = UREG(REG_TYPE_T, 0); /* COORD */
+ src1 = UREG(REG_TYPE_S, 0); /* SAMPLER */
+ i915_inst_texld(&pixel_shader_program->inst3[i], T0_TEXLD, dest, src0,
+ src1);
+ /* texld r1, t2, s1 */
+ i += 3;
+ dest = UREG(REG_TYPE_R, 1);
+ src0 = UREG(REG_TYPE_T, 2); /* COORD */
+ src1 = UREG(REG_TYPE_S, 1); /* SAMPLER */
+ i915_inst_texld(&pixel_shader_program->inst3[i], T0_TEXLD, dest, src0,
+ src1);
+ /* add r0, r0, r1 */
+ i += 3;
+ dest = UREG(REG_TYPE_R, 0);
+ src0 = UREG(REG_TYPE_R, 0);
+ src1 = UREG(REG_TYPE_R, 1);
+ src2 = 0;
+ i915_inst_arith(&pixel_shader_program->inst3[i], A0_ADD, dest,
+ A0_DEST_CHANNEL_ALL, 0 /* A0_DEST_SATURATE */ , src0,
+ src1, src2);
+ /* mul oC, r0, c0 */
+ i += 3;
+ dest = UREG(REG_TYPE_OC, 0);
+ src0 = UREG(REG_TYPE_R, 0);
+ src1 = UREG(REG_TYPE_CONST, 0);
+ src2 = 0;
+ i915_inst_arith(&pixel_shader_program->inst3[i], A0_MUL, dest,
+ A0_DEST_CHANNEL_ALL, A0_DEST_SATURATE, src0, src1,
+ src2);
+
+ drm_intel_gem_bo_unmap_gtt(pI915XvMC->psp_bo);
+
+ /* pixel shader contant static state */
+ drm_intel_gem_bo_map_gtt(pI915XvMC->psc_bo);
+ pixel_shader_constants = pI915XvMC->psc_bo->virtual;
+
+ memset(pixel_shader_constants, 0, sizeof(*pixel_shader_constants));
+ pixel_shader_constants->dw0.type = CMD_3D;
+ pixel_shader_constants->dw0.opcode = OPC_3DSTATE_PIXEL_SHADER_CONSTANTS;
+ pixel_shader_constants->dw0.length = 4;
+ pixel_shader_constants->dw1.reg_mask = REG_CR0;
+ pixel_shader_constants->value.x = 0.5;
+ pixel_shader_constants->value.y = 0.5;
+ pixel_shader_constants->value.z = 0.5;
+ pixel_shader_constants->value.w = 0.5;
+
+ drm_intel_gem_bo_unmap_gtt(pI915XvMC->psc_bo);
+}
+
+static void i915_mc_one_time_state_emit(XvMCContext * context)
+{
+ i915XvMCContext *pI915XvMC = (i915XvMCContext *) context->privData;
+ uint32_t load_state_immediate_1, load_indirect, s3_dword, s6_dword;
+ int mem_select;
+ BATCH_LOCALS;
+
+ /* 3DSTATE_LOAD_STATE_IMMEDIATE_1 */
+ BEGIN_BATCH(3 + 8);
+ load_state_immediate_1 = OP_3D_LOAD_STATE_IMMEDIATE_1;
+ load_state_immediate_1 |= OP_3D_LOAD_STATE_IMM_LOAD_S3;
+ load_state_immediate_1 |= OP_3D_LOAD_STATE_IMM_LOAD_S6;
+ load_state_immediate_1 |= 3 - 2; /* length */
+ OUT_BATCH(load_state_immediate_1);
+
+ s3_dword = S3_SET0_PCD | S3_SET1_PCD |
+ S3_SET2_PCD | S3_SET3_PCD |
+ S3_SET4_PCD | S3_SET5_PCD |
+ S3_SET6_PCD | S3_SET7_PCD;
+ OUT_BATCH(s3_dword);
+
+ s6_dword = S6_COLOR_BUFFER_WRITE | S6_DEPTH_TEST_ENABLE;
+ s6_dword |= 1 << S6_SRC_BLEND_FACTOR_SHIFT;
+ s6_dword |= 1 << S6_DST_BLEND_FACTOR_SHIFT;
+ OUT_BATCH(s6_dword);
+
+ /* 3DSTATE_LOAD_INDIRECT */
+ load_indirect = OP_3D_LOAD_INDIRECT;
+ load_indirect |= (BLOCK_DIS | BLOCK_SSB | BLOCK_PSP | BLOCK_PSC)
+ << BLOCK_MASK_SHIFT;
+ load_indirect |= 8 - 2; /* length */
+
+ if (pI915XvMC->use_phys_addr)
+ mem_select = 0; /* use physical address */
+ else {
+ load_indirect |= OP_3D_LOAD_INDIRECT_GFX_ADDR;
+ mem_select = 1; /* use gfx address */
+ }
+
+ OUT_BATCH(load_indirect);
+
+ /* Dynamic indirect state buffer */
+ OUT_BATCH(0); /* no dynamic indirect state */
+
+ /* Sample state buffer */
+ OUT_RELOC(pI915XvMC->ssb_bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
+ STATE_VALID | STATE_FORCE);
+ OUT_BATCH(7); /* 8 - 1 */
+
+ /* Pixel shader program buffer */
+ OUT_RELOC(pI915XvMC->psp_bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
+ STATE_VALID | STATE_FORCE);
+ OUT_BATCH(66); /* 4 + 16 + 16 + 31 - 1 */
+
+ /* Pixel shader constant buffer */
+ OUT_RELOC(pI915XvMC->psc_bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
+ STATE_VALID | STATE_FORCE);
+ OUT_BATCH(5); /* 6 - 1 */
+ ADVANCE_BATCH();
+}
+
+static void i915_mc_static_indirect_state_set(XvMCContext * context,
+ XvMCSurface * dest,
+ unsigned int picture_structure,
+ unsigned int flags,
+ unsigned int picture_coding_type)
+{
+ i915XvMCContext *pI915XvMC = (i915XvMCContext *) context->privData;
+ struct intel_xvmc_surface *intel_surf = dest->privData;
+ struct i915_mc_static_indirect_state_buffer *buffer_info;
+
+ drm_intel_gem_bo_map_gtt(pI915XvMC->sis_bo);
+ buffer_info = pI915XvMC->sis_bo->virtual;
+
+ memset(buffer_info, 0, sizeof(*buffer_info));
+
+ /* dest Y */
+ buffer_info->dest_y.dw0.type = CMD_3D;
+ buffer_info->dest_y.dw0.opcode = OPC_3DSTATE_BUFFER_INFO;
+ buffer_info->dest_y.dw0.length = 1;
+ buffer_info->dest_y.dw1.aux_id = 0;
+ buffer_info->dest_y.dw1.buffer_id = BUFFERID_COLOR_BACK;
+ buffer_info->dest_y.dw1.fence_regs = 0; /* disabled *//* FIXME: tiled y for performance */
+ buffer_info->dest_y.dw1.tiled_surface = 0; /* linear */
+ buffer_info->dest_y.dw1.walk = TILEWALK_XMAJOR;
+ buffer_info->dest_y.dw1.pitch = (pI915XvMC->yStride >> 2); /* in DWords */
+ buffer_info->dest_y.dw2.base_address = intel_surf->bo->offset >> 2; /* starting DWORD address */
+ drm_intel_bo_emit_reloc(pI915XvMC->sis_bo,
+ offsetof(typeof(*buffer_info),dest_y.dw2),
+ intel_surf->bo, 0,
+ I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER);
+
+ /* dest U */
+ buffer_info->dest_u.dw0.type = CMD_3D;
+ buffer_info->dest_u.dw0.opcode = OPC_3DSTATE_BUFFER_INFO;
+ buffer_info->dest_u.dw0.length = 1;
+ buffer_info->dest_u.dw1.aux_id = 0;
+ buffer_info->dest_u.dw1.buffer_id = BUFFERID_COLOR_AUX;
+ buffer_info->dest_u.dw1.fence_regs = 0;
+ buffer_info->dest_u.dw1.tiled_surface = 0;
+ buffer_info->dest_u.dw1.walk = TILEWALK_XMAJOR;
+ buffer_info->dest_u.dw1.pitch = (pI915XvMC->uvStride >> 2); /* in DWords */
+ buffer_info->dest_u.dw2.base_address =
+ (intel_surf->bo->offset + UOFFSET(context)) >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->sis_bo,
+ offsetof(typeof(*buffer_info),dest_u.dw2),
+ intel_surf->bo, UOFFSET(context),
+ I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER);
+
+ /* dest V */
+ buffer_info->dest_v.dw0.type = CMD_3D;
+ buffer_info->dest_v.dw0.opcode = OPC_3DSTATE_BUFFER_INFO;
+ buffer_info->dest_v.dw0.length = 1;
+ buffer_info->dest_v.dw1.aux_id = 1;
+ buffer_info->dest_v.dw1.buffer_id = BUFFERID_COLOR_AUX;
+ buffer_info->dest_v.dw1.fence_regs = 0;
+ buffer_info->dest_v.dw1.tiled_surface = 0;
+ buffer_info->dest_v.dw1.walk = TILEWALK_XMAJOR;
+ buffer_info->dest_v.dw1.pitch = (pI915XvMC->uvStride >> 2); /* in Dwords */
+ buffer_info->dest_v.dw2.base_address =
+ (intel_surf->bo->offset + VOFFSET(context)) >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->sis_bo,
+ offsetof(typeof(*buffer_info),dest_v.dw2),
+ intel_surf->bo, VOFFSET(context),
+ I915_GEM_DOMAIN_RENDER,
+ I915_GEM_DOMAIN_RENDER);
+
+ /* Dest buffer parameters */
+ buffer_info->dest_buf.dw0.type = CMD_3D;
+ buffer_info->dest_buf.dw0.opcode = OPC_3DSTATE_DEST_BUFFER_VARIABLES;
+ buffer_info->dest_buf.dw0.length = 0;
+ buffer_info->dest_buf.dw1.dest_v_bias = 8; /* 0.5 */
+ buffer_info->dest_buf.dw1.dest_h_bias = 8; /* 0.5 */
+ buffer_info->dest_buf.dw1.color_fmt = COLORBUFFER_8BIT;
+ buffer_info->dest_buf.dw1.v_ls = 0; /* fill later */
+ buffer_info->dest_buf.dw1.v_ls_offset = 0; /* fill later */
+ if ((picture_structure & XVMC_FRAME_PICTURE) == XVMC_FRAME_PICTURE) {
+ ;
+ } else if ((picture_structure & XVMC_FRAME_PICTURE) == XVMC_TOP_FIELD) {
+ buffer_info->dest_buf.dw1.v_ls = 1;
+ } else if ((picture_structure & XVMC_FRAME_PICTURE) ==
+ XVMC_BOTTOM_FIELD) {
+ buffer_info->dest_buf.dw1.v_ls = 1;
+ buffer_info->dest_buf.dw1.v_ls_offset = 1;
+ }
+
+ /* MPEG buffer parameters */
+ buffer_info->dest_buf_mpeg.dw0.type = CMD_3D;
+ buffer_info->dest_buf_mpeg.dw0.opcode =
+ OPC_3DSTATE_DEST_BUFFER_VARIABLES_MPEG;
+ buffer_info->dest_buf_mpeg.dw0.length = 1;
+ buffer_info->dest_buf_mpeg.dw1.decode_mode = MPEG_DECODE_MC;
+ buffer_info->dest_buf_mpeg.dw1.rcontrol = 0; /* for MPEG-1/MPEG-2 */
+ buffer_info->dest_buf_mpeg.dw1.bidir_avrg_control = 0; /* for MPEG-1/MPEG-2/MPEG-4 */
+ buffer_info->dest_buf_mpeg.dw1.abort_on_error = 1;
+ buffer_info->dest_buf_mpeg.dw1.intra8 = 0; /* 16-bit formatted correction data */
+ buffer_info->dest_buf_mpeg.dw1.tff = 1; /* fill later */
+
+ buffer_info->dest_buf_mpeg.dw1.v_subsample_factor = MC_SUB_1V;
+ buffer_info->dest_buf_mpeg.dw1.h_subsample_factor = MC_SUB_1H;
+
+ if (picture_structure & XVMC_FRAME_PICTURE) {
+ ;
+ } else if (picture_structure & XVMC_TOP_FIELD) {
+ if (flags & XVMC_SECOND_FIELD)
+ buffer_info->dest_buf_mpeg.dw1.tff = 0;
+ else
+ buffer_info->dest_buf_mpeg.dw1.tff = 1;
+ } else if (picture_structure & XVMC_BOTTOM_FIELD) {
+ if (flags & XVMC_SECOND_FIELD)
+ buffer_info->dest_buf_mpeg.dw1.tff = 1;
+ else
+ buffer_info->dest_buf_mpeg.dw1.tff = 0;
+ }
+
+ buffer_info->dest_buf_mpeg.dw1.picture_width = (dest->width >> 4); /* in macroblocks */
+ buffer_info->dest_buf_mpeg.dw2.picture_coding_type =
+ picture_coding_type;
+
+ buffer_info->corr.dw0.type = CMD_3D;
+ buffer_info->corr.dw0.opcode = OPC_3DSTATE_BUFFER_INFO;
+ buffer_info->corr.dw0.length = 1;
+ buffer_info->corr.dw1.aux_id = 0;
+ buffer_info->corr.dw1.buffer_id = BUFFERID_MC_INTRA_CORR;
+ buffer_info->corr.dw1.aux_id = 0;
+ buffer_info->corr.dw1.fence_regs = 0;
+ buffer_info->corr.dw1.tiled_surface = 0;
+ buffer_info->corr.dw1.walk = 0;
+ buffer_info->corr.dw1.pitch = 0;
+ buffer_info->corr.dw2.base_address = pI915XvMC->corrdata_bo->offset >> 2; /* starting DWORD address */
+ drm_intel_bo_emit_reloc(pI915XvMC->sis_bo,
+ offsetof(typeof(*buffer_info),corr.dw2),
+ pI915XvMC->corrdata_bo, 0,
+ I915_GEM_DOMAIN_RENDER, 0);
+
+ drm_intel_gem_bo_unmap_gtt(pI915XvMC->sis_bo);
+}
+
+static void i915_mc_map_state_set(XvMCContext * context,
+ struct intel_xvmc_surface * privPast,
+ struct intel_xvmc_surface * privFuture)
+{
+ i915XvMCContext *pI915XvMC = (i915XvMCContext *) context->privData;
+ struct i915_mc_map_state *map_state;
+ unsigned int w = context->width;
+ unsigned int h = context->height;
+
+ drm_intel_gem_bo_map_gtt(pI915XvMC->msb_bo);
+ map_state = pI915XvMC->msb_bo->virtual;
+
+ memset(map_state, 0, sizeof(*map_state));
+
+ /* 3DSATE_MAP_STATE: Y */
+ map_state->y_map.dw0.type = CMD_3D;
+ map_state->y_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
+ map_state->y_map.dw0.retain = 1;
+ map_state->y_map.dw0.length = 6;
+ map_state->y_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
+
+ /* Y Forward (Past) */
+ map_state->y_forward.tm0.v_ls_offset = 0;
+ map_state->y_forward.tm0.v_ls = 0;
+ map_state->y_forward.tm1.tile_walk = TILEWALK_XMAJOR;
+ map_state->y_forward.tm1.tiled_surface = 0;
+ map_state->y_forward.tm1.utilize_fence_regs = 0;
+ map_state->y_forward.tm1.texel_fmt = 0; /* 8bit */
+ map_state->y_forward.tm1.surface_fmt = 1; /* 8bit */
+ map_state->y_forward.tm1.width = w - 1;
+ map_state->y_forward.tm1.height = h - 1;
+ map_state->y_forward.tm2.depth = 0;
+ map_state->y_forward.tm2.max_lod = 0;
+ map_state->y_forward.tm2.cube_face = 0;
+ map_state->y_forward.tm0.base_address = privPast->bo->offset >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->msb_bo,
+ offsetof(typeof(*map_state),y_forward.tm0),
+ privPast->bo, 0,
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ map_state->y_forward.tm2.pitch = (pI915XvMC->yStride >> 2) - 1; /* in DWords - 1 */
+
+ /* Y Backward (Future) */
+ map_state->y_backward.tm0.v_ls_offset = 0;
+ map_state->y_backward.tm0.v_ls = 0;
+ map_state->y_backward.tm1.tile_walk = TILEWALK_XMAJOR;
+ map_state->y_backward.tm1.tiled_surface = 0;
+ map_state->y_backward.tm1.utilize_fence_regs = 0;
+ map_state->y_backward.tm1.texel_fmt = 0; /* 8bit */
+ map_state->y_backward.tm1.surface_fmt = 1; /* 8bit */
+ map_state->y_backward.tm1.width = w - 1;
+ map_state->y_backward.tm1.height = h - 1;
+ map_state->y_backward.tm2.depth = 0;
+ map_state->y_backward.tm2.max_lod = 0;
+ map_state->y_backward.tm2.cube_face = 0;
+ map_state->y_backward.tm0.base_address = privFuture->bo->offset >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->msb_bo,
+ offsetof(typeof(*map_state),y_backward.tm0),
+ privFuture->bo, 0,
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ map_state->y_backward.tm2.pitch = (pI915XvMC->yStride >> 2) - 1;
+
+ /* 3DSATE_MAP_STATE: U */
+ map_state->u_map.dw0.type = CMD_3D;
+ map_state->u_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
+ map_state->u_map.dw0.retain = 1;
+ map_state->u_map.dw0.length = 6;
+ map_state->u_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
+
+ /* U Forward */
+ map_state->u_forward.tm0.v_ls_offset = 0;
+ map_state->u_forward.tm0.v_ls = 0;
+ map_state->u_forward.tm1.tile_walk = TILEWALK_XMAJOR;
+ map_state->u_forward.tm1.tiled_surface = 0;
+ map_state->u_forward.tm1.utilize_fence_regs = 0;
+ map_state->u_forward.tm1.texel_fmt = 0; /* 8bit */
+ map_state->u_forward.tm1.surface_fmt = 1; /* 8bit */
+ map_state->u_forward.tm1.width = (w >> 1) - 1;
+ map_state->u_forward.tm1.height = (h >> 1) - 1;
+ map_state->u_forward.tm2.depth = 0;
+ map_state->u_forward.tm2.max_lod = 0;
+ map_state->u_forward.tm2.cube_face = 0;
+ map_state->u_forward.tm0.base_address =
+ (privPast->bo->offset + UOFFSET(context)) >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->msb_bo,
+ offsetof(typeof(*map_state),u_forward.tm0),
+ privPast->bo, UOFFSET(context),
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ map_state->u_forward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1; /* in DWords - 1 */
+
+ /* U Backward */
+ map_state->u_backward.tm0.v_ls_offset = 0;
+ map_state->u_backward.tm0.v_ls = 0;
+ map_state->u_backward.tm1.tile_walk = TILEWALK_XMAJOR;
+ map_state->u_backward.tm1.tiled_surface = 0;
+ map_state->u_backward.tm1.utilize_fence_regs = 0;
+ map_state->u_backward.tm1.texel_fmt = 0;
+ map_state->u_backward.tm1.surface_fmt = 1;
+ map_state->u_backward.tm1.width = (w >> 1) - 1;
+ map_state->u_backward.tm1.height = (h >> 1) - 1;
+ map_state->u_backward.tm2.depth = 0;
+ map_state->u_backward.tm2.max_lod = 0;
+ map_state->u_backward.tm2.cube_face = 0;
+ map_state->u_backward.tm0.base_address =
+ (privFuture->bo->offset + UOFFSET(context)) >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->msb_bo,
+ offsetof(typeof(*map_state),u_backward.tm0),
+ privFuture->bo, UOFFSET(context),
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ map_state->u_backward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1;
+
+ /* 3DSATE_MAP_STATE: V */
+ map_state->v_map.dw0.type = CMD_3D;
+ map_state->v_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
+ map_state->v_map.dw0.retain = 1;
+ map_state->v_map.dw0.length = 6;
+ map_state->v_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
+
+ /* V Forward */
+ map_state->v_forward.tm0.v_ls_offset = 0;
+ map_state->v_forward.tm0.v_ls = 0;
+ map_state->v_forward.tm1.tile_walk = TILEWALK_XMAJOR;
+ map_state->v_forward.tm1.tiled_surface = 0;
+ map_state->v_forward.tm1.utilize_fence_regs = 0;
+ map_state->v_forward.tm1.texel_fmt = 0;
+ map_state->v_forward.tm1.surface_fmt = 1;
+ map_state->v_forward.tm1.width = (w >> 1) - 1;
+ map_state->v_forward.tm1.height = (h >> 1) - 1;
+ map_state->v_forward.tm2.depth = 0;
+ map_state->v_forward.tm2.max_lod = 0;
+ map_state->v_forward.tm2.cube_face = 0;
+ map_state->v_forward.tm0.base_address =
+ (privPast->bo->offset + VOFFSET(context)) >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->msb_bo,
+ offsetof(typeof(*map_state),v_forward.tm0),
+ privPast->bo, VOFFSET(context),
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ map_state->v_forward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1; /* in DWords - 1 */
+
+ /* V Backward */
+ map_state->v_backward.tm0.v_ls_offset = 0;
+ map_state->v_backward.tm0.v_ls = 0;
+ map_state->v_backward.tm1.tile_walk = TILEWALK_XMAJOR;
+ map_state->v_backward.tm1.tiled_surface = 0;
+ map_state->v_backward.tm1.utilize_fence_regs = 0;
+ map_state->v_backward.tm1.texel_fmt = 0;
+ map_state->v_backward.tm1.surface_fmt = 1;
+ map_state->v_backward.tm1.width = (w >> 1) - 1;
+ map_state->v_backward.tm1.height = (h >> 1) - 1;
+ map_state->v_backward.tm2.depth = 0;
+ map_state->v_backward.tm2.max_lod = 0;
+ map_state->v_backward.tm2.cube_face = 0;
+ map_state->v_backward.tm0.base_address =
+ (privFuture->bo->offset + VOFFSET(context)) >> 2;
+ drm_intel_bo_emit_reloc(pI915XvMC->msb_bo,
+ offsetof(typeof(*map_state),v_backward.tm0),
+ privFuture->bo, VOFFSET(context),
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ map_state->v_backward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1;
+
+ drm_intel_gem_bo_unmap_gtt(pI915XvMC->msb_bo);
+}
+
+static void i915_mc_load_indirect_render_emit(XvMCContext * context)
+{
+ i915XvMCContext *pI915XvMC = (i915XvMCContext *) context->privData;
+ int mem_select;
+ uint32_t load_indirect;
+ BATCH_LOCALS;
+
+ BEGIN_BATCH(5);
+ load_indirect = OP_3D_LOAD_INDIRECT;
+ load_indirect |= (BLOCK_SIS | BLOCK_MSB) << BLOCK_MASK_SHIFT;
+ load_indirect |= 5 - 2; /* length */
+
+ if (pI915XvMC->use_phys_addr)
+ mem_select = 0; /* use physical address */
+ else {
+ load_indirect |= OP_3D_LOAD_INDIRECT_GFX_ADDR;
+ mem_select = 1; /* use gfx address */
+ }
+ OUT_BATCH(load_indirect);
+
+ /* Static Indirect state buffer (dest buffer info) */
+ OUT_RELOC(pI915XvMC->sis_bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
+ STATE_VALID | STATE_FORCE);
+ OUT_BATCH(16); /* 4 * 3 + 2 + 3 - 1 */
+
+ /* Map state buffer (reference buffer info) */
+ OUT_RELOC(pI915XvMC->msb_bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
+ STATE_VALID | STATE_FORCE);
+ OUT_BATCH(23); /* 3 * 8 - 1 */
+ ADVANCE_BATCH();
+}
+
+static void i915_mc_mpeg_set_origin(XvMCContext * context, XvMCMacroBlock * mb)
+{
+ struct i915_3dmpeg_set_origin set_origin;
+
+ /* 3DMPEG_SET_ORIGIN */
+ memset(&set_origin, 0, sizeof(set_origin));
+ set_origin.dw0.type = CMD_3D;
+ set_origin.dw0.opcode = OPC_3DMPEG_SET_ORIGIN;
+ set_origin.dw0.length = 0;
+ set_origin.dw1.h_origin = mb->x;
+ set_origin.dw1.v_origin = mb->y;
+
+ intelBatchbufferData(&set_origin, sizeof(set_origin), 0);
+}
+
+static void i915_mc_mpeg_macroblock_ipicture(XvMCContext * context,
+ XvMCMacroBlock * mb)
+{
+ struct i915_3dmpeg_macroblock_ipicture macroblock_ipicture;
+
+ /* 3DMPEG_MACROBLOCK_IPICTURE */
+ memset(&macroblock_ipicture, 0, sizeof(macroblock_ipicture));
+ macroblock_ipicture.dw0.type = CMD_3D;
+ macroblock_ipicture.dw0.opcode = OPC_3DMPEG_MACROBLOCK_IPICTURE;
+ macroblock_ipicture.dw0.dct_type =
+ (mb->dct_type == XVMC_DCT_TYPE_FIELD);
+
+ intelBatchbufferData(&macroblock_ipicture, sizeof(macroblock_ipicture),
+ 0);
+}
+
+static void i915_mc_mpeg_macroblock_1fbmv(XvMCContext * context,
+ XvMCMacroBlock * mb)
+{
+ struct i915_3dmpeg_macroblock_1fbmv macroblock_1fbmv;
+ vector_t mv0[2];
+
+ /* 3DMPEG_MACROBLOCK(1fbmv) */
+ memset(&macroblock_1fbmv, 0, sizeof(macroblock_1fbmv));
+ macroblock_1fbmv.header.dw0.type = CMD_3D;
+ macroblock_1fbmv.header.dw0.opcode = OPC_3DMPEG_MACROBLOCK;
+ macroblock_1fbmv.header.dw0.length = 2;
+ macroblock_1fbmv.header.dw1.mb_intra = 0; /* should be 0 */
+ macroblock_1fbmv.header.dw1.forward =
+ ((mb->macroblock_type & XVMC_MB_TYPE_MOTION_FORWARD) ? 1 : 0);
+ macroblock_1fbmv.header.dw1.backward =
+ ((mb->macroblock_type & XVMC_MB_TYPE_MOTION_BACKWARD) ? 1 : 0);
+ macroblock_1fbmv.header.dw1.h263_4mv = 0; /* should be 0 */
+ macroblock_1fbmv.header.dw1.dct_type =
+ (mb->dct_type == XVMC_DCT_TYPE_FIELD);
+
+ if (!(mb->coded_block_pattern & 0x3f))
+ macroblock_1fbmv.header.dw1.dct_type = XVMC_DCT_TYPE_FRAME;
+
+ macroblock_1fbmv.header.dw1.motion_type = (mb->motion_type & 0x03);
+ macroblock_1fbmv.header.dw1.vertical_field_select =
+ (mb->motion_vertical_field_select & 0x0f);
+ macroblock_1fbmv.header.dw1.coded_block_pattern =
+ mb->coded_block_pattern;
+ macroblock_1fbmv.header.dw1.skipped_macroblocks = 0;
+
+ mv0[0].component[0] = mb->PMV[0][0][0];
+ mv0[0].component[1] = mb->PMV[0][0][1];
+ mv0[1].component[0] = mb->PMV[0][1][0];
+ mv0[1].component[1] = mb->PMV[0][1][1];
+
+ macroblock_1fbmv.dw2 = mv0[0].v;
+ macroblock_1fbmv.dw3 = mv0[1].v;
+
+ intelBatchbufferData(&macroblock_1fbmv, sizeof(macroblock_1fbmv), 0);
+}
+
+static void i915_mc_mpeg_macroblock_2fbmv(XvMCContext * context,
+ XvMCMacroBlock * mb, unsigned int ps)
+{
+ struct i915_3dmpeg_macroblock_2fbmv macroblock_2fbmv;
+ vector_t mv0[2];
+ vector_t mv1[2];
+
+ /* 3DMPEG_MACROBLOCK(2fbmv) */
+ memset(&macroblock_2fbmv, 0, sizeof(macroblock_2fbmv));
+ macroblock_2fbmv.header.dw0.type = CMD_3D;
+ macroblock_2fbmv.header.dw0.opcode = OPC_3DMPEG_MACROBLOCK;
+ macroblock_2fbmv.header.dw0.length = 4;
+ macroblock_2fbmv.header.dw1.mb_intra = 0; /* should be 0 */
+ macroblock_2fbmv.header.dw1.forward =
+ ((mb->macroblock_type & XVMC_MB_TYPE_MOTION_FORWARD) ? 1 : 0);
+ macroblock_2fbmv.header.dw1.backward =
+ ((mb->macroblock_type & XVMC_MB_TYPE_MOTION_BACKWARD) ? 1 : 0);
+ macroblock_2fbmv.header.dw1.h263_4mv = 0; /* should be 0 */
+ macroblock_2fbmv.header.dw1.dct_type =
+ (mb->dct_type == XVMC_DCT_TYPE_FIELD);
+
+ if (!(mb->coded_block_pattern & 0x3f))
+ macroblock_2fbmv.header.dw1.dct_type = XVMC_DCT_TYPE_FRAME;
+
+ macroblock_2fbmv.header.dw1.motion_type = (mb->motion_type & 0x03);
+ macroblock_2fbmv.header.dw1.vertical_field_select =
+ (mb->motion_vertical_field_select & 0x0f);
+ macroblock_2fbmv.header.dw1.coded_block_pattern =
+ mb->coded_block_pattern;
+ macroblock_2fbmv.header.dw1.skipped_macroblocks = 0;
+
+ mv0[0].component[0] = mb->PMV[0][0][0];
+ mv0[0].component[1] = mb->PMV[0][0][1];
+ mv0[1].component[0] = mb->PMV[0][1][0];
+ mv0[1].component[1] = mb->PMV[0][1][1];
+ mv1[0].component[0] = mb->PMV[1][0][0];
+ mv1[0].component[1] = mb->PMV[1][0][1];
+ mv1[1].component[0] = mb->PMV[1][1][0];
+ mv1[1].component[1] = mb->PMV[1][1][1];
+
+ if ((ps & XVMC_FRAME_PICTURE) == XVMC_FRAME_PICTURE) {
+ if ((mb->motion_type & 3) == XVMC_PREDICTION_FIELD) {
+ mv0[0].component[1] = mb->PMV[0][0][1] >> 1;
+ mv0[1].component[1] = mb->PMV[0][1][1] >> 1;
+ mv1[0].component[1] = mb->PMV[1][0][1] >> 1;
+ mv1[1].component[1] = mb->PMV[1][1][1] >> 1;
+ } else if ((mb->motion_type & 3) == XVMC_PREDICTION_DUAL_PRIME) {
+ mv0[0].component[1] = mb->PMV[0][0][1] >> 1;
+ mv0[1].component[1] = mb->PMV[0][1][1] >> 1; // MPEG2 MV[0][1] isn't used
+ mv1[0].component[1] = mb->PMV[1][0][1] >> 1;
+ mv1[1].component[1] = mb->PMV[1][1][1] >> 1;
+ }
+ }
+
+ macroblock_2fbmv.dw2 = mv0[0].v;
+ macroblock_2fbmv.dw3 = mv0[1].v;
+ macroblock_2fbmv.dw4 = mv1[0].v;
+ macroblock_2fbmv.dw5 = mv1[1].v;
+
+ intelBatchbufferData(&macroblock_2fbmv, sizeof(macroblock_2fbmv), 0);
+}
+
+static int i915_xvmc_alloc_one_time_buffers(i915XvMCContext *pI915XvMC)
+{
+ pI915XvMC->ssb_bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "ssb",
+ GTT_PAGE_SIZE,
+ GTT_PAGE_SIZE);
+ if (!pI915XvMC->ssb_bo)
+ return 0;
+
+ pI915XvMC->psp_bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "psp",
+ GTT_PAGE_SIZE,
+ GTT_PAGE_SIZE);
+ if (!pI915XvMC->psp_bo)
+ return 0;
+
+ pI915XvMC->psc_bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "psc",
+ GTT_PAGE_SIZE,
+ GTT_PAGE_SIZE);
+ if (!pI915XvMC->psc_bo)
+ return 0;
+
+ return 1;
+}
+
+static void i915_xvmc_free_one_time_buffers(i915XvMCContext *pI915XvMC)
+{
+ drm_intel_bo_unreference(pI915XvMC->ssb_bo);
+ drm_intel_bo_unreference(pI915XvMC->psp_bo);
+ drm_intel_bo_unreference(pI915XvMC->psc_bo);
+}
+
+/*
+ * Function: i915_release_resource
+ */
+static void i915_release_resource(Display * display, XvMCContext * context)
+{
+ i915XvMCContext *pI915XvMC;
+
+ if (!(pI915XvMC = context->privData))
+ return;
+
+ i915_xvmc_free_one_time_buffers(pI915XvMC);
+
+ free(pI915XvMC);
+ context->privData = NULL;
+}
+
+static Status i915_xvmc_mc_create_context(Display * display,
+ XvMCContext * context, int priv_count,
+ CARD32 * priv_data)
+{
+ i915XvMCContext *pI915XvMC = NULL;
+ struct intel_xvmc_hw_context *tmpComm = NULL;
+
+ if (priv_count != (sizeof(struct intel_xvmc_hw_context) >> 2)) {
+ XVMC_ERR
+ ("_xvmc_create_context() returned incorrect data size!");
+ XVMC_INFO("\tExpected %d, got %d",
+ (int)(sizeof(struct intel_xvmc_hw_context) >> 2),
+ priv_count);
+ _xvmc_destroy_context(display, context);
+ XFree(priv_data);
+ context->privData = NULL;
+ return BadValue;
+ }
+
+ context->privData = (void *)calloc(1, sizeof(i915XvMCContext));
+ if (!context->privData) {
+ XVMC_ERR("Unable to allocate resources for XvMC context.");
+ return BadAlloc;
+ }
+ pI915XvMC = (i915XvMCContext *) context->privData;
+
+ tmpComm = (struct intel_xvmc_hw_context *) priv_data;
+ pI915XvMC->use_phys_addr = tmpComm->i915.use_phys_addr;
+ pI915XvMC->comm.surface_bo_size = SIZE_YUV420(context->width,
+ context->height);
+
+ /* Must free the private data we were passed from X */
+ XFree(priv_data);
+ priv_data = NULL;
+
+ if (!i915_xvmc_alloc_one_time_buffers(pI915XvMC))
+ goto free_one_time_buffers;
+
+ /* Initialize private context values */
+ pI915XvMC->yStride = STRIDE(context->width);
+ pI915XvMC->uvStride = STRIDE(context->width >> 1);
+
+ /* pre-init state buffers */
+ i915_mc_one_time_context_init(context);
+
+ return Success;
+
+free_one_time_buffers:
+ i915_xvmc_free_one_time_buffers(pI915XvMC);
+ free(pI915XvMC);
+ context->privData = NULL;
+ return BadAlloc;
+}
+
+static int i915_xvmc_mc_destroy_context(Display * display,
+ XvMCContext * context)
+{
+ i915XvMCContext *pI915XvMC;
+
+ if (!(pI915XvMC = context->privData))
+ return XvMCBadContext;
+
+ /* Pass Control to the X server to destroy the drm_context_t */
+ i915_release_resource(display, context);
+
+ return Success;
+}
+
+static int i915_xvmc_alloc_render_state_buffers(i915XvMCContext *pI915XvMC)
+{
+ pI915XvMC->sis_bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "sis",
+ GTT_PAGE_SIZE,
+ GTT_PAGE_SIZE);
+ if (!pI915XvMC->sis_bo)
+ return 0;
+
+ pI915XvMC->msb_bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "msb",
+ GTT_PAGE_SIZE,
+ GTT_PAGE_SIZE);
+ if (!pI915XvMC->msb_bo)
+ return 0;
+
+ pI915XvMC->corrdata_bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "corrdata",
+ CORRDATA_SIZE,
+ GTT_PAGE_SIZE);
+ if (!pI915XvMC->corrdata_bo)
+ return 0;
+
+ return 1;
+}
+
+static void i915_xvmc_free_render_state_buffers(i915XvMCContext *pI915XvMC)
+{
+ drm_intel_bo_unreference(pI915XvMC->sis_bo);
+ drm_intel_bo_unreference(pI915XvMC->msb_bo);
+ drm_intel_bo_unreference(pI915XvMC->corrdata_bo);
+}
+
+static int i915_xvmc_mc_render_surface(Display * display, XvMCContext * context,
+ unsigned int picture_structure,
+ XvMCSurface * target_surface,
+ XvMCSurface * past_surface,
+ XvMCSurface * future_surface,
+ unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray * macroblock_array,
+ XvMCBlockArray * blocks)
+{
+ int i;
+ int picture_coding_type = MPEG_I_PICTURE;
+ /* correction data buffer */
+ char *corrdata_ptr;
+ int corrdata_size = 0;
+
+ /* Block Pointer */
+ short *block_ptr;
+ /* Current Macroblock Pointer */
+ XvMCMacroBlock *mb;
+
+ intel_xvmc_context_ptr intel_ctx;
+
+ struct intel_xvmc_surface *privTarget = NULL;
+ struct intel_xvmc_surface *privFuture = NULL;
+ struct intel_xvmc_surface *privPast = NULL;
+ i915XvMCContext *pI915XvMC = NULL;
+
+ /* Check Parameters for validity */
+ if (!display || !context || !target_surface) {
+ XVMC_ERR("Invalid Display, Context or Target!");
+ return BadValue;
+ }
+
+ if (!num_macroblocks)
+ return Success;
+
+ if (!macroblock_array || !blocks) {
+ XVMC_ERR("Invalid block data!");
+ return BadValue;
+ }
+
+ if (macroblock_array->num_blocks < (num_macroblocks + first_macroblock)) {
+ XVMC_ERR("Too many macroblocks requested for MB array size.");
+ return BadValue;
+ }
+
+ if (!(pI915XvMC = context->privData))
+ return XvMCBadContext;
+
+ if (!(privTarget = target_surface->privData))
+ return XvMCBadSurface;
+
+ if (!i915_xvmc_alloc_render_state_buffers(pI915XvMC))
+ return BadAlloc;
+
+ intel_ctx = context->privData;
+ if (!intel_ctx) {
+ XVMC_ERR("Can't find intel xvmc context\n");
+ return BadValue;
+ }
+
+ /* P Frame Test */
+ if (!past_surface) {
+ /* Just to avoid some ifs later. */
+ privPast = privTarget;
+ } else {
+ if (!(privPast = past_surface->privData)) {
+ return XvMCBadSurface;
+ }
+ picture_coding_type = MPEG_P_PICTURE;
+ }
+
+ /* B Frame Test */
+ if (!future_surface) {
+ privFuture = privPast; // privTarget;
+ } else {
+ if (!past_surface) {
+ XVMC_ERR("No Past Surface!");
+ return BadValue;
+ }
+
+ if (!(privFuture = future_surface->privData)) {
+ XVMC_ERR("Invalid Future Surface!");
+ return XvMCBadSurface;
+ }
+
+ picture_coding_type = MPEG_B_PICTURE;
+ }
+
+ LOCK_HARDWARE(intel_ctx->hw_context);
+ drm_intel_gem_bo_map_gtt(pI915XvMC->corrdata_bo);
+ corrdata_ptr = pI915XvMC->corrdata_bo->virtual;
+ corrdata_size = 0;
+
+ for (i = first_macroblock; i < (num_macroblocks + first_macroblock);
+ i++) {
+ int bspm = 0;
+ mb = &macroblock_array->macro_blocks[i];
+ block_ptr = &(blocks->blocks[mb->index << 6]);
+
+ /* Lockup can happen if the coordinates are too far out of range */
+ if (mb->x > (target_surface->width >> 4)) {
+ mb->x = 0;
+ XVMC_INFO("reset x");
+ }
+
+ if (mb->y > (target_surface->height >> 4)) {
+ mb->y = 0;
+ XVMC_INFO("reset y");
+ }
+
+ /* Catch no pattern case */
+ if (!(mb->macroblock_type & XVMC_MB_TYPE_PATTERN) &&
+ !(mb->macroblock_type & XVMC_MB_TYPE_INTRA) &&
+ mb->coded_block_pattern) {
+ mb->coded_block_pattern = 0;
+ XVMC_INFO("no coded blocks present!");
+ }
+
+ bspm = mb_bytes_420[mb->coded_block_pattern];
+
+ if (!bspm)
+ continue;
+
+ corrdata_size += bspm;
+
+ if (corrdata_size > CORRDATA_SIZE) {
+ XVMC_ERR("correction data buffer overflow.");
+ break;
+ }
+ memcpy(corrdata_ptr, block_ptr, bspm);
+ corrdata_ptr += bspm;
+ }
+
+ drm_intel_gem_bo_unmap_gtt(pI915XvMC->corrdata_bo);
+
+ // i915_mc_invalidate_subcontext_buffers(context, BLOCK_SIS | BLOCK_DIS | BLOCK_SSB
+ // | BLOCK_MSB | BLOCK_PSP | BLOCK_PSC);
+
+ i915_mc_one_time_state_emit(context);
+
+ i915_mc_static_indirect_state_set(context, target_surface,
+ picture_structure, flags,
+ picture_coding_type);
+ /* setup reference surfaces */
+ i915_mc_map_state_set(context, privPast, privFuture);
+
+ i915_mc_load_indirect_render_emit(context);
+
+ i915_mc_mpeg_set_origin(context,
+ &macroblock_array->macro_blocks
+ [first_macroblock]);
+
+ for (i = first_macroblock; i < (num_macroblocks + first_macroblock);
+ i++) {
+ mb = &macroblock_array->macro_blocks[i];
+
+ /* Intra Blocks */
+ if (mb->macroblock_type & XVMC_MB_TYPE_INTRA) {
+ i915_mc_mpeg_macroblock_ipicture(context, mb);
+ } else if ((picture_structure & XVMC_FRAME_PICTURE) ==
+ XVMC_FRAME_PICTURE) {
+ /* Frame Picture */
+ switch (mb->motion_type & 3) {
+ case XVMC_PREDICTION_FIELD: /* Field Based */
+ i915_mc_mpeg_macroblock_2fbmv(context, mb,
+ picture_structure);
+ break;
+
+ case XVMC_PREDICTION_FRAME: /* Frame Based */
+ i915_mc_mpeg_macroblock_1fbmv(context, mb);
+ break;
+
+ case XVMC_PREDICTION_DUAL_PRIME: /* Dual Prime */
+ i915_mc_mpeg_macroblock_2fbmv(context, mb,
+ picture_structure);
+ break;
+
+ default: /* No Motion Type */
+ XVMC_ERR
+ ("Invalid Macroblock Parameters found.");
+ break;
+ }
+ } else { /* Field Picture */
+ switch (mb->motion_type & 3) {
+ case XVMC_PREDICTION_FIELD: /* Field Based */
+ i915_mc_mpeg_macroblock_1fbmv(context, mb);
+ break;
+
+ case XVMC_PREDICTION_16x8: /* 16x8 MC */
+ i915_mc_mpeg_macroblock_2fbmv(context, mb,
+ picture_structure);
+ break;
+
+ case XVMC_PREDICTION_DUAL_PRIME: /* Dual Prime */
+ i915_mc_mpeg_macroblock_1fbmv(context, mb);
+ break;
+
+ default: /* No Motion Type */
+ XVMC_ERR
+ ("Invalid Macroblock Parameters found.");
+ break;
+ }
+ }
+ }
+
+ intelFlushBatch(TRUE);
+
+ i915_xvmc_free_render_state_buffers(pI915XvMC);
+
+ UNLOCK_HARDWARE(intel_ctx->hw_context);
+ return 0;
+}
+
+struct _intel_xvmc_driver i915_xvmc_mc_driver = {
+ .type = XVMC_I915_MPEG2_MC,
+ .num_ctx = 0,
+ .ctx_list = NULL,
+ .create_context = i915_xvmc_mc_create_context,
+ .destroy_context = i915_xvmc_mc_destroy_context,
+ .render_surface = i915_xvmc_mc_render_surface,
+};
diff --git a/src/xvmc/i915_xvmc.h b/src/xvmc/i915_xvmc.h
new file mode 100644
index 0000000..852e3ea
--- /dev/null
+++ b/src/xvmc/i915_xvmc.h
@@ -0,0 +1,83 @@
+/*
+ * Copyright © 2006 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Xiang Haihao <haihao.xiang@intel.com>
+ *
+ */
+
+#ifndef _I915XVMC_H
+#define _I915XVMC_H
+
+#include "intel_xvmc.h"
+#include "intel_hwmc.h"
+
+#define I915_SUBPIC_PALETTE_SIZE 16
+#define MAX_SUBCONTEXT_LEN 1024
+
+#define PCI_CHIP_I915_G 0x2582
+#define PCI_CHIP_I915_GM 0x2592
+#define PCI_CHIP_I945_G 0x2772
+#define PCI_CHIP_I945_GM 0x27A2
+#define PCI_CHIP_I945_GME 0x27AE
+#define PCI_CHIP_G33_G 0x29C2
+#define PCI_CHIP_Q35_G 0x29B2
+#define PCI_CHIP_Q33_G 0x29D2
+
+#define CORRDATA_SIZE 128*GTT_PAGE_SIZE
+/*
+ * i915XvMCContext:
+ * Private Context data referenced via the privData
+ * pointer in the XvMCContext structure.
+ */
+typedef struct _i915XvMCContext {
+ struct intel_xvmc_context comm;
+ unsigned int yStride;
+ unsigned int uvStride;
+ unsigned int use_phys_addr;
+
+ drm_intel_bo *sis_bo;
+ drm_intel_bo *msb_bo;
+ drm_intel_bo *ssb_bo;
+ drm_intel_bo *psp_bo;
+ drm_intel_bo *psc_bo;
+ drm_intel_bo *corrdata_bo;
+} i915XvMCContext;
+
+/*
+ * i915XvMCSubpicture:
+ * Private data structure for each XvMCSubpicture. This
+ * structure is referenced by the privData pointer in the XvMCSubpicture
+ * structure.
+ */
+typedef struct _i915XvMCSubpicture {
+ unsigned int srfNo;
+ unsigned int pitch;
+ unsigned char palette[3][16];
+ intel_xvmc_drm_map_t srf;
+ i915XvMCContext *privContext;
+} i915XvMCSubpicture;
+
+/* Number of YUV buffers per surface */
+#define I830_MAX_BUFS 2
+
+#endif /* _I915XVMC_H */
diff --git a/src/xvmc/i965_xvmc.c b/src/xvmc/i965_xvmc.c
new file mode 100644
index 0000000..210cf73
--- /dev/null
+++ b/src/xvmc/i965_xvmc.c
@@ -0,0 +1,882 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ *
+ */
+#include "intel_xvmc.h"
+#include "i830_reg.h"
+#include "i965_reg.h"
+#include "brw_defines.h"
+#include "brw_structs.h"
+#include "intel_batchbuffer.h"
+#include "intel_hwmc.h"
+#define BATCH_STRUCT(x) intelBatchbufferData(&x, sizeof(x), 0)
+#define URB_SIZE 256 /* XXX */
+
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+
+enum interface {
+ INTRA_INTERFACE = 0, /* non field intra */
+ NULL_INTERFACE, /* fill with white, do nothing, for debug */
+ FORWARD_INTERFACE, /* non field forward predict */
+ BACKWARD_INTERFACE, /* non field backward predict */
+ F_B_INTERFACE, /* non field forward and backward predict */
+ FIELD_FORWARD_INTERFACE, /* field forward predict */
+ FIELD_BACKWARD_INTERFACE, /* field backward predict */
+ FIELD_F_B_INTERFACE, /* field forward and backward predict */
+ DUAL_PRIME_INTERFACE
+};
+
+static const uint32_t ipicture_kernel_static[][4] = {
+#include "shader/mc/ipicture.g4b"
+};
+
+static const uint32_t null_kernel_static[][4] = {
+#include "shader/mc/null.g4b"
+};
+
+static const uint32_t frame_forward_kernel_static[][4] = {
+#include "shader/mc/frame_forward.g4b"
+};
+
+static const uint32_t frame_backward_kernel_static[][4] = {
+#include "shader/mc/frame_backward.g4b"
+};
+
+static const uint32_t frame_f_b_kernel_static[][4] = {
+#include "shader/mc/frame_f_b.g4b"
+};
+
+static const uint32_t field_forward_kernel_static[][4] = {
+#include "shader/mc/field_forward.g4b"
+};
+
+static const uint32_t field_backward_kernel_static[][4] = {
+#include "shader/mc/field_backward.g4b"
+};
+
+static const uint32_t field_f_b_kernel_static[][4] = {
+#include "shader/mc/field_f_b.g4b"
+};
+
+static const uint32_t dual_prime_kernel_static[][4] = {
+#include "shader/mc/dual_prime.g4b"
+};
+
+static const uint32_t frame_forward_igd_kernel_static[][4] = {
+#include "shader/mc/frame_forward_igd.g4b"
+};
+
+static const uint32_t frame_backward_igd_kernel_static[][4] = {
+#include "shader/mc/frame_backward_igd.g4b"
+};
+
+static const uint32_t frame_f_b_igd_kernel_static[][4] = {
+#include "shader/mc/frame_f_b_igd.g4b"
+};
+
+static const uint32_t field_forward_igd_kernel_static[][4] = {
+#include "shader/mc/field_forward_igd.g4b"
+};
+
+static const uint32_t field_backward_igd_kernel_static[][4] = {
+#include "shader/mc/field_backward_igd.g4b"
+};
+
+static const uint32_t field_f_b_igd_kernel_static[][4] = {
+#include "shader/mc/field_f_b_igd.g4b"
+};
+
+static const uint32_t dual_prime_igd_kernel_static[][4] = {
+#include "shader/mc/dual_prime_igd.g4b"
+};
+
+struct kernel_struct {
+ const uint32_t(*bin)[4];
+ uint32_t size;
+};
+
+struct kernel_struct kernels_igd[] = {
+ {ipicture_kernel_static, sizeof(ipicture_kernel_static)}
+ ,
+ {null_kernel_static, sizeof(null_kernel_static)}
+ ,
+ {frame_forward_igd_kernel_static,
+ sizeof(frame_forward_igd_kernel_static)}
+ ,
+ {frame_backward_igd_kernel_static,
+ sizeof(frame_backward_igd_kernel_static)}
+ ,
+ {frame_f_b_igd_kernel_static, sizeof(frame_f_b_igd_kernel_static)}
+ ,
+ {field_forward_igd_kernel_static,
+ sizeof(field_forward_igd_kernel_static)}
+ ,
+ {field_backward_igd_kernel_static,
+ sizeof(field_backward_igd_kernel_static)}
+ ,
+ {field_f_b_igd_kernel_static, sizeof(field_f_b_igd_kernel_static)}
+ ,
+ {dual_prime_igd_kernel_static, sizeof(dual_prime_igd_kernel_static)}
+};
+
+struct kernel_struct kernels_965[] = {
+ {ipicture_kernel_static, sizeof(ipicture_kernel_static)}
+ ,
+ {null_kernel_static, sizeof(null_kernel_static)}
+ ,
+ {frame_forward_kernel_static, sizeof(frame_forward_kernel_static)}
+ ,
+ {frame_backward_kernel_static, sizeof(frame_backward_kernel_static)}
+ ,
+ {frame_f_b_kernel_static, sizeof(frame_f_b_kernel_static)}
+ ,
+ {field_forward_kernel_static, sizeof(field_forward_kernel_static)}
+ ,
+ {field_backward_kernel_static, sizeof(field_backward_kernel_static)}
+ ,
+ {field_f_b_kernel_static, sizeof(field_f_b_kernel_static)}
+ ,
+ {dual_prime_kernel_static, sizeof(dual_prime_kernel_static)}
+};
+
+#define ALIGN(i,m) (((i) + (m) - 1) & ~((m) - 1))
+
+#define MAX_SURFACE_NUM 10
+#define DESCRIPTOR_NUM 12
+
+struct media_kernel_obj {
+ dri_bo *bo;
+};
+
+struct interface_descriptor_obj {
+ dri_bo *bo;
+ struct media_kernel_obj kernels[DESCRIPTOR_NUM];
+};
+
+struct vfe_state_obj {
+ dri_bo *bo;
+ struct interface_descriptor_obj interface;
+};
+
+struct surface_obj {
+ dri_bo *bo;
+};
+
+struct surface_state_obj {
+ struct surface_obj surface;
+ dri_bo *bo;
+};
+
+struct binding_table_obj {
+ dri_bo *bo;
+ struct surface_state_obj surface_states[MAX_SURFACE_NUM];
+};
+
+struct indirect_data_obj {
+ dri_bo *bo;
+};
+
+struct media_state {
+ unsigned int is_g4x:1;
+ unsigned int is_965_q:1;
+
+ struct vfe_state_obj vfe_state;
+ struct binding_table_obj binding_table;
+ struct indirect_data_obj indirect_data;
+};
+struct media_state media_state;
+
+static void free_object(struct media_state *s)
+{
+ int i;
+#define FREE_ONE_BO(bo) drm_intel_bo_unreference(bo)
+ FREE_ONE_BO(s->vfe_state.bo);
+ FREE_ONE_BO(s->vfe_state.interface.bo);
+ for (i = 0; i < DESCRIPTOR_NUM; i++)
+ FREE_ONE_BO(s->vfe_state.interface.kernels[i].bo);
+ FREE_ONE_BO(s->binding_table.bo);
+ for (i = 0; i < MAX_SURFACE_NUM; i++)
+ FREE_ONE_BO(s->binding_table.surface_states[i].bo);
+ FREE_ONE_BO(s->indirect_data.bo);
+}
+
+static int alloc_object(struct media_state *s)
+{
+ int i;
+
+ for (i = 0; i < MAX_SURFACE_NUM; i++) {
+ s->binding_table.surface_states[i].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "surface_state",
+ sizeof(struct brw_surface_state),
+ 0x1000);
+ if (!s->binding_table.surface_states[i].bo)
+ goto out;
+ }
+ return 0;
+out:
+ free_object(s);
+ return BadAlloc;
+}
+
+static Status destroy_context(Display * display, XvMCContext * context)
+{
+ struct intel_xvmc_context *intel_ctx;
+ intel_ctx = context->privData;
+ Xfree(intel_ctx->hw);
+ free(intel_ctx);
+ return Success;
+}
+
+#define STRIDE(w) (w)
+#define SIZE_YUV420(w, h) (h * (STRIDE(w) + STRIDE(w >> 1)))
+
+static void flush()
+{
+ struct brw_mi_flush flush;
+ memset(&flush, 0, sizeof(flush));
+ flush.opcode = CMD_MI_FLUSH;
+ flush.flags = (1 << 1);
+ BATCH_STRUCT(flush);
+}
+
+static void clear_sf_state()
+{
+ struct brw_sf_unit_state sf;
+ memset(&sf, 0, sizeof(sf));
+ /* TODO */
+}
+
+/* urb fence must be aligned to cacheline */
+static void align_urb_fence()
+{
+ BATCH_LOCALS;
+ int i, offset_to_next_cacheline;
+ unsigned long batch_offset;
+ BEGIN_BATCH(3);
+ batch_offset = (void *)batch_ptr - xvmc_driver->alloc.ptr;
+ offset_to_next_cacheline = ALIGN(batch_offset, 64) - batch_offset;
+ if (offset_to_next_cacheline <= 12 && offset_to_next_cacheline != 0) {
+ for (i = 0; i < offset_to_next_cacheline / 4; i++)
+ OUT_BATCH(0);
+ ADVANCE_BATCH();
+ }
+}
+
+/* setup urb layout for media */
+static void urb_layout()
+{
+ BATCH_LOCALS;
+ align_urb_fence();
+ BEGIN_BATCH(3);
+ OUT_BATCH(BRW_URB_FENCE |
+ UF0_VFE_REALLOC |
+ UF0_CS_REALLOC |
+ UF0_SF_REALLOC |
+ UF0_CLIP_REALLOC | UF0_GS_REALLOC | UF0_VS_REALLOC | 1);
+ OUT_BATCH((0 << UF1_CLIP_FENCE_SHIFT) |
+ (0 << UF1_GS_FENCE_SHIFT) | (0 << UF1_VS_FENCE_SHIFT));
+
+ OUT_BATCH(((URB_SIZE) << UF2_VFE_FENCE_SHIFT) | /* VFE_SIZE */
+ ((URB_SIZE) << UF2_CS_FENCE_SHIFT)); /* CS_SIZE is 0 */
+ ADVANCE_BATCH();
+}
+
+static void media_state_pointers(struct media_state *media_state)
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(3);
+ OUT_BATCH(BRW_MEDIA_STATE_POINTERS | 1);
+ OUT_BATCH(0);
+ OUT_RELOC(media_state->vfe_state.bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ ADVANCE_BATCH();
+}
+
+/* setup 2D surface for media_read or media_write
+ */
+static Status setup_media_surface(struct media_state *media_state,
+ int surface_num, dri_bo * bo,
+ unsigned long offset, int w, int h,
+ Bool write)
+{
+ struct brw_surface_state s, *ss = &s;
+
+ memset(ss, 0, sizeof(struct brw_surface_state));
+ ss->ss0.surface_type = BRW_SURFACE_2D;
+ ss->ss0.surface_format = BRW_SURFACEFORMAT_R8_SINT;
+ ss->ss1.base_addr = offset + bo->offset;
+ ss->ss2.width = w - 1;
+ ss->ss2.height = h - 1;
+ ss->ss3.pitch = w - 1;
+
+ if (media_state->binding_table.surface_states[surface_num].bo)
+ drm_intel_bo_unreference(media_state->
+ binding_table.surface_states
+ [surface_num].bo);
+ media_state->binding_table.surface_states[surface_num].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "surface_state",
+ sizeof(struct brw_surface_state), 0x1000);
+ if (!media_state->binding_table.surface_states[surface_num].bo)
+ return BadAlloc;
+
+ drm_intel_bo_subdata(media_state->
+ binding_table.surface_states[surface_num].bo, 0,
+ sizeof(*ss), ss);
+
+ drm_intel_bo_emit_reloc(media_state->
+ binding_table.surface_states[surface_num].bo,
+ offsetof(struct brw_surface_state, ss1), bo,
+ offset, I915_GEM_DOMAIN_RENDER,
+ write ? I915_GEM_DOMAIN_RENDER : 0);
+
+ return Success;
+}
+
+static Status setup_surfaces(struct media_state *media_state,
+ dri_bo * dst_bo, dri_bo * past_bo,
+ dri_bo * future_bo, int w, int h)
+{
+ Status ret;
+ ret = setup_media_surface(media_state, 0, dst_bo, 0, w, h, TRUE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(media_state, 1, dst_bo, w * h, w / 2, h / 2,
+ TRUE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(media_state, 2, dst_bo, w * h + w * h / 4,
+ w / 2, h / 2, TRUE);
+ if (ret != Success)
+ return ret;
+ if (past_bo) {
+ ret =
+ setup_media_surface(media_state, 4, past_bo, 0, w, h,
+ FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(media_state, 5, past_bo, w * h, w / 2,
+ h / 2, FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(media_state, 6, past_bo,
+ w * h + w * h / 4, w / 2, h / 2, FALSE);
+ if (ret != Success)
+ return ret;
+ }
+ if (future_bo) {
+ ret =
+ setup_media_surface(media_state, 7, future_bo, 0, w, h,
+ FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(media_state, 8, future_bo, w * h, w / 2,
+ h / 2, FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(media_state, 9, future_bo,
+ w * h + w * h / 4, w / 2, h / 2, FALSE);
+ if (ret != Success)
+ return ret;
+ }
+ return Success;
+}
+
+/* BUFFER SURFACE has a strange format
+ * the size of the surface is in part of w h and d component
+ */
+
+static Status setup_blocks(struct media_state *media_state,
+ unsigned int block_size)
+{
+ union element {
+ struct {
+ unsigned int w:7;
+ unsigned int h:13;
+ unsigned int d:7;
+ unsigned int pad:7;
+ } whd;
+ unsigned int size;
+ } e;
+ struct brw_surface_state ss;
+ memset(&ss, 0, sizeof(struct brw_surface_state));
+ ss.ss0.surface_type = BRW_SURFACE_BUFFER;
+ ss.ss0.surface_format = BRW_SURFACEFORMAT_R8_UINT;
+ ss.ss1.base_addr = media_state->indirect_data.bo->offset;
+
+ e.size = block_size - 1;
+ ss.ss2.width = e.whd.w;
+ ss.ss2.height = e.whd.h;
+ ss.ss3.depth = e.whd.d;
+ ss.ss3.pitch = block_size - 1;
+
+ if (media_state->binding_table.surface_states[3].bo)
+ drm_intel_bo_unreference(media_state->
+ binding_table.surface_states[3].bo);
+
+ media_state->binding_table.surface_states[3].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "surface_state",
+ sizeof(struct brw_surface_state), 0x1000);
+ if (!media_state->binding_table.surface_states[3].bo)
+ return BadAlloc;
+
+ drm_intel_bo_subdata(media_state->binding_table.surface_states[3].bo, 0,
+ sizeof(ss), &ss);
+
+ drm_intel_bo_emit_reloc(media_state->binding_table.surface_states[3].bo,
+ offsetof(struct brw_surface_state, ss1),
+ media_state->indirect_data.bo, 0,
+ I915_GEM_DOMAIN_SAMPLER, 0);
+ return Success;
+}
+
+/* setup state base address */
+static void state_base_address()
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(6);
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | 4);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0xFFFFF000 | BASE_ADDRESS_MODIFY);
+ ADVANCE_BATCH();
+}
+
+/* select media pipeline */
+static void pipeline_select(struct media_state *media_state)
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(1);
+ if (media_state->is_g4x)
+ OUT_BATCH(NEW_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA);
+ else
+ OUT_BATCH(BRW_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA);
+ ADVANCE_BATCH();
+}
+
+/* kick media object to gpu */
+static void send_media_object(XvMCMacroBlock * mb, int offset,
+ enum interface interface)
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(13);
+ OUT_BATCH(BRW_MEDIA_OBJECT | 11);
+ OUT_BATCH(interface);
+ if (media_state.is_965_q) {
+ OUT_BATCH(0);
+ OUT_BATCH(0);
+ } else {
+ OUT_BATCH(6 * 128);
+ OUT_RELOC(media_state.indirect_data.bo,
+ I915_GEM_DOMAIN_INSTRUCTION, 0, offset);
+ }
+
+ OUT_BATCH(mb->x << 4); //g1.0
+ OUT_BATCH(mb->y << 4);
+ OUT_RELOC(media_state.indirect_data.bo, //g1.8
+ I915_GEM_DOMAIN_INSTRUCTION, 0, offset);
+ OUT_BATCH_SHORT(mb->coded_block_pattern); //g1.12
+ OUT_BATCH_SHORT(mb->PMV[0][0][0]); //g1.14
+ OUT_BATCH_SHORT(mb->PMV[0][0][1]); //g1.16
+ OUT_BATCH_SHORT(mb->PMV[0][1][0]); //g1.18
+ OUT_BATCH_SHORT(mb->PMV[0][1][1]); //g1.20
+
+ OUT_BATCH_SHORT(mb->PMV[1][0][0]); //g1.22
+ OUT_BATCH_SHORT(mb->PMV[1][0][1]); //g1.24
+ OUT_BATCH_SHORT(mb->PMV[1][1][0]); //g1.26
+ OUT_BATCH_SHORT(mb->PMV[1][1][1]); //g1.28
+ OUT_BATCH_CHAR(mb->dct_type); //g1.30
+ OUT_BATCH_CHAR(mb->motion_vertical_field_select); //g1.31
+
+ if (media_state.is_965_q)
+ OUT_BATCH(0x0);
+ else
+ OUT_BATCH(0xffffffff);
+ ADVANCE_BATCH();
+}
+
+static Status binding_tables(struct media_state *media_state)
+{
+ unsigned int binding_table[MAX_SURFACE_NUM];
+ int i;
+
+ if (media_state->binding_table.bo)
+ drm_intel_bo_unreference(media_state->binding_table.bo);
+ media_state->binding_table.bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "binding_table",
+ MAX_SURFACE_NUM * 4, 0x1000);
+ if (!media_state->binding_table.bo)
+ return BadAlloc;
+
+ for (i = 0; i < MAX_SURFACE_NUM; i++)
+ binding_table[i] =
+ media_state->binding_table.surface_states[i].bo->offset;
+ drm_intel_bo_subdata(media_state->binding_table.bo, 0,
+ sizeof(binding_table), binding_table);
+
+ for (i = 0; i < MAX_SURFACE_NUM; i++)
+ drm_intel_bo_emit_reloc(media_state->binding_table.bo,
+ i * sizeof(unsigned int),
+ media_state->
+ binding_table.surface_states[i].bo, 0,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+ return Success;
+}
+
+static int media_kernels(struct media_state *media_state)
+{
+ struct kernel_struct *kernels;
+ int kernel_array_size, i;
+
+ if (media_state->is_g4x) {
+ kernels = kernels_igd;
+ kernel_array_size = ARRAY_SIZE(kernels_igd);
+ } else {
+ kernels = kernels_965;
+ kernel_array_size = ARRAY_SIZE(kernels_965);
+ }
+
+ for (i = 0; i < kernel_array_size; i++) {
+ media_state->vfe_state.interface.kernels[i].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "kernel",
+ kernels[i].size, 0x1000);
+ if (!media_state->vfe_state.interface.kernels[i].bo)
+ goto out;
+ }
+
+ for (i = 0; i < kernel_array_size; i++) {
+ dri_bo *bo = media_state->vfe_state.interface.kernels[i].bo;
+ drm_intel_bo_subdata(bo, 0, kernels[i].size, kernels[i].bin);
+ }
+ return 0;
+out:
+ free_object(media_state);
+ return BadAlloc;
+}
+
+static void setup_interface(struct media_state *media_state, enum interface i)
+{
+ struct brw_interface_descriptor desc;
+ memset(&desc, 0, sizeof(desc));
+
+ desc.desc0.grf_reg_blocks = 15;
+ desc.desc0.kernel_start_pointer =
+ media_state->vfe_state.interface.kernels[i].bo->offset >> 6;
+
+ desc.desc1.floating_point_mode = BRW_FLOATING_POINT_NON_IEEE_754;
+
+ /* use same binding table for all interface
+ * may change this if it affect performance
+ */
+ desc.desc3.binding_table_entry_count = MAX_SURFACE_NUM;
+ desc.desc3.binding_table_pointer =
+ media_state->binding_table.bo->offset >> 5;
+
+ drm_intel_bo_subdata(media_state->vfe_state.interface.bo,
+ i * sizeof(desc), sizeof(desc), &desc);
+
+ drm_intel_bo_emit_reloc(media_state->vfe_state.interface.bo,
+ i * sizeof(desc) +
+ offsetof(struct brw_interface_descriptor,
+ desc0),
+ media_state->vfe_state.interface.kernels[i].bo,
+ desc.desc0.grf_reg_blocks,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+
+ drm_intel_bo_emit_reloc(media_state->vfe_state.interface.bo,
+ i * sizeof(desc) +
+ offsetof(struct brw_interface_descriptor,
+ desc3), media_state->binding_table.bo,
+ desc.desc3.binding_table_entry_count,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+}
+
+static Status interface_descriptor(struct media_state *media_state)
+{
+ if (media_state->vfe_state.interface.bo)
+ drm_intel_bo_unreference(media_state->vfe_state.interface.bo);
+ media_state->vfe_state.interface.bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "interfaces",
+ DESCRIPTOR_NUM *
+ sizeof(struct brw_interface_descriptor), 0x1000);
+ if (!media_state->vfe_state.interface.bo)
+ return BadAlloc;
+
+ setup_interface(media_state, INTRA_INTERFACE);
+ setup_interface(media_state, NULL_INTERFACE);
+ setup_interface(media_state, FORWARD_INTERFACE);
+ setup_interface(media_state, FIELD_FORWARD_INTERFACE);
+ setup_interface(media_state, BACKWARD_INTERFACE);
+ setup_interface(media_state, FIELD_BACKWARD_INTERFACE);
+ setup_interface(media_state, F_B_INTERFACE);
+ setup_interface(media_state, FIELD_F_B_INTERFACE);
+ setup_interface(media_state, DUAL_PRIME_INTERFACE);
+ return Success;
+}
+
+static Status vfe_state(struct media_state *media_state)
+{
+ struct brw_vfe_state state;
+ memset(&state, 0, sizeof(state));
+
+ /* no scratch space */
+ state.vfe1.vfe_mode = VFE_GENERIC_MODE;
+ state.vfe1.num_urb_entries = 1;
+ /* XXX TODO */
+ /* should carefully caculate those values for performance */
+ state.vfe1.urb_entry_alloc_size = 2;
+ state.vfe1.max_threads = 31;
+ state.vfe2.interface_descriptor_base =
+ media_state->vfe_state.interface.bo->offset >> 4;
+
+ if (media_state->vfe_state.bo)
+ drm_intel_bo_unreference(media_state->vfe_state.bo);
+ media_state->vfe_state.bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "vfe state",
+ sizeof(struct
+ brw_vfe_state),
+ 0x1000);
+ if (!media_state->vfe_state.bo)
+ return BadAlloc;
+
+ drm_intel_bo_subdata(media_state->vfe_state.bo, 0, sizeof(state),
+ &state);
+
+ drm_intel_bo_emit_reloc(media_state->vfe_state.bo,
+ offsetof(struct brw_vfe_state, vfe2),
+ media_state->vfe_state.interface.bo, 0,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+ return Success;
+}
+
+static Status render_surface(Display * display,
+ XvMCContext * context,
+ unsigned int picture_structure,
+ XvMCSurface * target_surface,
+ XvMCSurface * past_surface,
+ XvMCSurface * future_surface,
+ unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray * macroblock_array,
+ XvMCBlockArray * blocks)
+{
+
+ intel_xvmc_context_ptr intel_ctx;
+ int i, j;
+ struct i965_xvmc_context *i965_ctx;
+ XvMCMacroBlock *mb;
+ struct intel_xvmc_surface *priv_target_surface =
+ target_surface->privData;
+ struct intel_xvmc_surface *priv_past_surface =
+ past_surface ? past_surface->privData : 0;
+ struct intel_xvmc_surface *priv_future_surface =
+ future_surface ? future_surface->privData : 0;
+ unsigned short *block_ptr;
+ intel_ctx = context->privData;
+ i965_ctx = context->privData;
+ if (!intel_ctx) {
+ XVMC_ERR("Can't find intel xvmc context\n");
+ return BadValue;
+ }
+
+ if (media_state.indirect_data.bo) {
+ drm_intel_gem_bo_unmap_gtt(media_state.
+ indirect_data.bo);
+
+ drm_intel_bo_unreference(media_state.indirect_data.bo);
+ }
+ media_state.indirect_data.bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "indirect data",
+ 128 * 6 *
+ num_macroblocks, 64);
+ if (!media_state.indirect_data.bo)
+ return BadAlloc;
+ setup_surfaces(&media_state,
+ priv_target_surface->bo,
+ past_surface ? priv_past_surface->bo : NULL,
+ future_surface ? priv_future_surface->bo : NULL,
+ context->width, context->height);
+ setup_blocks(&media_state, 128 * 6 * num_macroblocks);
+ binding_tables(&media_state);
+ interface_descriptor(&media_state);
+ vfe_state(&media_state);
+
+ drm_intel_gem_bo_map_gtt(media_state.indirect_data.bo);
+
+ block_ptr = media_state.indirect_data.bo->virtual;
+ for (i = first_macroblock; i < num_macroblocks + first_macroblock; i++) {
+ unsigned short *mb_block_ptr;
+ mb = &macroblock_array->macro_blocks[i];
+ mb_block_ptr = &blocks->blocks[(mb->index << 6)];
+ if (mb->coded_block_pattern & 0x20) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j, mb_block_ptr + 8 * j,
+ 16);
+ mb_block_ptr += 64;
+ }
+
+ if (mb->coded_block_pattern & 0x10) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j + 8,
+ mb_block_ptr + 8 * j, 16);
+ mb_block_ptr += 64;
+ }
+ block_ptr += 2 * 64;
+ if (mb->coded_block_pattern & 0x08) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j, mb_block_ptr + 8 * j,
+ 16);
+ mb_block_ptr += 64;
+ }
+
+ if (mb->coded_block_pattern & 0x04) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j + 8,
+ mb_block_ptr + 8 * j, 16);
+ mb_block_ptr += 64;
+ }
+
+ block_ptr += 2 * 64;
+ if (mb->coded_block_pattern & 0x2) {
+ memcpy(block_ptr, mb_block_ptr, 128);
+ mb_block_ptr += 64;
+ }
+
+ block_ptr += 64;
+ if (mb->coded_block_pattern & 0x1)
+ memcpy(block_ptr, mb_block_ptr, 128);
+ block_ptr += 64;
+ }
+ {
+ int block_offset = 0;
+ LOCK_HARDWARE(intel_ctx->hw_context);
+ state_base_address();
+ flush();
+ clear_sf_state();
+ pipeline_select(&media_state);
+ urb_layout();
+ media_state_pointers(&media_state);
+ for (i = first_macroblock;
+ i < num_macroblocks + first_macroblock;
+ i++, block_offset += 128 * 6) {
+ mb = &macroblock_array->macro_blocks[i];
+
+ if (mb->macroblock_type & XVMC_MB_TYPE_INTRA) {
+ send_media_object(mb, block_offset,
+ INTRA_INTERFACE);
+ } else {
+ if (((mb->motion_type & 3) ==
+ XVMC_PREDICTION_FRAME)) {
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_FORWARD)) {
+ if (((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD)))
+ send_media_object(mb,
+ block_offset,
+ F_B_INTERFACE);
+ else
+ send_media_object(mb,
+ block_offset,
+ FORWARD_INTERFACE);
+ } else
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD))
+ {
+ send_media_object(mb,
+ block_offset,
+ BACKWARD_INTERFACE);
+ }
+ } else if ((mb->motion_type & 3) ==
+ XVMC_PREDICTION_FIELD) {
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_FORWARD)) {
+ if (((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD)))
+ send_media_object(mb,
+ block_offset,
+ FIELD_F_B_INTERFACE);
+ else
+
+ send_media_object(mb,
+ block_offset,
+ FIELD_FORWARD_INTERFACE);
+ } else
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD))
+ {
+ send_media_object(mb,
+ block_offset,
+ FIELD_BACKWARD_INTERFACE);
+ }
+ } else {
+ send_media_object(mb, block_offset,
+ DUAL_PRIME_INTERFACE);
+ }
+ }
+ }
+ intelFlushBatch(TRUE);
+ UNLOCK_HARDWARE(intel_ctx->hw_context);
+ }
+ return Success;
+}
+
+static Status create_context(Display * display, XvMCContext * context,
+ int priv_count, CARD32 * priv_data)
+{
+ struct intel_xvmc_context *intel_ctx;
+ struct intel_xvmc_hw_context *hw_ctx;
+ hw_ctx = (struct intel_xvmc_hw_context *)priv_data;
+
+ intel_ctx = calloc(1, sizeof(struct intel_xvmc_context));
+ if (!intel_ctx)
+ return BadAlloc;
+ intel_ctx->hw = hw_ctx;
+ intel_ctx->surface_bo_size
+ = SIZE_YUV420(context->width, context->height);
+ context->privData = intel_ctx;
+
+ media_state.is_g4x = hw_ctx->i965.is_g4x;
+ media_state.is_965_q = hw_ctx->i965.is_965_q;
+
+ if (alloc_object(&media_state))
+ return BadAlloc;
+ if (media_kernels(&media_state))
+ return BadAlloc;
+ return Success;
+}
+
+struct _intel_xvmc_driver i965_xvmc_mc_driver = {
+ .type = XVMC_I965_MPEG2_MC,
+ .create_context = create_context,
+ .destroy_context = destroy_context,
+ .render_surface = render_surface,
+};
diff --git a/src/xvmc/intel_batchbuffer.c b/src/xvmc/intel_batchbuffer.c
new file mode 100644
index 0000000..2b5526c
--- /dev/null
+++ b/src/xvmc/intel_batchbuffer.c
@@ -0,0 +1,139 @@
+/**************************************************************************
+ *
+ * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas.
+ * All Rights Reserved.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sub license, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the
+ * next paragraph) shall be included in all copies or substantial portions
+ * of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
+ * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
+ * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ **************************************************************************/
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <errno.h>
+#include <signal.h>
+#include <fcntl.h>
+#include <dirent.h>
+#include <string.h>
+#include <assert.h>
+
+#include <sys/ioctl.h>
+#include <X11/Xlibint.h>
+#include <fourcc.h>
+#include <X11/extensions/Xv.h>
+#include <X11/extensions/Xvlib.h>
+#include <X11/extensions/XvMC.h>
+#include <X11/extensions/XvMClib.h>
+
+#include "intel_xvmc.h"
+#include "intel_batchbuffer.h"
+#include "brw_defines.h"
+#include "brw_structs.h"
+#define MI_BATCH_BUFFER_END (0xA << 23)
+#define BATCH_SIZE 8*1024 /* one bo is allocated each time, so the size can be small */
+
+static void i965_end_batch(void)
+{
+ unsigned int size = xvmc_driver->batch.ptr -
+ xvmc_driver->batch.init_ptr;
+ if ((size & 4) == 0) {
+ *(unsigned int *)xvmc_driver->batch.ptr = 0;
+ xvmc_driver->batch.ptr += 4;
+ }
+ *(unsigned int *)xvmc_driver->batch.ptr = MI_BATCH_BUFFER_END;
+ xvmc_driver->batch.ptr += 4;
+}
+
+Bool intelInitBatchBuffer(void)
+{
+ if ((xvmc_driver->batch.buf =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "batch buffer", BATCH_SIZE, 0x1000)) == NULL) {
+ fprintf(stderr, "unable to alloc batch buffer\n");
+ return False;
+ }
+
+ drm_intel_gem_bo_map_gtt(xvmc_driver->batch.buf);
+
+ xvmc_driver->batch.init_ptr = xvmc_driver->batch.buf->virtual;
+ xvmc_driver->batch.size = BATCH_SIZE;
+ xvmc_driver->batch.space = BATCH_SIZE;
+ xvmc_driver->batch.ptr = xvmc_driver->batch.init_ptr;
+ return True;
+}
+
+void intelFiniBatchBuffer(void)
+{
+ drm_intel_gem_bo_unmap_gtt(xvmc_driver->batch.buf);
+
+ drm_intel_bo_unreference(xvmc_driver->batch.buf);
+}
+
+void intelFlushBatch(Bool refill)
+{
+ i965_end_batch();
+
+ drm_intel_gem_bo_unmap_gtt(xvmc_driver->batch.buf);
+
+ drm_intel_bo_exec(xvmc_driver->batch.buf,
+ xvmc_driver->batch.ptr - xvmc_driver->batch.init_ptr,
+ 0, 0, 0);
+
+ drm_intel_bo_unreference(xvmc_driver->batch.buf);
+ if ((xvmc_driver->batch.buf =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "batch buffer", BATCH_SIZE, 0x1000)) == NULL) {
+ fprintf(stderr, "unable to alloc batch buffer\n");
+ }
+
+ drm_intel_gem_bo_map_gtt(xvmc_driver->batch.buf);
+
+ xvmc_driver->batch.init_ptr = xvmc_driver->batch.buf->virtual;
+ xvmc_driver->batch.size = BATCH_SIZE;
+ xvmc_driver->batch.space = BATCH_SIZE;
+ xvmc_driver->batch.ptr = xvmc_driver->batch.init_ptr;
+}
+
+void intelBatchbufferRequireSpace(int size)
+{
+ assert(xvmc_driver->batch.ptr - xvmc_driver->batch.init_ptr + size <
+ xvmc_driver->batch.size - 8);
+ if (xvmc_driver->batch.ptr - xvmc_driver->batch.init_ptr + size
+ >= xvmc_driver->batch.size - 8)
+ intelFlushBatch(1);
+}
+
+void intelBatchbufferData(const void *data, unsigned bytes, unsigned flags)
+{
+ intelBatchbufferRequireSpace(bytes);
+ memcpy(xvmc_driver->batch.ptr, data, bytes);
+ xvmc_driver->batch.ptr += bytes;
+ xvmc_driver->batch.space -= bytes;
+}
+
+void intel_batch_emit_reloc(dri_bo * bo, uint32_t read_domain,
+ uint32_t write_domain, uint32_t delta,
+ unsigned char *ptr)
+{
+ drm_intel_bo_emit_reloc(xvmc_driver->batch.buf,
+ ptr - xvmc_driver->batch.init_ptr, bo, delta,
+ read_domain, write_domain);
+}
diff --git a/src/xvmc/intel_batchbuffer.h b/src/xvmc/intel_batchbuffer.h
new file mode 100644
index 0000000..888abeb
--- /dev/null
+++ b/src/xvmc/intel_batchbuffer.h
@@ -0,0 +1,58 @@
+#ifndef _INTEL_BATCHBUFFER_H
+#define _INTEL_BATCHBUFFER_H
+
+/* #define VERBOSE 0 */
+#ifndef VERBOSE
+extern int VERBOSE;
+#endif
+
+#define BATCH_LOCALS unsigned char *batch_ptr;
+
+#define BEGIN_BATCH(n) \
+ do { \
+ assert(xvmc_driver->batch.space >= (n) *4); \
+ if (xvmc_driver->batch.space < (n)*4) \
+ intelFlushBatch(TRUE); \
+ batch_ptr = xvmc_driver->batch.ptr; \
+ } while (0)
+
+#define OUT_BATCH(n) \
+ do { \
+ *(unsigned int *)batch_ptr = (n); \
+ batch_ptr += 4; \
+ } while (0)
+
+#define OUT_RELOC(bo,read_domains,write_domains,delta) \
+ do { \
+ *(unsigned int *)batch_ptr = (delta) + bo->offset; \
+ intel_batch_emit_reloc(bo, read_domains, write_domains, delta, batch_ptr); \
+ batch_ptr += 4; \
+ } while (0)
+
+#define OUT_BATCH_SHORT(n) \
+ do { \
+ *(short *)batch_ptr = (n); \
+ batch_ptr += 2; \
+ } while (0)
+
+#define OUT_BATCH_CHAR(n) \
+ do { \
+ *(char *)batch_ptr = (n); \
+ batch_ptr ++; \
+ } while (0)
+#define ADVANCE_BATCH() \
+ do { \
+ xvmc_driver->batch.space -= (batch_ptr - xvmc_driver->batch.ptr);\
+ xvmc_driver->batch.ptr = batch_ptr; \
+ assert(xvmc_driver->batch.space >= 0); \
+ } while(0)
+
+extern void intelFlushBatch(Bool);
+extern void intelBatchbufferData(const void *, unsigned, unsigned);
+extern Bool intelInitBatchBuffer(void);
+extern void intelFiniBatchBuffer(void);
+extern void intelCmdIoctl(char *, unsigned);
+extern void intel_batch_emit_reloc(dri_bo * bo, uint32_t read_domain,
+ uint32_t write_domain, uint32_t delta,
+ unsigned char *);
+#endif /* _INTEL_BATCHBUFFER_H */
diff --git a/src/xvmc/intel_xvmc.c b/src/xvmc/intel_xvmc.c
new file mode 100644
index 0000000..1b96945
--- /dev/null
+++ b/src/xvmc/intel_xvmc.c
@@ -0,0 +1,1075 @@
+/*
+ * Copyright © 2007 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Zhenyu Wang <zhenyu.z.wang@intel.com>
+ *
+ */
+#include "intel_xvmc.h"
+#include <xcb/xcb.h>
+#include <xcb/xcb_aux.h>
+#include <xcb/dri2.h>
+#include <X11/Xlib-xcb.h>
+#include <X11/extensions/dri2tokens.h>
+
+/* global */
+struct _intel_xvmc_driver *xvmc_driver = NULL;
+
+/* Lookup tables to speed common calculations for coded_block_pattern */
+/* each block is ((8*8) * sizeof(short)) */
+unsigned int mb_bytes_420[] = {
+ 0, /* 0 */
+ 128, /* 1 */
+ 128, /* 10 */
+ 256, /* 11 */
+ 128, /* 100 */
+ 256, /* 101 */
+ 256, /* 110 */
+ 384, /* 111 */
+ 128, /* 1000 */
+ 256, /* 1001 */
+ 256, /* 1010 */
+ 384, /* 1011 */
+ 256, /* 1100 */
+ 384, /* 1101 */
+ 384, /* 1110 */
+ 512, /* 1111 */
+ 128, /* 10000 */
+ 256, /* 10001 */
+ 256, /* 10010 */
+ 384, /* 10011 */
+ 256, /* 10100 */
+ 384, /* 10101 */
+ 384, /* 10110 */
+ 512, /* 10111 */
+ 256, /* 11000 */
+ 384, /* 11001 */
+ 384, /* 11010 */
+ 512, /* 11011 */
+ 384, /* 11100 */
+ 512, /* 11101 */
+ 512, /* 11110 */
+ 640, /* 11111 */
+ 128, /* 100000 */
+ 256, /* 100001 */
+ 256, /* 100010 */
+ 384, /* 100011 */
+ 256, /* 100100 */
+ 384, /* 100101 */
+ 384, /* 100110 */
+ 512, /* 100111 */
+ 256, /* 101000 */
+ 384, /* 101001 */
+ 384, /* 101010 */
+ 512, /* 101011 */
+ 384, /* 101100 */
+ 512, /* 101101 */
+ 512, /* 101110 */
+ 640, /* 101111 */
+ 256, /* 110000 */
+ 384, /* 110001 */
+ 384, /* 110010 */
+ 512, /* 110011 */
+ 384, /* 110100 */
+ 512, /* 110101 */
+ 512, /* 110110 */
+ 640, /* 110111 */
+ 384, /* 111000 */
+ 512, /* 111001 */
+ 512, /* 111010 */
+ 640, /* 111011 */
+ 512, /* 111100 */
+ 640, /* 111101 */
+ 640, /* 111110 */
+ 768 /* 111111 */
+};
+
+void LOCK_HARDWARE(drm_context_t ctx)
+{
+ PPTHREAD_MUTEX_LOCK();
+ assert(!xvmc_driver->locked);
+
+ xvmc_driver->locked = 1;
+}
+
+void UNLOCK_HARDWARE(drm_context_t ctx)
+{
+ xvmc_driver->locked = 0;
+
+ PPTHREAD_MUTEX_UNLOCK();
+}
+
+static int
+dri2_connect(Display *display)
+{
+ xcb_dri2_query_version_cookie_t query_version_cookie;
+ xcb_dri2_query_version_reply_t *query_version_reply;
+ xcb_dri2_connect_cookie_t connect_cookie;
+ xcb_dri2_connect_reply_t *connect_reply;
+ xcb_dri2_authenticate_cookie_t auth_cookie;
+ xcb_dri2_authenticate_reply_t *auth_reply;
+ xcb_screen_t *root;
+ xcb_connection_t *c = XGetXCBConnection(display);
+ drm_magic_t magic;
+ const xcb_query_extension_reply_t *dri2_reply;
+ char *device_name;
+ int len;
+
+ root = xcb_aux_get_screen(c, DefaultScreen(display));
+
+ dri2_reply = xcb_get_extension_data(c, &xcb_dri2_id);
+
+ if (!dri2_reply) {
+ XVMC_ERR("DRI2 required");
+ return BadValue;
+ }
+
+ /* Query the extension and make our first use of it at the same time. */
+ query_version_cookie = xcb_dri2_query_version(c, 1, 0);
+ connect_cookie = xcb_dri2_connect(c, root->root, DRI2DriverDRI);
+
+ query_version_reply =
+ xcb_dri2_query_version_reply(c, query_version_cookie, NULL);
+ connect_reply = xcb_dri2_connect_reply(c, connect_cookie, NULL);
+
+ if (!query_version_reply) {
+ XVMC_ERR("DRI2 required");
+ return BadValue;
+ }
+ free(query_version_reply);
+
+ len = xcb_dri2_connect_device_name_length(connect_reply);
+ device_name = malloc(len + 1);
+ if (!device_name) {
+ XVMC_ERR("malloc failure");
+ return BadAlloc;
+ }
+ strncpy(device_name, xcb_dri2_connect_device_name(connect_reply), len);
+ device_name[len] = 0;
+ xvmc_driver->fd = open(device_name, O_RDWR);
+ free(device_name);
+ free(connect_reply);
+ if (xvmc_driver->fd < 0) {
+ XVMC_ERR("Failed to open drm device: %s\n", strerror(errno));
+ return BadValue;
+ }
+
+ if (drmGetMagic(xvmc_driver->fd, &magic)) {
+ XVMC_ERR("Failed to get magic\n");
+ return BadValue;
+ }
+
+ auth_cookie = xcb_dri2_authenticate(c, root->root, magic);
+ auth_reply = xcb_dri2_authenticate_reply(c, auth_cookie, NULL);
+ if (!auth_reply) {
+ XVMC_ERR("Failed to authenticate magic %d\n", magic);
+ return BadValue;
+ }
+ free(auth_reply);
+
+ return Success;
+}
+
+/*
+* Function: XvMCCreateContext
+* Description: Create a XvMC context for the given surface parameters.
+* Arguments:
+* display - Connection to the X server.
+* port - XvPortID to use as avertised by the X connection.
+* surface_type_id - Unique identifier for the Surface type.
+* width - Width of the surfaces.
+* height - Height of the surfaces.
+* flags - one or more of the following
+* XVMC_DIRECT - A direct rendered context is requested.
+*
+* Notes: surface_type_id and width/height parameters must match those
+* returned by XvMCListSurfaceTypes.
+* Returns: Status
+*/
+_X_EXPORT Status XvMCCreateContext(Display * display, XvPortID port,
+ int surface_type_id, int width, int height,
+ int flags, XvMCContext * context)
+{
+ Status ret;
+ CARD32 *priv_data = NULL;
+ struct intel_xvmc_hw_context *comm;
+ int major, minor;
+ int error_base;
+ int event_base;
+ int priv_count;
+
+ /* Verify Obvious things first */
+ if (!display || !context)
+ return BadValue;
+
+ if (!(flags & XVMC_DIRECT)) {
+ XVMC_ERR("Indirect Rendering not supported! Using Direct.");
+ return BadValue;
+ }
+
+ /*
+ Width, Height, and flags are checked against surface_type_id
+ and port for validity inside the X server, no need to check
+ here.
+ */
+ context->surface_type_id = surface_type_id;
+ context->width = (unsigned short)((width + 15) & ~15);
+ context->height = (unsigned short)((height + 15) & ~15);
+ context->flags = flags;
+ context->port = port;
+
+ if (!XvMCQueryExtension(display, &event_base, &error_base)) {
+ XVMC_ERR("XvMCExtension is not available!");
+ return BadValue;
+ }
+
+ ret = XvMCQueryVersion(display, &major, &minor);
+ if (ret) {
+ XVMC_ERR
+ ("XvMCQueryVersion Failed, unable to determine protocol version.");
+ return ret;
+ }
+
+ /* XXX: major and minor could be checked in future for XvMC
+ * protocol capability (i.e H.264/AVC decode available)
+ */
+
+ /*
+ Pass control to the X server to create a drm_context_t for us and
+ validate the with/height and flags.
+ */
+ if ((ret =
+ _xvmc_create_context(display, context, &priv_count, &priv_data))) {
+ XVMC_ERR("Unable to create XvMC Context.");
+ return ret;
+ }
+
+ comm = (struct intel_xvmc_hw_context *)priv_data;
+
+ if (xvmc_driver == NULL || xvmc_driver->type != comm->type) {
+ switch (comm->type) {
+ case XVMC_I915_MPEG2_MC:
+ xvmc_driver = &i915_xvmc_mc_driver;
+ break;
+ case XVMC_I965_MPEG2_MC:
+ xvmc_driver = &i965_xvmc_mc_driver;
+ break;
+ case XVMC_I965_MPEG2_VLD:
+ xvmc_driver = &xvmc_vld_driver;
+ break;
+ case XVMC_I945_MPEG2_VLD:
+ default:
+ XVMC_ERR("unimplemented xvmc type %d", comm->type);
+ XFree(priv_data);
+ priv_data = NULL;
+ return BadValue;
+ }
+ }
+
+ if (xvmc_driver == NULL || xvmc_driver->type != comm->type) {
+ XVMC_ERR("fail to load xvmc driver for type %d\n", comm->type);
+ return BadValue;
+ }
+
+ XVMC_INFO("decoder type is %s", intel_xvmc_decoder_string(comm->type));
+
+ /* check DRI2 */
+ ret = Success;
+ xvmc_driver->fd = -1;
+
+ ret = dri2_connect(display);
+ if (ret != Success) {
+ XFree(priv_data);
+ context->privData = NULL;
+ if (xvmc_driver->fd >= 0)
+ close(xvmc_driver->fd);
+ xvmc_driver = NULL;
+ return ret;
+ }
+
+ if ((xvmc_driver->bufmgr =
+ intel_bufmgr_gem_init(xvmc_driver->fd, 1024 * 64)) == NULL) {
+ XVMC_ERR("Can't init bufmgr\n");
+ return BadAlloc;
+ }
+ drm_intel_bufmgr_gem_enable_reuse(xvmc_driver->bufmgr);
+
+ /* call driver hook.
+ * driver hook should free priv_data after return if success.*/
+ ret =
+ (xvmc_driver->create_context) (display, context, priv_count,
+ priv_data);
+ if (ret) {
+ XVMC_ERR("driver create context failed\n");
+ XFree(priv_data);
+ context->privData = NULL;
+ xvmc_driver = NULL;
+ return ret;
+ }
+
+ pthread_mutex_init(&xvmc_driver->ctxmutex, NULL);
+ intelInitBatchBuffer();
+ intel_xvmc_dump_open();
+
+ return Success;
+}
+
+/*
+ * Function: XvMCDestroyContext
+ * Description: Destorys the specified context.
+ *
+ * Arguments:
+ * display - Specifies the connection to the server.
+ * context - The context to be destroyed.
+ *
+ */
+_X_EXPORT Status XvMCDestroyContext(Display * display, XvMCContext * context)
+{
+ Status ret;
+ int screen;
+
+ if (!display || !context)
+ return XvMCBadContext;
+ screen = DefaultScreen(display);
+ ret = (xvmc_driver->destroy_context) (display, context);
+ if (ret) {
+ XVMC_ERR("destroy context fail\n");
+ return ret;
+ }
+
+ intelFiniBatchBuffer();
+
+ dri_bufmgr_destroy(xvmc_driver->bufmgr);
+
+ ret = _xvmc_destroy_context(display, context);
+ if (ret != Success) {
+ XVMC_ERR("_xvmc_destroy_context fail\n");
+ return ret;
+ }
+
+ if (xvmc_driver->num_ctx == 0) {
+ pthread_mutex_destroy(&xvmc_driver->ctxmutex);
+
+ if (xvmc_driver->fd >= 0)
+ close(xvmc_driver->fd);
+
+ xvmc_driver->fd = -1;
+ intel_xvmc_dump_close();
+ }
+ return Success;
+}
+
+/*
+ * Function: XvMCCreateSurface
+ */
+_X_EXPORT Status XvMCCreateSurface(Display * display, XvMCContext * context,
+ XvMCSurface * surface)
+{
+ Status ret;
+ int priv_count;
+ CARD32 *priv_data;
+ intel_xvmc_surface_ptr intel_surf = NULL;
+ struct intel_xvmc_context *intel_ctx;
+
+ if (!display || !context)
+ return XvMCBadContext;
+
+ if (!surface)
+ return XvMCBadSurface;
+
+ intel_ctx = context->privData;
+
+ if ((ret = _xvmc_create_surface(display, context, surface,
+ &priv_count, &priv_data))) {
+ XVMC_ERR("Unable to create XvMCSurface.");
+ return ret;
+ }
+
+ XFree(priv_data);
+
+ surface->privData = calloc(1, sizeof(struct intel_xvmc_surface));
+
+ if (!(intel_surf = surface->privData)) {
+ PPTHREAD_MUTEX_UNLOCK();
+ return BadAlloc;
+ }
+
+ intel_surf->bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "surface",
+ intel_ctx->surface_bo_size,
+ GTT_PAGE_SIZE);
+ if (!intel_surf->bo) {
+ free(intel_surf);
+ return BadAlloc;
+ }
+
+ drm_intel_bo_disable_reuse(intel_surf->bo);
+
+ intel_surf = surface->privData;
+ intel_surf->context = context;
+
+ intel_surf->image = XvCreateImage(display, context->port,
+ FOURCC_XVMC,
+ (char *) &intel_surf->gem_handle,
+ surface->width, surface->height);
+ if (!intel_surf->image) {
+ XVMC_ERR("Can't create XvImage for surface\n");
+ free(intel_surf);
+ _xvmc_destroy_surface(display, surface);
+ return BadAlloc;
+ }
+
+ return Success;
+}
+
+/*
+ * Function: XvMCDestroySurface
+ */
+_X_EXPORT Status XvMCDestroySurface(Display * display, XvMCSurface * surface)
+{
+ intel_xvmc_surface_ptr intel_surf;
+
+ if (!display || !surface)
+ return XvMCBadSurface;
+
+ intel_surf = surface->privData;
+ if (!intel_surf)
+ return XvMCBadSurface;
+
+ XFree(intel_surf->image);
+ if (intel_surf->gc_init)
+ XFreeGC(display, intel_surf->gc);
+
+ drm_intel_bo_unreference(intel_surf->bo);
+
+ free(intel_surf);
+
+ _xvmc_destroy_surface(display, surface);
+
+ return Success;
+}
+
+/*
+ * Function: XvMCCreateBlocks
+ */
+_X_EXPORT Status XvMCCreateBlocks(Display * display, XvMCContext * context,
+ unsigned int num_blocks,
+ XvMCBlockArray * block)
+{
+ if (!display || !context || !num_blocks || !block)
+ return BadValue;
+
+ memset(block, 0, sizeof(XvMCBlockArray));
+
+ if (!
+ (block->blocks =
+ (short *)malloc((num_blocks << 6) * sizeof(short))))
+ return BadAlloc;
+
+ block->num_blocks = num_blocks;
+ block->context_id = context->context_id;
+ block->privData = NULL;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCDestroyBlocks
+ */
+_X_EXPORT Status XvMCDestroyBlocks(Display * display, XvMCBlockArray * block)
+{
+ if (!display || !block)
+ return BadValue;
+
+ if (block->blocks)
+ free(block->blocks);
+
+ block->context_id = 0;
+ block->num_blocks = 0;
+ block->blocks = NULL;
+ block->privData = NULL;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCCreateMacroBlocks
+ */
+_X_EXPORT Status XvMCCreateMacroBlocks(Display * display, XvMCContext * context,
+ unsigned int num_blocks,
+ XvMCMacroBlockArray * blocks)
+{
+ if (!display || !context || !blocks || !num_blocks)
+ return BadValue;
+
+ memset(blocks, 0, sizeof(XvMCMacroBlockArray));
+ blocks->macro_blocks =
+ (XvMCMacroBlock *) malloc(num_blocks * sizeof(XvMCMacroBlock));
+
+ if (!blocks->macro_blocks)
+ return BadAlloc;
+
+ blocks->num_blocks = num_blocks;
+ blocks->context_id = context->context_id;
+ blocks->privData = NULL;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCDestroyMacroBlocks
+ */
+_X_EXPORT Status XvMCDestroyMacroBlocks(Display * display,
+ XvMCMacroBlockArray * block)
+{
+ if (!display || !block)
+ return BadValue;
+ if (block->macro_blocks)
+ free(block->macro_blocks);
+
+ block->context_id = 0;
+ block->num_blocks = 0;
+ block->macro_blocks = NULL;
+ block->privData = NULL;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCRenderSurface
+ *
+ * Description: This function does the actual HWMC. Given a list of
+ * macroblock structures it dispatched the hardware commands to execute
+ * them.
+ */
+_X_EXPORT Status XvMCRenderSurface(Display * display, XvMCContext * context,
+ unsigned int picture_structure,
+ XvMCSurface * target_surface,
+ XvMCSurface * past_surface,
+ XvMCSurface * future_surface,
+ unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray * macroblock_array,
+ XvMCBlockArray * blocks)
+{
+ Status ret;
+
+ if (!display || !context) {
+ XVMC_ERR("Invalid Display, Context or Target!");
+ return XvMCBadContext;
+ }
+ if (!target_surface)
+ return XvMCBadSurface;
+
+ intel_xvmc_dump_render(context, picture_structure, target_surface,
+ past_surface, future_surface, flags,
+ num_macroblocks, first_macroblock,
+ macroblock_array, blocks);
+
+ ret =
+ (xvmc_driver->render_surface) (display, context, picture_structure,
+ target_surface, past_surface,
+ future_surface, flags,
+ num_macroblocks, first_macroblock,
+ macroblock_array, blocks);
+
+ if (ret) {
+ XVMC_ERR("render surface fail\n");
+ return ret;
+ }
+ return Success;
+}
+
+/*
+ * Function: XvMCPutSurface
+ *
+ * Description:
+ * Arguments:
+ * display: Connection to X server
+ * surface: Surface to be displayed
+ * draw: X Drawable on which to display the surface
+ * srcx: X coordinate of the top left corner of the region to be
+ * displayed within the surface.
+ * srcy: Y coordinate of the top left corner of the region to be
+ * displayed within the surface.
+ * srcw: Width of the region to be displayed.
+ * srch: Height of the region to be displayed.
+ * destx: X cordinate of the top left corner of the destination region
+ * in the drawable coordinates.
+ * desty: Y cordinate of the top left corner of the destination region
+ * in the drawable coordinates.
+ * destw: Width of the destination region.
+ * desth: Height of the destination region.
+ * flags: One or more of the following.
+ * XVMC_TOP_FIELD - Display only the Top field of the surface.
+ * XVMC_BOTTOM_FIELD - Display only the Bottom Field of the surface.
+ * XVMC_FRAME_PICTURE - Display both fields or frame.
+ */
+_X_EXPORT Status XvMCPutSurface(Display * display, XvMCSurface * surface,
+ Drawable draw, short srcx, short srcy,
+ unsigned short srcw, unsigned short srch,
+ short destx, short desty,
+ unsigned short destw, unsigned short desth,
+ int flags)
+{
+ Status ret = Success;
+ XvMCContext *context;
+ intel_xvmc_surface_ptr intel_surf;
+
+ if (!display || !surface)
+ return XvMCBadSurface;
+
+ intel_surf = surface->privData;
+ context = intel_surf->context;
+ if (!context || !intel_surf)
+ return XvMCBadSurface;
+
+ if (intel_surf->gc_init == FALSE) {
+ intel_surf->gc = XCreateGC(display, draw, 0, NULL);
+ intel_surf->gc_init = TRUE;
+ } else if (draw != intel_surf->last_draw) {
+ XFreeGC(display, intel_surf->gc);
+ intel_surf->gc = XCreateGC(display, draw, 0, NULL);
+ }
+ intel_surf->last_draw = draw;
+
+ drm_intel_bo_flink(intel_surf->bo, &intel_surf->gem_handle);
+
+ ret = XvPutImage(display, context->port, draw, intel_surf->gc,
+ intel_surf->image, srcx, srcy, srcw, srch, destx,
+ desty, destw, desth);
+ return ret;
+}
+
+/*
+ * Function: XvMCSyncSurface
+ * Arguments:
+ * display - Connection to the X server
+ * surface - The surface to synchronize
+ */
+_X_EXPORT Status XvMCSyncSurface(Display * display, XvMCSurface * surface)
+{
+ if (!display || !surface)
+ return XvMCBadSurface;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCFlushSurface
+ * Description:
+ * This function commits pending rendering requests to ensure that they
+ * wll be completed in a finite amount of time.
+ * Arguments:
+ * display - Connection to X server
+ * surface - Surface to flush
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCFlushSurface(Display * display, XvMCSurface * surface)
+{
+ if (!display || !surface)
+ return XvMCBadSurface;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCGetSurfaceStatus
+ * Description:
+ * Arguments:
+ * display: connection to X server
+ * surface: The surface to query
+ * stat: One of the Following
+ * XVMC_RENDERING - The last XvMCRenderSurface command has not
+ * completed.
+ * XVMC_DISPLAYING - The surface is currently being displayed or a
+ * display is pending.
+ */
+_X_EXPORT Status XvMCGetSurfaceStatus(Display * display, XvMCSurface * surface,
+ int *stat)
+{
+ if (!display || !surface || !stat)
+ return XvMCBadSurface;
+
+ *stat = 0;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCHideSurface
+ * Description: Stops the display of a surface.
+ * Arguments:
+ * display - Connection to the X server.
+ * surface - surface to be hidden.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCHideSurface(Display * display, XvMCSurface * surface)
+{
+ if (!display || !surface)
+ return XvMCBadSurface;
+
+ return Success;
+}
+
+/*
+ * Function: XvMCCreateSubpicture
+ * Description: This creates a subpicture by filling out the XvMCSubpicture
+ * structure passed to it and returning Success.
+ * Arguments:
+ * display - Connection to the X server.
+ * context - The context to create the subpicture for.
+ * subpicture - Pre-allocated XvMCSubpicture structure to be filled in.
+ * width - of subpicture
+ * height - of subpicture
+ * xvimage_id - The id describing the XvImage format.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCCreateSubpicture(Display * display, XvMCContext * context,
+ XvMCSubpicture * subpicture,
+ unsigned short width,
+ unsigned short height, int xvimage_id)
+{
+ XVMC_ERR("XvMCCreateSubpicture not implemented!\n");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCClearSubpicture
+ * Description: Clear the area of the given subpicture to "color".
+ * structure passed to it and returning Success.
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - Subpicture to clear.
+ * x, y, width, height - rectangle in the subpicture to clear.
+ * color - The data to file the rectangle with.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCClearSubpicture(Display * display,
+ XvMCSubpicture * subpicture, short x,
+ short y, unsigned short width,
+ unsigned short height, unsigned int color)
+{
+ XVMC_ERR("XvMCClearSubpicture not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCCompositeSubpicture
+ * Description: Composite the XvImae on the subpicture. This composit uses
+ * non-premultiplied alpha. Destination alpha is utilized
+ * except for with indexed subpictures. Indexed subpictures
+ * use a simple "replace".
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - Subpicture to clear.
+ * image - the XvImage to be used as the source of the composite.
+ * srcx, srcy, width, height - The rectangle from the image to be used.
+ * dstx, dsty - location in the subpicture to composite the source.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCCompositeSubpicture(Display * display,
+ XvMCSubpicture * subpicture,
+ XvImage * image, short srcx,
+ short srcy, unsigned short width,
+ unsigned short height, short dstx,
+ short dsty)
+{
+ XVMC_ERR("XvMCCompositeSubpicture not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCDestroySubpicture
+ * Description: Destroys the specified subpicture.
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - Subpicture to be destroyed.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCDestroySubpicture(Display * display,
+ XvMCSubpicture * subpicture)
+{
+ XVMC_ERR("XvMCDestroySubpicture not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCSetSubpicturePalette
+ * Description: Set the subpictures palette
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - Subpiture to set palette for.
+ * palette - A pointer to an array holding the palette data. The array
+ * is num_palette_entries * entry_bytes in size.
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCSetSubpicturePalette(Display * display,
+ XvMCSubpicture * subpicture,
+ unsigned char *palette)
+{
+ XVMC_ERR("XvMCSetSubpicturePalette not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCBlendSubpicture
+ * Description:
+ * The behavior of this function is different depending on whether
+ * or not the XVMC_BACKEND_SUBPICTURE flag is set in the XvMCSurfaceInfo.
+ * i915 only support frontend behavior.
+ *
+ * XVMC_BACKEND_SUBPICTURE not set ("frontend" behavior):
+ *
+ * XvMCBlendSubpicture is a no-op in this case.
+ *
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - The subpicture to be blended into the video.
+ * target_surface - The surface to be displayed with the blended subpic.
+ * source_surface - Source surface prior to blending.
+ * subx, suby, subw, subh - The rectangle from the subpicture to use.
+ * surfx, surfy, surfw, surfh - The rectangle in the surface to blend
+ * blend the subpicture rectangle into. Scaling can ocure if
+ * XVMC_SUBPICTURE_INDEPENDENT_SCALING is set.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCBlendSubpicture(Display * display,
+ XvMCSurface * target_surface,
+ XvMCSubpicture * subpicture, short subx,
+ short suby, unsigned short subw,
+ unsigned short subh, short surfx,
+ short surfy, unsigned short surfw,
+ unsigned short surfh)
+{
+ XVMC_ERR("XvMCBlendSubpicture not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCBlendSubpicture2
+ * Description:
+ * The behavior of this function is different depending on whether
+ * or not the XVMC_BACKEND_SUBPICTURE flag is set in the XvMCSurfaceInfo.
+ * i915 only supports frontend blending.
+ *
+ * XVMC_BACKEND_SUBPICTURE not set ("frontend" behavior):
+ *
+ * XvMCBlendSubpicture2 blends the source_surface and subpicture and
+ * puts it in the target_surface. This does not effect the status of
+ * the source surface but will cause the target_surface to query
+ * XVMC_RENDERING until the blend is completed.
+ *
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - The subpicture to be blended into the video.
+ * target_surface - The surface to be displayed with the blended subpic.
+ * source_surface - Source surface prior to blending.
+ * subx, suby, subw, subh - The rectangle from the subpicture to use.
+ * surfx, surfy, surfw, surfh - The rectangle in the surface to blend
+ * blend the subpicture rectangle into. Scaling can ocure if
+ * XVMC_SUBPICTURE_INDEPENDENT_SCALING is set.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCBlendSubpicture2(Display * display,
+ XvMCSurface * source_surface,
+ XvMCSurface * target_surface,
+ XvMCSubpicture * subpicture,
+ short subx, short suby,
+ unsigned short subw, unsigned short subh,
+ short surfx, short surfy,
+ unsigned short surfw,
+ unsigned short surfh)
+{
+ XVMC_ERR("XvMCBlendSubpicture2 not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCSyncSubpicture
+ * Description: This function blocks until all composite/clear requests on
+ * the subpicture have been complete.
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - The subpicture to synchronize
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCSyncSubpicture(Display * display,
+ XvMCSubpicture * subpicture)
+{
+ XVMC_ERR("XvMCSyncSubpicture not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCFlushSubpicture
+ * Description: This function commits pending composite/clear requests to
+ * ensure that they will be completed in a finite amount of
+ * time.
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - The subpicture whos compsiting should be flushed
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCFlushSubpicture(Display * display,
+ XvMCSubpicture * subpicture)
+{
+ XVMC_ERR("XvMCFlushSubpicture not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCGetSubpictureStatus
+ * Description: This function gets the current status of a subpicture
+ *
+ * Arguments:
+ * display - Connection to the X server.
+ * subpicture - The subpicture whos status is being queried
+ * stat - The status of the subpicture. It can be any of the following
+ * OR'd together:
+ * XVMC_RENDERING - Last composite or clear request not completed
+ * XVMC_DISPLAYING - Suppicture currently being displayed.
+ *
+ * Returns: Status
+ */
+_X_EXPORT Status XvMCGetSubpictureStatus(Display * display,
+ XvMCSubpicture * subpicture, int *stat)
+{
+ XVMC_ERR("XvMCGetSubpictureStatus not implemented!");
+ return BadValue;
+}
+
+/*
+ * Function: XvMCQueryAttributes
+ * Description: An array of XvAttributes of size "number" is returned by
+ * this function. If there are no attributes, NULL is returned and number
+ * is set to 0. The array may be freed with xfree().
+ *
+ * Arguments:
+ * display - Connection to the X server.
+ * context - The context whos attributes we are querying.
+ * number - The returned number of recognized atoms
+ *
+ * Returns:
+ * An array of XvAttributes.
+ */
+_X_EXPORT XvAttribute *XvMCQueryAttributes(Display * display,
+ XvMCContext * context, int *number)
+{
+ /* now XvMC has no extra attribs than Xv */
+ *number = 0;
+ return NULL;
+}
+
+/*
+ * Function: XvMCSetAttribute
+ * Description: This function sets a context-specific attribute.
+ *
+ * Arguments:
+ * display - Connection to the X server.
+ * context - The context whos attributes we are querying.
+ * attribute - The X atom of the attribute to be changed.
+ * value - The new value for the attribute.
+ *
+ * Returns:
+ * Status
+ */
+_X_EXPORT Status XvMCSetAttribute(Display * display, XvMCContext * context,
+ Atom attribute, int value)
+{
+ return Success;
+}
+
+/*
+ * Function: XvMCGetAttribute
+ * Description: This function queries a context-specific attribute and
+ * returns the value.
+ *
+ * Arguments:
+ * display - Connection to the X server.
+ * context - The context whos attributes we are querying.
+ * attribute - The X atom of the attribute to be queried
+ * value - The returned attribute value
+ *
+ * Returns:
+ * Status
+ */
+_X_EXPORT Status XvMCGetAttribute(Display * display, XvMCContext * context,
+ Atom attribute, int *value)
+{
+ return Success;
+}
+
+_X_EXPORT Status XvMCBeginSurface(Display * display, XvMCContext * context,
+ XvMCSurface * target,
+ XvMCSurface * past,
+ XvMCSurface * future,
+ const XvMCMpegControl * control)
+{
+ if (xvmc_driver->begin_surface(display, context,
+ target, past, future, control)) {
+ XVMC_ERR("BeginSurface fail\n");
+ return BadValue;
+ }
+ return Success;
+}
+
+_X_EXPORT Status XvMCLoadQMatrix(Display * display, XvMCContext * context,
+ const XvMCQMatrix * qmx)
+{
+ if (xvmc_driver->load_qmatrix(display, context, qmx)) {
+ XVMC_ERR("LoadQMatrix fail\n");
+ return BadValue;
+ }
+ return Success;
+}
+
+_X_EXPORT Status XvMCPutSlice(Display * display, XvMCContext * context,
+ char *slice, int nbytes)
+{
+ if (xvmc_driver->put_slice(display, context, (unsigned char *) slice, nbytes)) {
+ XVMC_ERR("PutSlice fail\n");
+ return BadValue;
+ }
+ return Success;
+}
+
+_X_EXPORT Status XvMCPutSlice2(Display * display, XvMCContext * context,
+ char *slice, int nbytes, int slice_code)
+{
+ if (xvmc_driver->put_slice2
+ (display, context, (unsigned char *) slice, nbytes, slice_code)) {
+ XVMC_ERR("PutSlice2 fail\n");
+ return BadValue;
+ }
+ return Success;
+}
diff --git a/src/xvmc/intel_xvmc.h b/src/xvmc/intel_xvmc.h
new file mode 100644
index 0000000..7fdfd06
--- /dev/null
+++ b/src/xvmc/intel_xvmc.h
@@ -0,0 +1,263 @@
+/*
+ * Copyright © 2007 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Zhenyu Wang <zhenyu.z.wang@intel.com>
+ *
+ */
+#ifndef INTEL_XVMC_H
+#define INTEL_XVMC_H
+
+#include <pthread.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <errno.h>
+#include <signal.h>
+#include <fcntl.h>
+#include <dirent.h>
+#include <string.h>
+#include <assert.h>
+#include <signal.h>
+#include <stdint.h>
+
+#include <xf86drm.h>
+#include "intel_hwmc.h"
+#include <X11/X.h>
+#include <X11/Xlibint.h>
+#include <X11/Xutil.h>
+#include <fourcc.h>
+#include <X11/extensions/Xv.h>
+#include <X11/extensions/Xvlib.h>
+#include <X11/extensions/XvMC.h>
+#include <X11/extensions/XvMClib.h>
+#include <X11/extensions/vldXvMC.h>
+#include <drm_sarea.h>
+#include "i915_drm.h"
+#include "intel_bufmgr.h"
+
+#include "intel_batchbuffer.h"
+
+#define GTT_PAGE_SIZE 4*1024
+
+#define XVMC_ERR(s, arg...) \
+ do { \
+ fprintf(stderr, "[intel_xvmc] err: " s "\n", ##arg); \
+ } while (0)
+
+#define XVMC_INFO(s, arg...) \
+ do { \
+ fprintf(stderr, "[intel_xvmc] info: " s "\n", ##arg); \
+ } while (0)
+
+/* Subpicture fourcc */
+#define FOURCC_IA44 0x34344149
+
+/*
+ Definitions for temporary wire protocol hooks to be replaced
+ when a HW independent libXvMC is created.
+*/
+extern Status _xvmc_create_context(Display * dpy, XvMCContext * context,
+ int *priv_count, CARD32 ** priv_data);
+
+extern Status _xvmc_destroy_context(Display * dpy, XvMCContext * context);
+
+extern Status _xvmc_create_surface(Display * dpy, XvMCContext * context,
+ XvMCSurface * surface, int *priv_count,
+ CARD32 ** priv_data);
+
+extern Status _xvmc_destroy_surface(Display * dpy, XvMCSurface * surface);
+
+extern Status _xvmc_create_subpicture(Display * dpy, XvMCContext * context,
+ XvMCSubpicture * subpicture,
+ int *priv_count, uint ** priv_data);
+
+extern Status _xvmc_destroy_subpicture(Display * dpy,
+ XvMCSubpicture * subpicture);
+
+struct intel_xvmc_context {
+ struct intel_xvmc_hw_context *hw;
+ uint32_t surface_bo_size;
+ drm_context_t hw_context; /* context id to kernel drm */
+};
+typedef struct intel_xvmc_context *intel_xvmc_context_ptr;
+
+struct intel_xvmc_surface {
+ XvMCContext *context;
+ XvImage *image;
+ GC gc;
+ Bool gc_init;
+ Drawable last_draw;
+ drm_intel_bo *bo;
+ uint32_t gem_handle;
+};
+typedef struct intel_xvmc_surface *intel_xvmc_surface_ptr;
+
+typedef struct _intel_xvmc_drm_map {
+ drm_handle_t handle;
+ unsigned long offset;
+ unsigned long size;
+ unsigned long bus_addr;
+ drmAddress map;
+} intel_xvmc_drm_map_t, *intel_xvmc_drm_map_ptr;
+
+typedef struct _intel_xvmc_driver {
+ int type; /* hw xvmc type - i830_hwmc.h */
+ int screen; /* current screen num */
+
+ int fd; /* drm file handler */
+
+ dri_bufmgr *bufmgr;
+
+ struct {
+ unsigned int init_offset;
+ unsigned int size;
+ unsigned int space;
+ unsigned char *ptr;
+ unsigned char *init_ptr;
+ dri_bo *buf;
+ } batch;
+
+ struct {
+ void *ptr;
+ unsigned int size;
+ unsigned int offset;
+ unsigned int active_buf;
+ unsigned int irq_emitted;
+ } alloc;
+ intel_xvmc_drm_map_t batchbuffer;
+
+ sigset_t sa_mask;
+ pthread_mutex_t ctxmutex;
+ int locked;
+
+ int num_ctx;
+ intel_xvmc_context_ptr ctx_list;
+ int num_surf;
+ struct intel_xvmc_surface * surf_list;
+
+ void *private;
+
+ /* driver specific xvmc callbacks */
+ Status(*create_context) (Display * display, XvMCContext * context,
+ int priv_count, CARD32 * priv_data);
+
+ Status(*destroy_context) (Display * display, XvMCContext * context);
+
+ Status(*render_surface) (Display * display, XvMCContext * context,
+ unsigned int picture_structure,
+ XvMCSurface * target_surface,
+ XvMCSurface * past_surface,
+ XvMCSurface * future_surface,
+ unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray * macroblock_array,
+ XvMCBlockArray * blocks);
+
+ Status(*begin_surface) (Display * display, XvMCContext * context,
+ XvMCSurface * target_surface,
+ XvMCSurface * past_surface,
+ XvMCSurface * future_surface,
+ const XvMCMpegControl * control);
+ Status(*load_qmatrix) (Display * display, XvMCContext * context,
+ const XvMCQMatrix * qmx);
+ Status(*put_slice) (Display * display, XvMCContext * context,
+ unsigned char *slice, int bytes);
+ Status(*put_slice2) (Display * display, XvMCContext * context,
+ unsigned char *slice, int bytes, int slice_code);
+
+} intel_xvmc_driver_t, *intel_xvmc_driver_ptr;
+
+extern struct _intel_xvmc_driver i915_xvmc_mc_driver;
+extern struct _intel_xvmc_driver i965_xvmc_mc_driver;
+extern struct _intel_xvmc_driver xvmc_vld_driver;
+extern struct _intel_xvmc_driver *xvmc_driver;
+
+#define SET_BLOCKED_SIGSET() do { \
+ sigset_t bl_mask; \
+ sigfillset(&bl_mask); \
+ sigdelset(&bl_mask, SIGFPE); \
+ sigdelset(&bl_mask, SIGILL); \
+ sigdelset(&bl_mask, SIGSEGV); \
+ sigdelset(&bl_mask, SIGBUS); \
+ sigdelset(&bl_mask, SIGKILL); \
+ pthread_sigmask(SIG_SETMASK, &bl_mask, &xvmc_driver->sa_mask); \
+ } while (0)
+
+#define RESTORE_BLOCKED_SIGSET() do { \
+ pthread_sigmask(SIG_SETMASK, &xvmc_driver->sa_mask, NULL); \
+ } while (0)
+
+#define PPTHREAD_MUTEX_LOCK() do { \
+ SET_BLOCKED_SIGSET(); \
+ pthread_mutex_lock(&xvmc_driver->ctxmutex); \
+ } while (0)
+
+#define PPTHREAD_MUTEX_UNLOCK() do { \
+ pthread_mutex_unlock(&xvmc_driver->ctxmutex); \
+ RESTORE_BLOCKED_SIGSET(); \
+ } while (0)
+
+extern void LOCK_HARDWARE(drm_context_t);
+extern void UNLOCK_HARDWARE(drm_context_t);
+
+static inline const char *intel_xvmc_decoder_string(int flag)
+{
+ switch (flag) {
+ case XVMC_I915_MPEG2_MC:
+ return "i915/945 MPEG2 MC decoder";
+ case XVMC_I965_MPEG2_MC:
+ return "i965 MPEG2 MC decoder";
+ case XVMC_I945_MPEG2_VLD:
+ return "i945 MPEG2 VLD decoder";
+ case XVMC_I965_MPEG2_VLD:
+ return "i965 MPEG2 VLD decoder";
+ default:
+ return "Unknown decoder";
+ }
+}
+
+extern unsigned int mb_bytes_420[64];
+
+/* dump function */
+extern void intel_xvmc_dump_open(void);
+extern void intel_xvmc_dump_close(void);
+extern void intel_xvmc_dump_render(XvMCContext * context,
+ unsigned int picture_structure,
+ XvMCSurface * target_surface,
+ XvMCSurface * past_surface,
+ XvMCSurface * future_surface,
+ unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray * macroblock_array,
+ XvMCBlockArray * blocks);
+
+#define VFE_GENERIC_MODE 0x0
+#define VFE_VLD_MODE 0x1
+#define VFE_IS_MODE 0x2
+#define VFE_AVC_MC_MODE 0x4
+#define VFE_AVC_IT_MODE 0x7
+#define VFE_VC1_IT_MODE 0x7
+
+#endif
diff --git a/src/xvmc/intel_xvmc_dump.c b/src/xvmc/intel_xvmc_dump.c
new file mode 100644
index 0000000..d22d311
--- /dev/null
+++ b/src/xvmc/intel_xvmc_dump.c
@@ -0,0 +1,158 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Authors:
+ * Zhenyu Wang <zhenyu.z.wang@intel.com>
+ *
+ */
+#include "intel_xvmc.h"
+
+#define DUMPFILE "./intel_xvmc_dump"
+
+static int xvmc_dump = 0;
+static FILE *fp = NULL;
+
+void intel_xvmc_dump_open(void)
+{
+ char *d = NULL;
+
+ if (xvmc_dump)
+ return;
+
+ if ((d = getenv("INTEL_XVMC_DUMP")))
+ xvmc_dump = 1;
+
+ if (xvmc_dump) {
+ fp = fopen(DUMPFILE, "a");
+ if (!fp)
+ xvmc_dump = 0;
+ }
+}
+
+void intel_xvmc_dump_close(void)
+{
+ if (xvmc_dump) {
+ fclose(fp);
+ xvmc_dump = 0;
+ }
+}
+
+void intel_xvmc_dump_render(XvMCContext * context,
+ unsigned int picture_structure,
+ XvMCSurface * target, XvMCSurface * past,
+ XvMCSurface * future, unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray * macroblock_array,
+ XvMCBlockArray * blocks)
+{
+ int i;
+ XvMCMacroBlock *mb;
+
+ if (!xvmc_dump)
+ return;
+
+ fprintf(fp, "========== new surface rendering ==========\n");
+ fprintf(fp,
+ "Context (id:%d) (surface_type_id:%d) (width:%d) (height:%d)\n",
+ (int)context->context_id, context->surface_type_id,
+ context->width, context->height);
+
+ if (picture_structure == XVMC_FRAME_PICTURE)
+ fprintf(fp, "picture structure: frame picture\n");
+ else if (picture_structure == XVMC_TOP_FIELD)
+ fprintf(fp, "picture structure: top field picture (%s)\n",
+ (flags == XVMC_SECOND_FIELD) ? "second" : "first");
+ else if (picture_structure == XVMC_BOTTOM_FIELD)
+ fprintf(fp, "picture structure: bottom field picture (%s)\n",
+ (flags == XVMC_SECOND_FIELD) ? "second" : "first");
+
+ if (!past && !future)
+ fprintf(fp, "picture type: I\n");
+ else if (past && !future)
+ fprintf(fp, "picture type: P\n");
+ else if (past && future)
+ fprintf(fp, "picture type: B\n");
+ else
+ fprintf(fp, "picture type: Bad!\n");
+
+ fprintf(fp, "target picture: id (%d) width (%d) height (%d)\n",
+ (int)target->surface_id, target->width, target->height);
+ if (past)
+ fprintf(fp, "past picture: id (%d) width (%d) height (%d)\n",
+ (int)past->surface_id, past->width, past->height);
+ if (future)
+ fprintf(fp, "future picture: id (%d) width (%d) height (%d)\n",
+ (int)future->surface_id, future->width, future->height);
+
+ fprintf(fp, "num macroblocks: %d, first macroblocks %d\n",
+ num_macroblocks, first_macroblock);
+
+ for (i = first_macroblock; i < (first_macroblock + num_macroblocks);
+ i++) {
+ mb = &macroblock_array->macro_blocks[i];
+
+ fprintf(fp, "- MB(%d): ", i);
+ fprintf(fp, "x (%d) y (%d) ", mb->x, mb->y);
+ fprintf(fp, "macroblock type (");
+ if (mb->macroblock_type & XVMC_MB_TYPE_MOTION_FORWARD)
+ fprintf(fp, "motion_forward ");
+ if (mb->macroblock_type & XVMC_MB_TYPE_MOTION_BACKWARD)
+ fprintf(fp, "motion_backward ");
+ if (mb->macroblock_type & XVMC_MB_TYPE_PATTERN)
+ fprintf(fp, "pattern ");
+ if (mb->macroblock_type & XVMC_MB_TYPE_INTRA)
+ fprintf(fp, "intra ");
+ fprintf(fp, ") ");
+ fprintf(fp, "mc type ");
+ if (picture_structure == XVMC_FRAME_PICTURE) {
+ if (mb->motion_type & XVMC_PREDICTION_FIELD)
+ fprintf(fp, "(field) ");
+ else if (mb->motion_type & XVMC_PREDICTION_FRAME)
+ fprintf(fp, "(frame) ");
+ else if (mb->motion_type & XVMC_PREDICTION_DUAL_PRIME)
+ fprintf(fp, "(dual-prime) ");
+ else
+ fprintf(fp, "(unknown %d) ", mb->motion_type);
+ } else { /* field */
+ if (mb->motion_type & XVMC_PREDICTION_FIELD)
+ fprintf(fp, "(field) ");
+ else if (mb->motion_type & XVMC_PREDICTION_DUAL_PRIME)
+ fprintf(fp, "(dual-prime) ");
+ else if (mb->motion_type & XVMC_PREDICTION_16x8)
+ fprintf(fp, "(16x8) ");
+ else
+ fprintf(fp, "(unknown %d) ", mb->motion_type);
+ }
+
+ if (mb->dct_type == XVMC_DCT_TYPE_FRAME)
+ fprintf(fp, "dct type (frame) ");
+ else if (mb->dct_type == XVMC_DCT_TYPE_FIELD)
+ fprintf(fp, "dct type (field) ");
+
+ fprintf(fp, "coded_block_pattern (0x%x)\n",
+ mb->coded_block_pattern);
+
+ /* XXX mv dump */
+ }
+
+}
diff --git a/src/xvmc/shader/Makefile.am b/src/xvmc/shader/Makefile.am
new file mode 100644
index 0000000..2a58cfd
--- /dev/null
+++ b/src/xvmc/shader/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = mc vld
diff --git a/src/xvmc/shader/Makefile.in b/src/xvmc/shader/Makefile.in
new file mode 100644
index 0000000..baec344
--- /dev/null
+++ b/src/xvmc/shader/Makefile.in
@@ -0,0 +1,597 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/xvmc/shader
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SUBDIRS = mc vld
+all: all-recursive
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/xvmc/shader/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/xvmc/shader/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+# This directory's subdirectories are mostly independent; you can cd
+# into them and run `make' without going through this Makefile.
+# To change the values of `make' variables: instead of editing Makefiles,
+# (1) if the variable is set in `config.status', edit `config.status'
+# (which will cause the Makefiles to be regenerated when you run `make');
+# (2) otherwise, pass the desired values on the `make' command line.
+$(RECURSIVE_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ target=`echo $@ | sed s/-recursive//`; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ dot_seen=yes; \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done; \
+ if test "$$dot_seen" = "no"; then \
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+ fi; test -z "$$fail"
+
+$(RECURSIVE_CLEAN_TARGETS):
+ @fail= failcom='exit 1'; \
+ for f in x $$MAKEFLAGS; do \
+ case $$f in \
+ *=* | --[!k]*);; \
+ *k*) failcom='fail=yes';; \
+ esac; \
+ done; \
+ dot_seen=no; \
+ case "$@" in \
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
+ *) list='$(SUBDIRS)' ;; \
+ esac; \
+ rev=''; for subdir in $$list; do \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
+ done; \
+ rev="$$rev ."; \
+ target=`echo $@ | sed s/-recursive//`; \
+ for subdir in $$rev; do \
+ echo "Making $$target in $$subdir"; \
+ if test "$$subdir" = "."; then \
+ local_target="$$target-am"; \
+ else \
+ local_target="$$target"; \
+ fi; \
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+ || eval $$failcom; \
+ done && test -z "$$fail"
+tags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
+ done
+ctags-recursive:
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ done
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
+ include_option=--etags-include; \
+ empty_fix=.; \
+ else \
+ include_option=--include; \
+ empty_fix=; \
+ fi; \
+ list='$(SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
+ fi; \
+ done; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
+ || exit 1; \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
+ $(MAKE) $(AM_MAKEFLAGS) \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
+ distdir) \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-recursive
+all-am: Makefile
+installdirs: installdirs-recursive
+installdirs-am:
+install: install-recursive
+install-exec: install-exec-recursive
+install-data: install-data-recursive
+uninstall: uninstall-recursive
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-recursive
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-recursive
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-recursive
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic distclean-tags
+
+dvi: dvi-recursive
+
+dvi-am:
+
+html: html-recursive
+
+html-am:
+
+info: info-recursive
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-recursive
+
+install-html-am:
+
+install-info: install-info-recursive
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-recursive
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-recursive
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-recursive
+
+pdf-am:
+
+ps: ps-recursive
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic clean-libtool \
+ ctags ctags-recursive distclean distclean-generic \
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs installdirs-am maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
+ uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/xvmc/shader/mc/Makefile.am b/src/xvmc/shader/mc/Makefile.am
new file mode 100644
index 0000000..891849b
--- /dev/null
+++ b/src/xvmc/shader/mc/Makefile.am
@@ -0,0 +1,121 @@
+
+INTEL_G4A = dual_prime_igd.g4a \
+ field_backward_igd.g4a \
+ field_f_b_igd.g4a \
+ field_forward_igd.g4a \
+ frame_backward_igd.g4a \
+ frame_f_b_igd.g4a \
+ frame_forward_igd.g4a \
+ dual_prime.g4a \
+ field_backward.g4a \
+ field_f_b.g4a \
+ field_forward.g4a \
+ frame_backward.g4a \
+ frame_f_b.g4a \
+ frame_forward.g4a \
+ lib_igd.g4a \
+ ipicture.g4a \
+ ipicture_igd.g4a \
+ null.g4a
+
+INTEL_G4I = addidct.g4i \
+ addidct_igd.g4i \
+ block_clear.g4i \
+ read_frame_x0y0_y.g4i \
+ read_frame_x0y1_y.g4i \
+ read_frame_x1y0_y.g4i \
+ read_frame_x1y1_y.g4i \
+ read_frame_x0y0_uv.g4i \
+ read_frame_x0y1_uv.g4i \
+ read_frame_x1y0_uv.g4i \
+ read_frame_x1y1_uv.g4i \
+ read_frame_x0y0_y_igd.g4i \
+ read_frame_x0y1_y_igd.g4i \
+ read_frame_x1y0_y_igd.g4i \
+ read_frame_x1y1_y_igd.g4i \
+ read_frame_x0y0_uv_igd.g4i \
+ read_frame_x0y1_uv_igd.g4i \
+ read_frame_x1y0_uv_igd.g4i \
+ read_frame_x1y1_uv_igd.g4i \
+ motion_frame_y.g4i \
+ motion_frame_uv.g4i \
+ read_field_x0y0_y.g4i \
+ read_field_x0y1_y.g4i \
+ read_field_x1y0_y.g4i \
+ read_field_x1y1_y.g4i \
+ read_field_x0y0_uv.g4i \
+ read_field_x0y1_uv.g4i \
+ read_field_x1y0_uv.g4i \
+ read_field_x1y1_uv.g4i \
+ read_field_x0y0_y_igd.g4i \
+ read_field_x0y1_y_igd.g4i \
+ read_field_x1y0_y_igd.g4i \
+ read_field_x1y1_y_igd.g4i \
+ read_field_x0y0_uv_igd.g4i \
+ read_field_x0y1_uv_igd.g4i \
+ read_field_x1y0_uv_igd.g4i \
+ read_field_x1y1_uv_igd.g4i \
+ motion_field_y.g4i \
+ motion_field_uv.g4i \
+ motion_field_uv_igd.g4i \
+ motion_field_y_igd.g4i \
+ motion_frame_uv_igd.g4i \
+ motion_frame_y_igd.g4i
+
+INTEL_G4B = dual_prime.g4b \
+ field_backward.g4b \
+ field_f_b.g4b \
+ field_forward.g4b \
+ frame_backward.g4b \
+ frame_f_b.g4b \
+ frame_forward.g4b \
+ dual_prime_igd.g4b \
+ field_backward_igd.g4b \
+ field_f_b_igd.g4b \
+ field_forward_igd.g4b \
+ frame_backward_igd.g4b \
+ frame_f_b_igd.g4b \
+ frame_forward_igd.g4b \
+ ipicture.g4b \
+ ipicture_igd.g4b \
+ lib_igd.g4b \
+ null.g4b
+
+INTEL_G4B_GEN5 = dual_prime.g4b.gen5 \
+ field_backward.g4b.gen5 \
+ field_f_b.g4b.gen5 \
+ field_forward.g4b.gen5 \
+ frame_backward.g4b.gen5 \
+ frame_f_b.g4b.gen5 \
+ frame_forward.g4b.gen5 \
+ dual_prime_igd.g4b.gen5 \
+ field_backward_igd.g4b.gen5 \
+ field_f_b_igd.g4b.gen5 \
+ field_forward_igd.g4b.gen5 \
+ frame_backward_igd.g4b.gen5 \
+ frame_f_b_igd.g4b.gen5 \
+ frame_forward_igd.g4b.gen5 \
+ ipicture.g4b.gen5 \
+ ipicture_igd.g4b.gen5 \
+ lib_igd.g4b.gen5 \
+ null.g4b.gen5
+
+EXTRA_DIST = $(INTEL_G4A) \
+ $(INTEL_G4I) \
+ $(INTEL_G4B) \
+ $(INTEL_G4B_GEN5)
+
+if HAVE_GEN4ASM
+
+SUFFIXES = .g4a .g4b
+.g4a.g4b:
+ m4 $*.g4a > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
+
+$(INTEL_G4B): $(INTEL_G4I)
+
+BUILT_SOURCES= $(INTEL_G4B)
+
+clean-local:
+ -rm -f $(INTEL_G4B)
+ -rm -f $(INTEL_G4B_GEN5)
+endif
diff --git a/src/xvmc/shader/mc/Makefile.in b/src/xvmc/shader/mc/Makefile.in
new file mode 100644
index 0000000..b63d4f6
--- /dev/null
+++ b/src/xvmc/shader/mc/Makefile.in
@@ -0,0 +1,517 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/xvmc/shader/mc
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+INTEL_G4A = dual_prime_igd.g4a \
+ field_backward_igd.g4a \
+ field_f_b_igd.g4a \
+ field_forward_igd.g4a \
+ frame_backward_igd.g4a \
+ frame_f_b_igd.g4a \
+ frame_forward_igd.g4a \
+ dual_prime.g4a \
+ field_backward.g4a \
+ field_f_b.g4a \
+ field_forward.g4a \
+ frame_backward.g4a \
+ frame_f_b.g4a \
+ frame_forward.g4a \
+ lib_igd.g4a \
+ ipicture.g4a \
+ ipicture_igd.g4a \
+ null.g4a
+
+INTEL_G4I = addidct.g4i \
+ addidct_igd.g4i \
+ block_clear.g4i \
+ read_frame_x0y0_y.g4i \
+ read_frame_x0y1_y.g4i \
+ read_frame_x1y0_y.g4i \
+ read_frame_x1y1_y.g4i \
+ read_frame_x0y0_uv.g4i \
+ read_frame_x0y1_uv.g4i \
+ read_frame_x1y0_uv.g4i \
+ read_frame_x1y1_uv.g4i \
+ read_frame_x0y0_y_igd.g4i \
+ read_frame_x0y1_y_igd.g4i \
+ read_frame_x1y0_y_igd.g4i \
+ read_frame_x1y1_y_igd.g4i \
+ read_frame_x0y0_uv_igd.g4i \
+ read_frame_x0y1_uv_igd.g4i \
+ read_frame_x1y0_uv_igd.g4i \
+ read_frame_x1y1_uv_igd.g4i \
+ motion_frame_y.g4i \
+ motion_frame_uv.g4i \
+ read_field_x0y0_y.g4i \
+ read_field_x0y1_y.g4i \
+ read_field_x1y0_y.g4i \
+ read_field_x1y1_y.g4i \
+ read_field_x0y0_uv.g4i \
+ read_field_x0y1_uv.g4i \
+ read_field_x1y0_uv.g4i \
+ read_field_x1y1_uv.g4i \
+ read_field_x0y0_y_igd.g4i \
+ read_field_x0y1_y_igd.g4i \
+ read_field_x1y0_y_igd.g4i \
+ read_field_x1y1_y_igd.g4i \
+ read_field_x0y0_uv_igd.g4i \
+ read_field_x0y1_uv_igd.g4i \
+ read_field_x1y0_uv_igd.g4i \
+ read_field_x1y1_uv_igd.g4i \
+ motion_field_y.g4i \
+ motion_field_uv.g4i \
+ motion_field_uv_igd.g4i \
+ motion_field_y_igd.g4i \
+ motion_frame_uv_igd.g4i \
+ motion_frame_y_igd.g4i
+
+INTEL_G4B = dual_prime.g4b \
+ field_backward.g4b \
+ field_f_b.g4b \
+ field_forward.g4b \
+ frame_backward.g4b \
+ frame_f_b.g4b \
+ frame_forward.g4b \
+ dual_prime_igd.g4b \
+ field_backward_igd.g4b \
+ field_f_b_igd.g4b \
+ field_forward_igd.g4b \
+ frame_backward_igd.g4b \
+ frame_f_b_igd.g4b \
+ frame_forward_igd.g4b \
+ ipicture.g4b \
+ ipicture_igd.g4b \
+ lib_igd.g4b \
+ null.g4b
+
+INTEL_G4B_GEN5 = dual_prime.g4b.gen5 \
+ field_backward.g4b.gen5 \
+ field_f_b.g4b.gen5 \
+ field_forward.g4b.gen5 \
+ frame_backward.g4b.gen5 \
+ frame_f_b.g4b.gen5 \
+ frame_forward.g4b.gen5 \
+ dual_prime_igd.g4b.gen5 \
+ field_backward_igd.g4b.gen5 \
+ field_f_b_igd.g4b.gen5 \
+ field_forward_igd.g4b.gen5 \
+ frame_backward_igd.g4b.gen5 \
+ frame_f_b_igd.g4b.gen5 \
+ frame_forward_igd.g4b.gen5 \
+ ipicture.g4b.gen5 \
+ ipicture_igd.g4b.gen5 \
+ lib_igd.g4b.gen5 \
+ null.g4b.gen5
+
+EXTRA_DIST = $(INTEL_G4A) \
+ $(INTEL_G4I) \
+ $(INTEL_G4B) \
+ $(INTEL_G4B_GEN5)
+
+@HAVE_GEN4ASM_TRUE@SUFFIXES = .g4a .g4b
+@HAVE_GEN4ASM_TRUE@BUILT_SOURCES = $(INTEL_G4B)
+all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .g4a .g4b
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/xvmc/shader/mc/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/xvmc/shader/mc/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) check-am
+all-am: Makefile
+installdirs:
+install: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+@HAVE_GEN4ASM_FALSE@clean-local:
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: all check install install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ clean-local distclean distclean-generic distclean-libtool \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ uninstall uninstall-am
+
+@HAVE_GEN4ASM_TRUE@.g4a.g4b:
+@HAVE_GEN4ASM_TRUE@ m4 $*.g4a > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
+
+@HAVE_GEN4ASM_TRUE@$(INTEL_G4B): $(INTEL_G4I)
+
+@HAVE_GEN4ASM_TRUE@clean-local:
+@HAVE_GEN4ASM_TRUE@ -rm -f $(INTEL_G4B)
+@HAVE_GEN4ASM_TRUE@ -rm -f $(INTEL_G4B_GEN5)
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/xvmc/shader/mc/addidct.g4i b/src/xvmc/shader/mc/addidct.g4i
new file mode 100644
index 0000000..bd3d5fe
--- /dev/null
+++ b/src/xvmc/shader/mc/addidct.g4i
@@ -0,0 +1,152 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (8) g1.0<1>UD g76.0<8,8,1>UD{align1};
+//mov (8) g2.0<1>UD g77.0<8,8,1>UD{align1};
+
+mov (16) g44.1<2>UB 0W {align1};
+mov (16) g45.1<2>UB 0W {align1};
+mov (16) g46.1<2>UB 0W {align1};
+mov (16) g47.1<2>UB 0W {align1};
+mov (16) g48.1<2>UB 0W {align1};
+mov (16) g49.1<2>UB 0W {align1};
+mov (16) g50.1<2>UB 0W {align1};
+mov (16) g51.1<2>UB 0W {align1};
+
+and.nz (1) null g1.30<1,1,1>UB 1UW {align1}; //dct_type
+(f0) jmpi field_dct;
+//jmpi field_dct;
+add (16) g28.0<1>W g3.0<16,16,1>W g28.0<16,16,2>UB {align1};
+add (16) g29.0<1>W g4.0<16,16,1>W g29.0<16,16,2>UB {align1};
+add (16) g30.0<1>W g5.0<16,16,1>W g30.0<16,16,2>UB {align1};
+add (16) g31.0<1>W g6.0<16,16,1>W g31.0<16,16,2>UB {align1};
+add (16) g32.0<1>W g7.0<16,16,1>W g32.0<16,16,2>UB {align1};
+add (16) g33.0<1>W g8.0<16,16,1>W g33.0<16,16,2>UB {align1};
+add (16) g34.0<1>W g9.0<16,16,1>W g34.0<16,16,2>UB {align1};
+add (16) g35.0<1>W g10.0<16,16,1>W g35.0<16,16,2>UB {align1};
+add (16) g36.0<1>W g11.0<16,16,1>W g36.0<16,16,2>UB {align1};
+add (16) g37.0<1>W g12.0<16,16,1>W g37.0<16,16,2>UB {align1};
+add (16) g38.0<1>W g13.0<16,16,1>W g38.0<16,16,2>UB {align1};
+add (16) g39.0<1>W g14.0<16,16,1>W g39.0<16,16,2>UB {align1};
+add (16) g40.0<1>W g15.0<16,16,1>W g40.0<16,16,2>UB {align1};
+add (16) g41.0<1>W g16.0<16,16,1>W g41.0<16,16,2>UB {align1};
+add (16) g42.0<1>W g17.0<16,16,1>W g42.0<16,16,2>UB {align1};
+add (16) g43.0<1>W g18.0<16,16,1>W g43.0<16,16,2>UB {align1};
+jmpi write_back;
+
+field_dct:
+add (16) g28.0<1>W g3.0<16,16,1>W g28.0<16,16,2>UB {align1};
+add (16) g29.0<1>W g11.0<16,16,1>W g29.0<16,16,2>UB {align1};
+add (16) g30.0<1>W g4.0<16,16,1>W g30.0<16,16,2>UB {align1};
+add (16) g31.0<1>W g12.0<16,16,1>W g31.0<16,16,2>UB {align1};
+add (16) g32.0<1>W g5.0<16,16,1>W g32.0<16,16,2>UB {align1};
+add (16) g33.0<1>W g13.0<16,16,1>W g33.0<16,16,2>UB {align1};
+add (16) g34.0<1>W g6.0<16,16,1>W g34.0<16,16,2>UB {align1};
+add (16) g35.0<1>W g14.0<16,16,1>W g35.0<16,16,2>UB {align1};
+add (16) g36.0<1>W g7.0<16,16,1>W g36.0<16,16,2>UB {align1};
+add (16) g37.0<1>W g15.0<16,16,1>W g37.0<16,16,2>UB {align1};
+add (16) g38.0<1>W g8.0<16,16,1>W g38.0<16,16,2>UB {align1};
+add (16) g39.0<1>W g16.0<16,16,1>W g39.0<16,16,2>UB {align1};
+add (16) g40.0<1>W g9.0<16,16,1>W g40.0<16,16,2>UB {align1};
+add (16) g41.0<1>W g17.0<16,16,1>W g41.0<16,16,2>UB {align1};
+add (16) g42.0<1>W g10.0<16,16,1>W g42.0<16,16,2>UB {align1};
+add (16) g43.0<1>W g18.0<16,16,1>W g43.0<16,16,2>UB {align1};
+
+write_back:
+mov (1) g1.8<1>UD 0x00F000FUD {align1};
+mov.sat (16) g28.0<2>UB g28.0<16,16,1>W {align1};
+mov.sat (16) g29.0<2>UB g29.0<16,16,1>W {align1};
+mov.sat (16) g30.0<2>UB g30.0<16,16,1>W {align1};
+mov.sat (16) g31.0<2>UB g31.0<16,16,1>W {align1};
+mov.sat (16) g32.0<2>UB g32.0<16,16,1>W {align1};
+mov.sat (16) g33.0<2>UB g33.0<16,16,1>W {align1};
+mov.sat (16) g34.0<2>UB g34.0<16,16,1>W {align1};
+mov.sat (16) g35.0<2>UB g35.0<16,16,1>W {align1};
+mov.sat (16) g36.0<2>UB g36.0<16,16,1>W {align1};
+mov.sat (16) g37.0<2>UB g37.0<16,16,1>W {align1};
+mov.sat (16) g38.0<2>UB g38.0<16,16,1>W {align1};
+mov.sat (16) g39.0<2>UB g39.0<16,16,1>W {align1};
+mov.sat (16) g40.0<2>UB g40.0<16,16,1>W {align1};
+mov.sat (16) g41.0<2>UB g41.0<16,16,1>W {align1};
+mov.sat (16) g42.0<2>UB g42.0<16,16,1>W {align1};
+mov.sat (16) g43.0<2>UB g43.0<16,16,1>W {align1};
+
+mov (16) m1.0<1>UB g28.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g29.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g30.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g31.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g32.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g33.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g34.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g35.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g36.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g37.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g38.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g39.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g40.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g41.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g42.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g43.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(0,0,2,0) mlen 9 rlen 0 {align1};
+
+//U
+mov (1) g1.8<1>UD 0x0070007UD { align1 };
+shr (2) g1.0<1>UD g1.0<2,2,1>UD 1D {align1};
+add (16) g44.0<1>UW g19.0<16,16,1>W g44.0<16,16,1>UW {align1};
+add (16) g45.0<1>UW g20.0<16,16,1>W g45.0<16,16,1>UW {align1};
+add (16) g46.0<1>UW g21.0<16,16,1>W g46.0<16,16,1>UW {align1};
+add (16) g47.0<1>UW g22.0<16,16,1>W g47.0<16,16,1>UW {align1};
+mov.sat (16) g44.0<2>UB g44.0<16,16,1>UW {align1};
+mov.sat (16) g45.0<2>UB g45.0<16,16,1>UW {align1};
+mov.sat (16) g46.0<2>UB g46.0<16,16,1>UW {align1};
+mov.sat (16) g47.0<2>UB g47.0<16,16,1>UW {align1};
+
+mov (16) m1.0<1>UB g44.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g45.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g46.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g47.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+//V
+add (16) g48.0<1>UW g23.0<16,16,1>W g48.0<16,16,1>UW {align1};
+add (16) g49.0<1>UW g24.0<16,16,1>W g49.0<16,16,1>UW {align1};
+add (16) g50.0<1>UW g25.0<16,16,1>W g50.0<16,16,1>UW {align1};
+add (16) g51.0<1>UW g26.0<16,16,1>W g51.0<16,16,1>UW {align1};
+mov.sat (16) g48.0<2>UB g48.0<16,16,1>UW {align1};
+mov.sat (16) g49.0<2>UB g49.0<16,16,1>UW {align1};
+mov.sat (16) g50.0<2>UB g50.0<16,16,1>UW {align1};
+mov.sat (16) g51.0<2>UB g51.0<16,16,1>UW {align1};
+
+mov (16) m1.0<1>UB g48.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g49.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g50.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g51.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/addidct_igd.g4i b/src/xvmc/shader/mc/addidct_igd.g4i
new file mode 100644
index 0000000..56fa2af
--- /dev/null
+++ b/src/xvmc/shader/mc/addidct_igd.g4i
@@ -0,0 +1,117 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g84~g107:IDCT data */
+//mov (2) g31.0<1>UD g82.12<2,2,1>UW {align1}; //restore x and y
+mov (2) g31.0<1>UD g82.0<2,2,1>UD {align1}; //restore x and y
+
+and.nz (1) null g82.30<1,1,1>UB 0x1UW {align1}; //dct_type
+(f0) jmpi field_dct;
+
+add.sat (32) g58.0<2>UB g84.0<16,16,1>W g58.0<16,16,2>UB {align1 compr};
+add.sat (32) g60.0<2>UB g86.0<16,16,1>W g60.0<16,16,2>UB {align1 compr};
+add.sat (32) g62.0<2>UB g88.0<16,16,1>W g62.0<16,16,2>UB {align1 compr};
+add.sat (32) g64.0<2>UB g90.0<16,16,1>W g64.0<16,16,2>UB {align1 compr};
+add.sat (32) g66.0<2>UB g92.0<16,16,1>W g66.0<16,16,2>UB {align1 compr};
+add.sat (32) g68.0<2>UB g94.0<16,16,1>W g68.0<16,16,2>UB {align1 compr};
+add.sat (32) g70.0<2>UB g96.0<16,16,1>W g70.0<16,16,2>UB {align1 compr};
+add.sat (32) g72.0<2>UB g98.0<16,16,1>W g72.0<16,16,2>UB {align1 compr};
+
+add.sat (32) g74.0<2>UB g100.0<16,16,1>W g74.0<16,16,2>UB {align1 compr};
+add.sat (32) g76.0<2>UB g102.0<16,16,1>W g76.0<16,16,2>UB {align1 compr};
+add.sat (32) g78.0<2>UB g104.0<16,16,1>W g78.0<16,16,2>UB {align1 compr};
+add.sat (32) g80.0<2>UB g106.0<16,16,1>W g80.0<16,16,2>UB {align1 compr};
+jmpi write_back;
+
+field_dct:
+add.sat (16) g58.0<2>UB g84.0<16,16,1>W g58.0<16,16,2>UB {align1};
+add.sat (16) g59.0<2>UB g92.0<16,16,1>W g59.0<16,16,2>UB {align1};
+add.sat (16) g60.0<2>UB g85.0<16,16,1>W g60.0<16,16,2>UB {align1};
+add.sat (16) g61.0<2>UB g93.0<16,16,1>W g61.0<16,16,2>UB {align1};
+add.sat (16) g62.0<2>UB g86.0<16,16,1>W g62.0<16,16,2>UB {align1};
+add.sat (16) g63.0<2>UB g94.0<16,16,1>W g63.0<16,16,2>UB {align1};
+add.sat (16) g64.0<2>UB g87.0<16,16,1>W g64.0<16,16,2>UB {align1};
+add.sat (16) g65.0<2>UB g95.0<16,16,1>W g65.0<16,16,2>UB {align1};
+add.sat (16) g66.0<2>UB g88.0<16,16,1>W g66.0<16,16,2>UB {align1};
+add.sat (16) g67.0<2>UB g96.0<16,16,1>W g67.0<16,16,2>UB {align1};
+add.sat (16) g68.0<2>UB g89.0<16,16,1>W g68.0<16,16,2>UB {align1};
+add.sat (16) g69.0<2>UB g97.0<16,16,1>W g69.0<16,16,2>UB {align1};
+add.sat (16) g70.0<2>UB g90.0<16,16,1>W g70.0<16,16,2>UB {align1};
+add.sat (16) g71.0<2>UB g98.0<16,16,1>W g71.0<16,16,2>UB {align1};
+add.sat (16) g72.0<2>UB g91.0<16,16,1>W g72.0<16,16,2>UB {align1};
+add.sat (16) g73.0<2>UB g99.0<16,16,1>W g73.0<16,16,2>UB {align1};
+/*
+add.sat (16) g74.0<2>UB g100.0<16,16,1>W g74.0<16,16,2>UB {align1};
+add.sat (16) g75.0<2>UB g101.0<16,16,1>W g75.0<16,16,2>UB {align1};
+add.sat (16) g76.0<2>UB g102.0<16,16,1>W g76.0<16,16,2>UB {align1};
+add.sat (16) g77.0<2>UB g103.0<16,16,1>W g77.0<16,16,2>UB {align1};
+add.sat (16) g78.0<2>UB g104.0<16,16,1>W g78.0<16,16,2>UB {align1};
+add.sat (16) g79.0<2>UB g105.0<16,16,1>W g79.0<16,16,2>UB {align1};
+add.sat (16) g80.0<2>UB g106.0<16,16,1>W g80.0<16,16,2>UB {align1};
+add.sat (16) g81.0<2>UB g107.0<16,16,1>W g81.0<16,16,2>UB {align1};
+*/
+add (16) g100.0<1>W g100.0<16,16,1>W g74.0<16,16,2>UB {align1};
+add (16) g101.0<1>W g101.0<16,16,1>W g75.0<16,16,2>UB {align1};
+add (16) g102.0<1>W g102.0<16,16,1>W g76.0<16,16,2>UB {align1};
+add (16) g103.0<1>W g103.0<16,16,1>W g77.0<16,16,2>UB {align1};
+add (16) g104.0<1>W g104.0<16,16,1>W g78.0<16,16,2>UB {align1};
+add (16) g105.0<1>W g105.0<16,16,1>W g79.0<16,16,2>UB {align1};
+add (16) g106.0<1>W g106.0<16,16,1>W g80.0<16,16,2>UB {align1};
+add (16) g107.0<1>W g107.0<16,16,1>W g81.0<16,16,2>UB {align1};
+
+mov.sat (16) g74.0<2>UB g100.0<16,16,1>W {align1};
+mov.sat (16) g75.0<2>UB g101.0<16,16,1>W {align1};
+mov.sat (16) g76.0<2>UB g102.0<16,16,1>W {align1};
+mov.sat (16) g77.0<2>UB g103.0<16,16,1>W {align1};
+mov.sat (16) g78.0<2>UB g104.0<16,16,1>W {align1};
+mov.sat (16) g79.0<2>UB g105.0<16,16,1>W {align1};
+mov.sat (16) g80.0<2>UB g106.0<16,16,1>W {align1};
+mov.sat (16) g81.0<2>UB g107.0<16,16,1>W {align1};
+
+
+write_back:
+mov (1) g31.8<1>UD 0x00F000FUD {align1};
+
+mov (16) m1.0<1>UB g58.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g59.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g60.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g61.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g62.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g63.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g64.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g65.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g66.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g67.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g68.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g69.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g70.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g71.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g72.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g73.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(0,0,2,0) mlen 9 rlen 0 {align1};
+
+//U
+mov (1) g31.8<1>UD 0x0070007UD { align1 };
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1D {align1};
+
+mov (16) m1.0<1>UB g74.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g75.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g76.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g77.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+//V
+mov (16) m1.0<1>UB g78.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g79.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g80.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g81.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/block_clear.g4i b/src/xvmc/shader/mc/block_clear.g4i
new file mode 100644
index 0000000..ce12f3b
--- /dev/null
+++ b/src/xvmc/shader/mc/block_clear.g4i
@@ -0,0 +1,140 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ *
+ */
+
+and.nz (1) null g2.0<1,1,1>UD 0x1UD{align1};
+(f0) jmpi direct_idct;
+add (1) g2.8<1>UD g76.8<1,1,1>UD 0UD{align1};
+send (16) 0 g3.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g4.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g5.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g6.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g7.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g8.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g9.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g10.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g11.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g12.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g13.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g14.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g15.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g16.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g17.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g18.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g19.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g20.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g21.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g22.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g23<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g24.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g25.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g26.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+direct_idct:
+
+and.nz (1) null g76.12<1,1,1>UW 0x20UW {align1};
+(f0) jmpi next_block;
+mov (8) g3.0<1>UW 0UW {align1};
+mov (8) g4.0<1>UW 0UW {align1};
+mov (8) g5.0<1>UW 0UW {align1};
+mov (8) g6.0<1>UW 0UW {align1};
+mov (8) g7.0<1>UW 0UW {align1};
+mov (8) g8.0<1>UW 0UW {align1};
+mov (8) g9.0<1>UW 0UW {align1};
+mov (8) g10.0<1>UW 0UW {align1};
+next_block:
+
+and.nz (1) null g1.12<1,1,1>UW 0x10UW {align1};
+(f0) jmpi next_field;
+mov (8) g3.16<1>UW 0UW {align1};
+mov (8) g4.16<1>UW 0UW {align1};
+mov (8) g5.16<1>UW 0UW {align1};
+mov (8) g6.16<1>UW 0UW {align1};
+mov (8) g7.16<1>UW 0UW {align1};
+mov (8) g8.16<1>UW 0UW {align1};
+mov (8) g9.16<1>UW 0UW {align1};
+mov (8) g10.16<1>UW 0UW {align1};
+next_field:
+and.nz (1) null g1.12<1,1,1>UW 0x8UW {align1};
+(f0) jmpi next_field;
+mov (8) g11.0<1>UW 0UW {align1};
+mov (8) g12.0<1>UW 0UW {align1};
+mov (8) g13.0<1>UW 0UW {align1};
+mov (8) g14.0<1>UW 0UW {align1};
+mov (8) g15.0<1>UW 0UW {align1};
+mov (8) g16.0<1>UW 0UW {align1};
+mov (8) g17.0<1>UW 0UW {align1};
+mov (8) g18.0<1>UW 0UW {align1};
+next_field:
+and.nz (1) null g1.12<1,1,1>UW 0x4UW {align1};
+(f0) jmpi next_field;
+mov (8) g11.16<1>UW 0UW {align1};
+mov (8) g12.16<1>UW 0UW {align1};
+mov (8) g13.16<1>UW 0UW {align1};
+mov (8) g14.16<1>UW 0UW {align1};
+mov (8) g15.16<1>UW 0UW {align1};
+mov (8) g16.16<1>UW 0UW {align1};
+mov (8) g17.16<1>UW 0UW {align1};
+mov (8) g18.16<1>UW 0UW {align1};
+next_field:
+
+and.nz (1) null g1.12<1,1,1>UW 0x2UW {align1};
+(f0) jmpi next_field;
+mov (16) g19.0<1>UW 0UW {align1};
+mov (16) g20.0<1>UW 0UW {align1};
+mov (16) g21.0<1>UW 0UW {align1};
+mov (16) g22.0<1>UW 0UW {align1};
+next_field:
+
+and.nz (1) null g1.12<1,1,1>UW 0x1UW {align1};
+(f0) jmpi next_field;
+mov (16) g23.0<1>UW 0UW {align1};
+mov (16) g24.0<1>UW 0UW {align1};
+mov (16) g25.0<1>UW 0UW {align1};
+mov (16) g26.0<1>UW 0UW {align1};
+next_field:
diff --git a/src/xvmc/shader/mc/dual_prime.g4a b/src/xvmc/shader/mc/dual_prime.g4a
new file mode 100644
index 0000000..7066a75
--- /dev/null
+++ b/src/xvmc/shader/mc/dual_prime.g4a
@@ -0,0 +1,223 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+
+include(`block_clear.g4i')
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+mov (8) g116.0<1>UD g1.0<8,8,1>UD {align1};
+
+/* forward---Y---first vector*/
+mov(1) g115.8<1>UD 0x007001fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`4')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_y.g4i')
+mov (8) g52.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g54.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g56.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g58.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*forward---Y---second vector*/
+asr (2) g115.14<1>W g1.22<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x4UD {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`4')
+define(`mv1',`g1.22')
+define(`mv2',`g1.24')
+include(`motion_field_y.g4i')
+mov (8) g53.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g55.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g57.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g59.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*forward---UV---first vector*/
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`5')
+define(`surface_v',`6')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_uv.g4i')
+mov (8) g68.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g69.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g70.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g71.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g72.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g73.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g74.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g75.0<1>UW g85.0<8,8,1>UW {align1};
+
+/*forward---UV---second vector */
+asr (2) g115.14<1>W g1.22<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.24')
+define(`mv2',`g1.26')
+include(`motion_field_uv.g4i')
+mov (8) g68.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g69.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g70.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g71.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g72.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g73.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g74.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g75.16<1>UW g85.0<8,8,1>UW {align1};
+
+/*backward---Y---first vector */
+mov(8) g1.0<1>UD g116.0<8,8,1>UD {align1};
+mov(1) g115.8<1>UD 0x007001fUD { align1 };
+mov(1) g1.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.18<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_y.g4i')
+mov (8) g28.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g30.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g32.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g34.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g36.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g38.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g40.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g42.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*backward---Y---second vector */
+asr (2) g115.14<1>W g1.26<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g2.20<1,1,1>UD 0x8UD {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_y.g4i')
+
+avg.sat (16) g28.0<1>UW g52.0<16,16,1>UW g28.0<16,16,1>UW {align1};
+avg.sat (16) g29.0<1>UW g53.0<16,16,1>UW g96.0<16,16,1>UW {align1};
+avg.sat (16) g30.0<1>UW g54.0<16,16,1>UW g30.0<16,16,1>UW {align1};
+avg.sat (16) g31.0<1>UW g55.0<16,16,1>UW g97.0<16,16,1>UW {align1};
+avg.sat (16) g32.0<1>UW g56.0<16,16,1>UW g32.0<16,16,1>UW {align1};
+avg.sat (16) g33.0<1>UW g57.0<16,16,1>UW g98.0<16,16,1>UW {align1};
+avg.sat (16) g34.0<1>UW g58.0<16,16,1>UW g34.0<16,16,1>UW {align1};
+avg.sat (16) g35.0<1>UW g59.0<16,16,1>UW g99.0<16,16,1>UW {align1};
+avg.sat (16) g36.0<1>UW g60.0<16,16,1>UW g36.0<16,16,1>UW {align1};
+avg.sat (16) g37.0<1>UW g61.0<16,16,1>UW g100.0<16,16,1>UW {align1};
+avg.sat (16) g38.0<1>UW g62.0<16,16,1>UW g38.0<16,16,1>UW {align1};
+avg.sat (16) g39.0<1>UW g63.0<16,16,1>UW g101.0<16,16,1>UW {align1};
+avg.sat (16) g40.0<1>UW g64.0<16,16,1>UW g40.0<16,16,1>UW {align1};
+avg.sat (16) g41.0<1>UW g65.0<16,16,1>UW g102.0<16,16,1>UW {align1};
+avg.sat (16) g42.0<1>UW g66.0<16,16,1>UW g42.0<16,16,1>UW {align1};
+avg.sat (16) g43.0<1>UW g67.0<16,16,1>UW g103.0<16,16,1>UW {align1};
+
+/*backward---UV---first vector */
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.18<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`8')
+define(`surface_v',`9')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_uv.g4i')
+mov (8) g44.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.0<1>UW g85.0<8,8,1>UW {align1};
+
+/*backward---UV---second vector */
+asr (2) g115.14<1>W g1.26<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_uv.g4i')
+mov (8) g44.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.16<1>UW g85.0<8,8,1>UW {align1};
+
+avg.sat (16) g44.0<1>UW g68.0<16,16,1>UW g44.0<16,16,1>UW {align1};
+avg.sat (16) g45.0<1>UW g69.0<16,16,1>UW g45.0<16,16,1>UW {align1};
+avg.sat (16) g46.0<1>UW g70.0<16,16,1>UW g46.0<16,16,1>UW {align1};
+avg.sat (16) g47.0<1>UW g71.0<16,16,1>UW g47.0<16,16,1>UW {align1};
+avg.sat (16) g48.0<1>UW g72.0<16,16,1>UW g48.0<16,16,1>UW {align1};
+avg.sat (16) g49.0<1>UW g73.0<16,16,1>UW g49.0<16,16,1>UW {align1};
+avg.sat (16) g50.0<1>UW g74.0<16,16,1>UW g50.0<16,16,1>UW {align1};
+avg.sat (16) g51.0<1>UW g75.0<16,16,1>UW g51.0<16,16,1>UW {align1};
+
+include(`addidct.g4i')
+
+//send (16) 0 acc0<1>UW g0<8,8,1>UW
+// thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/dual_prime.g4b b/src/xvmc/shader/mc/dual_prime.g4b
new file mode 100644
index 0000000..4a1eb4b
--- /dev/null
+++ b/src/xvmc/shader/mc/dual_prime.g4b
@@ -0,0 +1,2486 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000e3c, 0x0021003f, 0x00000004 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0e80, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000c3c, 0x00210054, 0x00000008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10680, 0x00b10380 },
+ { 0x80800042, 0x23a02529, 0x00b106a0, 0x00b10c00 },
+ { 0x80800042, 0x23c02529, 0x00b106c0, 0x00b103c0 },
+ { 0x80800042, 0x23e02529, 0x00b106e0, 0x00b10c20 },
+ { 0x80800042, 0x24002529, 0x00b10700, 0x00b10400 },
+ { 0x80800042, 0x24202529, 0x00b10720, 0x00b10c40 },
+ { 0x80800042, 0x24402529, 0x00b10740, 0x00b10440 },
+ { 0x80800042, 0x24602529, 0x00b10760, 0x00b10c60 },
+ { 0x80800042, 0x24802529, 0x00b10780, 0x00b10480 },
+ { 0x80800042, 0x24a02529, 0x00b107a0, 0x00b10c80 },
+ { 0x80800042, 0x24c02529, 0x00b107c0, 0x00b104c0 },
+ { 0x80800042, 0x24e02529, 0x00b107e0, 0x00b10ca0 },
+ { 0x80800042, 0x25002529, 0x00b10800, 0x00b10500 },
+ { 0x80800042, 0x25202529, 0x00b10820, 0x00b10cc0 },
+ { 0x80800042, 0x25402529, 0x00b10840, 0x00b10540 },
+ { 0x80800042, 0x25602529, 0x00b10860, 0x00b10ce0 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x80800042, 0x25802529, 0x00b10880, 0x00b10580 },
+ { 0x80800042, 0x25a02529, 0x00b108a0, 0x00b105a0 },
+ { 0x80800042, 0x25c02529, 0x00b108c0, 0x00b105c0 },
+ { 0x80800042, 0x25e02529, 0x00b108e0, 0x00b105e0 },
+ { 0x80800042, 0x26002529, 0x00b10900, 0x00b10600 },
+ { 0x80800042, 0x26202529, 0x00b10920, 0x00b10620 },
+ { 0x80800042, 0x26402529, 0x00b10940, 0x00b10640 },
+ { 0x80800042, 0x26602529, 0x00b10960, 0x00b10660 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/dual_prime.g4b.gen5 b/src/xvmc/shader/mc/dual_prime.g4b.gen5
new file mode 100644
index 0000000..af9a7ad
--- /dev/null
+++ b/src/xvmc/shader/mc/dual_prime.g4b.gen5
@@ -0,0 +1,2486 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000e3c, 0x0021003f, 0x00000004 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0e80, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000c3c, 0x00210054, 0x00000008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10680, 0x00b10380 },
+ { 0x80800042, 0x23a02529, 0x00b106a0, 0x00b10c00 },
+ { 0x80800042, 0x23c02529, 0x00b106c0, 0x00b103c0 },
+ { 0x80800042, 0x23e02529, 0x00b106e0, 0x00b10c20 },
+ { 0x80800042, 0x24002529, 0x00b10700, 0x00b10400 },
+ { 0x80800042, 0x24202529, 0x00b10720, 0x00b10c40 },
+ { 0x80800042, 0x24402529, 0x00b10740, 0x00b10440 },
+ { 0x80800042, 0x24602529, 0x00b10760, 0x00b10c60 },
+ { 0x80800042, 0x24802529, 0x00b10780, 0x00b10480 },
+ { 0x80800042, 0x24a02529, 0x00b107a0, 0x00b10c80 },
+ { 0x80800042, 0x24c02529, 0x00b107c0, 0x00b104c0 },
+ { 0x80800042, 0x24e02529, 0x00b107e0, 0x00b10ca0 },
+ { 0x80800042, 0x25002529, 0x00b10800, 0x00b10500 },
+ { 0x80800042, 0x25202529, 0x00b10820, 0x00b10cc0 },
+ { 0x80800042, 0x25402529, 0x00b10840, 0x00b10540 },
+ { 0x80800042, 0x25602529, 0x00b10860, 0x00b10ce0 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x80800042, 0x25802529, 0x00b10880, 0x00b10580 },
+ { 0x80800042, 0x25a02529, 0x00b108a0, 0x00b105a0 },
+ { 0x80800042, 0x25c02529, 0x00b108c0, 0x00b105c0 },
+ { 0x80800042, 0x25e02529, 0x00b108e0, 0x00b105e0 },
+ { 0x80800042, 0x26002529, 0x00b10900, 0x00b10600 },
+ { 0x80800042, 0x26202529, 0x00b10920, 0x00b10620 },
+ { 0x80800042, 0x26402529, 0x00b10940, 0x00b10640 },
+ { 0x80800042, 0x26602529, 0x00b10960, 0x00b10660 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/dual_prime_igd.g4a b/src/xvmc/shader/mc/dual_prime_igd.g4a
new file mode 100644
index 0000000..e741244
--- /dev/null
+++ b/src/xvmc/shader/mc/dual_prime_igd.g4a
@@ -0,0 +1,223 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+
+include(`block_clear.g4i')
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+mov (8) g116.0<1>UD g1.0<8,8,1>UD {align1};
+
+/* forward---Y---first vector*/
+mov(1) g115.8<1>UD 0x007001fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`4')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_y_igd.g4i')
+mov (8) g52.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g54.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g56.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g58.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*forward---Y---second vector*/
+asr (2) g115.14<1>W g1.22<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x4UD {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`4')
+define(`mv1',`g1.22')
+define(`mv2',`g1.24')
+include(`motion_field_y_igd.g4i')
+mov (8) g53.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g55.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g57.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g59.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*forward---UV---first vector*/
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`5')
+define(`surface_v',`6')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_uv_igd.g4i')
+mov (8) g68.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g69.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g70.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g71.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g72.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g73.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g74.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g75.0<1>UW g85.0<8,8,1>UW {align1};
+
+/*forward---UV---second vector */
+asr (2) g115.14<1>W g1.22<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.24')
+define(`mv2',`g1.26')
+include(`motion_field_uv_igd.g4i')
+mov (8) g68.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g69.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g70.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g71.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g72.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g73.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g74.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g75.16<1>UW g85.0<8,8,1>UW {align1};
+
+/*backward---Y---first vector */
+mov(8) g1.0<1>UD g116.0<8,8,1>UD {align1};
+mov(1) g115.8<1>UD 0x007001fUD { align1 };
+mov(1) g1.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.18<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_y_igd.g4i')
+mov (8) g28.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g30.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g32.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g34.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g36.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g38.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g40.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g42.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*backward---Y---second vector */
+asr (2) g115.14<1>W g1.26<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g2.20<1,1,1>UD 0x8UD {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_y_igd.g4i')
+
+avg.sat (16) g28.0<1>UW g52.0<16,16,1>UW g28.0<16,16,1>UW {align1};
+avg.sat (16) g29.0<1>UW g53.0<16,16,1>UW g96.0<16,16,1>UW {align1};
+avg.sat (16) g30.0<1>UW g54.0<16,16,1>UW g30.0<16,16,1>UW {align1};
+avg.sat (16) g31.0<1>UW g55.0<16,16,1>UW g97.0<16,16,1>UW {align1};
+avg.sat (16) g32.0<1>UW g56.0<16,16,1>UW g32.0<16,16,1>UW {align1};
+avg.sat (16) g33.0<1>UW g57.0<16,16,1>UW g98.0<16,16,1>UW {align1};
+avg.sat (16) g34.0<1>UW g58.0<16,16,1>UW g34.0<16,16,1>UW {align1};
+avg.sat (16) g35.0<1>UW g59.0<16,16,1>UW g99.0<16,16,1>UW {align1};
+avg.sat (16) g36.0<1>UW g60.0<16,16,1>UW g36.0<16,16,1>UW {align1};
+avg.sat (16) g37.0<1>UW g61.0<16,16,1>UW g100.0<16,16,1>UW {align1};
+avg.sat (16) g38.0<1>UW g62.0<16,16,1>UW g38.0<16,16,1>UW {align1};
+avg.sat (16) g39.0<1>UW g63.0<16,16,1>UW g101.0<16,16,1>UW {align1};
+avg.sat (16) g40.0<1>UW g64.0<16,16,1>UW g40.0<16,16,1>UW {align1};
+avg.sat (16) g41.0<1>UW g65.0<16,16,1>UW g102.0<16,16,1>UW {align1};
+avg.sat (16) g42.0<1>UW g66.0<16,16,1>UW g42.0<16,16,1>UW {align1};
+avg.sat (16) g43.0<1>UW g67.0<16,16,1>UW g103.0<16,16,1>UW {align1};
+
+/*backward---UV---first vector */
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.18<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`8')
+define(`surface_v',`9')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_uv_igd.g4i')
+mov (8) g44.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.0<1>UW g85.0<8,8,1>UW {align1};
+
+/*backward---UV---second vector */
+asr (2) g115.14<1>W g1.26<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_uv_igd.g4i')
+mov (8) g44.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.16<1>UW g85.0<8,8,1>UW {align1};
+
+avg.sat (16) g44.0<1>UW g68.0<16,16,1>UW g44.0<16,16,1>UW {align1};
+avg.sat (16) g45.0<1>UW g69.0<16,16,1>UW g45.0<16,16,1>UW {align1};
+avg.sat (16) g46.0<1>UW g70.0<16,16,1>UW g46.0<16,16,1>UW {align1};
+avg.sat (16) g47.0<1>UW g71.0<16,16,1>UW g47.0<16,16,1>UW {align1};
+avg.sat (16) g48.0<1>UW g72.0<16,16,1>UW g48.0<16,16,1>UW {align1};
+avg.sat (16) g49.0<1>UW g73.0<16,16,1>UW g49.0<16,16,1>UW {align1};
+avg.sat (16) g50.0<1>UW g74.0<16,16,1>UW g50.0<16,16,1>UW {align1};
+avg.sat (16) g51.0<1>UW g75.0<16,16,1>UW g51.0<16,16,1>UW {align1};
+
+include(`addidct.g4i')
+
+//send (16) 0 acc0<1>UW g0<8,8,1>UW
+// thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/dual_prime_igd.g4b b/src/xvmc/shader/mc/dual_prime_igd.g4b
new file mode 100644
index 0000000..6a558fd
--- /dev/null
+++ b/src/xvmc/shader/mc/dual_prime_igd.g4b
@@ -0,0 +1,1234 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x26800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000e3c, 0x0021003f, 0x00000004 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x26a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000039 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x28800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000039 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x28900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0e80, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000c3c, 0x00210054, 0x00000008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10680, 0x00b10380 },
+ { 0x80800042, 0x23a02529, 0x00b106a0, 0x00b10c00 },
+ { 0x80800042, 0x23c02529, 0x00b106c0, 0x00b103c0 },
+ { 0x80800042, 0x23e02529, 0x00b106e0, 0x00b10c20 },
+ { 0x80800042, 0x24002529, 0x00b10700, 0x00b10400 },
+ { 0x80800042, 0x24202529, 0x00b10720, 0x00b10c40 },
+ { 0x80800042, 0x24402529, 0x00b10740, 0x00b10440 },
+ { 0x80800042, 0x24602529, 0x00b10760, 0x00b10c60 },
+ { 0x80800042, 0x24802529, 0x00b10780, 0x00b10480 },
+ { 0x80800042, 0x24a02529, 0x00b107a0, 0x00b10c80 },
+ { 0x80800042, 0x24c02529, 0x00b107c0, 0x00b104c0 },
+ { 0x80800042, 0x24e02529, 0x00b107e0, 0x00b10ca0 },
+ { 0x80800042, 0x25002529, 0x00b10800, 0x00b10500 },
+ { 0x80800042, 0x25202529, 0x00b10820, 0x00b10cc0 },
+ { 0x80800042, 0x25402529, 0x00b10840, 0x00b10540 },
+ { 0x80800042, 0x25602529, 0x00b10860, 0x00b10ce0 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000039 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000039 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x80800042, 0x25802529, 0x00b10880, 0x00b10580 },
+ { 0x80800042, 0x25a02529, 0x00b108a0, 0x00b105a0 },
+ { 0x80800042, 0x25c02529, 0x00b108c0, 0x00b105c0 },
+ { 0x80800042, 0x25e02529, 0x00b108e0, 0x00b105e0 },
+ { 0x80800042, 0x26002529, 0x00b10900, 0x00b10600 },
+ { 0x80800042, 0x26202529, 0x00b10920, 0x00b10620 },
+ { 0x80800042, 0x26402529, 0x00b10940, 0x00b10640 },
+ { 0x80800042, 0x26602529, 0x00b10960, 0x00b10660 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/dual_prime_igd.g4b.gen5 b/src/xvmc/shader/mc/dual_prime_igd.g4b.gen5
new file mode 100644
index 0000000..10daa14
--- /dev/null
+++ b/src/xvmc/shader/mc/dual_prime_igd.g4b.gen5
@@ -0,0 +1,1234 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x26800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000e3c, 0x0021003f, 0x00000004 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x26a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000072 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000050 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x28800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000072 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000050 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x28900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0e80, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000c3c, 0x00210054, 0x00000008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10680, 0x00b10380 },
+ { 0x80800042, 0x23a02529, 0x00b106a0, 0x00b10c00 },
+ { 0x80800042, 0x23c02529, 0x00b106c0, 0x00b103c0 },
+ { 0x80800042, 0x23e02529, 0x00b106e0, 0x00b10c20 },
+ { 0x80800042, 0x24002529, 0x00b10700, 0x00b10400 },
+ { 0x80800042, 0x24202529, 0x00b10720, 0x00b10c40 },
+ { 0x80800042, 0x24402529, 0x00b10740, 0x00b10440 },
+ { 0x80800042, 0x24602529, 0x00b10760, 0x00b10c60 },
+ { 0x80800042, 0x24802529, 0x00b10780, 0x00b10480 },
+ { 0x80800042, 0x24a02529, 0x00b107a0, 0x00b10c80 },
+ { 0x80800042, 0x24c02529, 0x00b107c0, 0x00b104c0 },
+ { 0x80800042, 0x24e02529, 0x00b107e0, 0x00b10ca0 },
+ { 0x80800042, 0x25002529, 0x00b10800, 0x00b10500 },
+ { 0x80800042, 0x25202529, 0x00b10820, 0x00b10cc0 },
+ { 0x80800042, 0x25402529, 0x00b10840, 0x00b10540 },
+ { 0x80800042, 0x25602529, 0x00b10860, 0x00b10ce0 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000072 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000050 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000072 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000050 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x80800042, 0x25802529, 0x00b10880, 0x00b10580 },
+ { 0x80800042, 0x25a02529, 0x00b108a0, 0x00b105a0 },
+ { 0x80800042, 0x25c02529, 0x00b108c0, 0x00b105c0 },
+ { 0x80800042, 0x25e02529, 0x00b108e0, 0x00b105e0 },
+ { 0x80800042, 0x26002529, 0x00b10900, 0x00b10600 },
+ { 0x80800042, 0x26202529, 0x00b10920, 0x00b10620 },
+ { 0x80800042, 0x26402529, 0x00b10940, 0x00b10640 },
+ { 0x80800042, 0x26602529, 0x00b10960, 0x00b10660 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/field_backward.g4a b/src/xvmc/shader/mc/field_backward.g4a
new file mode 100644
index 0000000..8c721c6
--- /dev/null
+++ b/src/xvmc/shader/mc/field_backward.g4a
@@ -0,0 +1,124 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+
+include(`block_clear.g4i')
+
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+mov (8) g116.0<1>UD g1.0<8,8,1>UD {align1};
+/*Y buffer*/
+mov(1) g115.8<1>UD 0x007001fUD { align1 };
+mov(1) g1.8<1>UD 0x007000fUD { align1 };
+/*first vector*/
+asr (2) g115.14<1>W g1.18<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_y.g4i')
+mov (8) g28.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g30.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g32.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g34.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g36.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g38.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g40.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g42.0<1>UD g103.0<8,8,1>UD {align1};
+/*second vector*/
+asr (2) g115.14<1>W g1.26<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+
+and.nz (1) null g1.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_y.g4i')
+mov (8) g29.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g31.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g33.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g35.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g37.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g39.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g41.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g43.0<1>UD g103.0<8,8,1>UD {align1};
+/*U buffer, V buffer*/
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+/*first vector*/
+asr (2) g115.14<1>W g1.18<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`8')
+define(`surface_v',`9')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_uv.g4i')
+mov (8) g44.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.0<1>UW g85.0<8,8,1>UW {align1};
+/*second vector*/
+asr (2) g115.14<1>W g1.26<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+
+and.nz (1) null g1.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_uv.g4i')
+mov (8) g44.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.16<1>UW g85.0<8,8,1>UW {align1};
+
+include(`addidct.g4i')
+//send (16) 0 acc0<1>UW g0<8,8,1>UW
+// thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/field_backward.g4b b/src/xvmc/shader/mc/field_backward.g4b
new file mode 100644
index 0000000..cce7d45
--- /dev/null
+++ b/src/xvmc/shader/mc/field_backward.g4b
@@ -0,0 +1,1341 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/field_backward.g4b.gen5 b/src/xvmc/shader/mc/field_backward.g4b.gen5
new file mode 100644
index 0000000..3fc1d7a
--- /dev/null
+++ b/src/xvmc/shader/mc/field_backward.g4b.gen5
@@ -0,0 +1,1341 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/field_backward_igd.g4a b/src/xvmc/shader/mc/field_backward_igd.g4a
new file mode 100644
index 0000000..9938ab5
--- /dev/null
+++ b/src/xvmc/shader/mc/field_backward_igd.g4a
@@ -0,0 +1,86 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g84~g107:IDCT data
+ g115: message descriptor for reading reference data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x50UD {align1}; //jump to the lib to do IQ and IDCT
+
+/*field 0 of Y*/
+asr (2) g31.14<1>W g82.18<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x2UW {align1}; //motion vertical field select
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) g115.16<1>UW 1UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A52UD {align1}; //g82.18,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+mov (8) g58.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g68.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g70.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g72.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 1 of Y*/
+asr (2) g31.14<1>W g82.26<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A5AUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+mov (8) g59.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g69.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g71.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g73.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 0 of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+
+asr (2) g31.14<1>W g82.18<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A52UD {align1}; //g82.18,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+mov (16) g74.0<1>UW g32.0<8,8,1>UW {align1 compr};
+mov (16) g76.0<1>UW g34.0<8,8,1>UW {align1 compr};
+mov (16) g78.0<1>UW g36.0<8,8,1>UW {align1 compr};
+mov (16) g80.0<1>UW g38.0<8,8,1>UW {align1 compr};
+
+/*field 1 of UV*/
+asr (2) g31.14<1>W g82.26<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A5AUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+mov (16) g74.16<1>UW g32.0<8,8,1>UW {align1 compr};
+mov (16) g76.16<1>UW g34.0<8,8,1>UW {align1 compr};
+mov (16) g78.16<1>UW g36.0<8,8,1>UW {align1 compr};
+mov (16) g80.16<1>UW g38.0<8,8,1>UW {align1 compr};
+
+add (1) ip g21.0<1,1,1>UD 0x40UD {align1}; //jump to the lib to add the reference and idct data
diff --git a/src/xvmc/shader/mc/field_backward_igd.g4b b/src/xvmc/shader/mc/field_backward_igd.g4b
new file mode 100644
index 0000000..6236e78
--- /dev/null
+++ b/src/xvmc/shader/mc/field_backward_igd.g4b
@@ -0,0 +1,62 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/field_backward_igd.g4b.gen5 b/src/xvmc/shader/mc/field_backward_igd.g4b.gen5
new file mode 100644
index 0000000..6236e78
--- /dev/null
+++ b/src/xvmc/shader/mc/field_backward_igd.g4b.gen5
@@ -0,0 +1,62 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/field_f_b.g4a b/src/xvmc/shader/mc/field_f_b.g4a
new file mode 100644
index 0000000..7066a75
--- /dev/null
+++ b/src/xvmc/shader/mc/field_f_b.g4a
@@ -0,0 +1,223 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+
+include(`block_clear.g4i')
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+mov (8) g116.0<1>UD g1.0<8,8,1>UD {align1};
+
+/* forward---Y---first vector*/
+mov(1) g115.8<1>UD 0x007001fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`4')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_y.g4i')
+mov (8) g52.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g54.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g56.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g58.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*forward---Y---second vector*/
+asr (2) g115.14<1>W g1.22<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x4UD {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`4')
+define(`mv1',`g1.22')
+define(`mv2',`g1.24')
+include(`motion_field_y.g4i')
+mov (8) g53.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g55.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g57.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g59.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*forward---UV---first vector*/
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`5')
+define(`surface_v',`6')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_uv.g4i')
+mov (8) g68.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g69.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g70.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g71.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g72.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g73.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g74.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g75.0<1>UW g85.0<8,8,1>UW {align1};
+
+/*forward---UV---second vector */
+asr (2) g115.14<1>W g1.22<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.24')
+define(`mv2',`g1.26')
+include(`motion_field_uv.g4i')
+mov (8) g68.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g69.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g70.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g71.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g72.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g73.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g74.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g75.16<1>UW g85.0<8,8,1>UW {align1};
+
+/*backward---Y---first vector */
+mov(8) g1.0<1>UD g116.0<8,8,1>UD {align1};
+mov(1) g115.8<1>UD 0x007001fUD { align1 };
+mov(1) g1.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.18<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_y.g4i')
+mov (8) g28.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g30.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g32.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g34.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g36.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g38.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g40.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g42.0<1>UD g103.0<8,8,1>UD {align1};
+
+/*backward---Y---second vector */
+asr (2) g115.14<1>W g1.26<2,2,1>W 1W {align1};
+add (2) g115.0<1>D g116.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov(1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+and.nz (1) null g2.20<1,1,1>UD 0x8UD {align1};
+(f0) add (1) g115.4<1>D g115.4<1,1,1>D 1D {align1};
+define(`surface',`7')
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_y.g4i')
+
+avg.sat (16) g28.0<1>UW g52.0<16,16,1>UW g28.0<16,16,1>UW {align1};
+avg.sat (16) g29.0<1>UW g53.0<16,16,1>UW g96.0<16,16,1>UW {align1};
+avg.sat (16) g30.0<1>UW g54.0<16,16,1>UW g30.0<16,16,1>UW {align1};
+avg.sat (16) g31.0<1>UW g55.0<16,16,1>UW g97.0<16,16,1>UW {align1};
+avg.sat (16) g32.0<1>UW g56.0<16,16,1>UW g32.0<16,16,1>UW {align1};
+avg.sat (16) g33.0<1>UW g57.0<16,16,1>UW g98.0<16,16,1>UW {align1};
+avg.sat (16) g34.0<1>UW g58.0<16,16,1>UW g34.0<16,16,1>UW {align1};
+avg.sat (16) g35.0<1>UW g59.0<16,16,1>UW g99.0<16,16,1>UW {align1};
+avg.sat (16) g36.0<1>UW g60.0<16,16,1>UW g36.0<16,16,1>UW {align1};
+avg.sat (16) g37.0<1>UW g61.0<16,16,1>UW g100.0<16,16,1>UW {align1};
+avg.sat (16) g38.0<1>UW g62.0<16,16,1>UW g38.0<16,16,1>UW {align1};
+avg.sat (16) g39.0<1>UW g63.0<16,16,1>UW g101.0<16,16,1>UW {align1};
+avg.sat (16) g40.0<1>UW g64.0<16,16,1>UW g40.0<16,16,1>UW {align1};
+avg.sat (16) g41.0<1>UW g65.0<16,16,1>UW g102.0<16,16,1>UW {align1};
+avg.sat (16) g42.0<1>UW g66.0<16,16,1>UW g42.0<16,16,1>UW {align1};
+avg.sat (16) g43.0<1>UW g67.0<16,16,1>UW g103.0<16,16,1>UW {align1};
+
+/*backward---UV---first vector */
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.18<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`8')
+define(`surface_v',`9')
+define(`mv1',`g1.18')
+define(`mv2',`g1.20')
+include(`motion_field_uv.g4i')
+mov (8) g44.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.0<1>UW g85.0<8,8,1>UW {align1};
+
+/*backward---UV---second vector */
+asr (2) g115.14<1>W g1.26<2,2,1>W 2W {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g1.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.26')
+define(`mv2',`g1.28')
+include(`motion_field_uv.g4i')
+mov (8) g44.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.16<1>UW g85.0<8,8,1>UW {align1};
+
+avg.sat (16) g44.0<1>UW g68.0<16,16,1>UW g44.0<16,16,1>UW {align1};
+avg.sat (16) g45.0<1>UW g69.0<16,16,1>UW g45.0<16,16,1>UW {align1};
+avg.sat (16) g46.0<1>UW g70.0<16,16,1>UW g46.0<16,16,1>UW {align1};
+avg.sat (16) g47.0<1>UW g71.0<16,16,1>UW g47.0<16,16,1>UW {align1};
+avg.sat (16) g48.0<1>UW g72.0<16,16,1>UW g48.0<16,16,1>UW {align1};
+avg.sat (16) g49.0<1>UW g73.0<16,16,1>UW g49.0<16,16,1>UW {align1};
+avg.sat (16) g50.0<1>UW g74.0<16,16,1>UW g50.0<16,16,1>UW {align1};
+avg.sat (16) g51.0<1>UW g75.0<16,16,1>UW g51.0<16,16,1>UW {align1};
+
+include(`addidct.g4i')
+
+//send (16) 0 acc0<1>UW g0<8,8,1>UW
+// thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/field_f_b.g4b b/src/xvmc/shader/mc/field_f_b.g4b
new file mode 100644
index 0000000..4a1eb4b
--- /dev/null
+++ b/src/xvmc/shader/mc/field_f_b.g4b
@@ -0,0 +1,2486 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000e3c, 0x0021003f, 0x00000004 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0e80, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000c3c, 0x00210054, 0x00000008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10680, 0x00b10380 },
+ { 0x80800042, 0x23a02529, 0x00b106a0, 0x00b10c00 },
+ { 0x80800042, 0x23c02529, 0x00b106c0, 0x00b103c0 },
+ { 0x80800042, 0x23e02529, 0x00b106e0, 0x00b10c20 },
+ { 0x80800042, 0x24002529, 0x00b10700, 0x00b10400 },
+ { 0x80800042, 0x24202529, 0x00b10720, 0x00b10c40 },
+ { 0x80800042, 0x24402529, 0x00b10740, 0x00b10440 },
+ { 0x80800042, 0x24602529, 0x00b10760, 0x00b10c60 },
+ { 0x80800042, 0x24802529, 0x00b10780, 0x00b10480 },
+ { 0x80800042, 0x24a02529, 0x00b107a0, 0x00b10c80 },
+ { 0x80800042, 0x24c02529, 0x00b107c0, 0x00b104c0 },
+ { 0x80800042, 0x24e02529, 0x00b107e0, 0x00b10ca0 },
+ { 0x80800042, 0x25002529, 0x00b10800, 0x00b10500 },
+ { 0x80800042, 0x25202529, 0x00b10820, 0x00b10cc0 },
+ { 0x80800042, 0x25402529, 0x00b10840, 0x00b10540 },
+ { 0x80800042, 0x25602529, 0x00b10860, 0x00b10ce0 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a008 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x80800042, 0x25802529, 0x00b10880, 0x00b10580 },
+ { 0x80800042, 0x25a02529, 0x00b108a0, 0x00b105a0 },
+ { 0x80800042, 0x25c02529, 0x00b108c0, 0x00b105c0 },
+ { 0x80800042, 0x25e02529, 0x00b108e0, 0x00b105e0 },
+ { 0x80800042, 0x26002529, 0x00b10900, 0x00b10600 },
+ { 0x80800042, 0x26202529, 0x00b10920, 0x00b10620 },
+ { 0x80800042, 0x26402529, 0x00b10940, 0x00b10640 },
+ { 0x80800042, 0x26602529, 0x00b10960, 0x00b10660 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/field_f_b.g4b.gen5 b/src/xvmc/shader/mc/field_f_b.g4b.gen5
new file mode 100644
index 0000000..af9a7ad
--- /dev/null
+++ b/src/xvmc/shader/mc/field_f_b.g4b.gen5
@@ -0,0 +1,2486 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000e3c, 0x0021003f, 0x00000004 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x26a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x26e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x27200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x28900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x28b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x28d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x28f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x29100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x29300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0e80, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00010001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20000c3c, 0x00210054, 0x00000008 },
+ { 0x00010040, 0x2e641ca5, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10680, 0x00b10380 },
+ { 0x80800042, 0x23a02529, 0x00b106a0, 0x00b10c00 },
+ { 0x80800042, 0x23c02529, 0x00b106c0, 0x00b103c0 },
+ { 0x80800042, 0x23e02529, 0x00b106e0, 0x00b10c20 },
+ { 0x80800042, 0x24002529, 0x00b10700, 0x00b10400 },
+ { 0x80800042, 0x24202529, 0x00b10720, 0x00b10c40 },
+ { 0x80800042, 0x24402529, 0x00b10740, 0x00b10440 },
+ { 0x80800042, 0x24602529, 0x00b10760, 0x00b10c60 },
+ { 0x80800042, 0x24802529, 0x00b10780, 0x00b10480 },
+ { 0x80800042, 0x24a02529, 0x00b107a0, 0x00b10c80 },
+ { 0x80800042, 0x24c02529, 0x00b107c0, 0x00b104c0 },
+ { 0x80800042, 0x24e02529, 0x00b107e0, 0x00b10ca0 },
+ { 0x80800042, 0x25002529, 0x00b10800, 0x00b10500 },
+ { 0x80800042, 0x25202529, 0x00b10820, 0x00b10cc0 },
+ { 0x80800042, 0x25402529, 0x00b10840, 0x00b10540 },
+ { 0x80800042, 0x25602529, 0x00b10860, 0x00b10ce0 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e3dad, 0x00450032, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210032, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x00210034, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e3dad, 0x0045003a, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021003a, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x0021003c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a008 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x80800042, 0x25802529, 0x00b10880, 0x00b10580 },
+ { 0x80800042, 0x25a02529, 0x00b108a0, 0x00b105a0 },
+ { 0x80800042, 0x25c02529, 0x00b108c0, 0x00b105c0 },
+ { 0x80800042, 0x25e02529, 0x00b108e0, 0x00b105e0 },
+ { 0x80800042, 0x26002529, 0x00b10900, 0x00b10600 },
+ { 0x80800042, 0x26202529, 0x00b10920, 0x00b10620 },
+ { 0x80800042, 0x26402529, 0x00b10940, 0x00b10640 },
+ { 0x80800042, 0x26602529, 0x00b10960, 0x00b10660 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/field_f_b_igd.g4a b/src/xvmc/shader/mc/field_f_b_igd.g4a
new file mode 100644
index 0000000..c072cd6
--- /dev/null
+++ b/src/xvmc/shader/mc/field_f_b_igd.g4a
@@ -0,0 +1,159 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g84~g107:IDCT data
+ g115: message descriptor for reading reference data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x50UD {align1}; //jump to the lib to do IQ and IDCT
+
+/*field 0 forward prediction of Y*/
+asr (2) g31.14<1>W g82.14<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) g115.16<1>UW 0UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A4EUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+mov (8) g58.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g68.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g70.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g72.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 1 forward prediction of Y*/
+asr (2) g31.14<1>W g82.22<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A56UD {align1}; //g82.22,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+mov (8) g59.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g69.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g71.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g73.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 0 forward prediction of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+
+asr (2) g31.14<1>W g82.14<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A4EUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+mov (16) g74.0<1>UW g32.0<8,8,1>UW {align1 compr};
+mov (16) g76.0<1>UW g34.0<8,8,1>UW {align1 compr};
+mov (16) g78.0<1>UW g36.0<8,8,1>UW {align1 compr};
+mov (16) g80.0<1>UW g38.0<8,8,1>UW {align1 compr};
+
+/*field 1 forward prediction of UV*/
+asr (2) g31.14<1>W g82.22<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A56UD {align1}; //g82.22,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+mov (16) g74.16<1>UW g32.0<8,8,1>UW {align1 compr};
+mov (16) g76.16<1>UW g34.0<8,8,1>UW {align1 compr};
+mov (16) g78.16<1>UW g36.0<8,8,1>UW {align1 compr};
+mov (16) g80.16<1>UW g38.0<8,8,1>UW {align1 compr};
+
+/*field 0 backward prediction of Y*/
+mov(2) g31.0<1>UD g82.0<2,2,1>UD {align1};
+
+asr (2) g31.14<1>W g82.18<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) g115.16<1>UW 1UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A52UD {align1}; //g82.18,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+avg (16) g58.0<1>UW g58.0<16,16,1>UW g32.0<16,16,1>UW {align1};
+avg (16) g60.0<1>UW g60.0<16,16,1>UW g33.0<16,16,1>UW {align1};
+avg (16) g62.0<1>UW g62.0<16,16,1>UW g34.0<16,16,1>UW {align1};
+avg (16) g64.0<1>UW g64.0<16,16,1>UW g35.0<16,16,1>UW {align1};
+avg (16) g66.0<1>UW g66.0<16,16,1>UW g36.0<16,16,1>UW {align1};
+avg (16) g68.0<1>UW g68.0<16,16,1>UW g37.0<16,16,1>UW {align1};
+avg (16) g70.0<1>UW g70.0<16,16,1>UW g38.0<16,16,1>UW {align1};
+avg (16) g72.0<1>UW g72.0<16,16,1>UW g39.0<16,16,1>UW {align1};
+
+/*field 1 backward prediction of Y*/
+asr (2) g31.14<1>W g82.26<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A5AUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+avg (16) g59.0<1>UW g59.0<16,16,1>UW g32.0<16,16,1>UW {align1};
+avg (16) g61.0<1>UW g61.0<16,16,1>UW g33.0<16,16,1>UW {align1};
+avg (16) g63.0<1>UW g63.0<16,16,1>UW g34.0<16,16,1>UW {align1};
+avg (16) g65.0<1>UW g65.0<16,16,1>UW g35.0<16,16,1>UW {align1};
+avg (16) g67.0<1>UW g67.0<16,16,1>UW g36.0<16,16,1>UW {align1};
+avg (16) g69.0<1>UW g69.0<16,16,1>UW g37.0<16,16,1>UW {align1};
+avg (16) g71.0<1>UW g71.0<16,16,1>UW g38.0<16,16,1>UW {align1};
+avg (16) g73.0<1>UW g73.0<16,16,1>UW g39.0<16,16,1>UW {align1};
+
+/*field 0 backward prediction of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+
+asr (2) g31.14<1>W g82.18<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x2UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A52UD {align1}; //g82.18,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+avg (16) g74.0<1>UW g74.0<8,8,1>UW g32.0<8,8,1>UW {align1 compr};
+avg (16) g76.0<1>UW g76.0<8,8,1>UW g34.0<8,8,1>UW {align1 compr};
+avg (16) g78.0<1>UW g78.0<8,8,1>UW g36.0<8,8,1>UW {align1 compr};
+avg (16) g80.0<1>UW g80.0<8,8,1>UW g38.0<8,8,1>UW {align1 compr};
+
+/*field 1 backward prediction of UV*/
+asr (2) g31.14<1>W g82.26<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x8UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A5AUD {align1}; //g82.26,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+avg (16) g74.16<1>UW g74.16<8,8,1>UW g32.0<8,8,1>UW {align1 compr};
+avg (16) g76.16<1>UW g76.16<8,8,1>UW g34.0<8,8,1>UW {align1 compr};
+avg (16) g78.16<1>UW g78.16<8,8,1>UW g36.0<8,8,1>UW {align1 compr};
+avg (16) g80.16<1>UW g80.16<8,8,1>UW g38.0<8,8,1>UW {align1 compr};
+
+add (1) ip g21.0<1,1,1>UD 0x40UD {align1}; //jump to the lib to add the reference and idct data
diff --git a/src/xvmc/shader/mc/field_f_b_igd.g4b b/src/xvmc/shader/mc/field_f_b_igd.g4b
new file mode 100644
index 0000000..c0bd0be
--- /dev/null
+++ b/src/xvmc/shader/mc/field_f_b_igd.g4b
@@ -0,0 +1,121 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00200001, 0x23e00021, 0x00450a40, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00800042, 0x27402529, 0x00b10740, 0x00b10400 },
+ { 0x00800042, 0x27802529, 0x00b10780, 0x00b10420 },
+ { 0x00800042, 0x27c02529, 0x00b107c0, 0x00b10440 },
+ { 0x00800042, 0x28002529, 0x00b10800, 0x00b10460 },
+ { 0x00800042, 0x28402529, 0x00b10840, 0x00b10480 },
+ { 0x00800042, 0x28802529, 0x00b10880, 0x00b104a0 },
+ { 0x00800042, 0x28c02529, 0x00b108c0, 0x00b104c0 },
+ { 0x00800042, 0x29002529, 0x00b10900, 0x00b104e0 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00800042, 0x27602529, 0x00b10760, 0x00b10400 },
+ { 0x00800042, 0x27a02529, 0x00b107a0, 0x00b10420 },
+ { 0x00800042, 0x27e02529, 0x00b107e0, 0x00b10440 },
+ { 0x00800042, 0x28202529, 0x00b10820, 0x00b10460 },
+ { 0x00800042, 0x28602529, 0x00b10860, 0x00b10480 },
+ { 0x00800042, 0x28a02529, 0x00b108a0, 0x00b104a0 },
+ { 0x00800042, 0x28e02529, 0x00b108e0, 0x00b104c0 },
+ { 0x00800042, 0x29202529, 0x00b10920, 0x00b104e0 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802042, 0x29402529, 0x008d0940, 0x008d0400 },
+ { 0x00802042, 0x29802529, 0x008d0980, 0x008d0440 },
+ { 0x00802042, 0x29c02529, 0x008d09c0, 0x008d0480 },
+ { 0x00802042, 0x2a002529, 0x008d0a00, 0x008d04c0 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802042, 0x29502529, 0x008d0950, 0x008d0400 },
+ { 0x00802042, 0x29902529, 0x008d0990, 0x008d0440 },
+ { 0x00802042, 0x29d02529, 0x008d09d0, 0x008d0480 },
+ { 0x00802042, 0x2a102529, 0x008d0a10, 0x008d04c0 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/field_f_b_igd.g4b.gen5 b/src/xvmc/shader/mc/field_f_b_igd.g4b.gen5
new file mode 100644
index 0000000..c0bd0be
--- /dev/null
+++ b/src/xvmc/shader/mc/field_f_b_igd.g4b.gen5
@@ -0,0 +1,121 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00200001, 0x23e00021, 0x00450a40, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00800042, 0x27402529, 0x00b10740, 0x00b10400 },
+ { 0x00800042, 0x27802529, 0x00b10780, 0x00b10420 },
+ { 0x00800042, 0x27c02529, 0x00b107c0, 0x00b10440 },
+ { 0x00800042, 0x28002529, 0x00b10800, 0x00b10460 },
+ { 0x00800042, 0x28402529, 0x00b10840, 0x00b10480 },
+ { 0x00800042, 0x28802529, 0x00b10880, 0x00b104a0 },
+ { 0x00800042, 0x28c02529, 0x00b108c0, 0x00b104c0 },
+ { 0x00800042, 0x29002529, 0x00b10900, 0x00b104e0 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00800042, 0x27602529, 0x00b10760, 0x00b10400 },
+ { 0x00800042, 0x27a02529, 0x00b107a0, 0x00b10420 },
+ { 0x00800042, 0x27e02529, 0x00b107e0, 0x00b10440 },
+ { 0x00800042, 0x28202529, 0x00b10820, 0x00b10460 },
+ { 0x00800042, 0x28602529, 0x00b10860, 0x00b10480 },
+ { 0x00800042, 0x28a02529, 0x00b108a0, 0x00b104a0 },
+ { 0x00800042, 0x28e02529, 0x00b108e0, 0x00b104c0 },
+ { 0x00800042, 0x29202529, 0x00b10920, 0x00b104e0 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00020002 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802042, 0x29402529, 0x008d0940, 0x008d0400 },
+ { 0x00802042, 0x29802529, 0x008d0980, 0x008d0440 },
+ { 0x00802042, 0x29c02529, 0x008d09c0, 0x008d0480 },
+ { 0x00802042, 0x2a002529, 0x008d0a00, 0x008d04c0 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5a, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00080008 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a5a },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802042, 0x29502529, 0x008d0950, 0x008d0400 },
+ { 0x00802042, 0x29902529, 0x008d0990, 0x008d0440 },
+ { 0x00802042, 0x29d02529, 0x008d09d0, 0x008d0480 },
+ { 0x00802042, 0x2a102529, 0x008d0a10, 0x008d04c0 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/field_forward.g4a b/src/xvmc/shader/mc/field_forward.g4a
new file mode 100644
index 0000000..f5595ee
--- /dev/null
+++ b/src/xvmc/shader/mc/field_forward.g4a
@@ -0,0 +1,121 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+
+include(`block_clear.g4i')
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+mov (8) g116.0<1>UD g1.0<8,8,1>UD {align1};
+/*Y buffer*/
+mov(1) g1.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 1UW {align1};
+add (2) g115.0<1>UD g116.0<2,2,1>UD g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov (1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+/*first vector*/
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`4')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_y.g4i')
+mov (8) g28.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g30.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g32.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g34.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g36.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g38.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g40.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g42.0<1>UD g103.0<8,8,1>UD {align1};
+/*second vector*/
+asr (2) g115.14<1>W g1.22<2,2,1>W 1UW {align1};
+add (2) g115.0<1>UD g116.0<2,2,1>UD g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+mov (1) g115.8<1>UD 0x1fUD { align1 }; //read 1 line, 32 columns.
+
+and.nz (1) null g1.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`4')
+define(`mv1',`g1.22')
+define(`mv2',`g1.24')
+include(`motion_field_y.g4i')
+mov (8) g29.0<1>UD g96.0<8,8,1>UD {align1};
+mov (8) g31.0<1>UD g97.0<8,8,1>UD {align1};
+mov (8) g33.0<1>UD g98.0<8,8,1>UD {align1};
+mov (8) g35.0<1>UD g99.0<8,8,1>UD {align1};
+mov (8) g37.0<1>UD g100.0<8,8,1>UD {align1};
+mov (8) g39.0<1>UD g101.0<8,8,1>UD {align1};
+mov (8) g41.0<1>UD g102.0<8,8,1>UD {align1};
+mov (8) g43.0<1>UD g103.0<8,8,1>UD {align1};
+/*U buffer, V buffer*/
+/*first vector*/
+mov(1) g115.8<1>UD 0x007000fUD { align1 };
+asr (2) g115.14<1>W g1.14<2,2,1>W 2UW {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+
+and.nz (1) null g1.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u',`5')
+define(`surface_v',`6')
+define(`mv1',`g1.14')
+define(`mv2',`g1.16')
+include(`motion_field_uv.g4i')
+mov (8) g44.0<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.0<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.0<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.0<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.0<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.0<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.0<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.0<1>UW g85.0<8,8,1>UW {align1};
+/*second vector*/
+asr (2) g115.14<1>W g1.22<2,2,1>W 2UW {align1};
+asr (2) g115.0<1>D g116.0<2,2,1>D 1D {align1};
+add (2) g115.0<1>D g115.0<2,2,1>D g115.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+
+and.nz (1) null g1.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g1.22')
+define(`mv2',`g1.24')
+include(`motion_field_uv.g4i')
+mov (8) g44.16<1>UW g78.0<8,8,1>UW {align1};
+mov (8) g45.16<1>UW g79.0<8,8,1>UW {align1};
+mov (8) g46.16<1>UW g80.0<8,8,1>UW {align1};
+mov (8) g47.16<1>UW g81.0<8,8,1>UW {align1};
+mov (8) g48.16<1>UW g82.0<8,8,1>UW {align1};
+mov (8) g49.16<1>UW g83.0<8,8,1>UW {align1};
+mov (8) g50.16<1>UW g84.0<8,8,1>UW {align1};
+mov (8) g51.16<1>UW g85.0<8,8,1>UW {align1};
+
+include(`addidct.g4i')
+//send (16) 0 acc0<1>UW g0<8,8,1>UW
+// thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/field_forward.g4b b/src/xvmc/shader/mc/field_forward.g4b
new file mode 100644
index 0000000..3514c86
--- /dev/null
+++ b/src/xvmc/shader/mc/field_forward.g4b
@@ -0,0 +1,1340 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e2dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e2dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000b1 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000007d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000068 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e2dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e2dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000076 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x00ad0e60, 0x0411a005 },
+ { 0x00800031, 0x2be01d29, 0x00ad0e60, 0x0411a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x2b601d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/field_forward.g4b.gen5 b/src/xvmc/shader/mc/field_forward.g4b.gen5
new file mode 100644
index 0000000..e7dd773
--- /dev/null
+++ b/src/xvmc/shader/mc/field_forward.g4b.gen5
@@ -0,0 +1,1340 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00600001, 0x2e800021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e2dad, 0x0045002e, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23800021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23c00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24000021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24400021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24800021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24c00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25000021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25400021, 0x008d0ce0, 0x00000000 },
+ { 0x0020000c, 0x2e6e2dad, 0x00450036, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x00450e80, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000162 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000fa },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x00800040, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x00800040, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x00800040, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x00800040, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x00800040, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x00800040, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x00800040, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c1 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a01 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a41 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a81 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac1 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b01 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b41 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b81 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a01 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a41 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a81 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac1 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b01 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b41 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b81 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x00800040, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x00800040, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x00800040, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x00800040, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x00800040, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x00800040, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x00800040, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c2 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a02 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a42 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a82 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac2 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b02 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b42 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b82 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a02 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a42 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a82 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac2 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b02 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b42 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b82 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x00800040, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x00800040, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x00800040, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x00800040, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x00800040, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x00800040, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x00800040, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c3 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a03 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a43 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a83 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac3 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b03 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b43 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b83 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a03 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a43 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a83 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac3 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b03 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b43 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b83 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x00800040, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x00800040, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x00800040, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x00800040, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x00800040, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x00800040, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x00800040, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b109c4 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a04 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a44 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10a84 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10ac4 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b04 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b44 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10b84 },
+ { 0x00800040, 0x2c004529, 0x00b10c00, 0x00b10a04 },
+ { 0x00800040, 0x2c204529, 0x00b10c20, 0x00b10a44 },
+ { 0x00800040, 0x2c404529, 0x00b10c40, 0x00b10a84 },
+ { 0x00800040, 0x2c604529, 0x00b10c60, 0x00b10ac4 },
+ { 0x00800040, 0x2c804529, 0x00b10c80, 0x00b10b04 },
+ { 0x00800040, 0x2ca04529, 0x00b10ca0, 0x00b10b44 },
+ { 0x00800040, 0x2cc04529, 0x00b10cc0, 0x00b10b84 },
+ { 0x00800040, 0x2ce04529, 0x00b10ce0, 0x00b10bc4 },
+ { 0x00800008, 0x2c002d29, 0x00b10c00, 0x00020002 },
+ { 0x00800008, 0x2c202d29, 0x00b10c20, 0x00020002 },
+ { 0x00800008, 0x2c402d29, 0x00b10c40, 0x00020002 },
+ { 0x00800008, 0x2c602d29, 0x00b10c60, 0x00020002 },
+ { 0x00800008, 0x2c802d29, 0x00b10c80, 0x00020002 },
+ { 0x00800008, 0x2ca02d29, 0x00b10ca0, 0x00020002 },
+ { 0x00800008, 0x2cc02d29, 0x00b10cc0, 0x00020002 },
+ { 0x00800008, 0x2ce02d29, 0x00b10ce0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b109c1 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a01 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a41 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10a81 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10ac1 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b01 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b41 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10b81 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b109c2 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a02 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a42 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10a82 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10ac2 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b02 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b42 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10b82 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b109c3 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a03 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a43 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10a83 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10ac3 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b03 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b43 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10b83 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b109c4 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a04 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a44 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10a84 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10ac4 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b04 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b44 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10b84 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000d0 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2bc01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x2c004629, 0x00b109c0, 0x00b10a00 },
+ { 0x80800042, 0x2c204629, 0x00b10a00, 0x00b10a40 },
+ { 0x80800042, 0x2c404629, 0x00b10a40, 0x00b10a80 },
+ { 0x80800042, 0x2c604629, 0x00b10a80, 0x00b10ac0 },
+ { 0x80800042, 0x2c804629, 0x00b10ac0, 0x00b10b00 },
+ { 0x80800042, 0x2ca04629, 0x00b10b00, 0x00b10b40 },
+ { 0x80800042, 0x2cc04629, 0x00b10b40, 0x00b10b80 },
+ { 0x80800042, 0x2ce04629, 0x00b10b80, 0x00b10bc0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x2c004629, 0x00b109c1, 0x00b10a01 },
+ { 0x80800042, 0x2c204629, 0x00b10a01, 0x00b10a41 },
+ { 0x80800042, 0x2c404629, 0x00b10a41, 0x00b10a81 },
+ { 0x80800042, 0x2c604629, 0x00b10a81, 0x00b10ac1 },
+ { 0x80800042, 0x2c804629, 0x00b10ac1, 0x00b10b01 },
+ { 0x80800042, 0x2ca04629, 0x00b10b01, 0x00b10b41 },
+ { 0x80800042, 0x2cc04629, 0x00b10b41, 0x00b10b81 },
+ { 0x80800042, 0x2ce04629, 0x00b10b81, 0x00b10bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x2c004629, 0x00b109c2, 0x00b10a02 },
+ { 0x80800042, 0x2c204629, 0x00b10a02, 0x00b10a42 },
+ { 0x80800042, 0x2c404629, 0x00b10a42, 0x00b10a82 },
+ { 0x80800042, 0x2c604629, 0x00b10a82, 0x00b10ac2 },
+ { 0x80800042, 0x2c804629, 0x00b10ac2, 0x00b10b02 },
+ { 0x80800042, 0x2ca04629, 0x00b10b02, 0x00b10b42 },
+ { 0x80800042, 0x2cc04629, 0x00b10b42, 0x00b10b82 },
+ { 0x80800042, 0x2ce04629, 0x00b10b82, 0x00b10bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x2c004629, 0x00b109c3, 0x00b10a03 },
+ { 0x80800042, 0x2c204629, 0x00b10a03, 0x00b10a43 },
+ { 0x80800042, 0x2c404629, 0x00b10a43, 0x00b10a83 },
+ { 0x80800042, 0x2c604629, 0x00b10a83, 0x00b10ac3 },
+ { 0x80800042, 0x2c804629, 0x00b10ac3, 0x00b10b03 },
+ { 0x80800042, 0x2ca04629, 0x00b10b03, 0x00b10b43 },
+ { 0x80800042, 0x2cc04629, 0x00b10b43, 0x00b10b83 },
+ { 0x80800042, 0x2ce04629, 0x00b10b83, 0x00b10bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x29c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x2a801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2ac01d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x2c000229, 0x00b109c0, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a00, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a40, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a80, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac0, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b00, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b40, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b80, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x2c000229, 0x00b109c1, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a01, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a41, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a81, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac1, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b01, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b41, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b81, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x2c000229, 0x00b109c2, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a02, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a42, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a82, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac2, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b02, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b42, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b82, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x2c000229, 0x00b109c3, 0x00000000 },
+ { 0x00800001, 0x2c200229, 0x00b10a03, 0x00000000 },
+ { 0x00800001, 0x2c400229, 0x00b10a43, 0x00000000 },
+ { 0x00800001, 0x2c600229, 0x00b10a83, 0x00000000 },
+ { 0x00800001, 0x2c800229, 0x00b10ac3, 0x00000000 },
+ { 0x00800001, 0x2ca00229, 0x00b10b03, 0x00000000 },
+ { 0x00800001, 0x2cc00229, 0x00b10b43, 0x00000000 },
+ { 0x00800001, 0x2ce00229, 0x00b10b83, 0x00000000 },
+ { 0x00600001, 0x23a00021, 0x008d0c00, 0x00000000 },
+ { 0x00600001, 0x23e00021, 0x008d0c20, 0x00000000 },
+ { 0x00600001, 0x24200021, 0x008d0c40, 0x00000000 },
+ { 0x00600001, 0x24600021, 0x008d0c60, 0x00000000 },
+ { 0x00600001, 0x24a00021, 0x008d0c80, 0x00000000 },
+ { 0x00600001, 0x24e00021, 0x008d0ca0, 0x00000000 },
+ { 0x00600001, 0x25200021, 0x008d0cc0, 0x00000000 },
+ { 0x00600001, 0x25600021, 0x008d0ce0, 0x00000000 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x0020000c, 0x2e6e2dad, 0x0045002e, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x0021002e, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x00210030, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25800129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25a00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25c00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25e00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26000129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26200129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26400129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26600129, 0x008d0aa0, 0x00000000 },
+ { 0x0020000c, 0x2e6e2dad, 0x00450036, 0x00020002 },
+ { 0x0020000c, 0x2e601ca5, 0x00450e80, 0x00000001 },
+ { 0x00200040, 0x2e6034a5, 0x00450e60, 0x00450e6e },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x0021003f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002d3c, 0x00210036, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000144 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ec },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x00800040, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x00800040, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae1 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b01 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b21 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b01 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b21 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b41 },
+ { 0x00800040, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x00800040, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b61 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b81 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b81 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x00800040, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x00800040, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae2 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b02 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b22 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b02 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b22 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b42 },
+ { 0x00800040, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x00800040, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b62 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b82 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b82 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x00800040, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x00800040, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae3 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b03 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b23 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b03 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b23 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b43 },
+ { 0x00800040, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x00800040, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b63 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b83 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b83 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x29c04629, 0x00ad0ac3, 0x00ad0ae3 },
+ { 0x00800040, 0x29e04629, 0x00ad0ae3, 0x00ad0b03 },
+ { 0x00800040, 0x2a004629, 0x00ad0b03, 0x00ad0b23 },
+ { 0x00800040, 0x2a204629, 0x00ad0b23, 0x00ad0b43 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ac4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0ae4 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b04 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b24 },
+ { 0x00800040, 0x29c04529, 0x00ad09c0, 0x00ad0ae4 },
+ { 0x00800040, 0x29e04529, 0x00ad09e0, 0x00ad0b04 },
+ { 0x00800040, 0x2a004529, 0x00ad0a00, 0x00ad0b24 },
+ { 0x00800040, 0x2a204529, 0x00ad0a20, 0x00ad0b44 },
+ { 0x00800040, 0x2a404629, 0x00ad0b63, 0x00ad0b83 },
+ { 0x00800040, 0x2a604629, 0x00ad0b83, 0x00ad0ba3 },
+ { 0x00800040, 0x2a804629, 0x00ad0ba3, 0x00ad0bc3 },
+ { 0x00800040, 0x2aa04629, 0x00ad0bc3, 0x00ad0be3 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b64 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0b84 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0ba4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0bc4 },
+ { 0x00800040, 0x2a404529, 0x00ad0a40, 0x00ad0b84 },
+ { 0x00800040, 0x2a604529, 0x00ad0a60, 0x00ad0ba4 },
+ { 0x00800040, 0x2a804529, 0x00ad0a80, 0x00ad0bc4 },
+ { 0x00800040, 0x2aa04529, 0x00ad0aa0, 0x00ad0be4 },
+ { 0x80800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x80800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x80800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x80800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x80800008, 0x2a402d29, 0x00b10a40, 0x00020002 },
+ { 0x80800008, 0x2a602d29, 0x00b10a60, 0x00020002 },
+ { 0x80800008, 0x2a802d29, 0x00b10a80, 0x00020002 },
+ { 0x80800008, 0x2aa02d29, 0x00b10aa0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000104 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ac1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0ae1 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b01 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b21 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b61 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0b81 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0ba1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0bc1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ac2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0ae2 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b02 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b22 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b62 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0b82 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0ba2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0bc2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac4 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae4 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b04 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b24 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b64 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b84 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba4 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc4 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000b0 },
+ { 0x01000005, 0x20002d3c, 0x00210038, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00800031, 0x2b401d29, 0x40ad0e60, 0x0218a005 },
+ { 0x00800031, 0x2be01d29, 0x40ad0e60, 0x0218a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac0, 0x00ad0ae0 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae0, 0x00ad0b00 },
+ { 0x80800042, 0x2a004629, 0x00ad0b00, 0x00ad0b20 },
+ { 0x80800042, 0x2a204629, 0x00ad0b20, 0x00ad0b40 },
+ { 0x80800042, 0x2a404629, 0x00ad0b60, 0x00ad0b80 },
+ { 0x80800042, 0x2a604629, 0x00ad0b80, 0x00ad0ba0 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba0, 0x00ad0bc0 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc0, 0x00ad0be0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac1, 0x00ad0ae1 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae1, 0x00ad0b01 },
+ { 0x80800042, 0x2a004629, 0x00ad0b01, 0x00ad0b21 },
+ { 0x80800042, 0x2a204629, 0x00ad0b21, 0x00ad0b41 },
+ { 0x80800042, 0x2a404629, 0x00ad0b61, 0x00ad0b81 },
+ { 0x80800042, 0x2a604629, 0x00ad0b81, 0x00ad0ba1 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba1, 0x00ad0bc1 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc1, 0x00ad0be1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac2, 0x00ad0ae2 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae2, 0x00ad0b02 },
+ { 0x80800042, 0x2a004629, 0x00ad0b02, 0x00ad0b22 },
+ { 0x80800042, 0x2a204629, 0x00ad0b22, 0x00ad0b42 },
+ { 0x80800042, 0x2a404629, 0x00ad0b62, 0x00ad0b82 },
+ { 0x80800042, 0x2a604629, 0x00ad0b82, 0x00ad0ba2 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba2, 0x00ad0bc2 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc2, 0x00ad0be2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x29c04629, 0x00ad0ac3, 0x00ad0ac3 },
+ { 0x80800042, 0x29e04629, 0x00ad0ae3, 0x00ad0ae3 },
+ { 0x80800042, 0x2a004629, 0x00ad0b03, 0x00ad0b03 },
+ { 0x80800042, 0x2a204629, 0x00ad0b23, 0x00ad0b23 },
+ { 0x80800042, 0x2a404629, 0x00ad0b63, 0x00ad0b63 },
+ { 0x80800042, 0x2a604629, 0x00ad0b83, 0x00ad0b83 },
+ { 0x80800042, 0x2a804629, 0x00ad0ba3, 0x00ad0ba3 },
+ { 0x80800042, 0x2aa04629, 0x00ad0bc3, 0x00ad0bc3 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x2ac01d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x2b601d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00000005, 0x20580c21, 0x00210e60, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba0, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba1, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba2, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x29c00229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x2a400229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x2a600229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x2a800229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2aa00229, 0x00ad0bc3, 0x00000000 },
+ { 0x00600001, 0x25900129, 0x008d09c0, 0x00000000 },
+ { 0x00600001, 0x25b00129, 0x008d09e0, 0x00000000 },
+ { 0x00600001, 0x25d00129, 0x008d0a00, 0x00000000 },
+ { 0x00600001, 0x25f00129, 0x008d0a20, 0x00000000 },
+ { 0x00600001, 0x26100129, 0x008d0a40, 0x00000000 },
+ { 0x00600001, 0x26300129, 0x008d0a60, 0x00000000 },
+ { 0x00600001, 0x26500129, 0x008d0a80, 0x00000000 },
+ { 0x00600001, 0x26700129, 0x008d0aa0, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/field_forward_igd.g4a b/src/xvmc/shader/mc/field_forward_igd.g4a
new file mode 100644
index 0000000..61719ed
--- /dev/null
+++ b/src/xvmc/shader/mc/field_forward_igd.g4a
@@ -0,0 +1,86 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g84~g107:IDCT data
+ g115: message descriptor for reading reference data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x50UD {align1}; //jump to the lib to do IDCT
+
+/*field 0 of Y*/
+asr (2) g31.14<1>W g82.14<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x1UW {align1}; //motion vertical field select
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) g115.16<1>UW 0UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A4EUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+mov (8) g58.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g68.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g70.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g72.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 1 of Y*/
+asr (2) g31.14<1>W g82.22<2,2,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A56UD {align1}; //g82.22,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x20UD {align1}; //jump to the lib to read reference data
+
+mov (8) g59.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g69.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g71.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g73.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 0 of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+
+asr (2) g31.14<1>W g82.14<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x1UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A4EUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+mov (16) g74.0<1>UW g32.0<8,8,1>UW {align1 compr};
+mov (16) g76.0<1>UW g34.0<8,8,1>UW {align1 compr};
+mov (16) g78.0<1>UW g36.0<8,8,1>UW {align1 compr};
+mov (16) g80.0<1>UW g38.0<8,8,1>UW {align1 compr};
+
+/*field 1 of UV*/
+asr (2) g31.14<1>W g82.22<2,2,1>W 2W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.31<1,1,1>UB 0x4UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+mov (1) a0.0<1>UD 0x0A56UD {align1}; //g82.22,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x30UD {align1}; //jump to the lib to read reference data
+
+mov (16) g74.16<1>UW g32.0<8,8,1>UW {align1 compr};
+mov (16) g76.16<1>UW g34.0<8,8,1>UW {align1 compr};
+mov (16) g78.16<1>UW g36.0<8,8,1>UW {align1 compr};
+mov (16) g80.16<1>UW g38.0<8,8,1>UW {align1 compr};
+
+add (1) ip g21.0<1,1,1>UD 0x40UD {align1}; //jump to the lib to add the reference and idct data
diff --git a/src/xvmc/shader/mc/field_forward_igd.g4b b/src/xvmc/shader/mc/field_forward_igd.g4b
new file mode 100644
index 0000000..12036bf
--- /dev/null
+++ b/src/xvmc/shader/mc/field_forward_igd.g4b
@@ -0,0 +1,62 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/field_forward_igd.g4b.gen5 b/src/xvmc/shader/mc/field_forward_igd.g4b.gen5
new file mode 100644
index 0000000..12036bf
--- /dev/null
+++ b/src/xvmc/shader/mc/field_forward_igd.g4b.gen5
@@ -0,0 +1,62 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x2e700169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000020 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00010001 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a56, 0x00020002 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002e3c, 0x00210a5f, 0x00040004 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a56 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000030 },
+ { 0x00802001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00802001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00802001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00802001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/frame_backward.g4a b/src/xvmc/shader/mc/frame_backward.g4a
new file mode 100644
index 0000000..f669dac
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_backward.g4a
@@ -0,0 +1,69 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+
+/* shader for backward predict mc
+*/
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+
+include(`block_clear.g4i')
+
+mov (2) g1.14<1>UW g1.18<2,2,1>UW {align1};
+/* save payload */
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+/* 8x8 media read/write payload */
+mov (1) g1.8<1>UD 0x0070007UD {align1};
+/* save payload, again */
+define(`dest', `g118')
+define(`input_surface', `7')
+define(`mv1', `g115.14')
+define(`mv2', `g115.16')
+/* Y */
+/* (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1) */
+asr (2) g1.14<1>W g115.14<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g115.0<2,2,1>UD g1.14<2,2,1>W {align1};
+include(`motion_frame_y.g4i')
+/* motion_vector = motion_vector >> 1 */
+/* (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1) */
+shr (2) g1.0<1>UD g115.0<2,2,1>UD 1UD {align1};
+asr (2) g115.14<1>W g115.14<2,2,1>W 1W {align1};
+asr (2) g1.14<1>W g115.14<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g1.0<2,2,1>UD g1.14<2,2,1>W {align1};
+/* U */
+define(`input_surface1', `8')
+define(`input_surface2', `9')
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+include(`motion_frame_uv.g4i')
+
+/* V */
+/* (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1) */
+include(`addidct.g4i')
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/frame_backward.g4b b/src/xvmc/shader/mc/frame_backward.g4b
new file mode 100644
index 0000000..980ad62
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_backward.g4b
@@ -0,0 +1,716 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00200001, 0x202e0129, 0x00450032, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e6e, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000012b },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000de },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000092 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000061 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000e5 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x00200008, 0x20200c21, 0x00450e60, 0x00000001 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450e6e, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x008d0040, 0x0414a008 },
+ { 0x00800031, 0x2b401d29, 0x008d0040, 0x0414a009 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/frame_backward.g4b.gen5 b/src/xvmc/shader/mc/frame_backward.g4b.gen5
new file mode 100644
index 0000000..b9e2840
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_backward.g4b.gen5
@@ -0,0 +1,716 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00200001, 0x202e0129, 0x00450032, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e6e, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000256 },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000001bc },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000124 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000c2 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000001ca },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x00200008, 0x20200c21, 0x00450e60, 0x00000001 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450e6e, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x408d0040, 0x0248a008 },
+ { 0x00800031, 0x2b401d29, 0x408d0040, 0x0248a009 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/frame_backward_igd.g4a b/src/xvmc/shader/mc/frame_backward_igd.g4a
new file mode 100644
index 0000000..774c119
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_backward_igd.g4a
@@ -0,0 +1,50 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+/*
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+define(`UV_red',`0xffffffffUD')
+define(`UV_white',`0x7f7f7f7fUD')
+define(`UV_green',`0x00000000UD')
+mov(1) g31.8<1>UD 0x000f000fUD { align1 };
+mov(16) m1<1>UD 0xFFFFFFFFUD {align1 compr};
+mov(16) m3<1>UD 0xFFFFFFFFUD {align1 compr};
+mov(16) m5<1>UD 0xFFFFFFFFUD {align1 compr};
+mov(16) m7<1>UD 0xFFFFFFFFUD {align1 compr};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(0, 0, 2, 0) mlen 9 rlen 0 { align1 };
+shr (2) g31.0<1>UD g82.0<2,2,1>UD 1UW {align1};
+mov(1) g31.8<1>UD 0x00070007UD { align1 };
+mov (16) m1<1>UD UV_green {align1 compr};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
+*/
+
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x50UD {align1}; //jump to the lib to do IDCT
+
+//Y, (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1)
+asr (2) g31.14<1>W g82.18<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g32.16<1>UW 1UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A52UD {align1}; //g82.18,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x0UD {align1}; //jump to the lib to read reference data
+
+//UV, (x', y') = (x >> 1, y >> 1) + (motion_vector.x >> 2, motion_vector.y >> 2)
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g31.14<1>W g82.18<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x10UD {align1}; //jump to the lib to read reference data
+
+add (1) ip g21.0<1,1,1>UD 0x40UD {align1}; //jump to the lib to add the reference and idct data
diff --git a/src/xvmc/shader/mc/frame_backward_igd.g4b b/src/xvmc/shader/mc/frame_backward_igd.g4b
new file mode 100644
index 0000000..1b533e5
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_backward_igd.g4b
@@ -0,0 +1,15 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/frame_backward_igd.g4b.gen5 b/src/xvmc/shader/mc/frame_backward_igd.g4b.gen5
new file mode 100644
index 0000000..1b533e5
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_backward_igd.g4b.gen5
@@ -0,0 +1,15 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/frame_f_b.g4a b/src/xvmc/shader/mc/frame_f_b.g4a
new file mode 100644
index 0000000..98729dd
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_f_b.g4a
@@ -0,0 +1,131 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+
+/* shader for forward and backward predict mc
+*/
+/* (x', y') = (x, y) + (motion_vector1.x >> 1, motion_vector1.y >> 1)
+/* (x'', y'') = (x, y) + (motion_vector2.x >> 1, motion_vector2.y >> 1)
+/* f(x, y) = (motion_forward(x`, y`) + motion_backward(x'', y'') + 1) / 2 */
+
+//Save payload
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+include(`block_clear.g4i')
+
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+mov (1) g1.8<1>UD 0x0070007UD {align1};
+mov (8) g2.0<1>UD g1.0<8,8,1>UD {align1};
+/* Y */
+//Forward
+asr (2) g1.14<1>W g115.14<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g115.0<2,2,1>UD g1.14<2,2,1>W {align1};
+define(`input_surface', `4')
+define(`mv1', `g115.14')
+define(`mv2', `g115.16')
+include(`motion_frame_y.g4i')
+mov (16) g52.0<1>UD g28.0<16,16,1>UD {align1 compr};
+mov (16) g54.0<1>UD g30.0<16,16,1>UD {align1 compr};
+mov (16) g56.0<1>UD g32.0<16,16,1>UD {align1 compr};
+mov (16) g58.0<1>UD g34.0<16,16,1>UD {align1 compr};
+mov (16) g60.0<1>UD g36.0<16,16,1>UD {align1 compr};
+mov (16) g62.0<1>UD g38.0<16,16,1>UD {align1 compr};
+mov (16) g64.0<1>UD g40.0<16,16,1>UD {align1 compr};
+mov (16) g66.0<1>UD g42.0<16,16,1>UD {align1 compr};
+//Backward
+asr (2) g1.14<1>W g115.18<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g115.0<2,2,1>UD g1.14<2,2,1>W {align1};
+define(`input_surface', `7')
+define(`mv1', `g115.18')
+define(`mv2', `g115.20')
+include(`motion_frame_y.g4i')
+
+//Average
+avg.sat (16) g28.0<1>UW g28.0<16,16,1>UW g52.0<16,16,1>UW {align1};
+avg.sat (16) g29.0<1>UW g29.0<16,16,1>UW g53.0<16,16,1>UW {align1};
+avg.sat (16) g30.0<1>UW g30.0<16,16,1>UW g54.0<16,16,1>UW {align1};
+avg.sat (16) g31.0<1>UW g31.0<16,16,1>UW g55.0<16,16,1>UW {align1};
+avg.sat (16) g32.0<1>UW g32.0<16,16,1>UW g56.0<16,16,1>UW {align1};
+avg.sat (16) g33.0<1>UW g33.0<16,16,1>UW g57.0<16,16,1>UW {align1};
+avg.sat (16) g34.0<1>UW g34.0<16,16,1>UW g58.0<16,16,1>UW {align1};
+avg.sat (16) g35.0<1>UW g35.0<16,16,1>UW g59.0<16,16,1>UW {align1};
+avg.sat (16) g36.0<1>UW g36.0<16,16,1>UW g60.0<16,16,1>UW {align1};
+avg.sat (16) g37.0<1>UW g37.0<16,16,1>UW g61.0<16,16,1>UW {align1};
+avg.sat (16) g38.0<1>UW g38.0<16,16,1>UW g62.0<16,16,1>UW {align1};
+avg.sat (16) g39.0<1>UW g39.0<16,16,1>UW g63.0<16,16,1>UW {align1};
+avg.sat (16) g40.0<1>UW g40.0<16,16,1>UW g64.0<16,16,1>UW {align1};
+avg.sat (16) g41.0<1>UW g41.0<16,16,1>UW g65.0<16,16,1>UW {align1};
+avg.sat (16) g42.0<1>UW g42.0<16,16,1>UW g66.0<16,16,1>UW {align1};
+avg.sat (16) g43.0<1>UW g43.0<16,16,1>UW g67.0<16,16,1>UW {align1};
+
+/* UV */
+//Forward
+shr (2) g1.0<1>UD g115.0<2,2,1>UD 1UD {align1};
+asr (2) g115.14<1>W g115.14<2,2,1>W 1W {align1};
+asr (2) g1.14<1>W g115.14<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g1.0<2,2,1>UD g1.14<2,2,1>W {align1};
+
+define(`input_surface1', `5')
+define(`input_surface2', `6')
+define(`mv1', `g115.14')
+define(`mv2', `g115.16')
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+include(`motion_frame_uv.g4i')
+mov (16) g122.0<1>UB g44.0<16,16,2>UB {align1};
+mov (16) g122.16<1>UB g45.0<16,16,2>UB {align1};
+mov (16) g123.0<1>UB g46.0<16,16,2>UB {align1};
+mov (16) g123.16<1>UB g47.0<16,16,2>UB {align1};
+mov (16) g124.0<1>UB g48.0<16,16,2>UB {align1};
+mov (16) g124.16<1>UB g49.0<16,16,2>UB {align1};
+mov (16) g125.0<1>UB g50.0<16,16,2>UB {align1};
+mov (16) g125.16<1>UB g51.0<16,16,2>UB {align1};
+//Backward
+asr (2) g115.18<1>W g115.18<2,2,1>W 1W {align1};
+asr (2) g1.14<1>W g115.18<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g1.0<2,2,1>UD g1.14<2,2,1>W {align1};
+define(`input_surface1', `8')
+define(`input_surface2', `9')
+define(`mv1', `g115.18')
+define(`mv2', `g115.20')
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+include(`motion_frame_uv.g4i')
+
+//Average
+avg.sat (16) g44.0<1>UW g44.0<16,16,1>UW g122.0<16,16,1>UB {align1};
+avg.sat (16) g45.0<1>UW g45.0<16,16,1>UW g122.16<16,16,1>UB {align1};
+avg.sat (16) g46.0<1>UW g46.0<16,16,1>UW g123.0<16,16,1>UB {align1};
+avg.sat (16) g47.0<1>UW g47.0<16,16,1>UW g123.16<16,16,1>UB {align1};
+avg.sat (16) g48.0<1>UW g48.0<16,16,1>UW g124.0<16,16,1>UB {align1};
+avg.sat (16) g49.0<1>UW g49.0<16,16,1>UW g124.16<16,16,1>UB {align1};
+avg.sat (16) g50.0<1>UW g50.0<16,16,1>UW g125.0<16,16,1>UB {align1};
+avg.sat (16) g51.0<1>UW g51.0<16,16,1>UW g125.16<16,16,1>UB {align1};
+
+include(`addidct.g4i')
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/frame_f_b.g4b b/src/xvmc/shader/mc/frame_f_b.g4b
new file mode 100644
index 0000000..760cae1
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_f_b.g4b
@@ -0,0 +1,1257 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00600001, 0x20400021, 0x008d0020, 0x00000000 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e6e, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000012b },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000de },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000092 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000061 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000e5 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x00802001, 0x26800021, 0x00b10380, 0x00000000 },
+ { 0x00802001, 0x26c00021, 0x00b103c0, 0x00000000 },
+ { 0x00802001, 0x27000021, 0x00b10400, 0x00000000 },
+ { 0x00802001, 0x27400021, 0x00b10440, 0x00000000 },
+ { 0x00802001, 0x27800021, 0x00b10480, 0x00000000 },
+ { 0x00802001, 0x27c00021, 0x00b104c0, 0x00000000 },
+ { 0x00802001, 0x28000021, 0x00b10500, 0x00000000 },
+ { 0x00802001, 0x28400021, 0x00b10540, 0x00000000 },
+ { 0x0020000c, 0x202e3dad, 0x00450e72, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e72, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000012b },
+ { 0x01000005, 0x20000d3c, 0x00210e74, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000de },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000092 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000061 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000e5 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x01000005, 0x20000d3c, 0x00210e74, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10380, 0x00b10680 },
+ { 0x80800042, 0x23a02529, 0x00b103a0, 0x00b106a0 },
+ { 0x80800042, 0x23c02529, 0x00b103c0, 0x00b106c0 },
+ { 0x80800042, 0x23e02529, 0x00b103e0, 0x00b106e0 },
+ { 0x80800042, 0x24002529, 0x00b10400, 0x00b10700 },
+ { 0x80800042, 0x24202529, 0x00b10420, 0x00b10720 },
+ { 0x80800042, 0x24402529, 0x00b10440, 0x00b10740 },
+ { 0x80800042, 0x24602529, 0x00b10460, 0x00b10760 },
+ { 0x80800042, 0x24802529, 0x00b10480, 0x00b10780 },
+ { 0x80800042, 0x24a02529, 0x00b104a0, 0x00b107a0 },
+ { 0x80800042, 0x24c02529, 0x00b104c0, 0x00b107c0 },
+ { 0x80800042, 0x24e02529, 0x00b104e0, 0x00b107e0 },
+ { 0x80800042, 0x25002529, 0x00b10500, 0x00b10800 },
+ { 0x80800042, 0x25202529, 0x00b10520, 0x00b10820 },
+ { 0x80800042, 0x25402529, 0x00b10540, 0x00b10840 },
+ { 0x80800042, 0x25602529, 0x00b10560, 0x00b10860 },
+ { 0x00200008, 0x20200c21, 0x00450e60, 0x00000001 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450e6e, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x008d0040, 0x0414a005 },
+ { 0x00800031, 0x2b401d29, 0x008d0040, 0x0414a006 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2f400231, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x2f500231, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x2f600231, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x2f700231, 0x00b205e0, 0x00000000 },
+ { 0x00800001, 0x2f800231, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x2f900231, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x2fa00231, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x2fb00231, 0x00b20660, 0x00000000 },
+ { 0x0020000c, 0x2e723dad, 0x00450e72, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e72, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x008d0040, 0x0414a008 },
+ { 0x00800031, 0x2b401d29, 0x008d0040, 0x0414a009 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x80800042, 0x25804529, 0x00b10580, 0x00b10f40 },
+ { 0x80800042, 0x25a04529, 0x00b105a0, 0x00b10f50 },
+ { 0x80800042, 0x25c04529, 0x00b105c0, 0x00b10f60 },
+ { 0x80800042, 0x25e04529, 0x00b105e0, 0x00b10f70 },
+ { 0x80800042, 0x26004529, 0x00b10600, 0x00b10f80 },
+ { 0x80800042, 0x26204529, 0x00b10620, 0x00b10f90 },
+ { 0x80800042, 0x26404529, 0x00b10640, 0x00b10fa0 },
+ { 0x80800042, 0x26604529, 0x00b10660, 0x00b10fb0 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/frame_f_b.g4b.gen5 b/src/xvmc/shader/mc/frame_f_b.g4b.gen5
new file mode 100644
index 0000000..14497ab
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_f_b.g4b.gen5
@@ -0,0 +1,1257 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00600001, 0x20400021, 0x008d0020, 0x00000000 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e6e, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000256 },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000001bc },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000124 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000c2 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000001ca },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x00802001, 0x26800021, 0x00b10380, 0x00000000 },
+ { 0x00802001, 0x26c00021, 0x00b103c0, 0x00000000 },
+ { 0x00802001, 0x27000021, 0x00b10400, 0x00000000 },
+ { 0x00802001, 0x27400021, 0x00b10440, 0x00000000 },
+ { 0x00802001, 0x27800021, 0x00b10480, 0x00000000 },
+ { 0x00802001, 0x27c00021, 0x00b104c0, 0x00000000 },
+ { 0x00802001, 0x28000021, 0x00b10500, 0x00000000 },
+ { 0x00802001, 0x28400021, 0x00b10540, 0x00000000 },
+ { 0x0020000c, 0x202e3dad, 0x00450e72, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e72, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000256 },
+ { 0x01000005, 0x20000d3c, 0x00210e74, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000001bc },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000124 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000c2 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000001ca },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x01000005, 0x20000d3c, 0x00210e74, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a007 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a007 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x80800042, 0x23802529, 0x00b10380, 0x00b10680 },
+ { 0x80800042, 0x23a02529, 0x00b103a0, 0x00b106a0 },
+ { 0x80800042, 0x23c02529, 0x00b103c0, 0x00b106c0 },
+ { 0x80800042, 0x23e02529, 0x00b103e0, 0x00b106e0 },
+ { 0x80800042, 0x24002529, 0x00b10400, 0x00b10700 },
+ { 0x80800042, 0x24202529, 0x00b10420, 0x00b10720 },
+ { 0x80800042, 0x24402529, 0x00b10440, 0x00b10740 },
+ { 0x80800042, 0x24602529, 0x00b10460, 0x00b10760 },
+ { 0x80800042, 0x24802529, 0x00b10480, 0x00b10780 },
+ { 0x80800042, 0x24a02529, 0x00b104a0, 0x00b107a0 },
+ { 0x80800042, 0x24c02529, 0x00b104c0, 0x00b107c0 },
+ { 0x80800042, 0x24e02529, 0x00b104e0, 0x00b107e0 },
+ { 0x80800042, 0x25002529, 0x00b10500, 0x00b10800 },
+ { 0x80800042, 0x25202529, 0x00b10520, 0x00b10820 },
+ { 0x80800042, 0x25402529, 0x00b10540, 0x00b10840 },
+ { 0x80800042, 0x25602529, 0x00b10560, 0x00b10860 },
+ { 0x00200008, 0x20200c21, 0x00450e60, 0x00000001 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450e6e, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x408d0040, 0x0248a005 },
+ { 0x00800031, 0x2b401d29, 0x408d0040, 0x0248a006 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x00800001, 0x2f400231, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x2f500231, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x2f600231, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x2f700231, 0x00b205e0, 0x00000000 },
+ { 0x00800001, 0x2f800231, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x2f900231, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x2fa00231, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x2fb00231, 0x00b20660, 0x00000000 },
+ { 0x0020000c, 0x2e723dad, 0x00450e72, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e72, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x408d0040, 0x0248a008 },
+ { 0x00800031, 0x2b401d29, 0x408d0040, 0x0248a009 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x80800042, 0x25804529, 0x00b10580, 0x00b10f40 },
+ { 0x80800042, 0x25a04529, 0x00b105a0, 0x00b10f50 },
+ { 0x80800042, 0x25c04529, 0x00b105c0, 0x00b10f60 },
+ { 0x80800042, 0x25e04529, 0x00b105e0, 0x00b10f70 },
+ { 0x80800042, 0x26004529, 0x00b10600, 0x00b10f80 },
+ { 0x80800042, 0x26204529, 0x00b10620, 0x00b10f90 },
+ { 0x80800042, 0x26404529, 0x00b10640, 0x00b10fa0 },
+ { 0x80800042, 0x26604529, 0x00b10660, 0x00b10fb0 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/frame_f_b_igd.g4a b/src/xvmc/shader/mc/frame_f_b_igd.g4a
new file mode 100644
index 0000000..35231f1
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_f_b_igd.g4a
@@ -0,0 +1,96 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+/*
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+define(`UV_red',`0xffffffffUD')
+define(`UV_white',`0x7f7f7f7fUD')
+define(`UV_green',`0x00000000UD')
+mov(1) g31.8<1>UD 0x000f000fUD { align1 };
+mov(16) m1<1>UD 0xFFFFFFFFUD {align1 compr};
+mov(16) m3<1>UD 0xFFFFFFFFUD {align1 compr};
+mov(16) m5<1>UD 0xFFFFFFFFUD {align1 compr};
+mov(16) m7<1>UD 0xFFFFFFFFUD {align1 compr};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(0, 0, 2, 0) mlen 9 rlen 0 { align1 };
+shr (2) g31.0<1>UD g82.0<2,2,1>UD 1UW {align1};
+mov(1) g31.8<1>UD 0x00070007UD { align1 };
+mov (16) m1<1>UD UV_green {align1 compr};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
+*/
+
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x50UD {align1}; //jump to the lib to do IDCT
+
+//Y, Forward
+asr (2) g31.14<1>W g82.14<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g32.16<1>UW 0UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A4EUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x0UD {align1}; //jump to the lib to read reference data
+
+//Save Forward
+mov (16) g108.0<1>UD g58.0<16,16,1>UD {align1 compr};
+mov (16) g110.0<1>UD g60.0<16,16,1>UD {align1 compr};
+mov (16) g112.0<1>UD g62.0<16,16,1>UD {align1 compr};
+mov (16) g114.0<1>UD g64.0<16,16,1>UD {align1 compr};
+mov (16) g116.0<1>UD g66.0<16,16,1>UD {align1 compr};
+mov (16) g118.0<1>UD g68.0<16,16,1>UD {align1 compr};
+mov (16) g120.0<1>UD g70.0<16,16,1>UD {align1 compr};
+mov (16) g122.0<1>UD g72.0<16,16,1>UD {align1 compr};
+
+//Y, Backward
+asr (2) g31.14<1>W g82.18<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g32.16<1>UW 1UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A52UD {align1}; //g82.18,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x0UD {align1}; //jump to the lib to read reference data
+//Average Forward and Backward
+avg (32) g58.0<1>UW g58.0<16,16,1>UW g108.0<16,16,1>UW {align1 compr};
+avg (32) g60.0<1>UW g60.0<16,16,1>UW g110.0<16,16,1>UW {align1 compr};
+avg (32) g62.0<1>UW g62.0<16,16,1>UW g112.0<16,16,1>UW {align1 compr};
+avg (32) g64.0<1>UW g64.0<16,16,1>UW g114.0<16,16,1>UW {align1 compr};
+avg (32) g66.0<1>UW g66.0<16,16,1>UW g116.0<16,16,1>UW {align1 compr};
+avg (32) g68.0<1>UW g68.0<16,16,1>UW g118.0<16,16,1>UW {align1 compr};
+avg (32) g70.0<1>UW g70.0<16,16,1>UW g120.0<16,16,1>UW {align1 compr};
+avg (32) g72.0<1>UW g72.0<16,16,1>UW g122.0<16,16,1>UW {align1 compr};
+
+//UV, Forward
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g31.14<1>W g82.14<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g32.16<1>UW 0UW {align1}; //0:forward 1:backward
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x10UD {align1}; //jump to the lib to read reference data
+
+//Save UV Forward
+mov (32) g108.0<1>UW g74.0<16,16,1>UW {align1 compr};
+mov (32) g110.0<1>UW g76.0<16,16,1>UW {align1 compr};
+mov (32) g112.0<1>UW g78.0<16,16,1>UW {align1 compr};
+mov (32) g114.0<1>UW g80.0<16,16,1>UW {align1 compr};
+//UV, Backward
+asr (2) g31.14<1>W g82.18<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g32.16<1>UW 1UW {align1}; //0:forward 1:backward
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x10UD {align1}; //jump to the lib to read reference data
+
+//Average Forward and Backward
+avg (32) g74.0<1>UW g74.0<16,16,1>UW g108.0<16,16,1>UW {align1 compr};
+avg (32) g76.0<1>UW g76.0<16,16,1>UW g110.0<16,16,1>UW {align1 compr};
+avg (32) g78.0<1>UW g78.0<16,16,1>UW g112.0<16,16,1>UW {align1 compr};
+avg (32) g80.0<1>UW g80.0<16,16,1>UW g114.0<16,16,1>UW {align1 compr};
+
+add (1) ip g21.0<1,1,1>UD 0x40UD {align1}; //jump to the lib to add the reference and idct data
diff --git a/src/xvmc/shader/mc/frame_f_b_igd.g4b b/src/xvmc/shader/mc/frame_f_b_igd.g4b
new file mode 100644
index 0000000..6505aec
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_f_b_igd.g4b
@@ -0,0 +1,51 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00802001, 0x2d800021, 0x00b10740, 0x00000000 },
+ { 0x00802001, 0x2dc00021, 0x00b10780, 0x00000000 },
+ { 0x00802001, 0x2e000021, 0x00b107c0, 0x00000000 },
+ { 0x00802001, 0x2e400021, 0x00b10800, 0x00000000 },
+ { 0x00802001, 0x2e800021, 0x00b10840, 0x00000000 },
+ { 0x00802001, 0x2ec00021, 0x00b10880, 0x00000000 },
+ { 0x00802001, 0x2f000021, 0x00b108c0, 0x00000000 },
+ { 0x00802001, 0x2f400021, 0x00b10900, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00a02042, 0x27402529, 0x00b10740, 0x00b10d80 },
+ { 0x00a02042, 0x27802529, 0x00b10780, 0x00b10dc0 },
+ { 0x00a02042, 0x27c02529, 0x00b107c0, 0x00b10e00 },
+ { 0x00a02042, 0x28002529, 0x00b10800, 0x00b10e40 },
+ { 0x00a02042, 0x28402529, 0x00b10840, 0x00b10e80 },
+ { 0x00a02042, 0x28802529, 0x00b10880, 0x00b10ec0 },
+ { 0x00a02042, 0x28c02529, 0x00b108c0, 0x00b10f00 },
+ { 0x00a02042, 0x29002529, 0x00b10900, 0x00b10f40 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00a02001, 0x2d800129, 0x00b10940, 0x00000000 },
+ { 0x00a02001, 0x2dc00129, 0x00b10980, 0x00000000 },
+ { 0x00a02001, 0x2e000129, 0x00b109c0, 0x00000000 },
+ { 0x00a02001, 0x2e400129, 0x00b10a00, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00a02042, 0x29402529, 0x00b10940, 0x00b10d80 },
+ { 0x00a02042, 0x29802529, 0x00b10980, 0x00b10dc0 },
+ { 0x00a02042, 0x29c02529, 0x00b109c0, 0x00b10e00 },
+ { 0x00a02042, 0x2a002529, 0x00b10a00, 0x00b10e40 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/frame_f_b_igd.g4b.gen5 b/src/xvmc/shader/mc/frame_f_b_igd.g4b.gen5
new file mode 100644
index 0000000..6505aec
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_f_b_igd.g4b.gen5
@@ -0,0 +1,51 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00802001, 0x2d800021, 0x00b10740, 0x00000000 },
+ { 0x00802001, 0x2dc00021, 0x00b10780, 0x00000000 },
+ { 0x00802001, 0x2e000021, 0x00b107c0, 0x00000000 },
+ { 0x00802001, 0x2e400021, 0x00b10800, 0x00000000 },
+ { 0x00802001, 0x2e800021, 0x00b10840, 0x00000000 },
+ { 0x00802001, 0x2ec00021, 0x00b10880, 0x00000000 },
+ { 0x00802001, 0x2f000021, 0x00b108c0, 0x00000000 },
+ { 0x00802001, 0x2f400021, 0x00b10900, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a52 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00a02042, 0x27402529, 0x00b10740, 0x00b10d80 },
+ { 0x00a02042, 0x27802529, 0x00b10780, 0x00b10dc0 },
+ { 0x00a02042, 0x27c02529, 0x00b107c0, 0x00b10e00 },
+ { 0x00a02042, 0x28002529, 0x00b10800, 0x00b10e40 },
+ { 0x00a02042, 0x28402529, 0x00b10840, 0x00b10e80 },
+ { 0x00a02042, 0x28802529, 0x00b10880, 0x00b10ec0 },
+ { 0x00a02042, 0x28c02529, 0x00b108c0, 0x00b10f00 },
+ { 0x00a02042, 0x29002529, 0x00b10900, 0x00b10f40 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00a02001, 0x2d800129, 0x00b10940, 0x00000000 },
+ { 0x00a02001, 0x2dc00129, 0x00b10980, 0x00000000 },
+ { 0x00a02001, 0x2e000129, 0x00b109c0, 0x00000000 },
+ { 0x00a02001, 0x2e400129, 0x00b10a00, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a52, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00010001 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00a02042, 0x29402529, 0x00b10940, 0x00b10d80 },
+ { 0x00a02042, 0x29802529, 0x00b10980, 0x00b10dc0 },
+ { 0x00a02042, 0x29c02529, 0x00b109c0, 0x00b10e00 },
+ { 0x00a02042, 0x2a002529, 0x00b10a00, 0x00b10e40 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/frame_forward.g4a b/src/xvmc/shader/mc/frame_forward.g4a
new file mode 100644
index 0000000..925d568
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_forward.g4a
@@ -0,0 +1,65 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+
+/* shader for backward predict mc
+*/
+
+/* save payload */
+mov (8) g76.0<1>UD g1.0<8,8,1>UD {align1};
+//mov (8) g77.0<1>UD g2.0<8,8,1>UD {align1};
+
+include(`block_clear.g4i')
+
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+mov (1) g1.8<1>UD 0x0070007UD {align1};
+define(`input_surface', `4')
+define(`mv1', `g115.14')
+define(`mv2', `g115.16')
+/* Y */
+/* (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1) */
+asr (2) g1.14<1>W g115.14<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g115.0<2,2,1>UD g1.14<2,2,1>W {align1};
+include(`motion_frame_y.g4i')
+/* motion_vector = motion_vector >> 1 */
+/* (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1) */
+/* U */
+shr (2) g1.0<1>UD g115.0<2,2,1>UD 1UD {align1};
+asr (2) g115.14<1>W g115.14<2,2,1>W 1W {align1};
+asr (2) g1.14<1>W g115.14<2,2,1>W 1W {align1};
+add (2) g2.0<1>UD g1.0<2,2,1>UD g1.14<2,2,1>W {align1};
+define(`input_surface1', `5')
+define(`input_surface2', `6')
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+include(`motion_frame_uv.g4i')
+/* V */
+/* (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1) */
+include(`addidct.g4i')
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/frame_forward.g4b b/src/xvmc/shader/mc/frame_forward.g4b
new file mode 100644
index 0000000..efbd20c
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_forward.g4b
@@ -0,0 +1,715 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e6e, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000012b },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000de },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000092 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000061 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000e5 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009a },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x008d0040, 0x0411a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x008d0040, 0x0418a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x00200008, 0x20200c21, 0x00450e60, 0x00000001 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450e6e, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x008d0040, 0x0414a005 },
+ { 0x00800031, 0x2b401d29, 0x008d0040, 0x0414a006 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/frame_forward.g4b.gen5 b/src/xvmc/shader/mc/frame_forward.g4b.gen5
new file mode 100644
index 0000000..9f90e7e
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_forward.g4b.gen5
@@ -0,0 +1,715 @@
+ { 0x00600001, 0x29800021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210988, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x02000005, 0x20002d3c, 0x0021098c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x20700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x20f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21a00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21c00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21e00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22400169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x21700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21b00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21d00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x21f00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x22500169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22a00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x22c00169, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x0021002c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x22e00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x23400169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450e60, 0x0045002e },
+ { 0x01000005, 0x20000d3c, 0x00210e6e, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000256 },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000001bc },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000031 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800040, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x00800040, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x00800040, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x00800040, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x00800040, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x00800040, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x00800040, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x00800040, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x00800040, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x00800040, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x00800040, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x00800040, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x00800040, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x00800040, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x00800040, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x00800040, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c60 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c80 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca0 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc0 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce0 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d00 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d20 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d40 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d60 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d80 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da0 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc0 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de0 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e00 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e20 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f00 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000124 },
+ { 0x00800040, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x00800040, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x00800040, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x00800040, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x00800040, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x00800040, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x00800040, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x00800040, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x00800040, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x00800040, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x00800040, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x00800040, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x00800040, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x00800040, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x00800040, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x00800040, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c61 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c81 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca1 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce1 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d01 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d21 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d41 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d61 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d81 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc1 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de1 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e01 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e21 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f01 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000c2 },
+ { 0x00800040, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x00800040, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x00800040, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x00800040, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x00800040, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x00800040, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x00800040, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x00800040, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x00800040, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x00800040, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x00800040, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x00800040, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x00800040, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x00800040, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x00800040, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x00800040, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c62 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c82 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca2 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc2 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce2 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d02 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d22 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d42 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d62 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d82 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da2 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc2 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de2 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e02 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e22 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f02 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00800040, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x00800040, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x00800040, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x00800040, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x00800040, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x00800040, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x00800040, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x00800040, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x00800040, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x00800040, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x00800040, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x00800040, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x00800040, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x00800040, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x00800040, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x00800040, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c63 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c83 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca3 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc3 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce3 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d03 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d23 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d43 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d63 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d83 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da3 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc3 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de3 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e03 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e23 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f03 },
+ { 0x00800040, 0x23804529, 0x00b10380, 0x00b10c64 },
+ { 0x00800040, 0x23a04529, 0x00b103a0, 0x00b10c84 },
+ { 0x00800040, 0x23c04529, 0x00b103c0, 0x00b10ca4 },
+ { 0x00800040, 0x23e04529, 0x00b103e0, 0x00b10cc4 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10ce4 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10d04 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10d24 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10d44 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10d64 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10d84 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10da4 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10dc4 },
+ { 0x00800040, 0x25004529, 0x00b10500, 0x00b10de4 },
+ { 0x00800040, 0x25204529, 0x00b10520, 0x00b10e04 },
+ { 0x00800040, 0x25404529, 0x00b10540, 0x00b10e24 },
+ { 0x00800040, 0x25604529, 0x00b10560, 0x00b10f04 },
+ { 0x80800008, 0x23802d29, 0x00b10380, 0x00020002 },
+ { 0x80800008, 0x23a02d29, 0x00b103a0, 0x00020002 },
+ { 0x80800008, 0x23c02d29, 0x00b103c0, 0x00020002 },
+ { 0x80800008, 0x23e02d29, 0x00b103e0, 0x00020002 },
+ { 0x80800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x80800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x80800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x80800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x80800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x80800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x80800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x80800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x80800008, 0x25002d29, 0x00b10500, 0x00020002 },
+ { 0x80800008, 0x25202d29, 0x00b10520, 0x00020002 },
+ { 0x80800008, 0x25402d29, 0x00b10540, 0x00020002 },
+ { 0x80800008, 0x25602d29, 0x00b10560, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000001ca },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20581c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c41 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c61 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10c81 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10ca1 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10cc1 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10ce1 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d01 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d21 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d41 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d61 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10d81 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10da1 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10dc1 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10de1 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e01 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10e21 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c42 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c62 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10c82 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10ca2 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10cc2 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10ce2 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d02 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d22 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d42 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d62 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10d82 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10da2 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10dc2 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10de2 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e02 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10e22 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c43 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c63 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10c83 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10ca3 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10cc3 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10ce3 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d03 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d23 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d43 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d63 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10d83 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10da3 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10dc3 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10de3 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e03 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10e23 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c44 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c64 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10c84 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10ca4 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10cc4 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10ce4 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d04 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d24 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d44 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d64 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10d84 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10da4 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10dc4 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10de4 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e04 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10e24 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000134 },
+ { 0x01000005, 0x20000d3c, 0x00210e70, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x2f001d29, 0x408d0040, 0x0218a004 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x80800042, 0x23804629, 0x00b10c40, 0x00b10c60 },
+ { 0x80800042, 0x23a04629, 0x00b10c60, 0x00b10c80 },
+ { 0x80800042, 0x23c04629, 0x00b10c80, 0x00b10ca0 },
+ { 0x80800042, 0x23e04629, 0x00b10ca0, 0x00b10cc0 },
+ { 0x80800042, 0x24004629, 0x00b10cc0, 0x00b10ce0 },
+ { 0x80800042, 0x24204629, 0x00b10ce0, 0x00b10d00 },
+ { 0x80800042, 0x24404629, 0x00b10d00, 0x00b10d20 },
+ { 0x80800042, 0x24604629, 0x00b10d20, 0x00b10d40 },
+ { 0x80800042, 0x24804629, 0x00b10d40, 0x00b10d60 },
+ { 0x80800042, 0x24a04629, 0x00b10d60, 0x00b10d80 },
+ { 0x80800042, 0x24c04629, 0x00b10d80, 0x00b10da0 },
+ { 0x80800042, 0x24e04629, 0x00b10da0, 0x00b10dc0 },
+ { 0x80800042, 0x25004629, 0x00b10dc0, 0x00b10de0 },
+ { 0x80800042, 0x25204629, 0x00b10de0, 0x00b10e00 },
+ { 0x80800042, 0x25404629, 0x00b10e00, 0x00b10e20 },
+ { 0x80800042, 0x25604629, 0x00b10e20, 0x00b10f00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x80800042, 0x23804629, 0x00b10c41, 0x00b10c61 },
+ { 0x80800042, 0x23a04629, 0x00b10c61, 0x00b10c81 },
+ { 0x80800042, 0x23c04629, 0x00b10c81, 0x00b10ca1 },
+ { 0x80800042, 0x23e04629, 0x00b10ca1, 0x00b10cc1 },
+ { 0x80800042, 0x24004629, 0x00b10cc1, 0x00b10ce1 },
+ { 0x80800042, 0x24204629, 0x00b10ce1, 0x00b10d01 },
+ { 0x80800042, 0x24404629, 0x00b10d01, 0x00b10d21 },
+ { 0x80800042, 0x24604629, 0x00b10d21, 0x00b10d41 },
+ { 0x80800042, 0x24804629, 0x00b10d41, 0x00b10d61 },
+ { 0x80800042, 0x24a04629, 0x00b10d61, 0x00b10d81 },
+ { 0x80800042, 0x24c04629, 0x00b10d81, 0x00b10da1 },
+ { 0x80800042, 0x24e04629, 0x00b10da1, 0x00b10dc1 },
+ { 0x80800042, 0x25004629, 0x00b10dc1, 0x00b10de1 },
+ { 0x80800042, 0x25204629, 0x00b10de1, 0x00b10e01 },
+ { 0x80800042, 0x25404629, 0x00b10e01, 0x00b10e21 },
+ { 0x80800042, 0x25604629, 0x00b10e21, 0x00b10f01 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x80800042, 0x23804629, 0x00b10c42, 0x00b10c62 },
+ { 0x80800042, 0x23a04629, 0x00b10c62, 0x00b10c82 },
+ { 0x80800042, 0x23c04629, 0x00b10c82, 0x00b10ca2 },
+ { 0x80800042, 0x23e04629, 0x00b10ca2, 0x00b10cc2 },
+ { 0x80800042, 0x24004629, 0x00b10cc2, 0x00b10ce2 },
+ { 0x80800042, 0x24204629, 0x00b10ce2, 0x00b10d02 },
+ { 0x80800042, 0x24404629, 0x00b10d02, 0x00b10d22 },
+ { 0x80800042, 0x24604629, 0x00b10d22, 0x00b10d42 },
+ { 0x80800042, 0x24804629, 0x00b10d42, 0x00b10d62 },
+ { 0x80800042, 0x24a04629, 0x00b10d62, 0x00b10d82 },
+ { 0x80800042, 0x24c04629, 0x00b10d82, 0x00b10da2 },
+ { 0x80800042, 0x24e04629, 0x00b10da2, 0x00b10dc2 },
+ { 0x80800042, 0x25004629, 0x00b10dc2, 0x00b10de2 },
+ { 0x80800042, 0x25204629, 0x00b10de2, 0x00b10e02 },
+ { 0x80800042, 0x25404629, 0x00b10e02, 0x00b10e22 },
+ { 0x80800042, 0x25604629, 0x00b10e22, 0x00b10f02 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800042, 0x23804629, 0x00b10c43, 0x00b10c63 },
+ { 0x80800042, 0x23a04629, 0x00b10c63, 0x00b10c83 },
+ { 0x80800042, 0x23c04629, 0x00b10c83, 0x00b10ca3 },
+ { 0x80800042, 0x23e04629, 0x00b10ca3, 0x00b10cc3 },
+ { 0x80800042, 0x24004629, 0x00b10cc3, 0x00b10ce3 },
+ { 0x80800042, 0x24204629, 0x00b10ce3, 0x00b10d03 },
+ { 0x80800042, 0x24404629, 0x00b10d03, 0x00b10d23 },
+ { 0x80800042, 0x24604629, 0x00b10d23, 0x00b10d43 },
+ { 0x80800042, 0x24804629, 0x00b10d43, 0x00b10d63 },
+ { 0x80800042, 0x24a04629, 0x00b10d63, 0x00b10d83 },
+ { 0x80800042, 0x24c04629, 0x00b10d83, 0x00b10da3 },
+ { 0x80800042, 0x24e04629, 0x00b10da3, 0x00b10dc3 },
+ { 0x80800042, 0x25004629, 0x00b10dc3, 0x00b10de3 },
+ { 0x80800042, 0x25204629, 0x00b10de3, 0x00b10e03 },
+ { 0x80800042, 0x25404629, 0x00b10e03, 0x00b10e23 },
+ { 0x80800042, 0x25604629, 0x00b10e23, 0x00b10f03 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000094 },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x2c401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000040, 0x20440c21, 0x00210044, 0x00000008 },
+ { 0x00800031, 0x2d401d29, 0x408d0040, 0x0288a004 },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000011 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x23800229, 0x00b10c40, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c60, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c80, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca0, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce0, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d00, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d20, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d60, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d80, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da0, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc0, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de0, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e00, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e20, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x00800001, 0x23800229, 0x00b10c41, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c61, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c81, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca1, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc1, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce1, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d01, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d21, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d41, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d61, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d81, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da1, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc1, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de1, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e01, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e21, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x00800001, 0x23800229, 0x00b10c42, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c62, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c82, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca2, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc2, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce2, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d02, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d22, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d42, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d62, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d82, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da2, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc2, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de2, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e02, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e22, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800001, 0x23800229, 0x00b10c43, 0x00000000 },
+ { 0x00800001, 0x23a00229, 0x00b10c63, 0x00000000 },
+ { 0x00800001, 0x23c00229, 0x00b10c83, 0x00000000 },
+ { 0x00800001, 0x23e00229, 0x00b10ca3, 0x00000000 },
+ { 0x00800001, 0x24000229, 0x00b10cc3, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10ce3, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10d03, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b10d23, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10d43, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10d63, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10d83, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b10da3, 0x00000000 },
+ { 0x00800001, 0x25000229, 0x00b10dc3, 0x00000000 },
+ { 0x00800001, 0x25200229, 0x00b10de3, 0x00000000 },
+ { 0x00800001, 0x25400229, 0x00b10e03, 0x00000000 },
+ { 0x00800001, 0x25600229, 0x00b10e23, 0x00000000 },
+ { 0x00200008, 0x20200c21, 0x00450e60, 0x00000001 },
+ { 0x0020000c, 0x2e6e3dad, 0x00450e6e, 0x00010001 },
+ { 0x0020000c, 0x202e3dad, 0x00450e6e, 0x00010001 },
+ { 0x00200040, 0x20403421, 0x00450020, 0x0045002e },
+ { 0x00000001, 0x20480061, 0x00000000, 0x0007000f },
+ { 0x00000005, 0x20580c21, 0x00210040, 0x00000003 },
+ { 0x00800031, 0x2ac01d29, 0x408d0040, 0x0248a005 },
+ { 0x00800031, 0x2b401d29, 0x408d0040, 0x0248a006 },
+ { 0x00000041, 0x20580c21, 0x00210058, 0x00000009 },
+ { 0x00000020, 0x34001400, 0x00001400, 0x00210058 },
+ { 0x00800001, 0x25800229, 0x00ad0ac0, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae0, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b00, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b20, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b40, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b60, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b80, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba0, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00800001, 0x25800229, 0x00ad0ac1, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae1, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b01, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b21, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b41, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b61, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b81, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba1, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x25800229, 0x00ad0ac2, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae2, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b02, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b22, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b42, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b62, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b82, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba2, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x25800229, 0x00ad0ac3, 0x00000000 },
+ { 0x00800001, 0x25a00229, 0x00ad0ae3, 0x00000000 },
+ { 0x00800001, 0x25c00229, 0x00ad0b03, 0x00000000 },
+ { 0x00800001, 0x25e00229, 0x00ad0b23, 0x00000000 },
+ { 0x00800001, 0x26000229, 0x00ad0b43, 0x00000000 },
+ { 0x00800001, 0x26200229, 0x00ad0b63, 0x00000000 },
+ { 0x00800001, 0x26400229, 0x00ad0b83, 0x00000000 },
+ { 0x00800001, 0x26600229, 0x00ad0ba3, 0x00000000 },
+ { 0x00600001, 0x20200021, 0x008d0980, 0x00000000 },
+ { 0x00800001, 0x458101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45a101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45c101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x45e101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x460101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x462101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x464101f1, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x466101f1, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10080, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b100a0, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b100c0, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100e0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b10100, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b10120, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b10140, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b10160, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b10180, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b101a0, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b101c0, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b101e0, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10200, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10220, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x238045ad, 0x00b10060, 0x00b20380 },
+ { 0x00800040, 0x23a045ad, 0x00b10160, 0x00b203a0 },
+ { 0x00800040, 0x23c045ad, 0x00b10080, 0x00b203c0 },
+ { 0x00800040, 0x23e045ad, 0x00b10180, 0x00b203e0 },
+ { 0x00800040, 0x240045ad, 0x00b100a0, 0x00b20400 },
+ { 0x00800040, 0x242045ad, 0x00b101a0, 0x00b20420 },
+ { 0x00800040, 0x244045ad, 0x00b100c0, 0x00b20440 },
+ { 0x00800040, 0x246045ad, 0x00b101c0, 0x00b20460 },
+ { 0x00800040, 0x248045ad, 0x00b100e0, 0x00b20480 },
+ { 0x00800040, 0x24a045ad, 0x00b101e0, 0x00b204a0 },
+ { 0x00800040, 0x24c045ad, 0x00b10100, 0x00b204c0 },
+ { 0x00800040, 0x24e045ad, 0x00b10200, 0x00b204e0 },
+ { 0x00800040, 0x250045ad, 0x00b10120, 0x00b20500 },
+ { 0x00800040, 0x252045ad, 0x00b10220, 0x00b20520 },
+ { 0x00800040, 0x254045ad, 0x00b10140, 0x00b20540 },
+ { 0x00800040, 0x256045ad, 0x00b10240, 0x00b20560 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x438001b1, 0x00b10380, 0x00000000 },
+ { 0x80800001, 0x43a001b1, 0x00b103a0, 0x00000000 },
+ { 0x80800001, 0x43c001b1, 0x00b103c0, 0x00000000 },
+ { 0x80800001, 0x43e001b1, 0x00b103e0, 0x00000000 },
+ { 0x80800001, 0x440001b1, 0x00b10400, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20380, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b203a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b203c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b203e0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20400, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20560, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450020, 0x00000001 },
+ { 0x00800040, 0x258025a9, 0x00b10260, 0x00b10580 },
+ { 0x00800040, 0x25a025a9, 0x00b10280, 0x00b105a0 },
+ { 0x00800040, 0x25c025a9, 0x00b102a0, 0x00b105c0 },
+ { 0x00800040, 0x25e025a9, 0x00b102c0, 0x00b105e0 },
+ { 0x80800001, 0x45800131, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a00131, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c00131, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e00131, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b205e0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800040, 0x260025a9, 0x00b102e0, 0x00b10600 },
+ { 0x00800040, 0x262025a9, 0x00b10300, 0x00b10620 },
+ { 0x00800040, 0x264025a9, 0x00b10320, 0x00b10640 },
+ { 0x00800040, 0x266025a9, 0x00b10340, 0x00b10660 },
+ { 0x80800001, 0x46000131, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x46200131, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x46400131, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x46600131, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20600, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20660, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/frame_forward_igd.g4a b/src/xvmc/shader/mc/frame_forward_igd.g4a
new file mode 100644
index 0000000..11928ea
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_forward_igd.g4a
@@ -0,0 +1,30 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x50UD {align1}; //jump to the lib to do IDCT
+
+//Y, (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1)
+asr (2) g31.14<1>W g82.14<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g32.16<1>UW 0UW {align1}; //0:forward 1:backward
+mov (1) a0.0<1>UD 0x0A4EUD {align1}; //g82.14,motion vector
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x00UD {align1}; //jump to the lib to read reference data
+
+//UV, (x', y') = (x >> 1, y >> 1) + (motion_vector.x >> 2, motion_vector.y >> 2)
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g31.14<1>W g82.14<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+mov (1) g126.8<1>UD ip {align1};
+add (1) ip g21.0<1,1,1>UD 0x10UD {align1}; //jump to the lib to read reference data
+
+add (1) ip g21.0<1,1,1>UD 0x40UD {align1}; //jump to the lib to add the reference and idct data
diff --git a/src/xvmc/shader/mc/frame_forward_igd.g4b b/src/xvmc/shader/mc/frame_forward_igd.g4b
new file mode 100644
index 0000000..ea7ecf8
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_forward_igd.g4b
@@ -0,0 +1,15 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/frame_forward_igd.g4b.gen5 b/src/xvmc/shader/mc/frame_forward_igd.g4b.gen5
new file mode 100644
index 0000000..ea7ecf8
--- /dev/null
+++ b/src/xvmc/shader/mc/frame_forward_igd.g4b.gen5
@@ -0,0 +1,15 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000050 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24100169, 0x00000000, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x00000a4e },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a4e, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000010 },
+ { 0x00000040, 0x34000c20, 0x002102a0, 0x00000040 },
diff --git a/src/xvmc/shader/mc/ipicture.g4a b/src/xvmc/shader/mc/ipicture.g4a
new file mode 100644
index 0000000..afd5bc3
--- /dev/null
+++ b/src/xvmc/shader/mc/ipicture.g4a
@@ -0,0 +1,166 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (8) g115.0<1>UD g1.0<8,8,1>UD {align1};
+
+and.nz (1) null g2.0<1,1,1>UD 0x1UD{align1};
+(f0) jmpi direct_idct;
+add (1) g2.8<1>UD g115.8<1,1,1>UD 0UD{align1};
+send (16) 0 g3.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g4.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g5.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g6.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g7.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g8.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g9.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g10.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g11.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g12.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g13.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g14.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g15.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g16.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g17.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g18.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g19.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g20.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g21.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g22.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g23<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g24.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g25.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+add (1) g2.8<1>UD g2.8<1,1,1>UD 32UD {align1};
+send (16) 0 g26.0<1>UD g2<16,16,1>UD read(3, 0, 2, 0) mlen 1 rlen 1 { align1 };
+direct_idct:
+mov (1) g1.8<1>UD 0x00F000FUD {align1};
+mov.sat (16) g3.0<2>UB g3.0<16,16,1>W {align1};
+mov.sat (16) g4.0<2>UB g4.0<16,16,1>W {align1};
+mov.sat (16) g5.0<2>UB g5.0<16,16,1>W {align1};
+mov.sat (16) g6.0<2>UB g6.0<16,16,1>W {align1};
+mov.sat (16) g7.0<2>UB g7.0<16,16,1>W {align1};
+mov.sat (16) g8.0<2>UB g8.0<16,16,1>W {align1};
+mov.sat (16) g9.0<2>UB g9.0<16,16,1>W {align1};
+mov.sat (16) g10.0<2>UB g10.0<16,16,1>W {align1};
+mov.sat (16) g11.0<2>UB g11.0<16,16,1>W {align1};
+mov.sat (16) g12.0<2>UB g12.0<16,16,1>W {align1};
+mov.sat (16) g13.0<2>UB g13.0<16,16,1>W {align1};
+mov.sat (16) g14.0<2>UB g14.0<16,16,1>W {align1};
+mov.sat (16) g15.0<2>UB g15.0<16,16,1>W {align1};
+mov.sat (16) g16.0<2>UB g16.0<16,16,1>W {align1};
+mov.sat (16) g17.0<2>UB g17.0<16,16,1>W {align1};
+mov.sat (16) g18.0<2>UB g18.0<16,16,1>W {align1};
+
+and.nz (1) null g1.30<1,1,1>UB 0x1UW{align1};
+(f0) jmpi field_dct;
+//Frame IDCT
+mov (16) m1.0<1>UB g3.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g4.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g5.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g6.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g7.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g8.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g9.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g10.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g11.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g12.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g13.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g14.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g15.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g16.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g17.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g18.0<16,16,2>UB {align1};
+jmpi write_back;
+
+field_dct:
+//Field IDCT
+mov (16) m1.0<1>UB g3.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g11.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g4.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g12.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g5.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g13.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g6.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g14.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g7.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g15.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g8.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g16.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g9.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g17.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g10.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g18.0<16,16,2>UB {align1};
+
+write_back:
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(0,0,2,0) mlen 9 rlen 0 {align1};
+//U
+mov (1) g1.8<1>UD 0x0070007UD { align1 };
+shr (2) g1.0<1>UD g115.0<2,2,1>UD 1D {align1};
+mov.sat (16) g19.0<2>UB g19.0<16,16,1>W {align1};
+mov.sat (16) g20.0<2>UB g20.0<16,16,1>W {align1};
+mov.sat (16) g21.0<2>UB g21.0<16,16,1>W {align1};
+mov.sat (16) g22.0<2>UB g22.0<16,16,1>W {align1};
+mov (16) m1.0<1>UB g19.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g20.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g21.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g22.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+//V
+mov.sat (16) g23.0<2>UB g23.0<16,16,1>W {align1};
+mov.sat (16) g24.0<2>UB g24.0<16,16,1>W {align1};
+mov.sat (16) g25.0<2>UB g25.0<16,16,1>W {align1};
+mov.sat (16) g26.0<2>UB g26.0<16,16,1>W {align1};
+mov (16) m1.0<1>UB g23.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g24.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g25.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g26.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/ipicture.g4b b/src/xvmc/shader/mc/ipicture.g4b
new file mode 100644
index 0000000..10be527
--- /dev/null
+++ b/src/xvmc/shader/mc/ipicture.g4b
@@ -0,0 +1,125 @@
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000040, 0x20480c21, 0x00210e68, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x00b10040, 0x04110203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x00b10040, 0x04110203 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x406001b1, 0x00b10060, 0x00000000 },
+ { 0x80800001, 0x408001b1, 0x00b10080, 0x00000000 },
+ { 0x80800001, 0x40a001b1, 0x00b100a0, 0x00000000 },
+ { 0x80800001, 0x40c001b1, 0x00b100c0, 0x00000000 },
+ { 0x80800001, 0x40e001b1, 0x00b100e0, 0x00000000 },
+ { 0x80800001, 0x410001b1, 0x00b10100, 0x00000000 },
+ { 0x80800001, 0x412001b1, 0x00b10120, 0x00000000 },
+ { 0x80800001, 0x414001b1, 0x00b10140, 0x00000000 },
+ { 0x80800001, 0x416001b1, 0x00b10160, 0x00000000 },
+ { 0x80800001, 0x418001b1, 0x00b10180, 0x00000000 },
+ { 0x80800001, 0x41a001b1, 0x00b101a0, 0x00000000 },
+ { 0x80800001, 0x41c001b1, 0x00b101c0, 0x00000000 },
+ { 0x80800001, 0x41e001b1, 0x00b101e0, 0x00000000 },
+ { 0x80800001, 0x420001b1, 0x00b10200, 0x00000000 },
+ { 0x80800001, 0x422001b1, 0x00b10220, 0x00000000 },
+ { 0x80800001, 0x424001b1, 0x00b10240, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x20200232, 0x00b20060, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20080, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b200a0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b200c0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b200e0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20100, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20120, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20140, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20160, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20180, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b201a0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b201c0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b201e0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20200, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20220, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20240, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x20200232, 0x00b20060, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20160, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20080, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20180, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b200a0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b201a0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b200c0, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b201c0, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b200e0, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b201e0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20100, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20200, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20120, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20220, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20140, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20240, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05902000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450e60, 0x00000001 },
+ { 0x80800001, 0x426001b1, 0x00b10260, 0x00000000 },
+ { 0x80800001, 0x428001b1, 0x00b10280, 0x00000000 },
+ { 0x80800001, 0x42a001b1, 0x00b102a0, 0x00000000 },
+ { 0x80800001, 0x42c001b1, 0x00b102c0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20260, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20280, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b202a0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b202c0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x80800001, 0x42e001b1, 0x00b102e0, 0x00000000 },
+ { 0x80800001, 0x430001b1, 0x00b10300, 0x00000000 },
+ { 0x80800001, 0x432001b1, 0x00b10320, 0x00000000 },
+ { 0x80800001, 0x434001b1, 0x00b10340, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b202e0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20300, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20320, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20340, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/ipicture.g4b.gen5 b/src/xvmc/shader/mc/ipicture.g4b.gen5
new file mode 100644
index 0000000..216883f
--- /dev/null
+++ b/src/xvmc/shader/mc/ipicture.g4b.gen5
@@ -0,0 +1,125 @@
+ { 0x00600001, 0x2e600021, 0x008d0020, 0x00000000 },
+ { 0x02000005, 0x20000c3c, 0x00210040, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000060 },
+ { 0x00000040, 0x20480c21, 0x00210e68, 0x00000000 },
+ { 0x00800031, 0x20601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x20e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x21e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22401c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22601c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22801c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22a01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22c01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x22e01c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23001c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23201c21, 0x40b10040, 0x02180203 },
+ { 0x00000040, 0x20480c21, 0x00210048, 0x00000020 },
+ { 0x00800031, 0x23401c21, 0x40b10040, 0x02180203 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x406001b1, 0x00b10060, 0x00000000 },
+ { 0x80800001, 0x408001b1, 0x00b10080, 0x00000000 },
+ { 0x80800001, 0x40a001b1, 0x00b100a0, 0x00000000 },
+ { 0x80800001, 0x40c001b1, 0x00b100c0, 0x00000000 },
+ { 0x80800001, 0x40e001b1, 0x00b100e0, 0x00000000 },
+ { 0x80800001, 0x410001b1, 0x00b10100, 0x00000000 },
+ { 0x80800001, 0x412001b1, 0x00b10120, 0x00000000 },
+ { 0x80800001, 0x414001b1, 0x00b10140, 0x00000000 },
+ { 0x80800001, 0x416001b1, 0x00b10160, 0x00000000 },
+ { 0x80800001, 0x418001b1, 0x00b10180, 0x00000000 },
+ { 0x80800001, 0x41a001b1, 0x00b101a0, 0x00000000 },
+ { 0x80800001, 0x41c001b1, 0x00b101c0, 0x00000000 },
+ { 0x80800001, 0x41e001b1, 0x00b101e0, 0x00000000 },
+ { 0x80800001, 0x420001b1, 0x00b10200, 0x00000000 },
+ { 0x80800001, 0x422001b1, 0x00b10220, 0x00000000 },
+ { 0x80800001, 0x424001b1, 0x00b10240, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x0021003e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x20200232, 0x00b20060, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20080, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b200a0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b200c0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b200e0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20100, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20120, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20140, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20160, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20180, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b201a0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b201c0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b201e0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20200, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20220, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20240, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800001, 0x20200232, 0x00b20060, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20160, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20080, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20180, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b200a0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b201a0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b200c0, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b201c0, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b200e0, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b201e0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20100, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20200, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20120, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20220, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20140, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20240, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x12082000 },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x20201c21, 0x00450e60, 0x00000001 },
+ { 0x80800001, 0x426001b1, 0x00b10260, 0x00000000 },
+ { 0x80800001, 0x428001b1, 0x00b10280, 0x00000000 },
+ { 0x80800001, 0x42a001b1, 0x00b102a0, 0x00000000 },
+ { 0x80800001, 0x42c001b1, 0x00b102c0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20260, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20280, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b202a0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b202c0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x80800001, 0x42e001b1, 0x00b102e0, 0x00000000 },
+ { 0x80800001, 0x430001b1, 0x00b10300, 0x00000000 },
+ { 0x80800001, 0x432001b1, 0x00b10320, 0x00000000 },
+ { 0x80800001, 0x434001b1, 0x00b10340, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b202e0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20300, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20320, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20340, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/ipicture_igd.g4a b/src/xvmc/shader/mc/ipicture_igd.g4a
new file mode 100644
index 0000000..20c3d8e
--- /dev/null
+++ b/src/xvmc/shader/mc/ipicture_igd.g4a
@@ -0,0 +1,105 @@
+/*
+ GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT tab
+ g31: read and write message descriptor
+ g32~g55:DCT data
+ g58~g81:reference data
+ g82: thread payload
+ g83~g106:IDCT data
+*/
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+
+mov.sat (16) g33.0<2>UB g33.0<16,16,1>W {align1};
+mov.sat (16) g34.0<2>UB g34.0<16,16,1>W {align1};
+mov.sat (16) g35.0<2>UB g35.0<16,16,1>W {align1};
+mov.sat (16) g36.0<2>UB g36.0<16,16,1>W {align1};
+mov.sat (16) g37.0<2>UB g37.0<16,16,1>W {align1};
+mov.sat (16) g38.0<2>UB g38.0<16,16,1>W {align1};
+mov.sat (16) g39.0<2>UB g39.0<16,16,1>W {align1};
+mov.sat (16) g40.0<2>UB g40.0<16,16,1>W {align1};
+mov.sat (16) g41.0<2>UB g41.0<16,16,1>W {align1};
+mov.sat (16) g42.0<2>UB g42.0<16,16,1>W {align1};
+mov.sat (16) g43.0<2>UB g43.0<16,16,1>W {align1};
+mov.sat (16) g44.0<2>UB g44.0<16,16,1>W {align1};
+mov.sat (16) g45.0<2>UB g45.0<16,16,1>W {align1};
+mov.sat (16) g46.0<2>UB g46.0<16,16,1>W {align1};
+mov.sat (16) g47.0<2>UB g47.0<16,16,1>W {align1};
+mov.sat (16) g48.0<2>UB g48.0<16,16,1>W {align1};
+
+mov.sat (16) g49.0<2>UB g49.0<16,16,1>W {align1};
+mov.sat (16) g50.0<2>UB g50.0<16,16,1>W {align1};
+mov.sat (16) g51.0<2>UB g51.0<16,16,1>W {align1};
+mov.sat (16) g52.0<2>UB g52.0<16,16,1>W {align1};
+mov.sat (16) g53.0<2>UB g53.0<16,16,1>W {align1};
+mov.sat (16) g54.0<2>UB g54.0<16,16,1>W {align1};
+mov.sat (16) g55.0<2>UB g55.0<16,16,1>W {align1};
+mov.sat (16) g56.0<2>UB g56.0<16,16,1>W {align1};
+
+mov (1) g31.8<1>UD 0x00F000FUD {align1};
+
+and.nz (1) null g82.30<1,1,1>UB 0x1UW{align1};
+(f0) jmpi field_dct_y;
+
+mov (16) m1.0<1>UB g33.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g34.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g35.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g36.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g37.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g38.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g39.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g40.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g41.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g42.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g43.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g44.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g45.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g46.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g47.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g48.0<16,16,2>UB {align1};
+jmpi write_back_y;
+
+field_dct_y:
+mov (16) m1.0<1>UB g33.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g41.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g34.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g42.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g35.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g43.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g36.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g44.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g37.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g45.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g38.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g46.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g39.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g47.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g40.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g48.0<16,16,2>UB {align1};
+
+write_back_y:
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(0,0,2,0) mlen 9 rlen 0 {align1};
+
+//U
+mov (1) g31.8<1>UD 0x0070007UD { align1 };
+shr (2) g31.0<1>UD g82.0<2,2,1>UD 1D {align1};
+
+mov (16) m1.0<1>UB g49.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g50.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g51.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g52.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+//V
+mov (16) m1.0<1>UB g53.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g54.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g55.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g56.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+OUT:
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
+
diff --git a/src/xvmc/shader/mc/ipicture_igd.g4b b/src/xvmc/shader/mc/ipicture_igd.g4b
new file mode 100644
index 0000000..c0947f7
--- /dev/null
+++ b/src/xvmc/shader/mc/ipicture_igd.g4b
@@ -0,0 +1,75 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x80800001, 0x458001b1, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a001b1, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c001b1, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e001b1, 0x00b105e0, 0x00000000 },
+ { 0x80800001, 0x460001b1, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x462001b1, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x464001b1, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x466001b1, 0x00b10660, 0x00000000 },
+ { 0x80800001, 0x468001b1, 0x00b10680, 0x00000000 },
+ { 0x80800001, 0x46a001b1, 0x00b106a0, 0x00000000 },
+ { 0x80800001, 0x46c001b1, 0x00b106c0, 0x00000000 },
+ { 0x80800001, 0x46e001b1, 0x00b106e0, 0x00000000 },
+ { 0x80800001, 0x470001b1, 0x00b10700, 0x00000000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x02000005, 0x20002e3c, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x20200232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20560, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b205e0, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20600, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x20200232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20560, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b205e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20600, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x00450a40, 0x00000001 },
+ { 0x00800001, 0x20200232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20660, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20680, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800001, 0x20200232, 0x00b206a0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b206c0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b206e0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20700, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/ipicture_igd.g4b.gen5 b/src/xvmc/shader/mc/ipicture_igd.g4b.gen5
new file mode 100644
index 0000000..79b8cad
--- /dev/null
+++ b/src/xvmc/shader/mc/ipicture_igd.g4b.gen5
@@ -0,0 +1,75 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x80800001, 0x442001b1, 0x00b10420, 0x00000000 },
+ { 0x80800001, 0x444001b1, 0x00b10440, 0x00000000 },
+ { 0x80800001, 0x446001b1, 0x00b10460, 0x00000000 },
+ { 0x80800001, 0x448001b1, 0x00b10480, 0x00000000 },
+ { 0x80800001, 0x44a001b1, 0x00b104a0, 0x00000000 },
+ { 0x80800001, 0x44c001b1, 0x00b104c0, 0x00000000 },
+ { 0x80800001, 0x44e001b1, 0x00b104e0, 0x00000000 },
+ { 0x80800001, 0x450001b1, 0x00b10500, 0x00000000 },
+ { 0x80800001, 0x452001b1, 0x00b10520, 0x00000000 },
+ { 0x80800001, 0x454001b1, 0x00b10540, 0x00000000 },
+ { 0x80800001, 0x456001b1, 0x00b10560, 0x00000000 },
+ { 0x80800001, 0x458001b1, 0x00b10580, 0x00000000 },
+ { 0x80800001, 0x45a001b1, 0x00b105a0, 0x00000000 },
+ { 0x80800001, 0x45c001b1, 0x00b105c0, 0x00000000 },
+ { 0x80800001, 0x45e001b1, 0x00b105e0, 0x00000000 },
+ { 0x80800001, 0x460001b1, 0x00b10600, 0x00000000 },
+ { 0x80800001, 0x462001b1, 0x00b10620, 0x00000000 },
+ { 0x80800001, 0x464001b1, 0x00b10640, 0x00000000 },
+ { 0x80800001, 0x466001b1, 0x00b10660, 0x00000000 },
+ { 0x80800001, 0x468001b1, 0x00b10680, 0x00000000 },
+ { 0x80800001, 0x46a001b1, 0x00b106a0, 0x00000000 },
+ { 0x80800001, 0x46c001b1, 0x00b106c0, 0x00000000 },
+ { 0x80800001, 0x46e001b1, 0x00b106e0, 0x00000000 },
+ { 0x80800001, 0x470001b1, 0x00b10700, 0x00000000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x02000005, 0x20002e3c, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x20200232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20560, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b205e0, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20600, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800001, 0x20200232, 0x00b20420, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20520, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20440, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20540, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20460, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20560, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20480, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20580, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b204a0, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b205a0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b204c0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b205c0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b204e0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b205e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20500, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20600, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x00450a40, 0x00000001 },
+ { 0x00800001, 0x20200232, 0x00b20620, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20640, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20660, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20680, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800001, 0x20200232, 0x00b206a0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b206c0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b206e0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20700, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/lib_igd.g4a b/src/xvmc/shader/mc/lib_igd.g4a
new file mode 100644
index 0000000..649619f
--- /dev/null
+++ b/src/xvmc/shader/mc/lib_igd.g4a
@@ -0,0 +1,133 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix in UB format
+ g3~g4:non intra IQ matrix in UB format
+ g5~g20:IDCT table
+ g32~g55:DCT data before IQ
+ g56~g79:DCT data after IQ
+ g84~g107: IDCT data after idct
+ g82: thread payload backup
+ g126.8: ip before jump to the lib
+*/
+jmpi MOTION_FRAME_Y;
+jmpi MOTION_FRAME_UV;
+jmpi MOTION_FIELD_Y;
+jmpi MOTION_FIELD_UV;
+jmpi ADD_IDCT;
+
+mov (16) g84.0<1>W g33.0<16,16,1>W {align1};
+mov (16) g85.0<1>W g34.0<16,16,1>W {align1};
+mov (16) g86.0<1>W g35.0<16,16,1>W {align1};
+mov (16) g87.0<1>W g36.0<16,16,1>W {align1};
+mov (16) g88.0<1>W g37.0<16,16,1>W {align1};
+mov (16) g89.0<1>W g38.0<16,16,1>W {align1};
+mov (16) g90.0<1>W g39.0<16,16,1>W {align1};
+mov (16) g91.0<1>W g40.0<16,16,1>W {align1};
+mov (16) g92.0<1>W g41.0<16,16,1>W {align1};
+mov (16) g93.0<1>W g42.0<16,16,1>W {align1};
+mov (16) g94.0<1>W g43.0<16,16,1>W {align1};
+mov (16) g95.0<1>W g44.0<16,16,1>W {align1};
+mov (16) g96.0<1>W g45.0<16,16,1>W {align1};
+mov (16) g97.0<1>W g46.0<16,16,1>W {align1};
+mov (16) g98.0<1>W g47.0<16,16,1>W {align1};
+mov (16) g99.0<1>W g48.0<16,16,1>W {align1};
+
+mov (16) g100.0<1>W g49.0<16,16,1>W {align1};
+mov (16) g101.0<1>W g50.0<16,16,1>W {align1};
+mov (16) g102.0<1>W g51.0<16,16,1>W {align1};
+mov (16) g103.0<1>W g52.0<16,16,1>W {align1};
+mov (16) g104.0<1>W g53.0<16,16,1>W {align1};
+mov (16) g105.0<1>W g54.0<16,16,1>W {align1};
+mov (16) g106.0<1>W g55.0<16,16,1>W {align1};
+mov (16) g107.0<1>W g56.0<16,16,1>W {align1};
+
+//Y0
+and.nz (1) null g82.12<1,1,1>UW 0x20UW {align1};
+(f0) jmpi block_y1;
+mov (8) g84.0<1>W 0W {align1};
+mov (8) g85.0<1>W 0W {align1};
+mov (8) g86.0<1>W 0W {align1};
+mov (8) g87.0<1>W 0W {align1};
+mov (8) g88.0<1>W 0W {align1};
+mov (8) g89.0<1>W 0W {align1};
+mov (8) g90.0<1>W 0W {align1};
+mov (8) g91.0<1>W 0W {align1};
+
+//Y1
+block_y1:
+and.nz (1) null g82.12<1,1,1>UW 0x10UW {align1};
+(f0) jmpi block_y2;
+mov (8) g84.16<1>W 0W {align1};
+mov (8) g85.16<1>W 0W {align1};
+mov (8) g86.16<1>W 0W {align1};
+mov (8) g87.16<1>W 0W {align1};
+mov (8) g88.16<1>W 0W {align1};
+mov (8) g89.16<1>W 0W {align1};
+mov (8) g90.16<1>W 0W {align1};
+mov (8) g91.16<1>W 0W {align1};
+
+//Y2
+block_y2:
+and.nz (1) null g82.12<1,1,1>UW 0x08UW {align1};
+(f0) jmpi block_y3;
+mov (8) g92.0<1>W 0W {align1};
+mov (8) g93.0<1>W 0W {align1};
+mov (8) g94.0<1>W 0W {align1};
+mov (8) g95.0<1>W 0W {align1};
+mov (8) g96.0<1>W 0W {align1};
+mov (8) g97.0<1>W 0W {align1};
+mov (8) g98.0<1>W 0W {align1};
+mov (8) g99.0<1>W 0W {align1};
+
+//Y3
+block_y3:
+and.nz (1) null g82.12<1,1,1>UW 0x04UW {align1};
+(f0) jmpi block_u;
+mov (8) g92.16<1>W 0W {align1};
+mov (8) g93.16<1>W 0W {align1};
+mov (8) g94.16<1>W 0W {align1};
+mov (8) g95.16<1>W 0W {align1};
+mov (8) g96.16<1>W 0W {align1};
+mov (8) g97.16<1>W 0W {align1};
+mov (8) g98.16<1>W 0W {align1};
+mov (8) g99.16<1>W 0W {align1};
+
+//U
+block_u:
+and.nz (1) null g82.12<1,1,1>UW 0x02UW {align1};
+(f0) jmpi block_v;
+mov (16) g100.0<1>W 0W {align1};
+mov (16) g101.0<1>W 0W {align1};
+mov (16) g102.0<1>W 0W {align1};
+mov (16) g103.0<1>W 0W {align1};
+
+//V
+block_v:
+and.nz (1) null g82.12<1,1,1>UW 0x01UW {align1};
+(f0) jmpi out;
+mov (16) g104.0<1>W 0W {align1};
+mov (16) g105.0<1>W 0W {align1};
+mov (16) g106.0<1>W 0W {align1};
+mov (16) g107.0<1>W 0W {align1};
+
+out:
+add (1) ip g126.8<1,1,1>UD 0x20UD {align1}; //jump back
+
+MOTION_FRAME_Y:
+include(`motion_frame_y_igd.g4i')
+add (1) ip g126.8<1,1,1>UD 0x20UD {align1}; //jump back
+
+MOTION_FRAME_UV:
+include(`motion_frame_uv_igd.g4i')
+add (1) ip g126.8<1,1,1>UD 0x20UD {align1}; //jump back
+
+MOTION_FIELD_Y:
+include(`motion_field_y_igd.g4i')
+add (1) ip g126.8<1,1,1>UD 0x20UD {align1}; //jump back
+
+MOTION_FIELD_UV:
+include(`motion_field_uv_igd.g4i')
+add (1) ip g126.8<1,1,1>UD 0x20UD {align1}; //jump back
+
+ADD_IDCT:
+include(`addidct_igd.g4i')
diff --git a/src/xvmc/shader/mc/lib_igd.g4b b/src/xvmc/shader/mc/lib_igd.g4b
new file mode 100644
index 0000000..0e8fe01
--- /dev/null
+++ b/src/xvmc/shader/mc/lib_igd.g4b
@@ -0,0 +1,558 @@
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000051 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000f0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000fc },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000016f },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000001da },
+ { 0x00800001, 0x2a8001ad, 0x00b10420, 0x00000000 },
+ { 0x00800001, 0x2aa001ad, 0x00b10440, 0x00000000 },
+ { 0x00800001, 0x2ac001ad, 0x00b10460, 0x00000000 },
+ { 0x00800001, 0x2ae001ad, 0x00b10480, 0x00000000 },
+ { 0x00800001, 0x2b0001ad, 0x00b104a0, 0x00000000 },
+ { 0x00800001, 0x2b2001ad, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x2b4001ad, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x2b6001ad, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x2b8001ad, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x2ba001ad, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x2bc001ad, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x2be001ad, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x2c0001ad, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x2c2001ad, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x2c4001ad, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x2c6001ad, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x2c8001ad, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x2ca001ad, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x2cc001ad, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x2ce001ad, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x2d0001ad, 0x00b106a0, 0x00000000 },
+ { 0x00800001, 0x2d2001ad, 0x00b106c0, 0x00000000 },
+ { 0x00800001, 0x2d4001ad, 0x00b106e0, 0x00000000 },
+ { 0x00800001, 0x2d6001ad, 0x00b10700, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x2a8001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2aa001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ac001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ae001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b0001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b2001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b4001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b6001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x2a9001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ab001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ad001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2af001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b1001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b3001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b5001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b7001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x2b8001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ba001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bc001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2be001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c0001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c2001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c4001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c6001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00600001, 0x2b9001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bb001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bd001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bf001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c1001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c3001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c5001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c7001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x2c8001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2ca001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2cc001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2ce001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800001, 0x2d0001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d2001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d4001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d6001ed, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x01000005, 0x20000d3c, 0x00218000, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000067 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20000d3c, 0x00218000, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000049 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a007 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x00a02008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x00a02008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x00a02008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x00a02008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x00a02008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x00a02008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x00a02008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x00a02008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000051 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000036 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20000d3c, 0x00218000, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000021 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a007 },
+ { 0x00800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x00800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x00800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x00800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x00800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x00800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x00800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x00800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x00800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x00800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x00800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x00800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x00800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x00800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x00800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x00800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00a02001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00a02001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00a02001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00a02001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00a02001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00a02001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00a02001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00a02001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0414a009 },
+ { 0x00a02001, 0x29400229, 0x00ad0440, 0x00000000 },
+ { 0x00a02001, 0x29800229, 0x00ad0480, 0x00000000 },
+ { 0x00a02001, 0x29c00229, 0x00ad0580, 0x00000000 },
+ { 0x00a02001, 0x2a000229, 0x00ad05c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000041 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002d },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000039 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000019 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000007 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000003 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0414a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x00200001, 0x23e00021, 0x00450a40, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000d },
+ { 0x80a02040, 0x474045b1, 0x00b10a80, 0x00b20740 },
+ { 0x80a02040, 0x478045b1, 0x00b10ac0, 0x00b20780 },
+ { 0x80a02040, 0x47c045b1, 0x00b10b00, 0x00b207c0 },
+ { 0x80a02040, 0x480045b1, 0x00b10b40, 0x00b20800 },
+ { 0x80a02040, 0x484045b1, 0x00b10b80, 0x00b20840 },
+ { 0x80a02040, 0x488045b1, 0x00b10bc0, 0x00b20880 },
+ { 0x80a02040, 0x48c045b1, 0x00b10c00, 0x00b208c0 },
+ { 0x80a02040, 0x490045b1, 0x00b10c40, 0x00b20900 },
+ { 0x80a02040, 0x494045b1, 0x00b10c80, 0x00b20940 },
+ { 0x80a02040, 0x498045b1, 0x00b10cc0, 0x00b20980 },
+ { 0x80a02040, 0x49c045b1, 0x00b10d00, 0x00b209c0 },
+ { 0x80a02040, 0x4a0045b1, 0x00b10d40, 0x00b20a00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x80800040, 0x474045b1, 0x00b10a80, 0x00b20740 },
+ { 0x80800040, 0x476045b1, 0x00b10b80, 0x00b20760 },
+ { 0x80800040, 0x478045b1, 0x00b10aa0, 0x00b20780 },
+ { 0x80800040, 0x47a045b1, 0x00b10ba0, 0x00b207a0 },
+ { 0x80800040, 0x47c045b1, 0x00b10ac0, 0x00b207c0 },
+ { 0x80800040, 0x47e045b1, 0x00b10bc0, 0x00b207e0 },
+ { 0x80800040, 0x480045b1, 0x00b10ae0, 0x00b20800 },
+ { 0x80800040, 0x482045b1, 0x00b10be0, 0x00b20820 },
+ { 0x80800040, 0x484045b1, 0x00b10b00, 0x00b20840 },
+ { 0x80800040, 0x486045b1, 0x00b10c00, 0x00b20860 },
+ { 0x80800040, 0x488045b1, 0x00b10b20, 0x00b20880 },
+ { 0x80800040, 0x48a045b1, 0x00b10c20, 0x00b208a0 },
+ { 0x80800040, 0x48c045b1, 0x00b10b40, 0x00b208c0 },
+ { 0x80800040, 0x48e045b1, 0x00b10c40, 0x00b208e0 },
+ { 0x80800040, 0x490045b1, 0x00b10b60, 0x00b20900 },
+ { 0x80800040, 0x492045b1, 0x00b10c60, 0x00b20920 },
+ { 0x00800040, 0x2c8045ad, 0x00b10c80, 0x00b20940 },
+ { 0x00800040, 0x2ca045ad, 0x00b10ca0, 0x00b20960 },
+ { 0x00800040, 0x2cc045ad, 0x00b10cc0, 0x00b20980 },
+ { 0x00800040, 0x2ce045ad, 0x00b10ce0, 0x00b209a0 },
+ { 0x00800040, 0x2d0045ad, 0x00b10d00, 0x00b209c0 },
+ { 0x00800040, 0x2d2045ad, 0x00b10d20, 0x00b209e0 },
+ { 0x00800040, 0x2d4045ad, 0x00b10d40, 0x00b20a00 },
+ { 0x00800040, 0x2d6045ad, 0x00b10d60, 0x00b20a20 },
+ { 0x80800001, 0x494001b1, 0x00b10c80, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10ca0, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10cc0, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b10ce0, 0x00000000 },
+ { 0x80800001, 0x49c001b1, 0x00b10d00, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b10d20, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10d40, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10d60, 0x00000000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/lib_igd.g4b.gen5 b/src/xvmc/shader/mc/lib_igd.g4b.gen5
new file mode 100644
index 0000000..442fa6a
--- /dev/null
+++ b/src/xvmc/shader/mc/lib_igd.g4b.gen5
@@ -0,0 +1,558 @@
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000001e0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000001f8 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000002de },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000003b4 },
+ { 0x00800001, 0x2a8001ad, 0x00b10420, 0x00000000 },
+ { 0x00800001, 0x2aa001ad, 0x00b10440, 0x00000000 },
+ { 0x00800001, 0x2ac001ad, 0x00b10460, 0x00000000 },
+ { 0x00800001, 0x2ae001ad, 0x00b10480, 0x00000000 },
+ { 0x00800001, 0x2b0001ad, 0x00b104a0, 0x00000000 },
+ { 0x00800001, 0x2b2001ad, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x2b4001ad, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x2b6001ad, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x2b8001ad, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x2ba001ad, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x2bc001ad, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x2be001ad, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x2c0001ad, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x2c2001ad, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x2c4001ad, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x2c6001ad, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x2c8001ad, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x2ca001ad, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x2cc001ad, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x2ce001ad, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x2d0001ad, 0x00b106a0, 0x00000000 },
+ { 0x00800001, 0x2d2001ad, 0x00b106c0, 0x00000000 },
+ { 0x00800001, 0x2d4001ad, 0x00b106e0, 0x00000000 },
+ { 0x00800001, 0x2d6001ad, 0x00b10700, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x2a8001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2aa001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ac001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ae001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b0001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b2001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b4001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b6001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00100010 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x2a9001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ab001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ad001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2af001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b1001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b3001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b5001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b7001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00080008 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x2b8001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ba001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bc001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2be001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c0001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c2001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c4001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c6001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00040004 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00600001, 0x2b9001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bb001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bd001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bf001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c1001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c3001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c5001ed, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c7001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2c8001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2ca001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2cc001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2ce001ed, 0x00000000, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a4c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800001, 0x2d0001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d2001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d4001ed, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d6001ed, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x01000005, 0x20000d3c, 0x00218000, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000ce },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20000d3c, 0x00218000, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000092 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a007 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x00a02008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x00a02008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x00a02008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x00a02008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x00a02008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x00a02008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x00a02008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x00a02008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000a2 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000006c },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20000d3c, 0x00218000, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000042 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a007 },
+ { 0x00800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x00800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x00800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x00800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x00800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x00800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x00800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x00800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x00800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x00800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x00800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x00800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x00800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x00800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x00800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x00800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00a02001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00a02001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00a02001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00a02001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00a02001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00a02001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00a02001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00a02001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210410, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0248a009 },
+ { 0x00a02001, 0x29400229, 0x00ad0440, 0x00000000 },
+ { 0x00a02001, 0x29800229, 0x00ad0480, 0x00000000 },
+ { 0x00a02001, 0x29c00229, 0x00ad0580, 0x00000000 },
+ { 0x00a02001, 0x2a000229, 0x00ad05c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000082 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005a },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600040, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600040, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600040, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600040, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0501 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0521 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0541 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0561 },
+ { 0x00600040, 0x24004529, 0x008d0400, 0x008d0521 },
+ { 0x00600040, 0x24204529, 0x008d0420, 0x008d0541 },
+ { 0x00600040, 0x24404529, 0x008d0440, 0x008d0561 },
+ { 0x00600040, 0x24604529, 0x008d0460, 0x008d0581 },
+ { 0x00600040, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600040, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600040, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600040, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05a1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05c1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d05e1 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0601 },
+ { 0x00600040, 0x24804529, 0x008d0480, 0x008d05c1 },
+ { 0x00600040, 0x24a04529, 0x008d04a0, 0x008d05e1 },
+ { 0x00600040, 0x24c04529, 0x008d04c0, 0x008d0601 },
+ { 0x00600040, 0x24e04529, 0x008d04e0, 0x008d0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000072 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0501 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0521 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0541 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0561 },
+ { 0x00600042, 0x24804629, 0x008d0580, 0x008d0581 },
+ { 0x00600042, 0x24a04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600042, 0x24c04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600042, 0x24e04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000050 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00000002 },
+ { 0x01000005, 0x20002d3c, 0x00218000, 0x00020002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000e },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00600042, 0x24004629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x24204629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x24404629, 0x008d0540, 0x008d0560 },
+ { 0x00600042, 0x24604629, 0x008d0560, 0x008d0580 },
+ { 0x00600042, 0x24804629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x24a04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x24c04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x24e04629, 0x008d0600, 0x008d0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x02000005, 0x20002d3c, 0x00210e70, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000004 },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0248a009 },
+ { 0x00802001, 0x24000229, 0x008d0500, 0x00000000 },
+ { 0x00802001, 0x24400229, 0x008d0540, 0x00000000 },
+ { 0x00802001, 0x24800229, 0x008d0600, 0x00000000 },
+ { 0x00802001, 0x24c00229, 0x008d0640, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x00200001, 0x23e00021, 0x00450a40, 0x00000000 },
+ { 0x02000005, 0x20002e3c, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x80a02040, 0x474045b1, 0x00b10a80, 0x00b20740 },
+ { 0x80a02040, 0x478045b1, 0x00b10ac0, 0x00b20780 },
+ { 0x80a02040, 0x47c045b1, 0x00b10b00, 0x00b207c0 },
+ { 0x80a02040, 0x480045b1, 0x00b10b40, 0x00b20800 },
+ { 0x80a02040, 0x484045b1, 0x00b10b80, 0x00b20840 },
+ { 0x80a02040, 0x488045b1, 0x00b10bc0, 0x00b20880 },
+ { 0x80a02040, 0x48c045b1, 0x00b10c00, 0x00b208c0 },
+ { 0x80a02040, 0x490045b1, 0x00b10c40, 0x00b20900 },
+ { 0x80a02040, 0x494045b1, 0x00b10c80, 0x00b20940 },
+ { 0x80a02040, 0x498045b1, 0x00b10cc0, 0x00b20980 },
+ { 0x80a02040, 0x49c045b1, 0x00b10d00, 0x00b209c0 },
+ { 0x80a02040, 0x4a0045b1, 0x00b10d40, 0x00b20a00 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x80800040, 0x474045b1, 0x00b10a80, 0x00b20740 },
+ { 0x80800040, 0x476045b1, 0x00b10b80, 0x00b20760 },
+ { 0x80800040, 0x478045b1, 0x00b10aa0, 0x00b20780 },
+ { 0x80800040, 0x47a045b1, 0x00b10ba0, 0x00b207a0 },
+ { 0x80800040, 0x47c045b1, 0x00b10ac0, 0x00b207c0 },
+ { 0x80800040, 0x47e045b1, 0x00b10bc0, 0x00b207e0 },
+ { 0x80800040, 0x480045b1, 0x00b10ae0, 0x00b20800 },
+ { 0x80800040, 0x482045b1, 0x00b10be0, 0x00b20820 },
+ { 0x80800040, 0x484045b1, 0x00b10b00, 0x00b20840 },
+ { 0x80800040, 0x486045b1, 0x00b10c00, 0x00b20860 },
+ { 0x80800040, 0x488045b1, 0x00b10b20, 0x00b20880 },
+ { 0x80800040, 0x48a045b1, 0x00b10c20, 0x00b208a0 },
+ { 0x80800040, 0x48c045b1, 0x00b10b40, 0x00b208c0 },
+ { 0x80800040, 0x48e045b1, 0x00b10c40, 0x00b208e0 },
+ { 0x80800040, 0x490045b1, 0x00b10b60, 0x00b20900 },
+ { 0x80800040, 0x492045b1, 0x00b10c60, 0x00b20920 },
+ { 0x00800040, 0x2c8045ad, 0x00b10c80, 0x00b20940 },
+ { 0x00800040, 0x2ca045ad, 0x00b10ca0, 0x00b20960 },
+ { 0x00800040, 0x2cc045ad, 0x00b10cc0, 0x00b20980 },
+ { 0x00800040, 0x2ce045ad, 0x00b10ce0, 0x00b209a0 },
+ { 0x00800040, 0x2d0045ad, 0x00b10d00, 0x00b209c0 },
+ { 0x00800040, 0x2d2045ad, 0x00b10d20, 0x00b209e0 },
+ { 0x00800040, 0x2d4045ad, 0x00b10d40, 0x00b20a00 },
+ { 0x00800040, 0x2d6045ad, 0x00b10d60, 0x00b20a20 },
+ { 0x80800001, 0x494001b1, 0x00b10c80, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10ca0, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10cc0, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b10ce0, 0x00000000 },
+ { 0x80800001, 0x49c001b1, 0x00b10d00, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b10d20, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10d40, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10d60, 0x00000000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/motion_field_uv.g4i b/src/xvmc/shader/mc/motion_field_uv.g4i
new file mode 100644
index 0000000..4640197
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_field_uv.g4i
@@ -0,0 +1,46 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+ and.z (1) null mv1<1,1,1>UW 2UW {align1};
+ (f0) jmpi L1;
+ and.z (1) null mv2<1,1,1>UW 2UW {align1};
+ (f0) jmpi L2;
+ include(`read_field_x1y1_uv.g4i')
+ jmpi L5;
+L2:
+ include(`read_field_x1y0_uv.g4i')
+ jmpi L5;
+L1:
+ and.z (1) null mv2<1,1,1>UW 2UW {align1};
+ (f0) jmpi L4;
+ include(`read_field_x0y1_uv.g4i')
+ jmpi L5;
+L4:
+ include(`read_field_x0y0_uv.g4i')
+L5:
+
diff --git a/src/xvmc/shader/mc/motion_field_uv_igd.g4i b/src/xvmc/shader/mc/motion_field_uv_igd.g4i
new file mode 100644
index 0000000..9681e2e
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_field_uv_igd.g4i
@@ -0,0 +1,46 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ */
+ and.z (1) null g[a0.0]<1,1,1>UW 2UW {align1};
+ (f0) jmpi L1;
+ add (1) a0.0<1>UD a0.0<1,1,1>UD 0x2UD {align1};
+ and.z (1) null g[a0.0]<1,1,1>UW 2UW {align1};
+ (f0) jmpi L2;
+ include(`read_field_x1y1_uv_igd.g4i')
+ jmpi L5;
+L2:
+ include(`read_field_x1y0_uv_igd.g4i')
+ jmpi L5;
+L1:
+ add (1) a0.0<1>UD a0.0<1,1,1>UD 0x2UD {align1};
+ and.z (1) null g[a0.0]<1,1,1>UW 2UW {align1};
+ (f0) jmpi L4;
+ include(`read_field_x0y1_uv_igd.g4i')
+ jmpi L5;
+L4:
+ include(`read_field_x0y0_uv_igd.g4i')
+L5:
diff --git a/src/xvmc/shader/mc/motion_field_y.g4i b/src/xvmc/shader/mc/motion_field_y.g4i
new file mode 100644
index 0000000..06fa6cb
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_field_y.g4i
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+ and.z (1) null mv1<1,1,1>UW 1UW {align1};
+ (f0) jmpi L1;
+ and.z (1) null mv2<1,1,1>UW 1UW {align1};
+ (f0) jmpi L2;
+ include(`read_field_x1y1_y.g4i')
+ jmpi L5;
+L2:
+ include(`read_field_x1y0_y.g4i')
+ jmpi L5;
+L1:
+ and.z (1) null mv2<1,1,1>UW 1UW {align1};
+ (f0) jmpi L4;
+ include(`read_field_x0y1_y.g4i')
+ jmpi L5;
+L4:
+ include(`read_field_x0y0_y.g4i')
+L5:
diff --git a/src/xvmc/shader/mc/motion_field_y_igd.g4i b/src/xvmc/shader/mc/motion_field_y_igd.g4i
new file mode 100644
index 0000000..619857a
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_field_y_igd.g4i
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ */
+ and.z (1) null g[a0.0]<1,1,1>UW 1UW {align1};
+ (f0) jmpi L1;
+ add (1) a0.0<1>UD a0.0<1,1,1>UD 0x2UD {align1};
+ and.z (1) null g[a0.0]<1,1,1>UW 1UW {align1};
+ (f0) jmpi L2;
+ include(`read_field_x1y1_y_igd.g4i')
+ jmpi L5;
+L2:
+ include(`read_field_x1y0_y_igd.g4i')
+ jmpi L5;
+L1:
+ add (1) a0.0<1>UD a0.0<1,1,1>UD 0x2UD {align1};
+ and.z (1) null g[a0.0]<1,1,1>UW 1UW {align1};
+ (f0) jmpi L4;
+ include(`read_field_x0y1_y_igd.g4i')
+ jmpi L5;
+L4:
+ include(`read_field_x0y0_y_igd.g4i')
+L5:
diff --git a/src/xvmc/shader/mc/motion_frame_uv.g4i b/src/xvmc/shader/mc/motion_frame_uv.g4i
new file mode 100644
index 0000000..c027c90
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_frame_uv.g4i
@@ -0,0 +1,29 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ */
+
+ include(`read_frame_x0y0_uv.g4i')
diff --git a/src/xvmc/shader/mc/motion_frame_uv_igd.g4i b/src/xvmc/shader/mc/motion_frame_uv_igd.g4i
new file mode 100644
index 0000000..7fc8931
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_frame_uv_igd.g4i
@@ -0,0 +1,30 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ */
+
+ include(`read_frame_x0y0_uv_igd.g4i')
+
diff --git a/src/xvmc/shader/mc/motion_frame_y.g4i b/src/xvmc/shader/mc/motion_frame_y.g4i
new file mode 100644
index 0000000..f0b212f
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_frame_y.g4i
@@ -0,0 +1,57 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ */
+
+/* if (motion_vect.x & 1) {
+ * if (motion_vect.y & 1)
+ * half_pixel in x and y;
+ * else
+ * half_pixel in x;
+ * } else {
+ * if (motion_vect.y & 1)
+ * half_pixel y;
+ * else
+ * full_pixel_read;
+ * }
+ */
+
+ and.z (1) null mv1<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL1;
+ and.z (1) null mv2<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL2;
+ include(`read_frame_x1y1_y.g4i')
+ jmpi LL5;
+LL2:
+ include(`read_frame_x1y0_y.g4i')
+ jmpi LL5;
+LL1:
+ and.z (1) null mv2<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL4;
+ include(`read_frame_x0y1_y.g4i')
+ jmpi LL5;
+LL4:
+ include(`read_frame_x0y0_y.g4i')
+LL5:
+
diff --git a/src/xvmc/shader/mc/motion_frame_y_igd.g4i b/src/xvmc/shader/mc/motion_frame_y_igd.g4i
new file mode 100644
index 0000000..d888b54
--- /dev/null
+++ b/src/xvmc/shader/mc/motion_frame_y_igd.g4i
@@ -0,0 +1,58 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ */
+
+/* if (motion_vect.x & 1) {
+ * if (motion_vect.y & 1)
+ * half_pixel in x and y;
+ * else
+ * half_pixel in x;
+ * } else {
+ * if (motion_vect.y & 1)
+ * half_pixel y;
+ * else
+ * full_pixel_read;
+ * }
+ */
+ and.z (1) null g[a0.0]<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL1;
+ add (1) a0.0<1>UD a0.0<1,1,1>UD 0x2UD {align1};
+ and.z (1) null g[a0.0]<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL2;
+ include(`read_frame_x1y1_y_igd.g4i')
+ jmpi LL5;
+LL2:
+ include(`read_frame_x1y0_y_igd.g4i')
+ jmpi LL5;
+LL1:
+ add (1) a0.0<1>UD a0.0<1,1,1>UD 0x2UD {align1};
+ and.z (1) null g[a0.0]<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL4;
+ include(`read_frame_x0y1_y_igd.g4i')
+ jmpi LL5;
+LL4:
+ include(`read_frame_x0y0_y_igd.g4i')
+LL5:
+
diff --git a/src/xvmc/shader/mc/null.g4a b/src/xvmc/shader/mc/null.g4a
new file mode 100644
index 0000000..6569842
--- /dev/null
+++ b/src/xvmc/shader/mc/null.g4a
@@ -0,0 +1,57 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ *
+ */
+mov (8) g3.0<1>UD g1.0<8,8,1>UD {align1};
+
+mov (16) g8.0<1>UD 0xFFFFFFFFUD {align1 compr};
+
+mov(1) g1.8<1>UD 0x0070007UD { align1 };
+mov (16) m1<1>UD g8.0<8,8,1>UD {align1 compr};
+
+/*Write 8x8 block to (x,y)*/
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(0, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+add (1) g1.0<1>UD g3.0<1,1,1>UD 0x8UD {align1};
+/*Write 8x8 block to (x+8,y)*/
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(0, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+add (1) g1.4<1>UD g3.4<1,1,1>UD 0x8UD {align1};
+/*Write 8x8 block to (x+8,y+8)*/
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(0, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+mov (1) g1.0<1>UD g3.0<1,1,1>UD {align1};
+/*Write 8x8 block to (x,y+8)*/
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(0, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+/*Fill U buffer & V buffer with 0x7F*/
+mov (16) m1<1>UD 0x7f7f7f7fUD {align1 compr};
+shr (1) g1.0<1>UD g3.0<1,1,1>UD 1D {align1};
+shr (1) g1.4<1>UD g3.4<1,1,1>UD 1D {align1};
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+send (16) 0 acc0<1>UW g1<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/mc/null.g4b b/src/xvmc/shader/mc/null.g4b
new file mode 100644
index 0000000..960fda9
--- /dev/null
+++ b/src/xvmc/shader/mc/null.g4b
@@ -0,0 +1,17 @@
+ { 0x00600001, 0x20600021, 0x008d0020, 0x00000000 },
+ { 0x00802001, 0x21000061, 0x00000000, 0xffffffff },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00802001, 0x20200022, 0x008d0100, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302000 },
+ { 0x00000040, 0x20200c21, 0x00210060, 0x00000008 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302000 },
+ { 0x00000040, 0x20240c21, 0x00210064, 0x00000008 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302000 },
+ { 0x00000001, 0x20200021, 0x00210060, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302000 },
+ { 0x00802001, 0x20200062, 0x00000000, 0x7f7f7f7f },
+ { 0x00000008, 0x20201c21, 0x00210060, 0x00000001 },
+ { 0x00000008, 0x20241c21, 0x00210064, 0x00000001 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0020, 0x05302001 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/mc/null.g4b.gen5 b/src/xvmc/shader/mc/null.g4b.gen5
new file mode 100644
index 0000000..fa9755c
--- /dev/null
+++ b/src/xvmc/shader/mc/null.g4b.gen5
@@ -0,0 +1,17 @@
+ { 0x00600001, 0x20600021, 0x008d0020, 0x00000000 },
+ { 0x00802001, 0x21000061, 0x00000000, 0xffffffff },
+ { 0x00000001, 0x20280061, 0x00000000, 0x00070007 },
+ { 0x00802001, 0x20200022, 0x008d0100, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082000 },
+ { 0x00000040, 0x20200c21, 0x00210060, 0x00000008 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082000 },
+ { 0x00000040, 0x20240c21, 0x00210064, 0x00000008 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082000 },
+ { 0x00000001, 0x20200021, 0x00210060, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082000 },
+ { 0x00802001, 0x20200062, 0x00000000, 0x7f7f7f7f },
+ { 0x00000008, 0x20201c21, 0x00210060, 0x00000001 },
+ { 0x00000008, 0x20241c21, 0x00210064, 0x00000001 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x508d0020, 0x06082001 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/mc/read_field_x0y0_uv.g4i b/src/xvmc/shader/mc/read_field_x0y0_uv.g4i
new file mode 100644
index 0000000..673b8cd
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y0_uv.g4i
@@ -0,0 +1,74 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x7000FUD {align1}; // 8*16/32=4
+send (16) 0 g86.0<1>UW g115<16,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g91.0<1>UW g115<16,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+mov (16) g78.0<1>UW g86.0<16,8,1>UB {align1};
+mov (16) g79.0<1>UW g87.0<16,8,1>UB {align1};
+mov (16) g80.0<1>UW g88.0<16,8,1>UB {align1};
+mov (16) g81.0<1>UW g89.0<16,8,1>UB {align1};
+mov (16) g82.0<1>UW g91.0<16,8,1>UB {align1};
+mov (16) g83.0<1>UW g92.0<16,8,1>UB {align1};
+mov (16) g84.0<1>UW g93.0<16,8,1>UB {align1};
+mov (16) g85.0<1>UW g94.0<16,8,1>UB {align1};
+jmpi out;
+
+mov (16) g78.0<1>UW g86.1<16,8,1>UB {align1};
+mov (16) g79.0<1>UW g87.1<16,8,1>UB {align1};
+mov (16) g80.0<1>UW g88.1<16,8,1>UB {align1};
+mov (16) g81.0<1>UW g89.1<16,8,1>UB {align1};
+mov (16) g82.0<1>UW g91.1<16,8,1>UB {align1};
+mov (16) g83.0<1>UW g92.1<16,8,1>UB {align1};
+mov (16) g84.0<1>UW g93.1<16,8,1>UB {align1};
+mov (16) g85.0<1>UW g94.1<16,8,1>UB {align1};
+jmpi out;
+
+mov (16) g78.0<1>UW g86.2<16,8,1>UB {align1};
+mov (16) g79.0<1>UW g87.2<16,8,1>UB {align1};
+mov (16) g80.0<1>UW g88.2<16,8,1>UB {align1};
+mov (16) g81.0<1>UW g89.2<16,8,1>UB {align1};
+mov (16) g82.0<1>UW g91.2<16,8,1>UB {align1};
+mov (16) g83.0<1>UW g92.2<16,8,1>UB {align1};
+mov (16) g84.0<1>UW g93.2<16,8,1>UB {align1};
+mov (16) g85.0<1>UW g94.2<16,8,1>UB {align1};
+jmpi out;
+
+mov (16) g78.0<1>UW g86.3<16,8,1>UB {align1};
+mov (16) g79.0<1>UW g87.3<16,8,1>UB {align1};
+mov (16) g80.0<1>UW g88.3<16,8,1>UB {align1};
+mov (16) g81.0<1>UW g89.3<16,8,1>UB {align1};
+mov (16) g82.0<1>UW g91.3<16,8,1>UB {align1};
+mov (16) g83.0<1>UW g92.3<16,8,1>UB {align1};
+mov (16) g84.0<1>UW g93.3<16,8,1>UB {align1};
+mov (16) g85.0<1>UW g94.3<16,8,1>UB {align1};
+out:
diff --git a/src/xvmc/shader/mc/read_field_x0y0_uv_igd.g4i b/src/xvmc/shader/mc/read_field_x0y0_uv_igd.g4i
new file mode 100644
index 0000000..23fe1a5
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y0_uv_igd.g4i
@@ -0,0 +1,30 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data
+*/
+
+mov (1) g115.8<1>UD 0x07000FUD {align1};
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(5,2,0,2) mlen 1 rlen 4 {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(6,2,0,2) mlen 1 rlen 4 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(8,2,0,2) mlen 1 rlen 4 {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(9,2,0,2) mlen 1 rlen 4 {align1};
+
+put_data:
+mov (16) g32.0<1>UW g40.0<8,8,1>UB {align1 compr};
+mov (16) g34.0<1>UW g42.0<8,8,1>UB {align1 compr};
+
+mov (16) g36.0<1>UW g48.0<8,8,1>UB {align1 compr};
+mov (16) g38.0<1>UW g50.0<8,8,1>UB {align1 compr};
diff --git a/src/xvmc/shader/mc/read_field_x0y0_y.g4i b/src/xvmc/shader/mc/read_field_x0y0_y.g4i
new file mode 100644
index 0000000..8f4e339
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y0_y.g4i
@@ -0,0 +1,83 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g78.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g80.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g82.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g84.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g86.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+mov (16) g96.0<1>UW g78.0<16,16,1>UB {align1};
+mov (16) g97.0<1>UW g80.0<16,16,1>UB {align1};
+mov (16) g98.0<1>UW g82.0<16,16,1>UB {align1};
+mov (16) g99.0<1>UW g84.0<16,16,1>UB {align1};
+mov (16) g100.0<1>UW g86.0<16,16,1>UB {align1};
+mov (16) g101.0<1>UW g88.0<16,16,1>UB {align1};
+mov (16) g102.0<1>UW g90.0<16,16,1>UB {align1};
+mov (16) g103.0<1>UW g92.0<16,16,1>UB {align1};
+jmpi out;
+
+mov (16) g96.0<1>UW g78.1<16,16,1>UB {align1};
+mov (16) g97.0<1>UW g80.1<16,16,1>UB {align1};
+mov (16) g98.0<1>UW g82.1<16,16,1>UB {align1};
+mov (16) g99.0<1>UW g84.1<16,16,1>UB {align1};
+mov (16) g100.0<1>UW g86.1<16,16,1>UB {align1};
+mov (16) g101.0<1>UW g88.1<16,16,1>UB {align1};
+mov (16) g102.0<1>UW g90.1<16,16,1>UB {align1};
+mov (16) g103.0<1>UW g92.1<16,16,1>UB {align1};
+jmpi out;
+
+mov (16) g96.0<1>UW g78.2<16,16,1>UB {align1};
+mov (16) g97.0<1>UW g80.2<16,16,1>UB {align1};
+mov (16) g98.0<1>UW g82.2<16,16,1>UB {align1};
+mov (16) g99.0<1>UW g84.2<16,16,1>UB {align1};
+mov (16) g100.0<1>UW g86.2<16,16,1>UB {align1};
+mov (16) g101.0<1>UW g88.2<16,16,1>UB {align1};
+mov (16) g102.0<1>UW g90.2<16,16,1>UB {align1};
+mov (16) g103.0<1>UW g92.2<16,16,1>UB {align1};
+jmpi out;
+
+mov (16) g96.0<1>UW g78.3<16,16,1>UB {align1};
+mov (16) g97.0<1>UW g80.3<16,16,1>UB {align1};
+mov (16) g98.0<1>UW g82.3<16,16,1>UB {align1};
+mov (16) g99.0<1>UW g84.3<16,16,1>UB {align1};
+mov (16) g100.0<1>UW g86.3<16,16,1>UB {align1};
+mov (16) g101.0<1>UW g88.3<16,16,1>UB {align1};
+mov (16) g102.0<1>UW g90.3<16,16,1>UB {align1};
+mov (16) g103.0<1>UW g92.3<16,16,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_field_x0y0_y_igd.g4i b/src/xvmc/shader/mc/read_field_x0y0_y_igd.g4i
new file mode 100644
index 0000000..8dcb96d
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y0_y_igd.g4i
@@ -0,0 +1,35 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g84~g107:IDCT data
+ g115: message descriptor for reading reference data
+*/
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+
+put_data:
+mov (16) g32.0<1>UW g40.0<16,16,1>UB {align1};
+mov (16) g33.0<1>UW g42.0<16,16,1>UB {align1};
+mov (16) g34.0<1>UW g44.0<16,16,1>UB {align1};
+mov (16) g35.0<1>UW g46.0<16,16,1>UB {align1};
+mov (16) g36.0<1>UW g48.0<16,16,1>UB {align1};
+mov (16) g37.0<1>UW g50.0<16,16,1>UB {align1};
+mov (16) g38.0<1>UW g52.0<16,16,1>UB {align1};
+mov (16) g39.0<1>UW g54.0<16,16,1>UB {align1};
+
diff --git a/src/xvmc/shader/mc/read_field_x0y1_uv.g4i b/src/xvmc/shader/mc/read_field_x0y1_uv.g4i
new file mode 100644
index 0000000..1be4fd2
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y1_uv.g4i
@@ -0,0 +1,78 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x07000FUD {align1}; // 8*16/32=4
+send (16) 0 g86.0<1>UW g115<16,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g91.0<1>UW g115<16,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+mov (1) g115.8<1>UD 0xFUD {align1};
+send (16) 0 g90.0<1>UW g115<16,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 1 {align1};
+send (16) 0 g95.0<1>UW g115<16,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 1 {align1};
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g78.0<1>UW g86.0<16,8,1>UB g87.0<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.0<16,8,1>UB g88.0<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.0<16,8,1>UB g89.0<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.0<16,8,1>UB g90.0<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.0<16,8,1>UB g92.0<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.0<16,8,1>UB g93.0<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.0<16,8,1>UB g94.0<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.0<16,8,1>UB g95.0<16,8,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g78.0<1>UW g86.1<16,8,1>UB g87.1<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.1<16,8,1>UB g88.1<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.1<16,8,1>UB g89.1<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.1<16,8,1>UB g90.1<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.1<16,8,1>UB g92.1<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.1<16,8,1>UB g93.1<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.1<16,8,1>UB g94.1<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.1<16,8,1>UB g95.1<16,8,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g78.0<1>UW g86.2<16,8,1>UB g87.2<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.2<16,8,1>UB g88.2<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.2<16,8,1>UB g89.2<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.2<16,8,1>UB g90.2<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.2<16,8,1>UB g92.2<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.2<16,8,1>UB g93.2<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.2<16,8,1>UB g94.2<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.2<16,8,1>UB g95.2<16,8,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g78.0<1>UW g86.3<16,8,1>UB g86.3<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.3<16,8,1>UB g87.3<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.3<16,8,1>UB g88.3<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.3<16,8,1>UB g89.3<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.3<16,8,1>UB g91.3<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.3<16,8,1>UB g92.3<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.3<16,8,1>UB g93.3<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.3<16,8,1>UB g94.3<16,8,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_field_x0y1_uv_igd.g4i b/src/xvmc/shader/mc/read_field_x0y1_uv_igd.g4i
new file mode 100644
index 0000000..489f50a
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y1_uv_igd.g4i
@@ -0,0 +1,42 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data
+*/
+
+mov (1) g115.8<1>UD 0x07000FUD {align1};
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(5, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g45.0<1>UW g115<8,8,1>UW read(6, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+mov (1) g115.8<1>UD 0xFUD {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(5, 2, 0, 2) mlen 1 rlen 1 {align1};//U
+send (16) 0 g49.0<1>UW g115<8,8,1>UW read(6, 2, 0, 2) mlen 1 rlen 1 {align1};//V
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(8, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g45.0<1>UW g115<8,8,1>UW read(9, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+mov (1) g115.8<1>UD 0xFUD {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(8, 2, 0, 2) mlen 1 rlen 1 {align1};//U
+send (16) 0 g49.0<1>UW g115<8,8,1>UW read(9, 2, 0, 2) mlen 1 rlen 1 {align1};//V
+
+put_data:
+avg (8) g32.0<1>UW g40.0<8,8,1>UB g41.0<8,8,1>UB {align1};
+avg (8) g33.0<1>UW g41.0<8,8,1>UB g42.0<8,8,1>UB {align1};
+avg (8) g34.0<1>UW g42.0<8,8,1>UB g43.0<8,8,1>UB {align1};
+avg (8) g35.0<1>UW g43.0<8,8,1>UB g44.0<8,8,1>UB {align1};
+
+avg (8) g36.0<1>UW g45.0<8,8,1>UB g46.0<8,8,1>UB {align1};
+avg (8) g37.0<1>UW g46.0<8,8,1>UB g47.0<8,8,1>UB {align1};
+avg (8) g38.0<1>UW g47.0<8,8,1>UB g48.0<8,8,1>UB {align1};
+avg (8) g39.0<1>UW g48.0<8,8,1>UB g49.0<8,8,1>UB {align1};
diff --git a/src/xvmc/shader/mc/read_field_x0y1_y.g4i b/src/xvmc/shader/mc/read_field_x0y1_y.g4i
new file mode 100644
index 0000000..a15a221
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y1_y.g4i
@@ -0,0 +1,86 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g78.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g80.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g82.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g84.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g86.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g94.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g96.0<1>UW g78.0<16,16,1>UB g80.0<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.0<16,16,1>UB g82.0<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.0<16,16,1>UB g84.0<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.0<16,16,1>UB g86.0<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.0<16,16,1>UB g88.0<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.0<16,16,1>UB g90.0<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.0<16,16,1>UB g92.0<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.0<16,16,1>UB g94.0<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g96.0<1>UW g78.1<16,16,1>UB g80.1<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.1<16,16,1>UB g82.1<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.1<16,16,1>UB g84.1<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.1<16,16,1>UB g86.1<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.1<16,16,1>UB g88.1<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.1<16,16,1>UB g90.1<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.1<16,16,1>UB g92.1<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.1<16,16,1>UB g94.1<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g96.0<1>UW g78.2<16,16,1>UB g80.2<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.2<16,16,1>UB g82.2<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.2<16,16,1>UB g84.2<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.2<16,16,1>UB g86.2<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.2<16,16,1>UB g88.2<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.2<16,16,1>UB g90.2<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.2<16,16,1>UB g92.2<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.2<16,16,1>UB g94.2<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g96.0<1>UW g78.3<16,16,1>UB g80.3<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.3<16,16,1>UB g82.3<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.3<16,16,1>UB g84.3<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.3<16,16,1>UB g86.3<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.3<16,16,1>UB g88.3<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.3<16,16,1>UB g90.3<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.3<16,16,1>UB g92.3<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.3<16,16,1>UB g94.3<16,16,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_field_x0y1_y_igd.g4i b/src/xvmc/shader/mc/read_field_x0y1_y_igd.g4i
new file mode 100644
index 0000000..58d3f26
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x0y1_y_igd.g4i
@@ -0,0 +1,42 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data
+*/
+
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g56.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 1 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g56.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 1 {align1};
+
+put_data:
+avg (16) g32.0<1>UW g40.0<16,16,1>UB g42.0<16,16,1>UB {align1};
+avg (16) g33.0<1>UW g42.0<16,16,1>UB g44.0<16,16,1>UB {align1};
+avg (16) g34.0<1>UW g44.0<16,16,1>UB g46.0<16,16,1>UB {align1};
+avg (16) g35.0<1>UW g46.0<16,16,1>UB g48.0<16,16,1>UB {align1};
+avg (16) g36.0<1>UW g48.0<16,16,1>UB g50.0<16,16,1>UB {align1};
+avg (16) g37.0<1>UW g50.0<16,16,1>UB g52.0<16,16,1>UB {align1};
+avg (16) g38.0<1>UW g52.0<16,16,1>UB g54.0<16,16,1>UB {align1};
+avg (16) g39.0<1>UW g54.0<16,16,1>UB g56.0<16,16,1>UB {align1};
+
diff --git a/src/xvmc/shader/mc/read_field_x1y0_uv.g4i b/src/xvmc/shader/mc/read_field_x1y0_uv.g4i
new file mode 100644
index 0000000..e89a2dc
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y0_uv.g4i
@@ -0,0 +1,75 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x07000FUD {align1}; // 8*16/32=4
+send (16) 0 g86.0<1>UW g115<16,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g91.0<1>UW g115<16,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g78.0<1>UW g86.0<16,8,1>UB g86.1<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.0<16,8,1>UB g87.1<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.0<16,8,1>UB g88.1<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.0<16,8,1>UB g89.1<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.0<16,8,1>UB g91.1<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.0<16,8,1>UB g92.1<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.0<16,8,1>UB g93.1<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.0<16,8,1>UB g94.1<16,8,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g78.0<1>UW g86.1<16,8,1>UB g86.2<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.1<16,8,1>UB g87.2<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.1<16,8,1>UB g88.2<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.1<16,8,1>UB g89.2<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.1<16,8,1>UB g91.2<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.1<16,8,1>UB g92.2<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.1<16,8,1>UB g93.2<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.1<16,8,1>UB g94.2<16,8,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g78.0<1>UW g86.2<16,8,1>UB g86.3<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.2<16,8,1>UB g87.3<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.2<16,8,1>UB g88.3<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.2<16,8,1>UB g89.3<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.2<16,8,1>UB g91.3<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.2<16,8,1>UB g92.3<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.2<16,8,1>UB g93.3<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.2<16,8,1>UB g94.3<16,8,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g78.0<1>UW g86.3<16,8,1>UB g86.4<16,8,1>UB {align1};
+avg.sat (16) g79.0<1>UW g87.3<16,8,1>UB g87.4<16,8,1>UB {align1};
+avg.sat (16) g80.0<1>UW g88.3<16,8,1>UB g88.4<16,8,1>UB {align1};
+avg.sat (16) g81.0<1>UW g89.3<16,8,1>UB g89.4<16,8,1>UB {align1};
+avg.sat (16) g82.0<1>UW g91.3<16,8,1>UB g91.4<16,8,1>UB {align1};
+avg.sat (16) g83.0<1>UW g92.3<16,8,1>UB g92.4<16,8,1>UB {align1};
+avg.sat (16) g84.0<1>UW g93.3<16,8,1>UB g93.4<16,8,1>UB {align1};
+avg.sat (16) g85.0<1>UW g94.3<16,8,1>UB g94.4<16,8,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_field_x1y0_uv_igd.g4i b/src/xvmc/shader/mc/read_field_x1y0_uv_igd.g4i
new file mode 100644
index 0000000..0cec2e0
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y0_uv_igd.g4i
@@ -0,0 +1,33 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+
+mov (1) g115.8<1>UD 0x07000FUD {align1}; // 8*16/32=4
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(5, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(6, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(8, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(9, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+
+put_data:
+avg (8) g32.0<1>UW g40.0<8,8,1>UB g40.1<8,8,1>UB {align1};
+avg (8) g33.0<1>UW g41.0<8,8,1>UB g41.1<8,8,1>UB {align1};
+avg (8) g34.0<1>UW g42.0<8,8,1>UB g42.1<8,8,1>UB {align1};
+avg (8) g35.0<1>UW g43.0<8,8,1>UB g43.1<8,8,1>UB {align1};
+
+avg (8) g36.0<1>UW g44.0<8,8,1>UB g44.1<8,8,1>UB {align1};
+avg (8) g37.0<1>UW g45.0<8,8,1>UB g45.1<8,8,1>UB {align1};
+avg (8) g38.0<1>UW g46.0<8,8,1>UB g46.1<8,8,1>UB {align1};
+avg (8) g39.0<1>UW g47.0<8,8,1>UB g47.1<8,8,1>UB {align1};
diff --git a/src/xvmc/shader/mc/read_field_x1y0_y.g4i b/src/xvmc/shader/mc/read_field_x1y0_y.g4i
new file mode 100644
index 0000000..a517aaa
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y0_y.g4i
@@ -0,0 +1,83 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g78.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g80.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g82.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g84.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g86.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g96.0<1>UW g78.0<16,16,1>UB g78.1<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.0<16,16,1>UB g80.1<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.0<16,16,1>UB g82.1<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.0<16,16,1>UB g84.1<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.0<16,16,1>UB g86.1<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.0<16,16,1>UB g88.1<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.0<16,16,1>UB g90.1<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.0<16,16,1>UB g92.1<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g96.0<1>UW g78.1<16,16,1>UB g78.2<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.1<16,16,1>UB g80.2<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.1<16,16,1>UB g82.2<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.1<16,16,1>UB g84.2<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.1<16,16,1>UB g86.2<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.1<16,16,1>UB g88.2<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.1<16,16,1>UB g90.2<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.1<16,16,1>UB g92.2<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g96.0<1>UW g78.2<16,16,1>UB g78.3<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.2<16,16,1>UB g80.3<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.2<16,16,1>UB g82.3<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.2<16,16,1>UB g84.3<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.2<16,16,1>UB g86.3<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.2<16,16,1>UB g88.3<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.2<16,16,1>UB g90.3<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.2<16,16,1>UB g92.3<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g96.0<1>UW g78.3<16,16,1>UB g78.4<16,16,1>UB {align1};
+avg.sat (16) g97.0<1>UW g80.3<16,16,1>UB g80.4<16,16,1>UB {align1};
+avg.sat (16) g98.0<1>UW g82.3<16,16,1>UB g82.4<16,16,1>UB {align1};
+avg.sat (16) g99.0<1>UW g84.3<16,16,1>UB g84.4<16,16,1>UB {align1};
+avg.sat (16) g100.0<1>UW g86.3<16,16,1>UB g86.4<16,16,1>UB {align1};
+avg.sat (16) g101.0<1>UW g88.3<16,16,1>UB g88.4<16,16,1>UB {align1};
+avg.sat (16) g102.0<1>UW g90.3<16,16,1>UB g90.4<16,16,1>UB {align1};
+avg.sat (16) g103.0<1>UW g92.3<16,16,1>UB g92.4<16,16,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_field_x1y0_y_igd.g4i b/src/xvmc/shader/mc/read_field_x1y0_y_igd.g4i
new file mode 100644
index 0000000..f76a267
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y0_y_igd.g4i
@@ -0,0 +1,35 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data
+*/
+
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+
+put_data:
+avg (16) g32.0<1>UW g40.0<16,16,1>UB g40.1<16,16,1>UB {align1};
+avg (16) g33.0<1>UW g42.0<16,16,1>UB g42.1<16,16,1>UB {align1};
+avg (16) g34.0<1>UW g44.0<16,16,1>UB g44.1<16,16,1>UB {align1};
+avg (16) g35.0<1>UW g46.0<16,16,1>UB g46.1<16,16,1>UB {align1};
+avg (16) g36.0<1>UW g48.0<16,16,1>UB g48.1<16,16,1>UB {align1};
+avg (16) g37.0<1>UW g50.0<16,16,1>UB g50.1<16,16,1>UB {align1};
+avg (16) g38.0<1>UW g52.0<16,16,1>UB g52.1<16,16,1>UB {align1};
+avg (16) g39.0<1>UW g54.0<16,16,1>UB g54.1<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/mc/read_field_x1y1_uv.g4i b/src/xvmc/shader/mc/read_field_x1y1_uv.g4i
new file mode 100644
index 0000000..162de9a
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y1_uv.g4i
@@ -0,0 +1,172 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x07000FUD {align1};
+send (16) 0 g86.0<1>UW g115<16,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g91.0<1>UW g115<16,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 25UD {align1};
+mov (1) g115.8<1>UD 0x01000FUD {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g90.0<1>UW g115<16,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 1 {align1};
+send (16) 0 g95.0<1>UW g115<16,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 1 {align1};
+jmpi g2.24<1,1,1>D;
+//U
+add (16) g78.0<1>UW g86.0<16,8,1>UB g87.0<16,8,1>UB {align1};
+add (16) g79.0<1>UW g87.0<16,8,1>UB g88.0<16,8,1>UB {align1};
+add (16) g80.0<1>UW g88.0<16,8,1>UB g89.0<16,8,1>UB {align1};
+add (16) g81.0<1>UW g89.0<16,8,1>UB g90.0<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g86.1<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g87.1<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g88.1<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g89.1<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g87.1<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g88.1<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g89.1<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g90.1<16,8,1>UB {align1};
+//V
+add (16) g82.0<1>UW g91.0<16,8,1>UB g92.0<16,8,1>UB {align1};
+add (16) g83.0<1>UW g92.0<16,8,1>UB g93.0<16,8,1>UB {align1};
+add (16) g84.0<1>UW g93.0<16,8,1>UB g94.0<16,8,1>UB {align1};
+add (16) g85.0<1>UW g94.0<16,8,1>UB g95.0<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g91.1<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g92.1<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g93.1<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g94.1<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g92.1<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g93.1<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g94.1<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g95.1<16,8,1>UB {align1};
+jmpi out;
+//U
+add (16) g78.0<1>UW g86.1<16,8,1>UB g87.1<16,8,1>UB {align1};
+add (16) g79.0<1>UW g87.1<16,8,1>UB g88.1<16,8,1>UB {align1};
+add (16) g80.0<1>UW g88.1<16,8,1>UB g89.1<16,8,1>UB {align1};
+add (16) g81.0<1>UW g89.1<16,8,1>UB g90.1<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g86.2<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g87.2<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g88.2<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g89.2<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g87.2<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g88.2<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g89.2<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g90.2<16,8,1>UB {align1};
+//V
+add (16) g82.0<1>UW g91.1<16,8,1>UB g92.1<16,8,1>UB {align1};
+add (16) g83.0<1>UW g92.1<16,8,1>UB g93.1<16,8,1>UB {align1};
+add (16) g84.0<1>UW g93.1<16,8,1>UB g94.1<16,8,1>UB {align1};
+add (16) g85.0<1>UW g94.1<16,8,1>UB g95.1<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g91.2<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g92.2<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g93.2<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g94.2<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g92.2<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g93.2<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g94.2<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g95.2<16,8,1>UB {align1};
+jmpi out;
+//U
+add (16) g78.0<1>UW g86.2<16,8,1>UB g87.2<16,8,1>UB {align1};
+add (16) g79.0<1>UW g87.2<16,8,1>UB g88.2<16,8,1>UB {align1};
+add (16) g80.0<1>UW g88.2<16,8,1>UB g89.2<16,8,1>UB {align1};
+add (16) g81.0<1>UW g89.2<16,8,1>UB g90.2<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g86.3<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g87.3<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g88.3<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g89.3<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g87.3<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g88.3<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g89.3<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g90.3<16,8,1>UB {align1};
+//V
+add (16) g82.0<1>UW g91.2<16,8,1>UB g92.2<16,8,1>UB {align1};
+add (16) g83.0<1>UW g92.2<16,8,1>UB g93.2<16,8,1>UB {align1};
+add (16) g84.0<1>UW g93.2<16,8,1>UB g94.2<16,8,1>UB {align1};
+add (16) g85.0<1>UW g94.2<16,8,1>UB g95.2<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g91.3<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g92.3<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g93.3<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g94.3<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g92.3<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g93.3<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g94.3<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g95.3<16,8,1>UB {align1};
+jmpi out;
+//U
+add (16) g78.0<1>UW g86.3<16,8,1>UB g87.3<16,8,1>UB {align1};
+add (16) g79.0<1>UW g87.3<16,8,1>UB g88.3<16,8,1>UB {align1};
+add (16) g80.0<1>UW g88.3<16,8,1>UB g89.3<16,8,1>UB {align1};
+add (16) g81.0<1>UW g89.3<16,8,1>UB g90.3<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g86.4<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g87.4<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g88.4<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g89.4<16,8,1>UB {align1};
+
+add (16) g78.0<1>UW g78.0<16,8,1>UW g87.4<16,8,1>UB {align1};
+add (16) g79.0<1>UW g79.0<16,8,1>UW g88.4<16,8,1>UB {align1};
+add (16) g80.0<1>UW g80.0<16,8,1>UW g89.4<16,8,1>UB {align1};
+add (16) g81.0<1>UW g81.0<16,8,1>UW g90.4<16,8,1>UB {align1};
+//V
+add (16) g82.0<1>UW g91.3<16,8,1>UB g92.3<16,8,1>UB {align1};
+add (16) g83.0<1>UW g92.3<16,8,1>UB g93.3<16,8,1>UB {align1};
+add (16) g84.0<1>UW g93.3<16,8,1>UB g94.3<16,8,1>UB {align1};
+add (16) g85.0<1>UW g94.3<16,8,1>UB g95.3<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g91.4<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g92.4<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g93.4<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g94.4<16,8,1>UB {align1};
+
+add (16) g82.0<1>UW g82.0<16,8,1>UW g92.4<16,8,1>UB {align1};
+add (16) g83.0<1>UW g83.0<16,8,1>UW g93.4<16,8,1>UB {align1};
+add (16) g84.0<1>UW g84.0<16,8,1>UW g94.4<16,8,1>UB {align1};
+add (16) g85.0<1>UW g85.0<16,8,1>UW g95.4<16,8,1>UB {align1};
+
+out:
+shr.sat (16) g78.0<1>UW g78.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g79.0<1>UW g79.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g80.0<1>UW g80.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g81.0<1>UW g81.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g82.0<1>UW g82.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g83.0<1>UW g83.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g84.0<1>UW g84.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g85.0<1>UW g85.0<16,16,1>UW 2UW {align1};
+
diff --git a/src/xvmc/shader/mc/read_field_x1y1_uv_igd.g4i b/src/xvmc/shader/mc/read_field_x1y1_uv_igd.g4i
new file mode 100644
index 0000000..e261225
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y1_uv_igd.g4i
@@ -0,0 +1,66 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (1) g115.8<1>UD 0x07000FUD {align1};
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(5, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g45.0<1>UW g115<8,8,1>UW read(6, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+mov (1) g115.8<1>UD 0xFUD {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(5, 2, 0, 2) mlen 1 rlen 1 {align1};//U
+send (16) 0 g49.0<1>UW g115<8,8,1>UW read(6, 2, 0, 2) mlen 1 rlen 1 {align1};//V
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(8, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g45.0<1>UW g115<8,8,1>UW read(9, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+mov (1) g115.8<1>UD 0xFUD {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(8, 2, 0, 2) mlen 1 rlen 1 {align1};//U
+send (16) 0 g49.0<1>UW g115<8,8,1>UW read(9, 2, 0, 2) mlen 1 rlen 1 {align1};//V
+
+put_data:
+//U
+add (8) g32.0<1>UW g40.0<8,8,1>UB g41.0<8,8,1>UB {align1};
+add (8) g33.0<1>UW g41.0<8,8,1>UB g42.0<8,8,1>UB {align1};
+add (8) g34.0<1>UW g42.0<8,8,1>UB g43.0<8,8,1>UB {align1};
+add (8) g35.0<1>UW g43.0<8,8,1>UB g44.0<8,8,1>UB {align1};
+
+add (8) g32.0<1>UW g32.0<8,8,1>UW g40.1<8,8,1>UB {align1};
+add (8) g33.0<1>UW g33.0<8,8,1>UW g41.1<8,8,1>UB {align1};
+add (8) g34.0<1>UW g34.0<8,8,1>UW g42.1<8,8,1>UB {align1};
+add (8) g35.0<1>UW g35.0<8,8,1>UW g43.1<8,8,1>UB {align1};
+
+add (8) g32.0<1>UW g32.0<8,8,1>UW g41.1<8,8,1>UB {align1};
+add (8) g33.0<1>UW g33.0<8,8,1>UW g42.1<8,8,1>UB {align1};
+add (8) g34.0<1>UW g34.0<8,8,1>UW g43.1<8,8,1>UB {align1};
+add (8) g35.0<1>UW g35.0<8,8,1>UW g44.1<8,8,1>UB {align1};
+//V
+add (8) g36.0<1>UW g45.0<8,8,1>UB g46.0<8,8,1>UB {align1};
+add (8) g37.0<1>UW g46.0<8,8,1>UB g47.0<8,8,1>UB {align1};
+add (8) g38.0<1>UW g47.0<8,8,1>UB g48.0<8,8,1>UB {align1};
+add (8) g39.0<1>UW g48.0<8,8,1>UB g49.0<8,8,1>UB {align1};
+
+add (8) g36.0<1>UW g36.0<8,8,1>UW g45.1<8,8,1>UB {align1};
+add (8) g37.0<1>UW g37.0<8,8,1>UW g46.1<8,8,1>UB {align1};
+add (8) g38.0<1>UW g38.0<8,8,1>UW g47.1<8,8,1>UB {align1};
+add (8) g39.0<1>UW g39.0<8,8,1>UW g48.1<8,8,1>UB {align1};
+
+add (8) g36.0<1>UW g36.0<8,8,1>UW g46.1<8,8,1>UB {align1};
+add (8) g37.0<1>UW g37.0<8,8,1>UW g47.1<8,8,1>UB {align1};
+add (8) g38.0<1>UW g38.0<8,8,1>UW g48.1<8,8,1>UB {align1};
+add (8) g39.0<1>UW g39.0<8,8,1>UW g49.1<8,8,1>UB {align1};
+
+shr (32) g32.0<1>UW g32.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g34.0<1>UW g34.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g36.0<1>UW g36.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g38.0<1>UW g38.0<16,16,1>UW 2UW {align1 compr};
diff --git a/src/xvmc/shader/mc/read_field_x1y1_y.g4i b/src/xvmc/shader/mc/read_field_x1y1_y.g4i
new file mode 100644
index 0000000..7c01701
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y1_y.g4i
@@ -0,0 +1,166 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g78.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g80.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g82.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g84.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g86.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g94.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+and (1) g2.24<1>UD g115.0<1,1,1>UD 3UD {align1};
+mul (1) g2.24<1>UD g2.24<1,1,1>UD 25UD {align1};
+jmpi g2.24<1,1,1>D;
+
+add (16) g96.0<1>UW g78.0<16,16,1>UB g80.0<16,16,1>UB {align1};
+add (16) g97.0<1>UW g80.0<16,16,1>UB g82.0<16,16,1>UB {align1};
+add (16) g98.0<1>UW g82.0<16,16,1>UB g84.0<16,16,1>UB {align1};
+add (16) g99.0<1>UW g84.0<16,16,1>UB g86.0<16,16,1>UB {align1};
+add (16) g100.0<1>UW g86.0<16,16,1>UB g88.0<16,16,1>UB {align1};
+add (16) g101.0<1>UW g88.0<16,16,1>UB g90.0<16,16,1>UB {align1};
+add (16) g102.0<1>UW g90.0<16,16,1>UB g92.0<16,16,1>UB {align1};
+add (16) g103.0<1>UW g92.0<16,16,1>UB g94.0<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g78.1<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g80.1<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g82.1<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g84.1<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g86.1<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g88.1<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g90.1<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g92.1<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g80.1<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g82.1<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g84.1<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g86.1<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g88.1<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g90.1<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g92.1<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g94.1<16,16,1>UB {align1};
+jmpi out;
+
+add (16) g96.0<1>UW g78.1<16,16,1>UB g80.1<16,16,1>UB {align1};
+add (16) g97.0<1>UW g80.1<16,16,1>UB g82.1<16,16,1>UB {align1};
+add (16) g98.0<1>UW g82.1<16,16,1>UB g84.1<16,16,1>UB {align1};
+add (16) g99.0<1>UW g84.1<16,16,1>UB g86.1<16,16,1>UB {align1};
+add (16) g100.0<1>UW g86.1<16,16,1>UB g88.1<16,16,1>UB {align1};
+add (16) g101.0<1>UW g88.1<16,16,1>UB g90.1<16,16,1>UB {align1};
+add (16) g102.0<1>UW g90.1<16,16,1>UB g92.1<16,16,1>UB {align1};
+add (16) g103.0<1>UW g92.1<16,16,1>UB g94.1<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g78.2<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g80.2<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g82.2<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g84.2<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g86.2<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g88.2<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g90.2<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g92.2<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g80.2<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g82.2<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g84.2<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g86.2<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g88.2<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g90.2<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g92.2<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g94.2<16,16,1>UB {align1};
+jmpi out;
+
+add (16) g96.0<1>UW g78.2<16,16,1>UB g80.2<16,16,1>UB {align1};
+add (16) g97.0<1>UW g80.2<16,16,1>UB g82.2<16,16,1>UB {align1};
+add (16) g98.0<1>UW g82.2<16,16,1>UB g84.2<16,16,1>UB {align1};
+add (16) g99.0<1>UW g84.2<16,16,1>UB g86.2<16,16,1>UB {align1};
+add (16) g100.0<1>UW g86.2<16,16,1>UB g88.2<16,16,1>UB {align1};
+add (16) g101.0<1>UW g88.2<16,16,1>UB g90.2<16,16,1>UB {align1};
+add (16) g102.0<1>UW g90.2<16,16,1>UB g92.2<16,16,1>UB {align1};
+add (16) g103.0<1>UW g92.2<16,16,1>UB g94.2<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g78.3<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g80.3<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g82.3<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g84.3<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g86.3<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g88.3<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g90.3<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g92.3<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g80.3<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g82.3<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g84.3<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g86.3<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g88.3<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g90.3<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g92.3<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g94.3<16,16,1>UB {align1};
+jmpi out;
+
+add (16) g96.0<1>UW g78.3<16,16,1>UB g80.3<16,16,1>UB {align1};
+add (16) g97.0<1>UW g80.3<16,16,1>UB g82.3<16,16,1>UB {align1};
+add (16) g98.0<1>UW g82.3<16,16,1>UB g84.3<16,16,1>UB {align1};
+add (16) g99.0<1>UW g84.3<16,16,1>UB g86.3<16,16,1>UB {align1};
+add (16) g100.0<1>UW g86.3<16,16,1>UB g88.3<16,16,1>UB {align1};
+add (16) g101.0<1>UW g88.3<16,16,1>UB g90.3<16,16,1>UB {align1};
+add (16) g102.0<1>UW g90.3<16,16,1>UB g92.3<16,16,1>UB {align1};
+add (16) g103.0<1>UW g92.3<16,16,1>UB g94.3<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g78.4<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g80.4<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g82.4<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g84.4<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g86.4<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g88.4<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g90.4<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g92.4<16,16,1>UB {align1};
+
+add (16) g96.0<1>UW g96.0<16,16,1>UW g80.4<16,16,1>UB {align1};
+add (16) g97.0<1>UW g97.0<16,16,1>UW g82.4<16,16,1>UB {align1};
+add (16) g98.0<1>UW g98.0<16,16,1>UW g84.4<16,16,1>UB {align1};
+add (16) g99.0<1>UW g99.0<16,16,1>UW g86.4<16,16,1>UB {align1};
+add (16) g100.0<1>UW g100.0<16,16,1>UW g88.4<16,16,1>UB {align1};
+add (16) g101.0<1>UW g101.0<16,16,1>UW g90.4<16,16,1>UB {align1};
+add (16) g102.0<1>UW g102.0<16,16,1>UW g92.4<16,16,1>UB {align1};
+add (16) g103.0<1>UW g103.0<16,16,1>UW g94.4<16,16,1>UB {align1};
+
+out:
+shr (16) g96.0<1>UW g96.0<16,16,1>UW 2UW {align1};
+shr (16) g97.0<1>UW g97.0<16,16,1>UW 2UW {align1};
+shr (16) g98.0<1>UW g98.0<16,16,1>UW 2UW {align1};
+shr (16) g99.0<1>UW g99.0<16,16,1>UW 2UW {align1};
+shr (16) g100.0<1>UW g100.0<16,16,1>UW 2UW {align1};
+shr (16) g101.0<1>UW g101.0<16,16,1>UW 2UW {align1};
+shr (16) g102.0<1>UW g102.0<16,16,1>UW 2UW {align1};
+shr (16) g103.0<1>UW g103.0<16,16,1>UW 2UW {align1};
diff --git a/src/xvmc/shader/mc/read_field_x1y1_y_igd.g4i b/src/xvmc/shader/mc/read_field_x1y1_y_igd.g4i
new file mode 100644
index 0000000..db635fe
--- /dev/null
+++ b/src/xvmc/shader/mc/read_field_x1y1_y_igd.g4i
@@ -0,0 +1,64 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data
+*/
+
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+and.nz (1) null g115.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g56.0<1>UW g115<8,8,1>UW read(4,2,0,2) mlen 1 rlen 1 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g56.0<1>UW g115<8,8,1>UW read(7,2,0,2) mlen 1 rlen 1 {align1};
+
+put_data:
+add (16) g32.0<1>UW g40.0<16,16,1>UB g42.0<16,16,1>UB {align1};
+add (16) g33.0<1>UW g42.0<16,16,1>UB g44.0<16,16,1>UB {align1};
+add (16) g34.0<1>UW g44.0<16,16,1>UB g46.0<16,16,1>UB {align1};
+add (16) g35.0<1>UW g46.0<16,16,1>UB g48.0<16,16,1>UB {align1};
+add (16) g36.0<1>UW g48.0<16,16,1>UB g50.0<16,16,1>UB {align1};
+add (16) g37.0<1>UW g50.0<16,16,1>UB g52.0<16,16,1>UB {align1};
+add (16) g38.0<1>UW g52.0<16,16,1>UB g54.0<16,16,1>UB {align1};
+add (16) g39.0<1>UW g54.0<16,16,1>UB g56.0<16,16,1>UB {align1};
+
+add (16) g32.0<1>UW g32.0<16,16,1>UW g40.1<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g42.1<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g44.1<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g46.1<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g48.1<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g50.1<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g52.1<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g54.1<16,16,1>UB {align1};
+
+add (16) g32.0<1>UW g32.0<16,16,1>UW g42.1<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g44.1<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g46.1<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g48.1<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g50.1<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g52.1<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g54.1<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g56.1<16,16,1>UB {align1};
+
+shr (32) g32.0<1>UW g32.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g34.0<1>UW g34.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g36.0<1>UW g36.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g38.0<1>UW g38.0<16,16,1>UW 2UW {align1 compr};
diff --git a/src/xvmc/shader/mc/read_frame_x0y0_uv.g4i b/src/xvmc/shader/mc/read_frame_x0y0_uv.g4i
new file mode 100644
index 0000000..43f77a8
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y0_uv.g4i
@@ -0,0 +1,73 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+and (1) g2.24<1>UD g2.0<1,1,1>UD 0x3UD {align1};
+send (16) 0 g86.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g90.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 0x9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+mov (16) g44.0<1>UW g86.0<16,8,1>UB {align1};
+mov (16) g45.0<1>UW g87.0<16,8,1>UB {align1};
+mov (16) g46.0<1>UW g88.0<16,8,1>UB {align1};
+mov (16) g47.0<1>UW g89.0<16,8,1>UB {align1};
+mov (16) g48.0<1>UW g90.0<16,8,1>UB {align1};
+mov (16) g49.0<1>UW g91.0<16,8,1>UB {align1};
+mov (16) g50.0<1>UW g92.0<16,8,1>UB {align1};
+mov (16) g51.0<1>UW g93.0<16,8,1>UB {align1};
+jmpi out;
+
+mov (16) g44.0<1>UW g86.1<16,8,1>UB {align1};
+mov (16) g45.0<1>UW g87.1<16,8,1>UB {align1};
+mov (16) g46.0<1>UW g88.1<16,8,1>UB {align1};
+mov (16) g47.0<1>UW g89.1<16,8,1>UB {align1};
+mov (16) g48.0<1>UW g90.1<16,8,1>UB {align1};
+mov (16) g49.0<1>UW g91.1<16,8,1>UB {align1};
+mov (16) g50.0<1>UW g92.1<16,8,1>UB {align1};
+mov (16) g51.0<1>UW g93.1<16,8,1>UB {align1};
+jmpi out;
+
+mov (16) g44.0<1>UW g86.2<16,8,1>UB {align1};
+mov (16) g45.0<1>UW g87.2<16,8,1>UB {align1};
+mov (16) g46.0<1>UW g88.2<16,8,1>UB {align1};
+mov (16) g47.0<1>UW g89.2<16,8,1>UB {align1};
+mov (16) g48.0<1>UW g90.2<16,8,1>UB {align1};
+mov (16) g49.0<1>UW g91.2<16,8,1>UB {align1};
+mov (16) g50.0<1>UW g92.2<16,8,1>UB {align1};
+mov (16) g51.0<1>UW g93.2<16,8,1>UB {align1};
+jmpi out;
+
+mov (16) g44.0<1>UW g86.3<16,8,1>UB {align1};
+mov (16) g45.0<1>UW g87.3<16,8,1>UB {align1};
+mov (16) g46.0<1>UW g88.3<16,8,1>UB {align1};
+mov (16) g47.0<1>UW g89.3<16,8,1>UB {align1};
+mov (16) g48.0<1>UW g90.3<16,8,1>UB {align1};
+mov (16) g49.0<1>UW g91.3<16,8,1>UB {align1};
+mov (16) g50.0<1>UW g92.3<16,8,1>UB {align1};
+mov (16) g51.0<1>UW g93.3<16,8,1>UB {align1};
+out:
diff --git a/src/xvmc/shader/mc/read_frame_x0y0_uv_igd.g4i b/src/xvmc/shader/mc/read_frame_x0y0_uv_igd.g4i
new file mode 100644
index 0000000..edff59b
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y0_uv_igd.g4i
@@ -0,0 +1,28 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+*/
+mov (1) g32.8<1>UD 0x007000fUD {align1};
+and.nz (1) null g32.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g34.0<1>UW g32<8,8,1>UW read(5, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g44.0<1>UW g32<8,8,1>UW read(6, 2, 0, 2) mlen 1 rlen 4 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g34.0<1>UW g32<8,8,1>UW read(8, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g44.0<1>UW g32<8,8,1>UW read(9, 2, 0, 2) mlen 1 rlen 4 {align1};
+
+put_data:
+mov (32) g74.0<1>UW g34.0<16,8,1>UB {align1 compr};
+mov (32) g76.0<1>UW g36.0<16,8,1>UB {align1 compr};
+mov (32) g78.0<1>UW g44.0<16,8,1>UB {align1 compr};
+mov (32) g80.0<1>UW g46.0<16,8,1>UB {align1 compr};
diff --git a/src/xvmc/shader/mc/read_frame_x0y0_y.g4i b/src/xvmc/shader/mc/read_frame_x0y0_y.g4i
new file mode 100644
index 0000000..20f577d
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y0_y.g4i
@@ -0,0 +1,109 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g2.8<1>UD 0x007001FUD {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+send (16) 0 g106.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+and (1) g2.24<1>UD g2.0<1,1,1>UD 3UD {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 17UD {align1};
+jmpi g2.24<1,1,1>D;
+
+mov (16) g28.0<1>UW g98.0<16,16,1>UB {align1};
+mov (16) g29.0<1>UW g99.0<16,16,1>UB {align1};
+mov (16) g30.0<1>UW g100.0<16,16,1>UB {align1};
+mov (16) g31.0<1>UW g101.0<16,16,1>UB {align1};
+mov (16) g32.0<1>UW g102.0<16,16,1>UB {align1};
+mov (16) g33.0<1>UW g103.0<16,16,1>UB {align1};
+mov (16) g34.0<1>UW g104.0<16,16,1>UB {align1};
+mov (16) g35.0<1>UW g105.0<16,16,1>UB {align1};
+mov (16) g36.0<1>UW g106.0<16,16,1>UB {align1};
+mov (16) g37.0<1>UW g107.0<16,16,1>UB {align1};
+mov (16) g38.0<1>UW g108.0<16,16,1>UB {align1};
+mov (16) g39.0<1>UW g109.0<16,16,1>UB {align1};
+mov (16) g40.0<1>UW g110.0<16,16,1>UB {align1};
+mov (16) g41.0<1>UW g111.0<16,16,1>UB {align1};
+mov (16) g42.0<1>UW g112.0<16,16,1>UB {align1};
+mov (16) g43.0<1>UW g113.0<16,16,1>UB {align1};
+jmpi out;
+
+mov (16) g28.0<1>UW g98.1<16,16,1>UB {align1};
+mov (16) g29.0<1>UW g99.1<16,16,1>UB {align1};
+mov (16) g30.0<1>UW g100.1<16,16,1>UB {align1};
+mov (16) g31.0<1>UW g101.1<16,16,1>UB {align1};
+mov (16) g32.0<1>UW g102.1<16,16,1>UB {align1};
+mov (16) g33.0<1>UW g103.1<16,16,1>UB {align1};
+mov (16) g34.0<1>UW g104.1<16,16,1>UB {align1};
+mov (16) g35.0<1>UW g105.1<16,16,1>UB {align1};
+mov (16) g36.0<1>UW g106.1<16,16,1>UB {align1};
+mov (16) g37.0<1>UW g107.1<16,16,1>UB {align1};
+mov (16) g38.0<1>UW g108.1<16,16,1>UB {align1};
+mov (16) g39.0<1>UW g109.1<16,16,1>UB {align1};
+mov (16) g40.0<1>UW g110.1<16,16,1>UB {align1};
+mov (16) g41.0<1>UW g111.1<16,16,1>UB {align1};
+mov (16) g42.0<1>UW g112.1<16,16,1>UB {align1};
+mov (16) g43.0<1>UW g113.1<16,16,1>UB {align1};
+jmpi out;
+
+mov (16) g28.0<1>UW g98.2<16,16,1>UB {align1};
+mov (16) g29.0<1>UW g99.2<16,16,1>UB {align1};
+mov (16) g30.0<1>UW g100.2<16,16,1>UB {align1};
+mov (16) g31.0<1>UW g101.2<16,16,1>UB {align1};
+mov (16) g32.0<1>UW g102.2<16,16,1>UB {align1};
+mov (16) g33.0<1>UW g103.2<16,16,1>UB {align1};
+mov (16) g34.0<1>UW g104.2<16,16,1>UB {align1};
+mov (16) g35.0<1>UW g105.2<16,16,1>UB {align1};
+mov (16) g36.0<1>UW g106.2<16,16,1>UB {align1};
+mov (16) g37.0<1>UW g107.2<16,16,1>UB {align1};
+mov (16) g38.0<1>UW g108.2<16,16,1>UB {align1};
+mov (16) g39.0<1>UW g109.2<16,16,1>UB {align1};
+mov (16) g40.0<1>UW g110.2<16,16,1>UB {align1};
+mov (16) g41.0<1>UW g111.2<16,16,1>UB {align1};
+mov (16) g42.0<1>UW g112.2<16,16,1>UB {align1};
+mov (16) g43.0<1>UW g113.2<16,16,1>UB {align1};
+jmpi out;
+
+mov (16) g28.0<1>UW g98.3<16,16,1>UB {align1};
+mov (16) g29.0<1>UW g99.3<16,16,1>UB {align1};
+mov (16) g30.0<1>UW g100.3<16,16,1>UB {align1};
+mov (16) g31.0<1>UW g101.3<16,16,1>UB {align1};
+mov (16) g32.0<1>UW g102.3<16,16,1>UB {align1};
+mov (16) g33.0<1>UW g103.3<16,16,1>UB {align1};
+mov (16) g34.0<1>UW g104.3<16,16,1>UB {align1};
+mov (16) g35.0<1>UW g105.3<16,16,1>UB {align1};
+mov (16) g36.0<1>UW g106.3<16,16,1>UB {align1};
+mov (16) g37.0<1>UW g107.3<16,16,1>UB {align1};
+mov (16) g38.0<1>UW g108.3<16,16,1>UB {align1};
+mov (16) g39.0<1>UW g109.3<16,16,1>UB {align1};
+mov (16) g40.0<1>UW g110.3<16,16,1>UB {align1};
+mov (16) g41.0<1>UW g111.3<16,16,1>UB {align1};
+mov (16) g42.0<1>UW g112.3<16,16,1>UB {align1};
+mov (16) g43.0<1>UW g113.3<16,16,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_frame_x0y0_y_igd.g4i b/src/xvmc/shader/mc/read_frame_x0y0_y_igd.g4i
new file mode 100644
index 0000000..ba3dc72
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y0_y_igd.g4i
@@ -0,0 +1,35 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+*/
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+and.nz (1) null g32.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+put_data:
+mov (32) g58.0<1>UW g38.0<16,16,1>UB {align1 compr};
+mov (32) g60.0<1>UW g40.0<16,16,1>UB {align1 compr};
+mov (32) g62.0<1>UW g42.0<16,16,1>UB {align1 compr};
+mov (32) g64.0<1>UW g44.0<16,16,1>UB {align1 compr};
+mov (32) g66.0<1>UW g46.0<16,16,1>UB {align1 compr};
+mov (32) g68.0<1>UW g48.0<16,16,1>UB {align1 compr};
+mov (32) g70.0<1>UW g50.0<16,16,1>UB {align1 compr};
+mov (32) g72.0<1>UW g52.0<16,16,1>UB {align1 compr};
+
diff --git a/src/xvmc/shader/mc/read_frame_x0y1_uv.g4i b/src/xvmc/shader/mc/read_frame_x0y1_uv.g4i
new file mode 100644
index 0000000..58bebbc
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y1_uv.g4i
@@ -0,0 +1,79 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDINg BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINgEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIgHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAgES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINg FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINgS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+and (1) g2.24<1>UD g2.0<1,1,1>UD 0x3UD {align1};
+send (16) 0 g86.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g94.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+mov (1) g2.8<1>UD 0x01001FUD {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+send (16) 0 g90.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 1 {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 1 {align1};
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 0x9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g44.0<1>UW g86.0<16,8,1>UB g87.0<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.0<16,8,1>UB g88.0<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.0<16,8,1>UB g89.0<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.0<16,8,1>UB g90.0<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g94.0<16,8,1>UB g95.0<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g95.0<16,8,1>UB g96.0<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g96.0<16,8,1>UB g97.0<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g97.0<16,8,1>UB g98.0<16,8,1>UB{align1};
+jmpi out;
+
+avg.sat (16) g44.0<1>UW g86.1<16,8,1>UB g87.1<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.1<16,8,1>UB g88.1<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.1<16,8,1>UB g89.1<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.1<16,8,1>UB g90.1<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g94.1<16,8,1>UB g95.1<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g95.1<16,8,1>UB g96.1<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g96.1<16,8,1>UB g97.1<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g97.1<16,8,1>UB g98.1<16,8,1>UB{align1};
+jmpi out;
+
+avg.sat (16) g44.0<1>UW g86.2<16,8,1>UB g87.2<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.2<16,8,1>UB g88.2<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.2<16,8,1>UB g89.2<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.2<16,8,1>UB g90.2<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g94.2<16,8,1>UB g95.2<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g95.2<16,8,1>UB g96.2<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g96.2<16,8,1>UB g97.2<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g97.2<16,8,1>UB g98.2<16,8,1>UB{align1};
+jmpi out;
+
+avg.sat (16) g44.0<1>UW g86.3<16,8,1>UB g87.3<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.3<16,8,1>UB g88.3<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.3<16,8,1>UB g89.3<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.3<16,8,1>UB g90.3<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g94.3<16,8,1>UB g95.3<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g95.3<16,8,1>UB g96.3<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g96.3<16,8,1>UB g97.3<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g97.3<16,8,1>UB g98.3<16,8,1>UB{align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_frame_x0y1_uv_igd.g4i b/src/xvmc/shader/mc/read_frame_x0y1_uv_igd.g4i
new file mode 100644
index 0000000..7240b3f
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y1_uv_igd.g4i
@@ -0,0 +1,44 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDINg BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINgEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIgHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAgES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINg FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINgS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+send (16) 0 g86.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g94.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+mov (1) g2.8<1>UD 0x01001FUD {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+send (16) 0 g90.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 1 {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 1 {align1};
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+
+avg.sat (16) g44.0<1>UW g86.0<16,8,1>UB g87.0<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.0<16,8,1>UB g88.0<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.0<16,8,1>UB g89.0<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.0<16,8,1>UB g90.0<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g94.0<16,8,1>UB g95.0<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g95.0<16,8,1>UB g96.0<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g96.0<16,8,1>UB g97.0<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g97.0<16,8,1>UB g98.0<16,8,1>UB{align1};
diff --git a/src/xvmc/shader/mc/read_frame_x0y1_y.g4i b/src/xvmc/shader/mc/read_frame_x0y1_y.g4i
new file mode 100644
index 0000000..bbc0d78
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y1_y.g4i
@@ -0,0 +1,113 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g2.8<1>UD 0x007001FUD {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+and (1) g2.24<1>UD g2.0<1,1,1>UD 3UD {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 17UD {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+send (16) 0 g106.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+mov (1) g2.8<1>UD 0x1FUD {align1};
+send (16) 0 g120.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 1 {align1};
+
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g28.0<1>UW g98.0<16,16,1>UB g99.0<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.0<16,16,1>UB g100.0<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.0<16,16,1>UB g101.0<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.0<16,16,1>UB g102.0<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.0<16,16,1>UB g103.0<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.0<16,16,1>UB g104.0<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.0<16,16,1>UB g105.0<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.0<16,16,1>UB g106.0<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.0<16,16,1>UB g107.0<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.0<16,16,1>UB g108.0<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.0<16,16,1>UB g109.0<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.0<16,16,1>UB g110.0<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.0<16,16,1>UB g111.0<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.0<16,16,1>UB g112.0<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.0<16,16,1>UB g113.0<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.0<16,16,1>UB g120.0<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g28.0<1>UW g98.1<16,16,1>UB g99.1<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.1<16,16,1>UB g100.1<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.1<16,16,1>UB g101.1<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.1<16,16,1>UB g102.1<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.1<16,16,1>UB g103.1<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.1<16,16,1>UB g104.1<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.1<16,16,1>UB g105.1<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.1<16,16,1>UB g106.1<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.1<16,16,1>UB g107.1<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.1<16,16,1>UB g108.1<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.1<16,16,1>UB g109.1<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.1<16,16,1>UB g110.1<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.1<16,16,1>UB g111.1<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.1<16,16,1>UB g112.1<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.1<16,16,1>UB g113.1<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.1<16,16,1>UB g120.1<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g28.0<1>UW g98.2<16,16,1>UB g99.2<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.2<16,16,1>UB g100.2<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.2<16,16,1>UB g101.2<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.2<16,16,1>UB g102.2<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.2<16,16,1>UB g103.2<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.2<16,16,1>UB g104.2<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.2<16,16,1>UB g105.2<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.2<16,16,1>UB g106.2<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.2<16,16,1>UB g107.2<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.2<16,16,1>UB g108.2<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.2<16,16,1>UB g109.2<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.2<16,16,1>UB g110.2<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.2<16,16,1>UB g111.2<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.2<16,16,1>UB g112.2<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.2<16,16,1>UB g113.2<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.2<16,16,1>UB g120.2<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g28.0<1>UW g98.3<16,16,1>UB g99.3<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.3<16,16,1>UB g100.3<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.3<16,16,1>UB g101.3<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.3<16,16,1>UB g102.3<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.3<16,16,1>UB g103.3<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.3<16,16,1>UB g104.3<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.3<16,16,1>UB g105.3<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.3<16,16,1>UB g106.3<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.3<16,16,1>UB g107.3<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.3<16,16,1>UB g108.3<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.3<16,16,1>UB g109.3<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.3<16,16,1>UB g110.3<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.3<16,16,1>UB g111.3<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.3<16,16,1>UB g112.3<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.3<16,16,1>UB g113.3<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.3<16,16,1>UB g120.3<16,16,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_frame_x0y1_y_igd.g4i b/src/xvmc/shader/mc/read_frame_x0y1_y_igd.g4i
new file mode 100644
index 0000000..65cc88b
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x0y1_y_igd.g4i
@@ -0,0 +1,49 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+and.nz (1) null g32.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g54.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 1 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g54.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 1 {align1};
+
+put_data:
+avg (16) g58.0<1>UW g38.0<16,16,1>UB g39.0<16,16,1>UB {align1};
+avg (16) g59.0<1>UW g39.0<16,16,1>UB g40.0<16,16,1>UB {align1};
+avg (16) g60.0<1>UW g40.0<16,16,1>UB g41.0<16,16,1>UB {align1};
+avg (16) g61.0<1>UW g41.0<16,16,1>UB g42.0<16,16,1>UB {align1};
+avg (16) g62.0<1>UW g42.0<16,16,1>UB g43.0<16,16,1>UB {align1};
+avg (16) g63.0<1>UW g43.0<16,16,1>UB g44.0<16,16,1>UB {align1};
+avg (16) g64.0<1>UW g44.0<16,16,1>UB g45.0<16,16,1>UB {align1};
+avg (16) g65.0<1>UW g45.0<16,16,1>UB g46.0<16,16,1>UB {align1};
+avg (16) g66.0<1>UW g46.0<16,16,1>UB g47.0<16,16,1>UB {align1};
+avg (16) g67.0<1>UW g47.0<16,16,1>UB g48.0<16,16,1>UB {align1};
+avg (16) g68.0<1>UW g48.0<16,16,1>UB g49.0<16,16,1>UB {align1};
+avg (16) g69.0<1>UW g49.0<16,16,1>UB g50.0<16,16,1>UB {align1};
+avg (16) g70.0<1>UW g50.0<16,16,1>UB g51.0<16,16,1>UB {align1};
+avg (16) g71.0<1>UW g51.0<16,16,1>UB g52.0<16,16,1>UB {align1};
+avg (16) g72.0<1>UW g52.0<16,16,1>UB g53.0<16,16,1>UB {align1};
+avg (16) g73.0<1>UW g53.0<16,16,1>UB g54.0<16,16,1>UB {align1};
+
diff --git a/src/xvmc/shader/mc/read_frame_x1y0_uv.g4i b/src/xvmc/shader/mc/read_frame_x1y0_uv.g4i
new file mode 100644
index 0000000..bed4abe
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y0_uv.g4i
@@ -0,0 +1,75 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+
+mov (1) g2.8<1>UD 0x007000FUD {align1};
+and (1) g2.24<1>UD g2.0<1,1,1>UD 0x3UD {align1};
+send (16) 0 g86.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g90.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 0x9UD {align1};
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g44.0<1>UW g86.0<16,8,1>UB g86.1<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.0<16,8,1>UB g87.1<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.0<16,8,1>UB g88.1<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.0<16,8,1>UB g89.1<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g90.0<16,8,1>UB g90.1<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g91.0<16,8,1>UB g91.1<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g92.0<16,8,1>UB g92.1<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g93.0<16,8,1>UB g93.1<16,8,1>UB{align1};
+jmpi out;
+
+avg.sat (16) g44.0<1>UW g86.1<16,8,1>UB g86.2<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.1<16,8,1>UB g87.2<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.1<16,8,1>UB g88.2<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.1<16,8,1>UB g89.2<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g90.1<16,8,1>UB g90.2<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g91.1<16,8,1>UB g91.2<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g92.1<16,8,1>UB g92.2<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g93.1<16,8,1>UB g93.2<16,8,1>UB{align1};
+jmpi out;
+
+avg.sat (16) g44.0<1>UW g86.2<16,8,1>UB g86.3<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.2<16,8,1>UB g87.3<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.2<16,8,1>UB g88.3<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.2<16,8,1>UB g89.3<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g90.2<16,8,1>UB g90.3<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g91.2<16,8,1>UB g91.3<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g92.2<16,8,1>UB g92.3<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g93.2<16,8,1>UB g93.3<16,8,1>UB{align1};
+jmpi out;
+
+avg.sat (16) g44.0<1>UW g86.3<16,8,1>UB g86.4<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.3<16,8,1>UB g87.4<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.3<16,8,1>UB g88.4<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.3<16,8,1>UB g89.4<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g90.3<16,8,1>UB g90.4<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g91.3<16,8,1>UB g91.4<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g92.3<16,8,1>UB g92.4<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g93.3<16,8,1>UB g93.4<16,8,1>UB{align1};
+out:
diff --git a/src/xvmc/shader/mc/read_frame_x1y0_uv_igd.g4i b/src/xvmc/shader/mc/read_frame_x1y0_uv_igd.g4i
new file mode 100644
index 0000000..c63e8ec
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y0_uv_igd.g4i
@@ -0,0 +1,41 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+
+mov (1) g2.8<1>UD 0x007000FUD {align1};
+send (16) 0 g86.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g90.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+
+avg.sat (16) g44.0<1>UW g86.0<16,8,1>UB g86.1<16,8,1>UB{align1};
+avg.sat (16) g45.0<1>UW g87.0<16,8,1>UB g87.1<16,8,1>UB{align1};
+avg.sat (16) g46.0<1>UW g88.0<16,8,1>UB g88.1<16,8,1>UB{align1};
+avg.sat (16) g47.0<1>UW g89.0<16,8,1>UB g89.1<16,8,1>UB{align1};
+avg.sat (16) g48.0<1>UW g90.0<16,8,1>UB g90.1<16,8,1>UB{align1};
+avg.sat (16) g49.0<1>UW g91.0<16,8,1>UB g91.1<16,8,1>UB{align1};
+avg.sat (16) g50.0<1>UW g92.0<16,8,1>UB g92.1<16,8,1>UB{align1};
+avg.sat (16) g51.0<1>UW g93.0<16,8,1>UB g93.1<16,8,1>UB{align1};
diff --git a/src/xvmc/shader/mc/read_frame_x1y0_y.g4i b/src/xvmc/shader/mc/read_frame_x1y0_y.g4i
new file mode 100644
index 0000000..3af3e08
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y0_y.g4i
@@ -0,0 +1,110 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g2.8<1>UD 0x007001FUD {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+and (1) g2.24<1>UD g2.0<1,1,1>UD 3UD {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 17D {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+send (16) 0 g106.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+jmpi g2.24<1,1,1>D;
+
+avg.sat (16) g28.0<1>UW g98.0<16,16,1>UB g98.1<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.0<16,16,1>UB g99.1<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.0<16,16,1>UB g100.1<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.0<16,16,1>UB g101.1<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.0<16,16,1>UB g102.1<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.0<16,16,1>UB g103.1<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.0<16,16,1>UB g104.1<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.0<16,16,1>UB g105.1<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.0<16,16,1>UB g106.1<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.0<16,16,1>UB g107.1<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.0<16,16,1>UB g108.1<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.0<16,16,1>UB g109.1<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.0<16,16,1>UB g110.1<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.0<16,16,1>UB g111.1<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.0<16,16,1>UB g112.1<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.0<16,16,1>UB g113.1<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g28.0<1>UW g98.1<16,16,1>UB g98.2<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.1<16,16,1>UB g99.2<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.1<16,16,1>UB g100.2<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.1<16,16,1>UB g101.2<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.1<16,16,1>UB g102.2<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.1<16,16,1>UB g103.2<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.1<16,16,1>UB g104.2<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.1<16,16,1>UB g105.2<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.1<16,16,1>UB g106.2<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.1<16,16,1>UB g107.2<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.1<16,16,1>UB g108.2<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.1<16,16,1>UB g109.2<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.1<16,16,1>UB g110.2<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.1<16,16,1>UB g111.2<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.1<16,16,1>UB g112.2<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.1<16,16,1>UB g113.2<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g28.0<1>UW g98.2<16,16,1>UB g98.3<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.2<16,16,1>UB g99.3<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.2<16,16,1>UB g100.3<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.2<16,16,1>UB g101.3<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.2<16,16,1>UB g102.3<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.2<16,16,1>UB g103.3<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.2<16,16,1>UB g104.3<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.2<16,16,1>UB g105.3<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.2<16,16,1>UB g106.3<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.2<16,16,1>UB g107.3<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.2<16,16,1>UB g108.3<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.2<16,16,1>UB g109.3<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.2<16,16,1>UB g110.3<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.2<16,16,1>UB g111.3<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.2<16,16,1>UB g112.3<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.2<16,16,1>UB g113.3<16,16,1>UB {align1};
+jmpi out;
+
+avg.sat (16) g28.0<1>UW g98.3<16,16,1>UB g98.4<16,16,1>UB {align1};
+avg.sat (16) g29.0<1>UW g99.3<16,16,1>UB g99.4<16,16,1>UB {align1};
+avg.sat (16) g30.0<1>UW g100.3<16,16,1>UB g100.4<16,16,1>UB {align1};
+avg.sat (16) g31.0<1>UW g101.3<16,16,1>UB g101.4<16,16,1>UB {align1};
+avg.sat (16) g32.0<1>UW g102.3<16,16,1>UB g102.4<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g103.3<16,16,1>UB g103.4<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g104.3<16,16,1>UB g104.4<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g105.3<16,16,1>UB g105.4<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g106.3<16,16,1>UB g106.4<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g107.3<16,16,1>UB g107.4<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g108.3<16,16,1>UB g108.4<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g109.3<16,16,1>UB g109.4<16,16,1>UB {align1};
+avg.sat (16) g40.0<1>UW g110.3<16,16,1>UB g110.4<16,16,1>UB {align1};
+avg.sat (16) g41.0<1>UW g111.3<16,16,1>UB g111.4<16,16,1>UB {align1};
+avg.sat (16) g42.0<1>UW g112.3<16,16,1>UB g112.4<16,16,1>UB {align1};
+avg.sat (16) g43.0<1>UW g113.3<16,16,1>UB g113.4<16,16,1>UB {align1};
+
+out:
diff --git a/src/xvmc/shader/mc/read_frame_x1y0_y_igd.g4i b/src/xvmc/shader/mc/read_frame_x1y0_y_igd.g4i
new file mode 100644
index 0000000..64bd8e8
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y0_y_igd.g4i
@@ -0,0 +1,43 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+*/
+
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+and.nz (1) null g32.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+put_data:
+avg (16) g58.0<1>UW g38.0<16,16,1>UB g38.1<16,16,1>UB {align1};
+avg (16) g59.0<1>UW g39.0<16,16,1>UB g39.1<16,16,1>UB {align1};
+avg (16) g60.0<1>UW g40.0<16,16,1>UB g40.1<16,16,1>UB {align1};
+avg (16) g61.0<1>UW g41.0<16,16,1>UB g41.1<16,16,1>UB {align1};
+avg (16) g62.0<1>UW g42.0<16,16,1>UB g42.1<16,16,1>UB {align1};
+avg (16) g63.0<1>UW g43.0<16,16,1>UB g43.1<16,16,1>UB {align1};
+avg (16) g64.0<1>UW g44.0<16,16,1>UB g44.1<16,16,1>UB {align1};
+avg (16) g65.0<1>UW g45.0<16,16,1>UB g45.1<16,16,1>UB {align1};
+avg (16) g66.0<1>UW g46.0<16,16,1>UB g46.1<16,16,1>UB {align1};
+avg (16) g67.0<1>UW g47.0<16,16,1>UB g47.1<16,16,1>UB {align1};
+avg (16) g68.0<1>UW g48.0<16,16,1>UB g48.1<16,16,1>UB {align1};
+avg (16) g69.0<1>UW g49.0<16,16,1>UB g49.1<16,16,1>UB {align1};
+avg (16) g70.0<1>UW g50.0<16,16,1>UB g50.1<16,16,1>UB {align1};
+avg (16) g71.0<1>UW g51.0<16,16,1>UB g51.1<16,16,1>UB {align1};
+avg (16) g72.0<1>UW g52.0<16,16,1>UB g52.1<16,16,1>UB {align1};
+avg (16) g73.0<1>UW g53.0<16,16,1>UB g53.1<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/mc/read_frame_x1y1_uv.g4i b/src/xvmc/shader/mc/read_frame_x1y1_uv.g4i
new file mode 100644
index 0000000..d124d29
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y1_uv.g4i
@@ -0,0 +1,159 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+and (1) g2.24<1>UD g2.0<1,1,1>UD 0x3UD {align1};
+send (16) 0 g86.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g94.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+mov (1) g2.8<1>UD 0x01001FUD {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8D {align1};
+send (16) 0 g90.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 1 {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 1 {align1};
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 25UD {align1};
+jmpi g2.24<1,1,1>D;
+
+add (16) g44.0<1>UW g86.0<16,8,1>UB g86.1<16,8,1>UB{align1};
+add (16) g45.0<1>UW g87.0<16,8,1>UB g87.1<16,8,1>UB{align1};
+add (16) g46.0<1>UW g88.0<16,8,1>UB g88.1<16,8,1>UB{align1};
+add (16) g47.0<1>UW g89.0<16,8,1>UB g89.1<16,8,1>UB{align1};
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.0<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.0<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.0<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.0<16,8,1>UB{align1};
+
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.1<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.1<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.1<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.1<16,8,1>UB{align1};
+add (16) g48.0<1>UW g94.0<16,8,1>UB g95.0<16,8,1>UB{align1};
+add (16) g49.0<1>UW g95.0<16,8,1>UB g96.0<16,8,1>UB{align1};
+add (16) g50.0<1>UW g96.0<16,8,1>UB g97.0<16,8,1>UB{align1};
+add (16) g51.0<1>UW g97.0<16,8,1>UB g98.0<16,8,1>UB{align1};
+
+add (16) g48.0<1>UW g48.0<16,16,1>UW g94.1<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g95.1<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g96.1<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g97.1<16,8,1>UB{align1};
+add (16) g48.0<1>UW g48.0<16,16,1>UW g95.1<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g96.1<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g97.1<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g98.1<16,8,1>UB{align1};
+jmpi out;
+
+add (16) g44.0<1>UW g86.1<16,8,1>UB g86.2<16,8,1>UB{align1};
+add (16) g45.0<1>UW g87.1<16,8,1>UB g87.2<16,8,1>UB{align1};
+add (16) g46.0<1>UW g88.1<16,8,1>UB g88.2<16,8,1>UB{align1};
+add (16) g47.0<1>UW g89.1<16,8,1>UB g89.2<16,8,1>UB{align1};
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.1<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.1<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.1<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.1<16,8,1>UB{align1};
+
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.2<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.2<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.2<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.2<16,8,1>UB{align1};
+add (16) g48.0<1>UW g94.1<16,8,1>UB g95.1<16,8,1>UB{align1};
+add (16) g49.0<1>UW g95.1<16,8,1>UB g96.1<16,8,1>UB{align1};
+add (16) g50.0<1>UW g96.1<16,8,1>UB g97.1<16,8,1>UB{align1};
+add (16) g51.0<1>UW g97.1<16,8,1>UB g98.1<16,8,1>UB{align1};
+
+add (16) g48.0<1>UW g48.0<16,16,1>UW g94.2<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g95.2<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g96.2<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g97.2<16,8,1>UB{align1};
+add (16) g48.0<1>UW g48.0<16,16,1>UW g95.2<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g96.2<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g97.2<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g98.2<16,8,1>UB{align1};
+jmpi out;
+
+add (16) g44.0<1>UW g86.2<16,8,1>UB g86.3<16,8,1>UB{align1};
+add (16) g45.0<1>UW g87.2<16,8,1>UB g87.3<16,8,1>UB{align1};
+add (16) g46.0<1>UW g88.2<16,8,1>UB g88.3<16,8,1>UB{align1};
+add (16) g47.0<1>UW g89.2<16,8,1>UB g89.3<16,8,1>UB{align1};
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.2<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.2<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.2<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.2<16,8,1>UB{align1};
+
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.3<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.3<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.3<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.3<16,8,1>UB{align1};
+add (16) g48.0<1>UW g94.2<16,8,1>UB g95.2<16,8,1>UB{align1};
+add (16) g49.0<1>UW g95.2<16,8,1>UB g96.2<16,8,1>UB{align1};
+add (16) g50.0<1>UW g96.2<16,8,1>UB g97.2<16,8,1>UB{align1};
+add (16) g51.0<1>UW g97.2<16,8,1>UB g98.2<16,8,1>UB{align1};
+
+add (16) g48.0<1>UW g48.0<16,16,1>UW g94.3<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g95.3<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g96.3<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g97.3<16,8,1>UB{align1};
+add (16) g48.0<1>UW g48.0<16,16,1>UW g95.3<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g96.3<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g97.3<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g98.3<16,8,1>UB{align1};
+jmpi out;
+
+add (16) g44.0<1>UW g86.3<16,8,1>UB g86.4<16,8,1>UB{align1};
+add (16) g45.0<1>UW g87.3<16,8,1>UB g87.4<16,8,1>UB{align1};
+add (16) g46.0<1>UW g88.3<16,8,1>UB g88.4<16,8,1>UB{align1};
+add (16) g47.0<1>UW g89.3<16,8,1>UB g89.4<16,8,1>UB{align1};
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.3<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.3<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.3<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.3<16,8,1>UB{align1};
+
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.4<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.4<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.4<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.4<16,8,1>UB{align1};
+add (16) g48.0<1>UW g94.3<16,8,1>UB g95.3<16,8,1>UB{align1};
+add (16) g49.0<1>UW g95.3<16,8,1>UB g96.3<16,8,1>UB{align1};
+add (16) g50.0<1>UW g96.3<16,8,1>UB g97.3<16,8,1>UB{align1};
+add (16) g51.0<1>UW g97.3<16,8,1>UB g98.3<16,8,1>UB{align1};
+
+add (16) g48.0<1>UW g48.0<16,16,1>UW g94.4<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g95.4<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g96.4<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g97.4<16,8,1>UB{align1};
+add (16) g48.0<1>UW g48.0<16,16,1>UW g95.4<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g96.4<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g97.4<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g98.4<16,8,1>UB{align1};
+out:
+
+shr.sat (16) g44.0<1>UW g44.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g45.0<1>UW g45.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g46.0<1>UW g46.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g47.0<1>UW g47.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g48.0<1>UW g48.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g49.0<1>UW g49.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g50.0<1>UW g50.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g51.0<1>UW g51.0<16,16,1>UW 2UW {align1};
diff --git a/src/xvmc/shader/mc/read_frame_x1y1_uv_igd.g4i b/src/xvmc/shader/mc/read_frame_x1y1_uv_igd.g4i
new file mode 100644
index 0000000..96aada8
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y1_uv_igd.g4i
@@ -0,0 +1,71 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+send (16) 0 g86.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g94.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+mov (1) g2.8<1>UD 0x01001FUD {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8D {align1};
+send (16) 0 g90.0<1>UW g2<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 1 {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 1 {align1};
+mov (1) g2.8<1>UD 0x007000fUD {align1};
+
+add (16) g44.0<1>UW g86.0<16,8,1>UB g86.1<16,8,1>UB{align1};
+add (16) g45.0<1>UW g87.0<16,8,1>UB g87.1<16,8,1>UB{align1};
+add (16) g46.0<1>UW g88.0<16,8,1>UB g88.1<16,8,1>UB{align1};
+add (16) g47.0<1>UW g89.0<16,8,1>UB g89.1<16,8,1>UB{align1};
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.0<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.0<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.0<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.0<16,8,1>UB{align1};
+
+add (16) g44.0<1>UW g44.0<16,16,1>UW g87.1<16,8,1>UB{align1};
+add (16) g45.0<1>UW g45.0<16,16,1>UW g88.1<16,8,1>UB{align1};
+add (16) g46.0<1>UW g46.0<16,16,1>UW g89.1<16,8,1>UB{align1};
+add (16) g47.0<1>UW g47.0<16,16,1>UW g90.1<16,8,1>UB{align1};
+add (16) g48.0<1>UW g94.0<16,8,1>UB g95.0<16,8,1>UB{align1};
+add (16) g49.0<1>UW g95.0<16,8,1>UB g96.0<16,8,1>UB{align1};
+add (16) g50.0<1>UW g96.0<16,8,1>UB g97.0<16,8,1>UB{align1};
+add (16) g51.0<1>UW g97.0<16,8,1>UB g98.0<16,8,1>UB{align1};
+
+add (16) g48.0<1>UW g48.0<16,16,1>UW g94.1<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g95.1<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g96.1<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g97.1<16,8,1>UB{align1};
+add (16) g48.0<1>UW g48.0<16,16,1>UW g95.1<16,8,1>UB{align1};
+add (16) g49.0<1>UW g49.0<16,16,1>UW g96.1<16,8,1>UB{align1};
+add (16) g50.0<1>UW g50.0<16,16,1>UW g97.1<16,8,1>UB{align1};
+add (16) g51.0<1>UW g51.0<16,16,1>UW g98.1<16,8,1>UB{align1};
+
+shr.sat (16) g44.0<1>UW g44.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g45.0<1>UW g45.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g46.0<1>UW g46.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g47.0<1>UW g47.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g48.0<1>UW g48.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g49.0<1>UW g49.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g50.0<1>UW g50.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g51.0<1>UW g51.0<16,16,1>UW 2UW {align1};
diff --git a/src/xvmc/shader/mc/read_frame_x1y1_y.g4i b/src/xvmc/shader/mc/read_frame_x1y1_y.g4i
new file mode 100644
index 0000000..fa55d86
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y1_y.g4i
@@ -0,0 +1,264 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g2.8<1>UD 0x007001FUD {align1};
+send (16) 0 g98.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+and (1) g2.24<1>UD g2.0<1,1,1>UD 3UD {align1};
+mul(1) g2.24<1>UD g2.24<1,1,1>UD 49UD {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+send (16) 0 g106.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g2.4<1>UD g2.4<1,1,1>UD 8UD {align1};
+mov (1) g2.8<1>UD 0x1FUD {align1};
+send (16) 0 g120.0<1>UW g2<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 1 {align1};
+
+jmpi g2.24<1,1,1>D;
+
+add (16) g28.0<1>UW g98.0<16,16,1>UB g98.1<16,16,1>UB {align1};
+add (16) g29.0<1>UW g99.0<16,16,1>UB g99.1<16,16,1>UB {align1};
+add (16) g30.0<1>UW g100.0<16,16,1>UB g100.1<16,16,1>UB {align1};
+add (16) g31.0<1>UW g101.0<16,16,1>UB g101.1<16,16,1>UB {align1};
+add (16) g32.0<1>UW g102.0<16,16,1>UB g102.1<16,16,1>UB {align1};
+add (16) g33.0<1>UW g103.0<16,16,1>UB g103.1<16,16,1>UB {align1};
+add (16) g34.0<1>UW g104.0<16,16,1>UB g104.1<16,16,1>UB {align1};
+add (16) g35.0<1>UW g105.0<16,16,1>UB g105.1<16,16,1>UB {align1};
+add (16) g36.0<1>UW g106.0<16,16,1>UB g106.1<16,16,1>UB {align1};
+add (16) g37.0<1>UW g107.0<16,16,1>UB g107.1<16,16,1>UB {align1};
+add (16) g38.0<1>UW g108.0<16,16,1>UB g108.1<16,16,1>UB {align1};
+add (16) g39.0<1>UW g109.0<16,16,1>UB g109.1<16,16,1>UB {align1};
+add (16) g40.0<1>UW g110.0<16,16,1>UB g110.1<16,16,1>UB {align1};
+add (16) g41.0<1>UW g111.0<16,16,1>UB g111.1<16,16,1>UB {align1};
+add (16) g42.0<1>UW g112.0<16,16,1>UB g112.1<16,16,1>UB {align1};
+add (16) g43.0<1>UW g113.0<16,16,1>UB g113.1<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.0<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.0<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.0<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.0<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.0<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.0<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.0<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.0<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.0<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.0<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.0<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.0<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.0<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.0<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.0<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.0<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.1<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.1<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.1<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.1<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.1<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.1<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.1<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.1<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.1<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.1<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.1<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.1<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.1<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.1<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.1<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.1<16,16,1>UB {align1};
+jmpi out;
+
+add (16) g28.0<1>UW g98.1<16,16,1>UB g98.2<16,16,1>UB {align1};
+add (16) g29.0<1>UW g99.1<16,16,1>UB g99.2<16,16,1>UB {align1};
+add (16) g30.0<1>UW g100.1<16,16,1>UB g100.2<16,16,1>UB {align1};
+add (16) g31.0<1>UW g101.1<16,16,1>UB g101.2<16,16,1>UB {align1};
+add (16) g32.0<1>UW g102.1<16,16,1>UB g102.2<16,16,1>UB {align1};
+add (16) g33.0<1>UW g103.1<16,16,1>UB g103.2<16,16,1>UB {align1};
+add (16) g34.0<1>UW g104.1<16,16,1>UB g104.2<16,16,1>UB {align1};
+add (16) g35.0<1>UW g105.1<16,16,1>UB g105.2<16,16,1>UB {align1};
+add (16) g36.0<1>UW g106.1<16,16,1>UB g106.2<16,16,1>UB {align1};
+add (16) g37.0<1>UW g107.1<16,16,1>UB g107.2<16,16,1>UB {align1};
+add (16) g38.0<1>UW g108.1<16,16,1>UB g108.2<16,16,1>UB {align1};
+add (16) g39.0<1>UW g109.1<16,16,1>UB g109.2<16,16,1>UB {align1};
+add (16) g40.0<1>UW g110.1<16,16,1>UB g110.2<16,16,1>UB {align1};
+add (16) g41.0<1>UW g111.1<16,16,1>UB g111.2<16,16,1>UB {align1};
+add (16) g42.0<1>UW g112.1<16,16,1>UB g112.2<16,16,1>UB {align1};
+add (16) g43.0<1>UW g113.1<16,16,1>UB g113.2<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.1<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.1<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.1<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.1<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.1<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.1<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.1<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.1<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.1<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.1<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.1<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.1<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.1<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.1<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.1<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.1<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.2<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.2<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.2<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.2<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.2<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.2<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.2<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.2<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.2<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.2<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.2<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.2<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.2<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.2<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.2<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.2<16,16,1>UB {align1};
+jmpi out;
+
+add (16) g28.0<1>UW g98.2<16,16,1>UB g98.3<16,16,1>UB {align1};
+add (16) g29.0<1>UW g99.2<16,16,1>UB g99.3<16,16,1>UB {align1};
+add (16) g30.0<1>UW g100.2<16,16,1>UB g100.3<16,16,1>UB {align1};
+add (16) g31.0<1>UW g101.2<16,16,1>UB g101.3<16,16,1>UB {align1};
+add (16) g32.0<1>UW g102.2<16,16,1>UB g102.3<16,16,1>UB {align1};
+add (16) g33.0<1>UW g103.2<16,16,1>UB g103.3<16,16,1>UB {align1};
+add (16) g34.0<1>UW g104.2<16,16,1>UB g104.3<16,16,1>UB {align1};
+add (16) g35.0<1>UW g105.2<16,16,1>UB g105.3<16,16,1>UB {align1};
+add (16) g36.0<1>UW g106.2<16,16,1>UB g106.3<16,16,1>UB {align1};
+add (16) g37.0<1>UW g107.2<16,16,1>UB g107.3<16,16,1>UB {align1};
+add (16) g38.0<1>UW g108.2<16,16,1>UB g108.3<16,16,1>UB {align1};
+add (16) g39.0<1>UW g109.2<16,16,1>UB g109.3<16,16,1>UB {align1};
+add (16) g40.0<1>UW g110.2<16,16,1>UB g110.3<16,16,1>UB {align1};
+add (16) g41.0<1>UW g111.2<16,16,1>UB g111.3<16,16,1>UB {align1};
+add (16) g42.0<1>UW g112.2<16,16,1>UB g112.3<16,16,1>UB {align1};
+add (16) g43.0<1>UW g113.2<16,16,1>UB g113.3<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.2<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.2<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.2<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.2<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.2<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.2<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.2<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.2<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.2<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.2<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.2<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.2<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.2<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.2<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.2<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.2<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.3<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.3<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.3<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.3<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.3<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.3<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.3<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.3<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.3<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.3<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.3<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.3<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.3<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.3<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.3<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.3<16,16,1>UB {align1};
+jmpi out;
+add (16) g28.0<1>UW g98.3<16,16,1>UB g98.4<16,16,1>UB {align1};
+add (16) g29.0<1>UW g99.3<16,16,1>UB g99.4<16,16,1>UB {align1};
+add (16) g30.0<1>UW g100.3<16,16,1>UB g100.4<16,16,1>UB {align1};
+add (16) g31.0<1>UW g101.3<16,16,1>UB g101.4<16,16,1>UB {align1};
+add (16) g32.0<1>UW g102.3<16,16,1>UB g102.4<16,16,1>UB {align1};
+add (16) g33.0<1>UW g103.3<16,16,1>UB g103.4<16,16,1>UB {align1};
+add (16) g34.0<1>UW g104.3<16,16,1>UB g104.4<16,16,1>UB {align1};
+add (16) g35.0<1>UW g105.3<16,16,1>UB g105.4<16,16,1>UB {align1};
+add (16) g36.0<1>UW g106.3<16,16,1>UB g106.4<16,16,1>UB {align1};
+add (16) g37.0<1>UW g107.3<16,16,1>UB g107.4<16,16,1>UB {align1};
+add (16) g38.0<1>UW g108.3<16,16,1>UB g108.4<16,16,1>UB {align1};
+add (16) g39.0<1>UW g109.3<16,16,1>UB g109.4<16,16,1>UB {align1};
+add (16) g40.0<1>UW g110.3<16,16,1>UB g110.4<16,16,1>UB {align1};
+add (16) g41.0<1>UW g111.3<16,16,1>UB g111.4<16,16,1>UB {align1};
+add (16) g42.0<1>UW g112.3<16,16,1>UB g112.4<16,16,1>UB {align1};
+add (16) g43.0<1>UW g113.3<16,16,1>UB g113.4<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.3<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.3<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.3<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.3<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.3<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.3<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.3<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.3<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.3<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.3<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.3<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.3<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.3<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.3<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.3<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.3<16,16,1>UB {align1};
+
+add (16) g28.0<1>UW g28.0<16,16,1>UW g99.4<16,16,1>UB {align1};
+add (16) g29.0<1>UW g29.0<16,16,1>UW g100.4<16,16,1>UB {align1};
+add (16) g30.0<1>UW g30.0<16,16,1>UW g101.4<16,16,1>UB {align1};
+add (16) g31.0<1>UW g31.0<16,16,1>UW g102.4<16,16,1>UB {align1};
+add (16) g32.0<1>UW g32.0<16,16,1>UW g103.4<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g104.4<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g105.4<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g106.4<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g107.4<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g108.4<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g109.4<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g110.4<16,16,1>UB {align1};
+add (16) g40.0<1>UW g40.0<16,16,1>UW g111.4<16,16,1>UB {align1};
+add (16) g41.0<1>UW g41.0<16,16,1>UW g112.4<16,16,1>UB {align1};
+add (16) g42.0<1>UW g42.0<16,16,1>UW g113.4<16,16,1>UB {align1};
+add (16) g43.0<1>UW g43.0<16,16,1>UW g120.4<16,16,1>UB {align1};
+
+out:
+shr.sat (16) g28.0<1>UW g28.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g29.0<1>UW g29.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g30.0<1>UW g30.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g31.0<1>UW g31.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g32.0<1>UW g32.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g33.0<1>UW g33.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g34.0<1>UW g34.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g35.0<1>UW g35.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g36.0<1>UW g36.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g37.0<1>UW g37.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g38.0<1>UW g38.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g39.0<1>UW g39.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g40.0<1>UW g40.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g41.0<1>UW g41.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g42.0<1>UW g42.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g43.0<1>UW g43.0<16,16,1>UW 2UW {align1};
diff --git a/src/xvmc/shader/mc/read_frame_x1y1_y_igd.g4i b/src/xvmc/shader/mc/read_frame_x1y1_y_igd.g4i
new file mode 100644
index 0000000..ce8f46a
--- /dev/null
+++ b/src/xvmc/shader/mc/read_frame_x1y1_y_igd.g4i
@@ -0,0 +1,92 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+and.nz (1) null g32.16<1,1,1>UW 1UW {align1};
+(f0) jmpi read_backward;
+
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g54.0<1>UW g32<8,8,1>UW read(4, 2, 0, 2) mlen 1 rlen 1 {align1};
+jmpi put_data;
+
+read_backward:
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g54.0<1>UW g32<8,8,1>UW read(7, 2, 0, 2) mlen 1 rlen 1 {align1};
+
+put_data:
+add (16) g58.0<1>UW g38.0<16,16,1>UB g38.1<16,16,1>UB {align1};
+add (16) g59.0<1>UW g39.0<16,16,1>UB g39.1<16,16,1>UB {align1};
+add (16) g60.0<1>UW g40.0<16,16,1>UB g40.1<16,16,1>UB {align1};
+add (16) g61.0<1>UW g41.0<16,16,1>UB g41.1<16,16,1>UB {align1};
+add (16) g62.0<1>UW g42.0<16,16,1>UB g42.1<16,16,1>UB {align1};
+add (16) g63.0<1>UW g43.0<16,16,1>UB g43.1<16,16,1>UB {align1};
+add (16) g64.0<1>UW g44.0<16,16,1>UB g44.1<16,16,1>UB {align1};
+add (16) g65.0<1>UW g45.0<16,16,1>UB g45.1<16,16,1>UB {align1};
+add (16) g66.0<1>UW g46.0<16,16,1>UB g46.1<16,16,1>UB {align1};
+add (16) g67.0<1>UW g47.0<16,16,1>UB g47.1<16,16,1>UB {align1};
+add (16) g68.0<1>UW g48.0<16,16,1>UB g48.1<16,16,1>UB {align1};
+add (16) g69.0<1>UW g49.0<16,16,1>UB g49.1<16,16,1>UB {align1};
+add (16) g70.0<1>UW g50.0<16,16,1>UB g50.1<16,16,1>UB {align1};
+add (16) g71.0<1>UW g51.0<16,16,1>UB g51.1<16,16,1>UB {align1};
+add (16) g72.0<1>UW g52.0<16,16,1>UB g52.1<16,16,1>UB {align1};
+add (16) g73.0<1>UW g53.0<16,16,1>UB g53.1<16,16,1>UB {align1};
+
+add (16) g58.0<1>UW g58.0<16,16,1>UW g39.0<16,16,1>UB {align1};
+add (16) g59.0<1>UW g59.0<16,16,1>UW g40.0<16,16,1>UB {align1};
+add (16) g60.0<1>UW g60.0<16,16,1>UW g41.0<16,16,1>UB {align1};
+add (16) g61.0<1>UW g61.0<16,16,1>UW g42.0<16,16,1>UB {align1};
+add (16) g62.0<1>UW g62.0<16,16,1>UW g43.0<16,16,1>UB {align1};
+add (16) g63.0<1>UW g63.0<16,16,1>UW g44.0<16,16,1>UB {align1};
+add (16) g64.0<1>UW g64.0<16,16,1>UW g45.0<16,16,1>UB {align1};
+add (16) g65.0<1>UW g65.0<16,16,1>UW g46.0<16,16,1>UB {align1};
+add (16) g66.0<1>UW g66.0<16,16,1>UW g47.0<16,16,1>UB {align1};
+add (16) g67.0<1>UW g67.0<16,16,1>UW g48.0<16,16,1>UB {align1};
+add (16) g68.0<1>UW g68.0<16,16,1>UW g49.0<16,16,1>UB {align1};
+add (16) g69.0<1>UW g69.0<16,16,1>UW g50.0<16,16,1>UB {align1};
+add (16) g70.0<1>UW g70.0<16,16,1>UW g51.0<16,16,1>UB {align1};
+add (16) g71.0<1>UW g71.0<16,16,1>UW g52.0<16,16,1>UB {align1};
+add (16) g72.0<1>UW g72.0<16,16,1>UW g53.0<16,16,1>UB {align1};
+add (16) g73.0<1>UW g73.0<16,16,1>UW g54.0<16,16,1>UB {align1};
+
+add (16) g58.0<1>UW g58.0<16,16,1>UW g39.1<16,16,1>UB {align1};
+add (16) g59.0<1>UW g59.0<16,16,1>UW g40.1<16,16,1>UB {align1};
+add (16) g60.0<1>UW g60.0<16,16,1>UW g41.1<16,16,1>UB {align1};
+add (16) g61.0<1>UW g61.0<16,16,1>UW g42.1<16,16,1>UB {align1};
+add (16) g62.0<1>UW g62.0<16,16,1>UW g43.1<16,16,1>UB {align1};
+add (16) g63.0<1>UW g63.0<16,16,1>UW g44.1<16,16,1>UB {align1};
+add (16) g64.0<1>UW g64.0<16,16,1>UW g45.1<16,16,1>UB {align1};
+add (16) g65.0<1>UW g65.0<16,16,1>UW g46.1<16,16,1>UB {align1};
+add (16) g66.0<1>UW g66.0<16,16,1>UW g47.1<16,16,1>UB {align1};
+add (16) g67.0<1>UW g67.0<16,16,1>UW g48.1<16,16,1>UB {align1};
+add (16) g68.0<1>UW g68.0<16,16,1>UW g49.1<16,16,1>UB {align1};
+add (16) g69.0<1>UW g69.0<16,16,1>UW g50.1<16,16,1>UB {align1};
+add (16) g70.0<1>UW g70.0<16,16,1>UW g51.1<16,16,1>UB {align1};
+add (16) g71.0<1>UW g71.0<16,16,1>UW g52.1<16,16,1>UB {align1};
+add (16) g72.0<1>UW g72.0<16,16,1>UW g53.1<16,16,1>UB {align1};
+add (16) g73.0<1>UW g73.0<16,16,1>UW g54.1<16,16,1>UB {align1};
+
+shr (32) g58.0<1>UW g58.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g60.0<1>UW g60.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g62.0<1>UW g62.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g64.0<1>UW g64.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g66.0<1>UW g66.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g68.0<1>UW g68.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g70.0<1>UW g70.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g72.0<1>UW g72.0<16,16,1>UW 2UW {align1 compr};
+
diff --git a/src/xvmc/shader/vld/Makefile.am b/src/xvmc/shader/vld/Makefile.am
new file mode 100644
index 0000000..0ce88d2
--- /dev/null
+++ b/src/xvmc/shader/vld/Makefile.am
@@ -0,0 +1,74 @@
+
+INTEL_G4I = addidct.g4i \
+ do_iq_intra.g4i \
+ do_iq_non_intra.g4i \
+ idct.g4i \
+ iq_intra.g4i \
+ iq_non_intra.g4i \
+ motion_field_uv.g4i \
+ motion_field_y.g4i \
+ motion_frame_uv.g4i \
+ motion_frame_y.g4i \
+ read_field_x0y0_uv.g4i \
+ read_field_x0y1_uv.g4i \
+ read_field_x1y0_uv.g4i \
+ read_field_x1y1_uv.g4i \
+ read_field_x0y0_y.g4i \
+ read_field_x0y1_y.g4i \
+ read_field_x1y0_y.g4i \
+ read_field_x1y1_y.g4i \
+ read_frame_x0y0_uv.g4i \
+ read_frame_x0y1_uv.g4i \
+ read_frame_x1y0_uv.g4i \
+ read_frame_x1y1_uv.g4i \
+ read_frame_x0y0_y.g4i \
+ read_frame_x0y1_y.g4i \
+ read_frame_x1y0_y.g4i \
+ read_frame_x1y1_y.g4i
+
+INTEL_G4A = ipicture.g4a \
+ lib.g4a \
+ frame_forward.g4a \
+ frame_backward.g4a \
+ frame_f_b.g4a \
+ field_forward.g4a \
+ field_backward.g4a \
+ field_f_b.g4a
+
+INTEL_G4B = ipicture.g4b \
+ lib.g4b \
+ frame_forward.g4b \
+ frame_backward.g4b \
+ frame_f_b.g4b \
+ field_forward.g4b \
+ field_backward.g4b \
+ field_f_b.g4b
+
+INTEL_G4B_GEN5 = ipicture.g4b.gen5 \
+ lib.g4b.gen5 \
+ frame_forward.g4b.gen5 \
+ frame_backward.g4b.gen5 \
+ frame_f_b.g4b.gen5 \
+ field_forward.g4b.gen5 \
+ field_backward.g4b.gen5 \
+ field_f_b.g4b.gen5
+
+EXTRA_DIST = $(INTEL_G4I) \
+ $(INTEL_G4A) \
+ $(INTEL_G4B) \
+ $(INTEL_G4B_GEN5)
+
+if HAVE_GEN4ASM
+
+SUFFIXES = .g4a .g4b
+.g4a.g4b:
+ m4 $*.g4a > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
+
+$(INTEL_G4B): $(INTEL_G4I)
+
+BUILT_SOURCES= $(INTEL_G4B)
+
+clean-local:
+ -rm -f $(INTEL_G4B)
+ -rm -f $(INTEL_G4B_GEN5)
+endif
diff --git a/src/xvmc/shader/vld/Makefile.in b/src/xvmc/shader/vld/Makefile.in
new file mode 100644
index 0000000..7b5f1f5
--- /dev/null
+++ b/src/xvmc/shader/vld/Makefile.in
@@ -0,0 +1,470 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = src/xvmc/shader/vld
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+INTEL_G4I = addidct.g4i \
+ do_iq_intra.g4i \
+ do_iq_non_intra.g4i \
+ idct.g4i \
+ iq_intra.g4i \
+ iq_non_intra.g4i \
+ motion_field_uv.g4i \
+ motion_field_y.g4i \
+ motion_frame_uv.g4i \
+ motion_frame_y.g4i \
+ read_field_x0y0_uv.g4i \
+ read_field_x0y1_uv.g4i \
+ read_field_x1y0_uv.g4i \
+ read_field_x1y1_uv.g4i \
+ read_field_x0y0_y.g4i \
+ read_field_x0y1_y.g4i \
+ read_field_x1y0_y.g4i \
+ read_field_x1y1_y.g4i \
+ read_frame_x0y0_uv.g4i \
+ read_frame_x0y1_uv.g4i \
+ read_frame_x1y0_uv.g4i \
+ read_frame_x1y1_uv.g4i \
+ read_frame_x0y0_y.g4i \
+ read_frame_x0y1_y.g4i \
+ read_frame_x1y0_y.g4i \
+ read_frame_x1y1_y.g4i
+
+INTEL_G4A = ipicture.g4a \
+ lib.g4a \
+ frame_forward.g4a \
+ frame_backward.g4a \
+ frame_f_b.g4a \
+ field_forward.g4a \
+ field_backward.g4a \
+ field_f_b.g4a
+
+INTEL_G4B = ipicture.g4b \
+ lib.g4b \
+ frame_forward.g4b \
+ frame_backward.g4b \
+ frame_f_b.g4b \
+ field_forward.g4b \
+ field_backward.g4b \
+ field_f_b.g4b
+
+INTEL_G4B_GEN5 = ipicture.g4b.gen5 \
+ lib.g4b.gen5 \
+ frame_forward.g4b.gen5 \
+ frame_backward.g4b.gen5 \
+ frame_f_b.g4b.gen5 \
+ field_forward.g4b.gen5 \
+ field_backward.g4b.gen5 \
+ field_f_b.g4b.gen5
+
+EXTRA_DIST = $(INTEL_G4I) \
+ $(INTEL_G4A) \
+ $(INTEL_G4B) \
+ $(INTEL_G4B_GEN5)
+
+@HAVE_GEN4ASM_TRUE@SUFFIXES = .g4a .g4b
+@HAVE_GEN4ASM_TRUE@BUILT_SOURCES = $(INTEL_G4B)
+all: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) all-am
+
+.SUFFIXES:
+.SUFFIXES: .g4a .g4b
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/xvmc/shader/vld/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign src/xvmc/shader/vld/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags: TAGS
+TAGS:
+
+ctags: CTAGS
+CTAGS:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) check-am
+all-am: Makefile
+installdirs:
+install: $(BUILT_SOURCES)
+ $(MAKE) $(AM_MAKEFLAGS) install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+ -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
+@HAVE_GEN4ASM_FALSE@clean-local:
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-local mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: all check install install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ clean-local distclean distclean-generic distclean-libtool \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
+ uninstall uninstall-am
+
+@HAVE_GEN4ASM_TRUE@.g4a.g4b:
+@HAVE_GEN4ASM_TRUE@ m4 $*.g4a > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
+
+@HAVE_GEN4ASM_TRUE@$(INTEL_G4B): $(INTEL_G4I)
+
+@HAVE_GEN4ASM_TRUE@clean-local:
+@HAVE_GEN4ASM_TRUE@ -rm -f $(INTEL_G4B)
+@HAVE_GEN4ASM_TRUE@ -rm -f $(INTEL_G4B_GEN5)
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/src/xvmc/shader/vld/addidct.g4i b/src/xvmc/shader/vld/addidct.g4i
new file mode 100644
index 0000000..b57548d
--- /dev/null
+++ b/src/xvmc/shader/vld/addidct.g4i
@@ -0,0 +1,152 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (2) g31.0<1>UD g82.12<2,2,1>UW {align1}; //restore x and y
+
+and.nz (1) null g82.2<1,1,1>UW 0x20UW {align1}; //dct_type
+(f0) jmpi field_dct;
+
+add (16) g58.0<1>W g83.0<16,16,1>W g58.0<16,16,2>UB {align1};
+add (16) g59.0<1>W g84.0<16,16,1>W g59.0<16,16,2>UB {align1};
+add (16) g60.0<1>W g85.0<16,16,1>W g60.0<16,16,2>UB {align1};
+add (16) g61.0<1>W g86.0<16,16,1>W g61.0<16,16,2>UB {align1};
+add (16) g62.0<1>W g87.0<16,16,1>W g62.0<16,16,2>UB {align1};
+add (16) g63.0<1>W g88.0<16,16,1>W g63.0<16,16,2>UB {align1};
+add (16) g64.0<1>W g89.0<16,16,1>W g64.0<16,16,2>UB {align1};
+add (16) g65.0<1>W g90.0<16,16,1>W g65.0<16,16,2>UB {align1};
+add (16) g66.0<1>W g91.0<16,16,1>W g66.0<16,16,2>UB {align1};
+add (16) g67.0<1>W g92.0<16,16,1>W g67.0<16,16,2>UB {align1};
+add (16) g68.0<1>W g93.0<16,16,1>W g68.0<16,16,2>UB {align1};
+add (16) g69.0<1>W g94.0<16,16,1>W g69.0<16,16,2>UB {align1};
+add (16) g70.0<1>W g95.0<16,16,1>W g70.0<16,16,2>UB {align1};
+add (16) g71.0<1>W g96.0<16,16,1>W g71.0<16,16,2>UB {align1};
+add (16) g72.0<1>W g97.0<16,16,1>W g72.0<16,16,2>UB {align1};
+add (16) g73.0<1>W g98.0<16,16,1>W g73.0<16,16,2>UB {align1};
+jmpi write_back;
+
+field_dct:
+add (16) g58.0<1>W g83.0<16,16,1>W g58.0<16,16,2>UB {align1};
+add (16) g59.0<1>W g91.0<16,16,1>W g59.0<16,16,2>UB {align1};
+add (16) g60.0<1>W g84.0<16,16,1>W g60.0<16,16,2>UB {align1};
+add (16) g61.0<1>W g92.0<16,16,1>W g61.0<16,16,2>UB {align1};
+add (16) g62.0<1>W g85.0<16,16,1>W g62.0<16,16,2>UB {align1};
+add (16) g63.0<1>W g93.0<16,16,1>W g63.0<16,16,2>UB {align1};
+add (16) g64.0<1>W g86.0<16,16,1>W g64.0<16,16,2>UB {align1};
+add (16) g65.0<1>W g94.0<16,16,1>W g65.0<16,16,2>UB {align1};
+add (16) g66.0<1>W g87.0<16,16,1>W g66.0<16,16,2>UB {align1};
+add (16) g67.0<1>W g95.0<16,16,1>W g67.0<16,16,2>UB {align1};
+add (16) g68.0<1>W g88.0<16,16,1>W g68.0<16,16,2>UB {align1};
+add (16) g69.0<1>W g96.0<16,16,1>W g69.0<16,16,2>UB {align1};
+add (16) g70.0<1>W g89.0<16,16,1>W g70.0<16,16,2>UB {align1};
+add (16) g71.0<1>W g97.0<16,16,1>W g71.0<16,16,2>UB {align1};
+add (16) g72.0<1>W g90.0<16,16,1>W g72.0<16,16,2>UB {align1};
+add (16) g73.0<1>W g98.0<16,16,1>W g73.0<16,16,2>UB {align1};
+
+write_back:
+mov (1) g31.8<1>UD 0x00F000FUD {align1};
+mov.sat (16) g58.0<2>UB g58.0<16,16,1>W {align1};
+mov.sat (16) g59.0<2>UB g59.0<16,16,1>W {align1};
+mov.sat (16) g60.0<2>UB g60.0<16,16,1>W {align1};
+mov.sat (16) g61.0<2>UB g61.0<16,16,1>W {align1};
+mov.sat (16) g62.0<2>UB g62.0<16,16,1>W {align1};
+mov.sat (16) g63.0<2>UB g63.0<16,16,1>W {align1};
+mov.sat (16) g64.0<2>UB g64.0<16,16,1>W {align1};
+mov.sat (16) g65.0<2>UB g65.0<16,16,1>W {align1};
+mov.sat (16) g66.0<2>UB g66.0<16,16,1>W {align1};
+mov.sat (16) g67.0<2>UB g67.0<16,16,1>W {align1};
+mov.sat (16) g68.0<2>UB g68.0<16,16,1>W {align1};
+mov.sat (16) g69.0<2>UB g69.0<16,16,1>W {align1};
+mov.sat (16) g70.0<2>UB g70.0<16,16,1>W {align1};
+mov.sat (16) g71.0<2>UB g71.0<16,16,1>W {align1};
+mov.sat (16) g72.0<2>UB g72.0<16,16,1>W {align1};
+mov.sat (16) g73.0<2>UB g73.0<16,16,1>W {align1};
+
+mov (16) m1.0<1>UB g58.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g59.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g60.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g61.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g62.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g63.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g64.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g65.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g66.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g67.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g68.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g69.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g70.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g71.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g72.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g73.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(0,0,2,0) mlen 9 rlen 0 {align1};
+
+//U
+mov (1) g31.8<1>UD 0x0070007UD { align1 };
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1D {align1};
+add (16) g74.0<1>W g99.0<16,16,1>W g74.0<16,16,1>UW {align1};
+add (16) g75.0<1>W g100.0<16,16,1>W g75.0<16,16,1>UW {align1};
+add (16) g76.0<1>W g101.0<16,16,1>W g76.0<16,16,1>UW {align1};
+add (16) g77.0<1>W g102.0<16,16,1>W g77.0<16,16,1>UW {align1};
+mov.sat (16) g74.0<2>UB g74.0<16,16,1>W {align1};
+mov.sat (16) g75.0<2>UB g75.0<16,16,1>W {align1};
+mov.sat (16) g76.0<2>UB g76.0<16,16,1>W {align1};
+mov.sat (16) g77.0<2>UB g77.0<16,16,1>W {align1};
+
+mov (16) m1.0<1>UB g74.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g75.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g76.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g77.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+//V
+add (16) g78.0<1>UW g103.0<16,16,1>W g78.0<16,16,1>UW {align1};
+add (16) g79.0<1>UW g104.0<16,16,1>W g79.0<16,16,1>UW {align1};
+add (16) g80.0<1>UW g105.0<16,16,1>W g80.0<16,16,1>UW {align1};
+add (16) g81.0<1>UW g106.0<16,16,1>W g81.0<16,16,1>UW {align1};
+mov.sat (16) g78.0<2>UB g78.0<16,16,1>W {align1};
+mov.sat (16) g79.0<2>UB g79.0<16,16,1>W {align1};
+mov.sat (16) g80.0<2>UB g80.0<16,16,1>W {align1};
+mov.sat (16) g81.0<2>UB g81.0<16,16,1>W {align1};
+
+mov (16) m1.0<1>UB g78.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g79.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g80.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g81.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
+
diff --git a/src/xvmc/shader/vld/do_iq_intra.g4i b/src/xvmc/shader/vld/do_iq_intra.g4i
new file mode 100644
index 0000000..29bd020
--- /dev/null
+++ b/src/xvmc/shader/vld/do_iq_intra.g4i
@@ -0,0 +1,64 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g112~g115: intra IQ matrix in UW format (in order to use instruction compress), copys from g1~g2
+ g[a0.0]:DCT data of a block
+ g125: ip before jump
+ if(v==0 && u==0 && intra_mb)
+ F''[v][u] = QF[v][u] * intra_dc_mult
+ else
+ F''[v][u] = (QF[v][u]*W[w][v][u]*quantiser_scale*2)/32
+*/
+DO_IQ_INTRA:
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mov (1) g111.0<1>W g[a0.0]<1,1,1>W {align1};
+mul (16) g116.0<1>D g[a0.0]<8,8,1>W g112.0<8,8,1>UW {align1 compr};
+mul (16) g116.0<1>D g116.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g116.0<1>D g116.0<8,8,1>D 4UW {align1 compr};
+mul (1) g116.0<1>D g111<1,1,1>W g109.4<1,1,1>UW {align1}; //intra_dc_mult
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mul (16) g118.0<1>D g[a0.0]<8,8,1>W g113.0<8,8,1>UW {align1 compr};
+mul (16) g118.0<1>D g118.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g118.0<1>D g118.0<8,8,1>D 4UW {align1 compr};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mul (16) g120.0<1>D g[a0.0]<8,8,1>W g114.0<8,8,1>UW {align1 compr};
+mul (16) g120.0<1>D g120.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g120.0<1>D g120.0<8,8,1>D 4UW {align1 compr};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mul (16) g122.0<1>D g[a0.0]<8,8,1>W g115.0<8,8,1>UW {align1 compr};
+mul (16) g122.0<1>D g122.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g122.0<1>D g122.0<8,8,1>D 4UW {align1 compr};
+
+add (1) ip g125.0<1,1,1>UD 0x20UD {align1}; //jump back
diff --git a/src/xvmc/shader/vld/do_iq_non_intra.g4i b/src/xvmc/shader/vld/do_iq_non_intra.g4i
new file mode 100644
index 0000000..da85e84
--- /dev/null
+++ b/src/xvmc/shader/vld/do_iq_non_intra.g4i
@@ -0,0 +1,59 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g112~g115: intra IQ matrix in UW format (in order to use instruction compress), copys from g1~g2
+ g[a0.0]:DCT data of a block
+ g125: ip before jump
+ F''[v][u]=(((QF[v][u]*2)+Sign(QF[v][u])) * W[w][v][u] * quantiser_scale)/32;
+*/
+DO_IQ_NON_INTRA:
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mul (16) g116.0<1>D g[a0.0]<8,8,1>W g112.0<8,8,1>UW {align1 compr};
+mul (16) g116.0<1>D g116.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g116.0<1>D g116.0<8,8,1>D 4UW {align1 compr};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mul (16) g118.0<1>D g[a0.0]<8,8,1>W g113.0<8,8,1>UW {align1 compr};
+mul (16) g118.0<1>D g118.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g118.0<1>D g118.0<8,8,1>D 4UW {align1 compr};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mul (16) g120.0<1>D g[a0.0]<8,8,1>W g114.0<8,8,1>UW {align1 compr};
+mul (16) g120.0<1>D g120.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g120.0<1>D g120.0<8,8,1>D 4UW {align1 compr};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+mul (16) g122.0<1>D g[a0.0]<8,8,1>W g115.0<8,8,1>UW {align1 compr};
+mul (16) g122.0<1>D g122.0<8,8,1>D g109.0<8,8,0>UW {align1 compr};
+asr (16) g122.0<1>D g122.0<8,8,1>D 4UW {align1 compr};
+
+add (1) ip g125.0<1,1,1>UD 0x20UD {align1}; //jump back
diff --git a/src/xvmc/shader/vld/field_backward.g4a b/src/xvmc/shader/vld/field_backward.g4a
new file mode 100644
index 0000000..9db50ed
--- /dev/null
+++ b/src/xvmc/shader/vld/field_backward.g4a
@@ -0,0 +1,126 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov(2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+mov (1) g126.8<1>UD ip {align1};
+mov (1) ip g21.0<1,1,1>UD {align1};
+
+/*field 0 of Y*/
+asr (2) g31.14<1>W g82.20<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x2000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`7')
+define(`mv1',`g82.20')
+define(`mv2',`g82.22')
+include(`motion_field_y.g4i')
+mov (8) g58.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g68.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g70.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g72.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 1 of Y*/
+asr (2) g31.14<1>W g82.28<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x8000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`7')
+define(`mv1',`g82.28')
+define(`mv2',`g82.30')
+include(`motion_field_y.g4i')
+mov (8) g59.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g69.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g71.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g73.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 0 of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g82.20<1>W g82.20<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.20<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x2000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u', `8')
+define(`surface_v', `9')
+define(`mv1',`g82.20')
+define(`mv2',`g82.22')
+include(`motion_field_uv.g4i')
+mov (8) g74.0<1>UW g32.0<8,8,1>UW {align1};
+mov (8) g75.0<1>UW g33.0<8,8,1>UW {align1};
+mov (8) g76.0<1>UW g34.0<8,8,1>UW {align1};
+mov (8) g77.0<1>UW g35.0<8,8,1>UW {align1};
+mov (8) g78.0<1>UW g36.0<8,8,1>UW {align1};
+mov (8) g79.0<1>UW g37.0<8,8,1>UW {align1};
+mov (8) g80.0<1>UW g38.0<8,8,1>UW {align1};
+mov (8) g81.0<1>UW g39.0<8,8,1>UW {align1};
+
+/*field 1 of UV*/
+asr (2) g82.28<1>W g82.28<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.28<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x8000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g82.28')
+define(`mv2',`g82.30')
+include(`motion_field_uv.g4i')
+mov (8) g74.16<1>UW g32.0<8,8,1>UW {align1};
+mov (8) g75.16<1>UW g33.0<8,8,1>UW {align1};
+mov (8) g76.16<1>UW g34.0<8,8,1>UW {align1};
+mov (8) g77.16<1>UW g35.0<8,8,1>UW {align1};
+mov (8) g78.16<1>UW g36.0<8,8,1>UW {align1};
+mov (8) g79.16<1>UW g37.0<8,8,1>UW {align1};
+mov (8) g80.16<1>UW g38.0<8,8,1>UW {align1};
+mov (8) g81.16<1>UW g39.0<8,8,1>UW {align1};
+
+include(`addidct.g4i')
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/vld/field_backward.g4b b/src/xvmc/shader/vld/field_backward.g4b
new file mode 100644
index 0000000..5d46829
--- /dev/null
+++ b/src/xvmc/shader/vld/field_backward.g4b
@@ -0,0 +1,553 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a543dad, 0x00450a54, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29a00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29e00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a200129, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x2a5c3dad, 0x00450a5c, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29b00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29f00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a300129, 0x008d04e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/vld/field_backward.g4b.gen5 b/src/xvmc/shader/vld/field_backward.g4b.gen5
new file mode 100644
index 0000000..18595b2
--- /dev/null
+++ b/src/xvmc/shader/vld/field_backward.g4b.gen5
@@ -0,0 +1,553 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a543dad, 0x00450a54, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29a00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29e00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a200129, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x2a5c3dad, 0x00450a5c, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29b00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29f00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a300129, 0x008d04e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/vld/field_f_b.g4a b/src/xvmc/shader/vld/field_f_b.g4a
new file mode 100644
index 0000000..fdc1e83
--- /dev/null
+++ b/src/xvmc/shader/vld/field_f_b.g4a
@@ -0,0 +1,213 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov(2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+mov (1) g126.8<1>UD ip {align1};
+mov (1) ip g21.0<1,1,1>UD {align1};
+
+/*field 0 forward prediction of Y*/
+asr (2) g31.14<1>W g82.16<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x1000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`4')
+define(`mv1',`g82.16')
+define(`mv2',`g82.18')
+include(`motion_field_y.g4i')
+mov (8) g58.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g68.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g70.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g72.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 1 forward prediction of Y*/
+asr (2) g31.14<1>W g82.24<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x4000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`4')
+define(`mv1',`g82.24')
+define(`mv2',`g82.26')
+include(`motion_field_y.g4i')
+mov (8) g59.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g69.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g71.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g73.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 0 forward prediction of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g82.16<1>W g82.16<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.16<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x1000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u', `5')
+define(`surface_v', `6')
+define(`mv1',`g82.16')
+define(`mv2',`g82.18')
+include(`motion_field_uv.g4i')
+mov (8) g74.0<1>UW g32.0<8,8,1>UW {align1};
+mov (8) g75.0<1>UW g33.0<8,8,1>UW {align1};
+mov (8) g76.0<1>UW g34.0<8,8,1>UW {align1};
+mov (8) g77.0<1>UW g35.0<8,8,1>UW {align1};
+mov (8) g78.0<1>UW g36.0<8,8,1>UW {align1};
+mov (8) g79.0<1>UW g37.0<8,8,1>UW {align1};
+mov (8) g80.0<1>UW g38.0<8,8,1>UW {align1};
+mov (8) g81.0<1>UW g39.0<8,8,1>UW {align1};
+
+/*field 1 forward prediction of UV*/
+asr (2) g82.24<1>W g82.24<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.24<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x4000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g82.24')
+define(`mv2',`g82.26')
+include(`motion_field_uv.g4i')
+mov (8) g74.16<1>UW g32.0<8,8,1>UW {align1};
+mov (8) g75.16<1>UW g33.0<8,8,1>UW {align1};
+mov (8) g76.16<1>UW g34.0<8,8,1>UW {align1};
+mov (8) g77.16<1>UW g35.0<8,8,1>UW {align1};
+mov (8) g78.16<1>UW g36.0<8,8,1>UW {align1};
+mov (8) g79.16<1>UW g37.0<8,8,1>UW {align1};
+mov (8) g80.16<1>UW g38.0<8,8,1>UW {align1};
+mov (8) g81.16<1>UW g39.0<8,8,1>UW {align1};
+
+/*field 0 backward prediction of Y*/
+mov(2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+
+asr (2) g31.14<1>W g82.20<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x2000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`7')
+define(`mv1',`g82.20')
+define(`mv2',`g82.22')
+include(`motion_field_y.g4i')
+avg.sat (16) g58.0<1>UW g58.0<16,16,1>UW g32.0<16,16,1>UW {align1};
+avg.sat (16) g60.0<1>UW g60.0<16,16,1>UW g33.0<16,16,1>UW {align1};
+avg.sat (16) g62.0<1>UW g62.0<16,16,1>UW g34.0<16,16,1>UW {align1};
+avg.sat (16) g64.0<1>UW g64.0<16,16,1>UW g35.0<16,16,1>UW {align1};
+avg.sat (16) g66.0<1>UW g66.0<16,16,1>UW g36.0<16,16,1>UW {align1};
+avg.sat (16) g68.0<1>UW g68.0<16,16,1>UW g37.0<16,16,1>UW {align1};
+avg.sat (16) g70.0<1>UW g70.0<16,16,1>UW g38.0<16,16,1>UW {align1};
+avg.sat (16) g72.0<1>UW g72.0<16,16,1>UW g39.0<16,16,1>UW {align1};
+
+/*field 1 backward prediction of Y*/
+asr (2) g31.14<1>W g82.28<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x8000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`7')
+define(`mv1',`g82.28')
+define(`mv2',`g82.30')
+include(`motion_field_y.g4i')
+avg.sat (16) g59.0<1>UW g59.0<16,16,1>UW g32.0<16,16,1>UW {align1};
+avg.sat (16) g61.0<1>UW g61.0<16,16,1>UW g33.0<16,16,1>UW {align1};
+avg.sat (16) g63.0<1>UW g63.0<16,16,1>UW g34.0<16,16,1>UW {align1};
+avg.sat (16) g65.0<1>UW g65.0<16,16,1>UW g35.0<16,16,1>UW {align1};
+avg.sat (16) g67.0<1>UW g67.0<16,16,1>UW g36.0<16,16,1>UW {align1};
+avg.sat (16) g69.0<1>UW g69.0<16,16,1>UW g37.0<16,16,1>UW {align1};
+avg.sat (16) g71.0<1>UW g71.0<16,16,1>UW g38.0<16,16,1>UW {align1};
+avg.sat (16) g73.0<1>UW g73.0<16,16,1>UW g39.0<16,16,1>UW {align1};
+
+/*field 0 backward prediction of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g82.20<1>W g82.20<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.20<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x2000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u', `8')
+define(`surface_v', `9')
+define(`mv1',`g82.20')
+define(`mv2',`g82.22')
+include(`motion_field_uv.g4i')
+avg.sat (8) g74.0<1>UW g74.0<8,8,1>UW g32.0<8,8,1>UW {align1};
+avg.sat (8) g75.0<1>UW g75.0<8,8,1>UW g33.0<8,8,1>UW {align1};
+avg.sat (8) g76.0<1>UW g76.0<8,8,1>UW g34.0<8,8,1>UW {align1};
+avg.sat (8) g77.0<1>UW g77.0<8,8,1>UW g35.0<8,8,1>UW {align1};
+avg.sat (8) g78.0<1>UW g78.0<8,8,1>UW g36.0<8,8,1>UW {align1};
+avg.sat (8) g79.0<1>UW g79.0<8,8,1>UW g37.0<8,8,1>UW {align1};
+avg.sat (8) g80.0<1>UW g80.0<8,8,1>UW g38.0<8,8,1>UW {align1};
+avg.sat (8) g81.0<1>UW g81.0<8,8,1>UW g39.0<8,8,1>UW {align1};
+
+/*field 1 backward prediction of UV*/
+asr (2) g82.28<1>W g82.28<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.28<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x8000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`mv1',`g82.28')
+define(`mv2',`g82.30')
+include(`motion_field_uv.g4i')
+avg.sat (8) g74.16<1>UW g74.16<8,8,1>UW g32.0<8,8,1>UW {align1};
+avg.sat (8) g75.16<1>UW g75.16<8,8,1>UW g33.0<8,8,1>UW {align1};
+avg.sat (8) g76.16<1>UW g76.16<8,8,1>UW g34.0<8,8,1>UW {align1};
+avg.sat (8) g77.16<1>UW g77.16<8,8,1>UW g35.0<8,8,1>UW {align1};
+avg.sat (8) g78.16<1>UW g78.16<8,8,1>UW g36.0<8,8,1>UW {align1};
+avg.sat (8) g79.16<1>UW g79.16<8,8,1>UW g37.0<8,8,1>UW {align1};
+avg.sat (8) g80.16<1>UW g80.16<8,8,1>UW g38.0<8,8,1>UW {align1};
+avg.sat (8) g81.16<1>UW g81.16<8,8,1>UW g39.0<8,8,1>UW {align1};
+
+include(`addidct.g4i')
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/vld/field_f_b.g4b b/src/xvmc/shader/vld/field_f_b.g4b
new file mode 100644
index 0000000..9bd272e
--- /dev/null
+++ b/src/xvmc/shader/vld/field_f_b.g4b
@@ -0,0 +1,1007 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a503dad, 0x00450a50, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29a00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29e00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a200129, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x2a583dad, 0x00450a58, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29b00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29f00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a300129, 0x008d04e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x80800042, 0x27402529, 0x00b10740, 0x00b10400 },
+ { 0x80800042, 0x27802529, 0x00b10780, 0x00b10420 },
+ { 0x80800042, 0x27c02529, 0x00b107c0, 0x00b10440 },
+ { 0x80800042, 0x28002529, 0x00b10800, 0x00b10460 },
+ { 0x80800042, 0x28402529, 0x00b10840, 0x00b10480 },
+ { 0x80800042, 0x28802529, 0x00b10880, 0x00b104a0 },
+ { 0x80800042, 0x28c02529, 0x00b108c0, 0x00b104c0 },
+ { 0x80800042, 0x29002529, 0x00b10900, 0x00b104e0 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x80800042, 0x27602529, 0x00b10760, 0x00b10400 },
+ { 0x80800042, 0x27a02529, 0x00b107a0, 0x00b10420 },
+ { 0x80800042, 0x27e02529, 0x00b107e0, 0x00b10440 },
+ { 0x80800042, 0x28202529, 0x00b10820, 0x00b10460 },
+ { 0x80800042, 0x28602529, 0x00b10860, 0x00b10480 },
+ { 0x80800042, 0x28a02529, 0x00b108a0, 0x00b104a0 },
+ { 0x80800042, 0x28e02529, 0x00b108e0, 0x00b104c0 },
+ { 0x80800042, 0x29202529, 0x00b10920, 0x00b104e0 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a543dad, 0x00450a54, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x80600042, 0x29402529, 0x008d0940, 0x008d0400 },
+ { 0x80600042, 0x29602529, 0x008d0960, 0x008d0420 },
+ { 0x80600042, 0x29802529, 0x008d0980, 0x008d0440 },
+ { 0x80600042, 0x29a02529, 0x008d09a0, 0x008d0460 },
+ { 0x80600042, 0x29c02529, 0x008d09c0, 0x008d0480 },
+ { 0x80600042, 0x29e02529, 0x008d09e0, 0x008d04a0 },
+ { 0x80600042, 0x2a002529, 0x008d0a00, 0x008d04c0 },
+ { 0x80600042, 0x2a202529, 0x008d0a20, 0x008d04e0 },
+ { 0x0020000c, 0x2a5c3dad, 0x00450a5c, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a008 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a008 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x80600042, 0x29502529, 0x008d0950, 0x008d0400 },
+ { 0x80600042, 0x29702529, 0x008d0970, 0x008d0420 },
+ { 0x80600042, 0x29902529, 0x008d0990, 0x008d0440 },
+ { 0x80600042, 0x29b02529, 0x008d09b0, 0x008d0460 },
+ { 0x80600042, 0x29d02529, 0x008d09d0, 0x008d0480 },
+ { 0x80600042, 0x29f02529, 0x008d09f0, 0x008d04a0 },
+ { 0x80600042, 0x2a102529, 0x008d0a10, 0x008d04c0 },
+ { 0x80600042, 0x2a302529, 0x008d0a30, 0x008d04e0 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/vld/field_f_b.g4b.gen5 b/src/xvmc/shader/vld/field_f_b.g4b.gen5
new file mode 100644
index 0000000..b99ad57
--- /dev/null
+++ b/src/xvmc/shader/vld/field_f_b.g4b.gen5
@@ -0,0 +1,1007 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a503dad, 0x00450a50, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29a00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29e00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a200129, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x2a583dad, 0x00450a58, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29b00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29f00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a300129, 0x008d04e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x80800042, 0x27402529, 0x00b10740, 0x00b10400 },
+ { 0x80800042, 0x27802529, 0x00b10780, 0x00b10420 },
+ { 0x80800042, 0x27c02529, 0x00b107c0, 0x00b10440 },
+ { 0x80800042, 0x28002529, 0x00b10800, 0x00b10460 },
+ { 0x80800042, 0x28402529, 0x00b10840, 0x00b10480 },
+ { 0x80800042, 0x28802529, 0x00b10880, 0x00b104a0 },
+ { 0x80800042, 0x28c02529, 0x00b108c0, 0x00b104c0 },
+ { 0x80800042, 0x29002529, 0x00b10900, 0x00b104e0 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a007 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a007 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a007 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x80800042, 0x27602529, 0x00b10760, 0x00b10400 },
+ { 0x80800042, 0x27a02529, 0x00b107a0, 0x00b10420 },
+ { 0x80800042, 0x27e02529, 0x00b107e0, 0x00b10440 },
+ { 0x80800042, 0x28202529, 0x00b10820, 0x00b10460 },
+ { 0x80800042, 0x28602529, 0x00b10860, 0x00b10480 },
+ { 0x80800042, 0x28a02529, 0x00b108a0, 0x00b104a0 },
+ { 0x80800042, 0x28e02529, 0x00b108e0, 0x00b104c0 },
+ { 0x80800042, 0x29202529, 0x00b10920, 0x00b104e0 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a543dad, 0x00450a54, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x20002000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a54, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a56, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x80600042, 0x29402529, 0x008d0940, 0x008d0400 },
+ { 0x80600042, 0x29602529, 0x008d0960, 0x008d0420 },
+ { 0x80600042, 0x29802529, 0x008d0980, 0x008d0440 },
+ { 0x80600042, 0x29a02529, 0x008d09a0, 0x008d0460 },
+ { 0x80600042, 0x29c02529, 0x008d09c0, 0x008d0480 },
+ { 0x80600042, 0x29e02529, 0x008d09e0, 0x008d04a0 },
+ { 0x80600042, 0x2a002529, 0x008d0a00, 0x008d04c0 },
+ { 0x80600042, 0x2a202529, 0x008d0a20, 0x008d04e0 },
+ { 0x0020000c, 0x2a5c3dad, 0x00450a5c, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a5c, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x80008000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a5c, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a5e, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a009 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a008 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a009 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a008 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a009 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x80600042, 0x29502529, 0x008d0950, 0x008d0400 },
+ { 0x80600042, 0x29702529, 0x008d0970, 0x008d0420 },
+ { 0x80600042, 0x29902529, 0x008d0990, 0x008d0440 },
+ { 0x80600042, 0x29b02529, 0x008d09b0, 0x008d0460 },
+ { 0x80600042, 0x29d02529, 0x008d09d0, 0x008d0480 },
+ { 0x80600042, 0x29f02529, 0x008d09f0, 0x008d04a0 },
+ { 0x80600042, 0x2a102529, 0x008d0a10, 0x008d04c0 },
+ { 0x80600042, 0x2a302529, 0x008d0a30, 0x008d04e0 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/vld/field_forward.g4a b/src/xvmc/shader/vld/field_forward.g4a
new file mode 100644
index 0000000..4c79c5f
--- /dev/null
+++ b/src/xvmc/shader/vld/field_forward.g4a
@@ -0,0 +1,130 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+mov (1) g126.8<1>UD ip {align1};
+mov (1) ip g21.0<1,1,1>UD {align1};
+
+/*field 0 of Y*/
+asr (2) g31.14<1>W g82.16<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x1000UW {align1}; //motion vertical field select
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`4')
+define(`mv1',`g82.16')
+define(`mv2',`g82.18')
+include(`motion_field_y.g4i')
+mov (8) g58.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g60.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g62.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g64.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g66.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g68.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g70.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g72.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 1 of Y*/
+asr (2) g31.14<1>W g82.24<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x4000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface',`4')
+define(`mv1',`g82.24')
+define(`mv2',`g82.26')
+include(`motion_field_y.g4i')
+mov (8) g59.0<1>UD g32.0<8,8,1>UD {align1};
+mov (8) g61.0<1>UD g33.0<8,8,1>UD {align1};
+mov (8) g63.0<1>UD g34.0<8,8,1>UD {align1};
+mov (8) g65.0<1>UD g35.0<8,8,1>UD {align1};
+mov (8) g67.0<1>UD g36.0<8,8,1>UD {align1};
+mov (8) g69.0<1>UD g37.0<8,8,1>UD {align1};
+mov (8) g71.0<1>UD g38.0<8,8,1>UD {align1};
+mov (8) g73.0<1>UD g39.0<8,8,1>UD {align1};
+
+/*field 0 of UV*/
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g82.16<1>W g82.16<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.16<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x1000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u', `5')
+define(`surface_v', `6')
+define(`mv1',`g82.16')
+define(`mv2',`g82.18')
+include(`motion_field_uv.g4i')
+mov (8) g74.0<1>UW g32.0<8,8,1>UW {align1};
+mov (8) g75.0<1>UW g33.0<8,8,1>UW {align1};
+mov (8) g76.0<1>UW g34.0<8,8,1>UW {align1};
+mov (8) g77.0<1>UW g35.0<8,8,1>UW {align1};
+mov (8) g78.0<1>UW g36.0<8,8,1>UW {align1};
+mov (8) g79.0<1>UW g37.0<8,8,1>UW {align1};
+mov (8) g80.0<1>UW g38.0<8,8,1>UW {align1};
+mov (8) g81.0<1>UW g39.0<8,8,1>UW {align1};
+
+/*field 1 of UV*/
+asr (2) g82.24<1>W g82.24<2,2,1>W 1W {align1};
+asr (2) g31.14<1>W g82.24<2,2,1>W 1W {align1};
+shl (1) g31.16<1>W g31.16<1,1,1>W 1W {align1};
+add (2) g115.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+and (1) g115.4<1>UD g115.4<1,1,1>UD 0xFFFFFFFEUD {align1};
+and.nz (1) null g82.2<1,1,1>UW 0x4000UW {align1};
+(f0) add (1) g115.4<1>UD g115.4<1,1,1>UD 1UD {align1};
+define(`surface_u', `5')
+define(`surface_v', `6')
+define(`mv1',`g82.24')
+define(`mv2',`g82.26')
+include(`motion_field_uv.g4i')
+mov (8) g74.16<1>UW g32.0<8,8,1>UW {align1};
+mov (8) g75.16<1>UW g33.0<8,8,1>UW {align1};
+mov (8) g76.16<1>UW g34.0<8,8,1>UW {align1};
+mov (8) g77.16<1>UW g35.0<8,8,1>UW {align1};
+mov (8) g78.16<1>UW g36.0<8,8,1>UW {align1};
+mov (8) g79.16<1>UW g37.0<8,8,1>UW {align1};
+mov (8) g80.16<1>UW g38.0<8,8,1>UW {align1};
+mov (8) g81.16<1>UW g39.0<8,8,1>UW {align1};
+
+include(`addidct.g4i')
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/vld/field_forward.g4b b/src/xvmc/shader/vld/field_forward.g4b
new file mode 100644
index 0000000..6c02221
--- /dev/null
+++ b/src/xvmc/shader/vld/field_forward.g4b
@@ -0,0 +1,555 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000045 },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002f },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000017 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x008d0e60, 0x0411a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000013 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x008d0e60, 0x0411a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x008d0e60, 0x0418a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a503dad, 0x00450a50, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29a00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29e00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a200129, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x2a583dad, 0x00450a58, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000032 },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000029 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0414a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001d },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x008d0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x008d0e60, 0x0414a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x008d0e60, 0x0411a005 },
+ { 0x00800031, 0x26201d29, 0x008d0e60, 0x0411a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x00ad0e60, 0x0414a005 },
+ { 0x00800031, 0x25a01d29, 0x00ad0e60, 0x0414a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29b00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29f00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a300129, 0x008d04e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/vld/field_forward.g4b.gen5 b/src/xvmc/shader/vld/field_forward.g4b.gen5
new file mode 100644
index 0000000..4c2434a
--- /dev/null
+++ b/src/xvmc/shader/vld/field_forward.g4b.gen5
@@ -0,0 +1,555 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27400021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27800021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27c00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28000021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28400021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28800021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28c00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29000021, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20002dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000008a },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00800040, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x00800040, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x00800040, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x00800040, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x00800040, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x00800040, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x00800040, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x00800040, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10501 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10541 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b10581 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b105c1 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10601 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10641 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b10681 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b106c1 },
+ { 0x00800040, 0x24004529, 0x00b10400, 0x00b10541 },
+ { 0x00800040, 0x24204529, 0x00b10420, 0x00b10581 },
+ { 0x00800040, 0x24404529, 0x00b10440, 0x00b105c1 },
+ { 0x00800040, 0x24604529, 0x00b10460, 0x00b10601 },
+ { 0x00800040, 0x24804529, 0x00b10480, 0x00b10641 },
+ { 0x00800040, 0x24a04529, 0x00b104a0, 0x00b10681 },
+ { 0x00800040, 0x24c04529, 0x00b104c0, 0x00b106c1 },
+ { 0x00800040, 0x24e04529, 0x00b104e0, 0x00b10701 },
+ { 0x00800008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00800008, 0x24202d29, 0x00b10420, 0x00020002 },
+ { 0x00800008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00800008, 0x24602d29, 0x00b10460, 0x00020002 },
+ { 0x00800008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00800008, 0x24a02d29, 0x00b104a0, 0x00020002 },
+ { 0x00800008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00800008, 0x24e02d29, 0x00b104e0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b106c1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000058 },
+ { 0x01000005, 0x20002dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x27001d29, 0x408d0e60, 0x0218a004 },
+ { 0x80800042, 0x24004629, 0x00b10500, 0x00b10540 },
+ { 0x80800042, 0x24204629, 0x00b10540, 0x00b10580 },
+ { 0x80800042, 0x24404629, 0x00b10580, 0x00b105c0 },
+ { 0x80800042, 0x24604629, 0x00b105c0, 0x00b10600 },
+ { 0x80800042, 0x24804629, 0x00b10600, 0x00b10640 },
+ { 0x80800042, 0x24a04629, 0x00b10640, 0x00b10680 },
+ { 0x80800042, 0x24c04629, 0x00b10680, 0x00b106c0 },
+ { 0x80800042, 0x24e04629, 0x00b106c0, 0x00b10700 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000026 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25401d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00800031, 0x25c01d29, 0x408d0e60, 0x0218a004 },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000002 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x26001d29, 0x408d0e60, 0x0288a004 },
+ { 0x00800001, 0x24000229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00b106c0, 0x00000000 },
+ { 0x00600001, 0x27600021, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x27a00021, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x27e00021, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x28200021, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x28600021, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x28a00021, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x28e00021, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x29200021, 0x008d04e0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x2a503dad, 0x00450a50, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x10001000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a50, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a52, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29400129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29600129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29800129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29a00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29c00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29e00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a000129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a200129, 0x008d04e0, 0x00000000 },
+ { 0x0020000c, 0x2a583dad, 0x00450a58, 0x00010001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a58, 0x00010001 },
+ { 0x00000009, 0x23f03dad, 0x002103f0, 0x00010001 },
+ { 0x00200040, 0x2e603421, 0x004503e0, 0x004503ee },
+ { 0x00000005, 0x2e640c21, 0x00210e64, 0xfffffffe },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x40004000 },
+ { 0x00010040, 0x2e640c21, 0x00210e64, 0x00000001 },
+ { 0x01000005, 0x20003dbc, 0x00210a58, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000064 },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0001000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800040, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800040, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800040, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800040, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0501 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0521 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0541 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0561 },
+ { 0x00800040, 0x24004529, 0x00ad0400, 0x00ad0521 },
+ { 0x00800040, 0x24204529, 0x00ad0420, 0x00ad0541 },
+ { 0x00800040, 0x24404529, 0x00ad0440, 0x00ad0561 },
+ { 0x00800040, 0x24604529, 0x00ad0460, 0x00ad0581 },
+ { 0x00800040, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800040, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800040, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800040, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05a1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05c1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad05e1 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0601 },
+ { 0x00800040, 0x24804529, 0x00ad0480, 0x00ad05c1 },
+ { 0x00800040, 0x24a04529, 0x00ad04a0, 0x00ad05e1 },
+ { 0x00800040, 0x24c04529, 0x00ad04c0, 0x00ad0601 },
+ { 0x00800040, 0x24e04529, 0x00ad04e0, 0x00ad0621 },
+ { 0x00a02008, 0x24002d29, 0x00b10400, 0x00020002 },
+ { 0x00a02008, 0x24402d29, 0x00b10440, 0x00020002 },
+ { 0x00a02008, 0x24802d29, 0x00b10480, 0x00020002 },
+ { 0x00a02008, 0x24c02d29, 0x00b104c0, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000052 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0248a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0501 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0521 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0541 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0561 },
+ { 0x00800042, 0x24804629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x24a04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x24c04629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x24e04629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000003a },
+ { 0x01000005, 0x20003dbc, 0x00210a5a, 0x00010001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x408d0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x408d0e60, 0x0248a006 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0000000f },
+ { 0x00000040, 0x2e640c21, 0x00210e64, 0x00000008 },
+ { 0x00800031, 0x25801d29, 0x408d0e60, 0x0218a005 },
+ { 0x00800031, 0x26201d29, 0x408d0e60, 0x0218a006 },
+ { 0x00800042, 0x24004629, 0x00ad0500, 0x00ad0520 },
+ { 0x00800042, 0x24204629, 0x00ad0520, 0x00ad0540 },
+ { 0x00800042, 0x24404629, 0x00ad0540, 0x00ad0560 },
+ { 0x00800042, 0x24604629, 0x00ad0560, 0x00ad0580 },
+ { 0x00800042, 0x24804629, 0x00ad05a0, 0x00ad05c0 },
+ { 0x00800042, 0x24a04629, 0x00ad05c0, 0x00ad05e0 },
+ { 0x00800042, 0x24c04629, 0x00ad05e0, 0x00ad0600 },
+ { 0x00800042, 0x24e04629, 0x00ad0600, 0x00ad0620 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x2e680061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x25001d29, 0x40ad0e60, 0x0248a005 },
+ { 0x00800031, 0x25a01d29, 0x40ad0e60, 0x0248a006 },
+ { 0x00800001, 0x24000229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x24200229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x24400229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x24600229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x24800229, 0x00ad05a0, 0x00000000 },
+ { 0x00800001, 0x24a00229, 0x00ad05c0, 0x00000000 },
+ { 0x00800001, 0x24c00229, 0x00ad05e0, 0x00000000 },
+ { 0x00800001, 0x24e00229, 0x00ad0600, 0x00000000 },
+ { 0x00600001, 0x29500129, 0x008d0400, 0x00000000 },
+ { 0x00600001, 0x29700129, 0x008d0420, 0x00000000 },
+ { 0x00600001, 0x29900129, 0x008d0440, 0x00000000 },
+ { 0x00600001, 0x29b00129, 0x008d0460, 0x00000000 },
+ { 0x00600001, 0x29d00129, 0x008d0480, 0x00000000 },
+ { 0x00600001, 0x29f00129, 0x008d04a0, 0x00000000 },
+ { 0x00600001, 0x2a100129, 0x008d04c0, 0x00000000 },
+ { 0x00600001, 0x2a300129, 0x008d04e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/vld/frame_backward.g4a b/src/xvmc/shader/vld/frame_backward.g4a
new file mode 100644
index 0000000..28fe910
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_backward.g4a
@@ -0,0 +1,61 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov(2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+mov (1) g126.8<1>UD ip {align1};
+mov (1) ip g21.0<1,1,1>UD {align1};
+
+//Y, (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1)
+asr (2) g31.14<1>W g82.20<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+define(`input_surface', `7')
+define(`mv1', `g82.20')
+define(`mv2', `g82.22')
+include(`motion_frame_y.g4i')
+
+//UV, (x', y') = (x >> 1, y >> 1) + (motion_vector.x >> 2, motion_vector.y >> 2)
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g31.14<1>W g82.20<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+define(`input_surface1', `8')
+define(`input_surface2', `9')
+include(`motion_frame_uv.g4i')
+
+include(`addidct.g4i')
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/vld/frame_backward.g4b b/src/xvmc/shader/vld/frame_backward.g4b
new file mode 100644
index 0000000..475200b
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_backward.g4b
@@ -0,0 +1,369 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005f },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a007 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a008 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a008 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a009 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0414a009 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000025 },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a008 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a008 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a009 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x008d0400, 0x0414a008 },
+ { 0x00800031, 0x25001d29, 0x008d0400, 0x0414a009 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/vld/frame_backward.g4b.gen5 b/src/xvmc/shader/vld/frame_backward.g4b.gen5
new file mode 100644
index 0000000..5f5c174
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_backward.g4b.gen5
@@ -0,0 +1,369 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000be },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000090 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a007 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a008 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a008 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a009 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0248a009 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a008 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a008 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a009 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x408d0400, 0x0248a008 },
+ { 0x00800031, 0x25001d29, 0x408d0400, 0x0248a009 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/vld/frame_f_b.g4a b/src/xvmc/shader/vld/frame_f_b.g4a
new file mode 100644
index 0000000..cf7ef57
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_f_b.g4a
@@ -0,0 +1,120 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+mov (1) g126.8<1>UD ip {align1};
+mov (1) ip g21.0<1,1,1>UD {align1};
+
+//Y, Forward
+mov (1) g31.8<1>UD 0x0070007UD {align1};
+define(`input_surface', `4')
+define(`mv1', `g82.16')
+define(`mv2', `g82.18')
+asr (2) g31.14<1>W g82.16<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+include(`motion_frame_y.g4i')
+//Save Forward
+mov (16) g108.0<1>UD g58.0<16,16,1>UD {align1 compr};
+mov (16) g110.0<1>UD g60.0<16,16,1>UD {align1 compr};
+mov (16) g112.0<1>UD g62.0<16,16,1>UD {align1 compr};
+mov (16) g114.0<1>UD g64.0<16,16,1>UD {align1 compr};
+mov (16) g116.0<1>UD g66.0<16,16,1>UD {align1 compr};
+mov (16) g118.0<1>UD g68.0<16,16,1>UD {align1 compr};
+mov (16) g120.0<1>UD g70.0<16,16,1>UD {align1 compr};
+mov (16) g122.0<1>UD g72.0<16,16,1>UD {align1 compr};
+//Y, Backward
+define(`input_surface', `7')
+define(`mv1', `g82.20')
+define(`mv2', `g82.22')
+asr (2) g31.14<1>W g82.20<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+include(`motion_frame_y.g4i')
+//Average Forward and Backward
+avg.sat (16) g58.0<1>UW g58.0<16,16,1>UW g108.0<16,16,1>UW {align1};
+avg.sat (16) g59.0<1>UW g59.0<16,16,1>UW g109.0<16,16,1>UW {align1};
+avg.sat (16) g60.0<1>UW g60.0<16,16,1>UW g110.0<16,16,1>UW {align1};
+avg.sat (16) g61.0<1>UW g61.0<16,16,1>UW g111.0<16,16,1>UW {align1};
+avg.sat (16) g62.0<1>UW g62.0<16,16,1>UW g112.0<16,16,1>UW {align1};
+avg.sat (16) g63.0<1>UW g63.0<16,16,1>UW g113.0<16,16,1>UW {align1};
+avg.sat (16) g64.0<1>UW g64.0<16,16,1>UW g114.0<16,16,1>UW {align1};
+avg.sat (16) g65.0<1>UW g65.0<16,16,1>UW g115.0<16,16,1>UW {align1};
+avg.sat (16) g66.0<1>UW g66.0<16,16,1>UW g116.0<16,16,1>UW {align1};
+avg.sat (16) g67.0<1>UW g67.0<16,16,1>UW g117.0<16,16,1>UW {align1};
+avg.sat (16) g68.0<1>UW g68.0<16,16,1>UW g118.0<16,16,1>UW {align1};
+avg.sat (16) g69.0<1>UW g69.0<16,16,1>UW g119.0<16,16,1>UW {align1};
+avg.sat (16) g70.0<1>UW g70.0<16,16,1>UW g120.0<16,16,1>UW {align1};
+avg.sat (16) g71.0<1>UW g71.0<16,16,1>UW g121.0<16,16,1>UW {align1};
+avg.sat (16) g72.0<1>UW g72.0<16,16,1>UW g122.0<16,16,1>UW {align1};
+avg.sat (16) g73.0<1>UW g73.0<16,16,1>UW g123.0<16,16,1>UW {align1};
+
+//UV, Forward
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g31.14<1>W g82.16<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+define(`input_surface1', `5')
+define(`input_surface2', `6')
+mov (1) g32.8<1>UD 0x007000fUD {align1};
+include(`motion_frame_uv.g4i')
+//Save UV Forward
+mov (16) g108.0<1>UB g74.0<16,16,2>UB {align1};
+mov (16) g108.16<1>UB g75.0<16,16,2>UB {align1};
+mov (16) g109.0<1>UB g76.0<16,16,2>UB {align1};
+mov (16) g109.16<1>UB g77.0<16,16,2>UB {align1};
+mov (16) g110.0<1>UB g78.0<16,16,2>UB {align1};
+mov (16) g110.16<1>UB g79.0<16,16,2>UB {align1};
+mov (16) g111.0<1>UB g80.0<16,16,2>UB {align1};
+mov (16) g111.16<1>UB g81.0<16,16,2>UB {align1};
+//UV, Backward
+asr (2) g31.14<1>W g82.20<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+define(`input_surface1', `8')
+define(`input_surface2', `9')
+include(`motion_frame_uv.g4i')
+//Average Forward and Backward
+avg.sat (16) g74.0<1>UW g74.0<16,16,1>UW g108.0<16,16,1>UB {align1};
+avg.sat (16) g75.0<1>UW g75.0<16,16,1>UW g108.16<16,16,1>UB {align1};
+avg.sat (16) g76.0<1>UW g76.0<16,16,1>UW g109.0<16,16,1>UB {align1};
+avg.sat (16) g77.0<1>UW g77.0<16,16,1>UW g109.16<16,16,1>UB {align1};
+avg.sat (16) g78.0<1>UW g78.0<16,16,1>UW g110.0<16,16,1>UB {align1};
+avg.sat (16) g79.0<1>UW g79.0<16,16,1>UW g110.16<16,16,1>UB {align1};
+avg.sat (16) g80.0<1>UW g80.0<16,16,1>UW g111.0<16,16,1>UB {align1};
+avg.sat (16) g81.0<1>UW g81.0<16,16,1>UW g111.16<16,16,1>UB {align1};
+
+include(`addidct.g4i')
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/vld/frame_f_b.g4b b/src/xvmc/shader/vld/frame_f_b.g4b
new file mode 100644
index 0000000..0ca1f38
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_f_b.g4b
@@ -0,0 +1,675 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a50, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005f },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a004 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x00802001, 0x2d800021, 0x00b10740, 0x00000000 },
+ { 0x00802001, 0x2dc00021, 0x00b10780, 0x00000000 },
+ { 0x00802001, 0x2e000021, 0x00b107c0, 0x00000000 },
+ { 0x00802001, 0x2e400021, 0x00b10800, 0x00000000 },
+ { 0x00802001, 0x2e800021, 0x00b10840, 0x00000000 },
+ { 0x00802001, 0x2ec00021, 0x00b10880, 0x00000000 },
+ { 0x00802001, 0x2f000021, 0x00b108c0, 0x00000000 },
+ { 0x00802001, 0x2f400021, 0x00b10900, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005f },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a007 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a007 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x80800042, 0x27402529, 0x00b10740, 0x00b10d80 },
+ { 0x80800042, 0x27602529, 0x00b10760, 0x00b10da0 },
+ { 0x80800042, 0x27802529, 0x00b10780, 0x00b10dc0 },
+ { 0x80800042, 0x27a02529, 0x00b107a0, 0x00b10de0 },
+ { 0x80800042, 0x27c02529, 0x00b107c0, 0x00b10e00 },
+ { 0x80800042, 0x27e02529, 0x00b107e0, 0x00b10e20 },
+ { 0x80800042, 0x28002529, 0x00b10800, 0x00b10e40 },
+ { 0x80800042, 0x28202529, 0x00b10820, 0x00b10e60 },
+ { 0x80800042, 0x28402529, 0x00b10840, 0x00b10e80 },
+ { 0x80800042, 0x28602529, 0x00b10860, 0x00b10ea0 },
+ { 0x80800042, 0x28802529, 0x00b10880, 0x00b10ec0 },
+ { 0x80800042, 0x28a02529, 0x00b108a0, 0x00b10ee0 },
+ { 0x80800042, 0x28c02529, 0x00b108c0, 0x00b10f00 },
+ { 0x80800042, 0x28e02529, 0x00b108e0, 0x00b10f20 },
+ { 0x80800042, 0x29002529, 0x00b10900, 0x00b10f40 },
+ { 0x80800042, 0x29202529, 0x00b10920, 0x00b10f60 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a005 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a005 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a006 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0414a006 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000025 },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a005 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a005 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a006 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x008d0400, 0x0414a005 },
+ { 0x00800031, 0x25001d29, 0x008d0400, 0x0414a006 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x2d800231, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x2d900231, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x2da00231, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x2db00231, 0x00b209a0, 0x00000000 },
+ { 0x00800001, 0x2dc00231, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x2dd00231, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x2de00231, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x2df00231, 0x00b20a20, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a008 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a008 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a009 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0414a008 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0414a009 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000025 },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a008 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a008 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a009 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x008d0400, 0x0414a008 },
+ { 0x00800031, 0x25001d29, 0x008d0400, 0x0414a009 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x80800042, 0x29404529, 0x00b10940, 0x00b10d80 },
+ { 0x80800042, 0x29604529, 0x00b10960, 0x00b10d90 },
+ { 0x80800042, 0x29804529, 0x00b10980, 0x00b10da0 },
+ { 0x80800042, 0x29a04529, 0x00b109a0, 0x00b10db0 },
+ { 0x80800042, 0x29c04529, 0x00b109c0, 0x00b10dc0 },
+ { 0x80800042, 0x29e04529, 0x00b109e0, 0x00b10dd0 },
+ { 0x80800042, 0x2a004529, 0x00b10a00, 0x00b10de0 },
+ { 0x80800042, 0x2a204529, 0x00b10a20, 0x00b10df0 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/vld/frame_f_b.g4b.gen5 b/src/xvmc/shader/vld/frame_f_b.g4b.gen5
new file mode 100644
index 0000000..1078caa
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_f_b.g4b.gen5
@@ -0,0 +1,675 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a50, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000be },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000090 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a004 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x00802001, 0x2d800021, 0x00b10740, 0x00000000 },
+ { 0x00802001, 0x2dc00021, 0x00b10780, 0x00000000 },
+ { 0x00802001, 0x2e000021, 0x00b107c0, 0x00000000 },
+ { 0x00802001, 0x2e400021, 0x00b10800, 0x00000000 },
+ { 0x00802001, 0x2e800021, 0x00b10840, 0x00000000 },
+ { 0x00802001, 0x2ec00021, 0x00b10880, 0x00000000 },
+ { 0x00802001, 0x2f000021, 0x00b108c0, 0x00000000 },
+ { 0x00802001, 0x2f400021, 0x00b10900, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000be },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000090 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a007 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a007 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a007 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x80800042, 0x27402529, 0x00b10740, 0x00b10d80 },
+ { 0x80800042, 0x27602529, 0x00b10760, 0x00b10da0 },
+ { 0x80800042, 0x27802529, 0x00b10780, 0x00b10dc0 },
+ { 0x80800042, 0x27a02529, 0x00b107a0, 0x00b10de0 },
+ { 0x80800042, 0x27c02529, 0x00b107c0, 0x00b10e00 },
+ { 0x80800042, 0x27e02529, 0x00b107e0, 0x00b10e20 },
+ { 0x80800042, 0x28002529, 0x00b10800, 0x00b10e40 },
+ { 0x80800042, 0x28202529, 0x00b10820, 0x00b10e60 },
+ { 0x80800042, 0x28402529, 0x00b10840, 0x00b10e80 },
+ { 0x80800042, 0x28602529, 0x00b10860, 0x00b10ea0 },
+ { 0x80800042, 0x28802529, 0x00b10880, 0x00b10ec0 },
+ { 0x80800042, 0x28a02529, 0x00b108a0, 0x00b10ee0 },
+ { 0x80800042, 0x28c02529, 0x00b108c0, 0x00b10f00 },
+ { 0x80800042, 0x28e02529, 0x00b108e0, 0x00b10f20 },
+ { 0x80800042, 0x29002529, 0x00b10900, 0x00b10f40 },
+ { 0x80800042, 0x29202529, 0x00b10920, 0x00b10f60 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a005 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a005 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a006 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0248a006 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a005 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a005 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a006 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x408d0400, 0x0248a005 },
+ { 0x00800031, 0x25001d29, 0x408d0400, 0x0248a006 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x00800001, 0x2d800231, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x2d900231, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x2da00231, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x2db00231, 0x00b209a0, 0x00000000 },
+ { 0x00800001, 0x2dc00231, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x2dd00231, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x2de00231, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x2df00231, 0x00b20a20, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a54, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a54, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a008 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a008 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a009 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0248a008 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0248a009 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x01000005, 0x20000d3c, 0x00210a56, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a008 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a009 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a008 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a009 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x408d0400, 0x0248a008 },
+ { 0x00800031, 0x25001d29, 0x408d0400, 0x0248a009 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x80800042, 0x29404529, 0x00b10940, 0x00b10d80 },
+ { 0x80800042, 0x29604529, 0x00b10960, 0x00b10d90 },
+ { 0x80800042, 0x29804529, 0x00b10980, 0x00b10da0 },
+ { 0x80800042, 0x29a04529, 0x00b109a0, 0x00b10db0 },
+ { 0x80800042, 0x29c04529, 0x00b109c0, 0x00b10dc0 },
+ { 0x80800042, 0x29e04529, 0x00b109e0, 0x00b10dd0 },
+ { 0x80800042, 0x2a004529, 0x00b10a00, 0x00b10de0 },
+ { 0x80800042, 0x2a204529, 0x00b10a20, 0x00b10df0 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/vld/frame_forward.g4a b/src/xvmc/shader/vld/frame_forward.g4a
new file mode 100644
index 0000000..22f4804
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_forward.g4a
@@ -0,0 +1,61 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+mov (1) g126.8<1>UD ip {align1};
+mov (1) ip g21.0<1,1,1>UD {align1};
+
+//Y, (x', y') = (x, y) + (motion_vector.x >> 1, motion_vector.y >> 1)
+asr (2) g31.14<1>W g82.16<2,2,1>W 1W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+define(`input_surface', `4')
+define(`mv1', `g82.16')
+define(`mv2', `g82.18')
+include(`motion_frame_y.g4i')
+
+//UV, (x', y') = (x >> 1, y >> 1) + (motion_vector.x >> 2, motion_vector.y >> 2)
+shr (2) g31.0<1>UD g31.0<2,2,1>UD 1UD {align1};
+asr (2) g31.14<1>W g82.16<2,2,1>W 2W {align1};
+add (2) g32.0<1>UD g31.0<2,2,1>UD g31.14<2,2,1>W {align1};
+define(`input_surface1', `5')
+define(`input_surface2', `6')
+include(`motion_frame_uv.g4i')
+
+include(`addidct.g4i')
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
diff --git a/src/xvmc/shader/vld/frame_forward.g4b b/src/xvmc/shader/vld/frame_forward.g4b
new file mode 100644
index 0000000..4bf6c93
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_forward.g4b
@@ -0,0 +1,369 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a50, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000005f },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000048 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a004 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000043 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002e },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x008d0400, 0x0411a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x008d0400, 0x0418a004 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a50, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000004e },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000040 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a005 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a005 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a006 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000031 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0414a005 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0414a006 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000025 },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000018 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x008d0400, 0x0418a005 },
+ { 0x00800031, 0x25801d29, 0x008d0400, 0x0418a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x008d0400, 0x0411a005 },
+ { 0x00800031, 0x26801d29, 0x008d0400, 0x0411a006 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000b },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x008d0400, 0x0414a005 },
+ { 0x00800031, 0x25001d29, 0x008d0400, 0x0414a006 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
diff --git a/src/xvmc/shader/vld/frame_forward.g4b.gen5 b/src/xvmc/shader/vld/frame_forward.g4b.gen5
new file mode 100644
index 0000000..9d89488
--- /dev/null
+++ b/src/xvmc/shader/vld/frame_forward.g4b.gen5
@@ -0,0 +1,369 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000001, 0x2fc80001, 0x00001400, 0x00000000 },
+ { 0x00000001, 0x34000020, 0x002102a0, 0x00000000 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00010001 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a50, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x000000be },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000090 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a004 },
+ { 0x00800040, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x00800040, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x00800040, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x00800040, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x00800040, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x00800040, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x00800040, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x00800040, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x00800040, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x00800040, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x00800040, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x00800040, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x00800040, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x00800040, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x00800040, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x00800040, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e0 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10500 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10520 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10540 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10560 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10580 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a0 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c0 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e0 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10600 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10620 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10640 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10660 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10680 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a0 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c0 },
+ { 0x00800040, 0x27404529, 0x00b10740, 0x00b104e1 },
+ { 0x00800040, 0x27604529, 0x00b10760, 0x00b10501 },
+ { 0x00800040, 0x27804529, 0x00b10780, 0x00b10521 },
+ { 0x00800040, 0x27a04529, 0x00b107a0, 0x00b10541 },
+ { 0x00800040, 0x27c04529, 0x00b107c0, 0x00b10561 },
+ { 0x00800040, 0x27e04529, 0x00b107e0, 0x00b10581 },
+ { 0x00800040, 0x28004529, 0x00b10800, 0x00b105a1 },
+ { 0x00800040, 0x28204529, 0x00b10820, 0x00b105c1 },
+ { 0x00800040, 0x28404529, 0x00b10840, 0x00b105e1 },
+ { 0x00800040, 0x28604529, 0x00b10860, 0x00b10601 },
+ { 0x00800040, 0x28804529, 0x00b10880, 0x00b10621 },
+ { 0x00800040, 0x28a04529, 0x00b108a0, 0x00b10641 },
+ { 0x00800040, 0x28c04529, 0x00b108c0, 0x00b10661 },
+ { 0x00800040, 0x28e04529, 0x00b108e0, 0x00b10681 },
+ { 0x00800040, 0x29004529, 0x00b10900, 0x00b106a1 },
+ { 0x00800040, 0x29204529, 0x00b10920, 0x00b106c1 },
+ { 0x80800008, 0x27402d29, 0x00b10740, 0x00020002 },
+ { 0x80800008, 0x27602d29, 0x00b10760, 0x00020002 },
+ { 0x80800008, 0x27802d29, 0x00b10780, 0x00020002 },
+ { 0x80800008, 0x27a02d29, 0x00b107a0, 0x00020002 },
+ { 0x80800008, 0x27c02d29, 0x00b107c0, 0x00020002 },
+ { 0x80800008, 0x27e02d29, 0x00b107e0, 0x00020002 },
+ { 0x80800008, 0x28002d29, 0x00b10800, 0x00020002 },
+ { 0x80800008, 0x28202d29, 0x00b10820, 0x00020002 },
+ { 0x80800008, 0x28402d29, 0x00b10840, 0x00020002 },
+ { 0x80800008, 0x28602d29, 0x00b10860, 0x00020002 },
+ { 0x80800008, 0x28802d29, 0x00b10880, 0x00020002 },
+ { 0x80800008, 0x28a02d29, 0x00b108a0, 0x00020002 },
+ { 0x80800008, 0x28c02d29, 0x00b108c0, 0x00020002 },
+ { 0x80800008, 0x28e02d29, 0x00b108e0, 0x00020002 },
+ { 0x80800008, 0x29002d29, 0x00b10900, 0x00020002 },
+ { 0x80800008, 0x29202d29, 0x00b10920, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000086 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104c1 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b104e1 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10501 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10521 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10541 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10561 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b10581 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105a1 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105c1 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b105e1 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10601 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10621 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10641 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10661 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b10681 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106a1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000005c },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000001 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x26c01d29, 0x408d0400, 0x0218a004 },
+ { 0x80800042, 0x27404629, 0x00b104c0, 0x00b104e0 },
+ { 0x80800042, 0x27604629, 0x00b104e0, 0x00b10500 },
+ { 0x80800042, 0x27804629, 0x00b10500, 0x00b10520 },
+ { 0x80800042, 0x27a04629, 0x00b10520, 0x00b10540 },
+ { 0x80800042, 0x27c04629, 0x00b10540, 0x00b10560 },
+ { 0x80800042, 0x27e04629, 0x00b10560, 0x00b10580 },
+ { 0x80800042, 0x28004629, 0x00b10580, 0x00b105a0 },
+ { 0x80800042, 0x28204629, 0x00b105a0, 0x00b105c0 },
+ { 0x80800042, 0x28404629, 0x00b105c0, 0x00b105e0 },
+ { 0x80800042, 0x28604629, 0x00b105e0, 0x00b10600 },
+ { 0x80800042, 0x28804629, 0x00b10600, 0x00b10620 },
+ { 0x80800042, 0x28a04629, 0x00b10620, 0x00b10640 },
+ { 0x80800042, 0x28c04629, 0x00b10640, 0x00b10660 },
+ { 0x80800042, 0x28e04629, 0x00b10660, 0x00b10680 },
+ { 0x80800042, 0x29004629, 0x00b10680, 0x00b106a0 },
+ { 0x80800042, 0x29204629, 0x00b106a0, 0x00b106c0 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000028 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00800031, 0x25c01d29, 0x408d0400, 0x0288a004 },
+ { 0x00800001, 0x27400229, 0x00b104c0, 0x00000000 },
+ { 0x00800001, 0x27600229, 0x00b104e0, 0x00000000 },
+ { 0x00800001, 0x27800229, 0x00b10500, 0x00000000 },
+ { 0x00800001, 0x27a00229, 0x00b10520, 0x00000000 },
+ { 0x00800001, 0x27c00229, 0x00b10540, 0x00000000 },
+ { 0x00800001, 0x27e00229, 0x00b10560, 0x00000000 },
+ { 0x00800001, 0x28000229, 0x00b10580, 0x00000000 },
+ { 0x00800001, 0x28200229, 0x00b105a0, 0x00000000 },
+ { 0x00800001, 0x28400229, 0x00b105c0, 0x00000000 },
+ { 0x00800001, 0x28600229, 0x00b105e0, 0x00000000 },
+ { 0x00800001, 0x28800229, 0x00b10600, 0x00000000 },
+ { 0x00800001, 0x28a00229, 0x00b10620, 0x00000000 },
+ { 0x00800001, 0x28c00229, 0x00b10640, 0x00000000 },
+ { 0x00800001, 0x28e00229, 0x00b10660, 0x00000000 },
+ { 0x00800001, 0x29000229, 0x00b10680, 0x00000000 },
+ { 0x00800001, 0x29200229, 0x00b106a0, 0x00000000 },
+ { 0x00200008, 0x23e00c21, 0x004503e0, 0x00000001 },
+ { 0x0020000c, 0x23ee3dad, 0x00450a50, 0x00020002 },
+ { 0x00200040, 0x24003421, 0x004503e0, 0x004503ee },
+ { 0x01000005, 0x20000d3c, 0x00210a50, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000009c },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000080 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a005 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a005 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a006 },
+ { 0x00600040, 0x29404629, 0x008d0440, 0x008d0441 },
+ { 0x00600040, 0x29504629, 0x008d0460, 0x008d0461 },
+ { 0x00600040, 0x29604629, 0x008d0480, 0x008d0481 },
+ { 0x00600040, 0x29704629, 0x008d04a0, 0x008d04a1 },
+ { 0x00600040, 0x29804629, 0x008d04c0, 0x008d04c1 },
+ { 0x00600040, 0x29904629, 0x008d04e0, 0x008d04e1 },
+ { 0x00600040, 0x29a04629, 0x008d0500, 0x008d0501 },
+ { 0x00600040, 0x29b04629, 0x008d0520, 0x008d0521 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0460 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0480 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a0 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c0 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e0 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0500 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0520 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0540 },
+ { 0x00600040, 0x29404529, 0x008d0940, 0x008d0461 },
+ { 0x00600040, 0x29504529, 0x008d0950, 0x008d0481 },
+ { 0x00600040, 0x29604529, 0x008d0960, 0x008d04a1 },
+ { 0x00600040, 0x29704529, 0x008d0970, 0x008d04c1 },
+ { 0x00600040, 0x29804529, 0x008d0980, 0x008d04e1 },
+ { 0x00600040, 0x29904529, 0x008d0990, 0x008d0501 },
+ { 0x00600040, 0x29a04529, 0x008d09a0, 0x008d0521 },
+ { 0x00600040, 0x29b04529, 0x008d09b0, 0x008d0541 },
+ { 0x00600040, 0x29c04629, 0x008d0580, 0x008d0581 },
+ { 0x00600040, 0x29d04629, 0x008d05a0, 0x008d05a1 },
+ { 0x00600040, 0x29e04629, 0x008d05c0, 0x008d05c1 },
+ { 0x00600040, 0x29f04629, 0x008d05e0, 0x008d05e1 },
+ { 0x00600040, 0x2a004629, 0x008d0600, 0x008d0601 },
+ { 0x00600040, 0x2a104629, 0x008d0620, 0x008d0621 },
+ { 0x00600040, 0x2a204629, 0x008d0640, 0x008d0641 },
+ { 0x00600040, 0x2a304629, 0x008d0660, 0x008d0661 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a0 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c0 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e0 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0600 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0620 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0640 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0660 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0680 },
+ { 0x00600040, 0x29c04529, 0x008d09c0, 0x008d05a1 },
+ { 0x00600040, 0x29d04529, 0x008d09d0, 0x008d05c1 },
+ { 0x00600040, 0x29e04529, 0x008d09e0, 0x008d05e1 },
+ { 0x00600040, 0x29f04529, 0x008d09f0, 0x008d0601 },
+ { 0x00600040, 0x2a004529, 0x008d0a00, 0x008d0621 },
+ { 0x00600040, 0x2a104529, 0x008d0a10, 0x008d0641 },
+ { 0x00600040, 0x2a204529, 0x008d0a20, 0x008d0661 },
+ { 0x00600040, 0x2a304529, 0x008d0a30, 0x008d0681 },
+ { 0x00800008, 0x29402d29, 0x00b10940, 0x00020002 },
+ { 0x00800008, 0x29602d29, 0x00b10960, 0x00020002 },
+ { 0x00800008, 0x29802d29, 0x00b10980, 0x00020002 },
+ { 0x00800008, 0x29a02d29, 0x00b109a0, 0x00020002 },
+ { 0x00800008, 0x29c02d29, 0x00b109c0, 0x00020002 },
+ { 0x00800008, 0x29e02d29, 0x00b109e0, 0x00020002 },
+ { 0x00800008, 0x2a002d29, 0x00b10a00, 0x00020002 },
+ { 0x00800008, 0x2a202d29, 0x00b10a20, 0x00020002 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000062 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0248a005 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0248a006 },
+ { 0x00800042, 0x29404629, 0x00ad0440, 0x00ad0441 },
+ { 0x00800042, 0x29604629, 0x00ad0460, 0x00ad0461 },
+ { 0x00800042, 0x29804629, 0x00ad0480, 0x00ad0481 },
+ { 0x00800042, 0x29a04629, 0x00ad04a0, 0x00ad04a1 },
+ { 0x00800042, 0x29c04629, 0x00ad0580, 0x00ad0581 },
+ { 0x00800042, 0x29e04629, 0x00ad05a0, 0x00ad05a1 },
+ { 0x00800042, 0x2a004629, 0x00ad05c0, 0x00ad05c1 },
+ { 0x00800042, 0x2a204629, 0x00ad05e0, 0x00ad05e1 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004a },
+ { 0x01000005, 0x20000d3c, 0x00210a52, 0x00000002 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000030 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007001f },
+ { 0x00800031, 0x24401d29, 0x408d0400, 0x0288a005 },
+ { 0x00800031, 0x25801d29, 0x408d0400, 0x0288a006 },
+ { 0x00000040, 0x24040c21, 0x00210404, 0x00000008 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0000001f },
+ { 0x00800031, 0x25401d29, 0x408d0400, 0x0218a005 },
+ { 0x00800031, 0x26801d29, 0x408d0400, 0x0218a006 },
+ { 0x00600042, 0x29404629, 0x008d0440, 0x008d0460 },
+ { 0x00600042, 0x29504629, 0x008d0460, 0x008d0480 },
+ { 0x00600042, 0x29604629, 0x008d0480, 0x008d04a0 },
+ { 0x00600042, 0x29704629, 0x008d04a0, 0x008d04c0 },
+ { 0x00600042, 0x29804629, 0x008d04c0, 0x008d04e0 },
+ { 0x00600042, 0x29904629, 0x008d04e0, 0x008d0500 },
+ { 0x00600042, 0x29a04629, 0x008d0500, 0x008d0520 },
+ { 0x00600042, 0x29b04629, 0x008d0520, 0x008d0540 },
+ { 0x00600042, 0x29c04629, 0x008d0580, 0x008d05a0 },
+ { 0x00600042, 0x29d04629, 0x008d05a0, 0x008d05c0 },
+ { 0x00600042, 0x29e04629, 0x008d05c0, 0x008d05e0 },
+ { 0x00600042, 0x29f04629, 0x008d05e0, 0x008d0600 },
+ { 0x00600042, 0x2a004629, 0x008d0600, 0x008d0620 },
+ { 0x00600042, 0x2a104629, 0x008d0620, 0x008d0640 },
+ { 0x00600042, 0x2a204629, 0x008d0640, 0x008d0660 },
+ { 0x00600042, 0x2a304629, 0x008d0660, 0x008d0680 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00000001, 0x24080061, 0x00000000, 0x0007000f },
+ { 0x00800031, 0x24801d29, 0x408d0400, 0x0248a005 },
+ { 0x00800031, 0x25001d29, 0x408d0400, 0x0248a006 },
+ { 0x00800001, 0x29400229, 0x00ad0480, 0x00000000 },
+ { 0x00800001, 0x29600229, 0x00ad04a0, 0x00000000 },
+ { 0x00800001, 0x29800229, 0x00ad04c0, 0x00000000 },
+ { 0x00800001, 0x29a00229, 0x00ad04e0, 0x00000000 },
+ { 0x00800001, 0x29c00229, 0x00ad0500, 0x00000000 },
+ { 0x00800001, 0x29e00229, 0x00ad0520, 0x00000000 },
+ { 0x00800001, 0x2a000229, 0x00ad0540, 0x00000000 },
+ { 0x00800001, 0x2a200229, 0x00ad0560, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10a80, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10aa0, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10ac0, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10ae0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10b00, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10b20, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10b40, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10b60, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10b80, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10ba0, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10bc0, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10be0, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c00, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10c20, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800040, 0x274045ad, 0x00b10a60, 0x00b20740 },
+ { 0x00800040, 0x276045ad, 0x00b10b60, 0x00b20760 },
+ { 0x00800040, 0x278045ad, 0x00b10a80, 0x00b20780 },
+ { 0x00800040, 0x27a045ad, 0x00b10b80, 0x00b207a0 },
+ { 0x00800040, 0x27c045ad, 0x00b10aa0, 0x00b207c0 },
+ { 0x00800040, 0x27e045ad, 0x00b10ba0, 0x00b207e0 },
+ { 0x00800040, 0x280045ad, 0x00b10ac0, 0x00b20800 },
+ { 0x00800040, 0x282045ad, 0x00b10bc0, 0x00b20820 },
+ { 0x00800040, 0x284045ad, 0x00b10ae0, 0x00b20840 },
+ { 0x00800040, 0x286045ad, 0x00b10be0, 0x00b20860 },
+ { 0x00800040, 0x288045ad, 0x00b10b00, 0x00b20880 },
+ { 0x00800040, 0x28a045ad, 0x00b10c00, 0x00b208a0 },
+ { 0x00800040, 0x28c045ad, 0x00b10b20, 0x00b208c0 },
+ { 0x00800040, 0x28e045ad, 0x00b10c20, 0x00b208e0 },
+ { 0x00800040, 0x290045ad, 0x00b10b40, 0x00b20900 },
+ { 0x00800040, 0x292045ad, 0x00b10c40, 0x00b20920 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x474001b1, 0x00b10740, 0x00000000 },
+ { 0x80800001, 0x476001b1, 0x00b10760, 0x00000000 },
+ { 0x80800001, 0x478001b1, 0x00b10780, 0x00000000 },
+ { 0x80800001, 0x47a001b1, 0x00b107a0, 0x00000000 },
+ { 0x80800001, 0x47c001b1, 0x00b107c0, 0x00000000 },
+ { 0x80800001, 0x47e001b1, 0x00b107e0, 0x00000000 },
+ { 0x80800001, 0x480001b1, 0x00b10800, 0x00000000 },
+ { 0x80800001, 0x482001b1, 0x00b10820, 0x00000000 },
+ { 0x80800001, 0x484001b1, 0x00b10840, 0x00000000 },
+ { 0x80800001, 0x486001b1, 0x00b10860, 0x00000000 },
+ { 0x80800001, 0x488001b1, 0x00b10880, 0x00000000 },
+ { 0x80800001, 0x48a001b1, 0x00b108a0, 0x00000000 },
+ { 0x80800001, 0x48c001b1, 0x00b108c0, 0x00000000 },
+ { 0x80800001, 0x48e001b1, 0x00b108e0, 0x00000000 },
+ { 0x80800001, 0x490001b1, 0x00b10900, 0x00000000 },
+ { 0x80800001, 0x492001b1, 0x00b10920, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20740, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20760, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20780, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b207a0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b207c0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b207e0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20800, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20820, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20840, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20860, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20880, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b208a0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b208c0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b208e0, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20900, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20920, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01c21, 0x004503e0, 0x00000001 },
+ { 0x00800040, 0x294025ad, 0x00b10c60, 0x00b10940 },
+ { 0x00800040, 0x296025ad, 0x00b10c80, 0x00b10960 },
+ { 0x00800040, 0x298025ad, 0x00b10ca0, 0x00b10980 },
+ { 0x00800040, 0x29a025ad, 0x00b10cc0, 0x00b109a0 },
+ { 0x80800001, 0x494001b1, 0x00b10940, 0x00000000 },
+ { 0x80800001, 0x496001b1, 0x00b10960, 0x00000000 },
+ { 0x80800001, 0x498001b1, 0x00b10980, 0x00000000 },
+ { 0x80800001, 0x49a001b1, 0x00b109a0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20940, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20960, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20980, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b209a0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x00800040, 0x29c025a9, 0x00b10ce0, 0x00b109c0 },
+ { 0x00800040, 0x29e025a9, 0x00b10d00, 0x00b109e0 },
+ { 0x00800040, 0x2a0025a9, 0x00b10d20, 0x00b10a00 },
+ { 0x00800040, 0x2a2025a9, 0x00b10d40, 0x00b10a20 },
+ { 0x80800001, 0x49c001b1, 0x00b109c0, 0x00000000 },
+ { 0x80800001, 0x49e001b1, 0x00b109e0, 0x00000000 },
+ { 0x80800001, 0x4a0001b1, 0x00b10a00, 0x00000000 },
+ { 0x80800001, 0x4a2001b1, 0x00b10a20, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b209c0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b209e0, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a00, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20a20, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
diff --git a/src/xvmc/shader/vld/idct.g4i b/src/xvmc/shader/vld/idct.g4i
new file mode 100644
index 0000000..c1747d1
--- /dev/null
+++ b/src/xvmc/shader/vld/idct.g4i
@@ -0,0 +1,147 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix in UB format
+ g3~g4:non intra IQ matrix in UB format
+ g5~g20:IDCT table
+ g56~g79:DCT data after IQ before idct
+ g83~g106: IDCT data after idct
+ g82: thread payload backup
+ g125: ip before idct
+*/
+IDCT_START:
+mov (1) g126.0<1>UD ip {align1};
+jmpi DO_IDCT;
+add (16) g32<1>D g32<8,8,1>D ROW_ADD {compr};
+add (16) g34<1>D g34<8,8,1>D ROW_ADD {compr};
+add (16) g36<1>D g36<8,8,1>D ROW_ADD {compr};
+add (16) g38<1>D g38<8,8,1>D ROW_ADD {compr};
+
+shr (16) g32<1>D g32<8,8,1>D ROW_SHIFT {compr};
+shr (16) g34<1>D g34<8,8,1>D ROW_SHIFT {compr};
+shr (16) g36<1>D g36<8,8,1>D ROW_SHIFT {compr};
+shr (16) g38<1>D g38<8,8,1>D ROW_SHIFT {compr};
+
+mov (16) g110.0<1>W g32<16,8,2>W {align1};
+mov (16) g111.0<1>W g34<16,8,2>W {align1};
+mov (16) g112.0<1>W g36<16,8,2>W {align1};
+mov (16) g113.0<1>W g38<16,8,2>W {align1};
+
+mov (1) g80.0<1>UD a0.0<1,1,1>UD {align1}; //save a0
+mov (1) a0.0<1>UD 0x0DB00DA0UD {align1}; //begin at g110.0, the output of idct_row.g4i
+mov (1) g126.0<1>UD ip {align1};
+jmpi DO_IDCT;
+
+add (16) g32<1>D g32<8,8,1>D COL_ADD {compr};
+add (16) g34<1>D g34<8,8,1>D COL_ADD {compr};
+add (16) g36<1>D g36<8,8,1>D COL_ADD {compr};
+add (16) g38<1>D g38<8,8,1>D COL_ADD {compr};
+
+shr (16) g32<1>D g32<8,8,1>D COL_SHIFT {compr};
+shr (16) g34<1>D g34<8,8,1>D COL_SHIFT {compr};
+shr (16) g36<1>D g36<8,8,1>D COL_SHIFT {compr};
+shr (16) g38<1>D g38<8,8,1>D COL_SHIFT {compr};
+
+mov (1) a0.0<1>UD g80.0<1,1,1>UD {align1}; //restore a0
+add (1) ip g125.0<1,1,1>UD 0x20UD {align1}; //jump back
+
+DO_IDCT:
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1}; //increase the address
+dp4 (16) g40<1>D g[a0.0]<8,8,1>W g5<8,8,1>D {align1 compr};
+dp4 (16) g42<1>D g[a0.0]<8,8,1>W g7<8,8,1>D {align1 compr};
+dp4 (16) g44<1>D g[a0.0]<8,8,1>W g9<8,8,1>D {align1 compr};
+dp4 (16) g46<1>D g[a0.0]<8,8,1>W g11<8,8,1>D {align1 compr};
+dp4 (16) g48<1>D g[a0.0]<8,8,1>W g13<8,8,1>D {align1 compr};
+dp4 (16) g50<1>D g[a0.0]<8,8,1>W g15<8,8,1>D {align1 compr};
+dp4 (16) g52<1>D g[a0.0]<8,8,1>W g17<8,8,1>D {align1 compr};
+dp4 (16) g54<1>D g[a0.0]<8,8,1>W g19<8,8,1>D {align1 compr};
+add (2) g32.0<1>D g40.0<8,1,8>D g40.16<8,1,8>D {align1};
+add (2) g33.0<1>D g42.0<8,1,8>D g42.16<8,1,8>D {align1};
+add (2) g34.0<1>D g44.0<8,1,8>D g44.16<8,1,8>D {align1};
+add (2) g35.0<1>D g46.0<8,1,8>D g46.16<8,1,8>D {align1};
+add (2) g36.0<1>D g48.0<8,1,8>D g48.16<8,1,8>D {align1};
+add (2) g37.0<1>D g50.0<8,1,8>D g50.16<8,1,8>D {align1};
+add (2) g38.0<1>D g52.0<8,1,8>D g52.16<8,1,8>D {align1};
+add (2) g39.0<1>D g54.0<8,1,8>D g54.16<8,1,8>D {align1};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+dp4 (16) g40<1>D g[a0.0]<8,8,1>W g5<8,8,1>D {align1 compr};
+dp4 (16) g42<1>D g[a0.0]<8,8,1>W g7<8,8,1>D {align1 compr};
+dp4 (16) g44<1>D g[a0.0]<8,8,1>W g9<8,8,1>D {align1 compr};
+dp4 (16) g46<1>D g[a0.0]<8,8,1>W g11<8,8,1>D {align1 compr};
+dp4 (16) g48<1>D g[a0.0]<8,8,1>W g13<8,8,1>D {align1 compr};
+dp4 (16) g50<1>D g[a0.0]<8,8,1>W g15<8,8,1>D {align1 compr};
+dp4 (16) g52<1>D g[a0.0]<8,8,1>W g17<8,8,1>D {align1 compr};
+dp4 (16) g54<1>D g[a0.0]<8,8,1>W g19<8,8,1>D {align1 compr};
+add (2) g32.8<1>D g40.0<8,1,8>D g40.16<8,1,8>D {align1};
+add (2) g33.8<1>D g42.0<8,1,8>D g42.16<8,1,8>D {align1};
+add (2) g34.8<1>D g44.0<8,1,8>D g44.16<8,1,8>D {align1};
+add (2) g35.8<1>D g46.0<8,1,8>D g46.16<8,1,8>D {align1};
+add (2) g36.8<1>D g48.0<8,1,8>D g48.16<8,1,8>D {align1};
+add (2) g37.8<1>D g50.0<8,1,8>D g50.16<8,1,8>D {align1};
+add (2) g38.8<1>D g52.0<8,1,8>D g52.16<8,1,8>D {align1};
+add (2) g39.8<1>D g54.0<8,1,8>D g54.16<8,1,8>D {align1};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+dp4 (16) g40<1>D g[a0.0]<8,8,1>W g5<8,8,1>D {align1 compr};
+dp4 (16) g42<1>D g[a0.0]<8,8,1>W g7<8,8,1>D {align1 compr};
+dp4 (16) g44<1>D g[a0.0]<8,8,1>W g9<8,8,1>D {align1 compr};
+dp4 (16) g46<1>D g[a0.0]<8,8,1>W g11<8,8,1>D {align1 compr};
+dp4 (16) g48<1>D g[a0.0]<8,8,1>W g13<8,8,1>D {align1 compr};
+dp4 (16) g50<1>D g[a0.0]<8,8,1>W g15<8,8,1>D {align1 compr};
+dp4 (16) g52<1>D g[a0.0]<8,8,1>W g17<8,8,1>D {align1 compr};
+dp4 (16) g54<1>D g[a0.0]<8,8,1>W g19<8,8,1>D {align1 compr};
+add (2) g32.16<1>D g40.0<8,1,8>D g40.16<8,1,8>D {align1};
+add (2) g33.16<1>D g42.0<8,1,8>D g42.16<8,1,8>D {align1};
+add (2) g34.16<1>D g44.0<8,1,8>D g44.16<8,1,8>D {align1};
+add (2) g35.16<1>D g46.0<8,1,8>D g46.16<8,1,8>D {align1};
+add (2) g36.16<1>D g48.0<8,1,8>D g48.16<8,1,8>D {align1};
+add (2) g37.16<1>D g50.0<8,1,8>D g50.16<8,1,8>D {align1};
+add (2) g38.16<1>D g52.0<8,1,8>D g52.16<8,1,8>D {align1};
+add (2) g39.16<1>D g54.0<8,1,8>D g54.16<8,1,8>D {align1};
+
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00200020UD {align1};
+dp4 (16) g40<1>D g[a0.0]<8,8,1>W g5<8,8,1>D {align1 compr};
+dp4 (16) g42<1>D g[a0.0]<8,8,1>W g7<8,8,1>D {align1 compr};
+dp4 (16) g44<1>D g[a0.0]<8,8,1>W g9<8,8,1>D {align1 compr};
+dp4 (16) g46<1>D g[a0.0]<8,8,1>W g11<8,8,1>D {align1 compr};
+dp4 (16) g48<1>D g[a0.0]<8,8,1>W g13<8,8,1>D {align1 compr};
+dp4 (16) g50<1>D g[a0.0]<8,8,1>W g15<8,8,1>D {align1 compr};
+dp4 (16) g52<1>D g[a0.0]<8,8,1>W g17<8,8,1>D {align1 compr};
+dp4 (16) g54<1>D g[a0.0]<8,8,1>W g19<8,8,1>D {align1 compr};
+add (2) g32.24<1>D g40.0<8,1,8>D g40.16<8,1,8>D {align1};
+add (2) g33.24<1>D g42.0<8,1,8>D g42.16<8,1,8>D {align1};
+add (2) g34.24<1>D g44.0<8,1,8>D g44.16<8,1,8>D {align1};
+add (2) g35.24<1>D g46.0<8,1,8>D g46.16<8,1,8>D {align1};
+add (2) g36.24<1>D g48.0<8,1,8>D g48.16<8,1,8>D {align1};
+add (2) g37.24<1>D g50.0<8,1,8>D g50.16<8,1,8>D {align1};
+add (2) g38.24<1>D g52.0<8,1,8>D g52.16<8,1,8>D {align1};
+add (2) g39.24<1>D g54.0<8,1,8>D g54.16<8,1,8>D {align1};
+
+add (1) ip g126.0<1,1,1>UD 0x20UD {align1}; //jump back
diff --git a/src/xvmc/shader/vld/ipicture.g4a b/src/xvmc/shader/vld/ipicture.g4a
new file mode 100644
index 0000000..688cf94
--- /dev/null
+++ b/src/xvmc/shader/vld/ipicture.g4a
@@ -0,0 +1,209 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/*
+ GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT tab
+ g31: read and write message descriptor
+ g32~g55:DCT data
+ g58~g81:reference data
+ g82: thread payload
+ g83~g106:IDCT data
+*/
+mov (8) g82.0<1>UD g31.0<8,8,1>UD {align1};
+mov (2) g31.0<1>UD g82.12<2,2,1>UW {align1};
+
+include(`iq_intra.g4i')
+
+//defined for idct
+define(`ROW_SHIFT', `11UD')
+define(`ROW_ADD', `0x400UD')
+define(`COL_SHIFT', `20UD')
+define(`COL_ADD', `0x80000UD')
+
+mov (1) a0.0<1>UD 0x06F006E0UD {align1}; //0x06F006E0UD+0x00200020UD=0x07100700UD (g56.0 and g56.16)
+
+//Y0
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+add (8) g83.0<1>W g32.0<16,8,2>W 128UW {align1};
+add (8) g84.0<1>W g33.0<16,8,2>W 128UW {align1};
+add (8) g85.0<1>W g34.0<16,8,2>W 128UW {align1};
+add (8) g86.0<1>W g35.0<16,8,2>W 128UW {align1};
+add (8) g87.0<1>W g36.0<16,8,2>W 128UW {align1};
+add (8) g88.0<1>W g37.0<16,8,2>W 128UW {align1};
+add (8) g89.0<1>W g38.0<16,8,2>W 128UW {align1};
+add (8) g90.0<1>W g39.0<16,8,2>W 128UW {align1};
+
+//Y1
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+add (8) g83.16<1>W g32.0<16,8,2>W 128UW {align1};
+add (8) g84.16<1>W g33.0<16,8,2>W 128UW {align1};
+add (8) g85.16<1>W g34.0<16,8,2>W 128UW {align1};
+add (8) g86.16<1>W g35.0<16,8,2>W 128UW {align1};
+add (8) g87.16<1>W g36.0<16,8,2>W 128UW {align1};
+add (8) g88.16<1>W g37.0<16,8,2>W 128UW {align1};
+add (8) g89.16<1>W g38.0<16,8,2>W 128UW {align1};
+add (8) g90.16<1>W g39.0<16,8,2>W 128UW {align1};
+
+//Y2
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+add (8) g91.0<1>W g32.0<16,8,2>W 128UW {align1};
+add (8) g92.0<1>W g33.0<16,8,2>W 128UW {align1};
+add (8) g93.0<1>W g34.0<16,8,2>W 128UW {align1};
+add (8) g94.0<1>W g35.0<16,8,2>W 128UW {align1};
+add (8) g95.0<1>W g36.0<16,8,2>W 128UW {align1};
+add (8) g96.0<1>W g37.0<16,8,2>W 128UW {align1};
+add (8) g97.0<1>W g38.0<16,8,2>W 128UW {align1};
+add (8) g98.0<1>W g39.0<16,8,2>W 128UW {align1};
+
+//Y3
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+add (8) g91.16<1>W g32.0<16,8,2>W 128UW {align1};
+add (8) g92.16<1>W g33.0<16,8,2>W 128UW {align1};
+add (8) g93.16<1>W g34.0<16,8,2>W 128UW {align1};
+add (8) g94.16<1>W g35.0<16,8,2>W 128UW {align1};
+add (8) g95.16<1>W g36.0<16,8,2>W 128UW {align1};
+add (8) g96.16<1>W g37.0<16,8,2>W 128UW {align1};
+add (8) g97.16<1>W g38.0<16,8,2>W 128UW {align1};
+add (8) g98.16<1>W g39.0<16,8,2>W 128UW {align1};
+
+//U
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+add (16) g99.0<1>W g32.0<16,8,2>W 128UW {align1};
+add (16) g100.0<1>W g34.0<16,8,2>W 128UW {align1};
+add (16) g101.0<1>W g36.0<16,8,2>W 128UW {align1};
+add (16) g102.0<1>W g38.0<16,8,2>W 128UW {align1};
+
+//V
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+add (16) g103.0<1>W g32.0<16,8,2>W 128UW {align1};
+add (16) g104.0<1>W g34.0<16,8,2>W 128UW {align1};
+add (16) g105.0<1>W g36.0<16,8,2>W 128UW {align1};
+add (16) g106.0<1>W g38.0<16,8,2>W 128UW {align1};
+
+/******************* MC ************************/
+mov (1) g31.8<1>UD 0x00F000FUD {align1};
+mov.sat (16) g83.0<2>UB g83.0<16,16,1>W {align1};
+mov.sat (16) g84.0<2>UB g84.0<16,16,1>W {align1};
+mov.sat (16) g85.0<2>UB g85.0<16,16,1>W {align1};
+mov.sat (16) g86.0<2>UB g86.0<16,16,1>W {align1};
+mov.sat (16) g87.0<2>UB g87.0<16,16,1>W {align1};
+mov.sat (16) g88.0<2>UB g88.0<16,16,1>W {align1};
+mov.sat (16) g89.0<2>UB g89.0<16,16,1>W {align1};
+mov.sat (16) g90.0<2>UB g90.0<16,16,1>W {align1};
+mov.sat (16) g91.0<2>UB g91.0<16,16,1>W {align1};
+mov.sat (16) g92.0<2>UB g92.0<16,16,1>W {align1};
+mov.sat (16) g93.0<2>UB g93.0<16,16,1>W {align1};
+mov.sat (16) g94.0<2>UB g94.0<16,16,1>W {align1};
+mov.sat (16) g95.0<2>UB g95.0<16,16,1>W {align1};
+mov.sat (16) g96.0<2>UB g96.0<16,16,1>W {align1};
+mov.sat (16) g97.0<2>UB g97.0<16,16,1>W {align1};
+mov.sat (16) g98.0<2>UB g98.0<16,16,1>W {align1};
+
+and.nz (1) null g82.2<1,1,1>UW 0x20UW{align1};
+(f0) jmpi field_dct;
+
+mov (16) m1.0<1>UB g83.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g84.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g85.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g86.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g87.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g88.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g89.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g90.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g91.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g92.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g93.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g94.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g95.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g96.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g97.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g98.0<16,16,2>UB {align1};
+jmpi write_back;
+
+field_dct:
+mov (16) m1.0<1>UB g83.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g91.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g84.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g92.0<16,16,2>UB {align1};
+mov (16) m3.0<1>UB g85.0<16,16,2>UB {align1};
+mov (16) m3.16<1>UB g93.0<16,16,2>UB {align1};
+mov (16) m4.0<1>UB g86.0<16,16,2>UB {align1};
+mov (16) m4.16<1>UB g94.0<16,16,2>UB {align1};
+mov (16) m5.0<1>UB g87.0<16,16,2>UB {align1};
+mov (16) m5.16<1>UB g95.0<16,16,2>UB {align1};
+mov (16) m6.0<1>UB g88.0<16,16,2>UB {align1};
+mov (16) m6.16<1>UB g96.0<16,16,2>UB {align1};
+mov (16) m7.0<1>UB g89.0<16,16,2>UB {align1};
+mov (16) m7.16<1>UB g97.0<16,16,2>UB {align1};
+mov (16) m8.0<1>UB g90.0<16,16,2>UB {align1};
+mov (16) m8.16<1>UB g98.0<16,16,2>UB {align1};
+
+write_back:
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(0,0,2,0) mlen 9 rlen 0 {align1};
+
+//U
+mov (1) g31.8<1>UD 0x0070007UD { align1 };
+shr (2) g31.0<1>UD g82.12<2,2,1>UW 1D {align1};
+mov.sat (16) g99.0<2>UB g99.0<16,16,1>W {align1};
+mov.sat (16) g100.0<2>UB g100.0<16,16,1>W {align1};
+mov.sat (16) g101.0<2>UB g101.0<16,16,1>W {align1};
+mov.sat (16) g102.0<2>UB g102.0<16,16,1>W {align1};
+
+mov (16) m1.0<1>UB g99.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g100.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g101.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g102.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(1, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+//V
+mov.sat (16) g103.0<2>UB g103.0<16,16,1>W {align1};
+mov.sat (16) g104.0<2>UB g104.0<16,16,1>W {align1};
+mov.sat (16) g105.0<2>UB g105.0<16,16,1>W {align1};
+mov.sat (16) g106.0<2>UB g106.0<16,16,1>W {align1};
+
+mov (16) m1.0<1>UB g103.0<16,16,2>UB {align1};
+mov (16) m1.16<1>UB g104.0<16,16,2>UB {align1};
+mov (16) m2.0<1>UB g105.0<16,16,2>UB {align1};
+mov (16) m2.16<1>UB g106.0<16,16,2>UB {align1};
+send (16) 0 acc0<1>UW g31<8,8,1>UW write(2, 0, 2, 0) mlen 3 rlen 0 { align1 };
+
+OUT:
+send (16) 0 acc0<1>UW g0<8,8,1>UW
+ thread_spawner(0, 0, 0) mlen 1 rlen 0 { align1 EOT};
+
+include(`do_iq_intra.g4i')
+include(`idct.g4i')
diff --git a/src/xvmc/shader/vld/ipicture.g4b b/src/xvmc/shader/vld/ipicture.g4b
new file mode 100644
index 0000000..4c1c8c4
--- /dev/null
+++ b/src/xvmc/shader/vld/ipicture.g4b
@@ -0,0 +1,313 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000005, 0x2da02d29, 0x00210a48, 0x001f001f },
+ { 0x00000005, 0x2da42d29, 0x00210a48, 0x60006000 },
+ { 0x00000008, 0x2da42d29, 0x00210da4, 0x000d000d },
+ { 0x00000001, 0x2da60169, 0x00000000, 0x00080008 },
+ { 0x00000008, 0x2da42529, 0x00210da6, 0x00210da4 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00090009 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00110011 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00190019 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffe7ffe7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00030003 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x00400040 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000009 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xfff7fff7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00010001 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x000a000a },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000005 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffefffef },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00020002 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x001c001c },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000001 },
+ { 0x00000009, 0x2da00d29, 0x00210da0, 0x00000001 },
+ { 0x00000001, 0x2dc00129, 0x00210da0, 0x00000000 },
+ { 0x00800001, 0x2e000229, 0x00b10020, 0x00000000 },
+ { 0x00800001, 0x2e200229, 0x00b10030, 0x00000000 },
+ { 0x00800001, 0x2e400229, 0x00b10040, 0x00000000 },
+ { 0x00800001, 0x2e600229, 0x00b10050, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x03f003e0 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000a1 },
+ { 0x00800001, 0x270001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x272001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x274001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x276001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000009b },
+ { 0x00800001, 0x278001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x27a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x27c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x27e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000095 },
+ { 0x00800001, 0x280001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x282001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x284001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x286001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000008f },
+ { 0x00800001, 0x288001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x28a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x28c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x28e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000089 },
+ { 0x00800001, 0x290001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x292001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x294001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x296001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000083 },
+ { 0x00800001, 0x298001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x29a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x29c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x29e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x06f006e0 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000008f },
+ { 0x00600040, 0x2a602dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2a802dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2aa02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2ac02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2ae02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2b002dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2b202dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2b402dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000085 },
+ { 0x00600040, 0x2a702dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2a902dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2ab02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2ad02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2af02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2b102dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2b302dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2b502dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000007b },
+ { 0x00600040, 0x2b602dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2b802dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2ba02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2bc02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2be02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2c002dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2c202dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2c402dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000071 },
+ { 0x00600040, 0x2b702dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2b902dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2bb02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2bd02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2bf02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2c102dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2c302dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2c502dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000067 },
+ { 0x00800040, 0x2c602dad, 0x00ae0400, 0x00800080 },
+ { 0x00800040, 0x2c802dad, 0x00ae0440, 0x00800080 },
+ { 0x00800040, 0x2ca02dad, 0x00ae0480, 0x00800080 },
+ { 0x00800040, 0x2cc02dad, 0x00ae04c0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000061 },
+ { 0x00800040, 0x2ce02dad, 0x00ae0400, 0x00800080 },
+ { 0x00800040, 0x2d002dad, 0x00ae0440, 0x00800080 },
+ { 0x00800040, 0x2d202dad, 0x00ae0480, 0x00800080 },
+ { 0x00800040, 0x2d402dad, 0x00ae04c0, 0x00800080 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x4a6001b1, 0x00b10a60, 0x00000000 },
+ { 0x80800001, 0x4a8001b1, 0x00b10a80, 0x00000000 },
+ { 0x80800001, 0x4aa001b1, 0x00b10aa0, 0x00000000 },
+ { 0x80800001, 0x4ac001b1, 0x00b10ac0, 0x00000000 },
+ { 0x80800001, 0x4ae001b1, 0x00b10ae0, 0x00000000 },
+ { 0x80800001, 0x4b0001b1, 0x00b10b00, 0x00000000 },
+ { 0x80800001, 0x4b2001b1, 0x00b10b20, 0x00000000 },
+ { 0x80800001, 0x4b4001b1, 0x00b10b40, 0x00000000 },
+ { 0x80800001, 0x4b6001b1, 0x00b10b60, 0x00000000 },
+ { 0x80800001, 0x4b8001b1, 0x00b10b80, 0x00000000 },
+ { 0x80800001, 0x4ba001b1, 0x00b10ba0, 0x00000000 },
+ { 0x80800001, 0x4bc001b1, 0x00b10bc0, 0x00000000 },
+ { 0x80800001, 0x4be001b1, 0x00b10be0, 0x00000000 },
+ { 0x80800001, 0x4c0001b1, 0x00b10c00, 0x00000000 },
+ { 0x80800001, 0x4c2001b1, 0x00b10c20, 0x00000000 },
+ { 0x80800001, 0x4c4001b1, 0x00b10c40, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x00800001, 0x20200232, 0x00b20a60, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20a80, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20aa0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20ac0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20ae0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20b00, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20b20, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20b40, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20b60, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20b80, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20ba0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20bc0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20be0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20c00, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20c20, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20c40, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00800001, 0x20200232, 0x00b20a60, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20b60, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a80, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20b80, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20aa0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20ba0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20ac0, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20bc0, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20ae0, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20be0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20b00, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20c00, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20b20, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20c20, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20b40, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20c40, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05902000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01d21, 0x00450a4c, 0x00000001 },
+ { 0x80800001, 0x4c6001b1, 0x00b10c60, 0x00000000 },
+ { 0x80800001, 0x4c8001b1, 0x00b10c80, 0x00000000 },
+ { 0x80800001, 0x4ca001b1, 0x00b10ca0, 0x00000000 },
+ { 0x80800001, 0x4cc001b1, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20c60, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20c80, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20ca0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20cc0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302001 },
+ { 0x80800001, 0x4ce001b1, 0x00b10ce0, 0x00000000 },
+ { 0x80800001, 0x4d0001b1, 0x00b10d00, 0x00000000 },
+ { 0x80800001, 0x4d2001b1, 0x00b10d20, 0x00000000 },
+ { 0x80800001, 0x4d4001b1, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20ce0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20d00, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20d20, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20d40, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x008d03e0, 0x05302002 },
+ { 0x00800031, 0x24001d28, 0x008d0000, 0x87100000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00000001, 0x2de001ad, 0x00218000, 0x00000000 },
+ { 0x00802041, 0x2e8025a5, 0x008d8000, 0x008d0e00 },
+ { 0x00802041, 0x2e8024a5, 0x008d0e80, 0x008c0da0 },
+ { 0x0080200c, 0x2e802ca5, 0x008d0e80, 0x00040004 },
+ { 0x00000041, 0x2e8025a5, 0x00210de0, 0x00210da4 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2ec025a5, 0x008d8000, 0x008d0e20 },
+ { 0x00802041, 0x2ec024a5, 0x008d0ec0, 0x008c0da0 },
+ { 0x0080200c, 0x2ec02ca5, 0x008d0ec0, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f0025a5, 0x008d8000, 0x008d0e40 },
+ { 0x00802041, 0x2f0024a5, 0x008d0f00, 0x008c0da0 },
+ { 0x0080200c, 0x2f002ca5, 0x008d0f00, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f4025a5, 0x008d8000, 0x008d0e60 },
+ { 0x00802041, 0x2f4024a5, 0x008d0f40, 0x008c0da0 },
+ { 0x0080200c, 0x2f402ca5, 0x008d0f40, 0x00040004 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00000400 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00000400 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00000400 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00000400 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x0000000b },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x0000000b },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x0000000b },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x0000000b },
+ { 0x00800001, 0x2dc001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2de001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2e0001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2e2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00000001, 0x2a000001, 0x00210200, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x0db00da0 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00080000 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00080000 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00080000 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00080000 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x00000014 },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x00000014 },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x00000014 },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x00000014 },
+ { 0x00000001, 0x22000020, 0x00210a00, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x34000c20, 0x00210fc0, 0x00000020 },
diff --git a/src/xvmc/shader/vld/ipicture.g4b.gen5 b/src/xvmc/shader/vld/ipicture.g4b.gen5
new file mode 100644
index 0000000..957f6fc
--- /dev/null
+++ b/src/xvmc/shader/vld/ipicture.g4b.gen5
@@ -0,0 +1,313 @@
+ { 0x00600001, 0x2a400021, 0x008d03e0, 0x00000000 },
+ { 0x00200001, 0x23e00121, 0x00450a4c, 0x00000000 },
+ { 0x00000005, 0x2da02d29, 0x00210a48, 0x001f001f },
+ { 0x00000005, 0x2da42d29, 0x00210a48, 0x60006000 },
+ { 0x00000008, 0x2da42d29, 0x00210da4, 0x000d000d },
+ { 0x00000001, 0x2da60169, 0x00000000, 0x00080008 },
+ { 0x00000008, 0x2da42529, 0x00210da6, 0x00210da4 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00090009 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00110011 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00190019 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffe7ffe7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00030003 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x00400040 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xfff7fff7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00010001 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x000a000a },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffefffef },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00020002 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x001c001c },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00000009, 0x2da00d29, 0x00210da0, 0x00000001 },
+ { 0x00000001, 0x2dc00129, 0x00210da0, 0x00000000 },
+ { 0x00800001, 0x2e000229, 0x00b10020, 0x00000000 },
+ { 0x00800001, 0x2e200229, 0x00b10030, 0x00000000 },
+ { 0x00800001, 0x2e400229, 0x00b10040, 0x00000000 },
+ { 0x00800001, 0x2e600229, 0x00b10050, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x03f003e0 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000142 },
+ { 0x00800001, 0x270001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x272001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x274001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x276001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000136 },
+ { 0x00800001, 0x278001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x27a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x27c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x27e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000012a },
+ { 0x00800001, 0x280001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x282001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x284001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x286001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000011e },
+ { 0x00800001, 0x288001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x28a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x28c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x28e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000112 },
+ { 0x00800001, 0x290001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x292001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x294001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x296001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000106 },
+ { 0x00800001, 0x298001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x29a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x29c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x29e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x06f006e0 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000011e },
+ { 0x00600040, 0x2a602dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2a802dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2aa02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2ac02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2ae02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2b002dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2b202dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2b402dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000010a },
+ { 0x00600040, 0x2a702dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2a902dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2ab02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2ad02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2af02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2b102dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2b302dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2b502dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000f6 },
+ { 0x00600040, 0x2b602dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2b802dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2ba02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2bc02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2be02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2c002dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2c202dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2c402dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000e2 },
+ { 0x00600040, 0x2b702dad, 0x00ae0400, 0x00800080 },
+ { 0x00600040, 0x2b902dad, 0x00ae0420, 0x00800080 },
+ { 0x00600040, 0x2bb02dad, 0x00ae0440, 0x00800080 },
+ { 0x00600040, 0x2bd02dad, 0x00ae0460, 0x00800080 },
+ { 0x00600040, 0x2bf02dad, 0x00ae0480, 0x00800080 },
+ { 0x00600040, 0x2c102dad, 0x00ae04a0, 0x00800080 },
+ { 0x00600040, 0x2c302dad, 0x00ae04c0, 0x00800080 },
+ { 0x00600040, 0x2c502dad, 0x00ae04e0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000ce },
+ { 0x00800040, 0x2c602dad, 0x00ae0400, 0x00800080 },
+ { 0x00800040, 0x2c802dad, 0x00ae0440, 0x00800080 },
+ { 0x00800040, 0x2ca02dad, 0x00ae0480, 0x00800080 },
+ { 0x00800040, 0x2cc02dad, 0x00ae04c0, 0x00800080 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000c2 },
+ { 0x00800040, 0x2ce02dad, 0x00ae0400, 0x00800080 },
+ { 0x00800040, 0x2d002dad, 0x00ae0440, 0x00800080 },
+ { 0x00800040, 0x2d202dad, 0x00ae0480, 0x00800080 },
+ { 0x00800040, 0x2d402dad, 0x00ae04c0, 0x00800080 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x000f000f },
+ { 0x80800001, 0x4a6001b1, 0x00b10a60, 0x00000000 },
+ { 0x80800001, 0x4a8001b1, 0x00b10a80, 0x00000000 },
+ { 0x80800001, 0x4aa001b1, 0x00b10aa0, 0x00000000 },
+ { 0x80800001, 0x4ac001b1, 0x00b10ac0, 0x00000000 },
+ { 0x80800001, 0x4ae001b1, 0x00b10ae0, 0x00000000 },
+ { 0x80800001, 0x4b0001b1, 0x00b10b00, 0x00000000 },
+ { 0x80800001, 0x4b2001b1, 0x00b10b20, 0x00000000 },
+ { 0x80800001, 0x4b4001b1, 0x00b10b40, 0x00000000 },
+ { 0x80800001, 0x4b6001b1, 0x00b10b60, 0x00000000 },
+ { 0x80800001, 0x4b8001b1, 0x00b10b80, 0x00000000 },
+ { 0x80800001, 0x4ba001b1, 0x00b10ba0, 0x00000000 },
+ { 0x80800001, 0x4bc001b1, 0x00b10bc0, 0x00000000 },
+ { 0x80800001, 0x4be001b1, 0x00b10be0, 0x00000000 },
+ { 0x80800001, 0x4c0001b1, 0x00b10c00, 0x00000000 },
+ { 0x80800001, 0x4c2001b1, 0x00b10c20, 0x00000000 },
+ { 0x80800001, 0x4c4001b1, 0x00b10c40, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a42, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x00800001, 0x20200232, 0x00b20a60, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20a80, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20aa0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20ac0, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20ae0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20b00, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20b20, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20b40, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20b60, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20b80, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20ba0, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20bc0, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20be0, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20c00, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20c20, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20c40, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000020 },
+ { 0x00800001, 0x20200232, 0x00b20a60, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20b60, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20a80, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20b80, 0x00000000 },
+ { 0x00800001, 0x20600232, 0x00b20aa0, 0x00000000 },
+ { 0x00800001, 0x20700232, 0x00b20ba0, 0x00000000 },
+ { 0x00800001, 0x20800232, 0x00b20ac0, 0x00000000 },
+ { 0x00800001, 0x20900232, 0x00b20bc0, 0x00000000 },
+ { 0x00800001, 0x20a00232, 0x00b20ae0, 0x00000000 },
+ { 0x00800001, 0x20b00232, 0x00b20be0, 0x00000000 },
+ { 0x00800001, 0x20c00232, 0x00b20b00, 0x00000000 },
+ { 0x00800001, 0x20d00232, 0x00b20c00, 0x00000000 },
+ { 0x00800001, 0x20e00232, 0x00b20b20, 0x00000000 },
+ { 0x00800001, 0x20f00232, 0x00b20c20, 0x00000000 },
+ { 0x00800001, 0x21000232, 0x00b20b40, 0x00000000 },
+ { 0x00800001, 0x21100232, 0x00b20c40, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x12082000 },
+ { 0x00000001, 0x23e80061, 0x00000000, 0x00070007 },
+ { 0x00200008, 0x23e01d21, 0x00450a4c, 0x00000001 },
+ { 0x80800001, 0x4c6001b1, 0x00b10c60, 0x00000000 },
+ { 0x80800001, 0x4c8001b1, 0x00b10c80, 0x00000000 },
+ { 0x80800001, 0x4ca001b1, 0x00b10ca0, 0x00000000 },
+ { 0x80800001, 0x4cc001b1, 0x00b10cc0, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20c60, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20c80, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20ca0, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20cc0, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082001 },
+ { 0x80800001, 0x4ce001b1, 0x00b10ce0, 0x00000000 },
+ { 0x80800001, 0x4d0001b1, 0x00b10d00, 0x00000000 },
+ { 0x80800001, 0x4d2001b1, 0x00b10d20, 0x00000000 },
+ { 0x80800001, 0x4d4001b1, 0x00b10d40, 0x00000000 },
+ { 0x00800001, 0x20200232, 0x00b20ce0, 0x00000000 },
+ { 0x00800001, 0x20300232, 0x00b20d00, 0x00000000 },
+ { 0x00800001, 0x20400232, 0x00b20d20, 0x00000000 },
+ { 0x00800001, 0x20500232, 0x00b20d40, 0x00000000 },
+ { 0x00800031, 0x24001d28, 0x508d03e0, 0x06082002 },
+ { 0x00800031, 0x24001d28, 0x748d0000, 0x82000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00000001, 0x2de001ad, 0x00218000, 0x00000000 },
+ { 0x00802041, 0x2e8025a5, 0x008d8000, 0x008d0e00 },
+ { 0x00802041, 0x2e8024a5, 0x008d0e80, 0x008c0da0 },
+ { 0x0080200c, 0x2e802ca5, 0x008d0e80, 0x00040004 },
+ { 0x00000041, 0x2e8025a5, 0x00210de0, 0x00210da4 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2ec025a5, 0x008d8000, 0x008d0e20 },
+ { 0x00802041, 0x2ec024a5, 0x008d0ec0, 0x008c0da0 },
+ { 0x0080200c, 0x2ec02ca5, 0x008d0ec0, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f0025a5, 0x008d8000, 0x008d0e40 },
+ { 0x00802041, 0x2f0024a5, 0x008d0f00, 0x008c0da0 },
+ { 0x0080200c, 0x2f002ca5, 0x008d0f00, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f4025a5, 0x008d8000, 0x008d0e60 },
+ { 0x00802041, 0x2f4024a5, 0x008d0f40, 0x008c0da0 },
+ { 0x0080200c, 0x2f402ca5, 0x008d0f40, 0x00040004 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00000400 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00000400 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00000400 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00000400 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x0000000b },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x0000000b },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x0000000b },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x0000000b },
+ { 0x00800001, 0x2dc001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2de001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2e0001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2e2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00000001, 0x2a000001, 0x00210200, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x0db00da0 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00080000 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00080000 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00080000 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00080000 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x00000014 },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x00000014 },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x00000014 },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x00000014 },
+ { 0x00000001, 0x22000020, 0x00210a00, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x34000c20, 0x00210fc0, 0x00000020 },
diff --git a/src/xvmc/shader/vld/iq_intra.g4i b/src/xvmc/shader/vld/iq_intra.g4i
new file mode 100644
index 0000000..b014361
--- /dev/null
+++ b/src/xvmc/shader/vld/iq_intra.g4i
@@ -0,0 +1,131 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix in UB format
+ g3~g4:non intra IQ matrix in UB format
+ g5~g20:IDCT table
+ g32~g55:DCT data before IQ
+ g56~g79:DCT data after IQ
+ g82: thread payload backup
+ g109: g109.0:q_scale_code, g109.4:intra_dc_mult,
+ g110: q_scale_code
+ g111: intra DC coefficient
+ g112~g115: intra IQ matrix in UW format (in order to use instruction compress), copys from g1~g2
+ g125: ip before jump
+*/
+and (1) g109.0<1>UW g82.8<1,1,1>UW 0x1fUW {align1}; //q_scale_code
+
+and (1) g109.4<1>UW g82.8<1,1,1>UW 0x6000UW {align1}; //intra_dc_presion
+shr (1) g109.4<1>UW g109.4<1,1,1>UW 13UW {align1};
+mov (1) g109.6<1>UW 0x8UW {align1};
+shr (1) g109.4<1>UW g109.6<1,1,1>UW g109.4<1,1,1>UW {align1}; //intra_dc_mult
+
+and.z (1) null g82.8<1,1,1>UW 0x20UW {align1}; //if(q_scale_type==0) q_scale=q_scale_code*2;
+(f0) jmpi Q_SCALE_TYPE_0;
+
+cmp.l (1) null g109.0<1,1,1>UW 9UW {align1}; //if(q_scale_type!=0) calculate q_scale
+(f0) jmpi DO_IQ;
+cmp.l (1) null g109.0<1,1,1>UW 17UW {align1};
+(f0) jmpi RANG_9_16;
+cmp.l (1) null g109.0<1,1,1>UW 25UW {align1};
+(f0) jmpi RANG_17_24;
+
+RANG_25_31:
+add (1) g109.0<1>UW g109.0<1,1,1>UW -25W {align1};
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 3UW {align1};
+add (1) g109.0<1>UW g109.0<1,1,1>UW 64UW {align1};
+jmpi DO_IQ;
+
+RANG_9_16:
+add (1) g109.0<1>UW g109.0<1,1,1>UW -9W {align1};
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 1UW {align1};
+add (1) g109.0<1>UW g109.0<1,1,1>UW 10UW {align1};
+jmpi DO_IQ;
+
+RANG_17_24:
+add (1) g109.0<1>UW g109.0<1,1,1>UW -17W {align1};
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 2UW {align1};
+add (1) g109.0<1>UW g109.0<1,1,1>UW 28UW {align1};
+jmpi DO_IQ;
+
+Q_SCALE_TYPE_0:
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 1UD {align1};
+
+DO_IQ:
+mov (1) g110.0<1>UW g109.0<1,1,1>UW {align1};
+
+mov (16) g112.0<1>UW g1.0<16,16,1>UB {align1};
+mov (16) g113.0<1>UW g1.16<16,16,1>UB {align1};
+mov (16) g114.0<1>UW g2.0<16,16,1>UB {align1};
+mov (16) g115.0<1>UW g2.16<16,16,1>UB {align1};
+
+mov (1) a0.0<1>UD 0x03F003E0UD {align1};
+
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_INTRA;
+mov (16) g56.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g57.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g58.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g59.0<1>W g122.0<16,8,2>W {align1};
+
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_INTRA;
+mov (16) g60.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g61.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g62.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g63.0<1>W g122.0<16,8,2>W {align1};
+
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_INTRA;
+mov (16) g64.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g65.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g66.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g67.0<1>W g122.0<16,8,2>W {align1};
+
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_INTRA;
+mov (16) g68.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g69.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g70.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g71.0<1>W g122.0<16,8,2>W {align1};
+
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_INTRA;
+mov (16) g72.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g73.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g74.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g75.0<1>W g122.0<16,8,2>W {align1};
+
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_INTRA;
+mov (16) g76.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g77.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g78.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g79.0<1>W g122.0<16,8,2>W {align1};
+
diff --git a/src/xvmc/shader/vld/iq_non_intra.g4i b/src/xvmc/shader/vld/iq_non_intra.g4i
new file mode 100644
index 0000000..03c09aa
--- /dev/null
+++ b/src/xvmc/shader/vld/iq_non_intra.g4i
@@ -0,0 +1,150 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix in UB format
+ g3~g4:non intra IQ matrix in UB format
+ g5~g20:IDCT table
+ g32~g55:DCT data before IQ
+ g56~g79:DCT data after IQ
+ g82: thread payload backup
+ g109: q_scale_code
+ g110: q_scale_code
+ g112~g115: non intra IQ matrix in UW format (in order to use instruction compress), copys from g3~g4
+ g125: ip before jump
+*/
+and (1) g109.0<1>UW g82.8<1,1,1>UW 0x1fUW {align1}; //q_scale_code
+
+and.z (1) null g82.8<1,1,1>UW 0x20UW {align1}; //if(q_scale_type==0) q_scale=q_scale_code*2;
+(f0) jmpi Q_SCALE_TYPE_0;
+
+cmp.l (1) null g109.0<1,1,1>UW 9UW {align1}; //if(q_scale_type!=0) calculate q_scale
+(f0) jmpi DO_IQ;
+cmp.l (1) null g109.0<1,1,1>UW 17UW {align1};
+(f0) jmpi RANG_9_16;
+cmp.l (1) null g109.0<1,1,1>UW 25UW {align1};
+(f0) jmpi RANG_17_24;
+
+RANG_25_31:
+add (1) g109.0<1>UW g109.0<1,1,1>UW -25W {align1};
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 3UW {align1};
+add (1) g109.0<1>UW g109.0<1,1,1>UW 64UW {align1};
+jmpi DO_IQ;
+
+RANG_9_16:
+add (1) g109.0<1>UW g109.0<1,1,1>UW -9W {align1};
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 1UW {align1};
+add (1) g109.0<1>UW g109.0<1,1,1>UW 10UW {align1};
+jmpi DO_IQ;
+
+RANG_17_24:
+add (1) g109.0<1>UW g109.0<1,1,1>UW -17W {align1};
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 2UW {align1};
+add (1) g109.0<1>UW g109.0<1,1,1>UW 28UW {align1};
+jmpi DO_IQ;
+
+Q_SCALE_TYPE_0:
+shl (1) g109.0<1>UW g109.0<1,1,1>UW 1UD {align1};
+
+DO_IQ:
+mov (1) g110.0<1>UW g109.0<1,1,1>UW {align1};
+
+mov (16) g112.0<1>UW g3.0<16,16,1>UB {align1};
+mov (16) g113.0<1>UW g3.16<16,16,1>UB {align1};
+mov (16) g114.0<1>UW g4.0<16,16,1>UB {align1};
+mov (16) g115.0<1>UW g4.16<16,16,1>UB {align1};
+
+mov (1) a0.0<1>UD 0x03F003E0UD {align1};
+
+//Y0
+iq_non_intra_y0:
+and.z (1) null g82.8<1,1,1>UW 0x800UW {align1};
+(f0) jmpi iq_non_intra_y1;
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_NON_INTRA;
+mov (16) g56.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g57.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g58.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g59.0<1>W g122.0<16,8,2>W {align1};
+
+//Y1
+iq_non_intra_y1:
+and.z (1) null g82.8<1,1,1>UW 0x400UW {align1};
+(f0) jmpi iq_non_intra_y2;
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_NON_INTRA;
+mov (16) g60.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g61.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g62.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g63.0<1>W g122.0<16,8,2>W {align1};
+
+//Y2
+iq_non_intra_y2:
+and.z (1) null g82.8<1,1,1>UW 0x200UW {align1};
+(f0) jmpi iq_non_intra_y3;
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_NON_INTRA;
+mov (16) g64.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g65.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g66.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g67.0<1>W g122.0<16,8,2>W {align1};
+
+//Y3
+iq_non_intra_y3:
+and.z (1) null g82.8<1,1,1>UW 0x100UW {align1};
+(f0) jmpi iq_non_intra_u;
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_NON_INTRA;
+mov (16) g68.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g69.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g70.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g71.0<1>W g122.0<16,8,2>W {align1};
+
+//U
+iq_non_intra_u:
+and.z (1) null g82.8<1,1,1>UW 0x80UW {align1};
+(f0) jmpi iq_non_intra_v;
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_NON_INTRA;
+mov (16) g72.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g73.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g74.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g75.0<1>W g122.0<16,8,2>W {align1};
+
+//V
+iq_non_intra_v:
+and.z (1) null g82.8<1,1,1>UW 0x40UW {align1};
+(f0) jmpi iq_non_intra_end;
+mov (1) g125.0<1>UD ip {align1};
+jmpi DO_IQ_NON_INTRA;
+mov (16) g76.0<1>W g116.0<16,8,2>W {align1};
+mov (16) g77.0<1>W g118.0<16,8,2>W {align1};
+mov (16) g78.0<1>W g120.0<16,8,2>W {align1};
+mov (16) g79.0<1>W g122.0<16,8,2>W {align1};
+
+iq_non_intra_end:
diff --git a/src/xvmc/shader/vld/lib.g4a b/src/xvmc/shader/vld/lib.g4a
new file mode 100644
index 0000000..567caaf
--- /dev/null
+++ b/src/xvmc/shader/vld/lib.g4a
@@ -0,0 +1,190 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix in UB format
+ g3~g4:non intra IQ matrix in UB format
+ g5~g20:IDCT table
+ g32~g55:DCT data before IQ
+ g56~g79:DCT data after IQ
+ g83~g106: IDCT data after idct
+ g82: thread payload backup
+ g125: ip before jump
+*/
+include(`iq_non_intra.g4i')
+
+define(`ROW_SHIFT', `11UD') //define for idct
+define(`ROW_ADD', `0x400UD')
+define(`COL_SHIFT', `20UD')
+define(`COL_ADD', `0x80000UD')
+
+mov (1) a0.0<1>UD 0x06F006E0UD {align1};//0x06F006E0UD+0x00200020UD=0x07100700UD (g56.0 and g56.16,the start of DCT data)
+
+//Y0
+and.nz (1) null g82.8<1,1,1>UW 0x800UW {align1};
+(f0) jmpi do_idct_y0;
+
+mov (8) g83.0<1>UW 0UW {align1};
+mov (8) g84.0<1>UW 0UW {align1};
+mov (8) g85.0<1>UW 0UW {align1};
+mov (8) g86.0<1>UW 0UW {align1};
+mov (8) g87.0<1>UW 0UW {align1};
+mov (8) g88.0<1>UW 0UW {align1};
+mov (8) g89.0<1>UW 0UW {align1};
+mov (8) g90.0<1>UW 0UW {align1};
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00800080UD {align1};
+jmpi block_y1;
+do_idct_y0:
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+mov (8) g83.0<1>W g32.0<16,8,2>W {align1};
+mov (8) g84.0<1>W g33.0<16,8,2>W {align1};
+mov (8) g85.0<1>W g34.0<16,8,2>W {align1};
+mov (8) g86.0<1>W g35.0<16,8,2>W {align1};
+mov (8) g87.0<1>W g36.0<16,8,2>W {align1};
+mov (8) g88.0<1>W g37.0<16,8,2>W {align1};
+mov (8) g89.0<1>W g38.0<16,8,2>W {align1};
+mov (8) g90.0<1>W g39.0<16,8,2>W {align1};
+
+//Y1
+block_y1:
+and.nz (1) null g82.8<1,1,1>UW 0x400UW {align1};
+(f0) jmpi do_idct_y1;
+mov (8) g83.16<1>UW 0UW {align1};
+mov (8) g84.16<1>UW 0UW {align1};
+mov (8) g85.16<1>UW 0UW {align1};
+mov (8) g86.16<1>UW 0UW {align1};
+mov (8) g87.16<1>UW 0UW {align1};
+mov (8) g88.16<1>UW 0UW {align1};
+mov (8) g89.16<1>UW 0UW {align1};
+mov (8) g90.16<1>UW 0UW {align1};
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00800080UD {align1};
+jmpi block_y2;
+do_idct_y1:
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+mov (8) g83.16<1>W g32.0<16,8,2>W {align1};
+mov (8) g84.16<1>W g33.0<16,8,2>W {align1};
+mov (8) g85.16<1>W g34.0<16,8,2>W {align1};
+mov (8) g86.16<1>W g35.0<16,8,2>W {align1};
+mov (8) g87.16<1>W g36.0<16,8,2>W {align1};
+mov (8) g88.16<1>W g37.0<16,8,2>W {align1};
+mov (8) g89.16<1>W g38.0<16,8,2>W {align1};
+mov (8) g90.16<1>W g39.0<16,8,2>W {align1};
+
+//Y2
+block_y2:
+and.nz (1) null g82.8<1,1,1>UW 0x200UW {align1};
+(f0) jmpi do_idct_y2;
+mov (8) g91.0<1>UW 0UW {align1};
+mov (8) g92.0<1>UW 0UW {align1};
+mov (8) g93.0<1>UW 0UW {align1};
+mov (8) g94.0<1>UW 0UW {align1};
+mov (8) g95.0<1>UW 0UW {align1};
+mov (8) g96.0<1>UW 0UW {align1};
+mov (8) g97.0<1>UW 0UW {align1};
+mov (8) g98.0<1>UW 0UW {align1};
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00800080UD {align1};
+jmpi block_y3;
+do_idct_y2:
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+mov (8) g91.0<1>W g32.0<16,8,2>W {align1};
+mov (8) g92.0<1>W g33.0<16,8,2>W {align1};
+mov (8) g93.0<1>W g34.0<16,8,2>W {align1};
+mov (8) g94.0<1>W g35.0<16,8,2>W {align1};
+mov (8) g95.0<1>W g36.0<16,8,2>W {align1};
+mov (8) g96.0<1>W g37.0<16,8,2>W {align1};
+mov (8) g97.0<1>W g38.0<16,8,2>W {align1};
+mov (8) g98.0<1>W g39.0<16,8,2>W {align1};
+
+//Y3
+block_y3:
+and.nz (1) null g82.8<1,1,1>UW 0x100UW {align1};
+(f0) jmpi do_idct_y3;
+mov (8) g91.16<1>UW 0UW {align1};
+mov (8) g92.16<1>UW 0UW {align1};
+mov (8) g93.16<1>UW 0UW {align1};
+mov (8) g94.16<1>UW 0UW {align1};
+mov (8) g95.16<1>UW 0UW {align1};
+mov (8) g96.16<1>UW 0UW {align1};
+mov (8) g97.16<1>UW 0UW {align1};
+mov (8) g98.16<1>UW 0UW {align1};
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00800080UD {align1};
+jmpi block_u;
+do_idct_y3:
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+mov (8) g91.16<1>W g32.0<16,8,2>W {align1};
+mov (8) g92.16<1>W g33.0<16,8,2>W {align1};
+mov (8) g93.16<1>W g34.0<16,8,2>W {align1};
+mov (8) g94.16<1>W g35.0<16,8,2>W {align1};
+mov (8) g95.16<1>W g36.0<16,8,2>W {align1};
+mov (8) g96.16<1>W g37.0<16,8,2>W {align1};
+mov (8) g97.16<1>W g38.0<16,8,2>W {align1};
+mov (8) g98.16<1>W g39.0<16,8,2>W {align1};
+
+//U
+block_u:
+and.nz (1) null g82.8<1,1,1>UW 0x80UW {align1};
+(f0) jmpi do_idct_u;
+mov (16) g99.0<1>UW 0UW {align1};
+mov (16) g100.0<1>UW 0UW {align1};
+mov (16) g101.0<1>UW 0UW {align1};
+mov (16) g102.0<1>UW 0UW {align1};
+add (1) a0.0<1>UD a0.0<1,1,1>UD 0x00800080UD {align1};
+jmpi block_v;
+do_idct_u:
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+mov (16) g99.0<1>W g32.0<16,8,2>W {align1};
+mov (16) g100.0<1>W g34.0<16,8,2>W {align1};
+mov (16) g101.0<1>W g36.0<16,8,2>W {align1};
+mov (16) g102.0<1>W g38.0<16,8,2>W {align1};
+
+//V
+block_v:
+and.nz (1) null g82.8<1,1,1>UW 0x40UW {align1};
+(f0) jmpi do_idct_v;
+mov (16) g103.0<1>UW 0UW {align1};
+mov (16) g104.0<1>UW 0UW {align1};
+mov (16) g105.0<1>UW 0UW {align1};
+mov (16) g106.0<1>UW 0UW {align1};
+jmpi block_end;
+do_idct_v:
+mov (1) g125.0<1>UD ip {align1};
+jmpi IDCT_START;
+mov (16) g103.0<1>W g32.0<16,8,2>W {align1};
+mov (16) g104.0<1>W g34.0<16,8,2>W {align1};
+mov (16) g105.0<1>W g36.0<16,8,2>W {align1};
+mov (16) g106.0<1>W g38.0<16,8,2>W {align1};
+block_end:
+
+add (1) ip g126.8<1,1,1>UD 0x20UD {align1}; //jump back
+include(`do_iq_non_intra.g4i')
+include(`idct.g4i')
diff --git a/src/xvmc/shader/vld/lib.g4b b/src/xvmc/shader/vld/lib.g4b
new file mode 100644
index 0000000..262bff9
--- /dev/null
+++ b/src/xvmc/shader/vld/lib.g4b
@@ -0,0 +1,307 @@
+ { 0x00000005, 0x2da02d29, 0x00210a48, 0x001f001f },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00090009 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000011 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00110011 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00190019 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000008 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffe7ffe7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00030003 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x00400040 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000009 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xfff7fff7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00010001 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x000a000a },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000005 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffefffef },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00020002 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x001c001c },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000001 },
+ { 0x00000009, 0x2da00d29, 0x00210da0, 0x00000001 },
+ { 0x00000001, 0x2dc00129, 0x00210da0, 0x00000000 },
+ { 0x00800001, 0x2e000229, 0x00b10060, 0x00000000 },
+ { 0x00800001, 0x2e200229, 0x00b10070, 0x00000000 },
+ { 0x00800001, 0x2e400229, 0x00b10080, 0x00000000 },
+ { 0x00800001, 0x2e600229, 0x00b10090, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x03f003e0 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x08000800 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000a1 },
+ { 0x00800001, 0x270001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x272001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x274001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x276001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x04000400 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000099 },
+ { 0x00800001, 0x278001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x27a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x27c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x27e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x02000200 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000091 },
+ { 0x00800001, 0x280001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x282001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x284001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x286001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x01000100 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000089 },
+ { 0x00800001, 0x288001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x28a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x28c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x28e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00800080 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000081 },
+ { 0x00800001, 0x290001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x292001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x294001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x296001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00400040 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000079 },
+ { 0x00800001, 0x298001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x29a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x29c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x29e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x06f006e0 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x08000800 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00600001, 0x2a600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2a800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2aa00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ac00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ae00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b400169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000077 },
+ { 0x00600001, 0x2a6001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2a8001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2aa001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2ac001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2ae001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2b0001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2b2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2b4001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x04000400 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00600001, 0x2a700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2a900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ab00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ad00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2af00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b500169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000061 },
+ { 0x00600001, 0x2a7001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2a9001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2ab001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2ad001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2af001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2b1001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2b3001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2b5001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x02000200 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00600001, 0x2b600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ba00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bc00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2be00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c400169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000004b },
+ { 0x00600001, 0x2b6001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2b8001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2ba001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2bc001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2be001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2c0001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2c2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2c4001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x01000100 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00600001, 0x2b700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bb00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bd00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bf00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c500169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000035 },
+ { 0x00600001, 0x2b7001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2b9001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2bb001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2bd001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2bf001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2c1001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2c3001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2c5001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x00800080 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00800001, 0x2c600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2c800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2ca00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2cc00169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000023 },
+ { 0x00800001, 0x2c6001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2c8001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2ca001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2cc001ad, 0x00ae04c0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x00400040 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000005 },
+ { 0x00800001, 0x2ce00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d400169, 0x00000000, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000006 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000016 },
+ { 0x00800001, 0x2ce001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2d0001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2d2001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2d4001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2e8025a5, 0x008d8000, 0x008d0e00 },
+ { 0x00802041, 0x2e8024a5, 0x008d0e80, 0x008c0da0 },
+ { 0x0080200c, 0x2e802ca5, 0x008d0e80, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2ec025a5, 0x008d8000, 0x008d0e20 },
+ { 0x00802041, 0x2ec024a5, 0x008d0ec0, 0x008c0da0 },
+ { 0x0080200c, 0x2ec02ca5, 0x008d0ec0, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f0025a5, 0x008d8000, 0x008d0e40 },
+ { 0x00802041, 0x2f0024a5, 0x008d0f00, 0x008c0da0 },
+ { 0x0080200c, 0x2f002ca5, 0x008d0f00, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f4025a5, 0x008d8000, 0x008d0e60 },
+ { 0x00802041, 0x2f4024a5, 0x008d0f40, 0x008c0da0 },
+ { 0x0080200c, 0x2f402ca5, 0x008d0f40, 0x00040004 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000001a },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00000400 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00000400 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00000400 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00000400 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x0000000b },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x0000000b },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x0000000b },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x0000000b },
+ { 0x00800001, 0x2dc001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2de001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2e0001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2e2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00000001, 0x2a000001, 0x00210200, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x0db00da0 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00080000 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00080000 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00080000 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00080000 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x00000014 },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x00000014 },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x00000014 },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x00000014 },
+ { 0x00000001, 0x22000020, 0x00210a00, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x34000c20, 0x00210fc0, 0x00000020 },
diff --git a/src/xvmc/shader/vld/lib.g4b.gen5 b/src/xvmc/shader/vld/lib.g4b.gen5
new file mode 100644
index 0000000..2371beb
--- /dev/null
+++ b/src/xvmc/shader/vld/lib.g4b.gen5
@@ -0,0 +1,307 @@
+ { 0x00000005, 0x2da02d29, 0x00210a48, 0x001f001f },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00200020 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000024 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00090009 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000022 },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00110011 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x05000010, 0x20002d3c, 0x00210da0, 0x00190019 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000010 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffe7ffe7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00030003 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x00400040 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000012 },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xfff7fff7 },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00010001 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x000a000a },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00000040, 0x2da03d29, 0x00210da0, 0xffefffef },
+ { 0x00000009, 0x2da02d29, 0x00210da0, 0x00020002 },
+ { 0x00000040, 0x2da02d29, 0x00210da0, 0x001c001c },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000002 },
+ { 0x00000009, 0x2da00d29, 0x00210da0, 0x00000001 },
+ { 0x00000001, 0x2dc00129, 0x00210da0, 0x00000000 },
+ { 0x00800001, 0x2e000229, 0x00b10060, 0x00000000 },
+ { 0x00800001, 0x2e200229, 0x00b10070, 0x00000000 },
+ { 0x00800001, 0x2e400229, 0x00b10080, 0x00000000 },
+ { 0x00800001, 0x2e600229, 0x00b10090, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x03f003e0 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x08000800 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000142 },
+ { 0x00800001, 0x270001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x272001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x274001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x276001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x04000400 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000132 },
+ { 0x00800001, 0x278001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x27a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x27c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x27e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x02000200 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000122 },
+ { 0x00800001, 0x280001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x282001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x284001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x286001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x01000100 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000112 },
+ { 0x00800001, 0x288001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x28a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x28c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x28e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00800080 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000102 },
+ { 0x00800001, 0x290001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x292001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x294001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x296001ad, 0x00ae0f40, 0x00000000 },
+ { 0x01000005, 0x20002d3c, 0x00210a48, 0x00400040 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000f2 },
+ { 0x00800001, 0x298001ad, 0x00ae0e80, 0x00000000 },
+ { 0x00800001, 0x29a001ad, 0x00ae0ec0, 0x00000000 },
+ { 0x00800001, 0x29c001ad, 0x00ae0f00, 0x00000000 },
+ { 0x00800001, 0x29e001ad, 0x00ae0f40, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x06f006e0 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x08000800 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00600001, 0x2a600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2a800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2aa00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ac00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ae00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b400169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000ee },
+ { 0x00600001, 0x2a6001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2a8001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2aa001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2ac001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2ae001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2b0001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2b2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2b4001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x04000400 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00600001, 0x2a700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2a900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ab00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ad00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2af00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b500169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x000000c2 },
+ { 0x00600001, 0x2a7001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2a9001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2ab001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2ad001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2af001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2b1001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2b3001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2b5001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x02000200 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00600001, 0x2b600169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b800169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2ba00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bc00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2be00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c000169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c200169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c400169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000096 },
+ { 0x00600001, 0x2b6001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2b8001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2ba001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2bc001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2be001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2c0001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2c2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2c4001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x01000100 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00600001, 0x2b700169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2b900169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bb00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bd00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2bf00169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c100169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c300169, 0x00000000, 0x00000000 },
+ { 0x00600001, 0x2c500169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000006a },
+ { 0x00600001, 0x2b7001ad, 0x00ae0400, 0x00000000 },
+ { 0x00600001, 0x2b9001ad, 0x00ae0420, 0x00000000 },
+ { 0x00600001, 0x2bb001ad, 0x00ae0440, 0x00000000 },
+ { 0x00600001, 0x2bd001ad, 0x00ae0460, 0x00000000 },
+ { 0x00600001, 0x2bf001ad, 0x00ae0480, 0x00000000 },
+ { 0x00600001, 0x2c1001ad, 0x00ae04a0, 0x00000000 },
+ { 0x00600001, 0x2c3001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00600001, 0x2c5001ad, 0x00ae04e0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x00800080 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00800001, 0x2c600169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2c800169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2ca00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2cc00169, 0x00000000, 0x00000000 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00800080 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000046 },
+ { 0x00800001, 0x2c6001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2c8001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2ca001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2cc001ad, 0x00ae04c0, 0x00000000 },
+ { 0x02000005, 0x20002d3c, 0x00210a48, 0x00400040 },
+ { 0x00010020, 0x34001c00, 0x00001400, 0x0000000a },
+ { 0x00800001, 0x2ce00169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d000169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d200169, 0x00000000, 0x00000000 },
+ { 0x00800001, 0x2d400169, 0x00000000, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000000c },
+ { 0x00000001, 0x2fa00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x0000002c },
+ { 0x00800001, 0x2ce001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2d0001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2d2001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2d4001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fc8, 0x00000020 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2e8025a5, 0x008d8000, 0x008d0e00 },
+ { 0x00802041, 0x2e8024a5, 0x008d0e80, 0x008c0da0 },
+ { 0x0080200c, 0x2e802ca5, 0x008d0e80, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2ec025a5, 0x008d8000, 0x008d0e20 },
+ { 0x00802041, 0x2ec024a5, 0x008d0ec0, 0x008c0da0 },
+ { 0x0080200c, 0x2ec02ca5, 0x008d0ec0, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f0025a5, 0x008d8000, 0x008d0e40 },
+ { 0x00802041, 0x2f0024a5, 0x008d0f00, 0x008c0da0 },
+ { 0x0080200c, 0x2f002ca5, 0x008d0f00, 0x00040004 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802041, 0x2f4025a5, 0x008d8000, 0x008d0e60 },
+ { 0x00802041, 0x2f4024a5, 0x008d0f40, 0x008c0da0 },
+ { 0x0080200c, 0x2f402ca5, 0x008d0f40, 0x00040004 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000034 },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00000400 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00000400 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00000400 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00000400 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x0000000b },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x0000000b },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x0000000b },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x0000000b },
+ { 0x00800001, 0x2dc001ad, 0x00ae0400, 0x00000000 },
+ { 0x00800001, 0x2de001ad, 0x00ae0440, 0x00000000 },
+ { 0x00800001, 0x2e0001ad, 0x00ae0480, 0x00000000 },
+ { 0x00800001, 0x2e2001ad, 0x00ae04c0, 0x00000000 },
+ { 0x00000001, 0x2a000001, 0x00210200, 0x00000000 },
+ { 0x00000001, 0x22000060, 0x00000000, 0x0db00da0 },
+ { 0x00000001, 0x2fc00001, 0x00001400, 0x00000000 },
+ { 0x00000020, 0x34001c00, 0x00001400, 0x00000014 },
+ { 0x00802040, 0x24000ca5, 0x008d0400, 0x00080000 },
+ { 0x00802040, 0x24400ca5, 0x008d0440, 0x00080000 },
+ { 0x00802040, 0x24800ca5, 0x008d0480, 0x00080000 },
+ { 0x00802040, 0x24c00ca5, 0x008d04c0, 0x00080000 },
+ { 0x00802008, 0x24000ca5, 0x008d0400, 0x00000014 },
+ { 0x00802008, 0x24400ca5, 0x008d0440, 0x00000014 },
+ { 0x00802008, 0x24800ca5, 0x008d0480, 0x00000014 },
+ { 0x00802008, 0x24c00ca5, 0x008d04c0, 0x00000014 },
+ { 0x00000001, 0x22000020, 0x00210a00, 0x00000000 },
+ { 0x00000040, 0x34000c20, 0x00210fa0, 0x00000020 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x240814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x242814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x244814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x246814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x248814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24a814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24c814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24e814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241014a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243014a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245014a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247014a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249014a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b014a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d014a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f014a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x22000c00, 0x00210200, 0x00200020 },
+ { 0x00802054, 0x250015a5, 0x008d8000, 0x008d00a0 },
+ { 0x00802054, 0x254015a5, 0x008d8000, 0x008d00e0 },
+ { 0x00802054, 0x258015a5, 0x008d8000, 0x008d0120 },
+ { 0x00802054, 0x25c015a5, 0x008d8000, 0x008d0160 },
+ { 0x00802054, 0x260015a5, 0x008d8000, 0x008d01a0 },
+ { 0x00802054, 0x264015a5, 0x008d8000, 0x008d01e0 },
+ { 0x00802054, 0x268015a5, 0x008d8000, 0x008d0220 },
+ { 0x00802054, 0x26c015a5, 0x008d8000, 0x008d0260 },
+ { 0x00200040, 0x241814a5, 0x00800500, 0x00800510 },
+ { 0x00200040, 0x243814a5, 0x00800540, 0x00800550 },
+ { 0x00200040, 0x245814a5, 0x00800580, 0x00800590 },
+ { 0x00200040, 0x247814a5, 0x008005c0, 0x008005d0 },
+ { 0x00200040, 0x249814a5, 0x00800600, 0x00800610 },
+ { 0x00200040, 0x24b814a5, 0x00800640, 0x00800650 },
+ { 0x00200040, 0x24d814a5, 0x00800680, 0x00800690 },
+ { 0x00200040, 0x24f814a5, 0x008006c0, 0x008006d0 },
+ { 0x00000040, 0x34000c20, 0x00210fc0, 0x00000020 },
diff --git a/src/xvmc/shader/vld/motion_field_uv.g4i b/src/xvmc/shader/vld/motion_field_uv.g4i
new file mode 100644
index 0000000..4598c85
--- /dev/null
+++ b/src/xvmc/shader/vld/motion_field_uv.g4i
@@ -0,0 +1,46 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+ and.z (1) null mv1<1,1,1>W 1W {align1};
+ (f0) jmpi L1;
+ and.z (1) null mv2<1,1,1>W 1W {align1};
+ (f0) jmpi L2;
+ include(`read_field_x1y1_uv.g4i')
+ jmpi L5;
+L2:
+ include(`read_field_x1y0_uv.g4i')
+ jmpi L5;
+L1:
+ and.z (1) null mv2<1,1,1>W 1W {align1};
+ (f0) jmpi L4;
+ include(`read_field_x0y1_uv.g4i')
+ jmpi L5;
+L4:
+ include(`read_field_x0y0_uv.g4i')
+L5:
+
diff --git a/src/xvmc/shader/vld/motion_field_y.g4i b/src/xvmc/shader/vld/motion_field_y.g4i
new file mode 100644
index 0000000..47d2ec4
--- /dev/null
+++ b/src/xvmc/shader/vld/motion_field_y.g4i
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+ and.z (1) null mv1<1,1,1>W 1UW {align1};
+ (f0) jmpi L1;
+ and.z (1) null mv2<1,1,1>W 1UW {align1};
+ (f0) jmpi L2;
+ include(`read_field_x1y1_y.g4i')
+ jmpi L5;
+L2:
+ include(`read_field_x1y0_y.g4i')
+ jmpi L5;
+L1:
+ and.z (1) null mv2<1,1,1>W 1UW {align1};
+ (f0) jmpi L4;
+ include(`read_field_x0y1_y.g4i')
+ jmpi L5;
+L4:
+ include(`read_field_x0y0_y.g4i')
+L5:
diff --git a/src/xvmc/shader/vld/motion_frame_uv.g4i b/src/xvmc/shader/vld/motion_frame_uv.g4i
new file mode 100644
index 0000000..00a5f2b
--- /dev/null
+++ b/src/xvmc/shader/vld/motion_frame_uv.g4i
@@ -0,0 +1,45 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ */
+
+ and.z (1) null mv1<1,1,1>UW 2UD {align1};
+ (f0) jmpi LL1;
+ and.z (1) null mv2<1,1,1>UW 2UD {align1};
+ (f0) jmpi LL2;
+ include(`read_frame_x1y1_uv.g4i')
+ jmpi LL5;
+LL2:
+ include(`read_frame_x1y0_uv.g4i')
+ jmpi LL5;
+LL1:
+ and.z (1) null mv2<1,1,1>UW 2UD {align1};
+ (f0) jmpi LL4;
+ include(`read_frame_x0y1_uv.g4i')
+ jmpi LL5;
+LL4:
+ include(`read_frame_x0y0_uv.g4i')
+LL5:
diff --git a/src/xvmc/shader/vld/motion_frame_y.g4i b/src/xvmc/shader/vld/motion_frame_y.g4i
new file mode 100644
index 0000000..88c8085
--- /dev/null
+++ b/src/xvmc/shader/vld/motion_frame_y.g4i
@@ -0,0 +1,57 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ */
+
+/* if (motion_vect.x & 1) {
+ * if (motion_vect.y & 1)
+ * half_pixel in x and y;
+ * else
+ * half_pixel in x;
+ * } else {
+ * if (motion_vect.y & 1)
+ * half_pixel y;
+ * else
+ * full_pixel_read;
+ * }
+ */
+
+ and.z (1) null mv1<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL1;
+ and.z (1) null mv2<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL2;
+ include(`read_frame_x1y1_y.g4i')
+ jmpi LL5;
+LL2:
+ include(`read_frame_x1y0_y.g4i')
+ jmpi LL5;
+LL1:
+ and.z (1) null mv2<1,1,1>UW 1UD {align1};
+ (f0) jmpi LL4;
+ include(`read_frame_x0y1_y.g4i')
+ jmpi LL5;
+LL4:
+ include(`read_frame_x0y0_y.g4i')
+LL5:
+
diff --git a/src/xvmc/shader/vld/read_field_x0y0_uv.g4i b/src/xvmc/shader/vld/read_field_x0y0_uv.g4i
new file mode 100644
index 0000000..36e589a
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x0y0_uv.g4i
@@ -0,0 +1,50 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+
+mov (1) g115.8<1>UD 0x7000FUD {align1}; // 8*16/32=4
+send (16) 0 g40.0<1>UW g115<16,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g45.0<1>UW g115<16,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+
+mov (16) g32.0<1>UW g40.0<16,8,1>UB {align1};
+mov (16) g33.0<1>UW g41.0<16,8,1>UB {align1};
+mov (16) g34.0<1>UW g42.0<16,8,1>UB {align1};
+mov (16) g35.0<1>UW g43.0<16,8,1>UB {align1};
+mov (16) g36.0<1>UW g45.0<16,8,1>UB {align1};
+mov (16) g37.0<1>UW g46.0<16,8,1>UB {align1};
+mov (16) g38.0<1>UW g47.0<16,8,1>UB {align1};
+mov (16) g39.0<1>UW g48.0<16,8,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_field_x0y0_y.g4i b/src/xvmc/shader/vld/read_field_x0y0_y.g4i
new file mode 100644
index 0000000..e549598
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x0y0_y.g4i
@@ -0,0 +1,57 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g42.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g46.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+
+mov (16) g32.0<1>UW g40.0<16,16,1>UB {align1};
+mov (16) g33.0<1>UW g42.0<16,16,1>UB {align1};
+mov (16) g34.0<1>UW g44.0<16,16,1>UB {align1};
+mov (16) g35.0<1>UW g46.0<16,16,1>UB {align1};
+mov (16) g36.0<1>UW g48.0<16,16,1>UB {align1};
+mov (16) g37.0<1>UW g50.0<16,16,1>UB {align1};
+mov (16) g38.0<1>UW g52.0<16,16,1>UB {align1};
+mov (16) g39.0<1>UW g54.0<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_field_x0y1_uv.g4i b/src/xvmc/shader/vld/read_field_x0y1_uv.g4i
new file mode 100644
index 0000000..ac8030b
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x0y1_uv.g4i
@@ -0,0 +1,28 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+
+mov (1) g115.8<1>UD 0x07000FUD {align1}; // 8*16/32=4
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g45.0<1>UW g115<8,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+mov (1) g115.8<1>UD 0xFUD {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 1 {align1};//U
+send (16) 0 g49.0<1>UW g115<8,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 1 {align1};//V
+
+avg (16) g32.0<1>UW g40.0<16,8,1>UB g41.0<16,8,1>UB {align1};
+avg (16) g33.0<1>UW g41.0<16,8,1>UB g42.0<16,8,1>UB {align1};
+avg (16) g34.0<1>UW g42.0<16,8,1>UB g43.0<16,8,1>UB {align1};
+avg (16) g35.0<1>UW g43.0<16,8,1>UB g44.0<16,8,1>UB {align1};
+
+avg (16) g36.0<1>UW g45.0<16,8,1>UB g46.0<16,8,1>UB {align1};
+avg (16) g37.0<1>UW g46.0<16,8,1>UB g47.0<16,8,1>UB {align1};
+avg (16) g38.0<1>UW g47.0<16,8,1>UB g48.0<16,8,1>UB {align1};
+avg (16) g39.0<1>UW g48.0<16,8,1>UB g49.0<16,8,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_field_x0y1_y.g4i b/src/xvmc/shader/vld/read_field_x0y1_y.g4i
new file mode 100644
index 0000000..7a7909f
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x0y1_y.g4i
@@ -0,0 +1,60 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g42.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g46.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g56.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+
+avg.sat (16) g32.0<1>UW g40.0<16,16,1>UB g42.0<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g42.0<16,16,1>UB g44.0<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g44.0<16,16,1>UB g46.0<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g46.0<16,16,1>UB g48.0<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g48.0<16,16,1>UB g50.0<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g50.0<16,16,1>UB g52.0<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g52.0<16,16,1>UB g54.0<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g54.0<16,16,1>UB g56.0<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_field_x1y0_uv.g4i b/src/xvmc/shader/vld/read_field_x1y0_uv.g4i
new file mode 100644
index 0000000..4c36438
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x1y0_uv.g4i
@@ -0,0 +1,24 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+
+mov (1) g115.8<1>UD 0x07000FUD {align1}; // 8*16/32=4
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+
+avg (16) g32.0<1>UW g40.0<16,8,1>UB g40.1<16,8,1>UB {align1};
+avg (16) g33.0<1>UW g41.0<16,8,1>UB g41.1<16,8,1>UB {align1};
+avg (16) g34.0<1>UW g42.0<16,8,1>UB g42.1<16,8,1>UB {align1};
+avg (16) g35.0<1>UW g43.0<16,8,1>UB g43.1<16,8,1>UB {align1};
+
+avg (16) g36.0<1>UW g44.0<16,8,1>UB g44.1<16,8,1>UB {align1};
+avg (16) g37.0<1>UW g45.0<16,8,1>UB g45.1<16,8,1>UB {align1};
+avg (16) g38.0<1>UW g46.0<16,8,1>UB g46.1<16,8,1>UB {align1};
+avg (16) g39.0<1>UW g47.0<16,8,1>UB g47.1<16,8,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_field_x1y0_y.g4i b/src/xvmc/shader/vld/read_field_x1y0_y.g4i
new file mode 100644
index 0000000..c8ff505
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x1y0_y.g4i
@@ -0,0 +1,57 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g42.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g46.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+
+avg.sat (16) g32.0<1>UW g40.0<16,16,1>UB g40.1<16,16,1>UB {align1};
+avg.sat (16) g33.0<1>UW g42.0<16,16,1>UB g42.1<16,16,1>UB {align1};
+avg.sat (16) g34.0<1>UW g44.0<16,16,1>UB g44.1<16,16,1>UB {align1};
+avg.sat (16) g35.0<1>UW g46.0<16,16,1>UB g46.1<16,16,1>UB {align1};
+avg.sat (16) g36.0<1>UW g48.0<16,16,1>UB g48.1<16,16,1>UB {align1};
+avg.sat (16) g37.0<1>UW g50.0<16,16,1>UB g50.1<16,16,1>UB {align1};
+avg.sat (16) g38.0<1>UW g52.0<16,16,1>UB g52.1<16,16,1>UB {align1};
+avg.sat (16) g39.0<1>UW g54.0<16,16,1>UB g54.1<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_field_x1y1_uv.g4i b/src/xvmc/shader/vld/read_field_x1y1_uv.g4i
new file mode 100644
index 0000000..816dd72
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x1y1_uv.g4i
@@ -0,0 +1,53 @@
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (1) g115.8<1>UD 0x07000FUD {align1};
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 4 {align1};//U
+send (16) 0 g45.0<1>UW g115<8,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 4 {align1};//V
+mov (1) g115.8<1>UD 0x01000FUD {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(surface_u, 2, 0, 2) mlen 1 rlen 1 {align1};//U
+send (16) 0 g49.0<1>UW g115<8,8,1>UW read(surface_v, 2, 0, 2) mlen 1 rlen 1 {align1};//V
+//U
+add (16) g32.0<1>UW g40.0<16,8,1>UB g41.0<16,8,1>UB {align1};
+add (16) g33.0<1>UW g41.0<16,8,1>UB g42.0<16,8,1>UB {align1};
+add (16) g34.0<1>UW g42.0<16,8,1>UB g43.0<16,8,1>UB {align1};
+add (16) g35.0<1>UW g43.0<16,8,1>UB g44.0<16,8,1>UB {align1};
+
+add (16) g32.0<1>UW g32.0<16,8,1>UW g40.1<16,8,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,8,1>UW g41.1<16,8,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,8,1>UW g42.1<16,8,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,8,1>UW g43.1<16,8,1>UB {align1};
+
+add (16) g32.0<1>UW g32.0<16,8,1>UW g41.1<16,8,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,8,1>UW g42.1<16,8,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,8,1>UW g43.1<16,8,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,8,1>UW g44.1<16,8,1>UB {align1};
+//V
+add (16) g36.0<1>UW g45.0<16,8,1>UB g46.0<16,8,1>UB {align1};
+add (16) g37.0<1>UW g46.0<16,8,1>UB g47.0<16,8,1>UB {align1};
+add (16) g38.0<1>UW g47.0<16,8,1>UB g48.0<16,8,1>UB {align1};
+add (16) g39.0<1>UW g48.0<16,8,1>UB g49.0<16,8,1>UB {align1};
+
+add (16) g36.0<1>UW g36.0<16,8,1>UW g45.1<16,8,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,8,1>UW g46.1<16,8,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,8,1>UW g47.1<16,8,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,8,1>UW g48.1<16,8,1>UB {align1};
+
+add (16) g36.0<1>UW g36.0<16,8,1>UW g46.1<16,8,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,8,1>UW g47.1<16,8,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,8,1>UW g48.1<16,8,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,8,1>UW g49.1<16,8,1>UB {align1};
+
+shr (32) g32.0<1>UW g32.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g34.0<1>UW g34.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g36.0<1>UW g36.0<16,16,1>UW 2UW {align1 compr};
+shr (32) g38.0<1>UW g38.0<16,16,1>UW 2UW {align1 compr};
+
diff --git a/src/xvmc/shader/vld/read_field_x1y1_y.g4i b/src/xvmc/shader/vld/read_field_x1y1_y.g4i
new file mode 100644
index 0000000..dcc9ebf
--- /dev/null
+++ b/src/xvmc/shader/vld/read_field_x1y1_y.g4i
@@ -0,0 +1,87 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data
+ g115: message descriptor for reading reference data */
+mov (1) g115.8<1>UD 0x01FUD {align1};
+send (16) 0 g40.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g42.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g44.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+send (16) 0 g46.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 2UD {align1};
+mov (1) g115.8<1>UD 0x07001FUD {align1};
+send (16) 0 g48.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 8 {align1};
+add (1) g115.4<1>UD g115.4<1,1,1>UD 8UD {align1};
+mov (1) g115.8<1>UD 0x1FUD {align1};
+send (16) 0 g56.0<1>UW g115<8,8,1>UW read(surface,2,0,2) mlen 1 rlen 1 {align1};
+
+add (16) g32.0<1>UW g40.0<16,16,1>UB g42.0<16,16,1>UB {align1};
+add (16) g33.0<1>UW g42.0<16,16,1>UB g44.0<16,16,1>UB {align1};
+add (16) g34.0<1>UW g44.0<16,16,1>UB g46.0<16,16,1>UB {align1};
+add (16) g35.0<1>UW g46.0<16,16,1>UB g48.0<16,16,1>UB {align1};
+add (16) g36.0<1>UW g48.0<16,16,1>UB g50.0<16,16,1>UB {align1};
+add (16) g37.0<1>UW g50.0<16,16,1>UB g52.0<16,16,1>UB {align1};
+add (16) g38.0<1>UW g52.0<16,16,1>UB g54.0<16,16,1>UB {align1};
+add (16) g39.0<1>UW g54.0<16,16,1>UB g56.0<16,16,1>UB {align1};
+
+add (16) g32.0<1>UW g32.0<16,16,1>UW g40.1<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g42.1<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g44.1<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g46.1<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g48.1<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g50.1<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g52.1<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g54.1<16,16,1>UB {align1};
+
+add (16) g32.0<1>UW g32.0<16,16,1>UW g42.1<16,16,1>UB {align1};
+add (16) g33.0<1>UW g33.0<16,16,1>UW g44.1<16,16,1>UB {align1};
+add (16) g34.0<1>UW g34.0<16,16,1>UW g46.1<16,16,1>UB {align1};
+add (16) g35.0<1>UW g35.0<16,16,1>UW g48.1<16,16,1>UB {align1};
+add (16) g36.0<1>UW g36.0<16,16,1>UW g50.1<16,16,1>UB {align1};
+add (16) g37.0<1>UW g37.0<16,16,1>UW g52.1<16,16,1>UB {align1};
+add (16) g38.0<1>UW g38.0<16,16,1>UW g54.1<16,16,1>UB {align1};
+add (16) g39.0<1>UW g39.0<16,16,1>UW g56.1<16,16,1>UB {align1};
+
+shr (16) g32.0<1>UW g32.0<16,16,1>UW 2UW {align1};
+shr (16) g33.0<1>UW g33.0<16,16,1>UW 2UW {align1};
+shr (16) g34.0<1>UW g34.0<16,16,1>UW 2UW {align1};
+shr (16) g35.0<1>UW g35.0<16,16,1>UW 2UW {align1};
+shr (16) g36.0<1>UW g36.0<16,16,1>UW 2UW {align1};
+shr (16) g37.0<1>UW g37.0<16,16,1>UW 2UW {align1};
+shr (16) g38.0<1>UW g38.0<16,16,1>UW 2UW {align1};
+shr (16) g39.0<1>UW g39.0<16,16,1>UW 2UW {align1};
diff --git a/src/xvmc/shader/vld/read_frame_x0y0_uv.g4i b/src/xvmc/shader/vld/read_frame_x0y0_uv.g4i
new file mode 100644
index 0000000..63f898f
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x0y0_uv.g4i
@@ -0,0 +1,49 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (1) g32.8<1>UD 0x007000fUD {align1};
+send (16) 0 g36.0<1>UW g32<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g40.0<1>UW g32<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+
+mov (16) g74.0<1>UW g36.0<16,8,1>UB {align1};
+mov (16) g75.0<1>UW g37.0<16,8,1>UB {align1};
+mov (16) g76.0<1>UW g38.0<16,8,1>UB {align1};
+mov (16) g77.0<1>UW g39.0<16,8,1>UB {align1};
+mov (16) g78.0<1>UW g40.0<16,8,1>UB {align1};
+mov (16) g79.0<1>UW g41.0<16,8,1>UB {align1};
+mov (16) g80.0<1>UW g42.0<16,8,1>UB {align1};
+mov (16) g81.0<1>UW g43.0<16,8,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_frame_x0y0_y.g4i b/src/xvmc/shader/vld/read_frame_x0y0_y.g4i
new file mode 100644
index 0000000..3ab5ccd
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x0y0_y.g4i
@@ -0,0 +1,58 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+mov (16) g58.0<1>UW g38.0<16,16,1>UB {align1};
+mov (16) g59.0<1>UW g39.0<16,16,1>UB {align1};
+mov (16) g60.0<1>UW g40.0<16,16,1>UB {align1};
+mov (16) g61.0<1>UW g41.0<16,16,1>UB {align1};
+mov (16) g62.0<1>UW g42.0<16,16,1>UB {align1};
+mov (16) g63.0<1>UW g43.0<16,16,1>UB {align1};
+mov (16) g64.0<1>UW g44.0<16,16,1>UB {align1};
+mov (16) g65.0<1>UW g45.0<16,16,1>UB {align1};
+mov (16) g66.0<1>UW g46.0<16,16,1>UB {align1};
+mov (16) g67.0<1>UW g47.0<16,16,1>UB {align1};
+mov (16) g68.0<1>UW g48.0<16,16,1>UB {align1};
+mov (16) g69.0<1>UW g49.0<16,16,1>UB {align1};
+mov (16) g70.0<1>UW g50.0<16,16,1>UB {align1};
+mov (16) g71.0<1>UW g51.0<16,16,1>UB {align1};
+mov (16) g72.0<1>UW g52.0<16,16,1>UB {align1};
+mov (16) g73.0<1>UW g53.0<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_frame_x0y1_uv.g4i b/src/xvmc/shader/vld/read_frame_x0y1_uv.g4i
new file mode 100644
index 0000000..6351ec5
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x0y1_uv.g4i
@@ -0,0 +1,56 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDINg BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINgEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIgHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAgES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISINg FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINgS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+send (16) 0 g34.0<1>UW g32<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 8 {align1}; //U
+send (16) 0 g44.0<1>UW g32<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 8 {align1}; //V
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g42.0<1>UW g32<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 1 {align1}; //U
+send (16) 0 g52.0<1>UW g32<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 1 {align1}; //V
+
+//U
+avg (8) g74.0<1>UW g34.0<8,8,1>UB g35.0<8,8,1>UB {align1};
+avg (8) g74.16<1>UW g35.0<8,8,1>UB g36.0<8,8,1>UB {align1};
+avg (8) g75.0<1>UW g36.0<8,8,1>UB g37.0<8,8,1>UB {align1};
+avg (8) g75.16<1>UW g37.0<8,8,1>UB g38.0<8,8,1>UB {align1};
+avg (8) g76.0<1>UW g38.0<8,8,1>UB g39.0<8,8,1>UB {align1};
+avg (8) g76.16<1>UW g39.0<8,8,1>UB g40.0<8,8,1>UB {align1};
+avg (8) g77.0<1>UW g40.0<8,8,1>UB g41.0<8,8,1>UB {align1};
+avg (8) g77.16<1>UW g41.0<8,8,1>UB g42.0<8,8,1>UB {align1};
+
+//V
+avg (8) g78.0<1>UW g44.0<8,8,1>UB g45.0<8,8,1>UB {align1};
+avg (8) g78.16<1>UW g45.0<8,8,1>UB g46.0<8,8,1>UB {align1};
+avg (8) g79.0<1>UW g46.0<8,8,1>UB g47.0<8,8,1>UB {align1};
+avg (8) g79.16<1>UW g47.0<8,8,1>UB g48.0<8,8,1>UB {align1};
+avg (8) g80.0<1>UW g48.0<8,8,1>UB g49.0<8,8,1>UB {align1};
+avg (8) g80.16<1>UW g49.0<8,8,1>UB g50.0<8,8,1>UB {align1};
+avg (8) g81.0<1>UW g50.0<8,8,1>UB g51.0<8,8,1>UB {align1};
+avg (8) g81.16<1>UW g51.0<8,8,1>UB g52.0<8,8,1>UB {align1};
+
diff --git a/src/xvmc/shader/vld/read_frame_x0y1_y.g4i b/src/xvmc/shader/vld/read_frame_x0y1_y.g4i
new file mode 100644
index 0000000..db3dcc5
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x0y1_y.g4i
@@ -0,0 +1,61 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g54.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 1 {align1};
+
+avg.sat (16) g58.0<1>UW g38.0<16,16,1>UB g39.0<16,16,1>UB {align1};
+avg.sat (16) g59.0<1>UW g39.0<16,16,1>UB g40.0<16,16,1>UB {align1};
+avg.sat (16) g60.0<1>UW g40.0<16,16,1>UB g41.0<16,16,1>UB {align1};
+avg.sat (16) g61.0<1>UW g41.0<16,16,1>UB g42.0<16,16,1>UB {align1};
+avg.sat (16) g62.0<1>UW g42.0<16,16,1>UB g43.0<16,16,1>UB {align1};
+avg.sat (16) g63.0<1>UW g43.0<16,16,1>UB g44.0<16,16,1>UB {align1};
+avg.sat (16) g64.0<1>UW g44.0<16,16,1>UB g45.0<16,16,1>UB {align1};
+avg.sat (16) g65.0<1>UW g45.0<16,16,1>UB g46.0<16,16,1>UB {align1};
+avg.sat (16) g66.0<1>UW g46.0<16,16,1>UB g47.0<16,16,1>UB {align1};
+avg.sat (16) g67.0<1>UW g47.0<16,16,1>UB g48.0<16,16,1>UB {align1};
+avg.sat (16) g68.0<1>UW g48.0<16,16,1>UB g49.0<16,16,1>UB {align1};
+avg.sat (16) g69.0<1>UW g49.0<16,16,1>UB g50.0<16,16,1>UB {align1};
+avg.sat (16) g70.0<1>UW g50.0<16,16,1>UB g51.0<16,16,1>UB {align1};
+avg.sat (16) g71.0<1>UW g51.0<16,16,1>UB g52.0<16,16,1>UB {align1};
+avg.sat (16) g72.0<1>UW g52.0<16,16,1>UB g53.0<16,16,1>UB {align1};
+avg.sat (16) g73.0<1>UW g53.0<16,16,1>UB g54.0<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_frame_x1y0_uv.g4i b/src/xvmc/shader/vld/read_frame_x1y0_uv.g4i
new file mode 100644
index 0000000..05736f0
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x1y0_uv.g4i
@@ -0,0 +1,42 @@
+/*
+ * Copyright © 2008 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Zhang Hua jun <huajun.zhang@intel.com>
+ * Xing Dong sheng <dongsheng.xing@intel.com>
+ *
+ */
+
+mov (1) g32.8<1>UD 0x007000fUD {align1};
+send (16) 0 g34.0<1>UW g32<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 4 {align1};
+send (16) 0 g44.0<1>UW g32<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 4 {align1};
+
+avg (16) g74.0<1>UW g34.0<16,8,1>UB g34.1<16,8,1>UB{align1};
+avg (16) g75.0<1>UW g35.0<16,8,1>UB g35.1<16,8,1>UB{align1};
+avg (16) g76.0<1>UW g36.0<16,8,1>UB g36.1<16,8,1>UB{align1};
+avg (16) g77.0<1>UW g37.0<16,8,1>UB g37.1<16,8,1>UB{align1};
+
+avg (16) g78.0<1>UW g44.0<16,8,1>UB g44.1<16,8,1>UB{align1};
+avg (16) g79.0<1>UW g45.0<16,8,1>UB g45.1<16,8,1>UB{align1};
+avg (16) g80.0<1>UW g46.0<16,8,1>UB g46.1<16,8,1>UB{align1};
+avg (16) g81.0<1>UW g47.0<16,8,1>UB g47.1<16,8,1>UB{align1};
diff --git a/src/xvmc/shader/vld/read_frame_x1y0_y.g4i b/src/xvmc/shader/vld/read_frame_x1y0_y.g4i
new file mode 100644
index 0000000..c236d11
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x1y0_y.g4i
@@ -0,0 +1,58 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+
+avg.sat (16) g58.0<1>UW g38.0<16,16,1>UB g38.1<16,16,1>UB {align1};
+avg.sat (16) g59.0<1>UW g39.0<16,16,1>UB g39.1<16,16,1>UB {align1};
+avg.sat (16) g60.0<1>UW g40.0<16,16,1>UB g40.1<16,16,1>UB {align1};
+avg.sat (16) g61.0<1>UW g41.0<16,16,1>UB g41.1<16,16,1>UB {align1};
+avg.sat (16) g62.0<1>UW g42.0<16,16,1>UB g42.1<16,16,1>UB {align1};
+avg.sat (16) g63.0<1>UW g43.0<16,16,1>UB g43.1<16,16,1>UB {align1};
+avg.sat (16) g64.0<1>UW g44.0<16,16,1>UB g44.1<16,16,1>UB {align1};
+avg.sat (16) g65.0<1>UW g45.0<16,16,1>UB g45.1<16,16,1>UB {align1};
+avg.sat (16) g66.0<1>UW g46.0<16,16,1>UB g46.1<16,16,1>UB {align1};
+avg.sat (16) g67.0<1>UW g47.0<16,16,1>UB g47.1<16,16,1>UB {align1};
+avg.sat (16) g68.0<1>UW g48.0<16,16,1>UB g48.1<16,16,1>UB {align1};
+avg.sat (16) g69.0<1>UW g49.0<16,16,1>UB g49.1<16,16,1>UB {align1};
+avg.sat (16) g70.0<1>UW g50.0<16,16,1>UB g50.1<16,16,1>UB {align1};
+avg.sat (16) g71.0<1>UW g51.0<16,16,1>UB g51.1<16,16,1>UB {align1};
+avg.sat (16) g72.0<1>UW g52.0<16,16,1>UB g52.1<16,16,1>UB {align1};
+avg.sat (16) g73.0<1>UW g53.0<16,16,1>UB g53.1<16,16,1>UB {align1};
diff --git a/src/xvmc/shader/vld/read_frame_x1y1_uv.g4i b/src/xvmc/shader/vld/read_frame_x1y1_uv.g4i
new file mode 100644
index 0000000..2f741fa
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x1y1_uv.g4i
@@ -0,0 +1,74 @@
+/*
+ */
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+send (16) 0 g34.0<1>UW g32<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 8 {align1}; //U
+send (16) 0 g44.0<1>UW g32<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 8 {align1}; //V
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g42.0<1>UW g32<8,8,1>UW read(input_surface1, 2, 0, 2) mlen 1 rlen 1 {align1}; //U
+send (16) 0 g52.0<1>UW g32<8,8,1>UW read(input_surface2, 2, 0, 2) mlen 1 rlen 1 {align1}; //V
+
+//U
+add (8) g74.0<1>UW g34.0<8,8,1>UB g34.1<8,8,1>UB {align1};
+add (8) g74.16<1>UW g35.0<8,8,1>UB g35.1<8,8,1>UB {align1};
+add (8) g75.0<1>UW g36.0<8,8,1>UB g36.1<8,8,1>UB {align1};
+add (8) g75.16<1>UW g37.0<8,8,1>UB g37.1<8,8,1>UB {align1};
+add (8) g76.0<1>UW g38.0<8,8,1>UB g38.1<8,8,1>UB {align1};
+add (8) g76.16<1>UW g39.0<8,8,1>UB g39.1<8,8,1>UB {align1};
+add (8) g77.0<1>UW g40.0<8,8,1>UB g40.1<8,8,1>UB {align1};
+add (8) g77.16<1>UW g41.0<8,8,1>UB g41.1<8,8,1>UB {align1};
+
+add (8) g74.0<1>UW g74.0<8,8,1>UW g35.0<8,8,1>UB {align1};
+add (8) g74.16<1>UW g74.16<8,8,1>UW g36.0<8,8,1>UB {align1};
+add (8) g75.0<1>UW g75.0<8,8,1>UW g37.0<8,8,1>UB {align1};
+add (8) g75.16<1>UW g75.16<8,8,1>UW g38.0<8,8,1>UB {align1};
+add (8) g76.0<1>UW g76.0<8,8,1>UW g39.0<8,8,1>UB {align1};
+add (8) g76.16<1>UW g76.16<8,8,1>UW g40.0<8,8,1>UB {align1};
+add (8) g77.0<1>UW g77.0<8,8,1>UW g41.0<8,8,1>UB {align1};
+add (8) g77.16<1>UW g77.16<8,8,1>UW g42.0<8,8,1>UB {align1};
+
+add (8) g74.0<1>UW g74.0<8,8,1>UW g35.1<8,8,1>UB {align1};
+add (8) g74.16<1>UW g74.16<8,8,1>UW g36.1<8,8,1>UB {align1};
+add (8) g75.0<1>UW g75.0<8,8,1>UW g37.1<8,8,1>UB {align1};
+add (8) g75.16<1>UW g75.16<8,8,1>UW g38.1<8,8,1>UB {align1};
+add (8) g76.0<1>UW g76.0<8,8,1>UW g39.1<8,8,1>UB {align1};
+add (8) g76.16<1>UW g76.16<8,8,1>UW g40.1<8,8,1>UB {align1};
+add (8) g77.0<1>UW g77.0<8,8,1>UW g41.1<8,8,1>UB {align1};
+add (8) g77.16<1>UW g77.16<8,8,1>UW g42.1<8,8,1>UB {align1};
+
+//V
+add (8) g78.0<1>UW g44.0<8,8,1>UB g44.1<8,8,1>UB {align1};
+add (8) g78.16<1>UW g45.0<8,8,1>UB g45.1<8,8,1>UB {align1};
+add (8) g79.0<1>UW g46.0<8,8,1>UB g46.1<8,8,1>UB {align1};
+add (8) g79.16<1>UW g47.0<8,8,1>UB g47.1<8,8,1>UB {align1};
+add (8) g80.0<1>UW g48.0<8,8,1>UB g48.1<8,8,1>UB {align1};
+add (8) g80.16<1>UW g49.0<8,8,1>UB g49.1<8,8,1>UB {align1};
+add (8) g81.0<1>UW g50.0<8,8,1>UB g50.1<8,8,1>UB {align1};
+add (8) g81.16<1>UW g51.0<8,8,1>UB g51.1<8,8,1>UB {align1};
+
+add (8) g78.0<1>UW g78.0<8,8,1>UW g45.0<8,8,1>UB {align1};
+add (8) g78.16<1>UW g78.16<8,8,1>UW g46.0<8,8,1>UB {align1};
+add (8) g79.0<1>UW g79.0<8,8,1>UW g47.0<8,8,1>UB {align1};
+add (8) g79.16<1>UW g79.16<8,8,1>UW g48.0<8,8,1>UB {align1};
+add (8) g80.0<1>UW g80.0<8,8,1>UW g49.0<8,8,1>UB {align1};
+add (8) g80.16<1>UW g80.16<8,8,1>UW g50.0<8,8,1>UB {align1};
+add (8) g81.0<1>UW g81.0<8,8,1>UW g51.0<8,8,1>UB {align1};
+add (8) g81.16<1>UW g81.16<8,8,1>UW g52.0<8,8,1>UB {align1};
+
+add (8) g78.0<1>UW g78.0<8,8,1>UW g45.1<8,8,1>UB {align1};
+add (8) g78.16<1>UW g78.16<8,8,1>UW g46.1<8,8,1>UB {align1};
+add (8) g79.0<1>UW g79.0<8,8,1>UW g47.1<8,8,1>UB {align1};
+add (8) g79.16<1>UW g79.16<8,8,1>UW g48.1<8,8,1>UB {align1};
+add (8) g80.0<1>UW g80.0<8,8,1>UW g49.1<8,8,1>UB {align1};
+add (8) g80.16<1>UW g80.16<8,8,1>UW g50.1<8,8,1>UB {align1};
+add (8) g81.0<1>UW g81.0<8,8,1>UW g51.1<8,8,1>UB {align1};
+add (8) g81.16<1>UW g81.16<8,8,1>UW g52.1<8,8,1>UB {align1};
+
+shr (16) g74.0<1>UW g74.0<16,16,1>UW 2UW {align1};
+shr (16) g75.0<1>UW g75.0<16,16,1>UW 2UW {align1};
+shr (16) g76.0<1>UW g76.0<16,16,1>UW 2UW {align1};
+shr (16) g77.0<1>UW g77.0<16,16,1>UW 2UW {align1};
+shr (16) g78.0<1>UW g78.0<16,16,1>UW 2UW {align1};
+shr (16) g79.0<1>UW g79.0<16,16,1>UW 2UW {align1};
+shr (16) g80.0<1>UW g80.0<16,16,1>UW 2UW {align1};
+shr (16) g81.0<1>UW g81.0<16,16,1>UW 2UW {align1};
diff --git a/src/xvmc/shader/vld/read_frame_x1y1_y.g4i b/src/xvmc/shader/vld/read_frame_x1y1_y.g4i
new file mode 100644
index 0000000..990927d
--- /dev/null
+++ b/src/xvmc/shader/vld/read_frame_x1y1_y.g4i
@@ -0,0 +1,112 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ * Yan Li <li.l.yan@intel.com>
+ * Liu Xi bin<xibin.liu@intel.com>
+ */
+/* GRF allocation:
+ g1~g30: constant buffer
+ g1~g2:intra IQ matrix
+ g3~g4:non intra IQ matrix
+ g5~g20:IDCT table
+ g31: thread payload
+ g32: message descriptor for reading reference data
+ g58~g81:reference data
+ g82: thread payload backup
+ g83~g106:IDCT data */
+mov (1) g32.8<1>UD 0x007001FUD {align1};
+send (16) 0 g38.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+send (16) 0 g46.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 8 {align1};
+add (1) g32.4<1>UD g32.4<1,1,1>UD 8UD {align1};
+mov (1) g32.8<1>UD 0x1FUD {align1};
+send (16) 0 g54.0<1>UW g32<8,8,1>UW read(input_surface, 2, 0, 2) mlen 1 rlen 1 {align1};
+
+add (16) g58.0<1>UW g38.0<16,16,1>UB g38.1<16,16,1>UB {align1};
+add (16) g59.0<1>UW g39.0<16,16,1>UB g39.1<16,16,1>UB {align1};
+add (16) g60.0<1>UW g40.0<16,16,1>UB g40.1<16,16,1>UB {align1};
+add (16) g61.0<1>UW g41.0<16,16,1>UB g41.1<16,16,1>UB {align1};
+add (16) g62.0<1>UW g42.0<16,16,1>UB g42.1<16,16,1>UB {align1};
+add (16) g63.0<1>UW g43.0<16,16,1>UB g43.1<16,16,1>UB {align1};
+add (16) g64.0<1>UW g44.0<16,16,1>UB g44.1<16,16,1>UB {align1};
+add (16) g65.0<1>UW g45.0<16,16,1>UB g45.1<16,16,1>UB {align1};
+add (16) g66.0<1>UW g46.0<16,16,1>UB g46.1<16,16,1>UB {align1};
+add (16) g67.0<1>UW g47.0<16,16,1>UB g47.1<16,16,1>UB {align1};
+add (16) g68.0<1>UW g48.0<16,16,1>UB g48.1<16,16,1>UB {align1};
+add (16) g69.0<1>UW g49.0<16,16,1>UB g49.1<16,16,1>UB {align1};
+add (16) g70.0<1>UW g50.0<16,16,1>UB g50.1<16,16,1>UB {align1};
+add (16) g71.0<1>UW g51.0<16,16,1>UB g51.1<16,16,1>UB {align1};
+add (16) g72.0<1>UW g52.0<16,16,1>UB g52.1<16,16,1>UB {align1};
+add (16) g73.0<1>UW g53.0<16,16,1>UB g53.1<16,16,1>UB {align1};
+
+add (16) g58.0<1>UW g58.0<16,16,1>UW g39.0<16,16,1>UB {align1};
+add (16) g59.0<1>UW g59.0<16,16,1>UW g40.0<16,16,1>UB {align1};
+add (16) g60.0<1>UW g60.0<16,16,1>UW g41.0<16,16,1>UB {align1};
+add (16) g61.0<1>UW g61.0<16,16,1>UW g42.0<16,16,1>UB {align1};
+add (16) g62.0<1>UW g62.0<16,16,1>UW g43.0<16,16,1>UB {align1};
+add (16) g63.0<1>UW g63.0<16,16,1>UW g44.0<16,16,1>UB {align1};
+add (16) g64.0<1>UW g64.0<16,16,1>UW g45.0<16,16,1>UB {align1};
+add (16) g65.0<1>UW g65.0<16,16,1>UW g46.0<16,16,1>UB {align1};
+add (16) g66.0<1>UW g66.0<16,16,1>UW g47.0<16,16,1>UB {align1};
+add (16) g67.0<1>UW g67.0<16,16,1>UW g48.0<16,16,1>UB {align1};
+add (16) g68.0<1>UW g68.0<16,16,1>UW g49.0<16,16,1>UB {align1};
+add (16) g69.0<1>UW g69.0<16,16,1>UW g50.0<16,16,1>UB {align1};
+add (16) g70.0<1>UW g70.0<16,16,1>UW g51.0<16,16,1>UB {align1};
+add (16) g71.0<1>UW g71.0<16,16,1>UW g52.0<16,16,1>UB {align1};
+add (16) g72.0<1>UW g72.0<16,16,1>UW g53.0<16,16,1>UB {align1};
+add (16) g73.0<1>UW g73.0<16,16,1>UW g54.0<16,16,1>UB {align1};
+
+add (16) g58.0<1>UW g58.0<16,16,1>UW g39.1<16,16,1>UB {align1};
+add (16) g59.0<1>UW g59.0<16,16,1>UW g40.1<16,16,1>UB {align1};
+add (16) g60.0<1>UW g60.0<16,16,1>UW g41.1<16,16,1>UB {align1};
+add (16) g61.0<1>UW g61.0<16,16,1>UW g42.1<16,16,1>UB {align1};
+add (16) g62.0<1>UW g62.0<16,16,1>UW g43.1<16,16,1>UB {align1};
+add (16) g63.0<1>UW g63.0<16,16,1>UW g44.1<16,16,1>UB {align1};
+add (16) g64.0<1>UW g64.0<16,16,1>UW g45.1<16,16,1>UB {align1};
+add (16) g65.0<1>UW g65.0<16,16,1>UW g46.1<16,16,1>UB {align1};
+add (16) g66.0<1>UW g66.0<16,16,1>UW g47.1<16,16,1>UB {align1};
+add (16) g67.0<1>UW g67.0<16,16,1>UW g48.1<16,16,1>UB {align1};
+add (16) g68.0<1>UW g68.0<16,16,1>UW g49.1<16,16,1>UB {align1};
+add (16) g69.0<1>UW g69.0<16,16,1>UW g50.1<16,16,1>UB {align1};
+add (16) g70.0<1>UW g70.0<16,16,1>UW g51.1<16,16,1>UB {align1};
+add (16) g71.0<1>UW g71.0<16,16,1>UW g52.1<16,16,1>UB {align1};
+add (16) g72.0<1>UW g72.0<16,16,1>UW g53.1<16,16,1>UB {align1};
+add (16) g73.0<1>UW g73.0<16,16,1>UW g54.1<16,16,1>UB {align1};
+
+shr.sat (16) g58.0<1>UW g58.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g59.0<1>UW g59.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g60.0<1>UW g60.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g61.0<1>UW g61.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g62.0<1>UW g62.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g63.0<1>UW g63.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g64.0<1>UW g64.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g65.0<1>UW g65.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g66.0<1>UW g66.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g67.0<1>UW g67.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g68.0<1>UW g68.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g69.0<1>UW g69.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g70.0<1>UW g70.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g71.0<1>UW g71.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g72.0<1>UW g72.0<16,16,1>UW 2UW {align1};
+shr.sat (16) g73.0<1>UW g73.0<16,16,1>UW 2UW {align1};
diff --git a/src/xvmc/xvmc_vld.c b/src/xvmc/xvmc_vld.c
new file mode 100644
index 0000000..570e9b6
--- /dev/null
+++ b/src/xvmc/xvmc_vld.c
@@ -0,0 +1,1225 @@
+/*
+ * Copyright © 2009 Intel Corporation
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice (including the next
+ * paragraph) shall be included in all copies or substantial portions of the
+ * Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * Author:
+ * Zou Nan hai <nanhai.zou@intel.com>
+ */
+#include "intel_xvmc.h"
+#include "intel_hwmc.h"
+#include "i830_reg.h"
+#include "i965_reg.h"
+#include "brw_defines.h"
+#include "brw_structs.h"
+
+#ifndef ALIGN
+#define ALIGN(m,n) (((m) + (n) - 1) & ~((n) - 1))
+#endif
+
+#define BATCH_STRUCT(x) intelBatchbufferData(&x, sizeof(x), 0)
+#define VLD_MAX_SLICE_SIZE (32 * 1024)
+#define CS_SIZE 30
+#define URB_SIZE 384
+/* idct table */
+#define C0 23170
+#define C1 22725
+#define C2 21407
+#define C3 19266
+#define C4 16383
+#define C5 12873
+#define C6 8867
+#define C7 4520
+const uint32_t idct_table[] = {
+ C4, C1, C2, C3, C4, C5, C6, C7, //g5
+ C4, C1, C2, C3, C4, C5, C6, C7,
+ C4, C3, C6, -C7, -C4, -C1, -C2, -C5,
+ C4, C3, C6, -C7, -C4, -C1, -C2, -C5,
+ C4, C5, -C6, -C1, -C4, C7, C2, C3,
+ C4, C5, -C6, -C1, -C4, C7, C2, C3,
+ C4, C7, -C2, -C5, C4, C3, -C6, -C1,
+ C4, C7, -C2, -C5, C4, C3, -C6, -C1,
+ C4, -C7, -C2, C5, C4, -C3, -C6, C1,
+ C4, -C7, -C2, C5, C4, -C3, -C6, C1,
+ C4, -C5, -C6, C1, -C4, -C7, C2, -C3,
+ C4, -C5, -C6, C1, -C4, -C7, C2, -C3,
+ C4, -C3, C6, C7, -C4, C1, -C2, C5,
+ C4, -C3, C6, C7, -C4, C1, -C2, C5,
+ C4, -C1, C2, -C3, C4, -C5, C6, -C7,
+ C4, -C1, C2, -C3, C4, -C5, C6, -C7 //g20
+};
+
+#undef C0
+#undef C1
+#undef C2
+#undef C3
+#undef C4
+#undef C5
+#undef C6
+#undef C7
+
+#define INTERFACE_NUM 8
+enum interface {
+ FRAME_INTRA = 0,
+ FRAME_FRAME_PRED_FORWARD,
+ FRAME_FRAME_PRED_BACKWARD,
+ FRAME_FRAME_PRED_BIDIRECT,
+ FRAME_FIELD_PRED_FORWARD,
+ FRAME_FIELD_PRED_BACKWARD,
+ FRAME_FIELD_PRED_BIDIRECT,
+ LIB_INTERFACE
+};
+
+/*kernels for vld mode*/
+static uint32_t lib_kernel[][4] = {
+#include "shader/vld/lib.g4b"
+};
+
+static uint32_t ipicture_kernel[][4] = {
+#include "shader/vld/ipicture.g4b"
+};
+
+static uint32_t frame_forward_kernel[][4] = {
+#include "shader/vld/frame_forward.g4b"
+};
+
+static uint32_t frame_backward_kernel[][4] = {
+#include "shader/vld/frame_backward.g4b"
+};
+
+static uint32_t frame_f_b_kernel[][4] = {
+#include "shader/vld/frame_f_b.g4b"
+};
+
+static uint32_t field_forward_kernel[][4] = {
+#include "shader/vld/field_forward.g4b"
+};
+
+static uint32_t field_backward_kernel[][4] = {
+#include "shader/vld/field_backward.g4b"
+};
+
+static uint32_t field_f_b_kernel[][4] = {
+#include "shader/vld/field_f_b.g4b"
+};
+
+/* on Ironlake */
+static uint32_t lib_kernel_gen5[][4] = {
+#include "shader/vld/lib.g4b.gen5"
+};
+
+static uint32_t ipicture_kernel_gen5[][4] = {
+#include "shader/vld/ipicture.g4b.gen5"
+};
+
+static uint32_t frame_forward_kernel_gen5[][4] = {
+#include "shader/vld/frame_forward.g4b.gen5"
+};
+
+static uint32_t frame_backward_kernel_gen5[][4] = {
+#include "shader/vld/frame_backward.g4b.gen5"
+};
+
+static uint32_t frame_f_b_kernel_gen5[][4] = {
+#include "shader/vld/frame_f_b.g4b.gen5"
+};
+
+static uint32_t field_forward_kernel_gen5[][4] = {
+#include "shader/vld/field_forward.g4b.gen5"
+};
+
+static uint32_t field_backward_kernel_gen5[][4] = {
+#include "shader/vld/field_backward.g4b.gen5"
+};
+
+static uint32_t field_f_b_kernel_gen5[][4] = {
+#include "shader/vld/field_f_b.g4b.gen5"
+};
+
+/*kernels for mc mode*/
+static uint32_t lib_kernel_idct[][4] = {
+#include "shader/mc/lib_igd.g4b"
+};
+
+static uint32_t ipicture_kernel_idct[][4] = {
+#include "shader/mc/ipicture_igd.g4b"
+};
+
+static uint32_t frame_forward_kernel_idct[][4] = {
+#include "shader/mc/frame_forward_igd.g4b"
+};
+
+static uint32_t frame_backward_kernel_idct[][4] = {
+#include "shader/mc/frame_backward_igd.g4b"
+};
+
+static uint32_t frame_f_b_kernel_idct[][4] = {
+#include "shader/mc/frame_f_b_igd.g4b"
+};
+
+static uint32_t field_forward_kernel_idct[][4] = {
+#include "shader/mc/field_forward_igd.g4b"
+};
+
+static uint32_t field_backward_kernel_idct[][4] = {
+#include "shader/mc/field_backward_igd.g4b"
+};
+
+static uint32_t field_f_b_kernel_idct[][4] = {
+#include "shader/mc/field_f_b_igd.g4b"
+};
+
+/* on Ironlake */
+static uint32_t lib_kernel_idct_gen5[][4] = {
+#include "shader/mc/lib_igd.g4b.gen5"
+};
+
+static uint32_t ipicture_kernel_idct_gen5[][4] = {
+#include "shader/mc/ipicture_igd.g4b.gen5"
+};
+
+static uint32_t frame_forward_kernel_idct_gen5[][4] = {
+#include "shader/mc/frame_forward_igd.g4b.gen5"
+};
+
+static uint32_t frame_backward_kernel_idct_gen5[][4] = {
+#include "shader/mc/frame_backward_igd.g4b.gen5"
+};
+
+static uint32_t frame_f_b_kernel_idct_gen5[][4] = {
+#include "shader/mc/frame_f_b_igd.g4b.gen5"
+};
+
+static uint32_t field_forward_kernel_idct_gen5[][4] = {
+#include "shader/mc/field_forward_igd.g4b.gen5"
+};
+
+static uint32_t field_backward_kernel_idct_gen5[][4] = {
+#include "shader/mc/field_backward_igd.g4b.gen5"
+};
+
+static uint32_t field_f_b_kernel_idct_gen5[][4] = {
+#include "shader/mc/field_f_b_igd.g4b.gen5"
+};
+
+struct media_kernel {
+ uint32_t(*bin)[4];
+ int size;
+};
+static struct media_kernel media_kernels[] = {
+ /*kernels for vld mode */
+ {ipicture_kernel, sizeof(ipicture_kernel)}
+ ,
+ {frame_forward_kernel, sizeof(frame_forward_kernel)}
+ ,
+ {frame_backward_kernel, sizeof(frame_backward_kernel)}
+ ,
+ {frame_f_b_kernel, sizeof(frame_f_b_kernel)}
+ ,
+ {field_forward_kernel, sizeof(field_forward_kernel)}
+ ,
+ {field_backward_kernel, sizeof(field_backward_kernel)}
+ ,
+ {field_f_b_kernel, sizeof(field_f_b_kernel)}
+ ,
+ {lib_kernel, sizeof(lib_kernel)}
+ ,
+ /*kernels for mc mode */
+ {ipicture_kernel_idct, sizeof(ipicture_kernel_idct)}
+ ,
+ {frame_forward_kernel_idct, sizeof(frame_forward_kernel_idct)}
+ ,
+ {frame_backward_kernel_idct, sizeof(frame_backward_kernel_idct)}
+ ,
+ {frame_f_b_kernel_idct, sizeof(frame_f_b_kernel_idct)}
+ ,
+ {field_forward_kernel_idct, sizeof(field_forward_kernel_idct)}
+ ,
+ {field_backward_kernel_idct, sizeof(field_backward_kernel_idct)}
+ ,
+ {field_f_b_kernel_idct, sizeof(field_f_b_kernel_idct)}
+ ,
+ {lib_kernel_idct, sizeof(lib_kernel_idct)}
+};
+
+static struct media_kernel media_gen5_kernels[] = {
+ /*kernels for vld mode */
+ {ipicture_kernel_gen5, sizeof(ipicture_kernel_gen5)}
+ ,
+ {frame_forward_kernel_gen5, sizeof(frame_forward_kernel_gen5)}
+ ,
+ {frame_backward_kernel_gen5, sizeof(frame_backward_kernel_gen5)}
+ ,
+ {frame_f_b_kernel_gen5, sizeof(frame_f_b_kernel_gen5)}
+ ,
+ {field_forward_kernel_gen5, sizeof(field_forward_kernel_gen5)}
+ ,
+ {field_backward_kernel_gen5, sizeof(field_backward_kernel_gen5)}
+ ,
+ {field_f_b_kernel_gen5, sizeof(field_f_b_kernel_gen5)}
+ ,
+ {lib_kernel_gen5, sizeof(lib_kernel_gen5)}
+ ,
+ /*kernels for mc mode */
+ {ipicture_kernel_idct_gen5, sizeof(ipicture_kernel_idct_gen5)}
+ ,
+ {frame_forward_kernel_idct_gen5, sizeof(frame_forward_kernel_idct_gen5)}
+ ,
+ {frame_backward_kernel_idct_gen5,
+ sizeof(frame_backward_kernel_idct_gen5)}
+ ,
+ {frame_f_b_kernel_idct_gen5, sizeof(frame_f_b_kernel_idct_gen5)}
+ ,
+ {field_forward_kernel_idct_gen5, sizeof(field_forward_kernel_idct_gen5)}
+ ,
+ {field_backward_kernel_idct_gen5,
+ sizeof(field_backward_kernel_idct_gen5)}
+ ,
+ {field_f_b_kernel_idct_gen5, sizeof(field_f_b_kernel_idct_gen5)}
+ ,
+ {lib_kernel_idct_gen5, sizeof(lib_kernel_idct_gen5)}
+};
+
+#define MEDIA_KERNEL_NUM (sizeof(media_kernels)/sizeof(media_kernels[0]))
+
+struct media_kernel_obj {
+ dri_bo *bo;
+};
+
+struct interface_descriptor_obj {
+ dri_bo *bo;
+ struct media_kernel_obj kernels[MEDIA_KERNEL_NUM];
+};
+
+struct vfe_state_obj {
+ dri_bo *bo;
+ struct interface_descriptor_obj interface;
+};
+
+struct vld_state_obj {
+ dri_bo *bo;
+};
+
+struct surface_obj {
+ dri_bo *bo;
+};
+
+struct surface_state_obj {
+ struct surface_obj surface;
+ dri_bo *bo;
+};
+
+#define MAX_SURFACES 12
+struct binding_table_obj {
+ dri_bo *bo;
+ struct surface_state_obj surface_states[MAX_SURFACES];
+};
+
+struct slice_data_obj {
+ dri_bo *bo;
+};
+
+struct mb_data_obj {
+ dri_bo *bo;
+};
+
+struct cs_state_obj {
+ dri_bo *bo;
+};
+
+static struct media_state {
+ struct vfe_state_obj vfe_state;
+ struct vld_state_obj vld_state;
+ struct binding_table_obj binding_table;
+ struct cs_state_obj cs_object;
+ struct slice_data_obj slice_data;
+ struct mb_data_obj mb_data;
+} media_state;
+
+/* XvMCQMatrix * 2 + idct_table + 8 * kernel offset pointer */
+#define CS_OBJECT_SIZE (32*20 + sizeof(unsigned int) * 8)
+static void free_object(struct media_state *s)
+{
+ int i;
+#define FREE_ONE_BO(bo) \
+ if (bo) \
+ drm_intel_bo_unreference(bo)
+ FREE_ONE_BO(s->vfe_state.bo);
+ FREE_ONE_BO(s->vfe_state.interface.bo);
+ for (i = 0; i < MEDIA_KERNEL_NUM; i++)
+ FREE_ONE_BO(s->vfe_state.interface.kernels[i].bo);
+ FREE_ONE_BO(s->binding_table.bo);
+ for (i = 0; i < MAX_SURFACES; i++)
+ FREE_ONE_BO(s->binding_table.surface_states[i].bo);
+ FREE_ONE_BO(s->slice_data.bo);
+ FREE_ONE_BO(s->mb_data.bo);
+ FREE_ONE_BO(s->cs_object.bo);
+ FREE_ONE_BO(s->vld_state.bo);
+}
+
+static int alloc_object(struct media_state *s)
+{
+ int i;
+
+ for (i = 0; i < MAX_SURFACES; i++) {
+ s->binding_table.surface_states[i].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "surface_state",
+ sizeof(struct brw_surface_state),
+ 0x1000);
+ if (!s->binding_table.surface_states[i].bo)
+ goto out;
+ }
+ return 0;
+out:
+ free_object(s);
+ return BadAlloc;
+}
+
+static void flush()
+{
+#define FLUSH_STATE_CACHE 1
+ struct brw_mi_flush f;
+ memset(&f, 0, sizeof(f));
+ f.opcode = CMD_MI_FLUSH;
+ f.flags = (1 << FLUSH_STATE_CACHE);
+ BATCH_STRUCT(f);
+}
+
+static Status vfe_state(int vfe_mode)
+{
+ struct brw_vfe_state tmp, *vfe_state = &tmp;
+ memset(vfe_state, 0, sizeof(*vfe_state));
+ if (vfe_mode == VFE_VLD_MODE) {
+ vfe_state->vfe0.extend_vfe_state_present = 1;
+ } else {
+ vfe_state->vfe0.extend_vfe_state_present = 0;
+ }
+ vfe_state->vfe1.vfe_mode = vfe_mode;
+ vfe_state->vfe1.num_urb_entries = 1;
+ vfe_state->vfe1.children_present = 0;
+ vfe_state->vfe1.urb_entry_alloc_size = 2;
+ vfe_state->vfe1.max_threads = 31;
+ vfe_state->vfe2.interface_descriptor_base =
+ media_state.vfe_state.interface.bo->offset >> 4;
+
+ if (media_state.vfe_state.bo)
+ drm_intel_bo_unreference(media_state.vfe_state.bo);
+
+ media_state.vfe_state.bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "vfe state",
+ sizeof(struct
+ brw_vfe_state),
+ 0x1000);
+ if (!media_state.vfe_state.bo)
+ return BadAlloc;
+
+ drm_intel_bo_subdata(media_state.vfe_state.bo, 0, sizeof(tmp), &tmp);
+
+ drm_intel_bo_emit_reloc(media_state.vfe_state.bo,
+ offsetof(struct brw_vfe_state, vfe2),
+ media_state.vfe_state.interface.bo, 0,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+ return Success;
+}
+
+static Status interface_descriptor()
+{
+ int i;
+ struct brw_interface_descriptor tmp, *desc = &tmp;
+
+ if (media_state.vfe_state.interface.bo)
+ drm_intel_bo_unreference(media_state.vfe_state.interface.bo);
+
+ media_state.vfe_state.interface.bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "interfaces",
+ MEDIA_KERNEL_NUM *
+ sizeof(struct brw_interface_descriptor), 0x1000);
+ if (!media_state.vfe_state.interface.bo)
+ return BadAlloc;
+
+ for (i = 0; i < MEDIA_KERNEL_NUM; i++) {
+ memset(desc, 0, sizeof(*desc));
+ desc->desc0.grf_reg_blocks = 15;
+ desc->desc0.kernel_start_pointer =
+ media_state.vfe_state.interface.kernels[i].bo->offset >> 6;
+
+ desc->desc1.const_urb_entry_read_offset = 0;
+ desc->desc1.const_urb_entry_read_len = 30;
+
+ desc->desc3.binding_table_entry_count = MAX_SURFACES - 1;
+ desc->desc3.binding_table_pointer =
+ media_state.binding_table.bo->offset >> 5;
+
+ drm_intel_bo_subdata(media_state.vfe_state.interface.bo,
+ i * sizeof(tmp), sizeof(tmp), desc);
+
+ drm_intel_bo_emit_reloc(media_state.vfe_state.interface.bo,
+ i * sizeof(*desc) + offsetof(struct
+ brw_interface_descriptor,
+ desc0),
+ media_state.vfe_state.
+ interface.kernels[i].bo,
+ desc->desc0.grf_reg_blocks,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+
+ drm_intel_bo_emit_reloc(media_state.vfe_state.interface.bo,
+ i * sizeof(*desc) + offsetof(struct
+ brw_interface_descriptor,
+ desc3),
+ media_state.binding_table.bo,
+ desc->desc3.binding_table_entry_count,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+ }
+ return Success;
+}
+
+static int setup_media_kernels(struct intel_xvmc_hw_context *ctx)
+{
+ int i;
+
+ assert(MEDIA_KERNEL_NUM ==
+ sizeof(media_gen5_kernels) / sizeof(media_gen5_kernels[0]));
+
+ for (i = 0; i < MEDIA_KERNEL_NUM; i++) {
+ if (ctx->i965.is_igdng)
+ media_state.vfe_state.interface.kernels[i].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "kernel",
+ media_gen5_kernels[i].size,
+ 0x1000);
+ else
+ media_state.vfe_state.interface.kernels[i].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "kernels",
+ media_kernels[i].size, 0x1000);
+
+ if (!media_state.vfe_state.interface.kernels[i].bo)
+ goto out;
+ }
+
+ for (i = 0; i < MEDIA_KERNEL_NUM; i++) {
+ dri_bo *bo = media_state.vfe_state.interface.kernels[i].bo;
+
+ if (ctx->i965.is_igdng)
+ drm_intel_bo_subdata(bo, 0, media_gen5_kernels[i].size,
+ media_gen5_kernels[i].bin);
+ else
+ drm_intel_bo_subdata(bo, 0, media_kernels[i].size,
+ media_kernels[i].bin);
+ }
+ return 0;
+out:
+ free_object(&media_state);
+ return BadAlloc;
+}
+
+static Status binding_tables()
+{
+ unsigned int table[MAX_SURFACES];
+ int i;
+
+ if (media_state.binding_table.bo)
+ drm_intel_bo_unreference(media_state.binding_table.bo);
+ media_state.binding_table.bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "binding_table",
+ MAX_SURFACES * 4, 0x1000);
+ if (!media_state.binding_table.bo)
+ return BadAlloc;
+
+ for (i = 0; i < MAX_SURFACES; i++) {
+ table[i] =
+ media_state.binding_table.surface_states[i].bo->offset;
+ drm_intel_bo_emit_reloc(media_state.binding_table.bo,
+ i * sizeof(unsigned int),
+ media_state.
+ binding_table.surface_states[i].bo, 0,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
+ }
+
+ drm_intel_bo_subdata(media_state.binding_table.bo, 0, sizeof(table),
+ table);
+ return Success;
+}
+
+static Status cs_init(int interface_offset)
+{
+ char buf[CS_OBJECT_SIZE];
+ unsigned int *lib_reloc;
+ int i;
+
+ if (media_state.cs_object.bo)
+ drm_intel_bo_unreference(media_state.cs_object.bo);
+
+ media_state.cs_object.bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "cs object", CS_OBJECT_SIZE,
+ 64);
+ if (!media_state.cs_object.bo)
+ return BadAlloc;
+
+ memcpy(buf + 32 * 4, idct_table, sizeof(idct_table));
+ /* idct lib reloction */
+ lib_reloc = (unsigned int *)(buf + 32 * 20);
+ for (i = 0; i < 8; i++)
+ lib_reloc[i] =
+ media_state.vfe_state.interface.kernels[LIB_INTERFACE +
+ interface_offset].bo->
+ offset;
+ drm_intel_bo_subdata(media_state.cs_object.bo, 32 * 4,
+ 32 * 16 + 8 * sizeof(unsigned int), buf + 32 * 4);
+
+ for (i = 0; i < 8; i++)
+ drm_intel_bo_emit_reloc(media_state.cs_object.bo,
+ 32 * 20 + sizeof(unsigned int) * i,
+ media_state.vfe_state.
+ interface.kernels[LIB_INTERFACE +
+ interface_offset].bo,
+ 0, I915_GEM_DOMAIN_INSTRUCTION, 0);
+
+ return Success;
+}
+
+#define STRIDE(w) (w)
+#define SIZE_YUV420(w, h) (h * (STRIDE(w) + STRIDE(w >> 1)))
+static Status create_context(Display * display, XvMCContext * context,
+ int priv_count, CARD32 * priv_data)
+{
+ struct intel_xvmc_context *intel_ctx;
+ struct intel_xvmc_hw_context *hw_ctx;
+ hw_ctx = (struct intel_xvmc_hw_context *)priv_data;
+
+ intel_ctx = calloc(1, sizeof(struct intel_xvmc_context));
+ if (!intel_ctx)
+ return BadAlloc;
+ intel_ctx->hw = hw_ctx;
+ context->privData = intel_ctx;
+ intel_ctx->surface_bo_size
+ = SIZE_YUV420(context->width, context->height);
+
+ if (alloc_object(&media_state))
+ return BadAlloc;
+
+ if (setup_media_kernels(hw_ctx))
+ return BadAlloc;
+ return Success;
+}
+
+static Status destroy_context(Display * display, XvMCContext * context)
+{
+ struct intel_xvmc_context *intel_ctx;
+ intel_ctx = context->privData;
+ Xfree(intel_ctx->hw);
+ free(intel_ctx);
+ return Success;
+}
+
+static Status load_qmatrix(Display * display, XvMCContext * context,
+ const XvMCQMatrix * qmx)
+{
+ Status ret;
+ ret = cs_init(0);
+ if (ret != Success)
+ return ret;
+ drm_intel_bo_subdata(media_state.cs_object.bo, 0, 64,
+ qmx->intra_quantiser_matrix);
+ drm_intel_bo_subdata(media_state.cs_object.bo, 64, 64,
+ qmx->non_intra_quantiser_matrix);
+
+ return Success;
+}
+
+static Status vld_state(const XvMCMpegControl * control)
+{
+ struct brw_vld_state tmp, *vld = &tmp;
+
+ if (media_state.vld_state.bo)
+ drm_intel_bo_unreference(media_state.vld_state.bo);
+ media_state.vld_state.bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "vld state",
+ sizeof(struct
+ brw_vld_state),
+ 64);
+ if (!media_state.vld_state.bo)
+ return BadAlloc;
+
+ memset(vld, 0, sizeof(*vld));
+ vld->vld0.f_code_0_0 = control->FHMV_range + 1;
+ vld->vld0.f_code_0_1 = control->FVMV_range + 1;
+ vld->vld0.f_code_1_0 = control->BHMV_range + 1;
+ vld->vld0.f_code_1_1 = control->BVMV_range + 1;
+ vld->vld0.intra_dc_precision = control->intra_dc_precision;
+ vld->vld0.picture_structure = control->picture_structure;
+ vld->vld0.top_field_first = !!(control->flags & XVMC_TOP_FIELD_FIRST);
+ vld->vld0.frame_predict_frame_dct =
+ !!(control->flags & XVMC_PRED_DCT_FRAME);
+ vld->vld0.concealment_motion_vector =
+ !!(control->flags & XVMC_CONCEALMENT_MOTION_VECTORS);
+ vld->vld0.quantizer_scale_type = !!(control->flags & XVMC_Q_SCALE_TYPE);
+ vld->vld0.intra_vlc_format = !!(control->flags & XVMC_INTRA_VLC_FORMAT);
+ vld->vld0.scan_order = !!(control->flags & XVMC_ALTERNATE_SCAN);
+
+ vld->vld1.picture_coding_type = control->picture_coding_type;
+
+ vld->desc_remap_table0.index_0 = FRAME_INTRA;
+ vld->desc_remap_table0.index_1 = FRAME_FRAME_PRED_FORWARD;
+ vld->desc_remap_table0.index_2 = FRAME_FIELD_PRED_FORWARD;
+ vld->desc_remap_table0.index_3 = FRAME_FIELD_PRED_BIDIRECT; /* dual prime */
+ vld->desc_remap_table0.index_4 = FRAME_FRAME_PRED_BACKWARD;
+ vld->desc_remap_table0.index_5 = FRAME_FIELD_PRED_BACKWARD;
+ vld->desc_remap_table0.index_6 = FRAME_FRAME_PRED_BIDIRECT;
+ vld->desc_remap_table0.index_7 = FRAME_FIELD_PRED_BIDIRECT;
+
+ vld->desc_remap_table1.index_8 = FRAME_INTRA;
+ vld->desc_remap_table1.index_9 = FRAME_FRAME_PRED_FORWARD;
+ vld->desc_remap_table1.index_10 = FRAME_FIELD_PRED_FORWARD;
+ vld->desc_remap_table1.index_11 = FRAME_FIELD_PRED_BIDIRECT;
+ vld->desc_remap_table1.index_12 = FRAME_FRAME_PRED_BACKWARD;
+ vld->desc_remap_table1.index_13 = FRAME_FIELD_PRED_BACKWARD;
+ vld->desc_remap_table1.index_14 = FRAME_FRAME_PRED_BIDIRECT;
+ vld->desc_remap_table1.index_15 = FRAME_FIELD_PRED_BIDIRECT;
+
+ drm_intel_bo_subdata(media_state.vld_state.bo, 0, sizeof(tmp), vld);
+ return Success;
+}
+
+static Status setup_media_surface(int index, dri_bo * bo,
+ unsigned long offset, int w, int h,
+ Bool write)
+{
+ struct brw_surface_state tmp, *ss = &tmp;
+ memset(ss, 0, sizeof(*ss));
+ ss->ss0.surface_type = BRW_SURFACE_2D;
+ ss->ss0.surface_format = BRW_SURFACEFORMAT_R8_SINT;
+ ss->ss1.base_addr = offset + bo->offset;
+ ss->ss2.width = w - 1;
+ ss->ss2.height = h - 1;
+ ss->ss3.pitch = w - 1;
+
+ if (media_state.binding_table.surface_states[index].bo)
+ drm_intel_bo_unreference(media_state.
+ binding_table.surface_states[index].
+ bo);
+
+ media_state.binding_table.surface_states[index].bo =
+ drm_intel_bo_alloc(xvmc_driver->bufmgr, "surface_state",
+ sizeof(struct brw_surface_state), 0x1000);
+ if (!media_state.binding_table.surface_states[index].bo)
+ return BadAlloc;
+
+ drm_intel_bo_subdata(media_state.binding_table.surface_states[index].bo,
+ 0, sizeof(*ss), ss);
+ drm_intel_bo_emit_reloc(media_state.binding_table.
+ surface_states[index].bo,
+ offsetof(struct brw_surface_state, ss1), bo,
+ offset, I915_GEM_DOMAIN_RENDER,
+ write ? I915_GEM_DOMAIN_RENDER : 0);
+ return Success;
+}
+
+static Status setup_surface(struct intel_xvmc_surface *target,
+ struct intel_xvmc_surface *past,
+ struct intel_xvmc_surface *future, int w, int h)
+{
+ Status ret;
+ ret = setup_media_surface(0, target->bo, 0, w, h, TRUE);
+ if (ret != Success)
+ return ret;
+ ret = setup_media_surface(1, target->bo, w * h, w / 2, h / 2, TRUE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(2, target->bo, w * h + w * h / 4, w / 2, h / 2,
+ TRUE);
+ if (ret != Success)
+ return ret;
+ if (past) {
+ ret = setup_media_surface(4, past->bo, 0, w, h, FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(5, past->bo, w * h, w / 2, h / 2,
+ FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(6, past->bo, w * h + w * h / 4, w / 2,
+ h / 2, FALSE);
+ if (ret != Success)
+ return ret;
+ }
+ if (future) {
+ ret = setup_media_surface(7, future->bo, 0, w, h, FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(8, future->bo, w * h, w / 2, h / 2,
+ FALSE);
+ if (ret != Success)
+ return ret;
+ ret =
+ setup_media_surface(9, future->bo, w * h + w * h / 4, w / 2,
+ h / 2, FALSE);
+ if (ret != Success)
+ return ret;
+ }
+ return Success;
+}
+
+static Status begin_surface(Display * display, XvMCContext * context,
+ XvMCSurface * target,
+ XvMCSurface * past,
+ XvMCSurface * future,
+ const XvMCMpegControl * control)
+{
+ struct intel_xvmc_surface *priv_target, *priv_past, *priv_future;
+ intel_xvmc_context_ptr intel_ctx = context->privData;
+ Status ret;
+
+ priv_target = target->privData;
+ priv_past = past ? past->privData : NULL;
+ priv_future = future ? future->privData : NULL;
+
+ ret = vld_state(control);
+ if (ret != Success)
+ return ret;
+ ret = setup_surface(priv_target, priv_past, priv_future,
+ context->width, context->height);
+ if (ret != Success)
+ return ret;
+ ret = binding_tables();
+ if (ret != Success)
+ return ret;
+ ret = interface_descriptor();
+ if (ret != Success)
+ return ret;
+ ret = vfe_state(VFE_VLD_MODE);
+ if (ret != Success)
+ return ret;
+
+ LOCK_HARDWARE(intel_ctx->hw_context);
+ flush();
+ UNLOCK_HARDWARE(intel_ctx->hw_context);
+ return Success;
+}
+
+static Status put_slice(Display * display, XvMCContext * context,
+ unsigned char *slice, int nbytes)
+{
+ return Success;
+}
+
+static void state_base_address(struct intel_xvmc_hw_context *ctx)
+{
+ BATCH_LOCALS;
+
+ if (ctx->i965.is_igdng) {
+ BEGIN_BATCH(8);
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | 6);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ ADVANCE_BATCH();
+ } else {
+ BEGIN_BATCH(6);
+ OUT_BATCH(BRW_STATE_BASE_ADDRESS | 4);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ OUT_BATCH(0 | BASE_ADDRESS_MODIFY);
+ ADVANCE_BATCH();
+ }
+}
+
+static void pipeline_select()
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(1);
+ OUT_BATCH(NEW_PIPELINE_SELECT | PIPELINE_SELECT_MEDIA);
+ ADVANCE_BATCH();
+}
+
+static void media_state_pointers(int vfe_mode)
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(3);
+ OUT_BATCH(BRW_MEDIA_STATE_POINTERS | 1);
+ if (vfe_mode == VFE_VLD_MODE)
+ OUT_RELOC(media_state.vld_state.bo, I915_GEM_DOMAIN_INSTRUCTION,
+ 0, 1);
+ else
+ OUT_BATCH(0);
+ OUT_RELOC(media_state.vfe_state.bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ ADVANCE_BATCH();
+}
+
+static void align_urb_fence()
+{
+ BATCH_LOCALS;
+ int i, offset_to_next_cacheline;
+ unsigned long batch_offset;
+ BEGIN_BATCH(3);
+ batch_offset = (void *)batch_ptr - xvmc_driver->alloc.ptr;
+ offset_to_next_cacheline = ALIGN(batch_offset, 64) - batch_offset;
+ if (offset_to_next_cacheline <= 12 && offset_to_next_cacheline != 0) {
+ for (i = 0; i < offset_to_next_cacheline / 4; i++)
+ OUT_BATCH(0);
+ ADVANCE_BATCH();
+ }
+}
+
+static void urb_layout()
+{
+ BATCH_LOCALS;
+ align_urb_fence();
+ BEGIN_BATCH(3);
+ OUT_BATCH(BRW_URB_FENCE |
+ UF0_VFE_REALLOC |
+ UF0_CS_REALLOC |
+ UF0_SF_REALLOC |
+ UF0_CLIP_REALLOC | UF0_GS_REALLOC | UF0_VS_REALLOC | 1);
+
+ OUT_BATCH((0 << UF1_CLIP_FENCE_SHIFT) |
+ (0 << UF1_GS_FENCE_SHIFT) | (0 << UF1_VS_FENCE_SHIFT));
+
+ OUT_BATCH((0 << UF2_CS_FENCE_SHIFT) | (0 << UF2_SF_FENCE_SHIFT) | ((URB_SIZE - CS_SIZE - 1) << UF2_VFE_FENCE_SHIFT) | /* VFE_SIZE */
+ ((URB_SIZE) << UF2_CS_FENCE_SHIFT)); /* CS_SIZE */
+ ADVANCE_BATCH();
+}
+
+static void cs_urb_layout()
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(2);
+ OUT_BATCH(BRW_CS_URB_STATE | 0);
+ OUT_BATCH((CS_SIZE << 4) | /* URB Entry Allocation Size */
+ (1 << 0)); /* Number of URB Entries */
+ ADVANCE_BATCH();
+}
+
+static void cs_buffer()
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(2);
+ OUT_BATCH(BRW_CONSTANT_BUFFER | 0 | (1 << 8));
+ OUT_RELOC(media_state.cs_object.bo, I915_GEM_DOMAIN_INSTRUCTION, 0,
+ CS_SIZE);
+ ADVANCE_BATCH();
+}
+
+/* kick media object to gpu in idct mode*/
+static void send_media_object(XvMCMacroBlock * mb, dri_bo * bo,
+ uint32_t offset, enum interface interface)
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(13);
+ OUT_BATCH(BRW_MEDIA_OBJECT | 11);
+ OUT_BATCH(interface);
+ OUT_BATCH(6 * 128);
+ OUT_RELOC(bo, I915_GEM_DOMAIN_INSTRUCTION, 0, offset);
+
+ OUT_BATCH(mb->x << 4);
+ OUT_BATCH(mb->y << 4);
+ OUT_RELOC(bo, I915_GEM_DOMAIN_INSTRUCTION, 0, offset);
+ OUT_BATCH_SHORT(mb->coded_block_pattern);
+ OUT_BATCH_SHORT(mb->PMV[0][0][0]);
+ OUT_BATCH_SHORT(mb->PMV[0][0][1]);
+ OUT_BATCH_SHORT(mb->PMV[0][1][0]);
+ OUT_BATCH_SHORT(mb->PMV[0][1][1]);
+
+ OUT_BATCH_SHORT(mb->PMV[1][0][0]);
+ OUT_BATCH_SHORT(mb->PMV[1][0][1]);
+ OUT_BATCH_SHORT(mb->PMV[1][1][0]);
+ OUT_BATCH_SHORT(mb->PMV[1][1][1]);
+ OUT_BATCH_CHAR(mb->dct_type);
+ OUT_BATCH_CHAR(mb->motion_vertical_field_select);
+
+ OUT_BATCH(0xffffffff);
+ ADVANCE_BATCH();
+}
+
+/* kick media object to gpu in vld mode*/
+static void vld_send_media_object(dri_bo * bo,
+ int slice_len, int mb_h_pos, int mb_v_pos,
+ int mb_bit_offset, int mb_count,
+ int q_scale_code)
+{
+ BATCH_LOCALS;
+ BEGIN_BATCH(6);
+ OUT_BATCH(BRW_MEDIA_OBJECT | 4);
+ OUT_BATCH(0);
+ OUT_BATCH(slice_len);
+ OUT_RELOC(bo, I915_GEM_DOMAIN_INSTRUCTION, 0, 0);
+ OUT_BATCH((mb_h_pos << 24) | (mb_v_pos << 16) | (mb_count << 8) |
+ (mb_bit_offset));
+ OUT_BATCH(q_scale_code << 24);
+ ADVANCE_BATCH();
+}
+
+static Status put_slice2(Display * display, XvMCContext * context,
+ unsigned char *slice, int nbytes, int sliceCode)
+{
+ unsigned int bit_buf;
+ intel_xvmc_context_ptr intel_ctx = context->privData;
+ struct intel_xvmc_hw_context *hw_ctx = intel_ctx->hw;
+ int q_scale_code, mb_row;
+
+ mb_row = *(slice - 1) - 1;
+ bit_buf =
+ (slice[0] << 24) | (slice[1] << 16) | (slice[2] << 8) | (slice[3]);
+
+ q_scale_code = bit_buf >> 27;
+
+ if (media_state.slice_data.bo) {
+ drm_intel_gem_bo_unmap_gtt(media_state.slice_data.bo);
+
+ drm_intel_bo_unreference(media_state.slice_data.bo);
+ }
+ media_state.slice_data.bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "slice data",
+ VLD_MAX_SLICE_SIZE, 64);
+ if (!media_state.slice_data.bo)
+ return BadAlloc;
+ drm_intel_gem_bo_map_gtt(media_state.slice_data.bo);
+
+ memcpy(media_state.slice_data.bo->virtual, slice, nbytes);
+
+ LOCK_HARDWARE(intel_ctx->hw_context);
+ state_base_address(hw_ctx);
+ pipeline_select();
+ media_state_pointers(VFE_VLD_MODE);
+ urb_layout();
+ cs_urb_layout();
+ cs_buffer();
+ vld_send_media_object(media_state.slice_data.bo,
+ nbytes, 0, mb_row, 6, 127, q_scale_code);
+ intelFlushBatch(TRUE);
+ UNLOCK_HARDWARE(intel_ctx->hw_context);
+
+ return Success;
+}
+
+static Status render_surface(Display * display,
+ XvMCContext * context,
+ unsigned int picture_structure,
+ XvMCSurface * target_surface,
+ XvMCSurface * past_surface,
+ XvMCSurface * future_surface,
+ unsigned int flags,
+ unsigned int num_macroblocks,
+ unsigned int first_macroblock,
+ XvMCMacroBlockArray * macroblock_array,
+ XvMCBlockArray * blocks)
+{
+ struct intel_xvmc_surface *priv_target, *priv_past, *priv_future;
+ intel_xvmc_context_ptr intel_ctx;
+ XvMCMacroBlock *mb;
+ Status ret;
+ unsigned short *block_ptr;
+ int i, j;
+ int block_offset = 0;
+ struct intel_xvmc_hw_context *hw_ctx;
+
+ intel_ctx = context->privData;
+
+ hw_ctx = (struct intel_xvmc_hw_context *)context->privData;
+ priv_target = target_surface->privData;
+ priv_past = past_surface ? past_surface->privData : NULL;
+ priv_future = future_surface ? future_surface->privData : NULL;
+
+ ret = setup_surface(priv_target, priv_past, priv_future,
+ context->width, context->height);
+ if (ret != Success)
+ return ret;
+ ret = binding_tables();
+ if (ret != Success)
+ return ret;
+ ret = interface_descriptor();
+ if (ret != Success)
+ return ret;
+ ret = cs_init(INTERFACE_NUM);
+ if (ret != Success)
+ return ret;
+ ret = vfe_state(VFE_GENERIC_MODE);
+ if (ret != Success)
+ return ret;
+
+ if (media_state.mb_data.bo) {
+ drm_intel_gem_bo_unmap_gtt(media_state.mb_data.bo);
+
+ drm_intel_bo_unreference(media_state.mb_data.bo);
+ }
+ unsigned int block_num =
+ (((context->width + 15) >> 4) * ((context->height + 15) >> 4));
+ unsigned int surface_size = (64 * sizeof(short) * 6 * block_num);
+ media_state.mb_data.bo = drm_intel_bo_alloc(xvmc_driver->bufmgr,
+ "macroblock data",
+ surface_size, 64);
+ if (!media_state.mb_data.bo)
+ return BadAlloc;
+ drm_intel_gem_bo_map_gtt(media_state.mb_data.bo);
+
+ block_ptr = media_state.mb_data.bo->virtual;
+ unsigned short *mb_block_ptr;
+ for (i = first_macroblock; i < num_macroblocks + first_macroblock; i++) {
+ mb = &macroblock_array->macro_blocks[i];
+ mb_block_ptr = &blocks->blocks[(mb->index << 6)];
+
+ if (mb->coded_block_pattern & 0x20) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j, mb_block_ptr + 8 * j,
+ 16);
+ mb_block_ptr += 64;
+ }
+ if (mb->coded_block_pattern & 0x10) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j + 8,
+ mb_block_ptr + 8 * j, 16);
+ mb_block_ptr += 64;
+ }
+
+ block_ptr += 2 * 64;
+ if (mb->coded_block_pattern & 0x08) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j, mb_block_ptr + 8 * j,
+ 16);
+ mb_block_ptr += 64;
+ }
+ if (mb->coded_block_pattern & 0x04) {
+ for (j = 0; j < 8; j++)
+ memcpy(block_ptr + 16 * j + 8,
+ mb_block_ptr + 8 * j, 16);
+ mb_block_ptr += 64;
+ }
+
+ block_ptr += 2 * 64;
+ if (mb->coded_block_pattern & 0x2) {
+ memcpy(block_ptr, mb_block_ptr, 128);
+ mb_block_ptr += 64;
+ }
+
+ block_ptr += 64;
+ if (mb->coded_block_pattern & 0x1)
+ memcpy(block_ptr, mb_block_ptr, 128);
+ block_ptr += 64;
+ }
+
+ LOCK_HARDWARE(intel_ctx->hw_context);
+ state_base_address(hw_ctx);
+ flush();
+ pipeline_select();
+ urb_layout();
+ media_state_pointers(VFE_GENERIC_MODE);
+ cs_urb_layout();
+ cs_buffer();
+ for (i = first_macroblock;
+ i < num_macroblocks + first_macroblock;
+ i++, block_offset += 128 * 6) {
+ mb = &macroblock_array->macro_blocks[i];
+
+ if (mb->macroblock_type & XVMC_MB_TYPE_INTRA) {
+ send_media_object(mb, media_state.mb_data.bo,
+ block_offset,
+ FRAME_INTRA + INTERFACE_NUM);
+ } else {
+ if (((mb->motion_type & 3) == XVMC_PREDICTION_FRAME)) {
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_FORWARD)) {
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD)) {
+ send_media_object(mb,
+ media_state.mb_data.
+ bo,
+ block_offset,
+ FRAME_FRAME_PRED_BIDIRECT
+ +
+ INTERFACE_NUM);
+ } else {
+ send_media_object(mb,
+ media_state.mb_data.
+ bo,
+ block_offset,
+ FRAME_FRAME_PRED_FORWARD
+ +
+ INTERFACE_NUM);
+ }
+ } else
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD)) {
+ send_media_object(mb,
+ media_state.
+ mb_data.bo,
+ block_offset,
+ FRAME_FRAME_PRED_BACKWARD
+ + INTERFACE_NUM);
+ }
+ } else if ((mb->motion_type & 3) ==
+ XVMC_PREDICTION_FIELD) {
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_FORWARD)) {
+ if (((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD))) {
+ send_media_object(mb,
+ media_state.mb_data.
+ bo,
+ block_offset,
+ FRAME_FIELD_PRED_BIDIRECT
+ +
+ INTERFACE_NUM);
+ } else {
+ send_media_object(mb,
+ media_state.mb_data.
+ bo,
+ block_offset,
+ FRAME_FIELD_PRED_FORWARD
+ +
+ INTERFACE_NUM);
+ }
+ } else
+ if ((mb->macroblock_type &
+ XVMC_MB_TYPE_MOTION_BACKWARD)) {
+ send_media_object(mb,
+ media_state.
+ mb_data.bo,
+ block_offset,
+ FRAME_FIELD_PRED_BACKWARD
+ + INTERFACE_NUM);
+ }
+ } else {
+ send_media_object(mb, media_state.mb_data.bo, block_offset, FRAME_FIELD_PRED_BIDIRECT + INTERFACE_NUM); /*dual prime */
+ }
+ }
+ }
+ intelFlushBatch(TRUE);
+ UNLOCK_HARDWARE(intel_ctx->hw_context);
+ return Success;
+}
+
+struct _intel_xvmc_driver xvmc_vld_driver = {
+ .type = XVMC_I965_MPEG2_VLD,
+ .create_context = create_context,
+ .destroy_context = destroy_context,
+ .load_qmatrix = load_qmatrix,
+ .begin_surface = begin_surface,
+ .render_surface = render_surface,
+ .put_slice = put_slice,
+ .put_slice2 = put_slice2
+};
diff --git a/uxa/Makefile.am b/uxa/Makefile.am
new file mode 100644
index 0000000..c875b63
--- /dev/null
+++ b/uxa/Makefile.am
@@ -0,0 +1,17 @@
+noinst_LTLIBRARIES = libuxa.la
+
+# Override these since UXA doesn't need them and the needed files aren't
+# built (in hw/xfree86/os-support/solaris) until after UXA is built
+SOLARIS_ASM_CFLAGS=""
+
+AM_CFLAGS = $(CWARNFLAGS) $(XORG_CFLAGS)
+
+libuxa_la_SOURCES = \
+ uxa.c \
+ uxa.h \
+ uxa-accel.c \
+ uxa-glyphs.c \
+ uxa-render.c \
+ uxa-priv.h \
+ uxa-unaccel.c
+
diff --git a/uxa/Makefile.in b/uxa/Makefile.in
new file mode 100644
index 0000000..7c42c1d
--- /dev/null
+++ b/uxa/Makefile.in
@@ -0,0 +1,541 @@
+# Makefile.in generated by automake 1.11.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
+# Inc.
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+VPATH = @srcdir@
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = uxa
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(install_sh) -d
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+LTLIBRARIES = $(noinst_LTLIBRARIES)
+libuxa_la_LIBADD =
+am_libuxa_la_OBJECTS = uxa.lo uxa-accel.lo uxa-glyphs.lo uxa-render.lo \
+ uxa-unaccel.lo
+libuxa_la_OBJECTS = $(am_libuxa_la_OBJECTS)
+AM_V_lt = $(am__v_lt_$(V))
+am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
+am__v_lt_0 = --silent
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/build-aux/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
+ $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
+ $(AM_CFLAGS) $(CFLAGS)
+AM_V_CC = $(am__v_CC_$(V))
+am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
+am__v_CC_0 = @echo " CC " $@;
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+CCLD = $(CC)
+LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+AM_V_CCLD = $(am__v_CCLD_$(V))
+am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
+am__v_CCLD_0 = @echo " CCLD " $@;
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+SOURCES = $(libuxa_la_SOURCES)
+DIST_SOURCES = $(libuxa_la_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ADMIN_MAN_DIR = @ADMIN_MAN_DIR@
+ADMIN_MAN_SUFFIX = @ADMIN_MAN_SUFFIX@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+APP_MAN_DIR = @APP_MAN_DIR@
+APP_MAN_SUFFIX = @APP_MAN_SUFFIX@
+AR = @AR@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AWK = @AWK@
+CC = @CC@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHANGELOG_CMD = @CHANGELOG_CMD@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CWARNFLAGS = @CWARNFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEPDIR = @DEPDIR@
+DRIVER_MAN_DIR = @DRIVER_MAN_DIR@
+DRIVER_MAN_SUFFIX = @DRIVER_MAN_SUFFIX@
+DRIVER_NAME = @DRIVER_NAME@
+DRI_CFLAGS = @DRI_CFLAGS@
+DRI_LIBS = @DRI_LIBS@
+DRM_CFLAGS = @DRM_CFLAGS@
+DRM_LIBS = @DRM_LIBS@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+FGREP = @FGREP@
+FILE_MAN_DIR = @FILE_MAN_DIR@
+FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@
+GEN4ASM_CFLAGS = @GEN4ASM_CFLAGS@
+GEN4ASM_LIBS = @GEN4ASM_LIBS@
+GREP = @GREP@
+INSTALL = @INSTALL@
+INSTALL_CMD = @INSTALL_CMD@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIB_MAN_DIR = @LIB_MAN_DIR@
+LIB_MAN_SUFFIX = @LIB_MAN_SUFFIX@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MAN_SUBSTS = @MAN_SUBSTS@
+MISC_MAN_DIR = @MISC_MAN_DIR@
+MISC_MAN_SUFFIX = @MISC_MAN_SUFFIX@
+MKDIR_P = @MKDIR_P@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCIACCESS_CFLAGS = @PCIACCESS_CFLAGS@
+PCIACCESS_LIBS = @PCIACCESS_LIBS@
+PKG_CONFIG = @PKG_CONFIG@
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
+RANLIB = @RANLIB@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SHELL = @SHELL@
+STRIP = @STRIP@
+UDEV_CFLAGS = @UDEV_CFLAGS@
+UDEV_LIBS = @UDEV_LIBS@
+VERSION = @VERSION@
+XORG_CFLAGS = @XORG_CFLAGS@
+XORG_LIBS = @XORG_LIBS@
+XORG_MAN_PAGE = @XORG_MAN_PAGE@
+XVMCLIB_CFLAGS = @XVMCLIB_CFLAGS@
+XVMCLIB_LIBS = @XVMCLIB_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+lt_ECHO = @lt_ECHO@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+moduledir = @moduledir@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+noinst_LTLIBRARIES = libuxa.la
+
+# Override these since UXA doesn't need them and the needed files aren't
+# built (in hw/xfree86/os-support/solaris) until after UXA is built
+SOLARIS_ASM_CFLAGS = ""
+AM_CFLAGS = $(CWARNFLAGS) $(XORG_CFLAGS)
+libuxa_la_SOURCES = \
+ uxa.c \
+ uxa.h \
+ uxa-accel.c \
+ uxa-glyphs.c \
+ uxa-render.c \
+ uxa-priv.h \
+ uxa-unaccel.c
+
+all: all-am
+
+.SUFFIXES:
+.SUFFIXES: .c .lo .o .obj
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign uxa/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign uxa/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+clean-noinstLTLIBRARIES:
+ -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
+ @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
+ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
+ test "$$dir" != "$$p" || dir=.; \
+ echo "rm -f \"$${dir}/so_locations\""; \
+ rm -f "$${dir}/so_locations"; \
+ done
+libuxa.la: $(libuxa_la_OBJECTS) $(libuxa_la_DEPENDENCIES)
+ $(AM_V_CCLD)$(LINK) $(libuxa_la_OBJECTS) $(libuxa_la_LIBADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uxa-accel.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uxa-glyphs.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uxa-render.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uxa-unaccel.Plo@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uxa.Plo@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+.c.lo:
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
+@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+
+ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ mkid -fID $$unique
+tags: TAGS
+
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ set x; \
+ here=`pwd`; \
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
+ctags: CTAGS
+CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+ $(TAGS_FILES) $(LISP)
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
+ unique=`for i in $$list; do \
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
+ done | \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
+ $$unique
+
+GTAGS:
+ here=`$(am__cd) $(top_builddir) && pwd` \
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
+
+distclean-tags:
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile $(LTLIBRARIES)
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
+ mostlyclean-am
+
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am:
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-compile mostlyclean-generic \
+ mostlyclean-libtool
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
+ clean-libtool clean-noinstLTLIBRARIES ctags distclean \
+ distclean-compile distclean-generic distclean-libtool \
+ distclean-tags distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ maintainer-clean maintainer-clean-generic mostlyclean \
+ mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
+ pdf pdf-am ps ps-am tags uninstall uninstall-am
+
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/uxa/uxa-accel.c b/uxa/uxa-accel.c
new file mode 100644
index 0000000..0650ac2
--- /dev/null
+++ b/uxa/uxa-accel.c
@@ -0,0 +1,1309 @@
+/*
+ * Copyright ® 2001 Keith Packard
+ *
+ * Partly based on code that is Copyright ® The XFree86 Project Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Authors:
+ * Eric Anholt <eric@anholt.net>
+ * Michel Dänzer <michel@tungstengraphics.com>
+ *
+ */
+
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+#include "uxa-priv.h"
+#include <X11/fonts/fontstruct.h>
+#include "dixfontstr.h"
+#include "uxa.h"
+#include "mipict.h"
+
+static CARD32
+format_for_depth(int depth)
+{
+ switch (depth) {
+ case 1: return PICT_a1;
+ case 4: return PICT_a4;
+ case 8: return PICT_a8;
+ case 15: return PICT_x1r5g5b5;
+ case 16: return PICT_r5g6b5;
+ default:
+ case 24: return PICT_x8r8g8b8;
+#if XORG_VERSION_CURRENT >= 10699900
+ case 30: return PICT_x2r10g10b10;
+#endif
+ case 32: return PICT_a8r8g8b8;
+ }
+}
+
+static void
+uxa_fill_spans(DrawablePtr pDrawable, GCPtr pGC, int n,
+ DDXPointPtr ppt, int *pwidth, int fSorted)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ RegionPtr pClip = fbGetCompositeClip(pGC);
+ PixmapPtr dst_pixmap, src_pixmap = NULL;
+ BoxPtr pextent, pbox;
+ int nbox;
+ int extentX1, extentX2, extentY1, extentY2;
+ int fullX1, fullX2, fullY1;
+ int partX1, partX2;
+ int off_x, off_y;
+ xRenderColor color;
+ PictFormatPtr format;
+ PicturePtr dst, src;
+ int error;
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback)
+ goto fallback;
+
+ if (pGC->fillStyle != FillSolid)
+ goto fallback;
+
+ dst_pixmap = uxa_get_offscreen_pixmap(pDrawable, &off_x, &off_y);
+ if (!dst_pixmap)
+ goto fallback;
+
+ if (pGC->alu != GXcopy || !UXA_PM_IS_SOLID(pDrawable, pGC->planemask))
+ goto solid;
+
+ format = PictureMatchFormat(screen,
+ dst_pixmap->drawable.depth,
+ format_for_depth(dst_pixmap->drawable.depth));
+ dst = CreatePicture(0, &dst_pixmap->drawable, format, 0, 0, serverClient, &error);
+ if (!dst)
+ goto solid;
+
+ ValidatePicture(dst);
+
+ uxa_get_rgba_from_pixel(pGC->fgPixel,
+ &color.red,
+ &color.green,
+ &color.blue,
+ &color.alpha,
+ format_for_depth(dst_pixmap->drawable.depth));
+ src = CreateSolidPicture(0, &color, &error);
+ if (!src) {
+ FreePicture(dst, 0);
+ goto solid;
+ }
+
+ if (!uxa_screen->info->check_composite(PictOpSrc, src, NULL, dst, 0, 0)) {
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ goto solid;
+ }
+
+ if (!uxa_screen->info->check_composite_texture ||
+ !uxa_screen->info->check_composite_texture(screen, src)) {
+ PicturePtr solid;
+ int src_off_x, src_off_y;
+
+ solid = uxa_acquire_solid(screen, src->pSourcePict);
+ FreePicture(src, 0);
+ if (!solid) {
+ FreePicture(dst, 0);
+ goto solid;
+ }
+
+ src = solid;
+ src_pixmap = uxa_get_offscreen_pixmap(src->pDrawable,
+ &src_off_x, &src_off_y);
+ if (!src_pixmap) {
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ goto solid;
+ }
+ }
+
+ if (!uxa_screen->info->prepare_composite(PictOpSrc, src, NULL, dst, src_pixmap, NULL, dst_pixmap)) {
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ goto solid;
+ }
+
+ pextent = REGION_EXTENTS(pGC->screen, pClip);
+ extentX1 = pextent->x1;
+ extentY1 = pextent->y1;
+ extentX2 = pextent->x2;
+ extentY2 = pextent->y2;
+ while (n--) {
+ fullX1 = ppt->x;
+ fullY1 = ppt->y;
+ fullX2 = fullX1 + (int)*pwidth;
+ ppt++;
+ pwidth++;
+
+ if (fullY1 < extentY1 || extentY2 <= fullY1)
+ continue;
+
+ if (fullX1 < extentX1)
+ fullX1 = extentX1;
+
+ if (fullX2 > extentX2)
+ fullX2 = extentX2;
+
+ if (fullX1 >= fullX2)
+ continue;
+
+ nbox = REGION_NUM_RECTS(pClip);
+ if (nbox == 1) {
+ uxa_screen->info->composite(dst_pixmap,
+ 0, 0, 0, 0,
+ fullX1 + off_x,
+ fullY1 + off_y,
+ fullX2 - fullX1, 1);
+ } else {
+ pbox = REGION_RECTS(pClip);
+ while (nbox--) {
+ if (pbox->y1 > fullY1)
+ break;
+
+ if (pbox->y1 <= fullY1) {
+ partX1 = pbox->x1;
+ if (partX1 < fullX1)
+ partX1 = fullX1;
+
+ partX2 = pbox->x2;
+ if (partX2 > fullX2)
+ partX2 = fullX2;
+
+ if (partX2 > partX1) {
+ uxa_screen->info->composite(dst_pixmap,
+ 0, 0, 0, 0,
+ partX1 + off_x,
+ fullY1 + off_y,
+ partX2 - partX1, 1);
+ }
+ }
+ pbox++;
+ }
+ }
+ }
+
+ uxa_screen->info->done_composite(dst_pixmap);
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ return;
+
+solid:
+ if (uxa_screen->info->check_solid &&
+ !uxa_screen->info->check_solid(pDrawable, pGC->alu, pGC->planemask))
+ goto fallback;
+
+ if (!(*uxa_screen->info->prepare_solid) (dst_pixmap,
+ pGC->alu,
+ pGC->planemask,
+ pGC->fgPixel))
+ goto fallback;
+
+ pextent = REGION_EXTENTS(pGC->screen, pClip);
+ extentX1 = pextent->x1;
+ extentY1 = pextent->y1;
+ extentX2 = pextent->x2;
+ extentY2 = pextent->y2;
+ while (n--) {
+ fullX1 = ppt->x;
+ fullY1 = ppt->y;
+ fullX2 = fullX1 + (int)*pwidth;
+ ppt++;
+ pwidth++;
+
+ if (fullY1 < extentY1 || extentY2 <= fullY1)
+ continue;
+
+ if (fullX1 < extentX1)
+ fullX1 = extentX1;
+
+ if (fullX2 > extentX2)
+ fullX2 = extentX2;
+
+ if (fullX1 >= fullX2)
+ continue;
+
+ nbox = REGION_NUM_RECTS(pClip);
+ if (nbox == 1) {
+ (*uxa_screen->info->solid) (dst_pixmap,
+ fullX1 + off_x,
+ fullY1 + off_y,
+ fullX2 + off_x,
+ fullY1 + 1 + off_y);
+ } else {
+ pbox = REGION_RECTS(pClip);
+ while (nbox--) {
+ if (pbox->y1 <= fullY1 && fullY1 < pbox->y2) {
+ partX1 = pbox->x1;
+ if (partX1 < fullX1)
+ partX1 = fullX1;
+ partX2 = pbox->x2;
+ if (partX2 > fullX2)
+ partX2 = fullX2;
+ if (partX2 > partX1) {
+ (*uxa_screen->info->
+ solid) (dst_pixmap,
+ partX1 + off_x,
+ fullY1 + off_y,
+ partX2 + off_x,
+ fullY1 + 1 + off_y);
+ }
+ }
+ pbox++;
+ }
+ }
+ }
+ (*uxa_screen->info->done_solid) (dst_pixmap);
+
+ return;
+
+fallback:
+ uxa_check_fill_spans(pDrawable, pGC, n, ppt, pwidth, fSorted);
+}
+
+static Bool
+uxa_do_put_image(DrawablePtr pDrawable, GCPtr pGC, int depth, int x, int y,
+ int w, int h, int format, char *bits, int src_stride)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDrawable->pScreen);
+ PixmapPtr pPix;
+ RegionPtr pClip;
+ BoxPtr pbox;
+ int nbox;
+ int xoff, yoff;
+ int bpp = pDrawable->bitsPerPixel;
+
+ /* Don't bother with under 8bpp, XYPixmaps. */
+ if (format != ZPixmap || bpp < 8)
+ return FALSE;
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback)
+ return FALSE;
+
+ if (!uxa_screen->info->put_image)
+ return FALSE;
+
+ /* Only accelerate copies: no rop or planemask. */
+ if (!UXA_PM_IS_SOLID(pDrawable, pGC->planemask) || pGC->alu != GXcopy)
+ return FALSE;
+
+ pPix = uxa_get_offscreen_pixmap(pDrawable, &xoff, &yoff);
+ if (!pPix)
+ return FALSE;
+
+ x += pDrawable->x;
+ y += pDrawable->y;
+
+ pClip = fbGetCompositeClip(pGC);
+ for (nbox = REGION_NUM_RECTS(pClip),
+ pbox = REGION_RECTS(pClip); nbox--; pbox++) {
+ int x1 = x;
+ int y1 = y;
+ int x2 = x + w;
+ int y2 = y + h;
+ char *src;
+ Bool ok;
+
+ if (x1 < pbox->x1)
+ x1 = pbox->x1;
+ if (y1 < pbox->y1)
+ y1 = pbox->y1;
+ if (x2 > pbox->x2)
+ x2 = pbox->x2;
+ if (y2 > pbox->y2)
+ y2 = pbox->y2;
+ if (x1 >= x2 || y1 >= y2)
+ continue;
+
+ src = bits + (y1 - y) * src_stride + (x1 - x) * (bpp / 8);
+ ok = uxa_screen->info->put_image(pPix, x1 + xoff, y1 + yoff,
+ x2 - x1, y2 - y1, src,
+ src_stride);
+ /* If we fail to accelerate the upload, fall back to using
+ * unaccelerated fb calls.
+ */
+ if (!ok) {
+ FbStip *dst;
+ FbStride dst_stride;
+ int dstBpp;
+ int dstXoff, dstYoff;
+
+ if (!uxa_prepare_access(pDrawable, UXA_ACCESS_RW))
+ return FALSE;
+
+ fbGetStipDrawable(pDrawable, dst, dst_stride, dstBpp,
+ dstXoff, dstYoff);
+
+ fbBltStip((FbStip *) bits +
+ (y1 - y) * (src_stride / sizeof(FbStip)),
+ src_stride / sizeof(FbStip),
+ (x1 - x) * dstBpp,
+ dst + (y1 + dstYoff) * dst_stride, dst_stride,
+ (x1 + dstXoff) * dstBpp, (x2 - x1) * dstBpp,
+ y2 - y1, GXcopy, FB_ALLONES, dstBpp);
+
+ uxa_finish_access(pDrawable);
+ }
+ }
+
+
+ return TRUE;
+}
+
+static void
+uxa_put_image(DrawablePtr pDrawable, GCPtr pGC, int depth, int x, int y,
+ int w, int h, int leftPad, int format, char *bits)
+{
+ if (!uxa_do_put_image(pDrawable, pGC, depth, x, y, w, h, format, bits,
+ PixmapBytePad(w, pDrawable->depth)))
+ uxa_check_put_image(pDrawable, pGC, depth, x, y, w, h, leftPad,
+ format, bits);
+}
+
+static Bool inline
+uxa_copy_n_to_n_two_dir(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable,
+ GCPtr pGC, BoxPtr pbox, int nbox, int dx, int dy)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDstDrawable->pScreen);
+ PixmapPtr pSrcPixmap, pDstPixmap;
+ int src_off_x, src_off_y, dst_off_x, dst_off_y;
+ int dirsetup;
+
+ /* Need to get both pixmaps to call the driver routines */
+ pSrcPixmap =
+ uxa_get_offscreen_pixmap(pSrcDrawable, &src_off_x, &src_off_y);
+ pDstPixmap =
+ uxa_get_offscreen_pixmap(pDstDrawable, &dst_off_x, &dst_off_y);
+ if (!pSrcPixmap || !pDstPixmap)
+ return FALSE;
+
+ /*
+ * Now the case of a chip that only supports xdir = ydir = 1 or
+ * xdir = ydir = -1, but we have xdir != ydir.
+ */
+ dirsetup = 0; /* No direction set up yet. */
+ for (; nbox; pbox++, nbox--) {
+ if (dx >= 0 && (src_off_y + pbox->y1 + dy) != pbox->y1) {
+ /* Do a xdir = ydir = -1 blit instead. */
+ if (dirsetup != -1) {
+ if (dirsetup != 0)
+ uxa_screen->info->done_copy(pDstPixmap);
+ dirsetup = -1;
+ if (!(*uxa_screen->info->prepare_copy)
+ (pSrcPixmap, pDstPixmap, -1, -1,
+ pGC ? pGC->alu : GXcopy,
+ pGC ? pGC->planemask : FB_ALLONES))
+ return FALSE;
+ }
+ (*uxa_screen->info->copy) (pDstPixmap,
+ src_off_x + pbox->x1 + dx,
+ src_off_y + pbox->y1 + dy,
+ dst_off_x + pbox->x1,
+ dst_off_y + pbox->y1,
+ pbox->x2 - pbox->x1,
+ pbox->y2 - pbox->y1);
+ } else if (dx < 0 && (src_off_y + pbox->y1 + dy) != pbox->y1) {
+ /* Do a xdir = ydir = 1 blit instead. */
+ if (dirsetup != 1) {
+ if (dirsetup != 0)
+ uxa_screen->info->done_copy(pDstPixmap);
+ dirsetup = 1;
+ if (!(*uxa_screen->info->prepare_copy)
+ (pSrcPixmap, pDstPixmap, 1, 1,
+ pGC ? pGC->alu : GXcopy,
+ pGC ? pGC->planemask : FB_ALLONES))
+ return FALSE;
+ }
+ (*uxa_screen->info->copy) (pDstPixmap,
+ src_off_x + pbox->x1 + dx,
+ src_off_y + pbox->y1 + dy,
+ dst_off_x + pbox->x1,
+ dst_off_y + pbox->y1,
+ pbox->x2 - pbox->x1,
+ pbox->y2 - pbox->y1);
+ } else if (dx >= 0) {
+ /*
+ * xdir = 1, ydir = -1.
+ * Perform line-by-line xdir = ydir = 1 blits, going up.
+ */
+ int i;
+ if (dirsetup != 1) {
+ if (dirsetup != 0)
+ uxa_screen->info->done_copy(pDstPixmap);
+ dirsetup = 1;
+ if (!(*uxa_screen->info->prepare_copy)
+ (pSrcPixmap, pDstPixmap, 1, 1,
+ pGC ? pGC->alu : GXcopy,
+ pGC ? pGC->planemask : FB_ALLONES))
+ return FALSE;
+ }
+ for (i = pbox->y2 - pbox->y1 - 1; i >= 0; i--)
+ (*uxa_screen->info->copy) (pDstPixmap,
+ src_off_x +
+ pbox->x1 + dx,
+ src_off_y +
+ pbox->y1 + dy + i,
+ dst_off_x + pbox->x1,
+ dst_off_y +
+ pbox->y1 + i,
+ pbox->x2 - pbox->x1,
+ 1);
+ } else {
+ /*
+ * xdir = -1, ydir = 1.
+ * Perform line-by-line xdir = ydir = -1 blits,
+ * going down.
+ */
+ int i;
+ if (dirsetup != -1) {
+ if (dirsetup != 0)
+ uxa_screen->info->done_copy(pDstPixmap);
+ dirsetup = -1;
+ if (!(*uxa_screen->info->prepare_copy)
+ (pSrcPixmap, pDstPixmap, -1, -1,
+ pGC ? pGC->alu : GXcopy,
+ pGC ? pGC->planemask : FB_ALLONES))
+ return FALSE;
+ }
+ for (i = 0; i < pbox->y2 - pbox->y1; i++)
+ (*uxa_screen->info->copy) (pDstPixmap,
+ src_off_x +
+ pbox->x1 + dx,
+ src_off_y +
+ pbox->y1 + dy + i,
+ dst_off_x + pbox->x1,
+ dst_off_y +
+ pbox->y1 + i,
+ pbox->x2 - pbox->x1,
+ 1);
+ }
+ }
+ if (dirsetup != 0)
+ uxa_screen->info->done_copy(pDstPixmap);
+ return TRUE;
+}
+
+void
+uxa_copy_n_to_n(DrawablePtr pSrcDrawable,
+ DrawablePtr pDstDrawable,
+ GCPtr pGC,
+ BoxPtr pbox,
+ int nbox,
+ int dx,
+ int dy,
+ Bool reverse, Bool upsidedown, Pixel bitplane, void *closure)
+{
+ ScreenPtr screen = pDstDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ int src_off_x, src_off_y;
+ int dst_off_x, dst_off_y;
+ PixmapPtr pSrcPixmap, pDstPixmap;
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback)
+ goto fallback;
+
+ pSrcPixmap = uxa_get_drawable_pixmap(pSrcDrawable);
+ pDstPixmap = uxa_get_drawable_pixmap(pDstDrawable);
+ if (!pSrcPixmap || !pDstPixmap)
+ goto fallback;
+
+ if (uxa_screen->info->check_copy &&
+ !uxa_screen->info->check_copy(pSrcPixmap, pDstPixmap,
+ pGC ? pGC->alu : GXcopy,
+ pGC ? pGC->planemask : FB_ALLONES))
+ goto fallback;
+
+ uxa_get_drawable_deltas(pSrcDrawable, pSrcPixmap, &src_off_x,
+ &src_off_y);
+ uxa_get_drawable_deltas(pDstDrawable, pDstPixmap, &dst_off_x,
+ &dst_off_y);
+
+ /* Mixed directions must be handled specially if the card is lame */
+ if ((uxa_screen->info->flags & UXA_TWO_BITBLT_DIRECTIONS) &&
+ reverse != upsidedown) {
+ if (uxa_copy_n_to_n_two_dir
+ (pSrcDrawable, pDstDrawable, pGC, pbox, nbox, dx, dy))
+ return;
+ goto fallback;
+ }
+
+ if (!uxa_pixmap_is_offscreen(pDstPixmap)) {
+ int stride, bpp;
+ char *dst;
+
+ if (!uxa_pixmap_is_offscreen(pSrcPixmap))
+ goto fallback;
+
+ if (!uxa_screen->info->get_image)
+ goto fallback;
+
+ /* Don't bother with under 8bpp, XYPixmaps. */
+ bpp = pSrcPixmap->drawable.bitsPerPixel;
+ if (bpp != pDstDrawable->bitsPerPixel || bpp < 8)
+ goto fallback;
+
+ /* Only accelerate copies: no rop or planemask. */
+ if (pGC && (!UXA_PM_IS_SOLID(pSrcDrawable, pGC->planemask) || pGC->alu != GXcopy))
+ goto fallback;
+
+ dst = pDstPixmap->devPrivate.ptr;
+ stride = pDstPixmap->devKind;
+ bpp /= 8;
+ while (nbox--) {
+ if (!uxa_screen->info->get_image(pSrcPixmap,
+ pbox->x1 + dx + src_off_x,
+ pbox->y1 + dy + src_off_y,
+ pbox->x2 - pbox->x1,
+ pbox->y2 - pbox->y1,
+ (char *) dst +
+ (pbox->y1 + dst_off_y) * stride +
+ (pbox->x1 + dst_off_x) * bpp,
+ stride))
+ goto fallback;
+
+ pbox++;
+ }
+
+ return;
+ }
+
+ if (uxa_pixmap_is_offscreen(pSrcPixmap)) {
+ if (!(*uxa_screen->info->prepare_copy) (pSrcPixmap, pDstPixmap,
+ reverse ? -1 : 1,
+ upsidedown ? -1 : 1,
+ pGC ? pGC->alu : GXcopy,
+ pGC ? pGC->
+ planemask : FB_ALLONES))
+ goto fallback;
+
+ while (nbox--) {
+ (*uxa_screen->info->copy) (pDstPixmap,
+ pbox->x1 + dx + src_off_x,
+ pbox->y1 + dy + src_off_y,
+ pbox->x1 + dst_off_x,
+ pbox->y1 + dst_off_y,
+ pbox->x2 - pbox->x1,
+ pbox->y2 - pbox->y1);
+ pbox++;
+ }
+
+ (*uxa_screen->info->done_copy) (pDstPixmap);
+ } else {
+ int stride, bpp;
+ char *src;
+
+ if (!uxa_screen->info->put_image)
+ goto fallback;
+
+ /* Don't bother with under 8bpp, XYPixmaps. */
+ bpp = pSrcPixmap->drawable.bitsPerPixel;
+ if (bpp != pDstDrawable->bitsPerPixel || bpp < 8)
+ goto fallback;
+
+ /* Only accelerate copies: no rop or planemask. */
+ if (pGC && (!UXA_PM_IS_SOLID(pSrcDrawable, pGC->planemask) || pGC->alu != GXcopy))
+ goto fallback;
+
+ src = pSrcPixmap->devPrivate.ptr;
+ stride = pSrcPixmap->devKind;
+ bpp /= 8;
+ while (nbox--) {
+ if (!uxa_screen->info->put_image(pDstPixmap,
+ pbox->x1 + dst_off_x,
+ pbox->y1 + dst_off_y,
+ pbox->x2 - pbox->x1,
+ pbox->y2 - pbox->y1,
+ (char *) src +
+ (pbox->y1 + dy + src_off_y) * stride +
+ (pbox->x1 + dx + src_off_x) * bpp,
+ stride))
+ goto fallback;
+
+ pbox++;
+ }
+ }
+
+ return;
+
+fallback:
+ UXA_FALLBACK(("from %p to %p (%c,%c)\n", pSrcDrawable, pDstDrawable,
+ uxa_drawable_location(pSrcDrawable),
+ uxa_drawable_location(pDstDrawable)));
+ if (uxa_prepare_access(pDstDrawable, UXA_ACCESS_RW)) {
+ if (pSrcDrawable == pDstDrawable ||
+ uxa_prepare_access(pSrcDrawable, UXA_ACCESS_RO)) {
+ fbCopyNtoN(pSrcDrawable, pDstDrawable, pGC, pbox, nbox,
+ dx, dy, reverse, upsidedown, bitplane,
+ closure);
+ if (pSrcDrawable != pDstDrawable)
+ uxa_finish_access(pSrcDrawable);
+ }
+ uxa_finish_access(pDstDrawable);
+ }
+}
+
+RegionPtr
+uxa_copy_area(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, GCPtr pGC,
+ int srcx, int srcy, int width, int height, int dstx, int dsty)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDstDrawable->pScreen);
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback) {
+ return uxa_check_copy_area(pSrcDrawable, pDstDrawable, pGC,
+ srcx, srcy, width, height, dstx,
+ dsty);
+ }
+
+ return miDoCopy(pSrcDrawable, pDstDrawable, pGC,
+ srcx, srcy, width, height,
+ dstx, dsty, uxa_copy_n_to_n, 0, NULL);
+}
+
+static void
+uxa_poly_point(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt,
+ DDXPointPtr ppt)
+{
+ int i;
+ xRectangle *prect;
+
+ /* If we can't reuse the current GC as is, don't bother accelerating the
+ * points.
+ */
+ if (pGC->fillStyle != FillSolid) {
+ uxa_check_poly_point(pDrawable, pGC, mode, npt, ppt);
+ return;
+ }
+
+ prect = malloc(sizeof(xRectangle) * npt);
+ if (!prect)
+ return;
+ for (i = 0; i < npt; i++) {
+ prect[i].x = ppt[i].x;
+ prect[i].y = ppt[i].y;
+ if (i > 0 && mode == CoordModePrevious) {
+ prect[i].x += prect[i - 1].x;
+ prect[i].y += prect[i - 1].y;
+ }
+ prect[i].width = 1;
+ prect[i].height = 1;
+ }
+ pGC->ops->PolyFillRect(pDrawable, pGC, npt, prect);
+ free(prect);
+}
+
+/**
+ * uxa_poly_lines() checks if it can accelerate the lines as a group of
+ * horizontal or vertical lines (rectangles), and uses existing rectangle fill
+ * acceleration if so.
+ */
+static void
+uxa_poly_lines(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt,
+ DDXPointPtr ppt)
+{
+ xRectangle *prect;
+ int x1, x2, y1, y2;
+ int i;
+
+ /* Don't try to do wide lines or non-solid fill style. */
+ if (pGC->lineWidth != 0 || pGC->lineStyle != LineSolid ||
+ pGC->fillStyle != FillSolid) {
+ uxa_check_poly_lines(pDrawable, pGC, mode, npt, ppt);
+ return;
+ }
+
+ prect = malloc(sizeof(xRectangle) * (npt - 1));
+ if (!prect)
+ return;
+ x1 = ppt[0].x;
+ y1 = ppt[0].y;
+ /* If we have any non-horizontal/vertical, fall back. */
+ for (i = 0; i < npt - 1; i++) {
+ if (mode == CoordModePrevious) {
+ x2 = x1 + ppt[i + 1].x;
+ y2 = y1 + ppt[i + 1].y;
+ } else {
+ x2 = ppt[i + 1].x;
+ y2 = ppt[i + 1].y;
+ }
+
+ if (x1 != x2 && y1 != y2) {
+ free(prect);
+ uxa_check_poly_lines(pDrawable, pGC, mode, npt, ppt);
+ return;
+ }
+
+ if (x1 < x2) {
+ prect[i].x = x1;
+ prect[i].width = x2 - x1 + 1;
+ } else {
+ prect[i].x = x2;
+ prect[i].width = x1 - x2 + 1;
+ }
+ if (y1 < y2) {
+ prect[i].y = y1;
+ prect[i].height = y2 - y1 + 1;
+ } else {
+ prect[i].y = y2;
+ prect[i].height = y1 - y2 + 1;
+ }
+
+ x1 = x2;
+ y1 = y2;
+ }
+ pGC->ops->PolyFillRect(pDrawable, pGC, npt - 1, prect);
+ free(prect);
+}
+
+/**
+ * uxa_poly_segment() checks if it can accelerate the lines as a group of
+ * horizontal or vertical lines (rectangles), and uses existing rectangle fill
+ * acceleration if so.
+ */
+static void
+uxa_poly_segment(DrawablePtr pDrawable, GCPtr pGC, int nseg, xSegment * pSeg)
+{
+ xRectangle *prect;
+ int i;
+
+ /* Don't try to do wide lines or non-solid fill style. */
+ if (pGC->lineWidth != 0 || pGC->lineStyle != LineSolid ||
+ pGC->fillStyle != FillSolid) {
+ uxa_check_poly_segment(pDrawable, pGC, nseg, pSeg);
+ return;
+ }
+
+ /* If we have any non-horizontal/vertical, fall back. */
+ for (i = 0; i < nseg; i++) {
+ if (pSeg[i].x1 != pSeg[i].x2 && pSeg[i].y1 != pSeg[i].y2) {
+ uxa_check_poly_segment(pDrawable, pGC, nseg, pSeg);
+ return;
+ }
+ }
+
+ prect = malloc(sizeof(xRectangle) * nseg);
+ if (!prect)
+ return;
+ for (i = 0; i < nseg; i++) {
+ if (pSeg[i].x1 < pSeg[i].x2) {
+ prect[i].x = pSeg[i].x1;
+ prect[i].width = pSeg[i].x2 - pSeg[i].x1 + 1;
+ } else {
+ prect[i].x = pSeg[i].x2;
+ prect[i].width = pSeg[i].x1 - pSeg[i].x2 + 1;
+ }
+ if (pSeg[i].y1 < pSeg[i].y2) {
+ prect[i].y = pSeg[i].y1;
+ prect[i].height = pSeg[i].y2 - pSeg[i].y1 + 1;
+ } else {
+ prect[i].y = pSeg[i].y2;
+ prect[i].height = pSeg[i].y1 - pSeg[i].y2 + 1;
+ }
+
+ /* don't paint last pixel */
+ if (pGC->capStyle == CapNotLast) {
+ if (prect[i].width == 1)
+ prect[i].height--;
+ else
+ prect[i].width--;
+ }
+ }
+ pGC->ops->PolyFillRect(pDrawable, pGC, nseg, prect);
+ free(prect);
+}
+
+static Bool uxa_fill_region_solid(DrawablePtr pDrawable, RegionPtr pRegion,
+ Pixel pixel, CARD32 planemask, CARD32 alu);
+
+static void
+uxa_poly_fill_rect(DrawablePtr pDrawable,
+ GCPtr pGC, int nrect, xRectangle * prect)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDrawable->pScreen);
+ RegionPtr pClip = fbGetCompositeClip(pGC);
+ PixmapPtr pPixmap;
+ register BoxPtr pbox;
+ BoxPtr pextent;
+ int extentX1, extentX2, extentY1, extentY2;
+ int fullX1, fullX2, fullY1, fullY2;
+ int partX1, partX2, partY1, partY2;
+ int xoff, yoff;
+ int xorg, yorg;
+ int n;
+ RegionPtr pReg = RECTS_TO_REGION(pScreen, nrect, prect, CT_UNSORTED);
+
+ /* Compute intersection of rects and clip region */
+ REGION_TRANSLATE(pScreen, pReg, pDrawable->x, pDrawable->y);
+ REGION_INTERSECT(pScreen, pReg, pClip, pReg);
+
+ if (!REGION_NUM_RECTS(pReg))
+ goto out;
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback)
+ goto fallback;
+
+ pPixmap = uxa_get_offscreen_pixmap (pDrawable, &xoff, &yoff);
+ if (!pPixmap)
+ goto fallback;
+
+ /* For ROPs where overlaps don't matter, convert rectangles to region
+ * and call uxa_fill_region_{solid,tiled}.
+ */
+ if ((pGC->fillStyle == FillSolid || pGC->fillStyle == FillTiled) &&
+ (nrect == 1 || pGC->alu == GXcopy || pGC->alu == GXclear ||
+ pGC->alu == GXnoop || pGC->alu == GXcopyInverted ||
+ pGC->alu == GXset)) {
+ if (((pGC->fillStyle == FillSolid || pGC->tileIsPixel) &&
+ uxa_fill_region_solid(pDrawable, pReg,
+ pGC->fillStyle ==
+ FillSolid ? pGC->fgPixel : pGC->tile.
+ pixel, pGC->planemask, pGC->alu))
+ || (pGC->fillStyle == FillTiled && !pGC->tileIsPixel
+ && uxa_fill_region_tiled(pDrawable, pReg,
+ pGC->tile.pixmap, &pGC->patOrg,
+ pGC->planemask, pGC->alu))) {
+ goto out;
+ }
+ }
+
+ if (pGC->fillStyle != FillSolid &&
+ !(pGC->tileIsPixel && pGC->fillStyle == FillTiled)) {
+ goto fallback;
+ }
+
+ if (uxa_screen->info->check_solid &&
+ !uxa_screen->info->check_solid(pDrawable, pGC->alu, pGC->planemask)) {
+ goto fallback;
+ }
+
+ if (!(*uxa_screen->info->prepare_solid) (pPixmap,
+ pGC->alu,
+ pGC->planemask,
+ pGC->fgPixel)) {
+fallback:
+ uxa_check_poly_fill_rect(pDrawable, pGC, nrect, prect);
+ goto out;
+ }
+
+ xorg = pDrawable->x;
+ yorg = pDrawable->y;
+
+ pextent = REGION_EXTENTS(pGC->pScreen, pClip);
+ extentX1 = pextent->x1;
+ extentY1 = pextent->y1;
+ extentX2 = pextent->x2;
+ extentY2 = pextent->y2;
+ while (nrect--) {
+ fullX1 = prect->x + xorg;
+ fullY1 = prect->y + yorg;
+ fullX2 = fullX1 + (int)prect->width;
+ fullY2 = fullY1 + (int)prect->height;
+ prect++;
+
+ if (fullX1 < extentX1)
+ fullX1 = extentX1;
+
+ if (fullY1 < extentY1)
+ fullY1 = extentY1;
+
+ if (fullX2 > extentX2)
+ fullX2 = extentX2;
+
+ if (fullY2 > extentY2)
+ fullY2 = extentY2;
+
+ if ((fullX1 >= fullX2) || (fullY1 >= fullY2))
+ continue;
+ n = REGION_NUM_RECTS(pClip);
+ if (n == 1) {
+ (*uxa_screen->info->solid) (pPixmap,
+ fullX1 + xoff,
+ fullY1 + yoff,
+ fullX2 + xoff,
+ fullY2 + yoff);
+ } else {
+ pbox = REGION_RECTS(pClip);
+ /*
+ * clip the rectangle to each box in the clip region
+ * this is logically equivalent to calling Intersect(),
+ * but rectangles may overlap each other here.
+ */
+ while (n--) {
+ partX1 = pbox->x1;
+ if (partX1 < fullX1)
+ partX1 = fullX1;
+ partY1 = pbox->y1;
+ if (partY1 < fullY1)
+ partY1 = fullY1;
+ partX2 = pbox->x2;
+ if (partX2 > fullX2)
+ partX2 = fullX2;
+ partY2 = pbox->y2;
+ if (partY2 > fullY2)
+ partY2 = fullY2;
+
+ pbox++;
+
+ if (partX1 < partX2 && partY1 < partY2) {
+ (*uxa_screen->info->solid) (pPixmap,
+ partX1 +
+ xoff,
+ partY1 +
+ yoff,
+ partX2 +
+ xoff,
+ partY2 +
+ yoff);
+ }
+ }
+ }
+ }
+ (*uxa_screen->info->done_solid) (pPixmap);
+
+out:
+ REGION_UNINIT(pScreen, pReg);
+ REGION_DESTROY(pScreen, pReg);
+}
+
+const GCOps uxa_ops = {
+ uxa_fill_spans,
+ uxa_check_set_spans,
+ uxa_put_image,
+ uxa_copy_area,
+ uxa_check_copy_plane,
+ uxa_poly_point,
+ uxa_poly_lines,
+ uxa_poly_segment,
+ miPolyRectangle,
+ uxa_check_poly_arc,
+ miFillPolygon,
+ uxa_poly_fill_rect,
+ miPolyFillArc,
+ miPolyText8,
+ miPolyText16,
+ miImageText8,
+ miImageText16,
+ uxa_check_image_glyph_blt,
+ uxa_check_poly_glyph_blt,
+ uxa_check_push_pixels,
+};
+
+void uxa_copy_window(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc)
+{
+ RegionRec rgnDst;
+ int dx, dy;
+ PixmapPtr pPixmap = (*pWin->drawable.pScreen->GetWindowPixmap) (pWin);
+
+ dx = ptOldOrg.x - pWin->drawable.x;
+ dy = ptOldOrg.y - pWin->drawable.y;
+ REGION_TRANSLATE(pWin->drawable.pScreen, prgnSrc, -dx, -dy);
+
+ REGION_INIT(pWin->drawable.pScreen, &rgnDst, NullBox, 0);
+
+ REGION_INTERSECT(pWin->drawable.pScreen, &rgnDst, &pWin->borderClip,
+ prgnSrc);
+#ifdef COMPOSITE
+ if (pPixmap->screen_x || pPixmap->screen_y)
+ REGION_TRANSLATE(pWin->drawable.pScreen, &rgnDst,
+ -pPixmap->screen_x, -pPixmap->screen_y);
+#endif
+
+ miCopyRegion(&pPixmap->drawable, &pPixmap->drawable,
+ NULL, &rgnDst, dx, dy, uxa_copy_n_to_n, 0, NULL);
+
+ REGION_UNINIT(pWin->drawable.pScreen, &rgnDst);
+}
+
+static Bool
+uxa_fill_region_solid(DrawablePtr pDrawable,
+ RegionPtr pRegion,
+ Pixel pixel, CARD32 planemask, CARD32 alu)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PixmapPtr pixmap;
+ int xoff, yoff;
+ int nbox;
+ BoxPtr pBox, extents;
+ Bool ret = FALSE;
+
+ pixmap = uxa_get_offscreen_pixmap(pDrawable, &xoff, &yoff);
+ if (!pixmap)
+ return FALSE;
+
+ REGION_TRANSLATE(screen, pRegion, xoff, yoff);
+
+ nbox = REGION_NUM_RECTS(pRegion);
+ pBox = REGION_RECTS(pRegion);
+ extents = REGION_EXTENTS(screen, pRegion);
+
+ /* Using GEM, the relocation costs outweigh the advantages of the blitter */
+ if (nbox == 1 || (alu != GXcopy && alu != GXclear) || !UXA_PM_IS_SOLID(&pixmap->drawable, planemask)) {
+try_solid:
+ if (uxa_screen->info->check_solid &&
+ !uxa_screen->info->check_solid(&pixmap->drawable, alu, planemask))
+ goto err;
+
+ if (!uxa_screen->info->prepare_solid(pixmap, alu, planemask, pixel))
+ goto err;
+
+ while (nbox--) {
+ uxa_screen->info->solid(pixmap,
+ pBox->x1, pBox->y1,
+ pBox->x2, pBox->y2);
+ pBox++;
+ }
+
+ uxa_screen->info->done_solid(pixmap);
+ } else {
+ PicturePtr dst, src;
+ PixmapPtr src_pixmap = NULL;
+ xRenderColor color;
+ int error;
+
+ dst = CreatePicture(0, &pixmap->drawable,
+ PictureMatchFormat(screen,
+ pixmap->drawable.depth,
+ format_for_depth(pixmap->drawable.depth)),
+ 0, 0, serverClient, &error);
+ if (!dst)
+ goto err;
+
+ ValidatePicture(dst);
+
+ uxa_get_rgba_from_pixel(pixel,
+ &color.red,
+ &color.green,
+ &color.blue,
+ &color.alpha,
+ format_for_depth(pixmap->drawable.depth));
+ src = CreateSolidPicture(0, &color, &error);
+ if (!src) {
+ FreePicture(dst, 0);
+ goto err;
+ }
+
+ if (!uxa_screen->info->check_composite(PictOpSrc, src, NULL, dst,
+ extents->x2 - extents->x1,
+ extents->y2 - extents->y1)) {
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ goto try_solid;
+ }
+
+ if (!uxa_screen->info->check_composite_texture ||
+ !uxa_screen->info->check_composite_texture(screen, src)) {
+ PicturePtr solid;
+ int src_off_x, src_off_y;
+
+ solid = uxa_acquire_solid(screen, src->pSourcePict);
+ FreePicture(src, 0);
+ if (!solid) {
+ FreePicture(dst, 0);
+ goto err;
+ }
+
+ src = solid;
+ src_pixmap = uxa_get_offscreen_pixmap(src->pDrawable,
+ &src_off_x, &src_off_y);
+ if (!src_pixmap) {
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ goto err;
+ }
+ }
+
+ if (!uxa_screen->info->prepare_composite(PictOpSrc, src, NULL, dst, src_pixmap, NULL, pixmap)) {
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ goto err;
+ }
+
+ while (nbox--) {
+ uxa_screen->info->composite(pixmap,
+ 0, 0, 0, 0,
+ pBox->x1,
+ pBox->y1,
+ pBox->x2 - pBox->x1,
+ pBox->y2 - pBox->y1);
+ pBox++;
+ }
+
+ uxa_screen->info->done_composite(pixmap);
+ FreePicture(src, 0);
+ FreePicture(dst, 0);
+ }
+
+ ret = TRUE;
+
+err:
+ REGION_TRANSLATE(screen, pRegion, -xoff, -yoff);
+ return ret;
+}
+
+/* Try to do an accelerated tile of the pTile into pRegion of pDrawable.
+ * Based on fbFillRegionTiled(), fbTile().
+ */
+Bool
+uxa_fill_region_tiled(DrawablePtr pDrawable,
+ RegionPtr pRegion,
+ PixmapPtr pTile,
+ DDXPointPtr pPatOrg, CARD32 planemask, CARD32 alu)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDrawable->pScreen);
+ PixmapPtr pPixmap;
+ int xoff, yoff;
+ int tileWidth, tileHeight;
+ int nbox = REGION_NUM_RECTS(pRegion);
+ BoxPtr pBox = REGION_RECTS(pRegion);
+ Bool ret = FALSE;
+
+ tileWidth = pTile->drawable.width;
+ tileHeight = pTile->drawable.height;
+
+ /* If we're filling with a solid color, grab it out and go to
+ * FillRegionsolid, saving numerous copies.
+ */
+ if (tileWidth == 1 && tileHeight == 1)
+ return uxa_fill_region_solid(pDrawable, pRegion,
+ uxa_get_pixmap_first_pixel(pTile),
+ planemask, alu);
+
+ pPixmap = uxa_get_offscreen_pixmap(pDrawable, &xoff, &yoff);
+ if (!pPixmap || !uxa_pixmap_is_offscreen(pTile))
+ goto out;
+
+ if (uxa_screen->info->check_copy &&
+ !uxa_screen->info->check_copy(pTile, pPixmap, alu, planemask))
+ return FALSE;
+
+ REGION_TRANSLATE(pScreen, pRegion, xoff, yoff);
+
+ if ((*uxa_screen->info->prepare_copy) (pTile, pPixmap, 1, 1, alu,
+ planemask)) {
+ while (nbox--) {
+ int height = pBox->y2 - pBox->y1;
+ int dstY = pBox->y1;
+ int tileY;
+
+ modulus(dstY - yoff - pDrawable->y - pPatOrg->y,
+ tileHeight, tileY);
+
+ while (height > 0) {
+ int width = pBox->x2 - pBox->x1;
+ int dstX = pBox->x1;
+ int tileX;
+ int h = tileHeight - tileY;
+
+ if (h > height)
+ h = height;
+ height -= h;
+
+ modulus(dstX - xoff - pDrawable->x - pPatOrg->x,
+ tileWidth, tileX);
+
+ while (width > 0) {
+ int w = tileWidth - tileX;
+ if (w > width)
+ w = width;
+ width -= w;
+
+ (*uxa_screen->info->copy) (pPixmap,
+ tileX, tileY,
+ dstX, dstY,
+ w, h);
+ dstX += w;
+ tileX = 0;
+ }
+ dstY += h;
+ tileY = 0;
+ }
+ pBox++;
+ }
+ (*uxa_screen->info->done_copy) (pPixmap);
+
+ ret = TRUE;
+ }
+
+out:
+ REGION_TRANSLATE(pScreen, pRegion, -xoff, -yoff);
+
+ return ret;
+}
+
+/**
+ * Accelerates GetImage for solid ZPixmap downloads from framebuffer memory.
+ *
+ * This is probably the only case we actually care about. The rest fall through
+ * to migration and fbGetImage, which hopefully will result in migration pushing
+ * the pixmap out of framebuffer.
+ */
+void
+uxa_get_image(DrawablePtr pDrawable, int x, int y, int w, int h,
+ unsigned int format, unsigned long planeMask, char *d)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ BoxRec Box;
+ PixmapPtr pPix = uxa_get_drawable_pixmap(pDrawable);
+ int xoff, yoff;
+ Bool ok;
+
+ uxa_get_drawable_deltas(pDrawable, pPix, &xoff, &yoff);
+
+ Box.x1 = pDrawable->y + x + xoff;
+ Box.y1 = pDrawable->y + y + yoff;
+ Box.x2 = Box.x1 + w;
+ Box.y2 = Box.y1 + h;
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback)
+ goto fallback;
+
+ pPix = uxa_get_offscreen_pixmap(pDrawable, &xoff, &yoff);
+
+ if (pPix == NULL || uxa_screen->info->get_image == NULL)
+ goto fallback;
+
+ /* Only cover the ZPixmap, solid copy case. */
+ if (format != ZPixmap || !UXA_PM_IS_SOLID(pDrawable, planeMask))
+ goto fallback;
+
+ /* Only try to handle the 8bpp and up cases, since we don't want to
+ * think about <8bpp.
+ */
+ if (pDrawable->bitsPerPixel < 8)
+ goto fallback;
+
+ ok = uxa_screen->info->get_image(pPix, pDrawable->x + x + xoff,
+ pDrawable->y + y + yoff, w, h, d,
+ PixmapBytePad(w, pDrawable->depth));
+ if (ok)
+ return;
+
+fallback:
+ UXA_FALLBACK(("from %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RO)) {
+ fbGetImage(pDrawable, x, y, w, h, format, planeMask, d);
+ uxa_finish_access(pDrawable);
+ }
+
+ return;
+}
diff --git a/uxa/uxa-glyphs.c b/uxa/uxa-glyphs.c
new file mode 100644
index 0000000..0f5ddda
--- /dev/null
+++ b/uxa/uxa-glyphs.c
@@ -0,0 +1,1193 @@
+/*
+ * Copyright © 2010 Intel Corporation
+ * Partly based on code Copyright © 2008 Red Hat, Inc.
+ * Partly based on code Copyright © 2000 SuSE, Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Intel not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. Intel makes no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ *
+ * INTEL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL INTEL
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Red Hat not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. Red Hat makes no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ *
+ * Red Hat DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL Red Hat
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of SuSE not be used in advertising or
+ * publicity pertaining to distribution of the software without specific,
+ * written prior permission. SuSE makes no representations about the
+ * suitability of this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ *
+ * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
+ * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Author: Chris Wilson <chris@chris-wilson.co.uk>
+ * Based on code by: Keith Packard <keithp@keithp.com> and Owen Taylor <otaylor@fishsoup.net>
+ */
+
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
+#include <stdlib.h>
+
+#include "uxa-priv.h"
+#include "../src/common.h"
+
+#include "mipict.h"
+
+/* Width of the pixmaps we use for the caches; this should be less than
+ * max texture size of the driver; this may need to actually come from
+ * the driver.
+ */
+#define CACHE_PICTURE_SIZE 1024
+#define GLYPH_MIN_SIZE 8
+#define GLYPH_MAX_SIZE 64
+#define GLYPH_CACHE_SIZE (CACHE_PICTURE_SIZE * CACHE_PICTURE_SIZE / (GLYPH_MIN_SIZE * GLYPH_MIN_SIZE))
+
+struct uxa_glyph {
+ uxa_glyph_cache_t *cache;
+ uint16_t x, y;
+ uint16_t size, pos;
+};
+
+#if HAS_DEVPRIVATEKEYREC
+static DevPrivateKeyRec uxa_glyph_key;
+#else
+static int uxa_glyph_key;
+#endif
+
+static inline struct uxa_glyph *uxa_glyph_get_private(GlyphPtr glyph)
+{
+#if HAS_DEVPRIVATEKEYREC
+ return dixGetPrivate(&glyph->devPrivates, &uxa_glyph_key);
+#else
+ return dixLookupPrivate(&glyph->devPrivates, &uxa_glyph_key);
+#endif
+}
+
+static inline void uxa_glyph_set_private(GlyphPtr glyph, struct uxa_glyph *priv)
+{
+ dixSetPrivate(&glyph->devPrivates, &uxa_glyph_key, priv);
+}
+
+#define NeedsComponent(f) (PICT_FORMAT_A(f) != 0 && PICT_FORMAT_RGB(f) != 0)
+
+static void uxa_unrealize_glyph_caches(ScreenPtr pScreen)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
+ int i;
+
+ if (!uxa_screen->glyph_cache_initialized)
+ return;
+
+ for (i = 0; i < UXA_NUM_GLYPH_CACHE_FORMATS; i++) {
+ uxa_glyph_cache_t *cache = &uxa_screen->glyphCaches[i];
+
+ if (cache->picture)
+ FreePicture(cache->picture, 0);
+
+ if (cache->glyphs)
+ free(cache->glyphs);
+ }
+ uxa_screen->glyph_cache_initialized = FALSE;
+}
+
+void uxa_glyphs_fini(ScreenPtr pScreen)
+{
+ uxa_unrealize_glyph_caches(pScreen);
+}
+
+/* All caches for a single format share a single pixmap for glyph storage,
+ * allowing mixing glyphs of different sizes without paying a penalty
+ * for switching between source pixmaps. (Note that for a size of font
+ * right at the border between two sizes, we might be switching for almost
+ * every glyph.)
+ *
+ * This function allocates the storage pixmap, and then fills in the
+ * rest of the allocated structures for all caches with the given format.
+ */
+static Bool uxa_realize_glyph_caches(ScreenPtr pScreen)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
+ unsigned int formats[] = {
+ PIXMAN_a8,
+ PIXMAN_a8r8g8b8,
+ };
+ int i;
+
+ if (uxa_screen->glyph_cache_initialized)
+ return TRUE;
+
+ uxa_screen->glyph_cache_initialized = TRUE;
+ memset(uxa_screen->glyphCaches, 0, sizeof(uxa_screen->glyphCaches));
+
+ for (i = 0; i < sizeof(formats)/sizeof(formats[0]); i++) {
+ uxa_glyph_cache_t *cache = &uxa_screen->glyphCaches[i];
+ PixmapPtr pixmap;
+ PicturePtr picture;
+ CARD32 component_alpha;
+ int depth = PIXMAN_FORMAT_DEPTH(formats[i]);
+ int error;
+ PictFormatPtr pPictFormat = PictureMatchFormat(pScreen, depth, formats[i]);
+ if (!pPictFormat)
+ goto bail;
+
+ /* Now allocate the pixmap and picture */
+ pixmap = pScreen->CreatePixmap(pScreen,
+ CACHE_PICTURE_SIZE, CACHE_PICTURE_SIZE, depth,
+ INTEL_CREATE_PIXMAP_TILING_X);
+ if (!pixmap)
+ goto bail;
+ if (!uxa_pixmap_is_offscreen(pixmap)) {
+ /* Presume shadow is in-effect */
+ pScreen->DestroyPixmap(pixmap);
+ uxa_unrealize_glyph_caches(pScreen);
+ return TRUE;
+ }
+
+ component_alpha = NeedsComponent(pPictFormat->format);
+ picture = CreatePicture(0, &pixmap->drawable, pPictFormat,
+ CPComponentAlpha, &component_alpha,
+ serverClient, &error);
+
+ pScreen->DestroyPixmap(pixmap);
+
+ if (!picture)
+ goto bail;
+
+ ValidatePicture(picture);
+
+ cache->picture = picture;
+ cache->glyphs = calloc(sizeof(GlyphPtr), GLYPH_CACHE_SIZE);
+ if (!cache->glyphs)
+ goto bail;
+
+ cache->evict = rand() % GLYPH_CACHE_SIZE;
+ }
+ assert(i == UXA_NUM_GLYPH_CACHE_FORMATS);
+
+ return TRUE;
+
+bail:
+ uxa_unrealize_glyph_caches(pScreen);
+ return FALSE;
+}
+
+
+Bool uxa_glyphs_init(ScreenPtr pScreen)
+{
+#if HAS_DIXREGISTERPRIVATEKEY
+ if (!dixRegisterPrivateKey(&uxa_glyph_key, PRIVATE_GLYPH, 0))
+ return FALSE;
+#else
+ if (!dixRequestPrivate(&uxa_glyph_key, 0))
+ return FALSE;
+#endif
+
+ /* Skip pixmap creation if we don't intend to use it. */
+ if (uxa_get_screen(pScreen)->force_fallback)
+ return TRUE;
+
+ return uxa_realize_glyph_caches(pScreen);
+}
+
+/* The most efficient thing to way to upload the glyph to the screen
+ * is to use CopyArea; uxa pixmaps are always offscreen.
+ */
+static void
+uxa_glyph_cache_upload_glyph(ScreenPtr screen,
+ uxa_glyph_cache_t * cache,
+ GlyphPtr glyph,
+ int x, int y)
+{
+ PicturePtr pGlyphPicture = GlyphPicture(glyph)[screen->myNum];
+ PixmapPtr pGlyphPixmap = (PixmapPtr) pGlyphPicture->pDrawable;
+ PixmapPtr pCachePixmap = (PixmapPtr) cache->picture->pDrawable;
+ PixmapPtr scratch;
+ GCPtr gc;
+
+ gc = GetScratchGC(pCachePixmap->drawable.depth, screen);
+ if (!gc)
+ return;
+
+ ValidateGC(&pCachePixmap->drawable, gc);
+
+ scratch = pGlyphPixmap;
+ /* Create a temporary bo to stream the updates to the cache */
+ if (pGlyphPixmap->drawable.depth != pCachePixmap->drawable.depth ||
+ !uxa_pixmap_is_offscreen(scratch)) {
+ scratch = screen->CreatePixmap(screen,
+ glyph->info.width,
+ glyph->info.height,
+ pCachePixmap->drawable.depth,
+ UXA_CREATE_PIXMAP_FOR_MAP);
+ if (scratch) {
+ if (pGlyphPixmap->drawable.depth != pCachePixmap->drawable.depth) {
+ PicturePtr picture;
+ int error;
+
+ picture = CreatePicture(0, &scratch->drawable,
+ PictureMatchFormat(screen,
+ pCachePixmap->drawable.depth,
+ cache->picture->format),
+ 0, NULL,
+ serverClient, &error);
+ if (picture) {
+ ValidatePicture(picture);
+ uxa_composite(PictOpSrc, pGlyphPicture, NULL, picture,
+ 0, 0,
+ 0, 0,
+ 0, 0,
+ glyph->info.width, glyph->info.height);
+ FreePicture(picture, 0);
+ }
+ } else {
+ uxa_copy_area(&pGlyphPixmap->drawable,
+ &scratch->drawable,
+ gc,
+ 0, 0,
+ glyph->info.width, glyph->info.height,
+ 0, 0);
+ }
+ } else {
+ scratch = pGlyphPixmap;
+ }
+ }
+
+ uxa_copy_area(&scratch->drawable, &pCachePixmap->drawable, gc,
+ 0, 0,
+ glyph->info.width, glyph->info.height,
+ x, y);
+
+ if (scratch != pGlyphPixmap)
+ screen->DestroyPixmap(scratch);
+
+ FreeScratchGC(gc);
+}
+
+void
+uxa_glyph_unrealize(ScreenPtr screen,
+ GlyphPtr glyph)
+{
+ struct uxa_glyph *priv;
+
+ /* Use Lookup in case we have not attached to this glyph. */
+ priv = dixLookupPrivate(&glyph->devPrivates, &uxa_glyph_key);
+ if (priv == NULL)
+ return;
+
+ priv->cache->glyphs[priv->pos] = NULL;
+
+ uxa_glyph_set_private(glyph, NULL);
+ free(priv);
+}
+
+/* Cut and paste from render/glyph.c - probably should export it instead */
+static void
+uxa_glyph_extents(int nlist,
+ GlyphListPtr list, GlyphPtr * glyphs, BoxPtr extents)
+{
+ int x1, x2, y1, y2;
+ int x, y, n;
+
+ x1 = y1 = MAXSHORT;
+ x2 = y2 = MINSHORT;
+ x = y = 0;
+ while (nlist--) {
+ x += list->xOff;
+ y += list->yOff;
+ n = list->len;
+ list++;
+ while (n--) {
+ GlyphPtr glyph = *glyphs++;
+ int v;
+
+ v = x - glyph->info.x;
+ if (v < x1)
+ x1 = v;
+ v += glyph->info.width;
+ if (v > x2)
+ x2 = v;
+
+ v = y - glyph->info.y;
+ if (v < y1)
+ y1 = v;
+ v += glyph->info.height;
+ if (v > y2)
+ y2 = v;
+
+ x += glyph->info.xOff;
+ y += glyph->info.yOff;
+ }
+ }
+
+ extents->x1 = x1 < MINSHORT ? MINSHORT : x1;
+ extents->x2 = x2 > MAXSHORT ? MAXSHORT : x2;
+ extents->y1 = y1 < MINSHORT ? MINSHORT : y1;
+ extents->y2 = y2 > MAXSHORT ? MAXSHORT : y2;
+}
+
+/**
+ * Returns TRUE if the glyphs in the lists intersect. Only checks based on
+ * bounding box, which appears to be good enough to catch most cases at least.
+ */
+static Bool
+uxa_glyphs_intersect(int nlist, GlyphListPtr list, GlyphPtr * glyphs)
+{
+ int x1, x2, y1, y2;
+ int n;
+ int x, y;
+ BoxRec extents;
+ Bool first = TRUE;
+
+ x = 0;
+ y = 0;
+ extents.x1 = 0;
+ extents.y1 = 0;
+ extents.x2 = 0;
+ extents.y2 = 0;
+ while (nlist--) {
+ x += list->xOff;
+ y += list->yOff;
+ n = list->len;
+ list++;
+ while (n--) {
+ GlyphPtr glyph = *glyphs++;
+
+ if (glyph->info.width == 0 || glyph->info.height == 0) {
+ x += glyph->info.xOff;
+ y += glyph->info.yOff;
+ continue;
+ }
+
+ x1 = x - glyph->info.x;
+ if (x1 < MINSHORT)
+ x1 = MINSHORT;
+ y1 = y - glyph->info.y;
+ if (y1 < MINSHORT)
+ y1 = MINSHORT;
+ x2 = x1 + glyph->info.width;
+ if (x2 > MAXSHORT)
+ x2 = MAXSHORT;
+ y2 = y1 + glyph->info.height;
+ if (y2 > MAXSHORT)
+ y2 = MAXSHORT;
+
+ if (first) {
+ extents.x1 = x1;
+ extents.y1 = y1;
+ extents.x2 = x2;
+ extents.y2 = y2;
+ first = FALSE;
+ } else {
+ if (x1 < extents.x2 && x2 > extents.x1 &&
+ y1 < extents.y2 && y2 > extents.y1) {
+ return TRUE;
+ }
+
+ if (x1 < extents.x1)
+ extents.x1 = x1;
+ if (x2 > extents.x2)
+ extents.x2 = x2;
+ if (y1 < extents.y1)
+ extents.y1 = y1;
+ if (y2 > extents.y2)
+ extents.y2 = y2;
+ }
+ x += glyph->info.xOff;
+ y += glyph->info.yOff;
+ }
+ }
+
+ return FALSE;
+}
+
+static void
+uxa_check_glyphs(CARD8 op,
+ PicturePtr src,
+ PicturePtr dst,
+ PictFormatPtr maskFormat,
+ INT16 xSrc,
+ INT16 ySrc, int nlist, GlyphListPtr list, GlyphPtr * glyphs)
+{
+ int screen = dst->pDrawable->pScreen->myNum;
+ pixman_image_t *image;
+ PixmapPtr scratch;
+ PicturePtr mask;
+ int width = 0, height = 0;
+ int x, y, n;
+ int xDst = list->xOff, yDst = list->yOff;
+ BoxRec extents = { 0, 0, 0, 0 };
+
+ if (maskFormat) {
+ pixman_format_code_t format;
+ CARD32 component_alpha;
+ int error;
+
+ uxa_glyph_extents(nlist, list, glyphs, &extents);
+ if (extents.x2 <= extents.x1 || extents.y2 <= extents.y1)
+ return;
+
+ width = extents.x2 - extents.x1;
+ height = extents.y2 - extents.y1;
+
+ format = maskFormat->format |
+ (BitsPerPixel(maskFormat->depth) << 24);
+ image =
+ pixman_image_create_bits(format, width, height, NULL, 0);
+ if (!image)
+ return;
+
+ scratch = GetScratchPixmapHeader(dst->pDrawable->pScreen, width, height,
+ PIXMAN_FORMAT_DEPTH(format),
+ PIXMAN_FORMAT_BPP(format),
+ pixman_image_get_stride(image),
+ pixman_image_get_data(image));
+
+ if (!scratch) {
+ pixman_image_unref(image);
+ return;
+ }
+
+ component_alpha = NeedsComponent(maskFormat->format);
+ mask = CreatePicture(0, &scratch->drawable,
+ maskFormat, CPComponentAlpha,
+ &component_alpha, serverClient, &error);
+ if (!mask) {
+ FreeScratchPixmapHeader(scratch);
+ pixman_image_unref(image);
+ return;
+ }
+ ValidatePicture(mask);
+
+ x = -extents.x1;
+ y = -extents.y1;
+ } else {
+ mask = dst;
+ x = 0;
+ y = 0;
+ }
+
+ while (nlist--) {
+ x += list->xOff;
+ y += list->yOff;
+ n = list->len;
+ while (n--) {
+ GlyphPtr glyph = *glyphs++;
+ PicturePtr g = GlyphPicture(glyph)[screen];
+ if (g) {
+ if (maskFormat) {
+ CompositePicture(PictOpAdd, g, NULL, mask,
+ 0, 0,
+ 0, 0,
+ x - glyph->info.x,
+ y - glyph->info.y,
+ glyph->info.width,
+ glyph->info.height);
+ } else {
+ CompositePicture(op, src, g, dst,
+ xSrc + (x - glyph->info.x) - xDst,
+ ySrc + (y - glyph->info.y) - yDst,
+ 0, 0,
+ x - glyph->info.x,
+ y - glyph->info.y,
+ glyph->info.width,
+ glyph->info.height);
+ }
+ }
+
+ x += glyph->info.xOff;
+ y += glyph->info.yOff;
+ }
+ list++;
+ }
+
+ if (maskFormat) {
+ x = extents.x1;
+ y = extents.y1;
+ CompositePicture(op, src, mask, dst,
+ xSrc + x - xDst,
+ ySrc + y - yDst,
+ 0, 0,
+ x, y,
+ width, height);
+ FreePicture(mask, 0);
+ FreeScratchPixmapHeader(scratch);
+ pixman_image_unref(image);
+ }
+}
+
+static inline unsigned int
+uxa_glyph_size_to_count(int size)
+{
+ size /= GLYPH_MIN_SIZE;
+ return size * size;
+}
+
+static inline unsigned int
+uxa_glyph_count_to_mask(int count)
+{
+ return ~(count - 1);
+}
+
+static inline unsigned int
+uxa_glyph_size_to_mask(int size)
+{
+ return uxa_glyph_count_to_mask(uxa_glyph_size_to_count(size));
+}
+
+static PicturePtr
+uxa_glyph_cache(ScreenPtr screen, GlyphPtr glyph, int *out_x, int *out_y)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PicturePtr glyph_picture = GlyphPicture(glyph)[screen->myNum];
+ uxa_glyph_cache_t *cache = &uxa_screen->glyphCaches[PICT_FORMAT_RGB(glyph_picture->format) != 0];
+ struct uxa_glyph *priv = NULL;
+ int size, mask, pos, s;
+
+ if (glyph->info.width > GLYPH_MAX_SIZE || glyph->info.height > GLYPH_MAX_SIZE)
+ return NULL;
+
+ for (size = GLYPH_MIN_SIZE; size <= GLYPH_MAX_SIZE; size *= 2)
+ if (glyph->info.width <= size && glyph->info.height <= size)
+ break;
+
+ s = uxa_glyph_size_to_count(size);
+ mask = uxa_glyph_count_to_mask(s);
+ pos = (cache->count + s - 1) & mask;
+ if (pos < GLYPH_CACHE_SIZE) {
+ cache->count = pos + s;
+ } else {
+ for (s = size; s <= GLYPH_MAX_SIZE; s *= 2) {
+ int i = cache->evict & uxa_glyph_size_to_mask(s);
+ GlyphPtr evicted = cache->glyphs[i];
+ if (evicted == NULL)
+ continue;
+
+ priv = uxa_glyph_get_private(evicted);
+ if (priv->size >= s) {
+ cache->glyphs[i] = NULL;
+ uxa_glyph_set_private(evicted, NULL);
+ pos = cache->evict & uxa_glyph_size_to_mask(size);
+ } else
+ priv = NULL;
+ break;
+ }
+ if (priv == NULL) {
+ int count = uxa_glyph_size_to_count(size);
+ mask = uxa_glyph_count_to_mask(count);
+ pos = cache->evict & mask;
+ for (s = 0; s < count; s++) {
+ GlyphPtr evicted = cache->glyphs[pos + s];
+ if (evicted != NULL) {
+ if (priv != NULL)
+ free(priv);
+
+ priv = uxa_glyph_get_private(evicted);
+ uxa_glyph_set_private(evicted, NULL);
+ cache->glyphs[pos + s] = NULL;
+ }
+ }
+ }
+
+ /* And pick a new eviction position */
+ cache->evict = rand() % GLYPH_CACHE_SIZE;
+ }
+
+ if (priv == NULL) {
+ priv = malloc(sizeof(struct uxa_glyph));
+ if (priv == NULL)
+ return NULL;
+ }
+
+ uxa_glyph_set_private(glyph, priv);
+ cache->glyphs[pos] = glyph;
+
+ priv->cache = cache;
+ priv->size = size;
+ priv->pos = pos;
+ s = pos / ((GLYPH_MAX_SIZE / GLYPH_MIN_SIZE) * (GLYPH_MAX_SIZE / GLYPH_MIN_SIZE));
+ priv->x = s % (CACHE_PICTURE_SIZE / GLYPH_MAX_SIZE) * GLYPH_MAX_SIZE;
+ priv->y = (s / (CACHE_PICTURE_SIZE / GLYPH_MAX_SIZE)) * GLYPH_MAX_SIZE;
+ for (s = GLYPH_MIN_SIZE; s < GLYPH_MAX_SIZE; s *= 2) {
+ if (pos & 1)
+ priv->x += s;
+ if (pos & 2)
+ priv->y += s;
+ pos >>= 2;
+ }
+
+ uxa_glyph_cache_upload_glyph(screen, cache, glyph, priv->x, priv->y);
+
+ *out_x = priv->x;
+ *out_y = priv->y;
+ return cache->picture;
+}
+
+static int
+uxa_glyphs_to_dst(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pDst,
+ INT16 src_x, INT16 src_y,
+ INT16 xDst, INT16 yDst,
+ int nlist, GlyphListPtr list, GlyphPtr * glyphs,
+ BoxPtr extents)
+{
+ ScreenPtr screen = pDst->pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PixmapPtr src_pixmap, dst_pixmap;
+ PicturePtr localSrc, glyph_atlas;
+ int x, y, n;
+ BoxRec box;
+
+ if (uxa_screen->info->check_composite_texture &&
+ uxa_screen->info->check_composite_texture(screen, pSrc)) {
+ if (pSrc->pDrawable) {
+ int src_off_x, src_off_y;
+
+ src_pixmap = uxa_get_offscreen_pixmap(pSrc->pDrawable, &src_off_x, &src_off_y);
+ if (src_pixmap == NULL)
+ return -1;
+
+ src_x += pSrc->pDrawable->x + src_off_x;
+ src_y += pSrc->pDrawable->y + src_off_y;
+ } else {
+ src_pixmap = NULL;
+ }
+ localSrc = pSrc;
+ } else {
+ int width, height;
+
+ if (extents == NULL) {
+ uxa_glyph_extents(nlist, list, glyphs, &box);
+ extents = &box;
+ }
+
+ width = extents->x2 - extents->x1;
+ height = extents->y2 - extents->y1;
+ if (width == 0 || height == 0)
+ return 0;
+
+ if (pSrc->pDrawable) {
+ int src_off_x, src_off_y;
+
+ src_off_x = extents->x1 - xDst;
+ src_off_y = extents->y1 - yDst;
+ localSrc = uxa_acquire_drawable(screen, pSrc,
+ src_x + src_off_x, src_y + src_off_y,
+ width, height,
+ &src_x, &src_y);
+ if (uxa_screen->info->check_composite_texture &&
+ !uxa_screen->info->check_composite_texture(screen, localSrc)) {
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ return -1;
+ }
+
+ src_pixmap = uxa_get_offscreen_pixmap(localSrc->pDrawable, &src_off_x, &src_off_y);
+ if (src_pixmap == NULL) {
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ return -1;
+ }
+
+ src_x += localSrc->pDrawable->x + src_off_x;
+ src_y += localSrc->pDrawable->y + src_off_y;
+ } else {
+ localSrc = uxa_acquire_pattern(screen, pSrc,
+ PICT_a8r8g8b8, x, y, width, height);
+ if (!localSrc)
+ return 1;
+
+ src_pixmap = uxa_get_drawable_pixmap(localSrc->pDrawable);
+ if (src_pixmap == NULL) {
+ FreePicture(localSrc, 0);
+ return -1;
+ }
+
+ src_x = src_y = 0;
+ }
+ }
+
+ dst_pixmap = uxa_get_offscreen_pixmap(pDst->pDrawable, &x, &y);
+ x += xDst + pDst->pDrawable->x - list->xOff;
+ y += yDst + pDst->pDrawable->y - list->yOff;
+
+ glyph_atlas = NULL;
+ while (nlist--) {
+ x += list->xOff;
+ y += list->yOff;
+ n = list->len;
+ while (n--) {
+ GlyphPtr glyph = *glyphs++;
+ PicturePtr this_atlas;
+ int mask_x, mask_y, nrect;
+ struct uxa_glyph *priv;
+ BoxPtr rects;
+
+ if (glyph->info.width == 0 || glyph->info.height == 0)
+ goto next_glyph;
+
+ priv = uxa_glyph_get_private(glyph);
+ if (priv != NULL) {
+ mask_x = priv->x;
+ mask_y = priv->y;
+ this_atlas = priv->cache->picture;
+ } else {
+ if (glyph_atlas) {
+ uxa_screen->info->done_composite(dst_pixmap);
+ glyph_atlas = NULL;
+ }
+ this_atlas = uxa_glyph_cache(screen, glyph, &mask_x, &mask_y);
+ if (this_atlas == NULL) {
+ /* no cache for this glyph */
+ this_atlas = GlyphPicture(glyph)[screen->myNum];
+ mask_x = mask_y = 0;
+ }
+ }
+
+ if (this_atlas != glyph_atlas) {
+ PixmapPtr mask_pixmap;
+
+ if (glyph_atlas)
+ uxa_screen->info->done_composite(dst_pixmap);
+
+ mask_pixmap =
+ uxa_get_drawable_pixmap(this_atlas->pDrawable);
+ if (!uxa_pixmap_is_offscreen(mask_pixmap) ||
+ !uxa_screen->info->prepare_composite(op,
+ localSrc, this_atlas, pDst,
+ src_pixmap, mask_pixmap, dst_pixmap))
+ return -1;
+
+ glyph_atlas = this_atlas;
+ }
+
+ rects = REGION_RECTS(pDst->pCompositeClip);
+ nrect = REGION_NUM_RECTS(pDst->pCompositeClip);
+ while (nrect--) {
+ int x1 = x - glyph->info.x, dx = 0;
+ int y1 = y - glyph->info.y, dy = 0;
+ int x2 = x1 + glyph->info.width;
+ int y2 = y1 + glyph->info.height;
+
+ if (rects->y1 >= y2)
+ break;
+
+ if (x1 < rects->x1)
+ dx = rects->x1 - x1, x1 = rects->x1;
+ if (x2 > rects->x2)
+ x2 = rects->x2;
+ if (y1 < rects->y1)
+ dy = rects->y1 - y1, y1 = rects->y1;
+ if (y2 > rects->y2)
+ y2 = rects->y2;
+
+ if (x1 < x2 && y1 < y2) {
+ uxa_screen->info->composite(dst_pixmap,
+ x1 + src_x, y1 + src_y,
+ dx + mask_x, dy + mask_y,
+ x1, y1,
+ x2 - x1, y2 - y1);
+ }
+ rects++;
+ }
+
+next_glyph:
+ x += glyph->info.xOff;
+ y += glyph->info.yOff;
+ }
+ list++;
+ }
+ if (glyph_atlas)
+ uxa_screen->info->done_composite(dst_pixmap);
+
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+
+ return 0;
+}
+
+static void
+uxa_clear_pixmap(ScreenPtr screen,
+ uxa_screen_t *uxa_screen,
+ PixmapPtr pixmap)
+{
+ if (uxa_screen->info->check_solid &&
+ !uxa_screen->info->check_solid(&pixmap->drawable, GXcopy, FB_ALLONES))
+ goto fallback;
+
+ if (!uxa_screen->info->prepare_solid(pixmap, GXcopy, FB_ALLONES, 0))
+ goto fallback;
+
+ uxa_screen->info->solid(pixmap,
+ 0, 0,
+ pixmap->drawable.width,
+ pixmap->drawable.height);
+
+ uxa_screen->info->done_solid(pixmap);
+ return;
+
+fallback:
+ {
+ GCPtr gc;
+
+ gc = GetScratchGC(pixmap->drawable.depth, screen);
+ if (gc) {
+ xRectangle rect;
+
+ ValidateGC(&pixmap->drawable, gc);
+
+ rect.x = 0;
+ rect.y = 0;
+ rect.width = pixmap->drawable.width;
+ rect.height = pixmap->drawable.height;
+ gc->ops->PolyFillRect(&pixmap->drawable, gc, 1, &rect);
+
+ FreeScratchGC(gc);
+ }
+ }
+}
+
+static int
+uxa_glyphs_via_mask(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pDst,
+ PictFormatPtr maskFormat,
+ INT16 xSrc, INT16 ySrc,
+ INT16 xDst, INT16 yDst,
+ int nlist, GlyphListPtr list, GlyphPtr * glyphs,
+ BoxPtr extents)
+{
+ ScreenPtr screen = pDst->pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ CARD32 component_alpha;
+ PixmapPtr pixmap;
+ PicturePtr glyph_atlas, mask;
+ int x, y, width, height;
+ int dst_off_x, dst_off_y;
+ int n, error;
+ BoxRec box;
+
+ if (!extents) {
+ uxa_glyph_extents(nlist, list, glyphs, &box);
+
+ if (box.x2 <= box.x1 || box.y2 <= box.y1)
+ return 0;
+
+ extents = &box;
+ dst_off_x = box.x1;
+ dst_off_y = box.y1;
+ } else {
+ dst_off_x = dst_off_y = 0;
+ }
+
+ width = extents->x2 - extents->x1;
+ height = extents->y2 - extents->y1;
+ x = -extents->x1;
+ y = -extents->y1;
+
+ if (maskFormat->depth == 1) {
+ PictFormatPtr a8Format =
+ PictureMatchFormat(screen, 8, PICT_a8);
+
+ if (!a8Format)
+ return -1;
+
+ maskFormat = a8Format;
+ }
+
+ pixmap = screen->CreatePixmap(screen, width, height,
+ maskFormat->depth,
+ CREATE_PIXMAP_USAGE_SCRATCH);
+ if (!pixmap)
+ return 1;
+
+ uxa_clear_pixmap(screen, uxa_screen, pixmap);
+
+ component_alpha = NeedsComponent(maskFormat->format);
+ mask = CreatePicture(0, &pixmap->drawable,
+ maskFormat, CPComponentAlpha,
+ &component_alpha, serverClient, &error);
+ screen->DestroyPixmap(pixmap);
+
+ if (!mask)
+ return 1;
+
+ ValidatePicture(mask);
+
+ glyph_atlas = NULL;
+ while (nlist--) {
+ x += list->xOff;
+ y += list->yOff;
+ n = list->len;
+ while (n--) {
+ GlyphPtr glyph = *glyphs++;
+ PicturePtr this_atlas;
+ int src_x, src_y;
+ struct uxa_glyph *priv;
+
+ if (glyph->info.width == 0 || glyph->info.height == 0)
+ goto next_glyph;
+
+ priv = uxa_glyph_get_private(glyph);
+ if (priv != NULL) {
+ src_x = priv->x;
+ src_y = priv->y;
+ this_atlas = priv->cache->picture;
+ } else {
+ if (glyph_atlas) {
+ uxa_screen->info->done_composite(pixmap);
+ glyph_atlas = NULL;
+ }
+ this_atlas = uxa_glyph_cache(screen, glyph, &src_x, &src_y);
+ if (this_atlas == NULL) {
+ /* no cache for this glyph */
+ this_atlas = GlyphPicture(glyph)[screen->myNum];
+ src_x = src_y = 0;
+ }
+ }
+
+ if (this_atlas != glyph_atlas) {
+ PixmapPtr src_pixmap;
+
+ if (glyph_atlas)
+ uxa_screen->info->done_composite(pixmap);
+
+ src_pixmap =
+ uxa_get_drawable_pixmap(this_atlas->pDrawable);
+ if (!uxa_pixmap_is_offscreen(src_pixmap) ||
+ !uxa_screen->info->prepare_composite(PictOpAdd,
+ this_atlas, NULL, mask,
+ src_pixmap, NULL, pixmap))
+ return -1;
+
+ glyph_atlas = this_atlas;
+ }
+
+ uxa_screen->info->composite(pixmap,
+ src_x, src_y,
+ 0, 0,
+ x - glyph->info.x,
+ y - glyph->info.y,
+ glyph->info.width,
+ glyph->info.height);
+
+next_glyph:
+ x += glyph->info.xOff;
+ y += glyph->info.yOff;
+ }
+ list++;
+ }
+ if (glyph_atlas)
+ uxa_screen->info->done_composite(pixmap);
+
+ uxa_composite(op,
+ pSrc, mask, pDst,
+ dst_off_x + xSrc - xDst,
+ dst_off_y + ySrc - yDst,
+ 0, 0,
+ dst_off_x, dst_off_y,
+ width, height);
+
+ FreePicture(mask, 0);
+ return 0;
+}
+
+void
+uxa_glyphs(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pDst,
+ PictFormatPtr maskFormat,
+ INT16 xSrc, INT16 ySrc,
+ int nlist, GlyphListPtr list, GlyphPtr * glyphs)
+{
+ ScreenPtr screen = pDst->pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ int xDst = list->xOff, yDst = list->yOff;
+ BoxRec extents = { 0, 0, 0, 0 };
+ Bool have_extents = FALSE;
+ int width, height, ret;
+ PicturePtr localDst = pDst;
+
+ if (!uxa_screen->info->prepare_composite ||
+ uxa_screen->swappedOut ||
+ uxa_screen->force_fallback ||
+ !uxa_drawable_is_offscreen(pDst->pDrawable) ||
+ pDst->alphaMap || pSrc->alphaMap) {
+fallback:
+ uxa_check_glyphs(op, pSrc, pDst, maskFormat, xSrc, ySrc, nlist, list, glyphs);
+ return;
+ }
+
+ /* basic sanity check */
+ if (uxa_screen->info->check_composite &&
+ !uxa_screen->info->check_composite(op, pSrc, NULL, pDst, 0, 0)) {
+ goto fallback;
+ }
+
+ ValidatePicture(pSrc);
+ ValidatePicture(pDst);
+
+ if (!maskFormat) {
+ /* If we don't have a mask format but all the glyphs have the same format,
+ * require ComponentAlpha and don't intersect, use the glyph format as mask
+ * format for the full benefits of the glyph cache.
+ */
+ if (NeedsComponent(list[0].format->format)) {
+ Bool sameFormat = TRUE;
+ int i;
+
+ maskFormat = list[0].format;
+
+ for (i = 0; i < nlist; i++) {
+ if (maskFormat->format != list[i].format->format) {
+ sameFormat = FALSE;
+ break;
+ }
+ }
+
+ if (!sameFormat ||
+ uxa_glyphs_intersect(nlist, list, glyphs))
+ maskFormat = NULL;
+ }
+ }
+
+ if (!maskFormat &&
+ uxa_screen->info->check_composite_target &&
+ !uxa_screen->info->check_composite_target(uxa_get_drawable_pixmap(pDst->pDrawable))) {
+ int depth = pDst->pDrawable->depth;
+ PixmapPtr pixmap;
+ int x, y, error;
+ GCPtr gc;
+
+ pixmap = uxa_get_drawable_pixmap(pDst->pDrawable);
+ if (uxa_screen->info->check_copy &&
+ !uxa_screen->info->check_copy(pixmap, pixmap, GXcopy, FB_ALLONES))
+ goto fallback;
+
+ uxa_glyph_extents(nlist, list, glyphs, &extents);
+
+ /* clip against dst bounds */
+ if (extents.x1 < 0)
+ extents.x1 = 0;
+ if (extents.y1 < 0)
+ extents.y1 = 0;
+ if (extents.x2 > pDst->pDrawable->width)
+ extents.x2 = pDst->pDrawable->width;
+ if (extents.y2 > pDst->pDrawable->height)
+ extents.y2 = pDst->pDrawable->height;
+
+ if (extents.x2 <= extents.x1 || extents.y2 <= extents.y1)
+ return;
+ width = extents.x2 - extents.x1;
+ height = extents.y2 - extents.y1;
+ x = -extents.x1;
+ y = -extents.y1;
+ have_extents = TRUE;
+
+ xDst += x;
+ yDst += y;
+
+ pixmap = screen->CreatePixmap(screen,
+ width, height, depth,
+ CREATE_PIXMAP_USAGE_SCRATCH);
+ if (!pixmap)
+ return;
+
+ gc = GetScratchGC(depth, screen);
+ if (!gc) {
+ screen->DestroyPixmap(pixmap);
+ return;
+ }
+
+ ValidateGC(&pixmap->drawable, gc);
+ gc->ops->CopyArea(pDst->pDrawable, &pixmap->drawable, gc,
+ extents.x1, extents.y1,
+ width, height,
+ 0, 0);
+ FreeScratchGC(gc);
+
+ localDst = CreatePicture(0, &pixmap->drawable,
+ PictureMatchFormat(screen, depth, pDst->format),
+ 0, 0, serverClient, &error);
+ screen->DestroyPixmap(pixmap);
+
+ if (!localDst)
+ return;
+
+ ValidatePicture(localDst);
+ }
+
+ if (maskFormat) {
+ ret = uxa_glyphs_via_mask(op,
+ pSrc, localDst, maskFormat,
+ xSrc, ySrc,
+ xDst, yDst,
+ nlist, list, glyphs,
+ have_extents ? &extents : NULL);
+ } else {
+ ret = uxa_glyphs_to_dst(op,
+ pSrc, localDst,
+ xSrc, ySrc,
+ xDst, yDst,
+ nlist, list, glyphs,
+ have_extents ? &extents : NULL);
+ }
+ if (ret) {
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+
+ goto fallback;
+ }
+
+ if (localDst != pDst) {
+ GCPtr gc;
+
+ gc = GetScratchGC(pDst->pDrawable->depth, screen);
+ if (gc) {
+ ValidateGC(pDst->pDrawable, gc);
+ gc->ops->CopyArea(localDst->pDrawable, pDst->pDrawable, gc,
+ 0, 0,
+ width, height,
+ extents.x1, extents.y1);
+ FreeScratchGC(gc);
+ }
+
+ FreePicture(localDst, 0);
+ }
+}
diff --git a/uxa/uxa-priv.h b/uxa/uxa-priv.h
new file mode 100644
index 0000000..ac206af
--- /dev/null
+++ b/uxa/uxa-priv.h
@@ -0,0 +1,434 @@
+/*
+ *
+ * Copyright © 2000,2008 Keith Packard
+ * 2005 Zack Rusin, Trolltech
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+ */
+
+#ifndef UXAPRIV_H
+#define UXAPRIV_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#else
+#include <xorg-server.h>
+#endif
+#include "xf86.h"
+
+#include "uxa.h"
+
+#include <X11/X.h>
+#include <X11/Xproto.h>
+#include "scrnintstr.h"
+#include "pixmapstr.h"
+#include "windowstr.h"
+#include "servermd.h"
+#include "mibstore.h"
+#include "colormapst.h"
+#include "gcstruct.h"
+#include "input.h"
+#include "mipointer.h"
+#include "mi.h"
+#include "dix.h"
+#include "fb.h"
+#include "fboverlay.h"
+#ifdef RENDER
+//#include "fbpict.h"
+#include "glyphstr.h"
+#endif
+#include "damage.h"
+
+/* Provide substitutes for gcc's __FUNCTION__ on other compilers */
+#if !defined(__GNUC__) && !defined(__FUNCTION__)
+# if defined(__STDC__) && (__STDC_VERSION__>=199901L) /* C99 */
+# define __FUNCTION__ __func__
+# else
+# define __FUNCTION__ ""
+# endif
+#endif
+
+/* 1.6 and earlier server compat */
+#ifndef miGetCompositeClip
+#define miCopyRegion fbCopyRegion
+#define miDoCopy fbDoCopy
+#endif
+
+#define DEBUG_MIGRATE 0
+#define DEBUG_PIXMAP 0
+#define DEBUG_OFFSCREEN 0
+#define DEBUG_GLYPH_CACHE 0
+
+#define UXA_FALLBACK(x) \
+if (uxa_get_screen(screen)->fallback_debug) { \
+ ErrorF("UXA fallback at %s: ", __FUNCTION__); \
+ ErrorF x; \
+}
+
+char uxa_drawable_location(DrawablePtr pDrawable);
+
+#if DEBUG_PIXMAP
+#define DBG_PIXMAP(a) ErrorF a
+#else
+#define DBG_PIXMAP(a)
+#endif
+
+typedef struct {
+ PicturePtr picture; /* Where the glyphs of the cache are stored */
+ GlyphPtr *glyphs;
+ uint16_t count;
+ uint16_t evict;
+} uxa_glyph_cache_t;
+
+#define UXA_NUM_GLYPH_CACHE_FORMATS 2
+
+typedef struct {
+ uint32_t color;
+ PicturePtr picture;
+} uxa_solid_cache_t;
+
+#define UXA_NUM_SOLID_CACHE 16
+
+typedef void (*EnableDisableFBAccessProcPtr) (int, Bool);
+typedef struct {
+ uxa_driver_t *info;
+ CreateGCProcPtr SavedCreateGC;
+ CloseScreenProcPtr SavedCloseScreen;
+ GetImageProcPtr SavedGetImage;
+ GetSpansProcPtr SavedGetSpans;
+ CreatePixmapProcPtr SavedCreatePixmap;
+ DestroyPixmapProcPtr SavedDestroyPixmap;
+ CopyWindowProcPtr SavedCopyWindow;
+ ChangeWindowAttributesProcPtr SavedChangeWindowAttributes;
+ BitmapToRegionProcPtr SavedBitmapToRegion;
+#ifdef RENDER
+ CompositeProcPtr SavedComposite;
+ CompositeRectsProcPtr SavedCompositeRects;
+ TrianglesProcPtr SavedTriangles;
+ GlyphsProcPtr SavedGlyphs;
+ TrapezoidsProcPtr SavedTrapezoids;
+ AddTrapsProcPtr SavedAddTraps;
+ UnrealizeGlyphProcPtr SavedUnrealizeGlyph;
+#endif
+ EnableDisableFBAccessProcPtr SavedEnableDisableFBAccess;
+
+ Bool force_fallback;
+ Bool fallback_debug;
+ Bool swappedOut;
+ unsigned disableFbCount;
+ unsigned offScreenCounter;
+
+ uxa_glyph_cache_t glyphCaches[UXA_NUM_GLYPH_CACHE_FORMATS];
+ Bool glyph_cache_initialized;
+
+ PicturePtr solid_clear, solid_black, solid_white;
+ uxa_solid_cache_t solid_cache[UXA_NUM_SOLID_CACHE];
+ int solid_cache_size;
+} uxa_screen_t;
+
+/*
+ * This is the only completely portable way to
+ * compute this info.
+ */
+#ifndef BitsPerPixel
+#define BitsPerPixel(d) (\
+ PixmapWidthPaddingInfo[d].notPower2 ? \
+ (PixmapWidthPaddingInfo[d].bytesPerPixel * 8) : \
+ ((1 << PixmapWidthPaddingInfo[d].padBytesLog2) * 8 / \
+ (PixmapWidthPaddingInfo[d].padRoundUp+1)))
+#endif
+
+#if HAS_DEVPRIVATEKEYREC
+extern DevPrivateKeyRec uxa_screen_index;
+#else
+extern int uxa_screen_index;
+#endif
+
+static inline uxa_screen_t *uxa_get_screen(ScreenPtr screen)
+{
+#if HAS_DEVPRIVATEKEYREC
+ return dixGetPrivate(&screen->devPrivates, &uxa_screen_index);
+#else
+ return dixLookupPrivate(&screen->devPrivates, &uxa_screen_index);
+#endif
+}
+
+/** Align an offset to an arbitrary alignment */
+#define UXA_ALIGN(offset, align) (((offset) + (align) - 1) - \
+ (((offset) + (align) - 1) % (align)))
+/** Align an offset to a power-of-two alignment */
+#define UXA_ALIGN2(offset, align) (((offset) + (align) - 1) & ~((align) - 1))
+
+typedef struct {
+ INT16 xSrc;
+ INT16 ySrc;
+ INT16 xDst;
+ INT16 yDst;
+ INT16 width;
+ INT16 height;
+} uxa_composite_rect_t;
+
+/**
+ * exaDDXDriverInit must be implemented by the DDX using EXA, and is the place
+ * to set EXA options or hook in screen functions to handle using EXA as the AA.
+ */
+void exaDDXDriverInit(ScreenPtr pScreen);
+
+Bool uxa_prepare_access_window(WindowPtr pWin);
+
+void uxa_finish_access_window(WindowPtr pWin);
+
+/* uxa-unaccel.c */
+Bool uxa_prepare_access_gc(GCPtr pGC);
+
+void uxa_finish_access_gc(GCPtr pGC);
+
+void
+uxa_check_fill_spans(DrawablePtr pDrawable, GCPtr pGC, int nspans,
+ DDXPointPtr ppt, int *pwidth, int fSorted);
+
+void
+uxa_check_set_spans(DrawablePtr pDrawable, GCPtr pGC, char *psrc,
+ DDXPointPtr ppt, int *pwidth, int nspans, int fSorted);
+
+void
+uxa_check_put_image(DrawablePtr pDrawable, GCPtr pGC, int depth,
+ int x, int y, int w, int h, int leftPad, int format,
+ char *bits);
+
+RegionPtr
+uxa_check_copy_area(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
+ int srcx, int srcy, int w, int h, int dstx, int dsty);
+
+RegionPtr
+uxa_check_copy_plane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
+ int srcx, int srcy, int w, int h, int dstx, int dsty,
+ unsigned long bitPlane);
+
+void
+uxa_check_poly_point(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt,
+ DDXPointPtr pptInit);
+
+void
+uxa_check_poly_lines(DrawablePtr pDrawable, GCPtr pGC,
+ int mode, int npt, DDXPointPtr ppt);
+
+void
+uxa_check_poly_segment(DrawablePtr pDrawable, GCPtr pGC,
+ int nsegInit, xSegment * pSegInit);
+
+void
+uxa_check_poly_arc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc * pArcs);
+
+void
+uxa_check_poly_fill_rect(DrawablePtr pDrawable, GCPtr pGC,
+ int nrect, xRectangle * prect);
+
+void
+uxa_check_image_glyph_blt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, unsigned int nglyph,
+ CharInfoPtr * ppci, pointer pglyphBase);
+
+void
+uxa_check_poly_glyph_blt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, unsigned int nglyph,
+ CharInfoPtr * ppci, pointer pglyphBase);
+
+void
+uxa_check_push_pixels(GCPtr pGC, PixmapPtr pBitmap,
+ DrawablePtr pDrawable, int w, int h, int x, int y);
+
+void
+uxa_check_get_spans(DrawablePtr pDrawable,
+ int wMax,
+ DDXPointPtr ppt, int *pwidth, int nspans, char *pdstStart);
+
+void uxa_check_paint_window(WindowPtr pWin, RegionPtr pRegion, int what);
+
+void
+uxa_check_add_traps(PicturePtr pPicture,
+ INT16 x_off, INT16 y_off, int ntrap, xTrap * traps);
+
+/* uxa-accel.c */
+
+static _X_INLINE Bool
+uxa_gc_reads_destination(DrawablePtr pDrawable, unsigned long planemask,
+ unsigned int fillStyle, unsigned char alu)
+{
+ return ((alu != GXcopy && alu != GXclear && alu != GXset &&
+ alu != GXcopyInverted) || fillStyle == FillStippled ||
+ !UXA_PM_IS_SOLID(pDrawable, planemask));
+}
+
+void uxa_copy_window(WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc);
+
+Bool
+uxa_fill_region_tiled(DrawablePtr pDrawable, RegionPtr pRegion, PixmapPtr pTile,
+ DDXPointPtr pPatOrg, CARD32 planemask, CARD32 alu);
+
+void uxa_paint_window(WindowPtr pWin, RegionPtr pRegion, int what);
+
+void
+uxa_get_image(DrawablePtr pDrawable, int x, int y, int w, int h,
+ unsigned int format, unsigned long planeMask, char *d);
+
+extern const GCOps uxa_ops;
+
+#ifdef RENDER
+
+/* XXX these are in fbpict.h, which is not installed */
+void
+fbComposite(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pMask,
+ PicturePtr pDst,
+ INT16 xSrc,
+ INT16 ySrc,
+ INT16 xMask,
+ INT16 yMask, INT16 xDst, INT16 yDst, CARD16 width, CARD16 height);
+
+void
+fbAddTraps(PicturePtr pPicture,
+ INT16 xOff, INT16 yOff, int ntrap, xTrap * traps);
+
+void
+uxa_check_composite(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pMask,
+ PicturePtr pDst,
+ INT16 xSrc,
+ INT16 ySrc,
+ INT16 xMask,
+ INT16 yMask,
+ INT16 xDst, INT16 yDst, CARD16 width, CARD16 height);
+#endif
+
+/* uxa.c */
+Bool uxa_prepare_access(DrawablePtr pDrawable, uxa_access_t access);
+
+void uxa_finish_access(DrawablePtr pDrawable);
+
+void
+uxa_get_drawable_deltas(DrawablePtr pDrawable, PixmapPtr pPixmap,
+ int *xp, int *yp);
+
+Bool uxa_drawable_is_offscreen(DrawablePtr pDrawable);
+
+Bool uxa_pixmap_is_offscreen(PixmapPtr p);
+
+PixmapPtr uxa_get_offscreen_pixmap(DrawablePtr pDrawable, int *xp, int *yp);
+
+PixmapPtr uxa_get_drawable_pixmap(DrawablePtr pDrawable);
+
+RegionPtr
+uxa_copy_area(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, GCPtr pGC,
+ int srcx, int srcy, int width, int height, int dstx, int dsty);
+
+void
+uxa_copy_n_to_n(DrawablePtr pSrcDrawable,
+ DrawablePtr pDstDrawable,
+ GCPtr pGC,
+ BoxPtr pbox,
+ int nbox,
+ int dx,
+ int dy,
+ Bool reverse, Bool upsidedown, Pixel bitplane, void *closure);
+
+/* uxa_render.c */
+Bool uxa_op_reads_destination(CARD8 op);
+
+void
+uxa_composite(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pMask,
+ PicturePtr pDst,
+ INT16 xSrc,
+ INT16 ySrc,
+ INT16 xMask,
+ INT16 yMask, INT16 xDst, INT16 yDst, CARD16 width, CARD16 height);
+
+void
+uxa_composite_rects(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pDst, int nrect, uxa_composite_rect_t * rects);
+
+void
+uxa_solid_rects (CARD8 op,
+ PicturePtr dst,
+ xRenderColor *color,
+ int num_rects,
+ xRectangle *rects);
+
+void
+uxa_trapezoids(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
+ PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
+ int ntrap, xTrapezoid * traps);
+
+void
+uxa_triangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
+ PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
+ int ntri, xTriangle * tris);
+
+PicturePtr
+uxa_acquire_solid(ScreenPtr screen, SourcePict *source);
+
+PicturePtr
+uxa_acquire_drawable(ScreenPtr pScreen,
+ PicturePtr pSrc,
+ INT16 x, INT16 y,
+ CARD16 width, CARD16 height,
+ INT16 * out_x, INT16 * out_y);
+
+PicturePtr
+uxa_acquire_pattern(ScreenPtr pScreen,
+ PicturePtr pSrc,
+ pixman_format_code_t format,
+ INT16 x, INT16 y,
+ CARD16 width, CARD16 height);
+
+Bool
+uxa_get_rgba_from_pixel(CARD32 pixel,
+ CARD16 * red,
+ CARD16 * green,
+ CARD16 * blue,
+ CARD16 * alpha,
+ CARD32 format);
+
+/* uxa_glyph.c */
+Bool uxa_glyphs_init(ScreenPtr pScreen);
+
+void uxa_glyphs_fini(ScreenPtr pScreen);
+
+void
+uxa_glyphs(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pDst,
+ PictFormatPtr maskFormat,
+ INT16 xSrc,
+ INT16 ySrc, int nlist, GlyphListPtr list, GlyphPtr * glyphs);
+
+void
+uxa_glyph_unrealize(ScreenPtr pScreen,
+ GlyphPtr pGlyph);
+
+#endif /* UXAPRIV_H */
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
new file mode 100644
index 0000000..b26be80
--- /dev/null
+++ b/uxa/uxa-render.c
@@ -0,0 +1,2071 @@
+/*
+ * Copyright © 2001 Keith Packard
+ *
+ * Partly based on code that is Copyright © The XFree86 Project Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
+#include <stdlib.h>
+
+#include "uxa-priv.h"
+#include <xorgVersion.h>
+
+#ifdef RENDER
+#include "mipict.h"
+
+static void uxa_composite_fallback_pict_desc(PicturePtr pict, char *string,
+ int n)
+{
+ char format[20];
+ char size[20];
+ char loc;
+
+ if (!pict) {
+ snprintf(string, n, "None");
+ return;
+ }
+
+ if (pict->pDrawable == NULL) {
+ snprintf(string, n, "source-only");
+ return;
+ }
+
+ switch (pict->format) {
+ case PICT_a8r8g8b8:
+ snprintf(format, 20, "ARGB8888");
+ break;
+ case PICT_x8r8g8b8:
+ snprintf(format, 20, "XRGB8888");
+ break;
+ case PICT_r5g6b5:
+ snprintf(format, 20, "RGB565 ");
+ break;
+ case PICT_x1r5g5b5:
+ snprintf(format, 20, "RGB555 ");
+ break;
+ case PICT_a8:
+ snprintf(format, 20, "A8 ");
+ break;
+ case PICT_a1:
+ snprintf(format, 20, "A1 ");
+ break;
+ default:
+ snprintf(format, 20, "0x%x", (int)pict->format);
+ break;
+ }
+
+ loc = uxa_drawable_is_offscreen(pict->pDrawable) ? 's' : 'm';
+
+ snprintf(size, 20, "%dx%d%s", pict->pDrawable->width,
+ pict->pDrawable->height, pict->repeat ? " R" : "");
+
+ snprintf(string, n, "%p:%c fmt %s (%s)%s",
+ pict->pDrawable, loc, format, size,
+ pict->alphaMap ? " with alpha map" :"");
+}
+
+static const char *
+op_to_string(CARD8 op)
+{
+ switch (op) {
+#define C(x) case PictOp##x: return #x
+ C(Clear);
+ C(Src);
+ C(Dst);
+ C(Over);
+ C(OverReverse);
+ C(In);
+ C(InReverse);
+ C(Out);
+ C(OutReverse);
+ C(Atop);
+ C(AtopReverse);
+ C(Xor);
+ C(Add);
+ C(Saturate);
+
+ /*
+ * Operators only available in version 0.2
+ */
+#if RENDER_MAJOR >= 1 || RENDER_MINOR >= 2
+ C(DisjointClear);
+ C(DisjointSrc);
+ C(DisjointDst);
+ C(DisjointOver);
+ C(DisjointOverReverse);
+ C(DisjointIn);
+ C(DisjointInReverse);
+ C(DisjointOut);
+ C(DisjointOutReverse);
+ C(DisjointAtop);
+ C(DisjointAtopReverse);
+ C(DisjointXor);
+
+ C(ConjointClear);
+ C(ConjointSrc);
+ C(ConjointDst);
+ C(ConjointOver);
+ C(ConjointOverReverse);
+ C(ConjointIn);
+ C(ConjointInReverse);
+ C(ConjointOut);
+ C(ConjointOutReverse);
+ C(ConjointAtop);
+ C(ConjointAtopReverse);
+ C(ConjointXor);
+#endif
+
+ /*
+ * Operators only available in version 0.11
+ */
+#if RENDER_MAJOR >= 1 || RENDER_MINOR >= 11
+ C(Multiply);
+ C(Screen);
+ C(Overlay);
+ C(Darken);
+ C(Lighten);
+ C(ColorDodge);
+ C(ColorBurn);
+ C(HardLight);
+ C(SoftLight);
+ C(Difference);
+ C(Exclusion);
+ C(HSLHue);
+ C(HSLSaturation);
+ C(HSLColor);
+ C(HSLLuminosity);
+#endif
+ default: return "garbage";
+#undef C
+ }
+}
+
+static void
+uxa_print_composite_fallback(const char *func, CARD8 op,
+ PicturePtr pSrc, PicturePtr pMask, PicturePtr pDst)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDst->pDrawable->pScreen);
+ char srcdesc[40], maskdesc[40], dstdesc[40];
+
+ if (! uxa_screen->fallback_debug)
+ return;
+
+ /* Limit the noise if fallbacks are expected. */
+ if (uxa_screen->force_fallback)
+ return;
+
+ uxa_composite_fallback_pict_desc(pSrc, srcdesc, 40);
+ uxa_composite_fallback_pict_desc(pMask, maskdesc, 40);
+ uxa_composite_fallback_pict_desc(pDst, dstdesc, 40);
+
+ ErrorF("Composite fallback at %s:\n"
+ " op %s, \n"
+ " src %s, \n"
+ " mask %s, \n"
+ " dst %s, \n"
+ " screen %s\n",
+ func, op_to_string (op), srcdesc, maskdesc, dstdesc,
+ uxa_screen->swappedOut ? "swapped out" : "normal");
+}
+
+Bool uxa_op_reads_destination(CARD8 op)
+{
+ /* FALSE (does not read destination) is the list of ops in the protocol
+ * document with "0" in the "Fb" column and no "Ab" in the "Fa" column.
+ * That's just Clear and Src. ReduceCompositeOp() will already have
+ * converted con/disjoint clear/src to Clear or Src.
+ */
+ switch (op) {
+ case PictOpClear:
+ case PictOpSrc:
+ return FALSE;
+ default:
+ return TRUE;
+ }
+}
+
+static Bool
+uxa_get_pixel_from_rgba(CARD32 * pixel,
+ CARD16 red,
+ CARD16 green,
+ CARD16 blue,
+ CARD16 alpha,
+ CARD32 format)
+{
+ int rbits, bbits, gbits, abits;
+ int rshift, bshift, gshift, ashift;
+
+ rbits = PICT_FORMAT_R(format);
+ gbits = PICT_FORMAT_G(format);
+ bbits = PICT_FORMAT_B(format);
+ abits = PICT_FORMAT_A(format);
+ if (abits == 0)
+ abits = PICT_FORMAT_BPP(format) - (rbits+gbits+bbits);
+
+ if (PICT_FORMAT_TYPE(format) == PICT_TYPE_A) {
+ *pixel = alpha >> (16 - abits);
+ return TRUE;
+ }
+
+ if (!PICT_FORMAT_COLOR(format))
+ return FALSE;
+
+ if (PICT_FORMAT_TYPE(format) == PICT_TYPE_ARGB) {
+ bshift = 0;
+ gshift = bbits;
+ rshift = gshift + gbits;
+ ashift = rshift + rbits;
+ } else if (PICT_FORMAT_TYPE(format) == PICT_TYPE_ABGR) {
+ rshift = 0;
+ gshift = rbits;
+ bshift = gshift + gbits;
+ ashift = bshift + bbits;
+#if XORG_VERSION_CURRENT >= 10699900
+ } else if (PICT_FORMAT_TYPE(format) == PICT_TYPE_BGRA) {
+ ashift = 0;
+ rshift = abits;
+ gshift = rshift + rbits;
+ bshift = gshift + gbits;
+#endif
+ } else {
+ return FALSE;
+ }
+
+ *pixel = 0;
+ *pixel |= (blue >> (16 - bbits)) << bshift;
+ *pixel |= (green >> (16 - gbits)) << gshift;
+ *pixel |= (red >> (16 - rbits)) << rshift;
+ *pixel |= (alpha >> (16 - abits)) << ashift;
+
+ return TRUE;
+}
+
+Bool
+uxa_get_rgba_from_pixel(CARD32 pixel,
+ CARD16 * red,
+ CARD16 * green,
+ CARD16 * blue,
+ CARD16 * alpha,
+ CARD32 format)
+{
+ int rbits, bbits, gbits, abits;
+ int rshift, bshift, gshift, ashift;
+
+ rbits = PICT_FORMAT_R(format);
+ gbits = PICT_FORMAT_G(format);
+ bbits = PICT_FORMAT_B(format);
+ abits = PICT_FORMAT_A(format);
+
+ if (PICT_FORMAT_TYPE(format) == PICT_TYPE_A) {
+ rshift = gshift = bshift = ashift = 0;
+ } else if (PICT_FORMAT_TYPE(format) == PICT_TYPE_ARGB) {
+ bshift = 0;
+ gshift = bbits;
+ rshift = gshift + gbits;
+ ashift = rshift + rbits;
+ } else if (PICT_FORMAT_TYPE(format) == PICT_TYPE_ABGR) {
+ rshift = 0;
+ gshift = rbits;
+ bshift = gshift + gbits;
+ ashift = bshift + bbits;
+#if XORG_VERSION_CURRENT >= 10699900
+ } else if (PICT_FORMAT_TYPE(format) == PICT_TYPE_BGRA) {
+ ashift = 0;
+ rshift = abits;
+ if (abits == 0)
+ rshift = PICT_FORMAT_BPP(format) - (rbits+gbits+bbits);
+ gshift = rshift + rbits;
+ bshift = gshift + gbits;
+#endif
+ } else {
+ return FALSE;
+ }
+
+ if (rbits) {
+ *red = ((pixel >> rshift) & ((1 << rbits) - 1)) << (16 - rbits);
+ while (rbits < 16) {
+ *red |= *red >> rbits;
+ rbits <<= 1;
+ }
+ } else
+ *red = 0;
+
+ if (gbits) {
+ *green = ((pixel >> gshift) & ((1 << gbits) - 1)) << (16 - gbits);
+ while (gbits < 16) {
+ *green |= *green >> gbits;
+ gbits <<= 1;
+ }
+ } else
+ *green = 0;
+
+ if (bbits) {
+ *blue = ((pixel >> bshift) & ((1 << bbits) - 1)) << (16 - bbits);
+ while (bbits < 16) {
+ *blue |= *blue >> bbits;
+ bbits <<= 1;
+ }
+ } else
+ *blue = 0;
+
+ if (abits) {
+ *alpha =
+ ((pixel >> ashift) & ((1 << abits) - 1)) << (16 - abits);
+ while (abits < 16) {
+ *alpha |= *alpha >> abits;
+ abits <<= 1;
+ }
+ } else
+ *alpha = 0xffff;
+
+ return TRUE;
+}
+
+Bool
+uxa_get_color_for_pixmap (PixmapPtr pixmap,
+ CARD32 src_format,
+ CARD32 dst_format,
+ CARD32 *pixel)
+{
+ CARD16 red, green, blue, alpha;
+
+ *pixel = uxa_get_pixmap_first_pixel(pixmap);
+
+ if (src_format != dst_format) {
+ if (!uxa_get_rgba_from_pixel(*pixel,
+ &red, &green, &blue, &alpha,
+ src_format))
+ return FALSE;
+
+ if (!uxa_get_pixel_from_rgba(pixel,
+ red, green, blue, alpha,
+ dst_format))
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
+static int
+uxa_try_driver_solid_fill(PicturePtr pSrc,
+ PicturePtr pDst,
+ INT16 xSrc,
+ INT16 ySrc,
+ INT16 xDst, INT16 yDst, CARD16 width, CARD16 height)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDst->pDrawable->pScreen);
+ RegionRec region;
+ BoxPtr pbox;
+ int nbox;
+ int dst_off_x, dst_off_y;
+ PixmapPtr pSrcPix = NULL, pDstPix;
+ CARD32 pixel;
+
+ if (uxa_screen->info->check_solid && !uxa_screen->info->check_solid(pDst->pDrawable, GXcopy, FB_ALLONES))
+ return -1;
+
+ pDstPix = uxa_get_offscreen_pixmap(pDst->pDrawable, &dst_off_x, &dst_off_y);
+ if (!pDstPix)
+ return -1;
+
+ xDst += pDst->pDrawable->x;
+ yDst += pDst->pDrawable->y;
+
+ if (pSrc->pDrawable) {
+ pSrcPix = uxa_get_drawable_pixmap(pSrc->pDrawable);
+ xSrc += pSrc->pDrawable->x;
+ ySrc += pSrc->pDrawable->y;
+ }
+
+ if (!miComputeCompositeRegion(&region, pSrc, NULL, pDst,
+ xSrc, ySrc, 0, 0, xDst, yDst,
+ width, height))
+ return 1;
+
+ if (pSrcPix) {
+ if (! uxa_get_color_for_pixmap (pSrcPix, pSrc->format, pDst->format, &pixel)) {
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
+ return -1;
+ }
+ } else {
+ SourcePict *source = pSrc->pSourcePict;
+ PictSolidFill *solid = &source->solidFill;
+
+ if (source == NULL || source->type != SourcePictTypeSolidFill) {
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
+ return -1;
+ }
+
+ if (pDst->format == PICT_a8r8g8b8) {
+ pixel = solid->color;
+ } else if (pDst->format == PICT_x8r8g8b8) {
+ pixel = solid->color | 0xff000000;
+ } else {
+ CARD16 red, green, blue, alpha;
+
+ if (!uxa_get_rgba_from_pixel(solid->color,
+ &red, &green, &blue, &alpha,
+ PICT_a8r8g8b8) ||
+ !uxa_get_pixel_from_rgba(&pixel,
+ red, green, blue, alpha,
+ pDst->format)) {
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
+ return -1;
+ }
+ }
+ }
+
+ if (!(*uxa_screen->info->prepare_solid)
+ (pDstPix, GXcopy, FB_ALLONES, pixel)) {
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
+ return -1;
+ }
+
+ REGION_TRANSLATE(pScreen, &region, dst_off_x, dst_off_y);
+
+ nbox = REGION_NUM_RECTS(&region);
+ pbox = REGION_RECTS(&region);
+
+ while (nbox--) {
+ (*uxa_screen->info->solid) (pDstPix, pbox->x1, pbox->y1,
+ pbox->x2, pbox->y2);
+ pbox++;
+ }
+
+ (*uxa_screen->info->done_solid) (pDstPix);
+
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
+ return 1;
+}
+
+static PicturePtr
+uxa_picture_for_pixman_format(ScreenPtr screen,
+ pixman_format_code_t format,
+ int width, int height)
+{
+ PicturePtr picture;
+ PixmapPtr pixmap;
+ int error;
+
+ if (format == PIXMAN_a1)
+ format = PIXMAN_a8;
+
+ /* fill alpha if unset */
+ if (PIXMAN_FORMAT_A(format) == 0)
+ format = PIXMAN_a8r8g8b8;
+
+ pixmap = screen->CreatePixmap(screen, width, height,
+ PIXMAN_FORMAT_DEPTH(format),
+ UXA_CREATE_PIXMAP_FOR_MAP);
+ if (!pixmap)
+ return 0;
+
+ if (!uxa_pixmap_is_offscreen(pixmap)) {
+ screen->DestroyPixmap(pixmap);
+ return 0;
+ }
+
+ picture = CreatePicture(0, &pixmap->drawable,
+ PictureMatchFormat(screen,
+ PIXMAN_FORMAT_DEPTH(format),
+ format),
+ 0, 0, serverClient, &error);
+ screen->DestroyPixmap(pixmap);
+ if (!picture)
+ return 0;
+
+ ValidatePicture(picture);
+
+ return picture;
+}
+
+static PicturePtr
+uxa_picture_from_pixman_image(ScreenPtr screen,
+ pixman_image_t * image,
+ pixman_format_code_t format)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PicturePtr picture;
+ PixmapPtr pixmap;
+ int width, height;
+
+ width = pixman_image_get_width(image);
+ height = pixman_image_get_height(image);
+
+ picture = uxa_picture_for_pixman_format(screen, format,
+ width, height);
+ if (!picture)
+ return 0;
+
+ if (uxa_screen->info->put_image &&
+ ((picture->pDrawable->depth << 24) | picture->format) == format &&
+ uxa_screen->info->put_image((PixmapPtr)picture->pDrawable,
+ 0, 0,
+ width, height,
+ (char *)pixman_image_get_data(image),
+ pixman_image_get_stride(image)))
+ return picture;
+
+ pixmap = GetScratchPixmapHeader(screen, width, height,
+ PIXMAN_FORMAT_DEPTH(format),
+ PIXMAN_FORMAT_BPP(format),
+ pixman_image_get_stride(image),
+ pixman_image_get_data(image));
+ if (!pixmap) {
+ FreePicture(picture, 0);
+ return 0;
+ }
+
+ if (((picture->pDrawable->depth << 24) | picture->format) == format) {
+ GCPtr gc;
+
+ gc = GetScratchGC(PIXMAN_FORMAT_DEPTH(format), screen);
+ if (!gc) {
+ FreeScratchPixmapHeader(pixmap);
+ FreePicture(picture, 0);
+ return 0;
+ }
+ ValidateGC(picture->pDrawable, gc);
+
+ (*gc->ops->CopyArea) (&pixmap->drawable, picture->pDrawable,
+ gc, 0, 0, width, height, 0, 0);
+
+ FreeScratchGC(gc);
+ } else {
+ PicturePtr src;
+ int error;
+
+ src = CreatePicture(0, &pixmap->drawable,
+ PictureMatchFormat(screen,
+ PIXMAN_FORMAT_DEPTH(format),
+ format),
+ 0, 0, serverClient, &error);
+ if (!src) {
+ FreeScratchPixmapHeader(pixmap);
+ FreePicture(picture, 0);
+ return 0;
+ }
+ ValidatePicture(src);
+
+ if (uxa_prepare_access(picture->pDrawable, UXA_ACCESS_RW)) {
+ fbComposite(PictOpSrc, src, NULL, picture,
+ 0, 0, 0, 0, 0, 0, width, height);
+ uxa_finish_access(picture->pDrawable);
+ }
+
+ FreePicture(src, 0);
+ }
+ FreeScratchPixmapHeader(pixmap);
+
+ return picture;
+}
+
+static PicturePtr
+uxa_create_solid(ScreenPtr screen, uint32_t color)
+{
+ PixmapPtr pixmap;
+ PicturePtr picture;
+ XID repeat = RepeatNormal;
+ int error = 0;
+
+ pixmap = (*screen->CreatePixmap)(screen, 1, 1, 32,
+ UXA_CREATE_PIXMAP_FOR_MAP);
+ if (!pixmap)
+ return 0;
+
+ if (!uxa_prepare_access((DrawablePtr)pixmap, UXA_ACCESS_RW)) {
+ (*screen->DestroyPixmap)(pixmap);
+ return 0;
+ }
+ *((uint32_t *)pixmap->devPrivate.ptr) = color;
+ uxa_finish_access((DrawablePtr)pixmap);
+
+ picture = CreatePicture(0, &pixmap->drawable,
+ PictureMatchFormat(screen, 32, PICT_a8r8g8b8),
+ CPRepeat, &repeat, serverClient, &error);
+ (*screen->DestroyPixmap)(pixmap);
+
+ return picture;
+}
+
+static PicturePtr
+uxa_solid_clear(ScreenPtr screen)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PicturePtr picture;
+
+ if (!uxa_screen->solid_clear) {
+ uxa_screen->solid_clear = uxa_create_solid(screen, 0);
+ if (!uxa_screen->solid_clear)
+ return 0;
+ }
+ picture = uxa_screen->solid_clear;
+ return picture;
+}
+
+PicturePtr
+uxa_acquire_solid(ScreenPtr screen, SourcePict *source)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PictSolidFill *solid = &source->solidFill;
+ PicturePtr picture;
+ int i;
+
+ if ((solid->color >> 24) == 0) {
+ picture = uxa_solid_clear(screen);
+ if (!picture)
+ return 0;
+
+ goto DONE;
+ } else if (solid->color == 0xff000000) {
+ if (!uxa_screen->solid_black) {
+ uxa_screen->solid_black = uxa_create_solid(screen, 0xff000000);
+ if (!uxa_screen->solid_black)
+ return 0;
+ }
+ picture = uxa_screen->solid_black;
+ goto DONE;
+ } else if (solid->color == 0xffffffff) {
+ if (!uxa_screen->solid_white) {
+ uxa_screen->solid_white = uxa_create_solid(screen, 0xffffffff);
+ if (!uxa_screen->solid_white)
+ return 0;
+ }
+ picture = uxa_screen->solid_white;
+ goto DONE;
+ }
+
+ for (i = 0; i < uxa_screen->solid_cache_size; i++) {
+ if (uxa_screen->solid_cache[i].color == solid->color) {
+ picture = uxa_screen->solid_cache[i].picture;
+ goto DONE;
+ }
+ }
+
+ picture = uxa_create_solid(screen, solid->color);
+ if (!picture)
+ return 0;
+
+ if (uxa_screen->solid_cache_size == UXA_NUM_SOLID_CACHE) {
+ i = rand() % UXA_NUM_SOLID_CACHE;
+ FreePicture(uxa_screen->solid_cache[i].picture, 0);
+ } else
+ uxa_screen->solid_cache_size++;
+
+ uxa_screen->solid_cache[i].picture = picture;
+ uxa_screen->solid_cache[i].color = solid->color;
+
+DONE:
+ picture->refcnt++;
+ return picture;
+}
+
+PicturePtr
+uxa_acquire_pattern(ScreenPtr pScreen,
+ PicturePtr pSrc,
+ pixman_format_code_t format,
+ INT16 x, INT16 y, CARD16 width, CARD16 height)
+{
+ PicturePtr pDst;
+
+ if (pSrc->pSourcePict) {
+ SourcePict *source = pSrc->pSourcePict;
+ if (source->type == SourcePictTypeSolidFill)
+ return uxa_acquire_solid (pScreen, source);
+ }
+
+ pDst = uxa_picture_for_pixman_format(pScreen, format, width, height);
+ if (!pDst)
+ return 0;
+
+ if (uxa_prepare_access(pDst->pDrawable, UXA_ACCESS_RW)) {
+ fbComposite(PictOpSrc, pSrc, NULL, pDst,
+ x, y, 0, 0, 0, 0, width, height);
+ uxa_finish_access(pDst->pDrawable);
+ return pDst;
+ } else {
+ FreePicture(pDst, 0);
+ return 0;
+ }
+}
+
+static Bool
+transform_is_integer_translation(PictTransformPtr t, int *tx, int *ty)
+{
+ if (t == NULL) {
+ *tx = *ty = 0;
+ return TRUE;
+ }
+
+ if (t->matrix[0][0] != IntToxFixed(1) ||
+ t->matrix[0][1] != 0 ||
+ t->matrix[1][0] != 0 ||
+ t->matrix[1][1] != IntToxFixed(1) ||
+ t->matrix[2][0] != 0 ||
+ t->matrix[2][1] != 0 ||
+ t->matrix[2][2] != IntToxFixed(1))
+ return FALSE;
+
+ if (xFixedFrac(t->matrix[0][2]) != 0 ||
+ xFixedFrac(t->matrix[1][2]) != 0)
+ return FALSE;
+
+ *tx = xFixedToInt(t->matrix[0][2]);
+ *ty = xFixedToInt(t->matrix[1][2]);
+ return TRUE;
+}
+
+static PicturePtr
+uxa_render_picture(ScreenPtr screen,
+ PicturePtr src,
+ pixman_format_code_t format,
+ INT16 x, INT16 y,
+ CARD16 width, CARD16 height)
+{
+ PicturePtr picture;
+ int ret = 0;
+
+ /* XXX we need a mechanism for the card to choose the fallback format */
+
+ /* force alpha channel in case source does not entirely cover the extents */
+ if (PIXMAN_FORMAT_A(format) == 0)
+ format = PIXMAN_a8r8g8b8; /* available on all hardware */
+
+ picture = uxa_picture_for_pixman_format(screen, format, width, height);
+ if (!picture)
+ return 0;
+
+ if (uxa_prepare_access(picture->pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access(src->pDrawable, UXA_ACCESS_RO)) {
+ ret = 1;
+ fbComposite(PictOpSrc, src, NULL, picture,
+ x, y, 0, 0, 0, 0, width, height);
+ uxa_finish_access(src->pDrawable);
+ }
+ uxa_finish_access(picture->pDrawable);
+ }
+
+ if (!ret) {
+ FreePicture(picture, 0);
+ return 0;
+ }
+
+ return picture;
+}
+
+static int
+drawable_contains (DrawablePtr drawable, int x, int y, int w, int h)
+{
+ if (x < 0 || y < 0)
+ return FALSE;
+
+ if (x + w > drawable->width)
+ return FALSE;
+
+ if (y + h > drawable->height)
+ return FALSE;
+
+ return TRUE;
+}
+
+PicturePtr
+uxa_acquire_drawable(ScreenPtr pScreen,
+ PicturePtr pSrc,
+ INT16 x, INT16 y,
+ CARD16 width, CARD16 height,
+ INT16 * out_x, INT16 * out_y)
+{
+ PixmapPtr pPixmap;
+ PicturePtr pDst;
+ int depth, error;
+ int tx, ty;
+ GCPtr pGC;
+
+ depth = pSrc->pDrawable->depth;
+ if (!transform_is_integer_translation(pSrc->transform, &tx, &ty) ||
+ !drawable_contains(pSrc->pDrawable, x + tx, y + ty, width, height) ||
+ depth == 1 ||
+ pSrc->filter == PictFilterConvolution) {
+ /* XXX extract the sample extents and do the transformation on the GPU */
+ pDst = uxa_render_picture(pScreen, pSrc,
+ pSrc->format | (BitsPerPixel(pSrc->pDrawable->depth) << 24),
+ x, y, width, height);
+ if (!pDst)
+ return 0;
+
+ goto done;
+ } else {
+ if (width == pSrc->pDrawable->width && height == pSrc->pDrawable->height) {
+ *out_x = x + pSrc->pDrawable->x;
+ *out_y = y + pSrc->pDrawable->y;
+ return pSrc;
+ }
+ }
+
+ pPixmap = pScreen->CreatePixmap(pScreen,
+ width, height, depth,
+ CREATE_PIXMAP_USAGE_SCRATCH);
+ if (!pPixmap)
+ return 0;
+
+ /* Skip the copy if the result remains in memory and not a bo */
+ if (!uxa_pixmap_is_offscreen(pPixmap)) {
+ pScreen->DestroyPixmap(pPixmap);
+ return 0;
+ }
+
+ pGC = GetScratchGC(depth, pScreen);
+ if (!pGC) {
+ pScreen->DestroyPixmap(pPixmap);
+ return 0;
+ }
+
+ ValidateGC(&pPixmap->drawable, pGC);
+ pGC->ops->CopyArea(pSrc->pDrawable, &pPixmap->drawable, pGC,
+ x + tx, y + ty, width, height, 0, 0);
+ FreeScratchGC(pGC);
+
+ pDst = CreatePicture(0, &pPixmap->drawable,
+ PictureMatchFormat(pScreen, depth, pSrc->format),
+ 0, 0, serverClient, &error);
+ pScreen->DestroyPixmap(pPixmap);
+ if (!pDst)
+ return 0;
+
+ ValidatePicture(pDst);
+done:
+ pDst->componentAlpha = pSrc->componentAlpha;
+ *out_x = 0;
+ *out_y = 0;
+ return pDst;
+}
+
+static PicturePtr
+uxa_acquire_picture(ScreenPtr screen,
+ PicturePtr src,
+ pixman_format_code_t format,
+ INT16 x, INT16 y,
+ CARD16 width, CARD16 height,
+ INT16 * out_x, INT16 * out_y)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+
+ if (uxa_screen->info->check_composite_texture &&
+ uxa_screen->info->check_composite_texture(screen, src)) {
+ if (src->pDrawable) {
+ *out_x = x + src->pDrawable->x;
+ *out_y = y + src->pDrawable->y;
+ } else {
+ *out_x = x;
+ *out_y = y;
+ }
+ return src;
+ }
+
+ if (src->pDrawable) {
+ PicturePtr dst;
+
+ dst = uxa_acquire_drawable(screen, src,
+ x, y, width, height,
+ out_x, out_y);
+ if (!dst)
+ return 0;
+
+ if (uxa_screen->info->check_composite_texture &&
+ !uxa_screen->info->check_composite_texture(screen, dst)) {
+ if (dst != src)
+ FreePicture(dst, 0);
+ return 0;
+ }
+
+ return dst;
+ }
+
+ *out_x = 0;
+ *out_y = 0;
+ return uxa_acquire_pattern(screen, src,
+ format, x, y, width, height);
+}
+
+static PicturePtr
+uxa_acquire_source(ScreenPtr screen,
+ PicturePtr pict,
+ INT16 x, INT16 y,
+ CARD16 width, CARD16 height,
+ INT16 * out_x, INT16 * out_y)
+{
+ return uxa_acquire_picture (screen, pict,
+ PICT_a8r8g8b8,
+ x, y,
+ width, height,
+ out_x, out_y);
+}
+
+static PicturePtr
+uxa_acquire_mask(ScreenPtr screen,
+ PicturePtr pict,
+ INT16 x, INT16 y,
+ INT16 width, INT16 height,
+ INT16 * out_x, INT16 * out_y)
+{
+ return uxa_acquire_picture (screen, pict,
+ PICT_a8,
+ x, y,
+ width, height,
+ out_x, out_y);
+}
+
+static Bool
+_pixman_region_init_rectangles(pixman_region16_t *region,
+ int num_rects,
+ xRectangle *rects,
+ int tx, int ty)
+{
+ pixman_box16_t stack_boxes[64], *boxes = stack_boxes;
+ pixman_bool_t ret;
+ int i;
+
+ if (num_rects > sizeof(stack_boxes) / sizeof(stack_boxes[0])) {
+ boxes = malloc(sizeof(pixman_box16_t) * num_rects);
+ if (boxes == NULL)
+ return FALSE;
+ }
+
+ for (i = 0; i < num_rects; i++) {
+ boxes[i].x1 = rects[i].x + tx;
+ boxes[i].y1 = rects[i].y + ty;
+ boxes[i].x2 = rects[i].x + tx + rects[i].width;
+ boxes[i].y2 = rects[i].y + ty + rects[i].height;
+ }
+
+ ret = pixman_region_init_rects(region, boxes, num_rects);
+
+ if (boxes != stack_boxes)
+ free(boxes);
+
+ return ret;
+}
+
+void
+uxa_solid_rects (CARD8 op,
+ PicturePtr dst,
+ xRenderColor *color,
+ int num_rects,
+ xRectangle *rects)
+{
+ ScreenPtr screen = dst->pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PixmapPtr dst_pixmap, src_pixmap = NULL;
+ pixman_region16_t region;
+ pixman_box16_t *boxes, *extents;
+ PicturePtr src;
+ int dst_x, dst_y;
+ int num_boxes;
+
+ if (!pixman_region_not_empty(dst->pCompositeClip))
+ return;
+
+ if (dst->alphaMap)
+ goto fallback;
+
+ dst_pixmap = uxa_get_offscreen_pixmap(dst->pDrawable, &dst_x, &dst_y);
+ if (!dst_pixmap)
+ goto fallback;
+
+ if (!_pixman_region_init_rectangles(&region,
+ num_rects, rects,
+ dst->pDrawable->x, dst->pDrawable->y))
+ goto fallback;
+
+ if (!pixman_region_intersect(&region, &region, dst->pCompositeClip)) {
+ pixman_region_fini(&region);
+ return;
+ }
+
+ pixman_region_translate(&region, dst_x, dst_y);
+ boxes = pixman_region_rectangles(&region, &num_boxes);
+ extents = pixman_region_extents (&region);
+
+ if (op == PictOpClear)
+ color->red = color->green = color->blue = color->alpha = 0;
+ if (color->alpha >= 0xff00 && op == PictOpOver) {
+ color->alpha = 0xffff;
+ op = PictOpSrc;
+ }
+
+ /* Using GEM, the relocation costs outweigh the advantages of the blitter */
+ if (num_boxes == 1 && (op == PictOpSrc || op == PictOpClear)) {
+ CARD32 pixel;
+
+try_solid:
+ if (uxa_screen->info->check_solid &&
+ !uxa_screen->info->check_solid(&dst_pixmap->drawable, GXcopy, FB_ALLONES))
+ goto err_region;
+
+ if (!uxa_get_pixel_from_rgba(&pixel,
+ color->red,
+ color->green,
+ color->blue,
+ color->alpha,
+ dst->format))
+ goto err_region;
+
+ if (!uxa_screen->info->prepare_solid(dst_pixmap, GXcopy, FB_ALLONES, pixel))
+ goto err_region;
+
+ while (num_boxes--) {
+ uxa_screen->info->solid(dst_pixmap,
+ boxes->x1, boxes->y1,
+ boxes->x2, boxes->y2);
+ boxes++;
+ }
+
+ uxa_screen->info->done_solid(dst_pixmap);
+ } else {
+ int error;
+
+ src = CreateSolidPicture(0, color, &error);
+ if (!src)
+ goto err_region;
+
+ if (!uxa_screen->info->check_composite(op, src, NULL, dst,
+ extents->x2 - extents->x1,
+ extents->y2 - extents->y1)) {
+ if (op == PictOpSrc || op == PictOpClear) {
+ FreePicture(src, 0);
+ goto try_solid;
+ }
+
+ goto err_src;
+ }
+
+ if (!uxa_screen->info->check_composite_texture ||
+ !uxa_screen->info->check_composite_texture(screen, src)) {
+ PicturePtr solid;
+ int src_off_x, src_off_y;
+
+ solid = uxa_acquire_solid(screen, src->pSourcePict);
+ if (!solid)
+ goto err_src;
+ FreePicture(src, 0);
+
+ src = solid;
+ src_pixmap = uxa_get_offscreen_pixmap(src->pDrawable,
+ &src_off_x, &src_off_y);
+ if (!src_pixmap)
+ goto err_src;
+ }
+
+ if (!uxa_screen->info->prepare_composite(op, src, NULL, dst, src_pixmap, NULL, dst_pixmap))
+ goto err_src;
+
+ while (num_boxes--) {
+ uxa_screen->info->composite(dst_pixmap,
+ 0, 0, 0, 0,
+ boxes->x1,
+ boxes->y1,
+ boxes->x2 - boxes->x1,
+ boxes->y2 - boxes->y1);
+ boxes++;
+ }
+
+ uxa_screen->info->done_composite(dst_pixmap);
+ FreePicture(src, 0);
+ }
+
+ /* XXX xserver-1.8: CompositeRects is not tracked by Damage, so we must
+ * manually append the damaged regions ourselves.
+ */
+ pixman_region_translate(&region, -dst_x, -dst_y);
+ DamageRegionAppend(dst->pDrawable, &region);
+
+ pixman_region_fini(&region);
+ return;
+
+err_src:
+ FreePicture(src, 0);
+err_region:
+ pixman_region_fini(&region);
+fallback:
+ uxa_screen->SavedCompositeRects(op, dst, color, num_rects, rects);
+}
+
+static int
+uxa_try_driver_composite(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pMask,
+ PicturePtr pDst,
+ INT16 xSrc, INT16 ySrc,
+ INT16 xMask, INT16 yMask,
+ INT16 xDst, INT16 yDst,
+ CARD16 width, CARD16 height)
+{
+ ScreenPtr screen = pDst->pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ RegionRec region;
+ BoxPtr pbox;
+ int nbox;
+ int xDst_copy, yDst_copy;
+ int src_off_x, src_off_y, mask_off_x, mask_off_y, dst_off_x, dst_off_y;
+ PixmapPtr pSrcPix, pMaskPix = NULL, pDstPix;
+ PicturePtr localSrc, localMask = NULL;
+ PicturePtr localDst = pDst;
+
+ if (uxa_screen->info->check_composite &&
+ !(*uxa_screen->info->check_composite) (op, pSrc, pMask, pDst, width, height))
+ return -1;
+
+ if (uxa_screen->info->check_composite_target &&
+ !uxa_screen->info->check_composite_target(uxa_get_drawable_pixmap(pDst->pDrawable))) {
+ int depth = pDst->pDrawable->depth;
+ PixmapPtr pixmap;
+ int error;
+ GCPtr gc;
+
+ pixmap = uxa_get_drawable_pixmap(pDst->pDrawable);
+ if (uxa_screen->info->check_copy &&
+ !uxa_screen->info->check_copy(pixmap, pixmap, GXcopy, FB_ALLONES))
+ return -1;
+
+ pixmap = screen->CreatePixmap(screen,
+ width, height, depth,
+ CREATE_PIXMAP_USAGE_SCRATCH);
+ if (!pixmap)
+ return 0;
+
+ gc = GetScratchGC(depth, screen);
+ if (!gc) {
+ screen->DestroyPixmap(pixmap);
+ return 0;
+ }
+
+ ValidateGC(&pixmap->drawable, gc);
+ gc->ops->CopyArea(pDst->pDrawable, &pixmap->drawable, gc,
+ xDst, yDst, width, height, 0, 0);
+ FreeScratchGC(gc);
+
+ xDst_copy = xDst; xDst = 0;
+ yDst_copy = yDst; yDst = 0;
+
+ localDst = CreatePicture(0, &pixmap->drawable,
+ PictureMatchFormat(screen, depth, pDst->format),
+ 0, 0, serverClient, &error);
+ screen->DestroyPixmap(pixmap);
+
+ if (!localDst)
+ return 0;
+
+ ValidatePicture(localDst);
+ }
+
+ pDstPix =
+ uxa_get_offscreen_pixmap(localDst->pDrawable, &dst_off_x, &dst_off_y);
+ if (!pDstPix) {
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+ return -1;
+ }
+
+ xDst += localDst->pDrawable->x;
+ yDst += localDst->pDrawable->y;
+
+ localSrc = uxa_acquire_source(screen, pSrc,
+ xSrc, ySrc,
+ width, height,
+ &xSrc, &ySrc);
+ if (!localSrc) {
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+ return 0;
+ }
+
+ if (pMask) {
+ localMask = uxa_acquire_mask(screen, pMask,
+ xMask, yMask,
+ width, height,
+ &xMask, &yMask);
+ if (!localMask) {
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+
+ return 0;
+ }
+ }
+
+ if (!miComputeCompositeRegion(&region, localSrc, localMask, localDst,
+ xSrc, ySrc, xMask, yMask, xDst, yDst,
+ width, height)) {
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ if (localMask && localMask != pMask)
+ FreePicture(localMask, 0);
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+
+ return 1;
+ }
+
+ if (localSrc->pDrawable) {
+ pSrcPix = uxa_get_offscreen_pixmap(localSrc->pDrawable,
+ &src_off_x, &src_off_y);
+ if (!pSrcPix) {
+ REGION_UNINIT(screen, &region);
+
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ if (localMask && localMask != pMask)
+ FreePicture(localMask, 0);
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+
+ return 0;
+ }
+ } else {
+ pSrcPix = NULL;
+ }
+
+ if (localMask) {
+ if (localMask->pDrawable) {
+ pMaskPix = uxa_get_offscreen_pixmap(localMask->pDrawable,
+ &mask_off_x, &mask_off_y);
+ if (!pMaskPix) {
+ REGION_UNINIT(screen, &region);
+
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ if (localMask && localMask != pMask)
+ FreePicture(localMask, 0);
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+
+ return 0;
+ }
+ } else {
+ pMaskPix = NULL;
+ }
+ }
+
+ if (!(*uxa_screen->info->prepare_composite)
+ (op, localSrc, localMask, localDst, pSrcPix, pMaskPix, pDstPix)) {
+ REGION_UNINIT(screen, &region);
+
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ if (localMask && localMask != pMask)
+ FreePicture(localMask, 0);
+ if (localDst != pDst)
+ FreePicture(localDst, 0);
+
+ return -1;
+ }
+
+ if (pMask) {
+ xMask = xMask + mask_off_x - xDst;
+ yMask = yMask + mask_off_y - yDst;
+ }
+
+ xSrc = xSrc + src_off_x - xDst;
+ ySrc = ySrc + src_off_y - yDst;
+
+ nbox = REGION_NUM_RECTS(&region);
+ pbox = REGION_RECTS(&region);
+ while (nbox--) {
+ (*uxa_screen->info->composite) (pDstPix,
+ pbox->x1 + xSrc,
+ pbox->y1 + ySrc,
+ pbox->x1 + xMask,
+ pbox->y1 + yMask,
+ pbox->x1 + dst_off_x,
+ pbox->y1 + dst_off_y,
+ pbox->x2 - pbox->x1,
+ pbox->y2 - pbox->y1);
+ pbox++;
+ }
+ (*uxa_screen->info->done_composite) (pDstPix);
+
+ REGION_UNINIT(screen, &region);
+
+ if (localSrc != pSrc)
+ FreePicture(localSrc, 0);
+ if (localMask && localMask != pMask)
+ FreePicture(localMask, 0);
+
+ if (localDst != pDst) {
+ GCPtr gc;
+
+ gc = GetScratchGC(pDst->pDrawable->depth, screen);
+ if (gc) {
+ ValidateGC(pDst->pDrawable, gc);
+ gc->ops->CopyArea(localDst->pDrawable, pDst->pDrawable, gc,
+ 0, 0, width, height, xDst_copy, yDst_copy);
+ FreeScratchGC(gc);
+ }
+
+ FreePicture(localDst, 0);
+ }
+
+ return 1;
+}
+
+/**
+ * uxa_try_magic_two_pass_composite_helper implements PictOpOver using two passes of
+ * simpler operations PictOpOutReverse and PictOpAdd. Mainly used for component
+ * alpha and limited 1-tmu cards.
+ *
+ * From http://anholt.livejournal.com/32058.html:
+ *
+ * The trouble is that component-alpha rendering requires two different sources
+ * for blending: one for the source value to the blender, which is the
+ * per-channel multiplication of source and mask, and one for the source alpha
+ * for multiplying with the destination channels, which is the multiplication
+ * of the source channels by the mask alpha. So the equation for Over is:
+ *
+ * dst.A = src.A * mask.A + (1 - (src.A * mask.A)) * dst.A
+ * dst.R = src.R * mask.R + (1 - (src.A * mask.R)) * dst.R
+ * dst.G = src.G * mask.G + (1 - (src.A * mask.G)) * dst.G
+ * dst.B = src.B * mask.B + (1 - (src.A * mask.B)) * dst.B
+ *
+ * But we can do some simpler operations, right? How about PictOpOutReverse,
+ * which has a source factor of 0 and dest factor of (1 - source alpha). We
+ * can get the source alpha value (srca.X = src.A * mask.X) out of the texture
+ * blenders pretty easily. So we can do a component-alpha OutReverse, which
+ * gets us:
+ *
+ * dst.A = 0 + (1 - (src.A * mask.A)) * dst.A
+ * dst.R = 0 + (1 - (src.A * mask.R)) * dst.R
+ * dst.G = 0 + (1 - (src.A * mask.G)) * dst.G
+ * dst.B = 0 + (1 - (src.A * mask.B)) * dst.B
+ *
+ * OK. And if an op doesn't use the source alpha value for the destination
+ * factor, then we can do the channel multiplication in the texture blenders
+ * to get the source value, and ignore the source alpha that we wouldn't use.
+ * We've supported this in the Radeon driver for a long time. An example would
+ * be PictOpAdd, which does:
+ *
+ * dst.A = src.A * mask.A + dst.A
+ * dst.R = src.R * mask.R + dst.R
+ * dst.G = src.G * mask.G + dst.G
+ * dst.B = src.B * mask.B + dst.B
+ *
+ * Hey, this looks good! If we do a PictOpOutReverse and then a PictOpAdd right
+ * after it, we get:
+ *
+ * dst.A = src.A * mask.A + ((1 - (src.A * mask.A)) * dst.A)
+ * dst.R = src.R * mask.R + ((1 - (src.A * mask.R)) * dst.R)
+ * dst.G = src.G * mask.G + ((1 - (src.A * mask.G)) * dst.G)
+ * dst.B = src.B * mask.B + ((1 - (src.A * mask.B)) * dst.B)
+ */
+
+static int
+uxa_try_magic_two_pass_composite_helper(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pMask,
+ PicturePtr pDst,
+ INT16 xSrc, INT16 ySrc,
+ INT16 xMask, INT16 yMask,
+ INT16 xDst, INT16 yDst,
+ CARD16 width, CARD16 height)
+{
+ ScreenPtr screen = pDst->pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ PicturePtr localDst = pDst;
+ int xDst_copy, yDst_copy;
+
+ assert(op == PictOpOver);
+
+ if (uxa_screen->info->check_composite &&
+ (!(*uxa_screen->info->check_composite) (PictOpOutReverse, pSrc,
+ pMask, pDst, width, height)
+ || !(*uxa_screen->info->check_composite) (PictOpAdd, pSrc, pMask,
+ pDst, width, height))) {
+ return -1;
+ }
+
+ if (uxa_screen->info->check_composite_target &&
+ !uxa_screen->info->check_composite_target(uxa_get_drawable_pixmap(pDst->pDrawable))) {
+ int depth = pDst->pDrawable->depth;
+ PixmapPtr pixmap;
+ int error;
+ GCPtr gc;
+
+ pixmap = uxa_get_drawable_pixmap(pDst->pDrawable);
+ if (uxa_screen->info->check_copy &&
+ !uxa_screen->info->check_copy(pixmap, pixmap, GXcopy, FB_ALLONES))
+ return -1;
+
+ pixmap = screen->CreatePixmap(screen,
+ width, height, depth,
+ CREATE_PIXMAP_USAGE_SCRATCH);
+ if (!pixmap)
+ return 0;
+
+ gc = GetScratchGC(depth, screen);
+ if (!gc) {
+ screen->DestroyPixmap(pixmap);
+ return 0;
+ }
+
+ ValidateGC(&pixmap->drawable, gc);
+ gc->ops->CopyArea(pDst->pDrawable, &pixmap->drawable, gc,
+ xDst, yDst, width, height, 0, 0);
+ FreeScratchGC(gc);
+
+ xDst_copy = xDst; xDst = 0;
+ yDst_copy = yDst; yDst = 0;
+
+ localDst = CreatePicture(0, &pixmap->drawable,
+ PictureMatchFormat(screen, depth, pDst->format),
+ 0, 0, serverClient, &error);
+ screen->DestroyPixmap(pixmap);
+
+ if (!localDst)
+ return 0;
+
+ ValidatePicture(localDst);
+ }
+
+ /* Now, we think we should be able to accelerate this operation. First,
+ * composite the destination to be the destination times the source alpha
+ * factors.
+ */
+ uxa_composite(PictOpOutReverse, pSrc, pMask, localDst,
+ xSrc, ySrc,
+ xMask, yMask,
+ xDst, yDst,
+ width, height);
+
+ /* Then, add in the source value times the destination alpha factors (1.0).
+ */
+ uxa_composite(PictOpAdd, pSrc, pMask, localDst,
+ xSrc, ySrc,
+ xMask, yMask,
+ xDst, yDst,
+ width, height);
+
+ if (localDst != pDst) {
+ GCPtr gc;
+
+ gc = GetScratchGC(pDst->pDrawable->depth, screen);
+ if (gc) {
+ ValidateGC(pDst->pDrawable, gc);
+ gc->ops->CopyArea(localDst->pDrawable, pDst->pDrawable, gc,
+ 0, 0, width, height, xDst_copy, yDst_copy);
+ FreeScratchGC(gc);
+ }
+
+ FreePicture(localDst, 0);
+ }
+
+ return 1;
+}
+
+static int
+compatible_formats (CARD8 op, PicturePtr dst, PicturePtr src)
+{
+ if (op == PictOpSrc) {
+ if (src->format == dst->format)
+ return 1;
+
+ /* Is the destination an alpha-less version of source? */
+ if (dst->format == PICT_FORMAT(PICT_FORMAT_BPP(src->format),
+ PICT_FORMAT_TYPE(src->format),
+ 0,
+ PICT_FORMAT_R(src->format),
+ PICT_FORMAT_G(src->format),
+ PICT_FORMAT_B(src->format)))
+ return 1;
+
+ /* XXX xrgb is promoted to argb during image upload... */
+#if 0
+ if (dst->format == PICT_a8r8g8b8 && src->format == PICT_x8r8g8b8)
+ return 1;
+#endif
+ } else if (op == PictOpOver) {
+ if (PICT_FORMAT_A(src->format))
+ return 0;
+
+ return src->format == dst->format;
+ }
+
+ return 0;
+}
+
+void
+uxa_composite(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pMask,
+ PicturePtr pDst,
+ INT16 xSrc, INT16 ySrc,
+ INT16 xMask, INT16 yMask,
+ INT16 xDst, INT16 yDst,
+ CARD16 width, CARD16 height)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pDst->pDrawable->pScreen);
+ int ret = -1;
+ Bool saveSrcRepeat = pSrc->repeat;
+ Bool saveMaskRepeat = pMask ? pMask->repeat : 0;
+ RegionRec region;
+ int tx, ty;
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback)
+ goto fallback;
+
+ if (!uxa_drawable_is_offscreen(pDst->pDrawable))
+ goto fallback;
+
+ if (pDst->alphaMap || pSrc->alphaMap || (pMask && pMask->alphaMap))
+ goto fallback;
+
+ /* Remove repeat in source if useless */
+ if (pSrc->pDrawable && pSrc->repeat && pSrc->filter != PictFilterConvolution &&
+ transform_is_integer_translation(pSrc->transform, &tx, &ty) &&
+ (pSrc->pDrawable->width > 1 || pSrc->pDrawable->height > 1) &&
+ drawable_contains(pSrc->pDrawable, xSrc + tx, ySrc + ty, width, height))
+ pSrc->repeat = 0;
+
+ if (!pMask) {
+ if (op == PictOpClear) {
+ PicturePtr clear = uxa_solid_clear(pDst->pDrawable->pScreen);
+ if (clear &&
+ uxa_try_driver_solid_fill(clear, pDst,
+ xSrc, ySrc,
+ xDst, yDst,
+ width, height) == 1)
+ goto done;
+ }
+
+ if (pSrc->pDrawable == NULL) {
+ if (pSrc->pSourcePict) {
+ SourcePict *source = pSrc->pSourcePict;
+ if (source->type == SourcePictTypeSolidFill) {
+ if (op == PictOpSrc ||
+ (op == PictOpOver &&
+ (source->solidFill.color & 0xff000000) == 0xff000000)) {
+ ret = uxa_try_driver_solid_fill(pSrc, pDst,
+ xSrc, ySrc,
+ xDst, yDst,
+ width, height);
+ if (ret == 1)
+ goto done;
+ }
+ }
+ }
+ } else if (pSrc->pDrawable->width == 1 &&
+ pSrc->pDrawable->height == 1 &&
+ pSrc->repeat &&
+ (op == PictOpSrc || (op == PictOpOver && !PICT_FORMAT_A(pSrc->format)))) {
+ ret = uxa_try_driver_solid_fill(pSrc, pDst,
+ xSrc, ySrc,
+ xDst, yDst,
+ width, height);
+ if (ret == 1)
+ goto done;
+ } else if (compatible_formats (op, pDst, pSrc) &&
+ pSrc->filter != PictFilterConvolution &&
+ transform_is_integer_translation(pSrc->transform, &tx, &ty)) {
+ if (!pSrc->repeat &&
+ drawable_contains(pSrc->pDrawable,
+ xSrc + tx, ySrc + ty,
+ width, height)) {
+ xDst += pDst->pDrawable->x;
+ yDst += pDst->pDrawable->y;
+ xSrc += pSrc->pDrawable->x + tx;
+ ySrc += pSrc->pDrawable->y + ty;
+
+ if (!miComputeCompositeRegion
+ (&region, pSrc, pMask, pDst, xSrc, ySrc,
+ xMask, yMask, xDst, yDst, width, height))
+ goto done;
+
+ uxa_copy_n_to_n(pSrc->pDrawable,
+ pDst->pDrawable, NULL,
+ REGION_RECTS(&region),
+ REGION_NUM_RECTS(&region),
+ xSrc - xDst, ySrc - yDst, FALSE,
+ FALSE, 0, NULL);
+ REGION_UNINIT(pDst->pDrawable->pScreen,
+ &region);
+ goto done;
+ } else if (pSrc->repeat && pSrc->repeatType == RepeatNormal &&
+ pSrc->pDrawable->type == DRAWABLE_PIXMAP) {
+ DDXPointRec patOrg;
+
+ /* Let's see if the driver can do the repeat
+ * in one go
+ */
+ if (uxa_screen->info->prepare_composite) {
+ ret = uxa_try_driver_composite(op, pSrc,
+ pMask, pDst,
+ xSrc, ySrc,
+ xMask, yMask,
+ xDst, yDst,
+ width, height);
+ if (ret == 1)
+ goto done;
+ }
+
+ /* Now see if we can use
+ * uxa_fill_region_tiled()
+ */
+ xDst += pDst->pDrawable->x;
+ yDst += pDst->pDrawable->y;
+ xSrc += pSrc->pDrawable->x + tx;
+ ySrc += pSrc->pDrawable->y + ty;
+
+ if (!miComputeCompositeRegion
+ (&region, pSrc, pMask, pDst, xSrc, ySrc,
+ xMask, yMask, xDst, yDst, width, height))
+ goto done;
+
+ /* pattern origin is the point in the
+ * destination drawable
+ * corresponding to (0,0) in the source */
+ patOrg.x = xDst - xSrc;
+ patOrg.y = yDst - ySrc;
+
+ ret = uxa_fill_region_tiled(pDst->pDrawable,
+ &region,
+ (PixmapPtr) pSrc->
+ pDrawable, &patOrg,
+ FB_ALLONES, GXcopy);
+
+ REGION_UNINIT(pDst->pDrawable->pScreen,
+ &region);
+
+ if (ret)
+ goto done;
+ }
+ }
+ }
+
+ /* Remove repeat in mask if useless */
+ if (pMask && pMask->pDrawable && pMask->repeat &&
+ pMask->filter != PictFilterConvolution &&
+ transform_is_integer_translation(pMask->transform, &tx, &ty) &&
+ (pMask->pDrawable->width > 1 || pMask->pDrawable->height > 1) &&
+ drawable_contains(pMask->pDrawable, xMask + tx, yMask + ty, width, height))
+ pMask->repeat = 0;
+
+ if (uxa_screen->info->prepare_composite) {
+ Bool isSrcSolid;
+
+ ret =
+ uxa_try_driver_composite(op, pSrc, pMask, pDst, xSrc, ySrc,
+ xMask, yMask, xDst, yDst, width,
+ height);
+ if (ret == 1)
+ goto done;
+
+ /* For generic masks and solid src pictures, mach64 can do
+ * Over in two passes, similar to the component-alpha case.
+ */
+
+ isSrcSolid =
+ pSrc->pDrawable ?
+ pSrc->pDrawable->width == 1 &&
+ pSrc->pDrawable->height == 1 &&
+ pSrc->repeat :
+ pSrc->pSourcePict ?
+ pSrc->pSourcePict->type == SourcePictTypeSolidFill :
+ 0;
+
+ /* If we couldn't do the Composite in a single pass, and it
+ * was a component-alpha Over, see if we can do it in two
+ * passes with an OutReverse and then an Add.
+ */
+ if (ret == -1 && op == PictOpOver && pMask &&
+ (pMask->componentAlpha || isSrcSolid)) {
+ ret =
+ uxa_try_magic_two_pass_composite_helper(op, pSrc,
+ pMask, pDst,
+ xSrc, ySrc,
+ xMask, yMask,
+ xDst, yDst,
+ width, height);
+ if (ret == 1)
+ goto done;
+ }
+
+ }
+
+fallback:
+ uxa_print_composite_fallback("uxa_composite",
+ op, pSrc, pMask, pDst);
+
+ uxa_check_composite(op, pSrc, pMask, pDst, xSrc, ySrc,
+ xMask, yMask, xDst, yDst, width, height);
+
+done:
+ pSrc->repeat = saveSrcRepeat;
+ if (pMask)
+ pMask->repeat = saveMaskRepeat;
+}
+#endif
+
+/**
+ * Same as miCreateAlphaPicture, except it uses uxa_check_poly_fill_rect instead
+ * of PolyFillRect to initialize the pixmap after creating it, to prevent
+ * the pixmap from being migrated.
+ *
+ * See the comments about uxa_trapezoids and uxa_triangles.
+ */
+static PicturePtr
+uxa_create_alpha_picture(ScreenPtr pScreen,
+ PicturePtr pDst,
+ PictFormatPtr pPictFormat, CARD16 width, CARD16 height)
+{
+ PixmapPtr pPixmap;
+ PicturePtr pPicture;
+ int error;
+
+ if (width > 32767 || height > 32767)
+ return 0;
+
+ if (!pPictFormat) {
+ if (pDst->polyEdge == PolyEdgeSharp)
+ pPictFormat = PictureMatchFormat(pScreen, 1, PICT_a1);
+ else
+ pPictFormat = PictureMatchFormat(pScreen, 8, PICT_a8);
+ if (!pPictFormat)
+ return 0;
+ }
+
+ pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height,
+ pPictFormat->depth,
+ UXA_CREATE_PIXMAP_FOR_MAP);
+ if (!pPixmap)
+ return 0;
+ pPicture = CreatePicture(0, &pPixmap->drawable, pPictFormat,
+ 0, 0, serverClient, &error);
+ (*pScreen->DestroyPixmap) (pPixmap);
+ return pPicture;
+}
+
+static void
+uxa_check_trapezoids(CARD8 op, PicturePtr src, PicturePtr dst,
+ PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
+ int ntrap, xTrapezoid * traps)
+{
+ ScreenPtr screen = dst->pDrawable->pScreen;
+
+ if (maskFormat) {
+ PixmapPtr scratch = NULL;
+ PicturePtr mask;
+ INT16 xDst, yDst;
+ INT16 xRel, yRel;
+ BoxRec bounds;
+ int width, height;
+ pixman_image_t *image;
+ pixman_format_code_t format;
+ int error;
+
+ xDst = traps[0].left.p1.x >> 16;
+ yDst = traps[0].left.p1.y >> 16;
+
+ miTrapezoidBounds (ntrap, traps, &bounds);
+ if (bounds.y1 >= bounds.y2 || bounds.x1 >= bounds.x2)
+ return;
+
+ width = bounds.x2 - bounds.x1;
+ height = bounds.y2 - bounds.y1;
+
+ format = maskFormat->format |
+ (BitsPerPixel(maskFormat->depth) << 24);
+ image =
+ pixman_image_create_bits(format, width, height, NULL, 0);
+ if (!image)
+ return;
+
+ for (; ntrap; ntrap--, traps++)
+ pixman_rasterize_trapezoid(image,
+ (pixman_trapezoid_t *) traps,
+ -bounds.x1, -bounds.y1);
+
+
+ scratch = GetScratchPixmapHeader(screen, width, height,
+ PIXMAN_FORMAT_DEPTH(format),
+ PIXMAN_FORMAT_BPP(format),
+ pixman_image_get_stride(image),
+ pixman_image_get_data(image));
+ if (!scratch) {
+ pixman_image_unref(image);
+ return;
+ }
+
+ mask = CreatePicture(0, &scratch->drawable,
+ PictureMatchFormat(screen,
+ PIXMAN_FORMAT_DEPTH(format),
+ format),
+ 0, 0, serverClient, &error);
+ if (!mask) {
+ FreeScratchPixmapHeader(scratch);
+ pixman_image_unref(image);
+ return;
+ }
+
+ xRel = bounds.x1 + xSrc - xDst;
+ yRel = bounds.y1 + ySrc - yDst;
+ CompositePicture(op, src, mask, dst,
+ xRel, yRel,
+ 0, 0,
+ bounds.x1, bounds.y1,
+ width, height);
+ FreePicture(mask, 0);
+
+ FreeScratchPixmapHeader(scratch);
+ pixman_image_unref(image);
+ } else {
+ if (dst->polyEdge == PolyEdgeSharp)
+ maskFormat = PictureMatchFormat(screen, 1, PICT_a1);
+ else
+ maskFormat = PictureMatchFormat(screen, 8, PICT_a8);
+
+ for (; ntrap; ntrap--, traps++)
+ uxa_check_trapezoids(op, src, dst, maskFormat, xSrc, ySrc, 1, traps);
+ }
+}
+
+/**
+ * uxa_trapezoids is essentially a copy of miTrapezoids that uses
+ * uxa_create_alpha_picture instead of miCreateAlphaPicture.
+ *
+ * The problem with miCreateAlphaPicture is that it calls PolyFillRect
+ * to initialize the contents after creating the pixmap, which
+ * causes the pixmap to be moved in for acceleration. The subsequent
+ * call to RasterizeTrapezoid won't be accelerated however, which
+ * forces the pixmap to be moved out again.
+ *
+ * uxa_create_alpha_picture avoids this roundtrip by using
+ * uxa_check_poly_fill_rect to initialize the contents.
+ */
+void
+uxa_trapezoids(CARD8 op, PicturePtr src, PicturePtr dst,
+ PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
+ int ntrap, xTrapezoid * traps)
+{
+ ScreenPtr screen = dst->pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+ BoxRec bounds;
+ Bool direct;
+
+ if (uxa_screen->swappedOut || uxa_screen->force_fallback) {
+ uxa_check_trapezoids(op, src, dst, maskFormat, xSrc, ySrc, ntrap, traps);
+ return;
+ }
+
+ direct = op == PictOpAdd && miIsSolidAlpha(src);
+ if (maskFormat || direct) {
+ miTrapezoidBounds(ntrap, traps, &bounds);
+
+ if (bounds.y1 >= bounds.y2 || bounds.x1 >= bounds.x2)
+ return;
+ }
+
+ /*
+ * Check for solid alpha add
+ */
+ if (direct) {
+ DrawablePtr pDraw = dst->pDrawable;
+ PixmapPtr pixmap = uxa_get_drawable_pixmap(pDraw);
+ int xoff, yoff;
+
+ uxa_get_drawable_deltas(pDraw, pixmap, &xoff, &yoff);
+
+ xoff += pDraw->x;
+ yoff += pDraw->y;
+
+ if (uxa_prepare_access(pDraw, UXA_ACCESS_RW)) {
+ PictureScreenPtr ps = GetPictureScreen(screen);
+
+ for (; ntrap; ntrap--, traps++)
+ (*ps->RasterizeTrapezoid) (dst, traps, 0, 0);
+ uxa_finish_access(pDraw);
+ }
+ } else if (maskFormat) {
+ PixmapPtr scratch = NULL;
+ PicturePtr mask;
+ INT16 xDst, yDst;
+ INT16 xRel, yRel;
+ int width, height;
+ pixman_image_t *image;
+ pixman_format_code_t format;
+
+ xDst = traps[0].left.p1.x >> 16;
+ yDst = traps[0].left.p1.y >> 16;
+
+ width = bounds.x2 - bounds.x1;
+ height = bounds.y2 - bounds.y1;
+
+ format = maskFormat->format |
+ (BitsPerPixel(maskFormat->depth) << 24);
+ image =
+ pixman_image_create_bits(format, width, height, NULL, 0);
+ if (!image)
+ return;
+
+ for (; ntrap; ntrap--, traps++)
+ pixman_rasterize_trapezoid(image,
+ (pixman_trapezoid_t *) traps,
+ -bounds.x1, -bounds.y1);
+ if (uxa_drawable_is_offscreen(dst->pDrawable)) {
+ mask = uxa_picture_from_pixman_image(screen, image, format);
+ } else {
+ int error;
+
+ scratch = GetScratchPixmapHeader(screen, width, height,
+ PIXMAN_FORMAT_DEPTH(format),
+ PIXMAN_FORMAT_BPP(format),
+ pixman_image_get_stride(image),
+ pixman_image_get_data(image));
+ mask = CreatePicture(0, &scratch->drawable,
+ PictureMatchFormat(screen,
+ PIXMAN_FORMAT_DEPTH(format),
+ format),
+ 0, 0, serverClient, &error);
+ }
+ if (!mask) {
+ if (scratch)
+ FreeScratchPixmapHeader(scratch);
+ pixman_image_unref(image);
+ return;
+ }
+
+ xRel = bounds.x1 + xSrc - xDst;
+ yRel = bounds.y1 + ySrc - yDst;
+ CompositePicture(op, src, mask, dst,
+ xRel, yRel,
+ 0, 0,
+ bounds.x1, bounds.y1,
+ width, height);
+ FreePicture(mask, 0);
+
+ if (scratch)
+ FreeScratchPixmapHeader(scratch);
+ pixman_image_unref(image);
+ } else {
+ if (dst->polyEdge == PolyEdgeSharp)
+ maskFormat = PictureMatchFormat(screen, 1, PICT_a1);
+ else
+ maskFormat = PictureMatchFormat(screen, 8, PICT_a8);
+ for (; ntrap; ntrap--, traps++)
+ uxa_trapezoids(op, src, dst, maskFormat, xSrc, ySrc,
+ 1, traps);
+ }
+}
+
+/**
+ * uxa_triangles is essentially a copy of miTriangles that uses
+ * uxa_create_alpha_picture instead of miCreateAlphaPicture.
+ *
+ * The problem with miCreateAlphaPicture is that it calls PolyFillRect
+ * to initialize the contents after creating the pixmap, which
+ * causes the pixmap to be moved in for acceleration. The subsequent
+ * call to AddTriangles won't be accelerated however, which forces the pixmap
+ * to be moved out again.
+ *
+ * uxa_create_alpha_picture avoids this roundtrip by using
+ * uxa_check_poly_fill_rect to initialize the contents.
+ */
+void
+uxa_triangles(CARD8 op, PicturePtr pSrc, PicturePtr pDst,
+ PictFormatPtr maskFormat, INT16 xSrc, INT16 ySrc,
+ int ntri, xTriangle * tris)
+{
+ ScreenPtr pScreen = pDst->pDrawable->pScreen;
+ PictureScreenPtr ps = GetPictureScreen(pScreen);
+ BoxRec bounds;
+ Bool direct = op == PictOpAdd && miIsSolidAlpha(pSrc);
+
+ if (maskFormat || direct) {
+ miTriangleBounds(ntri, tris, &bounds);
+
+ if (bounds.y1 >= bounds.y2 || bounds.x1 >= bounds.x2)
+ return;
+ }
+
+ /*
+ * Check for solid alpha add
+ */
+ if (direct) {
+ DrawablePtr pDraw = pDst->pDrawable;
+ if (uxa_prepare_access(pDraw, UXA_ACCESS_RW)) {
+ (*ps->AddTriangles) (pDst, 0, 0, ntri, tris);
+ uxa_finish_access(pDraw);
+ }
+ } else if (maskFormat) {
+ PicturePtr pPicture;
+ INT16 xDst, yDst;
+ INT16 xRel, yRel;
+ int width = bounds.x2 - bounds.x1;
+ int height = bounds.y2 - bounds.y1;
+ GCPtr pGC;
+ xRectangle rect;
+
+ xDst = tris[0].p1.x >> 16;
+ yDst = tris[0].p1.y >> 16;
+
+ pPicture = uxa_create_alpha_picture(pScreen, pDst, maskFormat,
+ width, height);
+ if (!pPicture)
+ return;
+
+ /* Clear the alpha picture to 0. */
+ pGC = GetScratchGC(pPicture->pDrawable->depth, pScreen);
+ if (!pGC) {
+ FreePicture(pPicture, 0);
+ return;
+ }
+ ValidateGC(pPicture->pDrawable, pGC);
+ rect.x = 0;
+ rect.y = 0;
+ rect.width = width;
+ rect.height = height;
+ uxa_check_poly_fill_rect(pPicture->pDrawable, pGC, 1, &rect);
+ FreeScratchGC(pGC);
+
+ if (uxa_prepare_access(pPicture->pDrawable, UXA_ACCESS_RW)) {
+ (*ps->AddTriangles) (pPicture, -bounds.x1, -bounds.y1,
+ ntri, tris);
+ uxa_finish_access(pPicture->pDrawable);
+ }
+
+ xRel = bounds.x1 + xSrc - xDst;
+ yRel = bounds.y1 + ySrc - yDst;
+ CompositePicture(op, pSrc, pPicture, pDst,
+ xRel, yRel, 0, 0, bounds.x1, bounds.y1,
+ bounds.x2 - bounds.x1, bounds.y2 - bounds.y1);
+ FreePicture(pPicture, 0);
+ } else {
+ if (pDst->polyEdge == PolyEdgeSharp)
+ maskFormat = PictureMatchFormat(pScreen, 1, PICT_a1);
+ else
+ maskFormat = PictureMatchFormat(pScreen, 8, PICT_a8);
+
+ for (; ntri; ntri--, tris++)
+ uxa_triangles(op, pSrc, pDst, maskFormat, xSrc, ySrc, 1,
+ tris);
+ }
+}
diff --git a/uxa/uxa-unaccel.c b/uxa/uxa-unaccel.c
new file mode 100644
index 0000000..15be821
--- /dev/null
+++ b/uxa/uxa-unaccel.c
@@ -0,0 +1,430 @@
+/*
+ *
+ * Copyright © 1999 Keith Packard
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include "uxa-priv.h"
+
+#ifdef RENDER
+#include "mipict.h"
+#endif
+
+/*
+ * These functions wrap the low-level fb rendering functions and
+ * synchronize framebuffer/accelerated drawing by stalling until
+ * the accelerator is idle
+ */
+
+/**
+ * Calls uxa_prepare_access with UXA_PREPARE_SRC for the tile, if that is the
+ * current fill style.
+ *
+ * Solid doesn't use an extra pixmap source, and Stippled/OpaqueStippled are
+ * 1bpp and never in fb, so we don't worry about them.
+ * We should worry about them for completeness sake and going forward.
+ */
+Bool uxa_prepare_access_gc(GCPtr pGC)
+{
+ if (pGC->stipple)
+ if (!uxa_prepare_access(&pGC->stipple->drawable, UXA_ACCESS_RO))
+ return FALSE;
+ if (pGC->fillStyle == FillTiled)
+ if (!uxa_prepare_access
+ (&pGC->tile.pixmap->drawable, UXA_ACCESS_RO)) {
+ if (pGC->stipple)
+ uxa_finish_access(&pGC->stipple->drawable);
+ return FALSE;
+ }
+ return TRUE;
+}
+
+/**
+ * Finishes access to the tile in the GC, if used.
+ */
+void uxa_finish_access_gc(GCPtr pGC)
+{
+ if (pGC->fillStyle == FillTiled)
+ uxa_finish_access(&pGC->tile.pixmap->drawable);
+ if (pGC->stipple)
+ uxa_finish_access(&pGC->stipple->drawable);
+}
+
+char uxa_drawable_location(DrawablePtr pDrawable)
+{
+ return uxa_drawable_is_offscreen(pDrawable) ? 's' : 'm';
+}
+
+void
+uxa_check_fill_spans(DrawablePtr pDrawable, GCPtr pGC, int nspans,
+ DDXPointPtr ppt, int *pwidth, int fSorted)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbFillSpans(pDrawable, pGC, nspans, ppt, pwidth,
+ fSorted);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_set_spans(DrawablePtr pDrawable, GCPtr pGC, char *psrc,
+ DDXPointPtr ppt, int *pwidth, int nspans, int fSorted)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ fbSetSpans(pDrawable, pGC, psrc, ppt, pwidth, nspans, fSorted);
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_put_image(DrawablePtr pDrawable, GCPtr pGC, int depth,
+ int x, int y, int w, int h, int leftPad, int format,
+ char *bits)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ fbPutImage(pDrawable, pGC, depth, x, y, w, h, leftPad, format,
+ bits);
+ uxa_finish_access(pDrawable);
+ }
+}
+
+RegionPtr
+uxa_check_copy_area(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
+ int srcx, int srcy, int w, int h, int dstx, int dsty)
+{
+ ScreenPtr screen = pSrc->pScreen;
+ RegionPtr ret = NULL;
+
+ UXA_FALLBACK(("from %p to %p (%c,%c)\n", pSrc, pDst,
+ uxa_drawable_location(pSrc),
+ uxa_drawable_location(pDst)));
+ if (uxa_prepare_access(pDst, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access(pSrc, UXA_ACCESS_RO)) {
+ ret =
+ fbCopyArea(pSrc, pDst, pGC, srcx, srcy, w, h, dstx,
+ dsty);
+ uxa_finish_access(pSrc);
+ }
+ uxa_finish_access(pDst);
+ }
+ return ret;
+}
+
+RegionPtr
+uxa_check_copy_plane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
+ int srcx, int srcy, int w, int h, int dstx, int dsty,
+ unsigned long bitPlane)
+{
+ ScreenPtr screen = pSrc->pScreen;
+ RegionPtr ret = NULL;
+
+ UXA_FALLBACK(("from %p to %p (%c,%c)\n", pSrc, pDst,
+ uxa_drawable_location(pSrc),
+ uxa_drawable_location(pDst)));
+ if (uxa_prepare_access(pDst, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access(pSrc, UXA_ACCESS_RO)) {
+ ret =
+ fbCopyPlane(pSrc, pDst, pGC, srcx, srcy, w, h, dstx,
+ dsty, bitPlane);
+ uxa_finish_access(pSrc);
+ }
+ uxa_finish_access(pDst);
+ }
+ return ret;
+}
+
+void
+uxa_check_poly_point(DrawablePtr pDrawable, GCPtr pGC, int mode, int npt,
+ DDXPointPtr pptInit)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ fbPolyPoint(pDrawable, pGC, mode, npt, pptInit);
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_poly_lines(DrawablePtr pDrawable, GCPtr pGC,
+ int mode, int npt, DDXPointPtr ppt)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c), width %d, mode %d, count %d\n",
+ pDrawable, uxa_drawable_location(pDrawable),
+ pGC->lineWidth, mode, npt));
+
+ if (pGC->lineWidth == 0) {
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbPolyLine(pDrawable, pGC, mode, npt, ppt);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(pDrawable);
+ }
+ return;
+ }
+ /* fb calls mi functions in the lineWidth != 0 case. */
+ fbPolyLine(pDrawable, pGC, mode, npt, ppt);
+}
+
+void
+uxa_check_poly_segment(DrawablePtr pDrawable, GCPtr pGC,
+ int nsegInit, xSegment * pSegInit)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c) width %d, count %d\n", pDrawable,
+ uxa_drawable_location(pDrawable), pGC->lineWidth,
+ nsegInit));
+ if (pGC->lineWidth == 0) {
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbPolySegment(pDrawable, pGC, nsegInit,
+ pSegInit);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(pDrawable);
+ }
+ return;
+ }
+ /* fb calls mi functions in the lineWidth != 0 case. */
+ fbPolySegment(pDrawable, pGC, nsegInit, pSegInit);
+}
+
+void
+uxa_check_poly_arc(DrawablePtr pDrawable, GCPtr pGC, int narcs, xArc * pArcs)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+
+ /* Disable this as fbPolyArc can call miZeroPolyArc which in turn
+ * can call accelerated functions, that as yet, haven't been notified
+ * with uxa_finish_access().
+ */
+#if 0
+ if (pGC->lineWidth == 0) {
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbPolyArc(pDrawable, pGC, narcs, pArcs);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(pDrawable);
+ }
+ return;
+ }
+#endif
+ miPolyArc(pDrawable, pGC, narcs, pArcs);
+}
+
+void
+uxa_check_poly_fill_rect(DrawablePtr pDrawable, GCPtr pGC,
+ int nrect, xRectangle * prect)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbPolyFillRect(pDrawable, pGC, nrect, prect);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_image_glyph_blt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, unsigned int nglyph,
+ CharInfoPtr * ppci, pointer pglyphBase)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbImageGlyphBlt(pDrawable, pGC, x, y, nglyph, ppci,
+ pglyphBase);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_poly_glyph_blt(DrawablePtr pDrawable, GCPtr pGC,
+ int x, int y, unsigned int nglyph,
+ CharInfoPtr * ppci, pointer pglyphBase)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("to %p (%c), style %d alu %d\n", pDrawable,
+ uxa_drawable_location(pDrawable), pGC->fillStyle,
+ pGC->alu));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbPolyGlyphBlt(pDrawable, pGC, x, y, nglyph, ppci,
+ pglyphBase);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_push_pixels(GCPtr pGC, PixmapPtr pBitmap,
+ DrawablePtr pDrawable, int w, int h, int x, int y)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("from %p to %p (%c,%c)\n", pBitmap, pDrawable,
+ uxa_drawable_location(&pBitmap->drawable),
+ uxa_drawable_location(pDrawable)));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RW)) {
+ if (uxa_prepare_access(&pBitmap->drawable, UXA_ACCESS_RO)) {
+ if (uxa_prepare_access_gc(pGC)) {
+ fbPushPixels(pGC, pBitmap, pDrawable, w, h, x,
+ y);
+ uxa_finish_access_gc(pGC);
+ }
+ uxa_finish_access(&pBitmap->drawable);
+ }
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_get_spans(DrawablePtr pDrawable,
+ int wMax,
+ DDXPointPtr ppt, int *pwidth, int nspans, char *pdstStart)
+{
+ ScreenPtr screen = pDrawable->pScreen;
+
+ UXA_FALLBACK(("from %p (%c)\n", pDrawable,
+ uxa_drawable_location(pDrawable)));
+ if (uxa_prepare_access(pDrawable, UXA_ACCESS_RO)) {
+ fbGetSpans(pDrawable, wMax, ppt, pwidth, nspans, pdstStart);
+ uxa_finish_access(pDrawable);
+ }
+}
+
+void
+uxa_check_composite(CARD8 op,
+ PicturePtr pSrc,
+ PicturePtr pMask,
+ PicturePtr pDst,
+ INT16 xSrc, INT16 ySrc,
+ INT16 xMask, INT16 yMask,
+ INT16 xDst, INT16 yDst,
+ CARD16 width, CARD16 height)
+{
+ ScreenPtr screen = pDst->pDrawable->pScreen;
+
+ UXA_FALLBACK(("from picts %p/%p to pict %p\n", pSrc, pMask, pDst));
+
+ if (uxa_prepare_access(pDst->pDrawable, UXA_ACCESS_RW)) {
+ if (pSrc->pDrawable == NULL ||
+ uxa_prepare_access(pSrc->pDrawable, UXA_ACCESS_RO)) {
+ if (!pMask || pMask->pDrawable == NULL ||
+ uxa_prepare_access(pMask->pDrawable, UXA_ACCESS_RO))
+ {
+ fbComposite(op, pSrc, pMask, pDst,
+ xSrc, ySrc,
+ xMask, yMask,
+ xDst, yDst,
+ width, height);
+ if (pMask && pMask->pDrawable != NULL)
+ uxa_finish_access(pMask->pDrawable);
+ }
+ if (pSrc->pDrawable != NULL)
+ uxa_finish_access(pSrc->pDrawable);
+ }
+ uxa_finish_access(pDst->pDrawable);
+ }
+}
+
+void
+uxa_check_add_traps(PicturePtr pPicture,
+ INT16 x_off, INT16 y_off, int ntrap, xTrap * traps)
+{
+ ScreenPtr screen = pPicture->pDrawable->pScreen;
+
+ UXA_FALLBACK(("to pict %p (%c)\n", pPicture,
+ uxa_drawable_location(pPicture->pDrawable)));
+ if (uxa_prepare_access(pPicture->pDrawable, UXA_ACCESS_RW)) {
+ fbAddTraps(pPicture, x_off, y_off, ntrap, traps);
+ uxa_finish_access(pPicture->pDrawable);
+ }
+}
+
+/**
+ * Gets the 0,0 pixel of a pixmap. Used for doing solid fills of tiled pixmaps
+ * that happen to be 1x1. Pixmap must be at least 8bpp.
+ *
+ * XXX This really belongs in fb, so it can be aware of tiling and etc.
+ */
+CARD32 uxa_get_pixmap_first_pixel(PixmapPtr pPixmap)
+{
+ CARD32 pixel;
+ void *fb;
+
+ if (!uxa_prepare_access(&pPixmap->drawable, UXA_ACCESS_RO))
+ return 0;
+
+ fb = pPixmap->devPrivate.ptr;
+
+ switch (pPixmap->drawable.bitsPerPixel) {
+ case 32:
+ pixel = *(CARD32 *) fb;
+ break;
+ case 16:
+ pixel = *(CARD16 *) fb;
+ break;
+ default:
+ pixel = *(CARD8 *) fb;
+ break;
+ }
+ uxa_finish_access(&pPixmap->drawable);
+
+ return pixel;
+}
diff --git a/uxa/uxa.c b/uxa/uxa.c
new file mode 100644
index 0000000..856a0ce
--- /dev/null
+++ b/uxa/uxa.c
@@ -0,0 +1,603 @@
+/*
+ * Copyright © 2001 Keith Packard
+ *
+ * Partly based on code that is Copyright © The XFree86 Project Inc.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of Keith Packard not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Keith Packard makes no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+ * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+ * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ * PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/** @file
+ * This file covers the initialization and teardown of UXA, and has various
+ * functions not responsible for performing rendering, pixmap migration, or
+ * memory management.
+ */
+
+#ifdef HAVE_DIX_CONFIG_H
+#include <dix-config.h>
+#endif
+
+#include <stdlib.h>
+
+#include "uxa-priv.h"
+#include <X11/fonts/fontstruct.h>
+#include "dixfontstr.h"
+#include "uxa.h"
+
+#if HAS_DEVPRIVATEKEYREC
+DevPrivateKeyRec uxa_screen_index;
+#else
+int uxa_screen_index;
+#endif
+
+/**
+ * uxa_get_drawable_pixmap() returns a backing pixmap for a given drawable.
+ *
+ * @param pDrawable the drawable being requested.
+ *
+ * This function returns the backing pixmap for a drawable, whether it is a
+ * redirected window, unredirected window, or already a pixmap. Note that
+ * coordinate translation is needed when drawing to the backing pixmap of a
+ * redirected window, and the translation coordinates are provided by calling
+ * uxa_get_drawable_pixmap() on the drawable.
+ */
+PixmapPtr uxa_get_drawable_pixmap(DrawablePtr pDrawable)
+{
+ if (pDrawable->type == DRAWABLE_WINDOW)
+ return pDrawable->pScreen->
+ GetWindowPixmap((WindowPtr) pDrawable);
+ else
+ return (PixmapPtr) pDrawable;
+}
+
+/**
+ * Sets the offsets to add to coordinates to make them address the same bits in
+ * the backing drawable. These coordinates are nonzero only for redirected
+ * windows.
+ */
+void
+uxa_get_drawable_deltas(DrawablePtr pDrawable, PixmapPtr pPixmap,
+ int *xp, int *yp)
+{
+#ifdef COMPOSITE
+ if (pDrawable->type == DRAWABLE_WINDOW) {
+ *xp = -pPixmap->screen_x;
+ *yp = -pPixmap->screen_y;
+ return;
+ }
+#endif
+
+ *xp = 0;
+ *yp = 0;
+}
+
+/**
+ * uxa_pixmap_is_offscreen() is used to determine if a pixmap is in offscreen
+ * memory, meaning that acceleration could probably be done to it, and that it
+ * will need to be wrapped by PrepareAccess()/FinishAccess() when accessing it
+ * with the CPU.
+ *
+ * Note that except for UploadToScreen()/DownloadFromScreen() (which explicitly
+ * deal with moving pixmaps in and out of system memory), UXA will give drivers
+ * pixmaps as arguments for which uxa_pixmap_is_offscreen() is TRUE.
+ *
+ * @return TRUE if the given drawable is in framebuffer memory.
+ */
+Bool uxa_pixmap_is_offscreen(PixmapPtr p)
+{
+ ScreenPtr pScreen = p->drawable.pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
+
+ if (uxa_screen->info->pixmap_is_offscreen)
+ return uxa_screen->info->pixmap_is_offscreen(p);
+
+ return FALSE;
+}
+
+/**
+ * uxa_drawable_is_offscreen() is a convenience wrapper for
+ * uxa_pixmap_is_offscreen().
+ */
+Bool uxa_drawable_is_offscreen(DrawablePtr pDrawable)
+{
+ return uxa_pixmap_is_offscreen(uxa_get_drawable_pixmap(pDrawable));
+}
+
+/**
+ * Returns the pixmap which backs a drawable, and the offsets to add to
+ * coordinates to make them address the same bits in the backing drawable.
+ */
+PixmapPtr uxa_get_offscreen_pixmap(DrawablePtr drawable, int *xp, int *yp)
+{
+ PixmapPtr pixmap = uxa_get_drawable_pixmap(drawable);
+
+ uxa_get_drawable_deltas(drawable, pixmap, xp, yp);
+
+ if (uxa_pixmap_is_offscreen(pixmap))
+ return pixmap;
+ else
+ return NULL;
+}
+
+/**
+ * uxa_prepare_access() is UXA's wrapper for the driver's PrepareAccess() handler.
+ *
+ * It deals with waiting for synchronization with the card, determining if
+ * PrepareAccess() is necessary, and working around PrepareAccess() failure.
+ */
+Bool uxa_prepare_access(DrawablePtr pDrawable, uxa_access_t access)
+{
+ ScreenPtr pScreen = pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
+ PixmapPtr pPixmap = uxa_get_drawable_pixmap(pDrawable);
+ Bool offscreen = uxa_pixmap_is_offscreen(pPixmap);
+
+ if (!offscreen)
+ return TRUE;
+
+ if (uxa_screen->info->prepare_access)
+ return (*uxa_screen->info->prepare_access) (pPixmap, access);
+ return TRUE;
+}
+
+/**
+ * uxa_finish_access() is UXA's wrapper for the driver's finish_access() handler.
+ *
+ * It deals with calling the driver's finish_access() only if necessary.
+ */
+void uxa_finish_access(DrawablePtr pDrawable)
+{
+ ScreenPtr pScreen = pDrawable->pScreen;
+ uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
+ PixmapPtr pPixmap;
+
+ if (uxa_screen->info->finish_access == NULL)
+ return;
+
+ pPixmap = uxa_get_drawable_pixmap(pDrawable);
+ if (!uxa_pixmap_is_offscreen(pPixmap))
+ return;
+
+ (*uxa_screen->info->finish_access) (pPixmap);
+}
+
+/**
+ * uxa_validate_gc() sets the ops to UXA's implementations, which may be
+ * accelerated or may sync the card and fall back to fb.
+ */
+static void
+uxa_validate_gc(GCPtr pGC, unsigned long changes, DrawablePtr pDrawable)
+{
+ /* fbValidateGC will do direct access to pixmaps if the tiling has
+ * changed.
+ * Preempt fbValidateGC by doing its work and masking the change out, so
+ * that we can do the Prepare/finish_access.
+ */
+#ifdef FB_24_32BIT
+ if ((changes & GCTile) && fbGetRotatedPixmap(pGC)) {
+ (*pGC->pScreen->DestroyPixmap) (fbGetRotatedPixmap(pGC));
+ fbGetRotatedPixmap(pGC) = 0;
+ }
+
+ if (pGC->fillStyle == FillTiled) {
+ PixmapPtr pOldTile, pNewTile;
+
+ pOldTile = pGC->tile.pixmap;
+ if (pOldTile->drawable.bitsPerPixel != pDrawable->bitsPerPixel) {
+ pNewTile = fbGetRotatedPixmap(pGC);
+ if (!pNewTile ||
+ pNewTile->drawable.bitsPerPixel !=
+ pDrawable->bitsPerPixel) {
+ if (pNewTile)
+ (*pGC->pScreen->
+ DestroyPixmap) (pNewTile);
+ /* fb24_32ReformatTile will do direct access
+ * of a newly-allocated pixmap. This isn't a
+ * problem yet, since we don't put pixmaps in
+ * FB until at least one accelerated UXA op.
+ */
+ if (uxa_prepare_access
+ (&pOldTile->drawable, UXA_ACCESS_RO)) {
+ pNewTile =
+ fb24_32ReformatTile(pOldTile,
+ pDrawable->
+ bitsPerPixel);
+ uxa_finish_access(&pOldTile->drawable);
+ }
+ }
+ if (pNewTile) {
+ fbGetRotatedPixmap(pGC) = pOldTile;
+ pGC->tile.pixmap = pNewTile;
+ changes |= GCTile;
+ }
+ }
+ }
+#endif
+ if (changes & GCTile) {
+ if (!pGC->tileIsPixel
+ && FbEvenTile(pGC->tile.pixmap->drawable.width *
+ pDrawable->bitsPerPixel)) {
+ if (uxa_prepare_access
+ (&pGC->tile.pixmap->drawable, UXA_ACCESS_RW)) {
+ fbPadPixmap(pGC->tile.pixmap);
+ uxa_finish_access(&pGC->tile.pixmap->drawable);
+ }
+ }
+ /* Mask out the GCTile change notification, now that we've
+ * done FB's job for it.
+ */
+ changes &= ~GCTile;
+ }
+
+ if (changes & GCStipple && pGC->stipple) {
+ /* We can't inline stipple handling like we do for GCTile
+ * because it sets fbgc privates.
+ */
+ if (uxa_prepare_access(&pGC->stipple->drawable, UXA_ACCESS_RW)) {
+ fbValidateGC(pGC, changes, pDrawable);
+ uxa_finish_access(&pGC->stipple->drawable);
+ }
+ } else {
+ fbValidateGC(pGC, changes, pDrawable);
+ }
+
+ pGC->ops = (GCOps *) & uxa_ops;
+}
+
+static GCFuncs uxaGCFuncs = {
+ uxa_validate_gc,
+ miChangeGC,
+ miCopyGC,
+ miDestroyGC,
+ miChangeClip,
+ miDestroyClip,
+ miCopyClip
+};
+
+/**
+ * uxa_create_gc makes a new GC and hooks up its funcs handler, so that
+ * uxa_validate_gc() will get called.
+ */
+static int uxa_create_gc(GCPtr pGC)
+{
+ if (!fbCreateGC(pGC))
+ return FALSE;
+
+ pGC->funcs = &uxaGCFuncs;
+
+ return TRUE;
+}
+
+Bool uxa_prepare_access_window(WindowPtr pWin)
+{
+ if (pWin->backgroundState == BackgroundPixmap) {
+ if (!uxa_prepare_access
+ (&pWin->background.pixmap->drawable, UXA_ACCESS_RO))
+ return FALSE;
+ }
+
+ if (pWin->borderIsPixel == FALSE) {
+ if (!uxa_prepare_access
+ (&pWin->border.pixmap->drawable, UXA_ACCESS_RO)) {
+ if (pWin->backgroundState == BackgroundPixmap)
+ uxa_finish_access(&pWin->background.pixmap->
+ drawable);
+ return FALSE;
+ }
+ }
+ return TRUE;
+}
+
+void uxa_finish_access_window(WindowPtr pWin)
+{
+ if (pWin->backgroundState == BackgroundPixmap)
+ uxa_finish_access(&pWin->background.pixmap->drawable);
+
+ if (pWin->borderIsPixel == FALSE)
+ uxa_finish_access(&pWin->border.pixmap->drawable);
+}
+
+static Bool uxa_change_window_attributes(WindowPtr pWin, unsigned long mask)
+{
+ Bool ret;
+
+ if (!uxa_prepare_access_window(pWin))
+ return FALSE;
+ ret = fbChangeWindowAttributes(pWin, mask);
+ uxa_finish_access_window(pWin);
+ return ret;
+}
+
+static RegionPtr uxa_bitmap_to_region(PixmapPtr pPix)
+{
+ RegionPtr ret;
+ if (!uxa_prepare_access(&pPix->drawable, UXA_ACCESS_RO))
+ return NULL;
+ ret = fbPixmapToRegion(pPix);
+ uxa_finish_access(&pPix->drawable);
+ return ret;
+}
+
+static void uxa_xorg_enable_disable_fb_access(int index, Bool enable)
+{
+ ScreenPtr screen = screenInfo.screens[index];
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+
+ if (!enable && uxa_screen->disableFbCount++ == 0)
+ uxa_screen->swappedOut = TRUE;
+
+ if (enable && --uxa_screen->disableFbCount == 0)
+ uxa_screen->swappedOut = FALSE;
+
+ if (uxa_screen->SavedEnableDisableFBAccess)
+ uxa_screen->SavedEnableDisableFBAccess(index, enable);
+}
+
+void uxa_set_fallback_debug(ScreenPtr screen, Bool enable)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+
+ uxa_screen->fallback_debug = enable;
+}
+
+void uxa_set_force_fallback(ScreenPtr screen, Bool value)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(screen);
+
+ uxa_screen->force_fallback = value;
+}
+
+/**
+ * uxa_close_screen() unwraps its wrapped screen functions and tears down UXA's
+ * screen private, before calling down to the next CloseSccreen.
+ */
+static Bool uxa_close_screen(int i, ScreenPtr pScreen)
+{
+ uxa_screen_t *uxa_screen = uxa_get_screen(pScreen);
+ ScrnInfoPtr scrn = xf86Screens[pScreen->myNum];
+#ifdef RENDER
+ PictureScreenPtr ps = GetPictureScreenIfSet(pScreen);
+#endif
+ int n;
+
+ if (uxa_screen->solid_clear)
+ FreePicture(uxa_screen->solid_clear, 0);
+ if (uxa_screen->solid_black)
+ FreePicture(uxa_screen->solid_black, 0);
+ if (uxa_screen->solid_white)
+ FreePicture(uxa_screen->solid_white, 0);
+ for (n = 0; n < uxa_screen->solid_cache_size; n++)
+ FreePicture(uxa_screen->solid_cache[n].picture, 0);
+
+ uxa_glyphs_fini(pScreen);
+
+ if (pScreen->devPrivate) {
+ /* Destroy the pixmap created by miScreenInit() *before*
+ * chaining up as we finalize ourselves here and so this
+ * is the last chance we have of releasing our resources
+ * associated with the Pixmap. So do it first.
+ */
+ (void) (*pScreen->DestroyPixmap) (pScreen->devPrivate);
+ pScreen->devPrivate = NULL;
+ }
+
+ pScreen->CreateGC = uxa_screen->SavedCreateGC;
+ pScreen->CloseScreen = uxa_screen->SavedCloseScreen;
+ pScreen->GetImage = uxa_screen->SavedGetImage;
+ pScreen->GetSpans = uxa_screen->SavedGetSpans;
+ pScreen->CreatePixmap = uxa_screen->SavedCreatePixmap;
+ pScreen->DestroyPixmap = uxa_screen->SavedDestroyPixmap;
+ pScreen->CopyWindow = uxa_screen->SavedCopyWindow;
+ pScreen->ChangeWindowAttributes =
+ uxa_screen->SavedChangeWindowAttributes;
+ pScreen->BitmapToRegion = uxa_screen->SavedBitmapToRegion;
+ scrn->EnableDisableFBAccess = uxa_screen->SavedEnableDisableFBAccess;
+#ifdef RENDER
+ if (ps) {
+ ps->Composite = uxa_screen->SavedComposite;
+ ps->CompositeRects = uxa_screen->SavedCompositeRects;
+ ps->Glyphs = uxa_screen->SavedGlyphs;
+ ps->Trapezoids = uxa_screen->SavedTrapezoids;
+ ps->AddTraps = uxa_screen->SavedAddTraps;
+ ps->Triangles = uxa_screen->SavedTriangles;
+
+ ps->UnrealizeGlyph = uxa_screen->SavedUnrealizeGlyph;
+ }
+#endif
+
+ free(uxa_screen);
+
+ return (*pScreen->CloseScreen) (i, pScreen);
+}
+
+/**
+ * This function allocates a driver structure for UXA drivers to fill in. By
+ * having UXA allocate the structure, the driver structure can be extended
+ * without breaking ABI between UXA and the drivers. The driver's
+ * responsibility is to check beforehand that the UXA module has a matching
+ * major number and sufficient minor. Drivers are responsible for freeing the
+ * driver structure using free().
+ *
+ * @return a newly allocated, zero-filled driver structure
+ */
+uxa_driver_t *uxa_driver_alloc(void)
+{
+ return calloc(1, sizeof(uxa_driver_t));
+}
+
+/**
+ * @param pScreen screen being initialized
+ * @param pScreenInfo UXA driver record
+ *
+ * uxa_driver_init sets up UXA given a driver record filled in by the driver.
+ * pScreenInfo should have been allocated by uxa_driver_alloc(). See the
+ * comments in _UxaDriver for what must be filled in and what is optional.
+ *
+ * @return TRUE if UXA was successfully initialized.
+ */
+Bool uxa_driver_init(ScreenPtr screen, uxa_driver_t * uxa_driver)
+{
+ uxa_screen_t *uxa_screen;
+ ScrnInfoPtr scrn = xf86Screens[screen->myNum];
+
+ if (!uxa_driver)
+ return FALSE;
+
+ if (uxa_driver->uxa_major != UXA_VERSION_MAJOR ||
+ uxa_driver->uxa_minor > UXA_VERSION_MINOR) {
+ LogMessage(X_ERROR,
+ "UXA(%d): driver's UXA version requirements "
+ "(%d.%d) are incompatible with UXA version (%d.%d)\n",
+ screen->myNum, uxa_driver->uxa_major,
+ uxa_driver->uxa_minor, UXA_VERSION_MAJOR,
+ UXA_VERSION_MINOR);
+ return FALSE;
+ }
+
+ if (!uxa_driver->prepare_solid) {
+ LogMessage(X_ERROR,
+ "UXA(%d): uxa_driver_t::prepare_solid must be "
+ "non-NULL\n", screen->myNum);
+ return FALSE;
+ }
+
+ if (!uxa_driver->prepare_copy) {
+ LogMessage(X_ERROR,
+ "UXA(%d): uxa_driver_t::prepare_copy must be "
+ "non-NULL\n", screen->myNum);
+ return FALSE;
+ }
+#if HAS_DIXREGISTERPRIVATEKEY
+ if (!dixRegisterPrivateKey(&uxa_screen_index, PRIVATE_SCREEN, 0))
+ return FALSE;
+#endif
+ uxa_screen = calloc(sizeof(uxa_screen_t), 1);
+
+ if (!uxa_screen) {
+ LogMessage(X_WARNING,
+ "UXA(%d): Failed to allocate screen private\n",
+ screen->myNum);
+ return FALSE;
+ }
+
+ uxa_screen->info = uxa_driver;
+
+ dixSetPrivate(&screen->devPrivates, &uxa_screen_index, uxa_screen);
+
+ uxa_screen->force_fallback = FALSE;
+
+ uxa_screen->solid_cache_size = 0;
+ uxa_screen->solid_clear = 0;
+ uxa_screen->solid_black = 0;
+ uxa_screen->solid_white = 0;
+
+// exaDDXDriverInit(screen);
+
+ /*
+ * Replace various fb screen functions
+ */
+ uxa_screen->SavedCloseScreen = screen->CloseScreen;
+ screen->CloseScreen = uxa_close_screen;
+
+ uxa_screen->SavedCreateGC = screen->CreateGC;
+ screen->CreateGC = uxa_create_gc;
+
+ uxa_screen->SavedGetImage = screen->GetImage;
+ screen->GetImage = uxa_get_image;
+
+ uxa_screen->SavedGetSpans = screen->GetSpans;
+ screen->GetSpans = uxa_check_get_spans;
+
+ uxa_screen->SavedCopyWindow = screen->CopyWindow;
+ screen->CopyWindow = uxa_copy_window;
+
+ uxa_screen->SavedChangeWindowAttributes =
+ screen->ChangeWindowAttributes;
+ screen->ChangeWindowAttributes = uxa_change_window_attributes;
+
+ uxa_screen->SavedBitmapToRegion = screen->BitmapToRegion;
+ screen->BitmapToRegion = uxa_bitmap_to_region;
+
+ uxa_screen->SavedEnableDisableFBAccess = scrn->EnableDisableFBAccess;
+ scrn->EnableDisableFBAccess = uxa_xorg_enable_disable_fb_access;
+
+#ifdef RENDER
+ {
+ PictureScreenPtr ps = GetPictureScreenIfSet(screen);
+ if (ps) {
+ uxa_screen->SavedComposite = ps->Composite;
+ ps->Composite = uxa_composite;
+
+ uxa_screen->SavedCompositeRects = ps->CompositeRects;
+ ps->CompositeRects = uxa_solid_rects;
+
+ uxa_screen->SavedGlyphs = ps->Glyphs;
+ ps->Glyphs = uxa_glyphs;
+
+ uxa_screen->SavedUnrealizeGlyph = ps->UnrealizeGlyph;
+ ps->UnrealizeGlyph = uxa_glyph_unrealize;
+
+ uxa_screen->SavedTriangles = ps->Triangles;
+ ps->Triangles = uxa_triangles;
+
+ uxa_screen->SavedTrapezoids = ps->Trapezoids;
+ ps->Trapezoids = uxa_trapezoids;
+
+ uxa_screen->SavedAddTraps = ps->AddTraps;
+ ps->AddTraps = uxa_check_add_traps;
+ }
+ }
+#endif
+
+ LogMessage(X_INFO,
+ "UXA(%d): Driver registered support for the following"
+ " operations:\n", screen->myNum);
+ assert(uxa_driver->prepare_solid != NULL);
+ LogMessage(X_INFO, " solid\n");
+ assert(uxa_driver->prepare_copy != NULL);
+ LogMessage(X_INFO, " copy\n");
+ if (uxa_driver->prepare_composite != NULL) {
+ LogMessage(X_INFO, " composite (RENDER acceleration)\n");
+ }
+ if (uxa_driver->put_image != NULL) {
+ LogMessage(X_INFO, " put_image\n");
+ }
+ if (uxa_driver->get_image != NULL) {
+ LogMessage(X_INFO, " get_image\n");
+ }
+
+ return TRUE;
+}
+
+Bool uxa_resources_init(ScreenPtr screen)
+{
+ if (!uxa_glyphs_init(screen))
+ return FALSE;
+
+ return TRUE;
+}
+
+/**
+ * uxa_driver_fini tears down UXA on a given screen.
+ *
+ * @param pScreen screen being torn down.
+ */
+void uxa_driver_fini(ScreenPtr pScreen)
+{
+ /*right now does nothing */
+}
diff --git a/uxa/uxa.h b/uxa/uxa.h
new file mode 100644
index 0000000..e001c53
--- /dev/null
+++ b/uxa/uxa.h
@@ -0,0 +1,584 @@
+/*
+ * Copyright © 2000, 2008 Keith Packard
+ * 2004 Eric Anholt
+ * 2005 Zack Rusin
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation, and that the name of copyright holders not be used in
+ * advertising or publicity pertaining to distribution of the software without
+ * specific, written prior permission. Copyright holders make no
+ * representations about the suitability of this software for any purpose. It
+ * is provided "as is" without express or implied warranty.
+ *
+ * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
+ * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
+ * FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
+ * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
+ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+ * SOFTWARE.
+ */
+
+/** @file
+ * UXA - the unified memory acceleration architecture.
+ *
+ * This is the header containing the public API of UXA for uxa drivers.
+ */
+
+#ifndef UXA_H
+#define UXA_H
+
+#include "scrnintstr.h"
+#include "pixmapstr.h"
+#include "windowstr.h"
+#include "gcstruct.h"
+#include "picturestr.h"
+#include "fb.h"
+
+#define UXA_VERSION_MAJOR 1
+#define UXA_VERSION_MINOR 0
+#define UXA_VERSION_RELEASE 0
+
+typedef enum {
+ UXA_ACCESS_RO,
+ UXA_ACCESS_RW
+} uxa_access_t;
+
+/**
+ * The UxaDriver structure is allocated through uxa_driver_alloc(), and then
+ * fllled in by drivers.
+ */
+typedef struct _UxaDriver {
+ /**
+ * uxa_major and uxa_minor should be set by the driver to the version of
+ * UXA which the driver was compiled for (or configures itself at
+ * runtime to support). This allows UXA to extend the structure for
+ * new features without breaking ABI for drivers compiled against
+ * older versions.
+ */
+ int uxa_major, uxa_minor;
+
+ /**
+ * The flags field is bitfield of boolean values controlling UXA's
+ * behavior.
+ *
+ * The flags include UXA_TWO_BITBLT_DIRECTIONS.
+ */
+ int flags;
+
+ /** @name solid
+ * @{
+ */
+ /**
+ * check_solid() checks whether the driver can do a solid fill to this drawable.
+ * @param pDrawable Destination drawable
+ * @param alu raster operation
+ * @param planemask write mask for the fill
+ *
+ * The check_solid() call is recommended if prepare_solid() is
+ * implemented, but is not required.
+ */
+ Bool(*check_solid) (DrawablePtr pDrawable, int alu, Pixel planemask);
+
+ /**
+ * prepare_solid() sets up the driver for doing a solid fill.
+ * @param pPixmap Destination pixmap
+ * @param alu raster operation
+ * @param planemask write mask for the fill
+ * @param fg "foreground" color for the fill
+ *
+ * This call should set up the driver for doing a series of solid fills
+ * through the solid() call. The alu raster op is one of the GX*
+ * graphics functions listed in X.h, and typically maps to a similar
+ * single-byte "ROP" setting in all hardware. The planemask controls
+ * which bits of the destination should be affected, and will only
+ * represent the bits up to the depth of pPixmap. The fg is the pixel
+ * value of the foreground color referred to in ROP descriptions.
+ *
+ * Note that many drivers will need to store some of the data in the
+ * driver private record, for sending to the hardware with each
+ * drawing command.
+ *
+ * The prepare_solid() call is required of all drivers, but it may fail
+ * for any reason. Failure results in a fallback to software rendering.
+ */
+ Bool(*prepare_solid) (PixmapPtr pPixmap,
+ int alu, Pixel planemask, Pixel fg);
+
+ /**
+ * solid() performs a solid fill set up in the last prepare_solid()
+ * call.
+ *
+ * @param pPixmap destination pixmap
+ * @param x1 left coordinate
+ * @param y1 top coordinate
+ * @param x2 right coordinate
+ * @param y2 bottom coordinate
+ *
+ * Performs the fill set up by the last prepare_solid() call,
+ * covering the area from (x1,y1) to (x2,y2) in pPixmap. Note that
+ * the coordinates are in the coordinate space of the destination
+ * pixmap, so the driver will need to set up the hardware's offset
+ * and pitch for the destination coordinates according to the pixmap's
+ * offset and pitch within framebuffer.
+ *
+ * This call is required if prepare_solid() ever succeeds.
+ */
+ void (*solid) (PixmapPtr pPixmap, int x1, int y1, int x2, int y2);
+
+ /**
+ * done_solid() finishes a set of solid fills.
+ *
+ * @param pPixmap destination pixmap.
+ *
+ * The done_solid() call is called at the end of a series of consecutive
+ * solid() calls following a successful prepare_solid(). This allows
+ * drivers to finish up emitting drawing commands that were buffered, or
+ * clean up state from prepare_solid().
+ *
+ * This call is required if prepare_solid() ever succeeds.
+ */
+ void (*done_solid) (PixmapPtr pPixmap);
+ /** @} */
+
+ /** @name copy
+ * @{
+ */
+ /**
+ * check_copy() checks whether the driver can blit between the two Pictures
+ */
+ Bool(*check_copy) (PixmapPtr pSrc, PixmapPtr pDst, int alu, Pixel planemask);
+ /**
+ * prepare_copy() sets up the driver for doing a copy within video
+ * memory.
+ - *
+ * @param pSrcPixmap source pixmap
+ * @param pDstPixmap destination pixmap
+ * @param dx X copy direction
+ * @param dy Y copy direction
+ * @param alu raster operation
+ * @param planemask write mask for the fill
+ *
+ * This call should set up the driver for doing a series of copies
+ * from the pSrcPixmap to the pDstPixmap. The dx flag will be
+ * positive if the
+ * hardware should do the copy from the left to the right, and dy will
+ * be positive if the copy should be done from the top to the bottom.
+ * This is to deal with self-overlapping copies when
+ * pSrcPixmap == pDstPixmap.
+ *
+ * If your hardware can only support blits that are (left to right,
+ * top to bottom) or (right to left, bottom to top), then you should
+ * set #UXA_TWO_BITBLT_DIRECTIONS, and UXA will break down copy
+ * operations to ones that meet those requirements. The alu raster
+ * op is one of the GX* graphics functions listed in X.h, and
+ * typically maps to a similar single-byte "ROP" setting in all
+ * hardware. The planemask controls which bits of the destination
+ * should be affected, and will only represent the bits up to the
+ * depth of pPixmap.
+ *
+ * Note that many drivers will need to store some of the data in the
+ * driver private record, for sending to the hardware with each
+ * drawing command.
+ *
+ * The prepare_copy() call is required of all drivers, but it may fail
+ * for any reason. Failure results in a fallback to software rendering.
+ */
+ Bool(*prepare_copy) (PixmapPtr pSrcPixmap,
+ PixmapPtr pDstPixmap,
+ int dx, int dy, int alu, Pixel planemask);
+
+ /**
+ * copy() performs a copy set up in the last prepare_copy call.
+ *
+ * @param pDstPixmap destination pixmap
+ * @param srcX source X coordinate
+ * @param srcY source Y coordinate
+ * @param dstX destination X coordinate
+ * @param dstY destination Y coordinate
+ * @param width width of the rectangle to be copied
+ * @param height height of the rectangle to be copied.
+ *
+ * Performs the copy set up by the last prepare_copy() call, copying the
+ * rectangle from (srcX, srcY) to (srcX + width, srcY + width) in the
+ * source pixmap to the same-sized rectangle at (dstX, dstY) in the
+ * destination pixmap. Those rectangles may overlap in memory, if
+ * pSrcPixmap == pDstPixmap. Note that this call does not receive the
+ * pSrcPixmap as an argument -- if it's needed in this function, it
+ * should be stored in the driver private during prepare_copy(). As
+ * with solid(), the coordinates are in the coordinate space of each
+ * pixmap, so the driver will need to set up source and destination
+ * pitches and offsets from those pixmaps, probably using
+ * uxaGetPixmapOffset() and uxa_get_pixmap_pitch().
+ *
+ * This call is required if prepare_copy ever succeeds.
+ */
+ void (*copy) (PixmapPtr pDstPixmap,
+ int srcX,
+ int srcY, int dstX, int dstY, int width, int height);
+
+ /**
+ * done_copy() finishes a set of copies.
+ *
+ * @param pPixmap destination pixmap.
+ *
+ * The done_copy() call is called at the end of a series of consecutive
+ * copy() calls following a successful prepare_copy(). This allows
+ * drivers to finish up emitting drawing commands that were buffered,
+ * or clean up state from prepare_copy().
+ *
+ * This call is required if prepare_copy() ever succeeds.
+ */
+ void (*done_copy) (PixmapPtr pDstPixmap);
+ /** @} */
+
+ /** @name composite
+ * @{
+ */
+ /**
+ * check_composite() checks to see if a composite operation could be
+ * accelerated.
+ *
+ * @param op Render operation
+ * @param pSrcPicture source Picture
+ * @param pMaskPicture mask picture
+ * @param pDstPicture destination Picture
+ * @param width The width of the composite operation
+ * @param height The height of the composite operation
+ *
+ * The check_composite() call checks if the driver could handle
+ * acceleration of op with the given source, mask, and destination
+ * pictures. This allows drivers to check source and destination
+ * formats, supported operations, transformations, and component
+ * alpha state, and send operations it can't support to software
+ * rendering early on.
+ *
+ * See prepare_composite() for more details on likely issues that
+ * drivers will have in accelerating composite operations.
+ *
+ * The check_composite() call is recommended if prepare_composite() is
+ * implemented, but is not required.
+ */
+ Bool(*check_composite) (int op,
+ PicturePtr pSrcPicture,
+ PicturePtr pMaskPicture,
+ PicturePtr pDstPicture,
+ int width, int height);
+
+ /**
+ * check_composite_target() checks to see if the destination of the composite
+ * operation can be used without midification.
+ *
+ * @param pixmap Destination Pixmap
+ *
+ * The check_composite_target() call is recommended if prepare_composite() is
+ * implemented, but is not required.
+ */
+ Bool(*check_composite_target) (PixmapPtr pixmap);
+
+ /**
+ * check_composite_texture() checks to see if a source to the composite
+ * operation can be used without midification.
+ *
+ * @param pScreen Screen
+ * @param pPicture Picture
+ *
+ * The check_composite_texture() call is recommended if prepare_composite() is
+ * implemented, but is not required.
+ */
+ Bool(*check_composite_texture) (ScreenPtr pScreen,
+ PicturePtr pPicture);
+
+ /**
+ * prepare_composite() sets up the driver for doing a composite
+ * operation described in the Render extension protocol spec.
+ *
+ * @param op Render operation
+ * @param pSrcPicture source Picture
+ * @param pMaskPicture mask picture
+ * @param pDstPicture destination Picture
+ * @param pSrc source pixmap
+ * @param pMask mask pixmap
+ * @param pDst destination pixmap
+ *
+ * This call should set up the driver for doing a series of composite
+ * operations, as described in the Render protocol spec, with the given
+ * pSrcPicture, pMaskPicture, and pDstPicture. The pSrc, pMask, and
+ * pDst are the pixmaps containing the pixel data, and should be used
+ * for setting the offset and pitch used for the coordinate spaces for
+ * each of the Pictures.
+ *
+ * Notes on interpreting Picture structures:
+ * - The Picture structures will always have a valid pDrawable.
+ * - The Picture structures will never have alphaMap set.
+ * - The mask Picture (and therefore pMask) may be NULL, in which case
+ * the operation is simply src OP dst instead of src IN mask OP dst,
+ * and mask coordinates should be ignored.
+ * - pMarkPicture may have componentAlpha set, which greatly changes
+ * the behavior of the composite operation. componentAlpha has no
+ * effect when set on pSrcPicture or pDstPicture.
+ * - The source and mask Pictures may have a transformation set
+ * (Picture->transform != NULL), which means that the source
+ * coordinates should be transformed by that transformation,
+ * resulting in scaling, rotation, etc. The PictureTransformPoint()
+ * call can transform coordinates for you. Transforms have no
+ * effect on Pictures when used as a destination.
+ * - The source and mask pictures may have a filter set.
+ * PictFilterNearest and PictFilterBilinear are defined in the
+ * Render protocol, but others may be encountered, and must be
+ * handled correctly (usually by prepare_composite failing, and
+ * falling back to software). Filters have
+ * no effect on Pictures when used as a destination.
+ * - The source and mask Pictures may have repeating set, which must be
+ * respected. Many chipsets will be unable to support repeating on
+ * pixmaps that have a width or height that is not a power of two.
+ *
+ * If your hardware can't support source pictures (textures) with
+ * non-power-of-two pitches, you should set #UXA_OFFSCREEN_ALIGN_POT.
+ *
+ * Note that many drivers will need to store some of the data in the
+ * driver private record, for sending to the hardware with each
+ * drawing command.
+ *
+ * The prepare_composite() call is not required. However, it is highly
+ * recommended for performance of antialiased font rendering and
+ * performance of cairo applications. Failure results in a fallback
+ * to software rendering.
+ */
+ Bool(*prepare_composite) (int op,
+ PicturePtr pSrcPicture,
+ PicturePtr pMaskPicture,
+ PicturePtr pDstPicture,
+ PixmapPtr pSrc,
+ PixmapPtr pMask, PixmapPtr pDst);
+
+ /**
+ * composite() performs a composite operation set up in the last
+ * prepare_composite() call.
+ *
+ * @param pDstPixmap destination pixmap
+ * @param srcX source X coordinate
+ * @param srcY source Y coordinate
+ * @param maskX source X coordinate
+ * @param maskY source Y coordinate
+ * @param dstX destination X coordinate
+ * @param dstY destination Y coordinate
+ * @param width destination rectangle width
+ * @param height destination rectangle height
+ *
+ * Performs the composite operation set up by the last
+ * prepare_composite() call, to the rectangle from (dstX, dstY) to
+ * (dstX + width, dstY + height) in the destination Pixmap. Note that
+ * if a transformation was set on the source or mask Pictures, the
+ * source rectangles may not be the same size as the destination
+ * rectangles and filtering. Getting the coordinate transformation
+ * right at the subpixel level can be tricky, and rendercheck
+ * can test this for you.
+ *
+ * This call is required if prepare_composite() ever succeeds.
+ */
+ void (*composite) (PixmapPtr pDst,
+ int srcX,
+ int srcY,
+ int maskX,
+ int maskY,
+ int dstX, int dstY, int width, int height);
+
+ /**
+ * done_composite() finishes a set of composite operations.
+ *
+ * @param pPixmap destination pixmap.
+ *
+ * The done_composite() call is called at the end of a series of
+ * consecutive composite() calls following a successful
+ * prepare_composite(). This allows drivers to finish up emitting
+ * drawing commands that were buffered, or clean up state from
+ * prepare_composite().
+ *
+ * This call is required if prepare_composite() ever succeeds.
+ */
+ void (*done_composite) (PixmapPtr pDst);
+ /** @} */
+
+ /**
+ * put_image() loads a rectangle of data from src into pDst.
+ *
+ * @param pDst destination pixmap
+ * @param x destination X coordinate.
+ * @param y destination Y coordinate
+ * @param width width of the rectangle to be copied
+ * @param height height of the rectangle to be copied
+ * @param src pointer to the beginning of the source data
+ * @param src_pitch pitch (in bytes) of the lines of source data.
+ *
+ * put_image() copies data in system memory beginning at src (with
+ * pitch src_pitch) into the destination pixmap from (x, y) to
+ * (x + width, y + height). This is typically done with hostdata
+ * uploads, where the CPU sets up a blit command on the hardware with
+ * instructions that the blit data will be fed through some sort of
+ * aperture on the card.
+ *
+ * put_image() is most important for the performance of uxa_glyphs()
+ * (antialiased font drawing) by allowing pipelining of data uploads,
+ * avoiding a sync of the card after each glyph.
+ *
+ * @return TRUE if the driver successfully uploaded the data. FALSE
+ * indicates that UXA should fall back to doing the upload in software.
+ *
+ * put_image() is not required, but is recommended if composite
+ * acceleration is supported.
+ */
+ Bool(*put_image) (PixmapPtr pDst,
+ int x,
+ int y, int w, int h, char *src, int src_pitch);
+
+ /**
+ * get_image() loads a rectangle of data from pSrc into dst
+ *
+ * @param pSrc source pixmap
+ * @param x source X coordinate.
+ * @param y source Y coordinate
+ * @param width width of the rectangle to be copied
+ * @param height height of the rectangle to be copied
+ * @param dst pointer to the beginning of the destination data
+ * @param dst_pitch pitch (in bytes) of the lines of destination data.
+ *
+ * get_image() copies data from offscreen memory in pSrc from
+ * (x, y) to (x + width, y + height), to system memory starting at
+ * dst (with pitch dst_pitch). This would usually be done
+ * using scatter-gather DMA, supported by a DRM call, or by blitting
+ * to AGP and then synchronously reading from AGP.
+ *
+ * @return TRUE if the driver successfully downloaded the data. FALSE
+ * indicates that UXA should fall back to doing the download in
+ * software.
+ *
+ * get_image() is not required, but is highly recommended.
+ */
+ Bool(*get_image) (PixmapPtr pSrc,
+ int x, int y,
+ int w, int h, char *dst, int dst_pitch);
+
+ /** @{ */
+ /**
+ * prepare_access() is called before CPU access to an offscreen pixmap.
+ *
+ * @param pPix the pixmap being accessed
+ * @param index the index of the pixmap being accessed.
+ *
+ * prepare_access() will be called before CPU access to an offscreen
+ * pixmap.
+ *
+ * This can be used to set up hardware surfaces for byteswapping or
+ * untiling, or to adjust the pixmap's devPrivate.ptr for the purpose of
+ * making CPU access use a different aperture.
+ *
+ * The index is one of #UXA_PREPARE_DEST, #UXA_PREPARE_SRC, or
+ * #UXA_PREPARE_MASK, indicating which pixmap is in question. Since
+ * only up to three pixmaps will have prepare_access() called on them
+ * per operation, drivers can have a small, statically-allocated space
+ * to maintain state for prepare_access() and finish_access() in.
+ * Note that the same pixmap may have prepare_access() called on it
+ * more than once, for uxample when doing a copy within the same
+ * pixmap (so it gets prepare_access as
+ * #UXA_PREPARE_DEST and then as #UXA_PREPARE_SRC).
+ *
+ * prepare_access() may fail. An example might be the case of
+ * hardware that can set up 1 or 2 surfaces for CPU access, but not
+ * 3. If prepare_access()
+ * fails, UXA will migrate the pixmap to system memory.
+ * get_image() must be implemented and must not fail if a driver
+ * wishes to fail in prepare_access(). prepare_access() must not
+ * fail when pPix is the visible screen, because the visible screen
+ * can not be migrated.
+ *
+ * @return TRUE if prepare_access() successfully prepared the pixmap
+ * for CPU drawing.
+ * @return FALSE if prepare_access() is unsuccessful and UXA should use
+ * get_image() to migate the pixmap out.
+ */
+ Bool(*prepare_access) (PixmapPtr pPix, uxa_access_t access);
+
+ /**
+ * finish_access() is called after CPU access to an offscreen pixmap.
+ *
+ * @param pPix the pixmap being accessed
+ * @param index the index of the pixmap being accessed.
+ *
+ * finish_access() will be called after finishing CPU access of an
+ * offscreen pixmap set up by prepare_access(). Note that the
+ * finish_access() will not be called if prepare_access() failed.
+ */
+ void (*finish_access) (PixmapPtr pPix);
+
+ /**
+ * PixmapIsOffscreen() is an optional driver replacement to
+ * uxa_pixmap_is_offscreen(). Set to NULL if you want the standard
+ * behaviour of uxa_pixmap_is_offscreen().
+ *
+ * @param pPix the pixmap
+ * @return TRUE if the given drawable is in framebuffer memory.
+ *
+ * uxa_pixmap_is_offscreen() is used to determine if a pixmap is in
+ * offscreen memory, meaning that acceleration could probably be done
+ * to it, and that it will need to be wrapped by
+ * prepare_access()/finish_access() when accessing it with the CPU.
+ */
+ Bool(*pixmap_is_offscreen) (PixmapPtr pPix);
+
+ /** @} */
+} uxa_driver_t;
+
+/** @name UXA driver flags
+ * @{
+ */
+/**
+ * UXA_TWO_BITBLT_DIRECTIONS indicates to UXA that the driver can only
+ * support copies that are (left-to-right, top-to-bottom) or
+ * (right-to-left, bottom-to-top).
+ */
+#define UXA_TWO_BITBLT_DIRECTIONS (1 << 2)
+
+/** @} */
+
+/** @name UXA CreatePixmap hint flags
+ * @{
+ */
+/**
+ * Flag to hint that the first operation on the pixmap will be a
+ * prepare_access.
+ */
+#define UXA_CREATE_PIXMAP_FOR_MAP 0x20000000
+/** @} */
+
+uxa_driver_t *uxa_driver_alloc(void);
+
+Bool uxa_driver_init(ScreenPtr screen, uxa_driver_t * uxa_driver);
+Bool uxa_resources_init(ScreenPtr screen);
+
+void uxa_driver_fini(ScreenPtr pScreen);
+
+CARD32 uxa_get_pixmap_first_pixel(PixmapPtr pPixmap);
+
+Bool
+uxa_get_color_for_pixmap (PixmapPtr pixmap,
+ CARD32 src_format,
+ CARD32 dst_format,
+ CARD32 *pixel);
+
+void uxa_set_fallback_debug(ScreenPtr screen, Bool enable);
+void uxa_set_force_fallback(ScreenPtr screen, Bool enable);
+
+/**
+ * Returns TRUE if the given planemask covers all the significant bits in the
+ * pixel values for pDrawable.
+ */
+#define UXA_PM_IS_SOLID(_pDrawable, _pm) \
+ (((_pm) & FbFullMask((_pDrawable)->depth)) == \
+ FbFullMask((_pDrawable)->depth))
+
+#endif /* UXA_H */