ILK]: Driver Should Make Sure the First 3D Command After the Engine Switch from BLT Not to Be 1
Total Page:16
File Type:pdf, Size:1020Kb
Intel® OpenSource HD Graphics PRM Volume 1 Part 5: Graphics Core - Blitter Engine For the all new 2010 Intel Core Processor Family Programmer’s Reference Manual (PRM) March 2010 Revision 1.0 Doc Ref #: IHD_OS_V1Pt5_3_10 Creative Commons License You are free: to Share — to copy, distribute, display, and perform the work Under the following conditions: Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work). No Derivative Works. You may not alter, transform, or build upon this work. INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL’S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, or life sustaining applications. Intel may make changes to specifications and product descriptions at any time, without notice. Designers must not rely on the absence or characteristics of any features or instructions marked "reserved" or "undefined." Intel reserves these for future definition and shall have no responsibility whatsoever for conflicts or incompatibilities arising from future changes to them. The Sandy Bridge chipset family, Havendale/Auburndale chipset family, Intel® 965 Express Chipset Family, Intel® G35 Express Chipset, and Intel® 965GMx Chipset Mobile Family Graphics Controller may contain design defects or errors known as errata which may cause the product to deviate from published specifications. Current characterized errata are available on request. Contact your local Intel sales office or your distributor to obtain the latest specifications and before placing your product order. I2C is a two-wire communications bus/protocol developed by Philips. SMBus is a subset of the I2C bus/protocol and was developed by Intel. Implementations of the I2C bus/protocol may require licenses from various entities, including Philips Electronics N.V. and North American Philips Corporation. Intel and the Intel are trademarks of Intel Corporation in the U.S. and other countries. *Other names and brands may be claimed as the property of others. Copyright © 2010, Intel Corporation. All rights reserved. 2 Doc Ref #: IHD_OS_V1Pt5_3_10 Revision History Document Number Revision Description Re vision Date Number IHD_OS_V1Pt5_3_10 1.0 First Release. March 2010 §§ Doc Ref #: IHD_OS_V1Pt5_3_10 3 Contents 1. BLT Engine.............................................................................................................................................6 1.1 Introduction...........................................................................................................................................6 1.2 Classical BLT Engine Functional Description ......................................................................................6 1.2.1 Basic BLT Functional Considerations ............................................................................................8 1.2.2 Basic Graphics Data Considerations............................................................................................18 1.2.3 BLT Programming Examples........................................................................................................23 1.3 BLT Instruction Overview ...................................................................................................................29 1.4 BLT Engine State ...............................................................................................................................30 1.5 Cacheable Memory Support...............................................................................................................30 1.6 Device Cache Coherency: Render & Texture Caches.......................................................................30 1.7 BLT Engine Instructions .....................................................................................................................31 1.7.1 Blt Programming Restrictions.......................................................................................................31 1.8 Fill/Move Instructions..........................................................................................................................32 1.8.1 COLOR_BLT (Fill) ........................................................................................................................32 1.8.2 SRC_COPY_BLT (Move) .............................................................................................................33 1.9 2D (X,Y) BLT Instructions...................................................................................................................34 1.9.1 XY_SETUP_BLT ..........................................................................................................................36 1.9.2 XY_SETUP_MONO_PATTERN_SL_BLT....................................................................................37 1.9.3 XY_SETUP_CLIP_ BLT ...............................................................................................................38 1.9.4 XY_PIXEL_BLT ............................................................................................................................38 1.9.5 XY_SCANLINES_BLT..................................................................................................................39 1.9.6 XY_TEXT_BLT .............................................................................................................................40 1.9.7 XY_TEXT_IMMEDIATE_BLT.......................................................................................................41 1.9.8 XY_COLOR_BLT .........................................................................................................................42 1.9.9 XY_PAT_BLT ...............................................................................................................................43 1.9.10 XY_PAT_CHROMA_BLT ...........................................................................................................44 1.9.11 XY_PAT_BLT_IMMEDIATE .......................................................................................................45 1.9.12 XY_PAT_CHROMA_BLT_IMMEDIATE .....................................................................................46 1.9.13 XY_MONO_PAT_BLT ................................................................................................................47 1.9.14 XY_MONO_PAT_FIXED_BLT ...................................................................................................48 1.9.15 XY_SRC_COPY_BLT ................................................................................................................54 1.9.16 XY_SRC_COPY_CHROMA_BLT ..............................................................................................55 1.9.17 XY_MONO_SRC_COPY_BLT ...................................................................................................57 1.9.18 XY_MONO_SRC_COPY_ IMMEDIATE_BLT ............................................................................58 1.9.19 XY_FULL_BLT............................................................................................................................60 1.9.20 XY_FULL_IMMEDIATE_PATTERN_BLT ..................................................................................61 1.9.21 XY_FULL_MONO_SRC_BLT.....................................................................................................64 1.9.22 XY_FULL_MONO_SRC_IMMEDIATE_PATTERN_BLT............................................................66 1.9.23 XY_FULL_MONO_PATTERN_BLT ...........................................................................................68 1.9.24 XY_FULL_MONO_PATTERN_MONO_SRC_BLT ....................................................................70 1.10 BLT Engine Instruction Field Definitions...........................................................................................72 1.10.1 BR00—BLT Opcode & Control...................................................................................................72 1.10.2 BR01—Setup BLT Raster OP, Control, and Destination Offset.................................................75 1.10.3 BR05—Setup Expansion Background Color..............................................................................77 1.10.4 BR06—Setup Expansion Foreground Color ..............................................................................78 1.10.5 BR07—Setup Color Pattern Address .........................................................................................79 1.10.6 BR09—Destination Address.......................................................................................................80 1.10.7 BR11—BLT Source Pitch (Offset)..............................................................................................81 1.10.8 BR12—Source Address .............................................................................................................82 4 Doc Ref #: IHD_OS_V1Pt5_3_10 1.10.9 BR13—BLT Raster OP, Control, and