[Intel][OpenGL] Fail to get correct value when sampling from a texture in depth formats.
On latest Intel Mesa Intel OpenGL driver we always fail to get correct value when sampling from a texture in depth formats.
Steps to reproduce:
- Download and unzip OpenGL_test_Sample_Depth_Texture.zip.
- cd OpenGL_test_Sample_Depth_Texture/ and run ./test or build it from the attached source file by command "gcc -o test test.c -lX11 -lepoxy".
On Ubuntu 20.04 using Intel GPU (UHD630 and HD630) and Intel open-source Mesa driver: Mesa 21.0.0-devel (git-eba97645) and Mesa 20.2.1, we can see the following output (wrong):
data in outputBuffer after 1st dispatch: 1.000000
data in outputBuffer after 2nd dispatch: 1.000000
While on AMD GPU and NVidia GPU on both Linux and Windows, and Intel GPU (UHD630) on Windows, we can see the correct output:
data in outputBuffer after 1st dispatch: 1.000000
data in outputBuffer after 2nd dispatch: 0.300000