Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20798 Discussions

OpenGL texImage2D with GL_R8UI doesn't work

Robinson__Brad
Beginner
1,258 Views

System Setup Information:
-----------------------------------------

System Used: Macbook Pro, Surface Pro, others...
CPU SKU: i7
GPU SKU: HD5100
Processor Line: N/A
System BIOS Version: N/A
CMOS settings: N/A
Graphics Driver Version: 20.19.15.4624
GOP/VBIOS Version: N/A
Operating System: Windows 10 Pro
OS Version: v1703 15063.671 (Creators Update)
API: OpenGL
Occurs on non-Intel GPUs?: No

Steps to Reproduce:
-------------------------------
1. Download and build sample program from here: https://bitbucket.org/toptensoftware/shadertest/
2. Run the program - notice the black square indicating the usampler is always returning 0
3. Uncomment the line #define NORMALIZED to switch to using GL_R8
4. Re-run - notice the square is now red as expected

Expected Results:
-------------------------------

usampler2D should return data from the texture

Actual Results:
-------------------------------

usample2D always seems to return zero.  Either glTexImage is failing to pass the texture data to the GPU, or the GPU/shader script is failing when retrieving data from the texture.

Additional Information:
-------------------------------

Related Stack Overflow questions: https://stackoverflow.com/questions/47387613/glteximage2d-and-gl-r8ui-fails-on-some-gpus?noredirect=1#comment81739882_47387613

0 Kudos
0 Replies
Reply