Bug 99185

Summary: dEQP-EGL.functional.image.modify.tex_rgb5_a1_tex_subimage_rgba8
Product: Mesa Reporter: Chad Versace <chadversary>
Component: Drivers/DRI/i965Assignee: Intel 3D Bugs Mailing List <intel-3d-bugs>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium CC: kenneth, lemody, mark.a.janes
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 98315    

Description Chad Versace 2016-12-22 20:10:37 UTC
The test fails for me with the setup below:

test: dEQP-EGL.functional.image.modify.tex_rgb5_a1_tex_subimage_rgba8
mesa: master@7a4ea95
deqp: nougat-cts-dev@4acf725 and master@7363696
deqp-target: x11_egl
hw: Broadwell 0x1616
Comment 1 Chad Versace 2016-12-22 23:21:53 UTC
The test failed because in
glTexImage2D(format=GL_RGBA, type=GL_UNSIGNED_SHORT_5_5_5_1)
Mesa chose BRW_SURFACE_FORMAT_R8G8B8A8_UNORM as the storage format.
The two formats have incompatible precision in the alpha channel. One
provides binary alpha; the other provides gradient alpha.

Intel hardware supports BRW_SURFACE_FORMAT_B5G5R5A1_UNORM, so we need to teach       
glTexImage2D to choose that instead.
Comment 3 Chad Versace 2016-12-28 19:16:04 UTC
Patches pushed.

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.