JP2000322555A - Texture data management system between graphic processing system and graphic accelerator (ga) - Google Patents

Texture data management system between graphic processing system and graphic accelerator (ga)

Info

Publication number
JP2000322555A
JP2000322555A JP11127771A JP12777199A JP2000322555A JP 2000322555 A JP2000322555 A JP 2000322555A JP 11127771 A JP11127771 A JP 11127771A JP 12777199 A JP12777199 A JP 12777199A JP 2000322555 A JP2000322555 A JP 2000322555A
Authority
JP
Japan
Prior art keywords
texture
texture data
command
data
memory
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.)
Granted
Application number
JP11127771A
Other languages
Japanese (ja)
Other versions
JP3319432B2 (en
Inventor
Akihiro Kotake
章博 小竹
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP12777199A priority Critical patent/JP3319432B2/en
Publication of JP2000322555A publication Critical patent/JP2000322555A/en
Application granted granted Critical
Publication of JP3319432B2 publication Critical patent/JP3319432B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve plotting performance by the reduction of replacing time of texture data even in large texture mapping plotting by reducing registration time of the texture data. SOLUTION: A graphic processing system 20 side is provided with a texture data compressing means 24 which (reversibly) compresses texture data transferred from a user program, and a graphic accelerator(GA) 40 side is provided with a texture expanding means 44 which expands the compressed texture data. The means 24 compresses data only when the size of texture data is larger than a prescribed constant B and transmits it to the means 44. Thus, texture data quantity is compressed and registered and registration performance to a memory is improved in the case of registering texture data with the memory between the system 20 and the accelerator (GA) 40 provided with the memory internally storing texture data for graphic display acceleration.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は図形処理システムに
関し、特に、中央処理装置(CPU)とは別に、図形描画
処理を高速に行なうために、プロセッサを一つ、あるい
は複数個とメモリと、テクスチャマッピングを高速に行
なうためにテクスチャデータをローカルに保持するテク
スチャメモリ等とを有するグラフィックアクセラレータ
(GA)をハードウェアとして実装する場合の、図形処理
システムとGAにおけるテクスチャデータの管理方式に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a graphic processing system, and more particularly, to one or more processors, a memory, and a texture for performing graphic drawing at high speed, separately from a central processing unit (CPU). A graphics accelerator having a texture memory or the like that stores texture data locally to perform high-speed mapping
The present invention relates to a graphic processing system and a method for managing texture data in a GA when (GA) is implemented as hardware.

【0002】[0002]

【従来の技術】テクスチャマッピングを扱う図形処理シ
ステムとグラフィックスアクセラレータ(GA)のデー
タ管理方式は、例えば、特開平08−329258号公
報などに開示されている。この公報も技術では、レンダ
リングするためのテクスチャデータがGAのローカルメ
モリ内に保存されていなければ、通常のプリミティブデ
ータ(図形処理システムとGA間)で使用するデータ経路
とは別のデータ経路を使用して、主メモリからGAのロ
ーカルメモリへテクスチャデータをダウンロード(デー
タ転送)する方法を採用している。つまり、図形処理シ
ステムからGAへのテクスチャデータのダウンロード
(データ転送)について、通常のプリミティブ用経路とは
別に専用の経路を設けることで、図形処理システムから
GAへのテクスチャデータのデータ転送性能の向上を図
っている。
2. Description of the Related Art A data processing system of a graphics processing system and a graphics accelerator (GA) for handling texture mapping is disclosed in, for example, Japanese Patent Application Laid-Open No. 08-329258. In this publication, the technology also uses a data path different from the data path used for normal primitive data (between the graphic processing system and GA) unless the texture data for rendering is stored in the local memory of the GA. Then, a method of downloading (data transfer) the texture data from the main memory to the local memory of the GA is adopted. In other words, downloading texture data from the graphics processing system to the GA
For (data transfer), a dedicated path is provided separately from the normal primitive path, thereby improving the data transfer performance of texture data from the graphic processing system to the GA.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述の
ような従来技術は、テクスチャメモリ内のテクスチャデ
ータの入れ換え(特に新規登録)など、登録に必要とな
る時間が大きくなっている。これは、大量のデータを図
形処理システムからGAへ転送する際に外部バスのデー
タ転送性能の遅さがボトルネックとなって、GAの高速
なテクスチャマッピング描画性能を生かしきれないため
である。特に、利用者プログラムが一つのシーンの描画
に対して、使用するテクスチャデータサイズの総和がG
Aのテクスチャメモリサイズより大きく、テクスチャデ
ータの入れ換えが多い場合には、一層、この傾向が顕著
になる。このため、グラフィックスアクセラレータ(G
A)のテクスチャメモリに未登録のテクスチャデータを
使用したとき、テクスチャマッピングの描画が遅くなる
という問題を生じる。
However, in the above-described prior art, the time required for registration, such as replacement of texture data in the texture memory (particularly, new registration), is increased. This is because, when a large amount of data is transferred from the graphic processing system to the GA, the slow data transfer performance of the external bus becomes a bottleneck, and the high-speed texture mapping rendering performance of the GA cannot be fully utilized. In particular, the total sum of the texture data sizes used by the user program for rendering one scene is G
This tendency becomes more remarkable when the texture memory size is larger than A and the replacement of the texture data is large. For this reason, the graphics accelerator (G
When texture data that has not been registered in the texture memory of A) is used, there arises a problem that drawing of texture mapping becomes slow.

【0004】本発明はこのような事情に鑑みてなされた
ものであり、その目的は、テクスチャデータの登録時間
の短縮することにある。これによって、未登録のテクス
チャデータを使用したテクスチャマッピングの描画性能
が向上するという効果が得られる。さらに、利用者プロ
グラムが一つのシーンの描画に対して複数のテクスチャ
データを使用し、テクスチャデータサイズの合計がGA
の持つテクスチャメモリサイズより大きい場合のテクス
チャマッピング描画でも、テクスチャデータの入れ換え
時間の短縮により、描画性能が向上する。
The present invention has been made in view of such circumstances, and an object of the present invention is to reduce the registration time of texture data. As a result, the effect of improving the drawing performance of texture mapping using unregistered texture data is obtained. Further, the user program uses a plurality of texture data for drawing one scene, and the total of the texture data size is GA.
Even in the case of texture mapping drawing in which the texture memory size is larger than that of, the performance of drawing is improved by shortening the replacement time of the texture data.

【0005】[0005]

【課題を解決するための手段】本発明のテクスチャマッ
ピングデータの転送方式を採用した図形処理システムと
グラフィックアクセラレータ(GA)間におけるテクスチ
ャデータ管理方式は、利用者プログラムからの指示に従
って、グラフィックスアクセラレータ(GA)に対する
GAコマンドを生成し、且つ該GAコマンドを送信する
図形処理システムと、該図形処理システムから受信した
GAコマンドに基づいて図形のレンダリングを行い、且
つ、テクスチャマッピングの高速化用にテクスチャデー
タを内部に保持するテクスチャメモリを備えたグラフィ
ックスアクセラレータ(GA)との間におけるテクスチャ
データ管理方式に関するものである。
According to the present invention, a texture data management method between a graphic processing system and a graphic accelerator (GA) employing a texture mapping data transfer method according to the present invention is based on a graphics accelerator (GA) according to an instruction from a user program. A graphics processing system for generating a GA command for the GA, and transmitting the GA command; rendering a graphic based on the GA command received from the graphic processing system; and texture data for speeding up texture mapping. The present invention relates to a texture data management method for a graphics accelerator (GA) provided with a texture memory in which the texture data is internally stored.

【0006】すなわち、上記の課題を解決するために、
請求項1に係る図形処理システムとグラフィックアクセ
ラレータ(GA)間におけるテクスチャデータ管理方式
は、図形処理システム側には、利用者プログラムから渡
されたテクスチャデータのサイズが、予め定められた定
数より大きいが否かを判定する手段と、このテクスチャ
データのサイズが前記定数より大きいときに、このテク
スチャデータを圧縮する手段とを備え、グラフィックア
クセラレータ(GA)側には、図形処理システムから圧
縮されたテクスチャデータを受信したとき、このテクス
チャデータを解凍する手段と、解凍されたテクスチャデ
ータをテクスチャメモリに保存する手段と、GAコマン
ドで指定された図形のレンダリングを行う手段とを備
え、グラフィックアクセラレータ(GA)が、利用者プ
ログラムから入力されたテクスチャデータに基づいて図
形のレンダリング処理を行うように構成されていること
を特徴とする。
That is, in order to solve the above problems,
The texture data management method between the graphic processing system and the graphic accelerator (GA) according to the first aspect is configured such that the size of the texture data passed from the user program to the graphic processing system is larger than a predetermined constant. And a means for compressing the texture data when the size of the texture data is larger than the constant. The graphic accelerator (GA) has a texture data compressed from the graphics processing system. When receiving the graphics accelerator, the graphic accelerator (GA) comprises means for decompressing the texture data, means for storing the decompressed texture data in the texture memory, and means for rendering the figure specified by the GA command. , Entered from the user program Characterized in that it is configured to perform a rendering process graphic based on the texture data.

【0007】請求項2に係る図形処理システムとグラフ
ィックアクセラレータ(GA)間におけるテクスチャデー
タ管理方式は、請求項1のものにおいて、図形処理シス
テムは、さらに、テクスチャメモリサイズから登録済み
テクスチャの全サイズを減算したテクスチャメモリ残サ
イズが、利用者プログラムから受信したテクスチャデー
タのサイズより大きいか否かを判定する手段と、テクス
チャメモリ残サイズが、利用者プログラムから受信した
テクスチャデータのサイズより大きいとき、グラフィッ
クアクセラレータ(GA)内のテクスチャメモリ残サイ
ズから、利用者プログラムから受信した登録すべきテク
スチャのサイズを減算して、テクスチャメモリ残サイズ
を更新する手段と、圧縮されたテクスチャデータからグ
ラフィックアクセラレータ(GA)のテクスチャメモリ
に登録するGAコマンドを生成して、このGAコマンド
をグラフィックアクセラレータ(GA)に転送する手段
とを備え、グラフィックアクセラレータ(GA)は、さ
らに、受信したGAコマンドがテクスチャデータ登録コ
マンドであるか否かを判定する手段と、受信したGAコ
マンドがテクスチャデータ登録コマンドである場合に、
受信したテクスチャデータが圧縮テクスチャデータであ
れば、このテクスチャデータを解凍する手段を呼び出す
ための手段とを備えたことを特徴とする。
According to a second aspect of the present invention, there is provided a texture data management system between a graphic processing system and a graphic accelerator (GA), wherein the graphic processing system further comprises: Means for determining whether the subtracted remaining texture memory size is larger than the size of the texture data received from the user program; and determining whether the remaining texture memory size is larger than the size of the texture data received from the user program. Means for updating the remaining texture memory size by subtracting the size of the texture to be registered received from the user program from the remaining texture memory size in the accelerator (GA); Means for generating a GA command to be registered in the texture memory of the accelerator (GA), and transferring the GA command to the graphic accelerator (GA). The graphic accelerator (GA) further comprises: Means for determining whether or not the received command is a registration command; and when the received GA command is a texture data registration command,
Means for calling a means for decompressing the texture data if the received texture data is compressed texture data.

【0008】請求項3に係る図形処理システムとグラフ
ィックアクセラレータ(GA)間におけるテクスチャデー
タ管理方式は、請求項2における各手段をさらに具体的
にしている。すなわち、図形処理システム側に、利用者
プログラムから渡された関数がテクスチャデータ登録関
数である場合はテクスチャデータ圧縮判定手段を呼び出
し、そうでない場合には利用者プログラムから渡された
関数とその引数からGAコマンドを生成して、GAコマ
ンドバッファへ書き込んだ後にGAコマンドデータ転送
手段を呼び出すGAコマンド変換手段と、このGAコマ
ンド変換手段から呼ばれ、テクスチャデータを圧縮する
かどうかの判定を定数Bとの比較によって行ない、圧縮
しない場合には非圧縮テクスチャ保存手段を呼び出し、
圧縮する場合には圧縮テクスチャデータ保存手段を呼び
出すテクスチャデータ圧縮判定手段と、このテクスチャ
データ圧縮判定手段から呼ばれ、利用者プログラムから
渡された非圧縮テクスチャデータを保存した後にテクス
チャメモリオーバーフロー判定手段を呼び出す非圧縮テ
クスチャデータ保存手段と、テクスチャデータ圧縮判定
手段から呼ばれ、利用者プログラムから渡されたテクス
チャデータを可逆圧縮した後に圧縮テクスチャデータ保
存手段を呼び出すテクスチャデータ圧縮手段と、このテ
クスチャデータ圧縮手段から呼ばれ、テクスチャデータ
圧縮手段で生成した圧縮テクスチャデータを保存した後
にテクスチャメモリオーバーフロー判定手段を呼び出す
圧縮テクスチャデータ保存手段と、非圧縮テクスチャデ
ータ保存手段と圧縮テクスチャデータ保存手段から呼ば
れ、グラフィックスアクセラレータ(GA)内のテクス
チャメモリに、利用者プログラムから渡されたテクスチ
ャデータを登録可能かどうかを判定し、登録可能である
場合にはテクスチャメモリ残サイズ更新手段を呼び出
し、登録不可能な場合には登録済テクスチャデータ無効
手段を呼び出すテクスチャメモリオーバーフロー判定手
段と、テクスチャメモリオーバーフロー判定手段から呼
ばれ、GA内のテクスチャメモリに登録済のテクスチャ
データの中で登録を無効にするテクスチャデータを選択
し、その選択したテクスチャデータの登録を無効にする
GAコマンドを生成し、このGAコマンドをGAコマン
ドバッファへ書き込み、テクスチャメモリの残サイズに
無効にする登録済テクスチャのサイズを加算した後に、
テクスチャメモリ残サイズ更新手段を呼び出す登録済テ
クスチャデータ無効手段と、テクスチャメモリオーバー
フロー判定手段と登録済テクスチャデータ無効手段から
呼ばれ、GA内のテクスチャメモリ残サイズから、利用
者プログラムより渡された登録すべきテクスチャのサイ
ズを減算した後に、テクスチャ登録GAコマンド作成手
段を呼び出すテクスチャメモリ残サイズ更新手段と、こ
のテクスチャメモリ残サイズ更新手段から呼ばれ、テク
スチャデータ圧縮手段で生成された圧縮テクスチャデー
タもしくは利用者プログラムから渡されたテクスチャデ
ータから、GAのテクスチャメモリに登録するGAコマ
ンドを生成した後に、GAコマンドデータ転送手段を呼
び出すテクスチャ登録GAコマンド作成手段と、GAコ
マンド変換手段とGA登録テクスチャコマンド作成手段
から呼ばれ、GAコマンドバッファに書き込まれている
GAコマンド列をグラフィックアクセラレータ(GA)
へ転送するGAコマンドデータ転送手段とを備えたこと
を特徴とする。
A texture data management system between a graphic processing system and a graphic accelerator (GA) according to claim 3 makes each means in claim 2 more specific. That is, if the function passed from the user program is a texture data registration function, the graphic data processing system calls the texture data compression determination means. Otherwise, the function passed from the user program and its argument are used. A GA command conversion means for generating a GA command and calling the GA command data transfer means after writing to the GA command buffer, and a constant B which is called by the GA command conversion means and determines whether or not to compress the texture data. Perform by comparison, if not compressed, call the uncompressed texture storage means,
In the case of compression, the texture data compression determining means for calling the compressed texture data storing means, and the texture memory overflow determining means which is called from the texture data compression determining means and stores the uncompressed texture data passed from the user program, is stored. Texture data compression means for calling compressed texture data storage means after reversibly compressing texture data which is called from uncompressed texture data storage means to be called and texture data compression determination means and passed from a user program; and texture data compression means. Compressed texture data storage means for calling the texture memory overflow determination means after storing compressed texture data generated by the texture data compression means, and uncompressed texture data storage means. It is called from the texture data storage means and determines whether the texture data passed from the user program can be registered in the texture memory in the graphics accelerator (GA), and if it can be registered, updates the remaining size of the texture memory Means for calling the means and calling the registered texture data invalidating means when registration is impossible. Select the texture data to invalidate, and generate a GA command to invalidate the registration of the selected texture data, write this GA command to the GA command buffer, and write the registered texture to the remaining size of the texture memory. size After the addition,
The registered texture data invalidating means for calling the texture memory remaining size updating means, the texture memory overflow determining means and the registered texture data invalidating means are called from the texture memory remaining size in the GA. Texture memory remaining size updating means for calling the texture registration GA command creating means after subtracting the size of the texture to be processed, and compressed texture data generated by the texture data compressing means or called by the texture memory remaining size updating means or the user. A texture registration GA command creating unit that calls a GA command data transfer unit after generating a GA command to be registered in a texture memory of the GA from texture data passed from the program, and a GA command conversion unit. Called from the A register texture command generating means, GA command sequence graphics accelerator written in GA command buffer (GA)
And a GA command data transfer means for transferring the command data to the memory.

【0009】また、グラフィックアクセラレータ(G
A)側に、図形処理システムから送られたGAコマンド
を順次受け取り、このGAコマンドが登録済テクスチャ
データの無効化コマンドである場合には登録済テクスチ
ャデータ無効化手段を呼び出し、無効化コマンドでない
場合には、このGAコマンドがテクスチャデータ登録コ
マンドであるならばテクスチャデータ圧縮検知手段を呼
び出し、このGAコマンドがテクスチャデータ登録コマ
ンドでなければGAレンダリング手段を呼び出すGAコ
マンドデータ入力手段と、GAコマンドが登録済テクス
チャデータの無効化コマンドである場合にGAコマンド
データ入力手段から呼ばれ、図形処理システム側の登録
済テクスチャデータデータ無効手段で指定されたテクス
チャデータをテクスチャメモリから削除し、およびテク
スチャメモリを管理するテクスチャメモリ管理テーブル
の当該エントリを削除する、登録済テクスチャデータ無
効化手段と、GAコマンドがテクスチャデータ登録コマ
ンドである場合にGAコマンドデータ入力手段から呼ば
れ、渡されたテクスチャデータが圧縮テクスチャデータ
である場合には圧縮テクスチャデータ解凍手段を呼び出
し、圧縮テクスチャデータでない場合にはテクスチャデ
ータ保存手段を呼び出す、テクスチャデータ圧縮検知手
段と、渡されたテクスチャデータが圧縮テクスチャデー
タである場合にテクスチャデータ圧縮検出手段から呼ば
れ、図形処理システム側のテクスチャデータ圧縮手段に
よって可逆圧縮された圧縮テクスチャデータを解凍した
後に、テクスチャデータ保存手段を呼び出すテクスチャ
データ解凍手段と、テクスチャデータ圧縮検知手段とテ
クスチャデータ解凍手段から呼ばれ、テクスチャメモリ
管理テーブルのエントリに、少なくともIDと、テクス
チャデータのサイズと、テクスチャメモリ内格納位置と
を含む関連情報を保存し、渡されたテクスチャデータを
テクスチャメモリに保存する、テクスチャデータ保存手
段と、GAコマンドデータ入力手段から呼ばれ、GAコ
マンドで指定される図形のレンダリング処理を行い、フ
レームバッファ(FRB)上のイメージを生成し、この
FRBに書き込むGAレンダリング手段とを備えたこと
を特徴とする。
Further, a graphic accelerator (G
A) The GA command sequentially received from the graphic processing system is received by the side A). If the GA command is a command for invalidating registered texture data, the registered texture data invalidating means is called. If the GA command is a texture data registration command, the texture data compression detection means is called. If the GA command is not a texture data registration command, a GA command data input means for calling the GA rendering means, and the GA command is registered. When the command is a command for invalidating already-processed texture data, the command is called from the GA command data input means, deletes the texture data specified by the registered texture data data invalidating means on the graphic processing system side from the texture memory, and manages the texture memory. The registered texture data invalidating means for deleting the corresponding entry of the texture memory management table to be deleted, and the GA command data input means when the GA command is a texture data registration command, and the passed texture data is compressed texture data. If the texture data is compressed, the texture data decompression means is called, and if it is not the compressed texture data, the texture data storage means is called. Texture data decompression means for calling the texture data storage means after decompressing the compressed texture data which is called by the detection means and which has been reversibly compressed by the texture data compression means of the graphic processing system; Called by the compression detecting means and the texture data decompressing means, the related information including at least the ID, the size of the texture data, and the storage position in the texture memory is stored in the entry of the texture memory management table, and the passed texture data is stored. Rendering processing of a figure called by a texture data storage unit and a GA command data input unit and designated by a GA command, which is stored in a texture memory, generates an image on a frame buffer (FRB), and writes the image in the FRB. And a GA rendering means.

【0010】また、請求項4に係る図形処理システムと
グラフィックアクセラレータ(GA)間におけるテクスチ
ャデータ管理方式は、請求項3のものにおいて、テクス
チャデータ圧縮手段がテクスチャデータを圧縮する方法
は、同一文字が連続している時、その出現回数を併記し
て全体のデータ量を減らす方法か、出現頻度に応じてコ
ードを変更し、高頻度の文字には短く、低頻度の文字に
は長くする方法か、出現頻度の高いパターンに特定符号
を割り当てる方法か、無意味な情報を削除する方法か、
の何れかであることを特徴とする。
The texture data management method between the graphic processing system and the graphic accelerator (GA) according to claim 4 is the method according to claim 3, wherein the method of compressing the texture data by the texture data compression means is the same as that of When continuous, a method to reduce the total amount of data by adding the number of occurrences, or to change the code according to the frequency of occurrence, shorten it for high frequency characters and lengthen it for low frequency characters , Assigning specific codes to frequently occurring patterns, removing meaningless information,
Or any one of the following.

【0011】さらに、請求項5に係る図形処理システム
とグラフィックアクセラレータ(GA)間におけるテクス
チャデータ管理方式は、請求項4のものにおいて、テク
スチャデータを圧縮する方法及び前記定数は、前記テク
スチャデータの圧縮により削減される、図形処理システ
ムとグラフィックアクセラレータ(GA)間の転送時間
が、テクスチャデータ圧縮判定手段が行うテクスチャデ
ータの圧縮時間と、テクスチャデータ解凍手段が行う圧
縮テクスチャデータの解凍時間との内、大きい方の値を
上回るように決定されることを特徴とする。
Further, the texture data management method between the graphic processing system and the graphic accelerator (GA) according to claim 5 is the one according to claim 4, wherein the method for compressing texture data and the constant are such that the texture data is compressed. The transfer time between the graphic processing system and the graphic accelerator (GA), which is reduced by the following, is the compression time of the texture data performed by the texture data compression determination unit and the decompression time of the compressed texture data performed by the texture data decompression unit. It is characterized in that it is determined to exceed the larger value.

【0012】[0012]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。図1は本発明の実施
の形態の構成を示すブロック図である。この実施の形態
は、利用者プログラム10と、図形処理システム20
と、グラフィックアクセラレータ(GA)40と、FR
B(フレームバッファ)50と、図形表示装置60と、外
部バス(Bus)70から構成されている。また、図形
処理システム20とグラフィックアクセラレータ(G
A)40は、データ交換を行うための経路である外部バ
ス(Bus)70を通してGAコマンドデータ等のデー
タのやりとりを行う。
Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the embodiment of the present invention. In this embodiment, a user program 10 and a graphic processing system 20
, Graphic accelerator (GA) 40, FR
It comprises a B (frame buffer) 50, a graphic display device 60, and an external bus (Bus) 70. Further, the graphic processing system 20 and the graphic accelerator (G
A) 40 exchanges data such as GA command data through an external bus (Bus) 70 which is a path for data exchange.

【0013】図形処理システム20は、GAコマンド変
換手段21と、テクスチャデータ圧縮判定手段22と、
非圧縮テクスチャデータ保存手段23と、テクスチャデ
ータ圧縮手段24と、圧縮テクスチャデータ保存手段2
5と、テクスチャメモリオーバーフロー判定手段26
と、登録済テクスチャデータ無効手段27と、テクスチ
ャメモリ残サイズ更新手段28と、テクスチャ登録GA
コマンド作成手段29と、GAコマンドデータ転送手段
30と、非圧縮テクスチャデータ31〜33と、圧縮テ
クスチャデータ34〜36と、GAコマンドバッファ3
7とを含む。グラフィックアクラレータ(GA)40
は、GAコマンドデータ入力手段41と、登録済テクス
チャデータ無効化手段42と、テクスチャデータ圧縮検
知手段43と、テクスチャデータ解凍手段44と、テク
スチャデータ保存手段45と、GAレンダリング手段4
6と、テクスチャメモリ管理テーブル47と、テクスチ
ャメモリ48とを含む。
The graphic processing system 20 includes a GA command conversion unit 21, a texture data compression determination unit 22,
Uncompressed texture data storage means 23, texture data compression means 24, compressed texture data storage means 2
5, texture memory overflow determination means 26
Registered texture data invalidating means 27, texture memory remaining size updating means 28, texture registration GA
Command creation means 29, GA command data transfer means 30, uncompressed texture data 31 to 33, compressed texture data 34 to 36, GA command buffer 3
7 is included. Graphic Accelerator (GA) 40
A GA command data input unit 41, a registered texture data invalidating unit 42, a texture data compression detecting unit 43, a texture data decompressing unit 44, a texture data storing unit 45, and a GA rendering unit 4
6, a texture memory management table 47, and a texture memory 48.

【0014】図2はGAコマンド変換手段21の処理例
を示す流れ図である。まず、利用者プログラム10から
渡された関数がテクスチャデータの登録関数であるかど
うかの判定を行う(211)。該当する場合(Y)には
テクスチャデータ圧縮判定手段22を呼び出し、該当し
ない場合(N)には関数と引数からGAコマンドを生成
し(212)、生成したGAコマンドをGAコマンドバ
ッファ37へ書き込み(213)、その後にGAコマン
ドデータ転送手段30を呼び出す。
FIG. 2 is a flowchart showing a processing example of the GA command conversion means 21. First, it is determined whether the function passed from the user program 10 is a registration function of texture data (211). If so (Y), the texture data compression determination means 22 is called. If not (N), a GA command is generated from the function and the argument (212), and the generated GA command is written to the GA command buffer 37 ( 213) Then, the GA command data transfer means 30 is called.

【0015】図3は、GAコマンド変換手段21による
効果の具体例(テクスチャデータ登録以外の場合)を示す
図である。利用者プログラム10では、座標値(1.0, 1.
0)から(10.0, 10.0)まで線幅が2.0の線を描画すること
を意図して記述されている。"linewidth"関数の引数で
線幅2.0を指定し、"line"関数で線の描画位置(1.0,1.0)
-(10.0, 10.0)を指定している。GAコマンド手段21
では、これらの意図を解釈して線幅213、線描画21
4を生成し、GAコマンド215、GAコマンド216
を生成してGAコマンドバッファ37へ書き込み、GA
コマンド転送手段30を呼び出す。
FIG. 3 is a diagram showing a specific example of the effect of the GA command conversion means 21 (other than registration of texture data). In the user program 10, the coordinate values (1.0, 1.
It is described with the intention of drawing a line with a line width of 2.0 from (0) to (10.0, 10.0). Specify a line width of 2.0 in the argument of the "linewidth" function, and draw the line using the "line" function (1.0, 1.0)
-(10.0, 10.0) is specified. GA command means 21
Then, by interpreting these intentions, the line width 213, the line drawing 21
4 is generated and the GA command 215 and the GA command 216 are generated.
Is generated and written in the GA command buffer 37, and the GA
The command transfer means 30 is called.

【0016】図4は、テクスチャデータ圧縮判定手段2
2の処理例を示す図である。利用者プログラム10から
渡された関数がテクスチャデータの登録関数である場合
にGAコマンド変換手段21から呼び出される。このテ
クスチャデータのサイズがテクスチャデータを圧縮する
かどうかを判定するための定数Bよりも大きいかどうか
の判定を行う(221)。大きければ(Y)、テクスチ
ャデータ圧縮手段24を呼び出し、大きくない場合には
(N)、非圧縮テクスチャデータ保存手段23を呼び出
す。定数Bの値の設定方法に関しては、図6の説明の中
で触れることとする。
FIG. 4 shows the texture data compression judging means 2
FIG. 11 is a diagram illustrating a processing example of No. 2; When the function passed from the user program 10 is a registration function of texture data, it is called from the GA command conversion means 21. It is determined whether the size of the texture data is larger than a constant B for determining whether to compress the texture data (221). If it is larger (Y), the texture data compression means 24 is called, and if not (N), the uncompressed texture data storage means 23 is called. The setting method of the value of the constant B will be described in the description of FIG.

【0017】図5は、非圧縮テクスチャデータ保存手段
23の処理例を示す図である。テクスチャデータ圧縮判
定手段22において、利用者プログラム10から渡され
たテクスチャデータのサイズが定数Bよりも大きくない
時に呼び出される。利用者プログラム10から渡された
(非圧縮)テクスチャデータを図形処理システム10内で
保存し(231)、テクスチャメモリオーバーフロー判
定手段26を呼び出す。
FIG. 5 is a diagram showing a processing example of the uncompressed texture data storage means 23. The texture data compression determination means 22 is called when the size of the texture data passed from the user program 10 is not larger than the constant B. Passed from user program 10
The (uncompressed) texture data is stored in the graphic processing system 10 (231), and the texture memory overflow determination means 26 is called.

【0018】図6は、テクスチャデータ圧縮手段24の
処理例を示す図である。テクスチャデータ圧縮判定手段
22において、利用者プログラム10から渡されたテク
スチャデータのサイズが定数Bよりも大きい時に呼び出
される。利用者プログラム10から渡されたテクスチャ
データを(可逆)圧縮し(241)、その後に圧縮テクス
チャデータ保存手段25を呼び出す。一般に、データ圧
縮方式は可逆圧縮と不可逆圧縮に分類されるが、図形処
理システム10内で圧縮したテクスチャデータからグラ
フィックアクセラレータ(GA)40が利用者プログラ
ム10から渡された(非圧縮)テクスチャデータを全て再
現可能であることが必要であるため、本発明では可逆圧
縮の方式を使用しなければならない。
FIG. 6 is a diagram showing a processing example of the texture data compression means 24. The texture data compression determining means 22 is called when the size of the texture data passed from the user program 10 is larger than the constant B. The texture data passed from the user program 10 is (reversibly) compressed (241), and then the compressed texture data storage means 25 is called. In general, data compression methods are classified into lossless compression and irreversible compression. The graphic accelerator (GA) 40 converts (uncompressed) texture data passed from the user program 10 from texture data compressed in the graphic processing system 10. Since everything needs to be reproducible, a lossless compression scheme must be used in the present invention.

【0019】データ圧縮は、ファイル・画像・通信等の
分野で利用されており、データ圧縮方式としては、次の
〜の方法が広く知られている。 同一文字が連続している時、その出現回数を併記し
て全体量を減らす方法。これにはランレングス符号化(r
un-length coding)という方法がある。 出現頻度に応じてコードを変更し、高頻度の文字に
は短く、低頻度の文字には長くする方法。ハフマン符号
化(Huffman coding)やn/2n符号化という方法があ
る。 出現頻度の高いパターンに特定符号を割り当てる方
法。 無意味な情報を削除する方法。
Data compression is used in the fields of files, images, communications and the like, and the following methods are widely known as data compression methods. When the same character is continuous, a method to reduce the total amount by describing the number of occurrences. This includes run-length coding (r
un-length coding). A method that changes the code according to the frequency of appearance, making it shorter for high-frequency characters and longer for low-frequency characters. There are methods such as Huffman coding and n / 2n coding. A method of assigning a specific code to a frequently occurring pattern. How to remove meaningless information.

【0020】しかし、図形処理システム20とグラフィ
ックアクセラレータ(GA)40間のテクスチャデータ
のやりとりに圧縮テクスチャデータを用いる場合には、
図形処理システム10側でテクスチャデータの圧縮時
間、グラフィックアクセラレータ(GA)40側で圧縮
テクスチャデータの解凍時間が必要となる。データの圧
縮により図形処理システム10とグラフィックアクセラ
レータ(GA)40間のデータ転送量が減ることで削減
される転送時間が、この2つ(テクスチャデータの圧縮
と解凍)の時間の内、CPUとGAは独立動作している
ので、大きい方の値を上回るように、採用するテクスチ
ャデータ圧縮方法と、(テクスチャデータのサイズがテ
クスチャデータを圧縮するかどうかを判定するための数
である)定数Bとを決定すべきである。
However, when the compressed texture data is used for exchanging the texture data between the graphic processing system 20 and the graphic accelerator (GA) 40,
The graphic processing system 10 needs a compression time for the texture data, and the graphic accelerator (GA) 40 requires a decompression time for the compressed texture data. The transfer time reduced by reducing the amount of data transfer between the graphic processing system 10 and the graphic accelerator (GA) 40 by the data compression is reduced by the CPU and GA among the two (compression and decompression of the texture data). Operates independently, so that the texture data compression method to be adopted and the constant B (the number of texture data is a number for determining whether to compress the texture data) and the constant B are set so as to exceed the larger value. Should be determined.

【0021】図7は、圧縮テクスチャデータ保存手段2
5の処理例を示す図である。テクスチャデータ圧縮判定
手段22において、利用者プログラム10から渡された
テクスチャデータのサイズが定数Bよりも大きい時に、
テクスチャデータ圧縮手段24を経由して呼び出され
る。テクスチャデータ圧縮手段24で生成した圧縮クス
チャデータを図形処理システム10内で保存し(25
1)、テクスチャメモリオーバーフロー判定手段26を
呼び出す。
FIG. 7 shows compressed texture data storage means 2
FIG. 14 is a diagram illustrating a processing example of No. 5; In the texture data compression determining means 22, when the size of the texture data passed from the user program 10 is larger than the constant B,
It is called via the texture data compression means 24. The compressed texture data generated by the texture data compression unit 24 is stored in the graphic processing system 10 (25
1), the texture memory overflow determination means 26 is called.

【0022】図8は、テクスチャメモリオーバーフロー
判定手段26の処理例を示す図である。非圧縮テクスチ
ャデータ保存手段23と圧縮テクスチャデータ保存手段
25から呼び出される。 テクスチャメモリ残サイズが
利用者プログラム10から渡されたテクスチャデータの
サイズ以上かどうか(すなわち、テクスチャメモリがテ
クスチャデータを登録できるだけの未登録領域を残して
いるか)を判定する(261)。該当する場合には
(Y)、テクスチャメモリ残サイズ更新手段28を呼び
出し、該当しない場合には(N)、登録済テクスチャデ
ータ無効手段27を呼び出す。
FIG. 8 is a diagram showing a processing example of the texture memory overflow determining means 26. It is called from the uncompressed texture data storage means 23 and the compressed texture data storage means 25. It is determined whether the remaining size of the texture memory is equal to or larger than the size of the texture data passed from the user program 10 (that is, whether or not the texture memory has left an unregistered area for registering the texture data) (261). If so (Y), the texture memory remaining size updating means 28 is called, and if not (N), the registered texture data invalidating means 27 is called.

【0023】図9は、登録済テクスチャデータ無効手段
27の処理例を示す図である。テクスチャメモリオーバ
ーフロー判定手段26において、テクスチャメモリ残サ
イズが利用者プログラム10から渡されたテクスチャデ
ータのサイズより小さい場合に呼び出される。すなわ
ち、第一に、GAのテクスチャメモリ48に登録済のテ
クスチャデータの中で登録を無効にするテクスチャデー
タを選択する(271)。第二に、処理271で選択し
たテクスチャデータについて、登録無効にするGAコマ
ンドを生成する(272)。第三に、処理272で生成
したGAコマンドをGAコマンドバッファ37へ書き込
む(273)。最後に、テクスチャメモリ残サイズ=テ
クスチャメモリ残サイズ−処理271で選択したテクス
チャデータのサイズとし(274)、その後、テクスチ
ャメモリ残サイズ更新手段28を呼び出す。
FIG. 9 is a diagram showing a processing example of the registered texture data invalidating means 27. The texture memory overflow determination means 26 is called when the remaining size of the texture memory is smaller than the size of the texture data passed from the user program 10. That is, first, texture data for which registration is to be invalidated is selected from among the texture data registered in the texture memory 48 of the GA (271). Second, a GA command for invalidating registration is generated for the texture data selected in the process 271 (272). Third, the GA command generated in the process 272 is written into the GA command buffer 37 (273). Finally, the remaining texture memory size = the remaining texture memory size−the size of the texture data selected in the process 271 (274), and then the texture memory remaining size updating unit 28 is called.

【0024】図10は、テクスチャメモリ残サイズ更新
手段28の処理例を示す図である。テクスチャメモリオ
ーバーフロー判定手段26においてテクスチャメモリが
テクスチャデータを登録できるだけの未登録領域を残し
ている場合と、登録済テクスチャデータ無効手段27と
から呼び出される。テクスチャメモリ残サイズ=テクス
チャメモリ残サイズ−利用者プログラム10から渡され
たテクスチャデータサイズを行い(281)、テクスチ
ャ登録GAコマンド作成手段29を呼び出す。
FIG. 10 is a diagram showing a processing example of the texture memory remaining size updating means 28. It is called from the texture memory overflow determining means 26 when the texture memory has left an unregistered area where the texture data can be registered, and from the registered texture data invalidating means 27. Texture memory remaining size = texture memory remaining size−texture data size passed from the user program 10 (281), and the texture registration GA command creating means 29 is called.

【0025】図11は、テクスチャ登録GAコマンド作
成手段29の処理例を示す図である。テクスチャ残サイ
ズ更新手段28から呼ばれる。第一に、テクスチャ圧縮
手段24で生成したテクスチャデータ、もしくは利用者
プログラム10から渡されたテクスチャデータからGA
のテクスチャメモリに登録するGAコマンドを生成する
(291)。最後に、処理291で生成したGAコマン
ドをGAコマンドバッファ37へ書き込み(292)、
その後、GAコマンドデータ転送手段30を呼び出す。
FIG. 11 is a diagram showing a processing example of the texture registration GA command creating means 29. It is called from the remaining texture size updating means 28. First, the texture data generated by the texture compression unit 24 or the texture data passed from the user program 10
A GA command to be registered in the texture memory is generated (291). Finally, the GA command generated in the process 291 is written into the GA command buffer 37 (292),
Thereafter, the GA command data transfer means 30 is called.

【0026】図12は、GAコマンドデータ転送手段3
0の処理例を示す図である。利用者プログラムから渡さ
れた関数がテクスチャ登録関数以外の時にはGAコマン
ド変換手段21から呼ばれ、テクスチャ関数の時にはG
A登録テクスチャコマンド作成手段29から呼ばれる。
GAコマンドバッファ37に書き込まれているGAコマ
ンド列をグラフィックアクセラレータ(GA)40へ転
送する(301)。
FIG. 12 shows the GA command data transfer means 3
It is a figure showing the example of processing of 0. When the function passed from the user program is other than the texture registration function, it is called from the GA command conversion means 21, and when the function is a texture function, G is used.
It is called from the A registered texture command creating means 29.
The GA command string written in the GA command buffer 37 is transferred to the graphic accelerator (GA) 40 (301).

【0027】図13は、GAコマンドデータ入力手段4
1の処理例を示す図である。第一に、図形処理システム
20からのGAコマンドを順次受け取る(411)。次
に、GAコマンドが登録済テクスチャデータ無効化コマ
ンドであるかどうかの判定が行われる(412)。該当
すれば(Y)、登録済テクスチャデータ無効化手段42
が呼び出される。該当しない場合には(N)、GAコマ
ンドがテクスチャ登録コマンドであるかどうかの判定が
行われる(413)。該当すれば(Y)、テクスチャデ
ータ圧縮検知手段43が呼ばれ、該当しなければ
(N)、GAレンダリング手段46が呼び出される。
FIG. 13 shows GA command data input means 4
FIG. 7 is a diagram illustrating a processing example of No. 1; First, GA commands from the graphic processing system 20 are sequentially received (411). Next, it is determined whether or not the GA command is a registered texture data invalidation command (412). If so (Y), the registered texture data invalidating means 42
Is called. If not applicable (N), it is determined whether the GA command is a texture registration command (413). If so (Y), the texture data compression detecting means 43 is called, and if not (N), the GA rendering means 46 is called.

【0028】図14は、登録済テクスチャデータ無効化
手段42の処理例を示す図である。GAコマンドデータ
入力手段41において、GAコマンドが登録済テクスチ
ャデータ無効化コマンドである場合に呼び出される。図
形処理システム20で登録済テクスチャデータ無効手段
27で無効化を指定されたテクスチャデータをテクスチ
ャメモリ48から削除し、およびテクスチャデータ関連
情報をテクスチャメモリ管理テーブル47のエントリか
ら削除する(421)。
FIG. 14 is a diagram showing a processing example of the registered texture data invalidating means 42. The GA command data input means 41 is called when the GA command is a registered texture data invalidation command. In the graphic processing system 20, the texture data designated to be invalidated by the registered texture data invalidating means 27 is deleted from the texture memory 48, and the texture data related information is deleted from the entry of the texture memory management table 47 (421).

【0029】図15は、テクスチャデータ圧縮検知手段
43の処理例を示す図である。GAコマンドデータ入力
手段41において、GAコマンドがテクスチャ登録コマ
ンドである場合に呼び出される。渡されたデータが圧縮
テクスチャである時には圧縮テクスチャデータ解凍手段
44を呼び出し、そうでない時にはテクスチャデータ保
存手段45を呼び出す(431)。
FIG. 15 is a diagram showing a processing example of the texture data compression detecting means 43. The GA command data input means 41 is called when the GA command is a texture registration command. If the passed data is a compressed texture, the compression texture data decompression means 44 is called, and if not, the texture data storage means 45 is called (431).

【0030】図16は、テクスチャデータ解凍手段44
の処理例を示す図である。渡されたデータが圧縮テクス
チャデータである時にテクスチャデータ圧縮検知手段4
3から呼ばれる。圧縮テクスチャデータの解凍を行い
(441)、テクスチャデータ保存手段45を呼び出
す。
FIG. 16 shows the texture data decompression means 44.
It is a figure which shows the example of a process of. Texture data compression detection means 4 when the passed data is compressed texture data
Called from 3. The compressed texture data is decompressed (441), and the texture data storage means 45 is called.

【0031】図17は、テクスチャデータ保存手段45
の処理例を示す図である。渡されたテクスチャデータ
が、圧縮テクスチャデータでない場合にはテクスチャデ
ータ圧縮検知手段43から、圧縮テクスチャデータであ
る場合にはテクスチャデータ解凍手段44から呼ばれ
る。テクスチャメモリ管理テーブルのエントリに、ID
や、渡されたテクスチャデータのサイズや、テクスチャ
メモリ内のテクスチャデータ格納位置などの関連情報を
保存し、渡されたテクスチャデータをテクスチャメモリ
48に保存する(451)。
FIG. 17 shows a texture data storage means 45.
It is a figure which shows the example of a process of. If the passed texture data is not compressed texture data, it is called from the texture data compression detection means 43, and if it is compressed texture data, it is called from the texture data decompression means 44. Enter the ID in the texture memory management table entry.
Also, related information such as the size of the passed texture data and the storage location of the texture data in the texture memory is stored, and the passed texture data is stored in the texture memory 48 (451).

【0032】図18は、GAレンダリング手段46の処
理例を示す図である。GAコマンドデータ入力手段にお
いて、GAコマンドが登録済テクスチャデータ無効化コ
マンドでもテクスチャ登録GAコマンドでもない場合に
呼び出される。GAコマンドで指定される図形のレンダ
リング処理を行い、FRB(フレームバッファ)上のイメ
ージを生成し、FRBに書き込む(461)。
FIG. 18 is a diagram showing a processing example of the GA rendering means 46. The GA command data input means is called when the GA command is neither a registered texture data invalidation command nor a texture registration GA command. The rendering process of the graphic designated by the GA command is performed to generate an image on the FRB (frame buffer) and write the image into the FRB (461).

【0033】図19は、テクスチャデータの例を示す図
である。縦:16,横:16のテクセルをもち、各テク
セルの色値が、(R:赤,G:緑,B:青,A:α)の
成分で構成され、各成分が1バイトで表現され、1テク
セルが1ワードで表現される。図中で塗りつぶされたテ
クセルは黒色(0,0,0,1)を表わし、塗りつぶされ
ていないテクセルは黒(0,0,0,1)以外の色を表
す。尚、以降の例では、(10,10,10,1)の色
に統一している。本テクスチャデータを用いてテクスチ
ャマッピングが行われると、図19にあるイメージが描
画される図形に細かく張り付いて表示される。
FIG. 19 is a diagram showing an example of texture data. It has 16 vertices and 16 texels, and the color value of each texel is composed of components of (R: red, G: green, B: blue, A: α), and each component is expressed by 1 byte. , One texel is represented by one word. In the figure, the painted texels represent black (0, 0, 0, 1), and the unpainted texels represent colors other than black (0, 0, 0, 1). In the following examples, the colors are unified to (10, 10, 10, 1). When texture mapping is performed using the present texture data, the image shown in FIG. 19 is displayed in a state of being finely attached to a figure to be drawn.

【0034】図20は、テクスチャ登録GAコマンドの
例(テクスチャデータを圧縮しない場合)を示す図であ
る。テクスチャデータは図19のテクスチャデータを使
用している。GAコマンドは、第一に命令コード(2バ
イトデータ)、第二にコマンド長(2バイトデータ)、第
三にXサイズ(2バイトデータ)、第四にYサイズ(2バ
イトデータ)があり、その後にテクスチャデータが並
ぶ。テクスチャデータは、256ワード(=16×1
6)あるので、この例では258ワードと非常に長いG
Aコマンドとなる。このため、図形処理システム20か
らグラフィックアクセラレータ(GA)40へのデータ
転送は、一般に外部バス(Bus)70が低速であるた
め、テクスチャデータの登録に必要とする時間が大きく
なってしまう。
FIG. 20 is a diagram showing an example of the texture registration GA command (when the texture data is not compressed). The texture data uses the texture data shown in FIG. The GA command has an instruction code (two-byte data) first, a command length (two-byte data) second, an X size (two-byte data) third, and a Y size (two-byte data) fourth. After that, texture data is arranged. Texture data is 256 words (= 16 × 1
6) In this example, a very long G of 258 words
A command. For this reason, the data transfer from the graphic processing system 20 to the graphic accelerator (GA) 40 generally requires a long time for the external bus (Bus) 70, so that the time required for registering the texture data increases.

【0035】図21は、テクスチャデータの圧縮方法の
例を示す図である。図6の説明でも触れたが、データの
圧縮により図形処理システム20とグラフィックアクセ
ラレータ(GA)40間のデータ転送量が減ることで削
減される転送時間が、図形処理システム20でのテクス
チャデータの圧縮時間とグラフィックアクセラレータ
(GA)40での圧縮されたテクスチャデータの解凍時
間の内、大きい方の値を上回るように、テクスチャデー
タ圧縮方法と定数Bを決定する必要がある。この例で
は、簡単な圧縮方法として、バイト単位/ワード単位で
連続する同一数について、その長さと値の対によるデー
タ表現を用いた圧縮方法を使っている。この方法を使用
することで、この例では8ワードのデータが6ワードに
圧縮されている。圧縮テクスチャデータは、圧縮情報の
ワード(第一バイトが圧縮フラグ(0:圧縮なし、1:
圧縮あり)、第二バイトが圧縮単位(1:バイト、2:
ワード)、第三が連続する長さ(第二バイトが1:バイ
ト、第二バイトが2:ワード)、第四バイトがNULL
(意味なし))と、データ(ワードもしくはバイトの値)
が対になって構成されている。
FIG. 21 is a diagram showing an example of a method for compressing texture data. As mentioned in the description of FIG. 6, the transfer time, which is reduced by reducing the amount of data transferred between the graphic processing system 20 and the graphic accelerator (GA) 40 by the data compression, is reduced by the compression of the texture data in the graphic processing system 20. It is necessary to determine the texture data compression method and the constant B so as to exceed the larger of the time and the decompression time of the compressed texture data in the graphic accelerator (GA) 40. In this example, as a simple compression method, a compression method using a data expression based on a pair of a length and a value is used for the same number of consecutive bytes / words. By using this method, in this example, 8 words of data are compressed into 6 words. The compressed texture data consists of a word of compression information (the first byte is a compression flag (0: no compression, 1:
The second byte is the compression unit (1: byte, 2:
Word), 3rd consecutive length (2nd byte is 1: byte, 2nd byte is 2: word), 4th byte is NULL
(No meaning)) and data (word or byte values)
Are paired.

【0036】図22は、テクスチャ登録GAコマンドの
例(圧縮テクスチャデータの場合)を示す図である。こ
の例は、図19のテクスチャデータから生成したGAコ
マンドである。図20と比較して、テクスチャデータの
圧縮により、GAコマンド長が短くなっている(258
→162ワード)。GAコマンド長が短くなることで、
図形処理システム20からグラフィックスアクセラレー
タ(GA)40へのテクスチャデータの登録時間の短縮
が期待できる。
FIG. 22 is a diagram showing an example of a texture registration GA command (in the case of compressed texture data). This example is a GA command generated from the texture data of FIG. Compared to FIG. 20, the GA command length is shortened by the compression of the texture data (258).
→ 162 words). By shortening the GA command length,
It is expected that the registration time of the texture data from the graphic processing system 20 to the graphics accelerator (GA) 40 will be reduced.

【0037】図23は、テクスチャメモリ管理テーブル
とテクスチャメモリの対応の例を示す図である。この例
では、テクスチャメモリのサイズを縦:32,横:32
テクセル分のサイズとしている。テクスチャメモリ管理
テーブルには、ID1〜4のテクスチャデータについ
て、そのID、サイズ、テクスチャメモリ内の格納位置
に関する情報が管理されている。テクスチャメモリ管理
テーブルのエントリに記述されているID、サイズ、テ
クスチャメモリ内位置に記述されている(サイズ、位置)
通りにテクスチャメモリ内にテクスチャデータが保存さ
れている。
FIG. 23 is a diagram showing an example of the correspondence between the texture memory management table and the texture memory. In this example, the size of the texture memory is 32 vertically and 32 horizontally.
Texel size. The texture memory management table manages information on the ID, size, and storage position in the texture memory for the texture data of IDs 1 to 4. ID, size described in the entry of the texture memory management table, described in the position in the texture memory (size, position)
As described above, the texture data is stored in the texture memory.

【0038】図24は、テクスチャデータ登録と描画時
間のタイミングを示す図である。利用者プログラムから
の指示内容に対して、CPU(図形処理システム負荷)、
グラフィックスアクセラレータ(GA)負荷状況を時間
の流れの単位で図示している。また、各波形は、上に行
くほど負荷が高く、下に行くほど負荷が低いことを表し
ている。
FIG. 24 is a diagram showing the timing of texture data registration and drawing time. The CPU (graphic processing system load),
The graphics accelerator (GA) load situation is illustrated in units of time flow. In addition, each waveform indicates that the load is higher as going upward, and the load is lower as going downward.

【0039】第一に、利用者プログラムから テクス
チャデータの新規登録(ID1:8×8、ID2〜4:
16×16)の指示があると、 テクスチャデータ4
つを保存し、テクスチャメモリへ(ID1〜4の)テクス
チャデータ登録指示が行われ、テクスチャデータ4つ
について、テクスチャメモリ管理テーブルに管理情報を
登録し、テクスチャメモリへ登録 が行われる。第二
に、利用者プログラムから テクスチャID=2でテ
クスチャマッピングの指示があると、 ID=2でテ
クスチャマッピング指示が行われ、 ID=2でテク
スチャマッピングが行われる。
First, new registration of texture data from a user program (ID1: 8 × 8, ID2-4:
16 × 16), the texture data 4
Then, a texture data registration instruction (of ID 1 to 4) is issued to the texture memory, management information is registered in the texture memory management table for the four pieces of texture data, and registration is performed in the texture memory. Second, when a texture mapping instruction is issued from the user program with texture ID = 2, a texture mapping instruction is issued with ID = 2, and texture mapping is performed with ID = 2.

【0040】最後に、利用者プログラムから テクス
チャデータの新規登録(ID:5)+テクスチャID=5
でテクスチャマッピング の指示があると、 テクスチ
ャメモリの −1:ID 1(8×8)の削除、―
2:ID 5(16×16)の追加、−3:ID=5
でテクスチャマッピング指示 が行われ、 −1:I
D 1(8×8)の削除、−2:ID 5(16×1
6)の追加、−3:ID=5でテクスチャマッピング
が行われる。テクスチャデータの圧縮を行なうこと
で、→において、特に、−2と−2の時間短縮
が可能となり、結果としてに対しての処理時間が短縮
される。
Finally, new registration of texture data from the user program (ID: 5) + texture ID = 5
When there is an instruction of texture mapping in -1, deletion of texture memory -1: ID 1 (8 × 8),-
2: Addition of ID 5 (16 × 16), -3: ID = 5
, A texture mapping instruction is performed, and −1: I
Deletion of D 1 (8 × 8), −2: ID 5 (16 × 1)
6) addition, -3: texture mapping is performed with ID = 5. By performing the compression of the texture data, in the case of →, especially, the time of −2 and −2 can be reduced, and as a result, the processing time for the result can be reduced.

【0041】[0041]

【発明の効果】以上説明したように、本発明の図形処理
システムとグラフィックアクセラレータ(GA)間のテ
クスチャデータ管理方式によれば、グラフィックスアク
セラレータ(GA)のテクスチャメモリへ外部バス(Bu
s)を介してテクスチャデータを転送する際に、テクス
チャデータを圧縮し、転送するデータ量を削減すること
で、外部バス(Bus)性能のボトルネックによる長いテ
クスチャデータ登録時間を短縮することができる。特
に、グラフィックスアクセラレータに登録されたテクス
チャデータの入れ換えとそのテクスチャデータを用いて
テクスチャマッピングを連続して行う場合に、図形処理
システムとグラフィックアクセラレータ(GA)のテクス
チャデータ登録の処理時間短縮により、画面への描画結
果表示の高速化が可能となる。これによって、グラフィ
ックスアクセラレータ(GA)のテクスチャメモリに未
登録のテクスチャデータを使用したときでも、テクスチ
ャマッピングの描画を速くすることができる。
As described above, according to the texture data management system between the graphic processing system and the graphic accelerator (GA) of the present invention, the external bus (Bu) is transferred to the texture memory of the graphics accelerator (GA).
When the texture data is transferred via s), by compressing the texture data and reducing the amount of data to be transferred, a long texture data registration time due to a bottleneck of the external bus (Bus) performance can be reduced. . In particular, when the texture data registered in the graphics accelerator is replaced and the texture mapping is continuously performed using the texture data, the processing time of the texture data registration of the graphic processing system and the graphic accelerator (GA) is reduced, so that the screen is reduced. It is possible to speed up the display of the drawing result on the screen. As a result, even when texture data that has not been registered in the texture memory of the graphics accelerator (GA) is used, it is possible to speed up the drawing of the texture mapping.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の第1の実施例の構成を示す示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】 GAコマンド変換手段の処理例を示す流れ図
である。
FIG. 2 is a flowchart showing a processing example of a GA command conversion unit.

【図3】 GAコマンド変換手段による効果の具体例
(テクスチャデータ登録以外の場合)を示す図である。
FIG. 3 is a specific example of the effect of the GA command conversion means.
FIG. 7 is a diagram illustrating (other than texture data registration).

【図4】 テクスチャデータ圧縮判定手段の処理例を示
す図である。
FIG. 4 is a diagram illustrating a processing example of a texture data compression determination unit.

【図5】 非圧縮テクスチャデータ保存手段の処理例を
示す図である。
FIG. 5 is a diagram illustrating a processing example of an uncompressed texture data storage unit.

【図6】 テクスチャデータ圧縮手段の処理例を示す図
である。
FIG. 6 is a diagram illustrating a processing example of a texture data compression unit.

【図7】 圧縮テクスチャデータ保存手段の処理例を示
す図である。
FIG. 7 is a diagram illustrating a processing example of a compressed texture data storage unit.

【図8】 テクスチャメモリオーバーフロー判定手段の
処理例を示す図である。
FIG. 8 is a diagram illustrating a processing example of a texture memory overflow determination unit.

【図9】 登録済テクスチャデータ無効手段の処理例を
示す図である。
FIG. 9 is a diagram showing a processing example of registered texture data invalidation means.

【図10】 テクスチャメモリサイズ更新手段の処理例
を示す図である。
FIG. 10 is a diagram illustrating a processing example of a texture memory size updating unit.

【図11】 テクスチャ登録GAコマンド作成手段の処
理例を示す図である。
FIG. 11 is a diagram illustrating a processing example of a texture registration GA command creating unit.

【図12】 GAコマンドデータ転送手段の処理例を示
す図である。
FIG. 12 is a diagram illustrating a processing example of a GA command data transfer unit.

【図13】 GAコマンドデータ入力手段の処理例を示
す図である。
FIG. 13 is a diagram illustrating a processing example of a GA command data input unit.

【図14】 登録済テクスチャデータ無効化手段の処理
例を示す図である。
FIG. 14 is a diagram illustrating a processing example of a registered texture data invalidating unit.

【図15】 テクスチャデータ圧縮検知手段の処理例を
示す図である。
FIG. 15 is a diagram illustrating a processing example of a texture data compression detection unit.

【図16】 テクスチャデータ解凍手段の処理例を示す
図である。
FIG. 16 is a diagram illustrating a processing example of a texture data decompression unit.

【図17】 テクスチャデータ保存手段の処理例を示す
図である。
FIG. 17 is a diagram illustrating a processing example of a texture data storage unit.

【図18】 GAレンダリング手段の処理例を示す図で
ある。
FIG. 18 is a diagram illustrating a processing example of a GA rendering unit.

【図19】 テクスチャデータの例を示す図である。FIG. 19 is a diagram illustrating an example of texture data.

【図20】 テクスチャ登録GAコマンドの例(テクス
チャデータを圧縮しない場合)を示す図である。
FIG. 20 is a diagram illustrating an example of a texture registration GA command (when texture data is not compressed).

【図21】 テクスチャデータの圧縮方法の例を示す図
である。
FIG. 21 is a diagram illustrating an example of a texture data compression method.

【図22】 テクスチャ登録GAコマンドの例(圧縮テ
クスチャデータの場合)を示す図である。
FIG. 22 is a diagram illustrating an example of a texture registration GA command (in the case of compressed texture data).

【図23】 テクスチャメモリ管理テーブルとテクスチ
ャメモリの対応例を示す図である。
FIG. 23 is a diagram illustrating a correspondence example between a texture memory management table and a texture memory.

【図24】 テクスチャデータ登録と描画時間のタイミ
ングを示す図である。
FIG. 24 is a diagram showing the timing of texture data registration and drawing time.

【符号の説明】[Explanation of symbols]

10 利用者プログラム 20 図形処理システム 21 GAコマンド変換手段 22 テクスチャデータ圧縮判定手段 23 非圧縮テクスチャデータ保存手段 24 テクスチャデータ圧縮手段 25 圧縮テクスチャデータ保存手段 26 テクスチャメモリオーバーフロー判定手段 27 登録済テクスチャデータ無効手段 28 テクスチャメモリ残サイス更新手段 29 テクスチャ登録GAコマンド作成手段 30 GAコマンドデータ転送手段 31〜33 非圧縮テクスチャデータ1〜n 34〜36 圧縮テクスチャデータ1〜m 37 GAコマンドバッファ 40 グラフィックアクセラレータ(GA) 41 GAコマンドデータ入力手段 42 登録済テクスチャデータ無効化手段 43 テクスチャデータ圧縮検知手段 44 テクスチャデータ解凍手段 45 テクスチャデータ保存手段 46 GAレンダリング手段 47 テクスチャメモリ管理テーブル 48 テクスチャメモリ 50 FRB(フレームバッファ) 60 図形表示装置 70 外部バス(Bus) DESCRIPTION OF SYMBOLS 10 User program 20 Graphic processing system 21 GA command conversion means 22 Texture data compression determination means 23 Uncompressed texture data storage means 24 Texture data compression means 25 Compressed texture data storage means 26 Texture memory overflow determination means 27 Registered texture data invalidation means 28 Texture memory remaining size update means 29 Texture registration GA command creation means 30 GA command data transfer means 31-33 Uncompressed texture data 1-n 34-36 Compressed texture data 1-m 37 GA command buffer 40 Graphic accelerator (GA) 41 GA command data input means 42 Registered texture data invalidation means 43 Texture data compression detection means 44 Texture data decompression means 45 Text Char data storage means 46 GA rendering means 47 Texture memory management table 48 Texture memory 50 FRB (frame buffer) 60 Graphic display device 70 External bus (Bus)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 利用者プログラムからの指示に従って、
グラフィックスアクセラレータ(GA)に対するGAコ
マンドを生成し、且つ該GAコマンドを送信する図形処
理システムと、該図形処理システムから受信したGAコ
マンドに基づいて図形のレンダリングを行い、且つ、テ
クスチャマッピングの高速化用にテクスチャデータを内
部に保持するテクスチャメモリを備えたグラフィックス
アクセラレータ(GA)との間におけるテクスチャデータ
管理方式において、 前記図形処理システムは、 前記利用者プログラムから渡されたテクスチャデータの
サイズが、予め定められた定数より大きいが否かを判定
する手段と、 該テクスチャデータのサイズが前記定数より大きいとき
に、該テクスチャデータを圧縮する手段とを備え、 前記グラフィックアクセラレータ(GA)は、 前記図形処理システムから圧縮されたテクスチャデータ
を受信したとき、該テクスチャデータを解凍する手段
と、 解凍されたテクスチャデータを前記テクスチャメモリに
保存する手段と、 GAコマンドで指定された図形のレンダリングを行う手
段とを備え、 前記グラフィックアクセラレータ(GA)が、前記利用
者プログラムから入力されたテクスチャデータに基づい
て図形のレンダリング処理を行うように構成されている
ことを特徴とする図形処理システムとグラフィックアク
セラレータ(GA)間におけるテクスチャデータ管理方
式。
1. According to an instruction from a user program,
A graphic processing system for generating a GA command for a graphics accelerator (GA) and transmitting the GA command, rendering a graphic based on the GA command received from the graphic processing system, and speeding up texture mapping In a texture data management method with a graphics accelerator (GA) provided with a texture memory for holding texture data internally, the graphic processing system includes a texture data size passed from the user program, Means for determining whether the texture data is larger than a predetermined constant; and means for compressing the texture data when the size of the texture data is larger than the constant, wherein the graphic accelerator (GA) comprises: Processing system Means for decompressing the texture data when receiving the compressed texture data from the apparatus, means for storing the decompressed texture data in the texture memory, and means for rendering a figure specified by the GA command. Wherein the graphic accelerator (GA) is configured to perform a graphic rendering process based on texture data input from the user program, between the graphic processing system and the graphic accelerator (GA). Texture data management method.
【請求項2】 前記図形処理システムは、さらに、 テクスチャメモリサイズから登録済みテクスチャの全サ
イズを減算したテクスチャメモリ残サイズが、前記利用
者プログラムから受信したテクスチャデータのサイズよ
り大きいか否かを判定する手段と、 テクスチャメモリ残サイズが、前記利用者プログラムか
ら受信したテクスチャデータのサイズより大きいとき、
前記グラフィックアクセラレータ(GA)内のテクスチ
ャメモリ残サイズから、前記利用者プログラムから受信
した登録すべきテクスチャのサイズを減算して、前記テ
クスチャメモリ残サイズを更新する手段と、 圧縮されたテクスチャデータから前記グラフィックアク
セラレータ(GA)のテクスチャメモリに登録するGA
コマンドを生成して、該GAコマンドを前記グラフィッ
クアクセラレータ(GA)に転送する手段とを備え、 前記グラフィックアクセラレータ(GA)は、さらに、 受信したGAコマンドがテクスチャデータ登録コマンド
であるか否かを判定する手段と、 受信したGAコマンドがテクスチャデータ登録コマンド
である場合に、受信したテクスチャデータが圧縮テクス
チャデータであれば、該テクスチャデータを解凍する手
段を呼び出すための手段とを備えたことを特徴とする請
求項1に記載の図形処理システムとグラフィックアクセ
ラレータ(GA)間におけるテクスチャデータ管理方
式。
2. The graphic processing system further determines whether a remaining texture memory size obtained by subtracting all registered texture sizes from the texture memory size is larger than a size of texture data received from the user program. Means for performing, when the remaining size of the texture memory is larger than the size of the texture data received from the user program,
Means for updating the remaining texture memory size by subtracting the size of the texture to be registered received from the user program from the remaining texture memory size in the graphic accelerator (GA); GA registered in texture memory of graphic accelerator (GA)
Means for generating a command and transferring the GA command to the graphic accelerator (GA). The graphic accelerator (GA) further determines whether or not the received GA command is a texture data registration command. And a means for calling a means for decompressing the texture data if the received texture data is compressed texture data when the received GA command is a texture data registration command. A texture data management method between the graphic processing system and a graphic accelerator (GA) according to claim 1.
【請求項3】 前記図形処理システムは、 利用者プログラムから渡された関数がテクスチャデータ
登録関数である場合はテクスチャデータ圧縮判定手段を
呼び出し、テクスチャデータ登録関数でない場合には利
用者プログラムから渡された関数とその引数からGAコ
マンドを生成して、GAコマンドバッファへ書き込んだ
後にGAコマンドデータ転送手段を呼び出す、GAコマ
ンド変換手段と、 前記GAコマンド変換手段から呼ばれ、テクスチャデー
タを圧縮するかどうかの判定を定数Bとの比較によって
行ない、圧縮しない場合には非圧縮テクスチャ保存手段
を呼び出し、圧縮する場合には圧縮テクスチャデータ保
存手段を呼び出すテクスチャデータ圧縮判定手段と、 前記テクスチャデータ圧縮判定手段から呼ばれ、利用者
プログラムから渡された非圧縮テクスチャデータを保存
した後にテクスチャメモリオーバーフロー判定手段を呼
び出す非圧縮テクスチャデータ保存手段と、 前記テクスチャデータ圧縮判定手段から呼ばれ、利用者
プログラムから渡されたテクスチャデータを可逆圧縮し
た後に圧縮テクスチャデータ保存手段を呼び出すテクス
チャデータ圧縮手段と、 前記テクスチャデータ圧縮手段から呼ばれ、該テクスチ
ャデータ圧縮手段で生成した圧縮テクスチャデータを保
存した後にテクスチャメモリオーバーフロー判定手段を
呼び出す圧縮テクスチャデータ保存手段と、 前記非圧縮テクスチャデータ保存手段と前記圧縮テクス
チャデータ保存手段から呼ばれ、グラフィックスアクセ
ラレータ(GA)内のテクスチャメモリに、利用者プロ
グラムから渡されたテクスチャデータを登録可能かどう
かを判定し、登録可能である場合にはテクスチャメモリ
残サイズ更新手段を呼び出し、登録不可能な場合には登
録済テクスチャデータ無効手段を呼び出すテクスチャメ
モリオーバーフロー判定手段と、 前記テクスチャメモリオーバーフロー判定手段から呼ば
れ、GA内のテクスチャメモリに登録済のテクスチャデ
ータの中で登録を無効にするテクスチャデータを選択
し、その選択したテクスチャデータの登録を無効にする
GAコマンドを生成し、該GAコマンドをGAコマンド
バッファへ書き込み、テクスチャメモリの残サイズに無
効にする登録済テクスチャのサイズを加算した後に、前
記テクスチャメモリ残サイズ更新手段を呼び出す登録済
テクスチャデータ無効手段と、 前記テクスチャメモリオーバーフロー判定手段と前記登
録済テクスチャデータ無効手段から呼ばれ、GA内のテ
クスチャメモリ残サイズから、利用者プログラムより渡
された登録すべきテクスチャのサイズを減算した後に、
テクスチャ登録GAコマンド作成手段を呼び出すテクス
チャメモリ残サイズ更新手段と、 前記テクスチャメモリ残サイズ更新手段から呼ばれ、前
記テクスチャデータ圧縮手段で生成された圧縮テクスチ
ャデータもしくは利用者プログラムから渡されたテクス
チャデータから、GAのテクスチャメモリに登録するG
Aコマンドを生成した後に、GAコマンドデータ転送手
段を呼び出すテクスチャ登録GAコマンド作成手段と、 GAコマンド変換手段とGA登録テクスチャコマンド作
成手段から呼ばれ、GAコマンドバッファに書き込まれ
ているGAコマンド列をグラフィックアクセラレータ
(GA)へ転送するGAコマンドデータ転送手段とを備
え、 前記グラフィックアクセラレータ(GA)は、 前記図形処理システムから送られたGAコマンドを順次
受け取り、該GAコマンドが登録済テクスチャデータの
無効化コマンドである場合には登録済テクスチャデータ
無効化手段を呼び出し、無効化コマンドでない場合に
は、該GAコマンドがテクスチャデータ登録コマンドで
あるならばテクスチャデータ圧縮検知手段を呼び出し、
該GAコマンドがテクスチャデータ登録コマンドでなけ
ればGAレンダリング手段を呼び出す、GAコマンドデ
ータ入力手段と、 前記GAコマンドが登録済テクスチャデータの無効化コ
マンドである場合に前記GAコマンドデータ入力手段か
ら呼ばれ、前記図形処理システム側の登録済テクスチャ
データデータ無効手段で指定されたテクスチャデータを
テクスチャメモリから削除し、およびテクスチャメモリ
を管理するテクスチャメモリ管理テーブルの当該エント
リを削除する、登録済テクスチャデータ無効化手段と、 前記GAコマンドがテクスチャデータ登録コマンドであ
る場合に前記GAコマンドデータ入力手段から呼ばれ、
渡されたテクスチャデータが圧縮テクスチャデータであ
る場合には圧縮テクスチャデータ解凍手段を呼び出し、
圧縮テクスチャデータでない場合にはテクスチャデータ
保存手段を呼び出す、テクスチャデータ圧縮検知手段
と、 渡されたテクスチャデータが圧縮テクスチャデータであ
る場合に前記テクスチャデータ圧縮検出手段から呼ば
れ、前記図形処理システム側のテクスチャデータ圧縮手
段によって可逆圧縮された圧縮テクスチャデータを解凍
した後に、テクスチャデータ保存手段を呼び出すテクス
チャデータ解凍手段と、 前記テクスチャデータ圧縮検知手段と前記テクスチャデ
ータ解凍手段から呼ばれ、テクスチャメモリ管理テーブ
ルのエントリに、少なくともIDと、テクスチャデータ
のサイズと、テクスチャメモリ内格納位置とを含む関連
情報を保存し、渡されたテクスチャデータをテクスチャ
メモリに保存する、テクスチャデータ保存手段と、 前記GAコマンドデータ入力手段から呼ばれ、GAコマ
ンドで指定される図形のレンダリング処理を行い、フレ
ームバッファ(FRB)上のイメージを生成し、該FR
Bに書き込むGAレンダリング手段とを備えたことを特
徴とする請求項2に記載の図形処理システムとグラフィ
ックアクセラレータ(GA)間におけるテクスチャデー
タ管理方式。
3. The graphic processing system calls a texture data compression judging means when the function passed from the user program is a texture data registration function, and passes it from the user program when the function is not a texture data registration function. A GA command conversion means for generating a GA command from the function and its argument and writing the GA command into the GA command buffer and then calling the GA command data transfer means; and a method for calling the GA command conversion means and compressing the texture data. Is determined by comparing with a constant B. If not compressed, the uncompressed texture storage means is called, and if compressed, the texture data compression determination means calls the compressed texture data storage means. Called from the user program An uncompressed texture data storage unit for calling a texture memory overflow determination unit after storing the passed uncompressed texture data; and after reversibly compressing the texture data passed from the user program and called from the texture data compression determination unit. Texture data compression means for calling compressed texture data storage means; compressed texture data storage means for calling texture memory overflow determination means after storing compressed texture data generated by the texture data compression means and generated by the texture data compression means; The texture passed from the user program to the texture memory in the graphics accelerator (GA), which is called from the uncompressed texture data storage means and the compressed texture data storage means. A texture memory overflow determining means for determining whether data can be registered, calling a texture memory remaining size updating means if the data can be registered, and calling a registered texture data invalidating means if the data cannot be registered; It is called from the memory overflow determination means, selects texture data for which registration is to be invalidated from among texture data registered in the texture memory in the GA, and generates a GA command for invalidating the registration of the selected texture data. Writing the GA command into a GA command buffer, adding the size of the registered texture to be invalidated to the remaining size of the texture memory, and then calling the texture memory remaining size updating unit; and the texture memory overflow. Size After the texture size to be registered passed from the user program is subtracted from the remaining texture memory size in the GA,
Texture memory remaining size updating means for calling a texture registration GA command creating means; and compressed texture data called by the texture memory remaining size updating means and generated by the texture data compression means or texture data passed from a user program. G to be registered in the texture memory of GA
After generating the A command, the GA command data transfer means is called by the texture registration GA command creation means, and the GA command conversion means and the GA registration texture command creation means are called by the GA command string written in the GA command buffer. GA command data transfer means for transferring to the accelerator (GA), wherein the graphic accelerator (GA) sequentially receives the GA command sent from the graphic processing system, and the GA command invalidates the registered texture data. If the GA command is a texture data registration command, the texture data compression detecting means is called if the GA command is a texture data registration command.
If the GA command is not a texture data registration command, the GA command data input means for calling a GA rendering means; and if the GA command is a command for invalidating registered texture data, the GA command data input means is called from the GA command data input means; Registered texture data invalidating means for deleting the texture data specified by the registered texture data data invalidating means on the graphic processing system side from the texture memory, and deleting the entry of the texture memory management table for managing the texture memory. Is called from the GA command data input means when the GA command is a texture data registration command,
If the passed texture data is compressed texture data, call the compressed texture data decompression means,
If the texture data is not compressed texture data, the texture data storage means is called. If the passed texture data is compressed texture data, the texture data compression detection means calls the texture data compression detection means. After decompressing the compressed texture data reversibly compressed by the texture data compression means, the texture data decompression means for calling the texture data storage means, the texture data compression detection means and the texture data decompression means are called by the texture memory management table. Texture data storage means for storing related information including at least an ID, a size of texture data, and a storage position in a texture memory in an entry, and storing the passed texture data in the texture memory. The GA is called from the command data input unit performs rendering processing of the graphic designated by GA command to produce an image on the frame buffer (FRB), the FR
3. A texture data management method between a graphic processing system and a graphic accelerator (GA) according to claim 2, further comprising: a GA rendering means for writing into B.
【請求項4】 前記テクスチャデータ圧縮手段がテクス
チャデータを圧縮する方法は、 同一文字が連続している時、その出現回数を併記して全
体のデータ量を減らす方法か、出現頻度に応じてコード
を変更し、高頻度の文字には短く、低頻度の文字には長
くする方法か、出現頻度の高いパターンに特定符号を割
り当てる方法か、無意味な情報を削除する方法か、の何
れかであることを特徴とする請求項3に記載の図形処理
システムとグラフィックアクセラレータ(GA)間にお
けるテクスチャデータ管理方式。
4. A method of compressing texture data by the texture data compressing means, wherein, when the same character is continuous, the number of appearances is written together to reduce the entire data amount, or a code is made according to the appearance frequency. And change it to short for high-frequency characters and long for low-frequency characters, assign a specific code to patterns that appear frequently, or delete meaningless information. 4. A texture data management system between a graphic processing system and a graphic accelerator (GA) according to claim 3, wherein:
【請求項5】 前記テクスチャデータを圧縮する方法及
び前記定数は、 前記テクスチャデータの圧縮により削減される、図形処
理システムとグラフィックアクセラレータ(GA)間の
転送時間が、 前記テクスチャデータ圧縮判定手段が行うテクスチャデ
ータの圧縮時間と、前記テクスチャデータ解凍手段が行
う圧縮テクスチャデータの解凍時間との内、大きい方の
値を上回るように決定されることを特徴とする請求項4
に記載の図形処理システムとグラフィックアクセラレー
タ(GA)間におけるテクスチャデータ管理方式。
5. The method for compressing the texture data and the constant, wherein the transfer time between the graphic processing system and the graphic accelerator (GA), which is reduced by the compression of the texture data, is performed by the texture data compression determining means. 5. The method according to claim 4, wherein the compression time is determined so as to exceed a larger value of a compression time of the texture data and a decompression time of the compressed texture data performed by the texture data decompression means.
2. A texture data management method between a graphic processing system and a graphic accelerator (GA) described in (1).
JP12777199A 1999-05-07 1999-05-07 Texture data management method between graphic processing system and graphic accelerator (GA) Expired - Fee Related JP3319432B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12777199A JP3319432B2 (en) 1999-05-07 1999-05-07 Texture data management method between graphic processing system and graphic accelerator (GA)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12777199A JP3319432B2 (en) 1999-05-07 1999-05-07 Texture data management method between graphic processing system and graphic accelerator (GA)

Publications (2)

Publication Number Publication Date
JP2000322555A true JP2000322555A (en) 2000-11-24
JP3319432B2 JP3319432B2 (en) 2002-09-03

Family

ID=14968299

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12777199A Expired - Fee Related JP3319432B2 (en) 1999-05-07 1999-05-07 Texture data management method between graphic processing system and graphic accelerator (GA)

Country Status (1)

Country Link
JP (1) JP3319432B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009176244A (en) * 2008-01-28 2009-08-06 Sammy Corp Image forming apparatus and program
CN109727183A (en) * 2018-12-11 2019-05-07 中国航空工业集团公司西安航空计算技术研究所 The dispatching method and device of a kind of figure Render Buffer compaction table

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009176244A (en) * 2008-01-28 2009-08-06 Sammy Corp Image forming apparatus and program
CN109727183A (en) * 2018-12-11 2019-05-07 中国航空工业集团公司西安航空计算技术研究所 The dispatching method and device of a kind of figure Render Buffer compaction table

Also Published As

Publication number Publication date
JP3319432B2 (en) 2002-09-03

Similar Documents

Publication Publication Date Title
US5936616A (en) Method and system for accessing and displaying a compressed display image in a computer system
US7190284B1 (en) Selective lossless, lossy, or no compression of data based on address range, data type, and/or requesting agent
US7944441B2 (en) Compression and decompression of data using plane equations
US5450130A (en) Method and system for cell based image data compression
EP1074945B1 (en) Method and apparatus for controlling compressed Z information in a video graphics system
US6762761B2 (en) Method and system for graphics rendering using hardware-event-triggered execution of captured graphics hardware instructions
US6630933B1 (en) Method and apparatus for compression and decompression of Z data
CN106030652B (en) Method, system and composite display controller for providing output surface and computer medium
KR19980025110A (en) Data processor and graphics processor
CN110996105A (en) Method of variable rate compression and method of variable rate decompression
CN110214338A (en) Application of the increment color compressed to video
US20120218292A1 (en) System and method for multistage optimized jpeg output
JP3319432B2 (en) Texture data management method between graphic processing system and graphic accelerator (GA)
US6459737B1 (en) Method and apparatus for avoiding redundant data retrieval during video decoding
JP2959519B2 (en) Graphics display
JPH10190478A (en) Data compressing device and method, recording medium, and data expanding device and method
CN112991412B (en) Liquid crystal instrument sequence frame animation performance optimization method and liquid crystal instrument
JP2000278693A (en) Moving picture expanding method and recording medium recording program executing the same
US6320908B1 (en) Moving pictures decompression device and method with reduced process speed of decoding software
JPH10307925A (en) Image processing device and method
US7346220B2 (en) Method and apparatus for reducing the bandwidth required to transmit image data
JPH10105672A (en) Computer and memory integrated circuit with operation function to be used in this computer
US20030039391A1 (en) Method and apparatus for transmitting image updates employing high compression encoding
JP2897876B2 (en) Code data expansion processing method
JPH05265416A (en) Image information transmission system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020521

LAPS Cancellation because of no payment of annual fees