mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-27 23:08:12 +02:00
zink: Only call reapply_color_write if EXT_color_write_enable is available
Allows to use zink with drivers that do not expose this extension.
Backport-to: 23.3 24.0
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27516>
(cherry picked from commit 72886cbefa)
This commit is contained in:
parent
b641a55466
commit
5077f9aa69
2 changed files with 3 additions and 2 deletions
|
|
@ -1834,7 +1834,7 @@
|
|||
"description": "zink: Only call reapply_color_write if EXT_color_write_enable is available",
|
||||
"nominated": true,
|
||||
"nomination_type": 4,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -5471,7 +5471,8 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
|
|||
if (!is_copy_only && !is_compute_only) {
|
||||
pipe_buffer_write_nooverlap(&ctx->base, ctx->dummy_vertex_buffer, 0, sizeof(data), data);
|
||||
pipe_buffer_write_nooverlap(&ctx->base, ctx->dummy_xfb_buffer, 0, sizeof(data), data);
|
||||
reapply_color_write(ctx);
|
||||
if (screen->info.have_EXT_color_write_enable)
|
||||
reapply_color_write(ctx);
|
||||
|
||||
/* set on startup just to avoid validation errors if a draw comes through without
|
||||
* a tess shader later
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue