Bug 109138

Summary: [KBL-G][GL-CTS]KHR-GL31.texture_size_promotion.functional test failed
Product: Mesa Reporter: Hai <hai.lan>
Component: Drivers/Gallium/radeonsiAssignee: mesa-dev
Status: RESOLVED NOTOURBUG QA Contact: mesa-dev
Severity: normal    
Priority: medium CC: cheng.zhou, hai.lan, xi.c.chen
Version: 18.3   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: TestResults.qpa

Description Hai 2018-12-24 02:22:18 UTC
When Use Kaby Lake-g(AMD Vega M GPU) to do the OpenGL CTS test, the case "
KHR-GL31.texture_size_promotion.functional" will fail

Following is the environtment

Platform	KabyLake-G
CPU	Intel (R) Core (TM) i7-8809G CPU @3.10GHz
GPU	AMD(Radeon RX Vega M GH Graphics);
Memory	16G
OS	Ubutu18.04
Kernel	4.19.0
Mesa: 	mesa 18.3.0 (https://mesa.freedesktop.org/archive/mesa-18.3.0.tar.gz) 

VK-GL-CTS version	https://github.com/KhronosGroup/VK-GL-CTS
commit 54e546a1a0a6fa412ea4c3e3081bbc9518928a6e



How to reproduce
$ ./glcts -n KHR-GL31.texture_size_promotion.functional
Writing test log into TestResults.qpa
dEQP Core git-54e546a1a0a6fa412ea4c3e3081bbc9518928a6e (0x54e546a1) starting..
target implementation = 'Default'

Test case 'KHR-GL31.texture_size_promotion.functional'..
Fail (Fail)

DONE!

Test run totals:
Passed: 0/1 (0.0%)
Failed: 1/1 (100.0%)
Not supported: 0/1 (0.0%)
Warnings: 0/1 (0.0%)
Comment 1 Hai 2018-12-24 02:32:12 UTC
Created attachment 142877 [details]
TestResults.qpa
Comment 2 Hai 2019-01-02 08:35:25 UTC
Is there any update? Thanks.
Comment 3 Marek Olšák 2019-01-11 23:48:00 UTC
The driver is correct. The test isn't. The test creates the GL context using the compatibility profile, but expects the behavior of the GL core profile.

The difference is in the default value of GL_DEPTH_TEXTURE_MODE, which is GL_LUMINANCE for GL compatibility and GL_RED for GL core.

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.