Decoder unit for texture decompression

By designing a decoder unit configured with multiple groups of decoders, and allocating encoded texture data blocks according to texel requests, the problem of hardware resource efficiency and performance inefficiency when decoding multiple texels in the existing technology is solved, and efficient textures are achieved decoding.

CN113518223BActive Publication Date: 2024-10-25IMAGINATION TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110975521.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-04-28
Filing Date
2018-04-28
Publication Date
2024-10-25
Estimated Expiration
2038-04-28

AI Technical Summary

Technical Problem

The existing technology requires a large amount of hardware resources when decoding multiple texels in graphics processing, resulting in large circuit area and inefficient performance. In particular, there is a problem of high hardware requirements when decoding multiple texels in parallel.

Method used

A decoder unit is designed to decode multiple texels according to texel requests by configuring a first group and a second group of decoders. The first group of decoders decodes n texels in parallel, and the second group of decoders decodes n texels in parallel. Decode p texels, where p < n, and the control logic allocates encoded texture data blocks according to texel requests, optimizing hardware efficiency and performance.

Benefits of technology

It is possible to improve the performance of decoding multiple texels, reduce unnecessary power consumption and processing volume, and improve hardware efficiency without increasing hardware requirements and circuit size.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113518223B_ABST
    Figure CN113518223B_ABST
Patent Text Reader

Abstract

A decoder unit for texture decompression. The decoder unit is configured to decode a plurality of texels according to a texel request, the plurality of texels being encoded across one or more encoded texture data blocks, each encoded texture data block encoding a texel block, the decoder unit including: a first set of one or more decoders, each in the first set of decoders being configured to decode n texels from a single received encoded texture data block; a second set of one or more decoders, each in the second set of decoders being configured to decode p texels from a single received encoded texture data block, where p < n; and control logic configured to allocate the encoded texture data blocks to the decoders according to the texel request.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the original invention patent application with application number 201810399411.0 (original application date: April 28, 2018, original invention name: decoder unit for texture decompression). Technical Field

[0002] The invention relates to a decoder unit for decoding a plurality of texels encoded across one or more blocks of encoded texture data. Background Art

[0003] Textures are used extensively in the field of graphics processing. Textures can be used to represent surface characteristics, lighting (e.g., within the context of a scene being imaged), or to apply surface detail to rendered objects. Textures can require a relatively large amount of memory storage, and texture accesses can contribute a large proportion of the memory bandwidth of a graphics device. As such, it is often desirable to compress texture data.

[0004] There are various texture compression schemes or formats. One class of texture compression schemes is known as block-based schemes. In a block-based scheme, the compressed texture data is encoded into a series of data blocks of a given size (e.g., 64 bits or 128 bits). Each data block encodes the texture data for a particular texel block of the texture (e.g., a 2×2 or 4×4 texel block). Examples of block-based texture compression schemes include, for example, PowerVR Texture Compression (PVRTC), PVRTC2, S3 Texture Compression (S3TC, also known as BC1, BC2, and BC3); Adaptive Scalable Texture Compression (ASTC); Ericsson Texture Compression (ETC); ETC2; EAC; 3Dc (also known as BC4 and BC5); BC6 and BC7.

[0005] It is often desirable for a graphics system to decode multiple texels simultaneously or in parallel in order to improve the performance of the system when rendering a scene. Further motivation comes from the fact that, in many graphics applications, the texels to be decoded may be grouped together into multiple groups of multiple texels. For example, in many graphics pipelines, the texture color to be applied to a particular pixel being processed is obtained by filtering multiple adjacent texels that map to the pixel. Therefore, when processing a pixel, it may be necessary to decode multiple texels for use in a filtering operation in order to obtain the final texture color for the pixel. Some graphics systems may additionally process multiple pixels simultaneously, each of which may require multiple texels to be decoded as part of a filtering operation.

[0006] An effective way to handle this need to decode multiple texels (from a performance perspective) is to simply have the required number of decoders, each operating in parallel such that the total number of texels that can be decoded in parallel matches or exceeds the number of texels in a given texel request. However, this method has the drawback of high hardware requirements, which may manifest as a large circuit area. For example, simply operating "n" decoders in parallel to handle texture requests at a desired performance level results in a decoder circuit that is proportionally n times larger. SUMMARY OF THE INVENTION

[0007] According to the present invention, there is provided a decoder unit configured to decode a plurality of texels according to a texel request, the plurality of texels being encoded across one or more encoded texture data blocks that each encode a texel block, the decoder unit comprising:

[0008] A first set of one or more decoders, each in the first set of decoders being configured to decode n texels from a single received encoded texture data block;

[0009] A second set of one or more decoders, each in the second set of decoders being configured to decode p texels from a single received encoded texture data block, where p < n; and

[0010] Control logic configured to allocate the encoded texture data blocks to the decoders according to the texel request.

[0011] Each of the second set of one or more decoders may be configured to decode a single texel from the received encoded texture data block.

[0012] Each of the second set of one or more decoders may be configured to decode two texels from the received encoded texture data block.

[0013] Each of the first set of decoders may be configured to decode four texels from a single received encoded texture data block.

[0014] The ratio of the number of decoders in the first set to the number of decoders in the second set may be 4:2.

[0015] The ratio of the number of decoders in the first set to the number of decoders in the second set may be 4:1.

[0016] The control logic may be configured to, in response to a texel request indicating that a 2×2 sub-block of texels encoded across more than one encoded texture data block is to be decoded, allocate at least one encoded texture data block to two decoders in the second set, each of the more than one encoded texture data blocks encoding at least one texel of the 2×2 sub-block.

[0017] The control logic may be configured to allocate a coded texture data block encoding two texels of the 2x2 sub-block to two decoders in the second group in response to a texel request indicating that the 2x2 sub-block overlaps edges of two adjacent texel blocks.

[0018] The control logic may be configured to allocate two different coded blocks of texture data encoding two different texels of the 2x2 sub-block to two decoders in the second group in response to a texel request indicating that the 2x2 block overlaps a corner of four adjacent texel blocks.

[0019] The control logic may be configured to assign to decoders in the first group a block of coded data encoding at least one other texel of the 2x2 sub-block different from the blocks assigned to decoders in the second group.

[0020] Each coded texture data block may be encoded according to the Adaptive Scalable Texture Compression (ASTC) format.

[0021] Each of the first set of decoders may include:

[0022] a parameter decoding unit, the parameter decoding unit being configured to decode the configuration data of the received texture data block;

[0023] a color decoding unit configured to decode color endpoint data of n texels of the received block according to the configuration data;

[0024] a weight decoding unit configured to decode interpolation weight data for each of the n texels of the received block according to the configuration data; and

[0025] at least one interpolator unit configured to calculate a color value for each of the n texels of the received block using interpolation weight data for the texel and a pair of color endpoints from the color endpoint data;

[0026] In which, at least one of the parameter decoding unit, the color decoding unit and the weight decoding unit is configured to decode intermediate data from a received block, the intermediate data being common to the decoding of the texels of the block, and is configured to use the decoded intermediate data when decoding at least two texels out of n texels from the received texture data block.

[0027] At least one of the parameter decoding unit, the color decoding unit, and the weight decoding unit may be configured to use the same data as part of decoding of each of the n texels.

[0028] The first portion of the configuration data may be common to the decoding of the n texels, and the weight decoding unit is configured to use the first portion of the configuration data to decode the interpolation weight data for each of the n texels.

[0029] The first portion of the configuration data may include at least one of: a weight grid size specifying the dimensions of the weight grid; and a weight range specifying the range of values ​​occupied by the weights of the grid.

[0030] The second portion of the configuration data may be common to decoding of texels of the received block, and the color decoding unit may be configured to use the second portion of the configuration data to decode color endpoint data for each of the n texels.

[0031] A second portion of the configuration data may include color endpoint mode data that specifies how to convert a set of color endpoint values ​​into a pair of color endpoints.

[0032] The parameter decoding unit may be configured to: decode intermediate configuration data from a received block of texture data as part of the decoded configuration data; and use the same intermediate configuration data to decode a partition index for each of the n texels.

[0033] The intermediate configuration data may include at least one of: a partition mode index; and a partition number.

[0034] The color decoding unit may be configured to: decode intermediate color data from a received block of texture data as part of decoding color endpoint data, the intermediate color data being common to decoding of texels of the block; and use the intermediate color data to decode color endpoint data for each of the n texels.

[0035] The intermediate color data may include the size of the data within the block used to represent the color endpoints.

[0036] The intermediate color data may also include color endpoint mode data that specifies how to convert a set of color endpoint values ​​into a pair of color endpoints.

[0037] The color decoding unit may be configured to decode a set of color values ​​and convert those values ​​into a pair of color endpoints for each of a plurality of texels, the color decoding unit being configured to use at least one of the color endpoints of two or more of the n texels.

[0038] The weight decoding unit may be configured to: decode intermediate weight data from a received block of texture data as part of decoding interpolation weight data, the intermediate weight data being common to the texels of the block; and use the data to decode interpolation weight data for each of the n texels.

[0039] The intermediate data may include the size of the data within the block used to represent the interpolation weight data.

[0040] The texels represented by a block can be divided into n p partitions, and the decoder may include n p interpolators, each interpolator being configured to calculate color values ​​for a subset of texels in a corresponding partition using interpolation weight data for the texel and a corresponding pair of color endpoints from the color endpoint data.

[0041] The texture data blocks may be encoded according to one of the following texture compression formats: S3TC; PVR-TC; PVR-TC2; ASTC; ETC1; ETC2; EAC; 3Dc; and BC1-BC5.

[0042] According to a second aspect of the present disclosure, a method for decoding a plurality of texels according to a texel request is provided, the texels being encoded across one or more coded texture data blocks each encoding a block of texels, the method comprising: allocating the coded texture data block to a decoder in a first group of one or more decoders and a second group of one or more decoders according to the texel request, wherein each of the first group of decoders is configured to decode n texels from a received single coded texture data block, and each of the second group of decoders is configured to decode p texels from a received single coded texture data block, wherein p <n。

[0043] There may be a decoder unit configured to perform the method described above.

[0044] The decoder unit may be embodied in hardware on an integrated circuit.

[0045] There may be a method of manufacturing a decoder unit as described herein.

[0046] Computer readable code may be provided which is configured to cause the method as described herein to be performed.

[0047] A computer readable storage medium having computer readable code encoded thereon may be provided.

[0048] An integrated circuit definition data set may be provided that, when processed in an integrated circuit manufacturing system, configures the integrated circuit manufacturing system to manufacture a decoder unit as described herein.

[0049] A non-transitory computer-readable storage medium having stored thereon a computer-readable description of an integrated circuit, which when processed in an integrated circuit manufacturing system causes the integrated circuit manufacturing system to manufacture a decoder unit as described herein, may be provided.

[0050] There may be an integrated circuit manufacturing system configured to manufacture a decoder unit as described herein.

[0051] An integrated circuit manufacturing system may be provided, the integrated circuit manufacturing system comprising:

[0052] a non-transitory computer readable storage medium having stored thereon a computer readable description of an integrated circuit describing a decoder unit as described herein;

[0053] a layout processing system configured to process an integrated circuit description to generate a circuit layout description of an integrated circuit embodying a decoder unit as described herein; and

[0054] An integrated circuit production system is configured to fabricate a decoder unit from a circuit layout description. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The present invention will now be described by way of example with reference to the accompanying drawings. In the drawings:

[0056] Figure 1A A texel subblock to be decoded as part of a texel request is shown, which falls entirely within a texel block encoded by a data block.

[0057] Figure 1B A texel sub-block to be decoded as part of a texel request is shown, the texel sub-block overlapping the edges of two adjacent texel blocks.

[0058] Figure 1C A texel sub-block to be decoded as part of a texel request is shown, overlapping the corners of four adjacent texel blocks.

[0059] Figure 2 An example of a decoder unit for decoding a number of texels indicated in a texel request is shown.

[0060] Figure 3 It illustrates how texels indicated in a texel request are distributed across multiple texel blocks encoded by a corresponding data block.

[0061] Figure 4A A pair of color endpoints in the RG color space is shown.

[0062] Figure 4B An example of texel weights for each texel of a 4×4 block is shown.

[0063] Figure 4C Two color endpoint pairs are shown that lie within the RG color space.

[0064] Figure 4DA 4x4 texel block is shown with a partition mask indicating the partition index of each texel and a weight grid indicating the weight of each texel.

[0065] Figure 5 Shown for Figure 2 Examples of multi-output ASTC decoders in a first and possibly second set of decoders of decoder units are shown.

[0066] Figure 6 Shows the formation Figure 5 An example structure of a parameter decoding unit that is part of a decoder is shown.

[0067] Figure 7 Shows the composition Figure 5 An example structure of a color decoding unit that is part of a decoder is shown.

[0068] Figure 8 Shows the formation Figure 5 An example structure of a weight decoding unit as part of a decoder is shown.

[0069] Fig. 9 A diagram showing how the coordinates of texels in a block can be rescaled to the size of the weight grid.

[0070] Fig.10 A computer system is shown in which a decoder unit may be implemented.

[0071] Fig.11 An example of an integrated circuit manufacturing system is shown. DETAILED DESCRIPTION

[0072] The present disclosure relates to a decoder unit configured to decode a plurality of texels encoded across one or more coded texture data blocks. Each coded texture data block may encode a texel block of a texture. In the case where the texture decoder is configured to decode a plurality of texels, the texels to be decoded may be in the form of a set of texel sub-blocks. Each of those texel sub-blocks may be continuous or discontinuous with other texel sub-blocks. Some texel sub-blocks may overlap with other texel sub-blocks. Different texel sub-blocks may be encoded by different coded texture data blocks, and / or one or more texel sub-blocks may be partially encoded by two or more texture data blocks. That is, a texel sub-block to be decoded by a decoder may be positioned so that it overlaps with the edges of two (or four) texture data blocks, each of which is encoded as a separate texel block. In this case, the texel sub-block may be encoded by two or more (e.g., four) corresponding data blocks. Figures 1A to 1C A possible overlap between a texel sub-block and a texel block encoded by a texture data block is illustrated.

[0073] Figure 1AIt is shown that the texel sub-block 102 to be decoded falls entirely within the texel block 104 encoded in a single coded texture data block schematically shown at 106. That is, Figure 1A The case where the texel sub-block to be decoded is encoded in a single coded texture data block is illustrated. Figure 1B An example is shown in which a texel sub-block 102 to be decoded overlaps the edges of adjacent texel blocks 104 and 108 encoded in different texture data blocks 106 and 110. Figure 1B In the example, the texel subblock is partially encoded in the coded texture data block 106 and partially encoded by the coded texture data block 110. Finally, Figure 1C An example is shown where a texel sub-block 102 overlaps the corners of adjacent texel blocks 104, 108, 112 and 114, which are encoded by different texture data blocks 106, 110, 116 and 118, respectively. Figure 1C In the examples shown, a sub-block of texels is encoded by each portion of the texture data blocks 106, 110, 116, and 118. In each of these examples, the texel block encoded by the data block has a size of 8×8 texels and the sub-block has a size of 2×2 texels. These values ​​are selected for illustration only.

[0074] Although texel sub-blocks are shown herein as rectangular sub-blocks, it will be understood that texel sub-blocks may have other shapes. For example, texel sub-blocks may be irregularly shaped. If a texel sub-block is an irregular shape, the sub-block may overlap an odd number of adjacent texel blocks (e.g., an irregularly shaped texel sub-block may overlap three adjacent texel blocks). In addition, although in Figure 1A-Figure 1C The textures shown in and in other examples described herein are shown and described as two-dimensional textures, but it should be understood that the techniques described herein can be applied to three-dimensional textures (e.g., as supported by ASTC). In the case of 3D textures, a texture subblock may overlap up to eight adjacent texel blocks.

[0075] The decoder unit includes a first group of one or more decoders and a second group of one or more decoders. The decoders of the first group are configured to decode a different number of texels from a received texture data block in parallel than the decoders of the second group. The decoder also includes control logic that allocates the encoded texture data block to the decoders of the first group and the decoders of the second group based on the texel request. By having at least two groups of decoders that decode different numbers of texels from the texture data block, wherein the decoders of at least one group are capable of decoding multiple texels in parallel, the decoder unit can benefit from a high performance level without a commensurate increase in hardware requirements or circuit size. This is in part because multiple decoders are able to decode multiple texels in parallel with greater hardware efficiency than operating multiple single-output decoders in parallel. This will be illustrated with respect to the various examples described below.

[0076] In the following example, the decoder unit includes two sets of decoders. This is for illustrative purposes only, and it will be understood that in other examples, the decoder unit may include more than two sets of decoders, where each set of decoders is capable of decoding a different number of texels in parallel.

[0077] Figure 2 Decoder unit 200 is shown. Decoder unit 200 includes a first set of decoders generally designated 202 and a second set of decoders generally designated 204. The first set of decoders is formed by q decoders 206 1,2,...,q and the second set of decoders is formed by r decoders 208 1,2,...,r . Generally, the first set is formed by one or more decoders (i.e., q≥1), and the second set is formed by one or more decoders (i.e., r≥1). The decoder also includes control logic 210 coupled to each of the decoders in the first and second sets.

[0078] Each of the first set of decoders 202 is configured to decode n texels from a single received encoded texture data block, and each of the second set of decoders 204 is configured to decode p texels from a single received texture data block, where p < n. Each decoder in the second set decodes at least one texel from the data block, and thus each of the decoders in the first set is a multi-decoder; that is, each of the decoders in the first set can be configured to decode multiple texels in parallel from a single received texture data block.

[0079] Decoder unit 200 is configured to decode multiple texels according to a texel request. The decoder unit is capable of decoding up to n t texels simultaneously or in parallel, where n t = q.n + r.p. The number of texels to be decoded according to the texel request can be less than or equal to the number of texels that can be decoded simultaneously by decoder unit 200. If the number of texels to be decoded according to the texel request is greater than the value n t , then the texels forming the request may need to be decoded in multiple passes. In such a case, control logic 210 may perform multiple allocation passes, where in each allocation pass, logic 210 allocates the encoded texture data blocks to the multiple sets of decoders.

[0080] If the number of texels forming part of the texture request is less than the value n t, then in order to decode a plurality of texels indicated by the texel request, the decoder unit may decode a plurality of unwanted texels (i.e., texels not specified by the request). This may cause the decoder unit to consume unnecessary power. The control logic 210 is therefore configured to allocate the encoded texture data blocks to the decoders of the first and second groups according to the texel requests. The control logic may allocate the texture data blocks to the decoders so as to minimize the number of texels that are decoded that are not part of the texel request. This may reduce unnecessary processing and thereby potentially save energy.

[0081] A plurality of texels to be decoded are encoded across one or more coded texture data blocks, wherein each coded texture data block encodes a block of texels for a texture. For simplicity, a coded texture data block (e.g., Figure 1B 106 and 110 in the figure) may be referred to herein as a data block, and a block may be referred to herein as a data block because it involves the arrangement of texels (e.g., Figure 1B The blocks 104 and 108 shown in FIG. 10A and 10B may be referred to as texel blocks. The data blocks may have a fixed size (ie, the number of bits) depending on the texture compression format used to encode the texture data. The size of the texel block encoded by each data block may also depend on the texture compression format.

[0082] The texel request may be a request from a texture pipeline unit of a graphics system (such as a GPU). The request may be made in response to the graphics system processing pixel data for one or more pixels to be rendered. In general, the request is an indication that a group of texels is to be decoded. Therefore, the request may group or link multiple texels into a group and indicate that the texels in the group are to be decoded. The request may be in the form of an explicit instruction received by the decoder unit 200. For example, the instruction may specify that a group of texels is to be decoded (e.g., by specifying the coordinates of each texel in the group). Alternatively, the request may be in the form of an implicit instruction to decode a group of texels. For example, the request may contain an indication of one or more pixels to be processed. The decoder unit 200 may then map each of the one or more pixels to a corresponding one or more texels of the texture in order to identify the texels to be decoded. Grouping the texels as indicated by the request may be performed by the decoder unit 200 or some other part of the graphics system where the decoder is located. That is, the decoder unit may receive a request indicating that a group of texels is to be decoded (implicitly or explicitly). Alternatively, the decoder unit 200 may receive multiple sub-requests, each sub-request indicating that a single texel is to be decoded. The decoder unit 200 may then group those sub-requests into a single request indicating that a group of texels is to be decoded.

[0083] For example, multiple texels may be grouped into a group for decoding with the aid of a filtering stage performed by the graphics system to calculate the texel color to be applied to the processed pixel. For example, the graphics unit may perform bilinear filtering of texels, where the texel color to be applied to a single pixel is calculated from the interpolation of a 2×2 texel block. Thus, the request may be an indication that a group of four texels are to be decoded. Some graphics units may additionally process more than one pixel simultaneously. The processing of each pixel may require multiple texels to be decoded. For example, if the graphics unit processes four pixels simultaneously, each of those pixels may require a separate four texel block to be decoded for the filtering operation, resulting in a request indicating that 16 texels are to be decoded. Of course, the request may indicate a different number of texels to be decoded. The number of texels to be decoded in the request may vary as different pixels are processed. That is, the number of texels indicated in the request may vary within a specific implementation within the graphics system, as the graphics system as the system processes different pixels of the image to be rendered. In addition, the number of texels indicated in the request may be different for implementations on different graphics systems. For example, the more pixels a graphics system is capable of processing in parallel, the higher the maximum number of texels indicated in the request may be.

[0084] The decoder unit 200 is arranged so that the decoders of the first group are able to simultaneously decode a different number of texels from a received single data block than the decoders of the second group. More specifically, the decoders of the first group are able to decode more texels in parallel from the received data block than the decoders of the second group. It is understood that the combination of decoders (i.e., the number of decoders in the first group and the second group) and the configuration of the decoders (i.e., the number of texels that the decoders of each group are able to decode in parallel) can be optimized so as to provide a decoder that can benefit from increased hardware efficiency without suffering a commensurate performance degradation. This is in contrast to conventional decoder arrangements, which typically include a group of decoders, each of which can decode the same number of texels (e.g., a single texel) from a data block.

[0085] To illustrate this, examples of more specific configurations of the decoder unit 200 will now be described. These example configurations have been determined to provide a potentially advantageous tradeoff between hardware efficiency and performance using the recognition that texels of a common texel request are typically grouped into one or more 2×2 texel sub-blocks. For example, in a request to decode 16 texels, those 16 texels may be grouped into 4 2×2 sub-blocks. The 2×2 block is a common configuration for texel requests because it is used for many filtering operations (such as bilinear filtering, trilinear filtering, and anisotropic filtering).

[0086] Because a texel request may typically comprise a request for a 2×2 sub-block of texels to be decoded, it has been recognised that a convenient arrangement of the decoder unit 200 is for each decoder of the first group to be configured to decode four texels in parallel from a received single coded texture data block. If a particular texel sub-block indicated by the request falls entirely within a texel block encoded by the data block (e.g. Figure 1A ), the decoders of the first group can decode all texels in the sub-block simultaneously. Providing multiple decoders capable of decoding four texels in parallel can provide improved hardware efficiency compared to operating four single-output decoders in parallel. This is because multiple decoders can have higher hardware efficiency than single decoders.

[0087] As above reference Figure 1B and Figure 1C As described above, the texel sub-block indicated by the request may not always be completely located in the texel block encoded in the single coded texture data block. The sub-block may, for example, overlap the edge of two adjacent texel blocks (e.g. Figure 1B ), or may overlap with the corners of four adjacent or consecutive texel blocks (as shown in Figure 1C In these cases, it is not possible to decode all texels of a subblock in parallel using a single decoder, even if the decoder is a multi-output decoder. This is because in these cases the texel subblock is not encoded within a single coded texture data block, but rather consists of two data blocks (in Figure 1B ) or four data blocks (in the example shown in Figure 1C ), and the decoder operates on only a single coded texture data block at a time. Therefore, in these cases, two or four data blocks need to be decoded in sequence in a sequential manner to decode the texel sub-block indicated by the request.

[0088] Processing Edges ( Figure 1B ) and corners ( Figure 1C ) is to arrange the decoder unit 200 so that the decoders of the second group are each capable of decoding only a single texel from the received data block (i.e., the decoders of the second group are single-output decoders). Although edge and corner cases can be handled by assigning each of the required data blocks to a corresponding decoder of the first group, this is not an efficient use of the processing power of the decoder unit because each decoder only requires a subset of the plurality of texels that can be decoded by those decoders. For example, where a 2×2 texel sub-block overlaps a corner of a 4 texel block, using four four-output decoders from the first group to decode those texels can provide those decoders with as little as 25% operating efficiency.

[0089] In an alternative arrangement, each of the decoders of the second group may be provided as a dual output decoder. That is, each of the decoders of the second group may be configured to decode two texels in parallel from a received single data block. This arrangement may be particularly effective in processing situations where a texel sub-block overlaps two adjacent texel blocks.

[0090] The number of decoders in each of the first and second groups may depend on the number of texels (or the maximum number) that may be indicated within a given texel request for a given implementation of the decoder unit 200. Considering the example that each request may contain an indication to decode up to 16 texels, it can be appreciated that at least four quad-output decoders are required to be able to decode all texels indicated in the request simultaneously. Of course, in some cases, the four quad-output decoders will not be able to decode the 16 texels indicated in the request simultaneously. This may be the case when the 16 texels are encoded across 5 or more data blocks (because the four decoders can only decode texels from four data blocks simultaneously). The statistical likelihood of encoding 16 texels within four or fewer data blocks depends on the size of the texel blocks encoded by each data block and the nature of the encoded texture data. The larger the size of the texel blocks encoded by the data blocks, the greater the likelihood that 16 texels are encoded within four or fewer data blocks. Therefore, when the data blocks encode smaller texel blocks, the decoder unit may benefit from having more than four quad-output decoders in the first group.

[0091] Based on statistical analysis of data sets encoded according to the ASTC format, the inventors found that, in order to decode 16 texels, the performance of five four-output decoders is approximately equal to the performance of a combination of four four-output decoders plus two single-output decoders or four four-output decoders plus one dual-output decoder. However, an arrangement including two single-output decoders or a single dual-output decoder has been considered to provide increased flexibility. It should be understood that this finding is based on analysis of a single data set, and for other types of data sets, different combinations of decoder groups may be required to match the performance of a decoder unit with a single decoder. However, this analysis is used to illustrate how to achieve performance similar to that of a decoder unit with a set of decoders using a decoder unit containing multiple groups of decoders.

[0092] Thus, a convenient arrangement of the decoder unit 200 when decoding up to 16 unique texels indicated by the texel request may be to provide four quad-output decoders in the first set of decoders 202; and two single-output decoders or one dual-output decoder in the second set of decoders 204. Using quad-output decoders may provide hardware savings compared to operating four single-output decoders in parallel, and thus a combination of four quad-output decoders plus two single-output decoders (or one dual-output decoder) may provide hardware savings compared to a conventional arrangement of operating 16 single-output decoders in parallel. Furthermore, such an arrangement may not suffer a commensurate performance degradation compared to a 16 single-output arrangement, as will be explained in more detail in the following example.

[0093] Of course, the maximum number of texels that can be indicated in a request may take a value other than 16, and therefore typically the decoder unit 200 may be arranged such that the ratio of the number of decoders in the first group to the number of decoders in the second group is 4:1 when each decoder in the second group is a dual-output decoder; or 4:2 when each decoder in the second group is a single-output decoder.

[0094] about Figure 3 An example is illustrated of how a decoder unit comprising four quad-output decoders and two single-output decoders operates to decode 16 unique texels indicated by a texel request. Figure 3 It is shown that the 16 texels indicated in the request are composed of four 2×2 texel sub-blocks indicated as 302, 304, 306 and 308. Texel blocks 310, 312, 314 and 316 represent texels encoded within the corresponding data block and are texel blocks of a wider texture (the rest are not shown for clarity). Figure 3 Each texel block has n b ×m b The size of each texel can be determined by the texture compression format used to encode the texture block into the corresponding data block. In this example, sub-blocks 302, 304 and 306 are completely located within texel blocks 310, 312 and 314, respectively. Sub-block 308 overlaps the edges of adjacent texel blocks 310 and 316. Each texel block is shown here as an 8×8 block for illustration.

[0095] In response to decoder unit 200 receiving a texel request indicating that the 16 texels are to be decoded, control logic 210 may assign data blocks of sub-blocks that are entirely within blocks of texels encoded within those data blocks to the first set 202 of four-output decoders. Thus, in this example, data blocks of sub-blocks 302, 304, and 306 are assigned to the respective four-output decoders of the first set.

[0096] For a data block that is partially encoded by two or more different data blocks (such as sub-block 308), the control logic may allocate the texture data block encoding the sub-block to the decoders of the first and second groups according to the availability of decoders within the first and second groups. The control logic may allocate the data blocks to the decoders according to a priority scheme, whereby the allocation of data blocks to the decoders of the second group takes precedence over the decoders of the first group when the texel sub-blocks are partially encoded by those data blocks (e.g., in edge and corner situations). Thus, in this example, the control logic may allocate an instance of the data block encoding texel 318 of the sub-block 308 to a single output decoder as a priority, and allocate another instance of the data block encoding texel 320 of the sub-block 308 to a second single output decoder. If there are only two single output decoders (as in this example), the control logic may then allocate the data block encoding the two remaining texels of the sub-block 308 to the available four-output decoders of the first group (i.e., a different data block than the data block allocated to the single output decoder). Alternatively, the allocation scheme may maintain queues for non-overlapping and overlapping sub-blocks, and associate the number of encoders per group with each queue. The allocation scheme may maintain separate queues for edge and corner overlapping texel sub-blocks.

[0097] In the case where a sub-block overlaps a corner of four adjacent texel blocks (i.e., each texel of the sub-block is encoded by a different corresponding data block), the control logic may assign two different data blocks encoding two different texels of the sub-block to the corresponding single output decoders of the second group. The control logic may then assign two additional data blocks (each data block different from the data blocks assigned to the decoders of the second group) to the corresponding decoders of the first group, wherein each data block assigned to the decoders of the first group encodes a different one of the remaining texels of the sub-block. Of course, other assignments are possible.

[0098] In the above example, the decoder unit 200, which includes two single-output decoders and four quad-output decoders, is able to decode 16 unique texels indicated in a texture request simultaneously or in parallel. Furthermore, due to the improved hardware efficiency of the multi-output decoders, the hardware requirements of the decoder unit may be lower than operating 16 single-output decoders in parallel. This example serves to illustrate how the decoder unit can decode multiple unique texels indicated in a request with improved hardware efficiency without commensurate performance degradation (in this particular example, without incurring any performance loss).

[0099] One texture compression format in which the decoder unit 200 can effectively obtain a positive tradeoff between hardware efficiency and performance is ASTC.

[0100] In ASTC, a compressed image or texture is subdivided into multiple data blocks, where each data block represents texture data of a texel block forming a texture. Each data block has a fixed memory footprint of 128 bits (i.e., a fixed size). However, a data block can represent texture data of different numbers of texels (i.e., for texel blocks of different sizes or dimensions). The number of texels represented by a single data block can be referred to as a block footprint. For a given texture, the block footprint may be fixed. The height and width of the block footprint (in texels) can typically be selected from a plurality of predefined sizes, and the footprint of the block does not need to be square. For 2D textures, examples of block footprints include 4×4 texels; 6×6 texels; 8×8 texels and 12×12 texels (giving compression rates of 8 bits per pixel (bpp); 3.56bpp; 2bpp and 0.89bpp, respectively).

[0101] The color of each texel within a block is defined as a point on a linear gradient between a pair of colors. This pair of colors is called a pair of "color endpoints". The color of each texel can be calculated by interpolating between the pair of color endpoints. Interpolation weights can be used to specify a weighted average of two color endpoints (i.e., positions on the linear gradient between those color endpoints) to define the color of the texel. Figure 4A The process is schematically illustrated in Figure 4A A pair of color endpoints A (denoted as 404) and B (denoted as 406) in a red-green (RG) color space labeled 402 is shown. In this example, each texel can have one of five weights: 0 / 4 (corresponding to color A); 1 / 4; 2 / 4; 3 / 4; or 4 / 4 (corresponding to color B). Figure 4B An example of texel weights for each texel of a 4×4 block is shown in Although shown for a simple example of RG color space, the same approach applies when working in a different color space such as RGB or RGBα.

[0102] Each color endpoint can be composed of one or more color values. A color endpoint can be composed of up to four color values. When decoding a texel, the color value will be decoded from the data block, and then those values ​​will be converted to color endpoints. The way in which the color value is converted to the color endpoint is defined by a parameter called the color endpoint mode. Information about the color endpoint mode of the texel is encoded in the data block. The ASTC specification defines 16 possible color endpoint modes, which vary from calculating the color endpoint based on a single color value to calculating the color endpoint based on four color values.

[0103] Interpolation weights may be stored in the form of a weight grid, which is a 2-D grid of weight values ​​corresponding to blocks of texels represented in a data block. In some encodings, interpolation weights may be stored for each texel in the data block (i.e., the size of the weight grid corresponds to the size of the block footprint). However, for data blocks representing texture data of a larger number of texels (e.g., 12×12 texels), there may not be enough data within the block to store the interpolation weights for each texel. In this case, a sparse weight grid containing fewer weights than the number of texels in each data block may be stored. The weights for each texel in the data block may then be calculated from an interpolation of this sparse weight grid.

[0104] To do this, the coordinates of the texels in the block are first scaled to the size of the weight grid. The coordinates are scaled by a scale factor that scales the size of the weight grid to the size of the block footprint. The rescaled position of the texel relative to the weight grid is then used to select a subset of the weights of the weight grid and interpolate those weights to calculate the weight of the texel. For example, four weights from the weight grid may be selected and interpolated to calculate the weight of the texel.

[0105] In some cases, a single pair of color endpoints can be used to calculate the color of each texel within a data block. However, in other cases, a block may represent texels having a mixture of different colors that cannot be reasonably represented by interpolating between a single pair of color endpoints. To address this issue, each texel in a data block can be assigned to one of up to four partitions, where each partition is associated with its own pair of color endpoints. To determine the color of a texel within a block, the partition to which the texel belongs is determined, and the color is calculated based on the interpolation weights for the texel and the color endpoint pair associated with the partition. The interpolation weights can be stored and encoded within the data block independently of the color endpoint pairs (i.e., independent of the partition to which the texel belongs).

[0106] This is Figure 4C and Figure 4D is schematically illustrated in FIG. Figure 4C A first color endpoint pair 408 formed by endpoint colors A and B and a second color endpoint pair 410 formed by endpoint colors C and D in RG color space 412 are shown. The first endpoint pair belongs to the first partition, and the second endpoint pair belongs to the second partition. Thus, there are two partitions in this example. Each color endpoint pair can be interpolated between five weights. Figure 4DA block of texels 414 represented by a block of texture data is shown. A partitioning mask is shown overlaid on the block of texels indicating which partition each texel belongs to. The partitioning mask is a grid of values, where each value indicates which partition the texel belongs to. Each value may be referred to as a partition index as such. Specifically, a value of 1 indicates that the texel belongs to the first partition (associated with the color endpoint pair 408); and a value of 2 indicates that the texel belongs to the second partition (associated with the color endpoint pair 410); the weight of each texel is also shown. To determine the color of the texel, the partition index is used to identify the color endpoint pair, and the weight is used to interpolate between the pair. For example, texel 416 has a partition index of 1 and a weight of 3 / 4, and therefore has a color defined by a position 418 in the RG color space. Texel 420 has a partition index of 2 and a weight of 1 / 4, and therefore has a color defined by a position 422 in the RG color space.

[0107] As described above, the size of the texel block encoded by the data block (i.e., the block footprint used for ASTC encoding) affects the probability that a particular 2×2 texel block indicated in the request falls completely within the texel block. Assuming that each texel is equally likely to be requested, it can be shown that for a 4×4 texel block size, the probability that a 2×2 sub-block falls completely within the texel block is 56% (9 / 16), while for a 12×12 texel block, the probability increases to about 77% (111 / 114). The average probability that a 2×2 texel sub-block falls completely within a texel block encoded by the data block (i.e., averaged over each possible block footprint supported by the ASTC specification) is 72%. Using the above, and based on an analysis of the number of unique cache lines required to decode 16 unique texels from the OpenGL 2 test of GLBenchmark v2.7, the inventors estimate that, on average, four quad-output decoders operating to decode 16 unique texels achieve approximately 75% of the performance of 16 single-output decoders working in parallel. The inventors have used the results of OpenGL testing to estimate the performance of the decoder when decoding ASTC encoded data when recognizing that the size of a cache line (128 bits) is the same as an ASTC data block, and therefore the number of unique cache lines required to decode 16 unique texels is expected to give a reasonable estimate of the number of unique ASTC data blocks required to decode 16 unique texels.

[0108] Further analysis shows that adding a fifth quad-output decoder can improve the performance of the decoder unit to about 89% of 16 single-output decoders in parallel. However, it has been found that at least similar performance levels can be achieved by including two single-output decoders or a single dual-output decoder instead of a fifth quad-output decoder, while benefiting from improved hardware requirements.

[0109] A third single-output decoder could also be added to the decoders of the second group to improve the handling of corner cases, but for 8×8 texel blocks (which is roughly equal to the average texel block size supported by ASTC), the 2×2 texel sub-block overlaps the corner of a four texel block in only 1 / 64 of the cases (1.56%). It was concluded that including a third single-output decoder in the second group does not provide a favorable trade-off between performance and hardware requirements.

[0110] Based on the above, the inventors have discovered that for ASTC encoded textures, a decoder unit comprising four quad-output decoders and two single-output decoders or a single dual-output decoder, configured to decode 16 unique texels indicated in a texel request, can achieve approximately 90% of the performance of 16 single-output decoders operating in parallel.

[0111] Of course, if the maximum number of unique texels indicated within a texel request is not 16, a different number of decoders in the first and second groups may be provided. For example, if the graphics system of which the decoder unit 200 may be a part operates to process 8 texels simultaneously, it may be desirable for the texel request to indicate up to 32 unique texels to be decoded. In this case, the decoder unit may include eight quad-output decoders in the first group and four single-output decoders or two dual-output decoders in the second group. Typically, a decoder having a ratio of 4:1 between the number of quad-output decoders in the first group and the number of dual-output decoders in the second group or a ratio of 4:2 between the number of quad-output decoders in the first group and the number of single-output decoders in the second group is capable of decoding up to m unique texels indicated in a texture request while having approximately 90% of the performance of m single-output ASTC decoders operating in parallel. Additionally, providing multiple-output decoders in the first group may mean that the overall hardware requirements of the decoder unit may be less than m single-output decoders operating in parallel.

[0112] Figure 5 An example of a multi-output ASTC decoder that can provide improved hardware efficiency compared to an equivalent number of single-output decoders operating in parallel is shown in FIG. Figure 5 The decoder 500 shown in FIG. 5 is an example of a decoder in the first group of decoders or in the second group of decoders 204 (in the case where the decoder of the second group is not a single-output decoder).

[0113] The decoder includes a parameter decoding unit 502, a color decoding unit 504, a weight decoding unit 506 and at least one interpolator unit 508. The parameter decoding unit is connected to the color decoding unit and the weight decoding unit. Specifically, the output of the parameter decoding unit is connected to the input of both the weight decoding unit and the color decoding unit. Each of the color decoding unit and the weight decoding unit is connected to at least one interpolator unit. More specifically, the output of the weight decoding unit and the color decoding unit is connected to the input of the interpolator unit.

[0114] The decoder 500 is configured to receive ASTC encoded texture data blocks as input, as shown at 510. The data blocks may be allocated to the decoder from the control logic 210. As mentioned above, the blocks have a size or memory footprint of 128 bits. The texture data blocks 510 are n b ×m b The texel color of the texel block is encoded. b ×m b A texel block may form part of a compressed image or texture. A texture may consist of a plurality of such texture blocks, where each of those blocks is encoded in a corresponding 128-bit data block. The size of the block (i.e., n b and m b The value of ) can be selected from multiple fixed alternatives specified by the ASTC standard.

[0115] The decoder 500 operates to decode a plurality of texels from a texture block 510. The maximum number of texels that the decoder can decode from the block 510 is denoted as n t , where n t It may be, for example, 2 or 4. The decoder may decode multiple texels in parallel. The decoder may, for example, include multiple output terminals for outputting corresponding decoded texels. The decoder may be operable to decode multiple texels according to a decoding process. The decoding process may include a series of decoding steps or operations. A series of steps that are performed to decode a specific texel may be referred to as a decoding pipeline. Therefore, the decoder 500 may be operable to decode multiple texels from block 510, wherein each texel is decoded according to a decoding pipeline. As will be understood from the following, the decoder 500 is capable of decoding any number of texels from block 510. That is, 2≤n t ≤n b .m b .

[0116] In the following example, for illustrative purposes, texture data block 510 encodes texel block 310 (eg, Figure 3 ), and the decoder 500 operates to decode the 2×2 texel sub-block 302 (ie, n t =4). Of course, the decoder can decode any n tThe texture data represented by a data block may be divided into a plurality of partitions.

[0117] The parameter decoding unit 502 receives the data block 510. The parameter decoding unit operates to decode the configuration data of the block 510. The configuration data may be data specifying the parameters of the texture data and its encoding within the block 510. The configuration data may include, for example: the size of the weight grid and / or the range of weight values; an indication of whether the texture data is single-plane or dual-plane; a partition count (i.e., the number of partitions of the data block 510) and a color endpoint mode.

[0118] The color decoding unit 504 uses the configuration data decoded from the data block 510 to decode the n t The color endpoint data for each of the decoded texels is decoded. The color endpoint data includes a pair of color endpoints for each of the decoded texels. If the data block has a partition count of one, each of the decoded texels is associated with the same color endpoint pair. The color endpoint data may include up to eight color endpoints (for a partition count of four) that form four color endpoint pairs. One or more of the color endpoints may be associated with multiple texels in the group of texels decoded from the data block 510; that is, some of the decoded texels may share a common color endpoint or a common color endpoint pair. For example, if more than four texels are decoded in parallel from the data block 510, at least two of these texels will share a common color endpoint or color endpoint pair because the ASTC standard limits the number of partitions to a maximum of four (and therefore the number of color endpoint pairs is limited to a maximum of four).

[0119] The weight decoding unit 506 uses the configuration data decoded by the parameter decoding unit 502 to decode the n decoded from the block 510. t The interpolation weight data for each of the texels in the block 510 is decoded. The interpolation weight data for a given texel may be a single weight (e.g., if the texture data in the block is single-plane) or a pair of weights (e.g., if the texture data in the block is dual-plane). Thus, the weight decoding unit may decode a weight for each texel decoded from the block 510, or a pair of weights for each texel decoded from the block 510. These weight values ​​are received by the interpolation unit 508.

[0120] The interpolation unit 508 uses the color endpoint data of each texel and the weight value of each texel to calculate the decoded n t The color value of each texel.

[0121] Decoder 500 may then output n t That is, the decoder can output n ttexel color values. These values ​​can be output in parallel.

[0122] exist Figure 6 An example of the parameter decoding unit 502 is shown in more detail in . As illustrated, the parameter decoding unit 502 includes a block mode unit 602; a color endpoint unit 604 and a partition index unit 606.

[0123] The block mode unit 602 is configured to decode a portion of the configuration data comprising the weight grid size (its height and width, ie its dimensions) and the range of weight values ​​that may be occupied by the weights of the weight grid.

[0124] The partition index unit 606 is configured to calculate a partition index for each texel to be decoded from the block 510 (in this example, the texel block 302). The partition index identifies the partition to which each texel belongs and is an example of a configuration parameter.

[0125] The partition index of each texel is calculated based on the seed, partition count and coordinates of the texel within the block 602. The seed, partition count and texel coordinates can be referred to as intermediate configuration data because they are examples of data used to decode configuration parameters (partition indexes), but they are not configuration parameters themselves. The partition count is decoded from the data block 510 by a partition count unit 610 that forms part of the partition index unit 606. The seed is calculated by the seed calculation block 608 based on the partition mode index decoded from the data block 510. The coordinates of the texel are calculated by the texel coordinate unit (TCU) 612. The TCU 612 may include hardware for calculating the coordinates of each texel in the texel block 302 in parallel. The partition index unit includes an index calculator 614 for calculating the partition index from the seed, partition count and texel coordinates. The index calculator calculates the partition index of each texel in the decoded texel block 302.

[0126] The color endpoint unit 604 is configured to decode a color endpoint mode from the data block 510. In the case where the texture data has a partition count greater than 1 (i.e., there are multiple partitions), the color endpoint unit can decode the color endpoint mode for each partition. As described above, the color endpoint mode specifies how to convert the color value decoded from the block 510 into a color endpoint. In general, the ASTC specification specifies 16 possible color endpoint modes, where the modes require different numbers of color values ​​to form the color endpoints. Specifically, four of the modes form a single color endpoint from a single color value (e.g., brightness), and thus require two color values ​​for each color endpoint pair; four of the modes form a single color endpoint from two color values, and thus require four color values ​​for each color endpoint pair; four of the modes require three color values ​​to form each color endpoint, and thus require 6 color values ​​for each color endpoint pair; and four of the modes require four color values ​​to form a single color endpoint (e.g., RGBα), and thus require 8 color values ​​for each color endpoint pair.

[0127] A portion of the configuration data decoded and / or calculated by the parameter decoding unit 502 is independent of the texels decoded from the data block 510. That is, a portion of the configuration data for the block 510 is the same regardless of the texels decoded from the block; i.e., a portion of the configuration data is common to the decoding of each of the texels of the block. Thus, this portion of the configuration data is common to the decoding of each of a plurality of texels decoded from a block of texture data. The data can be said to be specified on a per-data-block basis rather than on a per-texel basis. In some cases, this portion of the 'per-data-block' configuration data may form a substantial portion of the configuration data.

[0128] Conveniently, the per-block configuration data decoded by the parameter decoding unit can be used by the color decoding unit 604 and the weight decoding unit 606 as part of the decoding process for each of the texels in the block 302. A first subset or portion of the per-block configuration data can be used by the color decoding unit, and a second subset or portion of the per-block configuration data can be used by the weight decoding unit. That is, the color decoding unit can use the first portion of the per-block configuration data to decode the endpoint data of all texels in the block 302; and the weight decoding unit can use the second portion of the per-block configuration data to decode the interpolation weight data of all texels in the block 302. This means that the parameter decoding unit 500 has to decode n texels in parallel from the block. t There is no need to decode each block of configuration data when there are texels t In contrast, when decoder 502 decodes n tWhen there are n texels, the parameter decoding unit 502 only decodes each block of configuration data once. This in turn means that the parameter decoding unit 502 does not need hardware to decode n texels in parallel for each block of configuration data. t times, resulting in potential hardware savings.

[0129] In this particular example, the weight grid size and the range of weight values ​​are examples of configuration data that is common to the decoding of the texels in block 510, and thus these same configuration parameters are used for the decoding of each of the texels in block 302. Thus, block mode unit 602 is formed of substantially the same hardware as if decoder 500 were only a single output decoder. In other words, block mode unit 602 can be shared across or used as part of a decoding pipeline for each of the texels to be decoded from block 510.

[0130] The color endpoint pattern data decoded by the color endpoint unit 604 is also independent of the texels decoded from the block 510. Therefore, the same color endpoint pattern data decoded by this unit is used for the decoding of each of the texels in the block 302. In other words, this data is shared across the decoding pipeline for each of the texels being decoded.

[0131] With respect to the partition index unit 606, both the partition count and the seed (generated according to the partition mode index decoded from the data block 510) are per-block parameters that are independent of the texels being decoded. Thus, the same seed and decoded partition count may be used when calculating the partition index for each of the texels in the block 302, and thus the seed calculation unit 608 and the partition count unit 610 may be shared across the decoding pipeline for each of these texels being decoded.

[0132] Compared to a multi-decoder formed of a plurality of conventional ASTC decoders operating in parallel, the hardware resources of the parameter decoding unit 502 can therefore be reduced.

[0133] exist Figure 7 An example structure of the color decoding unit 504 is shown in . The color decoding unit includes a color data selector unit (CDSU) 702 , a sequence decoder unit 708 , a color dequantization unit 704 , and a color endpoint calculation unit 706 .

[0134] The CDSU 702 is configured to determine the size of the color data within the data block 510 (i.e., the size of the data within the block used to represent the color endpoints). In ASTC, color data is encoded within the data block as a variable length bit string. The color data is encoded according to a bounded integer sequence encoding (BISE) scheme. The size of the color data can be determined based on the partition count (decoded by the partition count unit 610) and the block mode data decoded by the block mode unit 602. Therefore, the CDSU 702 determines the size of the color data using only a portion of the configuration data that is independent of the texels decoded from the block 510. The CDSU 702 can also decode the location of the color data within the data block. This information can again be determined from the partition count and block mode data.

[0135] As described above, the partition count and block mode data are parameters that are specified per data block and are common to the decoding of all texels encoded in the block 510. Therefore, the color decoding unit 504 can use this portion of the configuration data as part of the decoding of each of the texels in the sub-block 302. Specifically, the CDSU 702 can perform a single determination of the size of the color data within the block 510, and this determination can then be used as part of the decoding pipeline for each of the texels in the sub-block 302.

[0136] The sequence decoder unit 708 is configured to perform integer sequence decoding of color data. As mentioned above, the color data is encoded in the data block according to the binary integer sequence encoding (BISE) scheme. The use of the BISE scheme enables color values ​​to be encoded with a small number of bits (a fractional number of bits). A series of values ​​can be represented using trits (base-3 representation) or quints (base-5 representation). Other basic representations can also be used.

[0137] The color dequantization unit 704 is configured to extract color values ​​from the decoded color data and dequantize these color values. Dequantization means restoring the encoded color values ​​to their original range (e.g., [0, 1, ... 255]). In some cases, each of the texels of the sub-block 302 decoded in parallel by the decoder 500 may be located in a different partition, in which case eight color endpoints (two color endpoints per partition) may be required. If each of these partitions is also associated with a color endpoint pattern in which each color endpoint is formed by four color values, this will require extracting and dequantizing 32 color values ​​from the data block 510. However, the ASTC specification limits the number of color values ​​that can be encoded in a 128-bit data block to 18.

[0138] To best enable the multi-decoder to accommodate the above, the color dequantization unit 704 may be configured (or have appropriate hardware enabled) to extract and dequantize 18 color values ​​in parallel from the data block 510. It should be noted that because it is not possible to decode 32 color values ​​from the data block 510, certain color endpoint modes are not possible for partitioned data (e.g., data with a partition count of 3 or 4).

[0139] The endpoint calculation unit 706 is configured to convert the dequantized color values ​​decoded by the dequantization unit 704 into a set of color endpoints. The endpoint calculation unit 706 can calculate the set of color endpoints using the partition index and the associated color endpoint pattern for each of the texels in the block 302 to be decoded. If more than four texels are to be decoded (for example, if 10 texels are to be decoded), then there will be redundancy in the partition index and the associated color endpoint pattern for those texels (because the data block can only have a maximum of four partitions). Therefore, in order to reduce the amount of calculation, the endpoint calculation unit can convert the color value into a set of color endpoints using the set of partition indexes (and associated color endpoint patterns) spanned by the texels to be decoded. The dequantization unit 704 can receive this information from the partition index unit 606 and the color endpoint unit 604.

[0140] The endpoint calculation unit may output a pair of color endpoints for each texel decoded from block 510. To do this, the endpoint calculation unit 706 may select an endpoint pair from the set of color endpoints using the partition index of each texel decoded. Alternatively, it may output the color endpoints for each partition and the partition index for each texel.

[0141] Like the parameter decoding unit 502, the color decoding unit 504 is configured to decode data from the block 510 that is independent of the texel being decoded. That is, the color decoding unit 504 is configured to decode data that is common to all texels encoded in the data block 501 as part of the decoding of the color endpoint data for the texels in the sub-block 302. The color decoding unit 504 uses this same data to decode the color endpoint data for all texels in the decoded sub-block 302. That is, the same per-block data decoded by the color decoding unit 504 is used in the decoding pipeline for each of the texels in the sub-block 302.

[0142] For example, the size and location of color data within a data block 510 as decoded by the CDSU 702 are parameters specified on a per-block level and are independent of those texels decoded from the data block. This data may be referred to as intermediate color data because it is data decoded from the block that is used to decode color endpoint data output from the color decoding unit. Because this intermediate data is independent of the texels being decoded, it is used by the rest of the color decoding unit 504 when decoding endpoint data for each of the texels in the sub-block 302 decoded from the data block 510. That is, the intermediate color data is common to the decoding of each texel from the data block 510. By calculating this intermediate color data only once and reusing it as part of the decoding pipeline for each of the texels being decoded, the hardware requirements of the CDSU 702 may be substantially the same as those of a single-output ASTC decoder.

[0143] The color values ​​decoded by the sequence decoder unit 708 and dequantized by the color dequantization unit 704 can be partially shared across the decoding pipelines of all texels in the sub-block 302. For example, ASTC limits the number of color values ​​that can be stored in the data block 310 to 18. When decoding a single texel from the data block 510, up to eight color values ​​are required (up to four color values ​​per color endpoint for two color endpoints forming a single color endpoint pair). Therefore, when decoding a single texel, eight color values ​​can be BISE decoded and dequantized. When the decoder is decoding more than (18 / 8) texels in parallel (i.e., when the decoder decodes three or more texels in parallel), all 18 color values ​​can be BISE decoded and dequantized. However, because the number of color values ​​decoded and dequantized by BISE is less than the number of texels decoded in parallel multiplied by the number of color values ​​required per texel, the BISE decoded and dequantized color values ​​are partially shared across the decoding pipelines of the texels. In other words, in some cases, BISE decoded color data is at least partially shared between decoding pipelines of texels decoded in parallel from a data block. Similarly, dequantized color values ​​are at least partially shared between decoding pipelines of decoded texels in some cases. In other words, BISE decoded and dequantized color data is common to at least some of the texels decoded in parallel from block 310. BISE decoded color data and dequantized color values ​​may therefore also be examples of common intermediate data.

[0144] More generally, when the number of color values ​​decoded from a data block (denoted as nv) is less than the number of partitions multiplied by the number of color values ​​in a color endpoint pair (denoted as 2.np.ncv, where np = number of partitions and ncv = number of color values ​​forming a single color endpoint), then a subset of the decoded and dequantized color values ​​can be converted to a color endpoint shared by multiple texels being decoded (even if those texels belong to different partitions).

[0145] Figure 8 An example internal structure for the weight decoding unit 506 is shown. Here, the weight decoding unit includes a scaling unit 802, a weight data selector unit (WDSU) 804, a sequence decoder unit 818, a weight dequantization unit 806, and a weight interpolation unit 808. The scaling unit 802 is coupled to the WDSU 804, the WDSU is coupled to the dequantization unit 806, and the dequantization unit is coupled to the weight interpolation unit 808.

[0146] The scaling unit 802 is configured to identify weights of a weight grid to be used in interpolation to generate weights for each of the texels in the sub-block 302. The scaling unit 802 may identify a set of weights from the weight grid for each texel being decoded. Each set of weights may then be interpolated to generate a final weight for each texel.

[0147] As described above, depending on the size of the block footprint, weights may not be explicitly stored for each texel represented by the data block. For larger block footprints (e.g., 12×12 texels), the weight grid has a sparser resolution than the block size. In this case, to obtain the weights for each texel, the coordinates of the texel are scaled to the size of the weight grid, and then weight interpolation is performed for each texel to calculate the weights for those texels.

[0148] The scaling unit 802 includes a scaling factor unit 810 and a weight selector unit 812. The scaling factor unit 810 decodes a scaling factor from the data block 510 that scales the size of the weight grid to the size of the block footprint. The weight selector unit 812 scales the coordinates of each of the texels in the decoded sub-block 302 to the weight grid using the scaling factor, and selects the weights of the weight grid to be used in the interpolation for each of the texels in the sub-block 302 to calculate the weights of those texels. The same scaling factor calculated by the scaling factor unit 810 is used by the weight selector unit 812 to scale the coordinates of each of the texels in the sub-block 302. Therefore, the weight of each of the texels in the sub-block can be calculated using the scaling factor.

[0149] This processing Fig. 9Schematically illustrated in . A 6×6 texel block footprint is illustrated by a “cross” mark (generally represented by 902), and a 5×5 weight grid is illustrated by a “dot” mark and generally represented by 904. The weight grid therefore has a resolution lower than the size of the block footprint. For purposes of illustration, the block footprint and the weight grid are shown as overlapping each other. A scaling factor is then applied to the coordinates of the texels to rescale the block footprint to the size of the weight grid. The result of applying the scaling factor is generally shown at 906. In this example, for purposes of illustration, the scaling factor has been applied to all texels in the block footprint (not just the selected texels that were decoded). The rescaled texel coordinates are then used to select a set of weights of the weight grid for interpolation in order to calculate the weight of each texel. For example, the coordinates of texel A (circled for identification) are rescaled from position 908 to position 910. The set of weights 912, 914, 916, and 918 are then selected for interpolation to generate the final weight of texel A using the rescaled position of the texel with respect to the weight grid.

[0150] The weight data selector unit 804 determines the size of the weight data within the block and the location of the data for the selected weights in the weight grid to be used in interpolation for all texels in the sub-block 302 being decoded.

[0151] The WDSU includes a weight data size unit 814 and a weight locator unit 816. The data size unit 814 is configured to determine the size of the weight data within the block 510. The data size unit 814 determines this based on the weight value range and the size of the weight grid decoded by the block mode unit 602. The size of the weight data within the block 510 is used as part of the weight data decoding for all texels in the decoded sub-block 302.

[0152] The weight locator unit 816 is configured to locate weight data for each set of weights to be used for weight interpolation within the block 510 for each of the texels in the sub-block 302. That is, the weight locator unit 816 may locate weight data to be used for weight interpolation within the block separately for each texel being decoded. It may locate this weight data for each texture in parallel.

[0153] Like the color data, the weight data may also be BISE encoded. The sequence decoder unit 818 is configured to perform binary integer sequence decoding of the weight data.

[0154] The weight dequantization unit 806 is configured to dequantize (i.e., return each weight from its encoded range to its original range) the decoded set of weights for each of the texels in the sub-block 302. The set of weights for each of the decoded texels is independent of each other, and thus the dequantization unit may include hardware for dequantizing the set of weights for each of the texels decoded in parallel.

[0155] The weight interpolation unit 808 is configured to interpolate the set of weights for each texel decoded to calculate final interpolation weight data for each of those texels (e.g., final interpolation weights per plane for each texel decoded). The weight interpolation unit may calculate final interpolation weight data for each texel decoded in parallel from block 510.

[0156] Then, interpolation weight data for each of the texels in the decoded sub-block 302 is output from the weight decoding unit 506 .

[0157] Like the parameter decoding unit 502 and the color decoding unit 504, the weight decoding unit 506 decodes data from the block 510 that is common to the decoding of all texels from the block 510. Therefore, the weight decoding unit decodes the per-block data (i.e., based on the data specified for each block) as part of decoding the interpolation weight data. Since the data is decoded from the data block 510 and used to decode the final interpolation weight data output by the weight decoding unit, the data can be referred to as intermediate weight data. The weight decoding unit uses the same per-block (intermediate) data to decode the interpolation weight data for all texels in the sub-block 302. That is, each block of data decoded by the weight decoding unit is reused for the decoding pipeline of each of the texels in the sub-block 302. This advantageously allows the components that decode the data to be shared between the decoding pipelines for each of the texels decoded from the block.

[0158] For example, the scaling factor that scales the size of the block footprint to the weight grid as decoded by the scaling factor unit 810 is a parameter specified per data block and is independent of the texels being decoded. Therefore, the same scaling factor can be used by the weight selector unit 812 to scale the coordinates of each of the texels in the sub-block 302. Therefore, the scaling factor unit can have substantially the same hardware requirements as if the decoder 500 was a single output decoder.

[0159] Similarly, the size of the weight data within the block 510 is also a parameter that is independent of the texels being decoded. Therefore, the size of the weight data as decoded by the weight data size unit 814 is used by the weight locator unit 816 to locate the weight data for all texels in the decoded sub-block. Therefore, the data size unit 814 may also have substantially the same hardware requirements as if the decoder 500 were a single output decoder.

[0160] Return to reference Figure 5 , at least one interpolator unit 508 is configured to calculate a color value of the texel using the interpolation weight data for each of the texels in the decoded sub-block 302 and a pair of color endpoint data from the color endpoint. The interpolator unit may calculate a final color of the texel based on the interpolation weight data for each decoded texel output from the weight decoding unit 506 and the color endpoint pair for the texel output from the color decoding unit 504. The final color value may be specified with respect to an RGBα color space (i.e., each decoded color may be in RGBα format).

[0161] The interpolator unit 508 may calculate the color of each texel by interpolating between the associated pair of color endpoints using the interpolation weight for that texel.

[0162] The interpolator unit 508 may be configured to calculate the final texel color of each of the texels decoded in parallel. The number of interpolator units 508 may be equal to the number of partitions of the decoded texture data. Alternatively, the number of interpolator units may be equal to the number of texels decoded from the data block 510.

[0163] The above-mentioned decoder 500 is a multi-output decoder, which can decode multiple texels from a texture data block compressed according to the ASTC specification. As in the above example, the decoder can operate to decode multiple texels in parallel. However, advantageously, the decoder 500 can use a specific portion of the data decoded from the texture data block as part of the decoding process of all texels decoded from the data block. Therefore, multiple texels can be decoded in parallel from the block without parallel processing for each stage of the decoding process. This means that compared with operating multiple conventional ASTC single decoders in parallel, the decoder 500 can have reduced hardware requirements (for example, if implemented on an integrated circuit, it has a reduced area). Specifically, the inventor has found that by implementing a multi-output decoder in the above manner to decode four texels, the chip area can be reduced to about 2.37 times the chip area of ​​a conventional single-output ASTC decoder, which is approximately equal to two-thirds of the area of ​​four single decoders. In other words, compared with four single-output decoders operating in parallel, the above-mentioned four-output decoder can save about 40% of the chip area. Compared to an arrangement of 16 single-output decoders, this results in a chip area saving of approximately 25% for a decoder unit 200 comprising four quad-output decoders 500 and two single-output decoders.

[0164] The above example illustrates how a decoder unit configured to decode m texels based on texel requests that have been ASTC encoded can achieve an average of 90% of the performance of m single-output decoders operating in parallel while saving up to approximately 25% of chip area.

[0165] For a set of sample requests, the term "performance" as used herein is determined by calculating how many cycles it takes a hybrid decoder unit to process all m requested texels compared to a decoder unit having m single decoders. Since an m single-decoder system always processes each request in 1 cycle, the number of cycles taken by the hybrid decoder can be compared to provide a performance metric comparison.

[0166] Although the above example has been described with reference to ASTC encoding, it should be understood that this is for illustrative purposes only, and the decoder units described herein can be configured to decode texels encoded according to some other coding scheme, such as, for example: PVRTC; PVRTC2; ETC1; ETC2; EAC; S3TC; 3Dc; or BC1 - BC5. Each of these compression schemes encodes the texture data of a texel block into a data block, and thus a decoder configured according to the examples herein to decode texture data encoded by one of these schemes can benefit from an improved performance-versus-hardware requirement tradeoff.

[0167] In addition, although the above example relates to a decoder unit comprising a first and a second set of decoders, it should be understood that other combinations of decoder sets are possible. For example, a decoder unit can comprise: a first set of one or more decoders, each decoder configured to parallel-decode n texels from a received single texture data block; a second set of one or more decoders, each decoder in the second set configured to decode p texels from a received single texture data block; and a third set of one or more decoders, each decoder in the third set configured to decode s texels from a received single texture data block, where s < p < n. For example, n = 4, p = 2 and s = 1. That is, each decoder in the third set can be a single-output decoder. The ratio of the number of decoders in the first set to those in the second and third sets can be 4:2:2; 4:1:1; 4:1:2; 4:2:1, etc. In other arrangements, a decoder unit can include multiple decoder sets, where each set of decoders is configured to parallel-decode a different number of texels from a received texture data block. Each decoder set may contain only a single decoder.

[0168] The control logic as described herein may be configured to allocate the coded texture data blocks to the decoders according to the texel request and the allocation scheme. The allocation scheme may also depend on the relative positioning of the texels to be decoded within the texel block (i.e., the number of texture data blocks used to encode the requested texels). The lower the number of texture data blocks in which the requested texels are encoded, the higher the priority that may be given to the multi-output decoder. The allocation scheme may follow a set of prioritized allocations. If the requested texel sub-block contains multiple texels in the texel block encoded by the coded texture data block, the allocation scheme may only include allocating the coded texture block to the multi-output decoder (e.g., the decoder in the first group). If the texel sub-block contains only a single texel within each texel block, the allocation scheme may specify that the coded texture blocks encoding those texel blocks are allocated to the single output decoder. The general allocation scheme may be as follows: First, determine whether any texel block encoded by the corresponding texture data block contains more than one requested texel, and if so, allocate those texture data blocks to one or more multi-output decoders, or to the decoder of the group capable of decoding the maximum number of texels in parallel, as needed. The remaining texels of the texture request can then be decoded by allocating the appropriate texture data blocks to the decoders of the group that can only decode fewer texels in parallel. Of course, other allocation schemes may also be used as appropriate.

[0169] Fig.10 A computer system 1000 is shown that can implement the decoder unit described herein. The computer system includes a CPU 1002, a GPU 1004, a memory 1006, and other devices 1014 such as a display 1016, a speaker 1018, and a camera 1012. The decoder unit 1010 is implemented on the GPU 1004. In other examples, the decoder unit 1010 can be implemented on the CPU 1002. The components of the computer system can communicate with each other via a communication bus 1020.

[0170] Figures 5 to 8 The decoder unit is shown as comprising a plurality of functional blocks or units. This is merely schematic and is not intended to define a strict division between different logical elements of such an entity. Each functional block may be provided in any suitable manner. It should be understood that the intermediate values ​​described herein as being formed by a unit or block need not be physically generated by the unit / block at any point and may represent only logical values, which conveniently describe the processing performed by the unit / block between its input and output terminals.

[0171] The decoder unit described herein can be specifically implemented in hardware on an integrated circuit. The decoder unit described herein can be configured to perform any method described herein. Generally, any of the above functions, methods, techniques or components can be implemented in software, firmware, hardware (e.g., fixed logic circuits) or any combination thereof. The terms "module", "function", "component", "element", "unit", "block" and "logic" can be used herein to generally represent software, firmware, hardware or any combination thereof. In the case of software implementation, a module, function, component, element, unit, block or logic represents a program code that performs a specified task when executed on a processor. The algorithms and methods described herein can be performed by one or more processors that execute the code that causes the processor to perform the algorithm / method. Examples of computer-readable storage media include random access memory (RAM), read-only memory (ROM), optical disk, flash memory, hard disk storage, and other storage devices that can use magnetic, optical and other technologies to store instructions or other data and can be accessed by a machine.

[0172] The terms computer program code and computer readable instructions as used herein refer to any kind of executable code for a processor, including code expressed in machine language, interpreted language, or scripting language. Executable code includes binary code, machine code, byte code, code that defines an integrated circuit (such as a hardware description language or netlist), and code expressed in a programming language code (e.g., C, Java, or OpenCL). Executable code can be any type of software, firmware, script, module, or library that, when properly executed, processed, interpreted, compiled, executed, in a virtual machine or other software environment, causes a processor of a computer system supporting the executable code to perform the tasks specified by the code.

[0173] A processor, computer or computer system may be any kind of device, machine or special purpose circuit or a collection or part thereof with processing capabilities capable of executing instructions. A processor may be any kind of general or special purpose processor, such as a CPU, GPU, system on a chip, state machine, media processor, application specific integrated circuit (ASIC), programmable logic array, field programmable gate array (FPGA), etc. A computer or computer system may include one or more processors.

[0174] It is also intended to include software that defines a hardware configuration as described herein, such as HDL (Hardware Description Language) software for designing integrated circuits or for configuring a programmable chip to perform a desired function. That is, a computer-readable storage medium may be provided having encoded thereon a computer-readable program code in the form of an integrated circuit definition data set that, when processed (i.e., run) in an integrated circuit manufacturing system, configures the system to manufacture a decoder unit configured to perform any of the methods described herein, or to manufacture a unit comprising any of the apparatus described herein. The integrated circuit definition data set may be, for example, an integrated circuit description.

[0175] Thus, a method of manufacturing a decoder unit as described herein at an integrated circuit manufacturing system may be provided.Furthermore, an integrated circuit definition data set may be provided which, when processed in an integrated circuit manufacturing system, causes the method of manufacturing a decoder unit to be performed.

[0176] The integrated circuit definition data set may be in the form of computer code (e.g., as a netlist), code for configuring a programmable chip (as a hardware description language that defines an integrated circuit at any level), including as register transfer level (RTL) code, as a high-level circuit representation such as Verilog or VHDL, and as a low-level circuit representation such as OASIS (RTM) and GDSII. The higher-level representation that logically defines the integrated circuit (such as, RTL) may be processed at a computer system configured to generate a manufacturing definition of the integrated circuit in the context of a software environment that includes definitions of circuit elements and rules for combining those elements in order to generate a manufacturing definition of the integrated circuit defined by the representation. As is typically the case with software executed at a computer system to define a machine, one or more intermediate user steps (e.g., providing commands, variables, etc.) may be required in order for a computer system configured to generate a manufacturing definition of an integrated circuit to execute the code that defines the integrated circuit in order to generate a manufacturing definition of the integrated circuit.

[0177] Now refer to Fig.11 An example of processing an integrated circuit definition data set at an integrated circuit manufacturing system to configure the system to manufacture a decoder unit is described.

[0178] Fig.11An example of an integrated circuit (IC) manufacturing system 1102 configured to manufacture a decoder unit as described in any of the examples herein is shown. Specifically, the IC manufacturing system 1102 includes a layout processing system 1104 and an integrated circuit generation system 1106. The IC manufacturing system 1102 is configured to receive an IC definition data set (e.g., defining a decoder as described in any of the examples herein), process the IC definition data set, and generate an IC according to the IC definition data set (e.g., which specifically implements the decoder unit described in any of the examples herein). The processing of the IC definition data set configures the IC manufacturing system 1102 to manufacture an integrated circuit that specifically implements the decoder as described in any of the examples herein.

[0179] The layout processing system 1104 is configured to receive and process an IC definition data set to determine a circuit layout. Methods for determining a circuit layout from an IC definition data set are known in the art and may, for example, involve synthesizing RTL code to determine a gate-level representation of the circuit to be generated (e.g., in terms of logic components (e.g., NAND, NOR, AND, OR, MUX, and FLIP-FLOP components)). By determining the location information of the logic components, the circuit layout can be determined from the gate-level representation of the circuit. This can be done automatically or with user participation in order to optimize the circuit layout. When the layout processing system 1104 determines the circuit layout, it can output a circuit layout definition to the IC generation system 1106. The circuit layout definition can be, for example, a circuit layout description.

[0180] As is known in the art, IC generation system 1106 generates an IC according to a circuit layout definition. For example, IC generation system 1106 may implement a semiconductor device manufacturing process to generate an IC, which may involve a multi-step sequence of photolithography and chemical processing steps during which electronic circuits are gradually formed on a wafer made of semiconductor material. The circuit layout definition may be in the form of a mask that may be used in a lithographic process that generates the IC according to the circuit definition. Alternatively, the circuit layout definition provided to IC generation system 1106 may be in the form of a computer-readable code that IC generation system 1106 may use to form a suitable mask for generating the IC.

[0181] The different processes performed by the IC manufacturing system 1102 can all be implemented in one location (e.g., by one party). Alternatively, the IC manufacturing system 1102 can be a distributed system such that some processes can be performed in different locations and can be performed by different parties. For example, some of the following stages: (i) synthesizing RTL code representing an IC definition data set to form a gate-level representation of a circuit to be generated, (ii) generating a circuit layout based on the gate-level representation, (iii) forming a mask based on the circuit layout, and (iv) manufacturing the integrated circuit using the mask can be performed in different locations and / or by different parties.

[0182] In other examples, processing of an integrated circuit definition data set at an integrated circuit manufacturing system may configure the system to manufacture a decoder unit without processing the IC definition data set to determine the circuit layout. For example, the integrated circuit definition data set may define a configuration of a reconfigurable processor such as an FPGA, and processing of the data set may configure the IC manufacturing system to generate a reconfigurable processor having the defined configuration (e.g., by loading the configuration data into the FPGA).

[0183] In some embodiments, when processed in an integrated circuit manufacturing system, the integrated circuit manufacturing definition data set can enable the integrated circuit manufacturing system to generate an apparatus as described herein. Fig.11 Configuring an integrated circuit manufacturing system in the manner described may enable the apparatus described herein to be manufactured.

[0184] In some examples, the integrated circuit definition data set may include software that runs on or in conjunction with hardware defined at the data set. Fig.11 In the example shown, the IC generation system may also be configured by the integrated circuit definition dataset to load firmware into the integrated circuit or otherwise provide the integrated circuit with program code used by the integrated circuit when manufacturing the integrated circuit according to the program code defined at the integrated circuit definition dataset.

[0185] Applicants hereby disclose separately each individual feature described herein and any combination of two or more such features, to the extent that these features or combinations can be implemented as a whole based on the present specification according to the common knowledge of those skilled in the art, regardless of whether these features or combinations of features solve any problem disclosed herein, and without limiting the scope of the claims. Applicants point out that various aspects of the present invention may consist of any such individual features or combinations of features. In view of the foregoing description, it will be apparent to those skilled in the art that various modifications may be made within the scope of the present invention.

Claims

1. A decoder unit configured to decode a plurality of texels according to a texel request, the plurality of texels being encoded across one or more encoded texture data blocks, each of the one or more encoded texture data blocks encoding a texel block, the decoder unit comprising: A first set of one or more decoders, each of the first set of one or more decoders being configured to decode up to n texels from a single received encoded texture data block; A second set of one or more decoders, each of the second set of one or more decoders being configured to decode up to p texels from a single received encoded texture data block, where p < n; and Control logic configured to allocate different encoded texture data blocks to the decoders according to the texel request, wherein the control logic is configured to, in response to a texel request indicating that a 2×2 sub-block of texels encoded across more than one encoded texture data block is to be decoded, allocate an instance of at least one encoded texture data block to each of two decoders of the second set, each of the more than one encoded texture data blocks encoding at least one texel of the 2×2 sub-block.

2. The decoder unit according to claim 1, wherein Each of the second set of one or more decoders is configured to decode up to one texel from a received encoded texture data block.

3. The decoder unit according to claim 1, wherein: Each of the second set of one or more decoders is configured to decode up to two texels from a received encoded texture data block.

4. A decoder unit according to claim 1, 2 or 3, wherein: Each of the first set of one or more decoders is configured to decode up to four texels from a single received encoded texture data block.

5. A decoder unit according to claim 1, 2 or 3, wherein: Each of the first set of one or more decoders is configured to decode n texels from a single received encoded texture data block.

6. A decoder unit according to claim 1, 2 or 3, wherein: Each of the second set of one or more decoders is configured to decode p texels from a single received encoded texture data block.

7. A decoder unit according to claim 1, 2 or 3, wherein: Each of the first set of one or more decoders is configured to decode n texels in parallel from a single received encoded texture data block, and each of the second set of one or more decoders is configured to decode p texels in parallel from a single received encoded texture data block.

8. A decoder unit according to claim 1, 2 or 3, wherein: The control logic is configured to, in response to a texel request indicating that the 2×2 sub-block overlaps an edge of two adjacent texel blocks, allocate an instance of one encoded texture data block encoding two texels of the 2×2 sub-block to each of two decoders of the second set.

9. A decoder unit according to claim 1, 2 or 3, wherein: The control logic is configured to, in response to a texel request indicating that the 2×2 sub-block overlaps a corner of four adjacent texel blocks, allocate two different encoded texture data blocks encoding two different texels of the 2×2 sub-block to two decoders of the second set.

10. A decoder unit according to claim 1, 2 or 3, wherein: The control logic is configured to allocate an encoded data block encoding at least one other texel of the 2×2 sub-block, different from the block allocated to the decoders of the second set, to the decoders of the first set.

11. A decoder unit according to claim 1, 2 or 3, wherein: Each coded texture data block is encoded according to an adaptive scalable texture compression (ASTC) format, and each of the first set of one or more decoders comprises: a parameter decoding unit, the parameter decoding unit being configured to decode the configuration data of the received texture data block; a color decoding unit, the color decoding unit being configured to decode color endpoint data of n texels of the received block according to the configuration data; a weight decoding unit configured to decode interpolation weight data of each of the n texels of the received block according to the configuration data; and at least one interpolator unit configured to calculate a color value of each texel of the n texels of the received block using interpolation weight data for the texel and a pair of color endpoints from the color endpoint data; Wherein, at least one of the parameter decoding unit, the color decoding unit and the weight decoding unit is configured to decode intermediate data from a received block, the intermediate data being common to the decoding of texels of the block, and is configured to use the decoded intermediate data when decoding at least two of the n texels from the received texture data block.

12. The decoder unit according to claim 11, wherein At least one of the parameter decoding unit, the color decoding unit, and the weight decoding unit is configured to use the same data as part of decoding of each of the n texels.

13. The decoder unit according to claim 11, wherein The first portion of the configuration data is common to the decoding of the n texels, and the weight decoding unit is configured to use the first portion of the configuration data to decode the interpolation weight data for each of the n texels, the first portion of the configuration data comprising at least one of: a weight grid size specifying a size of a weight grid; and a weight range that specifies the range of values ​​occupied by the weights of the grid.

14. The decoder unit according to claim 11, wherein The second portion of the configuration data is common to decoding of the texels of the received block, and the color decoding unit is configured to use the second portion of the configuration data to decode color endpoint data for each of the n texels.

15. The decoder unit of claim 11, wherein: The parameter decoding unit is configured to: decode intermediate configuration data from a received block of texture data as part of decoding the configuration data; and use the same intermediate configuration data to decode a partition index for each of the n texels.

16. The decoder unit of claim 11, wherein: The weight decoding unit is configured to: decode intermediate weight data from a received texture data block as part of decoding interpolation weight data, the intermediate weight data being common to the texels of the block; and use the data to decode the interpolation weight data for each of the n texels, wherein the intermediate data includes the size of data within the block for representing the interpolation weight data.

17. The decoder unit of claim 11, wherein: The texels represented by the block are divided into n p partitions, and the decoder comprises n p interpolators, each interpolator being configured to calculate color values ​​of a subset of texels in a corresponding partition using the interpolation weight data for the texel and a corresponding pair of color endpoints from the color endpoint data.

18. A decoder unit according to claim 1, 2 or 3, wherein: The texture data block is encoded according to one of the following texture compression formats: S3TC; PVR-TC; PVR-TC2; ASTC; ETC1; ETC2; EAC; 3Dc; and BC1-BC5.

19. A method of decoding a plurality of texels according to a texel request, the texels being encoded across one or more coded texture data blocks, the one or more coded texture data blocks each encoding a texel block, the method comprising: Allocating encoded texture data blocks to decoders in a first set of one or more decoders and a second set of one or more decoders according to the mipmap request, wherein each of the one or more decoders in the first set is configured to decode up to n mipmap levels from a single received encoded texture data block, and each of the one or more decoders in the second set is configured to decode up to p mipmap levels from a single received encoded texture data block, where p < n; and wherein, in response to a mipmap request indicating that a 2×2 sub-block of mipmap levels encoded across more than one encoded texture data block is to be decoded, an instance of at least one encoded texture data block is allocated to each of two decoders in the second set, each of the more than one encoded texture data block encoding at least one mipmap level of the 2×2 sub-block.

20. A computer-readable storage medium having stored thereon computer-readable program code defining a decoder unit according to claim 1, 2, or 3, which, when processed in an integrated circuit manufacturing system, causes the integrated circuit manufacturing system to: Process the computer-readable program code using a layout processing system to generate a circuit layout definition of an integrated circuit that specifically implements the decoder unit; and Manufacture the decoder unit using an integrated circuit generation system according to the circuit layout definition.