[Mesa-dev] [PATCH 2/2] i965/skl: Layout a 1D miptree horizontally

Erik Faye-Lund kusmabite at gmail.com
Wed Feb 18 15:34:00 PST 2015


On Wed, Feb 18, 2015 at 6:02 PM, Ian Romanick <idr at freedesktop.org> wrote:
> On 02/17/2015 06:03 AM, Neil Roberts wrote:
>> +   /* When this layout is used the horizontal alignment is fixed at 64 and the
>> +    * hardware ignores the value given in the surface state
>> +    */
>> +   const unsigned int align_w = 64;
>> +
>> +   mt->total_height = mt->physical_height0;
>> +
>> +   if (mt->compressed) {
>> +      mt->total_height = ALIGN(mt->physical_height0, mt->align_h);
>> +   }
>
> There aren't any compressed formats that support 1D textures, so I don't
> think this can occur.  Does the bspec say anything about compressed 1D
> textures?

This might not be valid for this hardware generation, but ASTC
supports compressed 1D textures...


More information about the mesa-dev mailing list