On 15 September 2012 09:37, José Fonseca <span dir="ltr"><<a href="mailto:jose.r.fonseca@gmail.com" target="_blank">jose.r.fonseca@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Fri, Sep 14, 2012 at 11:22 PM, Carl Worth <<a href="mailto:cworth@cworth.org">cworth@cworth.org</a>> wrote:<br>
> Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>> writes:<br>
>> I think you're right, Jose.  And unless I'm much mistaken, Mesa has never<br>
>> followed this rule correctly.<br>
><br>
> Cool, an implementation bug!<br>
><br>
>> Carl, would you mind sending me the test program you were using to<br>
>> investigate this?  I'd like to try it on my nVidia machine.  Assuming<br>
>> that the nVidia driver follows the spec, I'll file a Mesa bug report.<br>
><br>
> Sure thing. It's attached. The program initializes a 2x2 RGB texture<br>
> with 12 bytes of data, (so according to José's understanding of the<br>
> specification). And according to that interpretation it should result in<br>
> a texture with 4 texels, all green.<br>
><br>
> When I run this with Mesa, I get 2 green pixels, then one blue, then one<br>
> of uncertain color as Mesa reads past my allocated array, (and<br>
> triggering an error if you run the program under valgrind).<br>
><br>
> I'll be quite interested to see what you find.<br>
<br>
</div></div>I tried on my NVIDIA, and it also shows green green blue black.<br>
<br>
I read the spec more detailed, and it seems that "element" is a single<br>
channel (not a pixel), where a "group" is a pixel.<br>
<br>
I've pushed a change that tries to match the spec precisely. I've<br>
checked that it does the right thing with Paul's sample.<br>
<br>
Jose<br>
</blockquote></div><br>Ok, thanks for checking into this in more detail, Jose.  If I understand correctly now, it sounds like there is no Mesa bug after all.<br>