[go: up one dir, main page]

CN108121566A - A kind of graphics command resolution design method - Google Patents

A kind of graphics command resolution design method Download PDF

Info

Publication number
CN108121566A
CN108121566A CN201711280932.6A CN201711280932A CN108121566A CN 108121566 A CN108121566 A CN 108121566A CN 201711280932 A CN201711280932 A CN 201711280932A CN 108121566 A CN108121566 A CN 108121566A
Authority
CN
China
Prior art keywords
graphics command
graphics
command
design method
processing
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
CN201711280932.6A
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.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
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 Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN201711280932.6A priority Critical patent/CN108121566A/en
Publication of CN108121566A publication Critical patent/CN108121566A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention belongs to field of Computer Graphics, provide a kind of graphics command resolution design method, include the acquisition of (1) graphics command;(2) graphics command identifies;(3) graphic attribute storage and pretreatment;(4) judgement of graphics command service condition is met;Graphics command processing includes the processing of (5) graphics command;The common interface stage includes the processing of (6) common interface;(7) time-out judges.The present invention reduces the dependences of processing procedure, avoid overhead caused by unnecessary redirect, and effective support is provided for the analytical design method of graphics command.

Description

A kind of graphics command resolution design method
Technical field
The invention belongs to field of Computer Graphics more particularly to a kind of graphics command resolution design methods.
Background technology
Core of the graphics command parsing as graphics processor design, the performance of instruction parsing directly affect graphic interface Treatment effeciency.Though the graphics process interface using OpenGL, DirectX as representative has explicitly defined, non-concrete regulation is realized Mode.The related content on graphics command parsing is not found in open source information or patent at present.
The content of the invention
The purpose of the present invention is:
A kind of graphics command resolution design method is provided, reduces the dependence of processing procedure, avoids unnecessary Overhead caused by redirecting provides effective support for the analytical design method of graphics command
The present invention solution be:
A kind of graphics command resolution design method, including:
Step 1, the graphics command coding of receiving host transmission;
Step 2 instructs generation graphics command service condition coding according to current Graphics, judges that current graphics command is taken Whether the attribute information of band, which needs, pre-processes, and step 3 is performed for the order that needs pre-process, for the life that need not be pre-processed Order performs step 4;
Step 3, for the graphics command that pre-processes of needs, order entrained attribute information handle after and update, Perform step 4;
Step 4, the graphics command for receiving are to judge current Graphics instruction according to graphics command service condition code It is no to be immediately performed, if can be immediately performed, step 5 is performed, otherwise, performs step 7.
Step 5, the difference according to graphics command, selection, which performs, sends command code, configuration attribute register and initiation data At least one of transmission operation in the process of implementation, according to graphics command function, if desired calls common process interface, then It performs step 6 and returns, step 2 is performed after a graphics command has been handled;If need not if, refer to having handled a figure Step 2 is performed after order;
Step 6 can selectively call running state monitoring, error handle, data format to turn according to the different of graphics command It changes, matrix management common process interface;
When step 7, current Graphics instruction cannot be immediately performed, judge whether the processing procedure is overtime, if overtime, perform step Error handle in rapid 6 if having not timed out, performs step 4, judges whether that the instruction can be performed again.
It is an advantage of the invention that:
The present invention provides a kind of efficient graphics command resolution design method, reduces the dependence of processing procedure, avoids It is unnecessary redirect caused by overhead, for the analytical design method of graphics command provide effective support.
Description of the drawings
Fig. 1 is the functional block diagram of the present invention.
Specific embodiment
In the following with reference to the drawings and specific embodiments, technical scheme is clearly and completely stated.Obviously, The embodiment stated only is part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, Those skilled in the art are not making creative work premise all other embodiments obtained, belong to the guarantor of the present invention Protect scope.
A kind of graphics command resolution design method, including:
Step 1, the graphics command coding of receiving host transmission;
Step 2 instructs generation graphics command service condition coding according to current Graphics, judges that current graphics command is taken Whether the attribute information of band, which needs, pre-processes, and step 3 is performed for the order that needs pre-process, for the life that need not be pre-processed Order performs step 4;
Step 3, for the graphics command that pre-processes of needs, order entrained attribute information handle after and update, Perform step 4;
Step 4, the graphics command for receiving are to judge current Graphics instruction according to graphics command service condition code It is no to be immediately performed, if can be immediately performed, step 5 is performed, otherwise, performs step 7.
Step 5, the difference according to graphics command, selection, which performs, sends command code, configuration attribute register and initiation data At least one of transmission operation in the process of implementation, according to graphics command function, if desired calls common process interface, then It performs step 6 and returns, step 2 is performed after a graphics command has been handled;If need not if, refer to having handled a figure Step 2 is performed after order;
Step 6 can selectively call running state monitoring, error handle, data format to turn according to the different of graphics command It changes, matrix management common process interface;
When step 7, current Graphics instruction cannot be immediately performed, judge whether the processing procedure is overtime, if overtime, perform step Error handle in rapid 6 if having not timed out, performs step 4, judges whether that the instruction can be performed again.
Embodiment
As shown in Figure 1, a kind of efficient graphics command resolution design method, this method is divided into graphics command preparation, figure refers to Processing, common interface is made to handle three levels.Graphics command preparation includes the acquisition of (1) graphics command;(2) graphics command is known Not;(3) graphic attribute storage and pretreatment;(4) judgement of graphics command service condition is met;Graphics command processing includes (5) Graphics command processing;The common interface stage includes the processing of (6) common interface;(7) time-out judges
(1) graphics command obtains, and realizes the graphics command coding of receiving host transmission, and it is known to (2) graphics command Not.
(2) graphics command identifies, according to the graphics command received, first determines whether the attribute information entrained by present instruction Whether need and handle, if desired, graphics command is then issued into the storage of (3) graphic attribute and pretreatment;Secondly generation figure refers to Service condition code is made, is stored for (3) graphic attribute and judges to use with pre-processing.
(3) graphic attribute storage and pretreatment, this step is not essential process flow, just for need attribute storage with The graphics command of pretreatment.It is sent to by the attribute information that attribute information new after pretreatment is instead preceding, and by graphics command (4) judgement of graphics command service condition is met.
(4) judgement of graphics command service condition is met, the graphics command generated in being identified according to step (2) graphics command is transported Whether row condition code can be immediately performed to judge that current Graphics instruct, if can be immediately performed, graphics command is sent to (5) figure Instruction is handled, and otherwise, graphics command is sent (7) time-out and is judged.
(5) graphics command is handled, and includes transmission command code, configuration attribute register and initiation data transmission three parts, According to the difference of graphics command, selection performs function above, can be called in graphics command process flow in the processing of (6) common interface Processing Interface after return, and next graphics command is identified after graphics command has been handled.
(6) common interface is handled, and is included running state monitoring, error handle, Data Format Transform, matrix management etc. and is connect Mouthful, the processing of common interface function in the processing of (5) graphics command is completed, returns to the processing of (5) graphics command after finishing.
(7) time-out judges, if realizing processing when current Graphics instruction cannot be immediately performed.If cannot be immediately performed and not Time-out then cycles wait;The error handling interface in the processing of (6) common interface is called if time-out.
Finally it should be noted that more than fact Example is merely illustrative of the technical solution of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that;It still may be used To modify to the technical solution that foregoing embodiments are recorded or carry out equivalent substitution to which part technical characteristic;And These modifications are replaced, and the essence of appropriate technical solution is not made to depart from the spirit and model of various embodiments of the present invention technical solution It encloses.

Claims (1)

1. a kind of graphics command resolution design method, which is characterized in that including:
Step 1, the graphics command coding of receiving host transmission;
Step 2 instructs generation graphics command service condition coding according to current Graphics, judges entrained by current graphics command Whether attribute information, which needs, pre-processes, and performs step 3 for the order that needs pre-process, is held for the order that need not be pre-processed Row step 4;
Step 3, for the graphics command that pre-processes of needs, order after entrained attribute information processing and is updated, execution Step 4;
Step 4, the graphics command for receiving judge that current Graphics instruction whether can according to graphics command service condition code It is immediately performed, if can be immediately performed, performs step 5, otherwise, perform step 7.
Step 5, the difference according to graphics command, selection, which performs, sends command code, configuration attribute register and initiation data transmission At least one of operation, in the process of implementation, according to graphics command function, if desired call common process interface, then perform Step 6 simultaneously returns, and step 2 is performed after a graphics command has been handled;If need not if, after a graphics command has been handled Perform step 2;
Step 6 can selectively call running state monitoring, error handle, Data Format Transform, square according to the different of graphics command Battle array management common process interface;
When step 7, current Graphics instruction cannot be immediately performed, judge whether the processing procedure is overtime, if overtime, perform step 6 In error handle, if having not timed out, perform step 4, judge whether that the instruction can be performed again.
CN201711280932.6A 2017-12-06 2017-12-06 A kind of graphics command resolution design method Pending CN108121566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711280932.6A CN108121566A (en) 2017-12-06 2017-12-06 A kind of graphics command resolution design method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711280932.6A CN108121566A (en) 2017-12-06 2017-12-06 A kind of graphics command resolution design method

Publications (1)

Publication Number Publication Date
CN108121566A true CN108121566A (en) 2018-06-05

Family

ID=62228856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711280932.6A Pending CN108121566A (en) 2017-12-06 2017-12-06 A kind of graphics command resolution design method

Country Status (1)

Country Link
CN (1) CN108121566A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109671013A (en) * 2018-12-12 2019-04-23 中国航空工业集团公司西安航空计算技术研究所 A kind of high performance graphics instruction storage distribution method for supporting more GPU
CN111008926A (en) * 2019-11-18 2020-04-14 中国航空工业集团公司西安航空计算技术研究所 GPU (graphics processing Unit) tuning structure for application

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090328039A1 (en) * 2008-06-26 2009-12-31 International Business Machines Corporation Deterministic Real Time Business Application Processing In A Service-Oriented Architecture
CN101751245A (en) * 2010-01-18 2010-06-23 北京龙芯中科技术服务中心有限公司 Processor Cache write-in invalidation processing method based on memory access history learning
CN103366338A (en) * 2012-03-30 2013-10-23 富士胶片株式会社 Image processing device and image processing method
CN103999036A (en) * 2011-12-16 2014-08-20 英特尔公司 Method and system using exceptions for code specialization in a computer architecture that supports transactions
CN104573110A (en) * 2015-02-02 2015-04-29 北京恒华伟业科技股份有限公司 Dynamic graph display method and dynamic graph display device in browser
CN104641396A (en) * 2012-07-20 2015-05-20 高通股份有限公司 Deferred preemption techniques for scheduling graphics processing unit command streams
CN105321142A (en) * 2014-06-27 2016-02-10 英特尔公司 Sampling, fault management, and/or context switching via a computer pipeline
CN106373083A (en) * 2015-07-20 2017-02-01 Arm有限公司 Graphics processing
CN106462393A (en) * 2014-05-30 2017-02-22 苹果公司 System and method for unified application programming interface and model
CN106504185A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 One kind renders optimization method and device
US20170091895A1 (en) * 2015-09-29 2017-03-30 Qualcomm Incorporated Graphics processing unit preemption with pixel tile level granularity
CN106683033A (en) * 2016-12-12 2017-05-17 中国航空工业集团公司西安航空计算技术研究所 Disorder OpenGL interface processing method
CN106708472A (en) * 2016-12-12 2017-05-24 中国航空工业集团公司西安航空计算技术研究所 Non-blocking graph command processing method
US20170323420A1 (en) * 2015-06-22 2017-11-09 Apple Inc. Instruction Storage

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090328039A1 (en) * 2008-06-26 2009-12-31 International Business Machines Corporation Deterministic Real Time Business Application Processing In A Service-Oriented Architecture
CN101751245A (en) * 2010-01-18 2010-06-23 北京龙芯中科技术服务中心有限公司 Processor Cache write-in invalidation processing method based on memory access history learning
CN103999036A (en) * 2011-12-16 2014-08-20 英特尔公司 Method and system using exceptions for code specialization in a computer architecture that supports transactions
CN103366338A (en) * 2012-03-30 2013-10-23 富士胶片株式会社 Image processing device and image processing method
CN104641396A (en) * 2012-07-20 2015-05-20 高通股份有限公司 Deferred preemption techniques for scheduling graphics processing unit command streams
CN106462393A (en) * 2014-05-30 2017-02-22 苹果公司 System and method for unified application programming interface and model
CN105321142A (en) * 2014-06-27 2016-02-10 英特尔公司 Sampling, fault management, and/or context switching via a computer pipeline
CN104573110A (en) * 2015-02-02 2015-04-29 北京恒华伟业科技股份有限公司 Dynamic graph display method and dynamic graph display device in browser
US20170323420A1 (en) * 2015-06-22 2017-11-09 Apple Inc. Instruction Storage
CN106373083A (en) * 2015-07-20 2017-02-01 Arm有限公司 Graphics processing
US20170091895A1 (en) * 2015-09-29 2017-03-30 Qualcomm Incorporated Graphics processing unit preemption with pixel tile level granularity
CN106504185A (en) * 2016-10-26 2017-03-15 腾讯科技(深圳)有限公司 One kind renders optimization method and device
CN106683033A (en) * 2016-12-12 2017-05-17 中国航空工业集团公司西安航空计算技术研究所 Disorder OpenGL interface processing method
CN106708472A (en) * 2016-12-12 2017-05-24 中国航空工业集团公司西安航空计算技术研究所 Non-blocking graph command processing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
郭云; 康涛: "基于嵌入式GPU虚拟仪表图形软件的实现", 《计算机系统应用》 *
陈和平等: "《可视化编程技术及应用》", 31 May 2005 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109671013A (en) * 2018-12-12 2019-04-23 中国航空工业集团公司西安航空计算技术研究所 A kind of high performance graphics instruction storage distribution method for supporting more GPU
CN109671013B (en) * 2018-12-12 2023-04-14 中国航空工业集团公司西安航空计算技术研究所 High-performance graphic instruction storage and distribution method supporting multiple GPUs
CN111008926A (en) * 2019-11-18 2020-04-14 中国航空工业集团公司西安航空计算技术研究所 GPU (graphics processing Unit) tuning structure for application
CN111008926B (en) * 2019-11-18 2023-06-09 中国航空工业集团公司西安航空计算技术研究所 GPU (graphics processing unit) tuning structure for application

Similar Documents

Publication Publication Date Title
CN111831287B (en) Method, apparatus and program product for determining resources required to execute a code segment
US10764202B2 (en) Container-based mobile code offloading support system in cloud environment and offloading method thereof
CN103677870B (en) Method for upgrading system and the system using this method upgrading
CN111400000A (en) Network request processing method, device, equipment and storage medium
CN108121566A (en) A kind of graphics command resolution design method
CN108804383A (en) Supporting point parallel enumerating method and device based on metric space
CN107945099B (en) OpenGL-oriented attribute configuration optimization method
CN108446300B (en) Data information scanning method and device
WO2021129489A1 (en) Application precompiling method and apparatus, electronic device, and storage medium
CN110401939B (en) Low-power consumption bluetooth controller link layer device
CN112132271A (en) Neural network accelerator operation method, architecture and related device
CN113452532B (en) Network communication method, computing device and readable storage medium
CN115018964A (en) Material effect rendering method and device
CN115658184B (en) Method and device for quickly starting cloud application, storage medium and electronic equipment
CN113852669B (en) Efficient container cluster deployment method suitable for various network environments
EP4468143A1 (en) Instruction parsing method and apparatus, and electronic device
CN110297859A (en) The method and apparatus for handling real time data
CN114327742B (en) Cloud platform and program code processing method based on cloud platform
CN100561431C (en) Device and method for decoupling business object memory representation and persistent representation
CN110519390A (en) A kind of low-power consumption bluetooth controller link layer implementation method
CN114237837B (en) Program calling method, program calling device, program calling equipment and computer readable storage medium
CN118627553B (en) Data processing method, system, computer device and computer readable storage medium
EP4495778A1 (en) Binary translation and task dispatching for asymmetric multicore processors
CN114356317B (en) Method, storage medium, device and system for obtaining general data types in virtual machines
CN111857816A (en) Register allocation method and device, electronic equipment and computer storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180605

RJ01 Rejection of invention patent application after publication