summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-04-02 09:12:21 +0300
committerTapani Pälli <[email protected]>2019-04-04 04:43:20 +0000
commit41f76dd513b03e7e7490c0f766e47dcf813a607f (patch)
treec6a22fe4139a64db8ea4dbb5e239c9acd2effd75 /src
parent3cea9f981a14db797afb10225623acb96bd1c107 (diff)
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 <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-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)) {