Mesa (master): mesa/st: fix redundant initialization
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jan 5 11:47:38 UTC 2021
Module: Mesa
Branch: master
Commit: 5c3b471c9f4b611a0a78c8c3f9534f8e7da8cbec
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c3b471c9f4b611a0a78c8c3f9534f8e7da8cbec
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Fri Dec 18 15:48:51 2020 +0100
mesa/st: fix redundant initialization
https://gitlab.freedesktop.org/mesa/mesa/-/issues/3966
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7846>
---
src/mesa/state_tracker/st_context.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 89127319ad5..733a8e5ead6 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -586,10 +586,9 @@ st_create_context_priv(struct gl_context *ctx, struct pipe_context *pipe,
ctx->st = st;
st->ctx = ctx;
- st->screen = pipe->screen;
+ st->screen = screen;
st->pipe = pipe;
st->dirty = ST_ALL_STATES_MASK;
- st->screen = screen;
st->can_bind_const_buffer_as_vertex =
screen->get_param(screen, PIPE_CAP_CAN_BIND_CONST_BUFFER_AS_VERTEX);
More information about the mesa-commit
mailing list