This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Failed to create 4096x4096 textures

Note: This was originally posted on 28th June 2013 at http://forums.arm.com

Hello, under the MALI-400, I need to create  a texture with 4096x4096 size, which is the max value that glGetIntegerv tells me I can use.

I used the next line to retrieve the 4096

int maxTextureSize  = 0;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxTextureSize);


So I am positiviely sure the hardware supports it, or at least is says it does.
For 2048x2048 everything work correctly and the texture unit can be created. But for the 4096x4096 size the texture creation fails, and I get the next error in the logcat. If you need more details please let me know. Is 4096 really a usable size?


06-28 18:39:21.805: E/MaliEGL(1124): mali_surface* __egl_platform_create_surface_from_native_buffer(android_native_buffer_t*, mali_base_ctx_handle):546 [EGL-ERROR] failed to map physical memory (0x0 + 0)
06-28 18:39:21.810: E/MaliEGL(1124): void __egl_platform_dequeue_buffer(egl_surface*):1136 [EGL-ERROR] Failed to create a surface from native buffer (0x5722c69c)
06-28 18:39:21.880: E/MaliEGL(1124): mali_surface* __egl_platform_create_surface_from_native_buffer(android_native_buffer_t*, mali_base_ctx_handle):546 [EGL-ERROR] failed to map physical memory (0x0 + 0)
06-28 18:39:21.880: E/MaliEGL(1124): void __egl_platform_dequeue_buffer(egl_surface*):1136 [EGL-ERROR] Failed to create a surface from native buffer (0x5722c69c)
06-28 18:39:21.945: E/MaliEGL(1124): mali_surface* __egl_platform_create_surface_from_native_buffer(android_native_buffer_t*, mali_base_ctx_handle):546 [EGL-ERROR] failed to map physical memory (0x0 + 0)
06-28 18:39:21.945: E/MaliEGL(1124): void __egl_platform_dequeue_buffer(egl_surface*):1136 [EGL-ERROR] Failed to create a surface from native buffer (0x5722c69c)
06-28 18:39:21.980: E/MaliEGL(1124): mali_surface* __egl_platform_create_surface_from_native_buffer(android_native_buffer_t*, mali_base_ctx_handle):546 [EGL-ERROR] failed to map physical memory (0x0 + 0)
06-28 18:39:21.980: E/MaliEGL(1124): void __egl_platform_dequeue_buffer(egl_surface*):1136 [EGL-ERROR] Failed to create a surface from native buffer (0x5722c69c)
06-28 18:39:23.420: E/MaliEGL(1124): mali_surface* __egl_platform_create_surface_from_native_buffer(android_native_buffer_t*, mali_base_ctx_handle):546 [EGL-ERROR] failed to map physical memory (0x0 + 0)
06-28 18:39:23.420: E/MaliEGL(1124): void __egl_platform_dequeue_buffer(egl_surface*):1136 [EGL-ERROR] Failed to create a surface from native buffer (0x58f62f04)
06-28 18:39:23.425: E/libEGL(1124): eglMakeCurrent:534 error 3003 (EGL_BAD_ALLOC)
Parents
  • Note: This was originally posted on 28th June 2013 at http://forums.arm.com

    Also sometimes i get this log, when trying to allocate 4096x4096 textures


    06-28 21:50:18.040: E/MaliEGL(32391): mali_surface* __egl_platform_create_surface_from_native_buffer(android_native_buffer_t*, mali_base_ctx_handle):546 [EGL-ERROR] failed to map physical memory (0x0 + 0)
    06-28 21:50:18.040: E/MaliEGL(32391): void __egl_platform_dequeue_buffer(egl_surface*):1136 [EGL-ERROR] Failed to create a surface from native buffer (0x58b189bc)
    06-28 21:50:18.040: E/libEGL(32391): eglMakeCurrent:534 error 3003 (EGL_BAD_ALLOC)
Reply
  • Note: This was originally posted on 28th June 2013 at http://forums.arm.com

    Also sometimes i get this log, when trying to allocate 4096x4096 textures


    06-28 21:50:18.040: E/MaliEGL(32391): mali_surface* __egl_platform_create_surface_from_native_buffer(android_native_buffer_t*, mali_base_ctx_handle):546 [EGL-ERROR] failed to map physical memory (0x0 + 0)
    06-28 21:50:18.040: E/MaliEGL(32391): void __egl_platform_dequeue_buffer(egl_surface*):1136 [EGL-ERROR] Failed to create a surface from native buffer (0x58b189bc)
    06-28 21:50:18.040: E/libEGL(32391): eglMakeCurrent:534 error 3003 (EGL_BAD_ALLOC)
Children
No data