Summary: | GLES3 doesn't respect gl_PointSize | ||
---|---|---|---|
Product: | Mesa | Reporter: | Dongseong Hwang <dongseong.hwang> |
Component: | Drivers/DRI/i965 | Assignee: | Ian Romanick <idr> |
Status: | RESOLVED NOTABUG | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | kenneth |
Version: | 11.2 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
gl_PointSize = 2.0 draws 1.0 size point
Rendered image from demo as attached Rendered image with ES 3.0 context creation hints added Patch to make the demo explicitly create an ES 3.0 context. |
Created attachment 124399 [details]
Rendered image from demo as attached
Created attachment 124400 [details]
Rendered image with ES 3.0 context creation hints added
Created attachment 124401 [details] [review] Patch to make the demo explicitly create an ES 3.0 context. I compiled the demo with the following command: $ g++ -lGLESv2 -lglfw -Wall -g cpp-tutorial-4-gles3-pointcloud.cpp and indeed saw that the vertex shader's gl_PointSize output was being ignored. However, when I looked into it, I was surprised to see that the demo was actually using a legacy OpenGL context! Then, the behavior makes sense - OpenGL defaults to using point size from API state, not the shader output. I patched the demo to make it explicitly create an ES 3.0 context, and then it appears to work correctly. See the attached patch and images. Kenneth, thx for answering. gl_PointSize works in GLES3 context. However, I think legacy OpenGL context should fail to compile ths shader. On the other hands, could you take a look at gl_VertexID bug in https://bugs.freedesktop.org/show_bug.cgi?id=96421 ? (In reply to Dongseong Hwang from comment #4) > Kenneth, thx for answering. gl_PointSize works in GLES3 context. > However, I think legacy OpenGL context should fail to compile ths shader. Actually, it should compile: we expose GL_ARB_ES3_compatibility, which allows you to compile #version 300 es shaders in OpenGL contexts. https://www.opengl.org/registry/specs/ARB/ES3_compatibility.txt |
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.
Created attachment 124383 [details] gl_PointSize = 2.0 draws 1.0 size point OpenGL ES 3.0 Mesa 11.2.0 in HSW always draws 1.0 point_size point, no matter gl_PointSize setting