summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index 970d2190a09..591c6359315 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -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)) {