<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 26, 2015 at 11:53 AM, Roland Scheidegger <span dir="ltr"><<a href="mailto:sroland@vmware.com" target="_blank">sroland@vmware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Am 26.10.2015 um 19:31 schrieb Ilia Mirkin:<br>
> On Mon, Oct 26, 2015 at 2:15 PM, Neil Roberts <<a href="mailto:neil@linux.intel.com" target="_blank">neil@linux.intel.com</a>> wrote:<br>
>> Nanley Chery <<a href="mailto:nanleychery@gmail.com" target="_blank">nanleychery@gmail.com</a>> writes:<br>
>><br>
>>> +      /* Throw an INVALID_OPERATION error if the target is<br>
>>> +       * TEXTURE_CUBE_MAP_ARRAY and the format is not ASTC.<br>
>>> +       */<br>
>>> +      if (target_can_be_compresed &&<br>
>>> +          ctx->Extensions.KHR_texture_compression_astc_ldr &&<br>
>>> +          layout != MESA_FORMAT_LAYOUT_ASTC)<br>
>>>           return write_error(error, GL_INVALID_OPERATION);<br>
>><br>
>> This seems to cause regressions in the following Piglit tests for Gen9:<br>
>><br>
>> piglit.spec.ext_texture_compression_s3tc.getteximage-targets cube_array s3tc<br>
>> piglit.spec.arb_texture_cube_map_array.fbo-generatemipmap-cubemap array s3tc_dxt1<br>
>><br>
>> I think the spec for the extension is based on the GLES spec. Perhaps<br>
>> the intention was to add ASTC support for cube-map array textures<br>
>> whereas previously in GLES no compressed formats were supported for this<br>
>> target. However in regular GL presumably S3TC is supposed to be<br>
>> supported. As it stands this patch disables cube-map array textures for<br>
>> any formats other than ASTC whenever the ASTC extension is available, so<br>
>> it disables S3TC on Gen9.<br>
>><br>
>> Maybe this section should be limited to GLES?<br>
><br>
> I'm having trouble parsing what you're saying, but just want to<br>
> confirm that s3tc is definitely supposed to work on cubemaps, at least<br>
> in desktop GL.<br>
><br>
<br>
</span>FWIW compressed textures (all formats) not working with cube map<br>
_arrays_ is imho a spec bug in both GL and GLES (in GLES it's just more<br>
explicit with newest spec as it has a table listing all the compressed<br>
formats NOT working for cube map arrays). Seems to be a result of the<br>
compressed formats being developed when cube map arrays weren't arround<br>
thus most of the wording in the spec now only allows them for 2d, 2d<br>
array, cube maps, but not cube map arrays, which totally doesn't make<br>
sense. s3tc itself (in contrast to rgtc etc.) doesn't say anything wrt<br>
to cubemap arrays (spec was updated for 2d arrays, but not cubemap<br>
arrays, thus you could theoretically conclude one way or another, albeit<br>
as I said not allowing them makes no sense imho just like it doesn't for<br>
the other formats).<br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've filed bugs for this at khronos bugtracker and it looks like at<br>
least for gles it's going to get fixed (no word on GL, unfortunately).<br>
Of course, binary blobs ignored this bit since forever already, and mesa<br>
was changed to do the same too. Thus imho every test expecting cube map<br>
targets to fail for compressed formats should be ignored.<br>
<br></blockquote><div><br></div><div>Thank you for filing the spec bugs.<br> <br></div><div>Nanley<br></div></div></div></div>