google/filament

Backend unit test case 'BlitTest.ColorResolve' fails when the backend is opengl on macos

yrom opened this issue · 0 comments

yrom commented

⚠️ Issues not using this template will be systematically closed.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:
Just build and run the target backend_test_mac

mkdir cmake-build-debug
cmake -DCMAKE_BUILD_TYPE=Debug  -DFILAMENT_SUPPORTS_VULKAN=OFF  -Bcmake-build-debug -G Ninja .
cmake --build cmake-build-debug --config Debug --target backend_test_mac
./cmake-build-debug/filament/backend/backend_test_mac -a "opengl" --gtest_filter="BlitTest.*"

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Logs

PanicLog
in void filament::backend::OpenGLDriver::textureStorage(GLTexture *, uint32_t, uint32_t, uint32_t, bool):851
in file filament/filament/backend/src/opengl/OpenGLDriver.cpp
reason: GL_TEXTURE_2D_MULTISAMPLE is not supported
#0      backend_test_mac                       0x104b64ccc utils::CallStack::update(unsigned long) + 32
#1      backend_test_mac                       0x104b64c74 utils::CallStack::unwind(unsigned long) + 44
#2      backend_test_mac                       0x104b6838c utils::details::panicLog(char const*, char const*, int, char const*, ...) + 208
#3      backend_test_mac                       0x1044006d4 filament::backend::OpenGLDriver::textureStorage(filament::backend::GLTexture*, unsigned int, unsigned int, unsigned int, bool) + 572
#4      backend_test_mac                       0x1043f5100 filament::backend::OpenGLDriver::createTextureR(filament::backend::Handle<filament::backend::HwTexture>, filament::backend::SamplerType, unsigned char, filament::backend::TextureFormat, unsigned char, unsigned int, unsigned int, unsigned int, filament::backend::TextureUsage) + 1452
...

OpenGL framebuffer error 0x8cd6 (GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) in "framebufferTexture" at line 1596
OpenGL framebuffer error 0x8cd6 (GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT) in "beginRenderPass" at line 3165
OpenGL error 0x506 (GL_INVALID_FRAMEBUFFER_OPERATION) in "clearWithRasterPipe" at line 3870

Desktop (please complete the following information):

  • OS: macos
  • GPU: m3
  • Backend: OpenGL

Smartphone (please complete the following information):

  • Device: [e.g. Pixel 2]
  • OS: [e.g. Android Pie 9.0]

Additional context
Update #define TEXTURE_2D_MULTISAMPLE_SUPPORTED false to true, this test case will PASS