Mesa (main): r600/sfn: initialize all texture lower options
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 30 11:22:43 UTC 2021
Module: Mesa
Branch: main
Commit: 34cb40179136fc6e851aedfe4b67699a0527a0f3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=34cb40179136fc6e851aedfe4b67699a0527a0f3
Author: Gert Wollny <gert.wollny at collabora.com>
Date: Wed Jun 30 11:06:11 2021 +0200
r600/sfn: initialize all texture lower options
Fixes: d1edf3cdf285f62c153c6bb910fc0a2c40c4e159
r600/sfn: Lower offset in TXF instructions
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11650>
---
src/gallium/drivers/r600/sfn/sfn_nir.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp b/src/gallium/drivers/r600/sfn/sfn_nir.cpp
index 8b7ef194a2d..b4874441732 100644
--- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp
@@ -851,7 +851,7 @@ int r600_shader_from_nir(struct r600_context *rctx,
NIR_PASS_V(sel->nir, r600_lower_shared_io);
NIR_PASS_V(sel->nir, r600_nir_lower_atomics);
- struct nir_lower_tex_options lower_tex_options;
+ struct nir_lower_tex_options lower_tex_options = {0};
lower_tex_options.lower_txp = ~0u;
lower_tex_options.lower_txf_offset = true;
More information about the mesa-commit
mailing list