radv: Use MAX_PUSH_CONSTANTS_SIZE for saved push constants.

So that it can never again get out of sync.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14485>
This commit is contained in:
Bas Nieuwenhuizen 2022-01-10 23:15:34 +01:00 committed by Marge Bot
parent b6499dff37
commit 3a36d0b787

View file

@ -51,7 +51,7 @@ struct radv_meta_saved_state {
struct radv_scissor_state scissor;
struct radv_sample_locations_state sample_location;
char push_constants[128];
char push_constants[MAX_PUSH_CONSTANTS_SIZE];
struct radv_render_pass *pass;
const struct radv_subpass *subpass;