diff options
author | Timothy Arceri <[email protected]> | 2020-07-06 13:11:14 +1000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-08 03:04:03 +0000 |
commit | 6bec54dd3e3fa5379c08cab38fd6ff335c941adc (patch) | |
tree | b03e1054619631ec85dc908996fe71a36512a3fc /src/gallium | |
parent | 01c04a42a6064a3da74fcd8b68efcd812414deb3 (diff) |
iris: silence maybe-uninitialized for stc_dst_aux_usage variable
Reviewed-by: Kenneth Graunke <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5766>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/iris/iris_blit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_blit.c b/src/gallium/drivers/iris/iris_blit.c index 84ea9298fe2..283d30bcfe2 100644 --- a/src/gallium/drivers/iris/iris_blit.c +++ b/src/gallium/drivers/iris/iris_blit.c @@ -504,7 +504,7 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info) } struct iris_resource *stc_dst = NULL; - enum isl_aux_usage stc_src_aux_usage, stc_dst_aux_usage; + enum isl_aux_usage stc_dst_aux_usage = ISL_AUX_USAGE_NONE; if ((info->mask & PIPE_MASK_S) && util_format_has_stencil(util_format_description(info->dst.format)) && util_format_has_stencil(util_format_description(info->src.format))) { @@ -516,7 +516,7 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info) struct iris_format_info src_fmt = iris_format_for_usage(devinfo, src_res->base.format, ISL_SURF_USAGE_TEXTURE_BIT); - stc_src_aux_usage = + enum isl_aux_usage stc_src_aux_usage = iris_resource_texture_aux_usage(ice, src_res, src_fmt.fmt); struct iris_format_info dst_fmt = |