Mesa (main): gallium: add pipe_sampler_state::pad member
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 21 00:02:00 UTC 2021
Module: Mesa
Branch: main
Commit: 3a3748d999a988923813e50c64c51884218a988f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3a3748d999a988923813e50c64c51884218a988f
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Jul 14 13:34:30 2021 -0400
gallium: add pipe_sampler_state::pad member
when zeroing the struct without memset, this needs to be zeroed to avoid
garbage data in the padding
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11886>
---
src/gallium/include/pipe/p_state.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 9c44e22b5af..8e56f8e4391 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -415,6 +415,7 @@ struct pipe_sampler_state
unsigned seamless_cube_map:1;
unsigned border_color_is_integer:1;
unsigned reduction_mode:2; /**< PIPE_TEX_REDUCTION_x */
+ unsigned pad:5; /**< take bits from this for new members */
float lod_bias; /**< LOD/lambda bias */
float min_lod, max_lod; /**< LOD clamp range, after bias */
union pipe_color_union border_color;
More information about the mesa-commit
mailing list