It's equal to fscreen, which is almost next to it.
Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20027>
/**
* Available for the gallium frontend and the manager to use.
*/
- void *st_context_private;
void *st_manager_private;
/**
{
struct st_context *st = st_context(ctx);
struct pipe_screen *screen = st->screen;
- struct pipe_frontend_screen *fscreen =
- (struct pipe_frontend_screen *) st->iface.st_context_private;
+ struct pipe_frontend_screen *fscreen = st->iface.frontend_screen;
if (!fscreen || !fscreen->get_egl_image)
return false;
st_validate_egl_image(struct gl_context *ctx, GLeglImageOES image_handle)
{
struct st_context *st = st_context(ctx);
- struct pipe_frontend_screen *fscreen =
- (struct pipe_frontend_screen *) st->iface.st_context_private;
+ struct pipe_frontend_screen *fscreen = st->iface.frontend_screen;
return fscreen->validate_egl_image(fscreen, (void *)image_handle);
}
struct util_queue_monitoring *queue_info)
{
struct st_context *st = ctx->st;
- struct pipe_frontend_screen *fscreen =
- (struct pipe_frontend_screen *) st->iface.st_context_private;
+ struct pipe_frontend_screen *fscreen = st->iface.frontend_screen;
assert(fscreen->set_background_context);
fscreen->set_background_context(&st->iface, queue_info);
st->iface.start_thread = st_start_thread;
st->iface.thread_finish = st_thread_finish;
st->iface.invalidate_state = st_context_invalidate_state;
- st->iface.st_context_private = (void *) fscreen;
st->iface.cso_context = st->cso_context;
st->iface.pipe = st->pipe;
st->iface.frontend_screen = fscreen;