PowerVR® BXS 4-64 MC1 and MSAA

Our platform is using the PowerVR® BXS 4-64 MC1 core GPU, and then we try to turn on hardware anti-aliasing during EGL inti. The following is my code diff,

However, once EGL_SAMPLE_BUFFERS, 1, EGL_SAMPLES, 4 are added, EGL will fail to initialize where eglsurface is created (eglCreatePixmapSurface) and return 0.

I also tried to print out all supported config attributes. config[3] supports EGL_SAMPLE_BUFFERS, 1, EGL_SAMPLES, 4,.
Do you have any suggestions for this?
config[0]:
EGL_RED_SIZE: 8
EGL_GREEN_SIZE: 8
EGL_BLUE_SIZE: 8
EGL_ALPHA_SIZE: 0
EGL_DEPTH_SIZE: 0
EGL_CONFIG_ID: 1
EGL_SAMPLE_BUFFERS: 0
EGL_SAMPLES: 0
EGL_SURFACE_TYPE: 1031
EGL_STENCIL_SIZE: 0
EGL_RENDERABLE_TYPE: 68
config[1]:
EGL_RED_SIZE: 8
EGL_GREEN_SIZE: 8
EGL_BLUE_SIZE: 8
EGL_ALPHA_SIZE: 0
EGL_DEPTH_SIZE: 24
EGL_CONFIG_ID: 2
EGL_SAMPLE_BUFFERS: 0
EGL_SAMPLES: 0
EGL_SURFACE_TYPE: 1031
EGL_STENCIL_SIZE: 0
EGL_RENDERABLE_TYPE: 68
config[2]:
EGL_RED_SIZE: 8
EGL_GREEN_SIZE: 8
EGL_BLUE_SIZE: 8
EGL_ALPHA_SIZE: 0
EGL_DEPTH_SIZE: 24
EGL_CONFIG_ID: 3
EGL_SAMPLE_BUFFERS: 0
EGL_SAMPLES: 0
EGL_SURFACE_TYPE: 1031
EGL_STENCIL_SIZE: 8
EGL_RENDERABLE_TYPE: 68
config[3]:
EGL_RED_SIZE: 8
EGL_GREEN_SIZE: 8
EGL_BLUE_SIZE: 8
EGL_ALPHA_SIZE: 0
EGL_DEPTH_SIZE: 24
EGL_CONFIG_ID: 4
EGL_SAMPLE_BUFFERS: 1
EGL_SAMPLES: 4
EGL_SURFACE_TYPE: 1031
EGL_STENCIL_SIZE: 8
EGL_RENDERABLE_TYPE: 68
eglChooseConfig

Hi Xie,

Thanks for your question, I will gather information and report back here.

Best regards,
Alejandro