Bug 94452 - dEQP-GLES3.functional.negative_api.texture.generatemipmap fails
Summary: dEQP-GLES3.functional.negative_api.texture.generatemipmap fails
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Kenneth Graunke
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: i965-deqp
  Show dependency treegraph
 
Reported: 2016-03-09 01:08 UTC by Kenneth Graunke
Modified: 2019-03-14 08:40 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Kenneth Graunke 2016-03-09 01:08:45 UTC
dEQP-GLES3.functional.negative_api.texture.generatemipmap currently fails.

genmipmap.c has a _mesa_is_valid_generate_texture_mipmap_internalformat function that implements some rules.  It appears that there is no text in the OpenGL specifications to justify this, but it was discussed in a Khronos internal bug:

https://cvs.khronos.org/bugzilla/show_bug.cgi?id=9471

However, ES 3.0 has well defined rules:
"If the levelbase array was not specified with an unsized internal format from table 3.3 or a sized internal format that is both color-renderable and texture-filterable according to table 3.13, an INVALID_OPERATION error is generated."

These rules need to be implemented (replacing the desktop GL rules), and would fix the test.
Comment 2 Kenneth Graunke 2016-03-19 06:55:43 UTC
Fixed in master with:

commit 46610238e0a8db47c293f75ad8d667747d6256af
Author: Kenneth Graunke <kenneth@whitecape.org>
Date:   Tue Mar 15 00:41:16 2016 -0700

    mesa: Do proper format error checks for GenerateMipmap in ES 3.x.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.