mesa: update validation when draw buffer changes

Otherwise validation that depends on the _IntegerDrawBuffers and
_FP32DrawBuffers bitfield can end up stale.

Fixes: d04d9da98c ("st/mesa: fix _IntegerBuffers bitfield use")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35063>
(cherry picked from commit 3ec68e8382)
This commit is contained in:
Timothy Arceri 2025-05-20 16:20:55 +10:00 committed by Eric Engestrom
parent c37ca4cd68
commit e99910538e
2 changed files with 4 additions and 1 deletions

View file

@ -4954,7 +4954,7 @@
"description": "mesa: update validation when draw buffer changes",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "d04d9da98c9f70ec7db59750558f10dad215b2f4",
"notes": null

View file

@ -33,6 +33,7 @@
#include "util/glheader.h"
#include "buffers.h"
#include "context.h"
#include "draw_validate.h"
#include "enums.h"
#include "fbobject.h"
#include "framebuffer.h"
@ -867,6 +868,8 @@ _mesa_drawbuffers(struct gl_context *ctx, struct gl_framebuffer *fb,
}
}
}
_mesa_update_valid_to_render_state(ctx);
}