nouveau/mme: Ensure that zero-initizlied mme_value is ZERO

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand 2023-03-22 10:31:48 -05:00 committed by Marge Bot
parent 5fd7df4aa2
commit fb60830935

View file

@ -12,7 +12,8 @@ extern "C" {
#endif
enum mme_value_type {
MME_VALUE_TYPE_ZERO,
/* This must be zero, making a zero-initizlied mme_value a ZERO */
MME_VALUE_TYPE_ZERO = 0,
MME_VALUE_TYPE_IMM,
MME_VALUE_TYPE_REG,
};