CN108986014A - It is applicable in the pel assembly unit of out-of-order vertex coloring - Google Patents

It is applicable in the pel assembly unit of out-of-order vertex coloring Download PDF

Info

Publication number
CN108986014A
CN108986014A CN201810798858.5A CN201810798858A CN108986014A CN 108986014 A CN108986014 A CN 108986014A CN 201810798858 A CN201810798858 A CN 201810798858A CN 108986014 A CN108986014 A CN 108986014A
Authority
CN
China
Prior art keywords
vertex
pel
assembly unit
pel assembly
coloring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810798858.5A
Other languages
Chinese (zh)
Inventor
刘宏敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Junwei Semiconductor Technology Co.,Ltd.
Original Assignee
Core View (changzhou) Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Core View (changzhou) Microelectronics Co Ltd filed Critical Core View (changzhou) Microelectronics Co Ltd
Priority to CN201810798858.5A priority Critical patent/CN108986014A/en
Publication of CN108986014A publication Critical patent/CN108986014A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/28Indexing scheme for image data processing or generation, in general involving image processing hardware

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a kind of pel assembly units for being applicable in out-of-order vertex coloring, it is related to graphic chips technical field.The pel assembly unit carries out parallel with vertex coloring, and it vertex random ordering can work in the case where inputting after dyeing, it is specific as follows: first, a call number is added to each vertex, a new attribute as vertex, it is bound together with other attributes, call number is incremented by successively since 0;At the same time, which is passed into pel assembly unit and carries out pel pre-assembled.The rate of vertex coloring can be greatly improved in the present invention, save pel assembly time, improve the efficiency of graphics rendering pipeline, guarantee the orderly integrality of pel assembly result.

Description

It is applicable in the pel assembly unit of out-of-order vertex coloring
Technical field
The present invention relates to graphic chips technical fields, and in particular to a kind of pel assembly for being applicable in out-of-order vertex coloring Unit.
Background technique
In graphics rendering pipeline, pel assembly is that the sequence and connection relationship for specifying on vertex according to user restore networking Lattice structure.Vertex is needed first to be dyed before pel assembly, there are two types of modes for vertex coloring: serially and parallel.
Serial vertex coloring may insure that vertex is issued to pel assembly unit by original order, but due to vertex coloring It is one computationally intensive, then time-consuming more work carries out figure if carrying out vertex coloring according to original vertices sequence one by one Member assembly, will lead to whole figure rendering pipeline inefficiency.
Parallel vertex coloring runs to complete vertex coloring task using multiple calculating cores parallel, can greatly add in this way Fast figure rendering speed.But the problem of vertex order not can guarantee is brought, although multiple calculating core operations is same Vertex coloring program, but be different vertex data and will lead to the different branched program of operation, along with the memory access time can not yet Together, so vertex output not can guarantee first in first out.Traditional pel assembly unit just not can guarantee opposite vertexes yet and carry out orderly Complete assembly.
In conclusion the present invention devises a kind of pel assembly unit for being applicable in out-of-order vertex coloring.
Summary of the invention
In view of the shortcomings of the prior art, object of the present invention is to be to provide a kind of figure for being applicable in out-of-order vertex coloring The rate of vertex coloring can be greatly improved in first assembly unit, save pel assembly time, improve the effect of graphics rendering pipeline Rate guarantees the orderly integrality of pel assembly result.
To achieve the goals above, the present invention is to realize by the following technical solutions: being applicable in random ordering vertex coloring Pel assembly unit, the pel assembly unit carries out parallel with vertex coloring, specific as follows: firstly, adding to each vertex Add a call number, is bound together as a new attribute on vertex and other attributes, call number is successively passed since 0 Increase;At the same time, which is passed into pel assembly unit and carries out pel pre-assembled.
The pel assembly unit is that opposite vertexes call number carries out, and can still complete to be equipped with when the input of vertex random ordering Sequence output.
The pel pre-assembled carries out pel assembly according to vertex index number, and the vertex index assembled is saved In index storage.In this way, vertex coloring process and pel assembling process are parallel.
The data stored in the index storage are all vertex index;When vertex coloring process starts output vertex to figure The on piece that vertex data is stored in pel assembly unit is first stored, and safeguards a record current vertex number by first assembly unit According to the table of state.The n-th position of table records the storage state for the vertex data that vertex index is N, the storage state Include two aspects: whether data are stored on the on piece storage of pel assembly, and there are the initial addresses of on piece storage.
The invention has the following advantages:
1, the present invention supports the pel assembly under the output of vertex coloring random ordering, and the rate of vertex coloring can be greatly improved.
2, pel assembly carries out parallel with vertex coloring, saves pel assembly time, improves the effect of graphics rendering pipeline Rate.
3, this invention ensures that the orderly integrality of pel assembly result.
Detailed description of the invention
The following describes the present invention in detail with reference to the accompanying drawings and specific embodiments;
Fig. 1 is the improved graphics rendering pipeline figure of the present invention;
Fig. 2 is that index of the invention stores schematic diagram;
Fig. 3 is vertex data state table schematic diagram of the invention.
Specific embodiment
To be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, below with reference to Specific embodiment, the present invention is further explained.
Referring to Fig.1-3, present embodiment uses following technical scheme: the pel assembly for being applicable in out-of-order vertex coloring is single Member, the pel assembly unit carries out parallel with vertex coloring, specific as follows: firstly, adding an index to each vertex Number, it is bound together as a new attribute on vertex and other attributes, call number is incremented by successively since 0;It is same with this When, which is passed into pel assembly unit and carries out pel pre-assembled.
So-called pel pre-assembled carries out pel assembly according to vertex index number, and the vertex index assembled is saved In index storage.In this way, vertex coloring process and pel assembling process are parallel.
Fig. 2 is the schematic diagram of index storage, and the data of storage are all vertex index, and the primitive types of storage are GL_ TRIANGLE_STRIP。
When vertex coloring process starts output vertex to pel assembly unit, it is single that vertex data is first stored in pel assembly The on piece storage of member, and safeguard the table of a record current vertex data mode.The n-th position of table records vertex rope It is cited as the storage state of the vertex data of N, which includes two aspects: whether data are stored on pel assembly On piece storage, there are the initial addresses of on piece storage.
Fig. 3 is the schematic diagram of vertex data state table, and what the position N stored is the data mode on the vertex N.Highest order The vertex data is represented for 1 to have deposited, and is otherwise represented and is not deposited.Other represent the initial address that the vertex data is stored on piece. No. 0 vertex has been deposited in figure, and data are 0x0000_0000 in the initial address that on piece stores, and No. 1 vertex is not deposited, and No. 2 vertex are It deposits, data are 0X0000_0020 in the initial address that on piece stores.
Then pel assembly unit sequence reads vertex index from index storage, and searches vertex data according to the index State table, until the vertex data storage state of the index is that 1(has been deposited), then the vertex data is exported to assembly line next stage.
The call number of present embodiment is not necessarily since 0, and also not necessarily sequence adds 1.Any front stage agreement Good index mark is all feasible.
Present embodiment opposite vertexes addition index, the vertex data after vertex coloring is identified with the index, pel dress It goes to obtain vertex data by index with unit, it can dependence to avoid pel assembly unit to output sequence in vertex after dyeing. Pel assembly unit carries out pre-assembled to index while graphics pipeline vertex coloring, is equivalent to and has saved assembly time.
The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention.The technology of the industry Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this The principle of invention, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its Equivalent thereof.

Claims (4)

1. being applicable in the pel assembly unit of out-of-order vertex coloring, which is characterized in that the pel assembly unit and vertex coloring It is parallel to carry out, it is specific as follows: firstly, a call number is added to each vertex, as a new attribute on vertex and other Attribute is bound together;At the same time, which is passed into pel assembly unit and carries out pel pre-assembled.
2. the pel assembly unit according to claim 1 for being applicable in out-of-order vertex coloring, which is characterized in that the pel Assembly unit is that opposite vertexes call number carries out, and can still complete assembly order output when the input of vertex random ordering.
3. the pel assembly unit according to claim 1 for being applicable in out-of-order vertex coloring, which is characterized in that the pel Pre-assembled carries out pel assembly according to vertex index number, and the vertex index assembled is stored in index storage, vertex dye Color process and pel assembling process are parallel.
4. the pel assembly unit according to claim 2 for being applicable in out-of-order vertex coloring, which is characterized in that the index The data stored in storage are all vertex index;When vertex coloring process starts output vertex to pel assembly unit, first by top Point data is stored in the on piece storage of pel assembly unit, and safeguards the table of a record current vertex state data memory, The table includes three information: call number, and whether data are stored on the on piece storage of pel assembly, and there are on piece storages Initial address;Pel assembly unit is according to index storage and vertex data storage state Output of for ms vertex.
CN201810798858.5A 2018-07-19 2018-07-19 It is applicable in the pel assembly unit of out-of-order vertex coloring Pending CN108986014A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810798858.5A CN108986014A (en) 2018-07-19 2018-07-19 It is applicable in the pel assembly unit of out-of-order vertex coloring

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810798858.5A CN108986014A (en) 2018-07-19 2018-07-19 It is applicable in the pel assembly unit of out-of-order vertex coloring

Publications (1)

Publication Number Publication Date
CN108986014A true CN108986014A (en) 2018-12-11

Family

ID=64549858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810798858.5A Pending CN108986014A (en) 2018-07-19 2018-07-19 It is applicable in the pel assembly unit of out-of-order vertex coloring

Country Status (1)

Country Link
CN (1) CN108986014A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080505A (en) * 2019-12-27 2020-04-28 西安芯瞳半导体技术有限公司 Method and device for improving primitive assembly efficiency and computer storage medium
CN112991143A (en) * 2021-05-06 2021-06-18 南京芯瞳半导体技术有限公司 Method and device for assembling graphics primitives and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101779219A (en) * 2007-07-30 2010-07-14 高通股份有限公司 Scheme for varying packing and linking in graphics systems
CN102799431A (en) * 2012-07-02 2012-11-28 上海算芯微电子有限公司 Graphics primitive preprocessing method, graphics primitive processing method, graphic processing method, processor and device
CN106683162A (en) * 2017-01-18 2017-05-17 天津大学 Rear vertex Cache design method of multi-shader architecture for embedded GPU

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101779219A (en) * 2007-07-30 2010-07-14 高通股份有限公司 Scheme for varying packing and linking in graphics systems
CN102799431A (en) * 2012-07-02 2012-11-28 上海算芯微电子有限公司 Graphics primitive preprocessing method, graphics primitive processing method, graphic processing method, processor and device
CN106683162A (en) * 2017-01-18 2017-05-17 天津大学 Rear vertex Cache design method of multi-shader architecture for embedded GPU

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周高财: "图元装配的硬件实现与验证", 《微电子学与计算机》 *
常轶松: "面积带宽优化的嵌入式GPU可编程着色器体系结构研究", 《中国优秀硕士学位论文全文数据库》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080505A (en) * 2019-12-27 2020-04-28 西安芯瞳半导体技术有限公司 Method and device for improving primitive assembly efficiency and computer storage medium
CN111080505B (en) * 2019-12-27 2024-04-12 芯瞳半导体技术(山东)有限公司 Method and device for improving graphic element assembly efficiency and computer storage medium
CN112991143A (en) * 2021-05-06 2021-06-18 南京芯瞳半导体技术有限公司 Method and device for assembling graphics primitives and computer storage medium

Similar Documents

Publication Publication Date Title
US8345059B2 (en) Methods, systems, and data structures for generating a rasterizer
US8593458B2 (en) Systems and methods of multidimensional query resolution and computation organization
US9241212B2 (en) Ray tracing apparatus and method
CN107729094A (en) The method and device that a kind of user interface renders
CN107704576A (en) data display optimization method, device, terminal device and storage medium
CN105233498A (en) Game character staining method and device, user terminal and game system
CN105321199A (en) Graphics processing
CN103324763B (en) Presenting method for tree-form data structure of mobile phone terminal
CN108986014A (en) It is applicable in the pel assembly unit of out-of-order vertex coloring
Günther et al. Hierarchical opacity optimization for sets of 3D line fields
CN106991096A (en) Dynamic page rendering intent and device
CN105843591B (en) Multidimensional numerical slides the method, apparatus and processor of generation data
CN106484519B (en) Asynchronous thread recombination method and SIMT processor based on this method
CN108388509A (en) A kind of method for testing software, computer readable storage medium and terminal device
CN105574920A (en) Texture map generating method, texture map generating device, texture synthesizing method and texture synthesizing device
CN106651744A (en) Low power consumption GPU (Graphic Process Unit) staining task and uniform staining array task field mapping structure
Wolff OpenGL 4 Shading Language Cookbook: Build high-quality, real-time 3D graphics with OpenGL 4.6, GLSL 4.6 and C++ 17
CN103544729A (en) Animation data processing method and system
CN106296575A (en) Model based on BIM and picture merge and separation method and system
CN108958611A (en) A kind of information edit method and device
CN108280135A (en) Realize the method, apparatus and electronic equipment of data structure visualization
CN107230244A (en) The generation method and rendering system of a kind of animation file
CN109920044A (en) A kind of three-dimensional scene construction method, device, equipment and medium
CN103942035A (en) Instruction processing method, compiler and instruction processor
CN110309369A (en) A kind of implementation method and terminal of tree structure data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200608

Address after: 2515, runheng building, CaiTian Road, Fushan community, Futian street, Futian District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Investment rongmai Network Technology Co.,Ltd.

Address before: 213000 No. 181 Yulong South Road, Zhonglou District, Changzhou City, Jiangsu Province, Science Fusion Development Co., Ltd. 9391

Applicant before: XINSHITU (CHANGZHOU) MICROELECTRONIC Co.,Ltd.

TA01 Transfer of patent application right

Effective date of registration: 20200709

Address after: 21300 no.g008, 21300 Yulong South Road, Zhonglou District, Changzhou City, Jiangsu Province

Applicant after: Zhihui microelectronics technology (Changzhou) Co.,Ltd.

Address before: 2515, runheng building, CaiTian Road, Fushan community, Futian street, Futian District, Shenzhen City, Guangdong Province

Applicant before: Shenzhen Investment rongmai Network Technology Co.,Ltd.

TA01 Transfer of patent application right
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 114, Floor 1, Innovation Center, No. 2, Qiande Road, Jiangning District, Nanjing, Jiangsu, 210000

Applicant after: Zhihua microelectronics technology (Nanjing) Co.,Ltd.

Address before: 213 Yulong South Road, Zhonglou District, Changzhou City, Jiangsu Province

Applicant before: Zhihui microelectronics technology (Changzhou) Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230301

Address after: Room 502, Building 1, No. 3, Lianyu Road, Jiangning District, Nanjing, Jiangsu Province, 210000

Applicant after: Nanjing Junwei Semiconductor Technology Co.,Ltd.

Address before: 114, Floor 1, Innovation Center, No. 2, Qiande Road, Jiangning District, Nanjing, Jiangsu, 210000

Applicant before: Zhihua microelectronics technology (Nanjing) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181211