[Mesa-dev] [PATCH resend] mesa: Require mipmap completeness for glCopyImageSubData(), sometimes.

Kenneth Graunke kenneth at whitecape.org
Sat Mar 25 01:32:38 UTC 2017


On Friday, March 24, 2017 6:05:36 PM PDT Roland Scheidegger wrote:
> Am 24.03.2017 um 22:51 schrieb Kenneth Graunke:
> > This patch makes glCopyImageSubData require mipmap completeness when the
> > texture object's built-in sampler object has a mipmapping MinFilter.
> > 
> > Fixes (on i965):
> > dEQP-GLES31.functional.debug.negative_coverage.*.buffer.copy_image_sub_data
> > 
> > Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
> > ---
> >  src/mesa/main/copyimage.c | 25 +++++++++++++++++++++++--
> >  1 file changed, 23 insertions(+), 2 deletions(-)
> > 
> > Resending the same patch as before.  The Khronos OpenGL ARB and ES working
> > group both decided that although this behavior is unfortunate and strange,
> > Android's CTS requires it and so everybody else's implementations already
> > work this way.
> 
> Sounds like a rather lame justification IMHO - especially since it
> apparently breaks other CTS tests.

I agree...someone made the comment of "if we start allowing this, and
apps use it, then those apps won't run on Android devices", which,
amusingly, is the flipside of the normal portability argument: "if we
start disallowing this we might break existing applications".

> But ah well if everybody prefers simple hacks in their driver to make it
> conformant to a pointless error behavior, so be it.

Yeah.  *shrug*.  There are a lot of failures on the road here:

- non-immutable textures being a thing
- copyimage allowing non-immutable textures
- texture objects including a sampler object 
- default filtering for integer textures making them incomplete...

I could go on, but...hindsight is 20/20, I suppose.

> Reviewed-by: Roland Scheidegger <sroland at vmware.com>

Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170324/38e3cb02/attachment.sig>


More information about the mesa-dev mailing list