vc4/v3d: restore calling debug_get_option_vc4/v3d_debug
As it is needed to have V3D_DEBUG defined. For the v3d case, I did it
restoring v3d_process_debug_variable, as it is at v3d_debug.c that
DEBUG_GET_ONCE_FLAGS_OPTION is called.
Fixes: 106b33405e
("vc4/v3d: stop adding NORAST when SHADERDB debug option is used")
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17812>
This commit is contained in:

committed by
Marge Bot

parent
6643bfd3e4
commit
c3f5d27631
@@ -117,3 +117,9 @@ v3d_debug_flag_for_shader_stage(gl_shader_stage stage)
|
||||
STATIC_ASSERT(MESA_SHADER_STAGES == 6);
|
||||
return flags[stage];
|
||||
}
|
||||
|
||||
void
|
||||
v3d_process_debug_variable(void)
|
||||
{
|
||||
V3D_DEBUG = debug_get_option_v3d_debug();
|
||||
}
|
||||
|
@@ -90,6 +90,8 @@ extern uint32_t V3D_DEBUG;
|
||||
|
||||
extern uint32_t v3d_debug_flag_for_shader_stage(gl_shader_stage stage);
|
||||
|
||||
extern void v3d_process_debug_variable(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@@ -225,6 +225,8 @@ v3dv_CreateInstance(const VkInstanceCreateInfo *pCreateInfo,
|
||||
return vk_error(NULL, result);
|
||||
}
|
||||
|
||||
v3d_process_debug_variable();
|
||||
|
||||
instance->physicalDeviceCount = -1;
|
||||
|
||||
/* We start with the default values for the pipeline_cache envvars */
|
||||
|
@@ -889,6 +889,8 @@ v3d_screen_create(int fd, const struct pipe_screen_config *config,
|
||||
|
||||
v3d_fence_init(screen);
|
||||
|
||||
v3d_process_debug_variable();
|
||||
|
||||
v3d_resource_screen_init(pscreen);
|
||||
|
||||
screen->compiler = v3d_compiler_init(&screen->devinfo, 0);
|
||||
|
@@ -588,6 +588,8 @@ vc4_screen_create(int fd, struct renderonly *ro)
|
||||
|
||||
vc4_fence_screen_init(screen);
|
||||
|
||||
debug_get_option_vc4_debug();
|
||||
|
||||
#ifdef USE_VC4_SIMULATOR
|
||||
vc4_simulator_init(screen);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user