Commit 41f76dd5 authored by Tapani Pälli's avatar Tapani Pälli
Browse files

iris: move variable to the scope where it is being used

iris_upload_border_color is passed a pointer which points to
variable that is introduced in a different scope.

CID: 1444296
Signed-off-by: Tapani Pälli's avatarTapani Pälli <>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <>
parent 3cea9f98
Pipeline #28250 failed with stages
in 1 minute and 30 seconds
......@@ -1532,8 +1532,8 @@ iris_upload_sampler_states(struct iris_context *ice, gl_shader_stage stage)
* back into A.
union pipe_color_union *color = &state->border_color;
union pipe_color_union tmp;
if (tex) {
union pipe_color_union tmp;
enum pipe_format internal_format = tex->res->internal_format;
if (util_format_is_alpha(internal_format)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment