mesa/fbo: Fix valgrind complaints
Just statically initialize the dummy/incomplete framebuffer/renderbuffer to avoid re-intializing their mutex. ==328537== Mutex reinitialization: mutex 0x1281bd28, recursion count 0, owner 0. ==328537== at 0x486FD34: pthread_mutex_init_intercept (drd_pthread_intercepts.c:826) ==328537== by 0x486FD34: pthread_mutex_init (drd_pthread_intercepts.c:835) ==328537== by 0x118F9727: mtx_init (threads_posix.h:207) ==328537== by 0x118F983B: simple_mtx_init (simple_mtx.h:132) ==328537== by 0x118FA087: _mesa_init_fbobjects (fbobject.c:93) ==328537== by 0x117E8CB7: init_attrib_groups (context.c:849) ==328537== by 0x117E942F: _mesa_initialize_context (context.c:1225) ==328537== by 0x1173C323: st_create_context (st_context.c:1019) ==328537== by 0x11720A9F: st_api_create_context (st_manager.c:930) ==328537== by 0x1170E2CF: dri_create_context (dri_context.c:163) ==328537== by 0x11FB9DC3: driCreateContextAttribs (dri_util.c:480) ==328537== by 0x8E9D3DF: dri3_create_context_attribs (dri3_glx.c:316) ==328537== by 0x8E9D49B: dri3_create_context (dri3_glx.c:347) ==328537== mutex 0x1281bd28 was first observed at: ==328537== at 0x486FD34: pthread_mutex_init_intercept (drd_pthread_intercepts.c:826) ==328537== by 0x486FD34: pthread_mutex_init (drd_pthread_intercepts.c:835) ==328537== by 0x118F9727: mtx_init (threads_posix.h:207) ==328537== by 0x118F983B: simple_mtx_init (simple_mtx.h:132) ==328537== by 0x118FA087: _mesa_init_fbobjects (fbobject.c:93) ==328537== by 0x117E8CB7: init_attrib_groups (context.c:849) ==328537== by 0x117E942F: _mesa_initialize_context (context.c:1225) ==328537== by 0x1173C323: st_create_context (st_context.c:1019) ==328537== by 0x11720A9F: st_api_create_context (st_manager.c:930) ==328537== by 0x1170E2CF: dri_create_context (dri_context.c:163) ==328537== by 0x11FB9DC3: driCreateContextAttribs (dri_util.c:480) ==328537== by 0x8E9D3DF: dri3_create_context_attribs (dri3_glx.c:316) ==328537== by 0x8E9D49B: dri3_create_context (dri3_glx.c:347) Signed-off-by: Rob Clark <robdclark@chromium.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7517>
This commit is contained in:
@@ -846,7 +846,6 @@ init_attrib_groups(struct gl_context *ctx)
|
||||
_mesa_init_debug_output( ctx );
|
||||
_mesa_init_display_list( ctx );
|
||||
_mesa_init_eval( ctx );
|
||||
_mesa_init_fbobjects( ctx );
|
||||
_mesa_init_feedback( ctx );
|
||||
_mesa_init_fog( ctx );
|
||||
_mesa_init_hint( ctx );
|
||||
|
Reference in New Issue
Block a user