Bug 94452

Summary: dEQP-GLES3.functional.negative_api.texture.generatemipmap fails
Product: Mesa Reporter: Kenneth Graunke <kenneth>
Component: Mesa coreAssignee: Kenneth Graunke <kenneth>
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 94448    

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.