-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shader link error on UBERARCHIVE_DEFAULT_DATA (Adreno Only) #6355
Labels
android
Issue/feature request for Android only
bug
Something isn't working
gpu specific
This bug occurs only with a single GPU vendor.
opengl
Issue/request specific to OpenGL
Comments
Please show the full logs. Looks like there should have been an earlier compilation error. |
@romainguy
|
pixelflinger
added
android
Issue/feature request for Android only
opengl
Issue/request specific to OpenGL
gpu specific
This bug occurs only with a single GPU vendor.
bug
Something isn't working
labels
Dec 14, 2022
I can reproduce on my Pixel4. |
pixelflinger
added a commit
that referenced
this issue
Dec 14, 2022
At least some adreno compilers don't like returning an element of a UBO array that is a structure in the vertex shader. To work this around we have to copy the each of the structure fields. Fixes #6355
pixelflinger
added a commit
that referenced
this issue
Dec 14, 2022
At least some adreno compilers don't like returning an element of a UBO array that is a structure in the vertex shader. To work this around we have to copy the each of the structure fields. Fixes #6355
pixelflinger
added a commit
that referenced
this issue
Dec 14, 2022
At least some adreno compilers don't like returning an element of a UBO array that is a structure in the vertex shader. To work this around we have to copy the each of the structure fields. Fixes #6355
plepers
pushed a commit
to plepers/filament
that referenced
this issue
Dec 9, 2023
At least some adreno compilers don't like returning an element of a UBO array that is a structure in the vertex shader. To work this around we have to copy the each of the structure fields. Fixes google#6355
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
android
Issue/feature request for Android only
bug
Something isn't working
gpu specific
This bug occurs only with a single GPU vendor.
opengl
Issue/request specific to OpenGL
Describe the bug
This bug only occurs in Adreno.
Using uberarchive builded with disabling optimization about matc,
create material with below code.
gltfio::createUbershaderProvider(engine, UBERARCHIVE_DEFAULT_DATA, UBERARCHIVE_DEFAULT_SIZE)
then shader link error occur in OpenGLProgram::checkProgramStatus.
To Reproduce
Open filament/CMakeList.txt and edit so that code:set(MATC_OPT_FLAGS -gd) always works. like below.
# Disable optimizations and enable debug info (preserves names in SPIR-V) set(MATC_OPT_FLAGS -gd)
Build android demo app with command: ./build.sh -p desktop,android -i release
Run sample-gltf-viewer
We can check this bug. object did not rendered, with shader-error.
Expected behavior
Object is rendered without shader-error on Adreno, with matc-option(-gd)
Logs
E KHR_debug ERROR: shader 0 is not a shader object E KHR_debug ERROR: program 58 is not a program object or shader 0 is not a shader object
Smartphone (please complete the following information):
Additional context
If instanced option on base.mat is true, it works well.
The text was updated successfully, but these errors were encountered: