*/
#define PIPE_CONTEXT_PREFER_THREADED (1 << 3)
-/**
- * Implicit and explicit derivatives after KILL behave as if KILL didn't
- * happen.
- */
-#define PIPE_SCREEN_ENABLE_CORRECT_TGSI_DERIVATIVES_AFTER_KILL (1 << 0)
-
/**
* Flags for pipe_context::memory_barrier.
* Global configuration options for screen creation.
*/
struct pipe_screen_config {
- unsigned flags;
const struct driOptionCache *options;
};
if (pipe_loader_drm_probe_fd(&screen->dev, fd)) {
struct pipe_screen_config config = {};
- config.flags =
- dri_init_options_get_screen_flags(screen);
+ dri_init_options(screen);
pscreen = pipe_loader_create_screen(screen->dev, &config);
}
struct pipe_screen_config config = {};
- config.flags = dri_init_options_get_screen_flags(screen);
+ dri_init_options(screen);
if (pipe_loader_sw_probe_kms(&screen->dev, fd))
pscreen = pipe_loader_create_screen(screen->dev, &config);
hud_add_queue_for_monitoring(ctx->hud, queue_info);
}
-unsigned
-dri_init_options_get_screen_flags(struct dri_screen *screen)
+void
+dri_init_options(struct dri_screen *screen)
{
- unsigned flags = 0;
-
pipe_loader_load_options(screen->dev);
dri_fill_st_options(screen);
-
- if (driQueryOptionb(&screen->dev->option_cache,
- "glsl_correct_derivatives_after_discard"))
- flags |= PIPE_SCREEN_ENABLE_CORRECT_TGSI_DERIVATIVES_AFTER_KILL;
-
- return flags;
}
const __DRIconfig **
dri_fill_st_visual(struct st_visual *stvis, struct dri_screen *screen,
const struct gl_config *mode);
-unsigned
-dri_init_options_get_screen_flags(struct dri_screen *screen);
+void
+dri_init_options(struct dri_screen *screen);
const __DRIconfig **
dri_init_screen_helper(struct dri_screen *screen,
if (pipe_loader_sw_probe_dri(&screen->dev, &drisw_lf)) {
struct pipe_screen_config config;
- config.flags = dri_init_options_get_screen_flags(screen);
+ dri_init_options(screen);
pscreen = pipe_loader_create_screen(screen->dev, &config);
}