Mesa (main): zink: delete srgb tracking for clears
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 18 03:57:16 UTC 2022
Module: Mesa
Branch: main
Commit: 7754041ed6a13142be0a089015f2619eeecff680
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7754041ed6a13142be0a089015f2619eeecff680
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Jul 6 10:37:33 2022 -0400
zink: delete srgb tracking for clears
no longer used
Acked-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17366>
---
src/gallium/drivers/zink/zink_clear.c | 2 --
src/gallium/drivers/zink/zink_clear.h | 1 -
2 files changed, 3 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_clear.c b/src/gallium/drivers/zink/zink_clear.c
index 945c6b8a819..55e956f229e 100644
--- a/src/gallium/drivers/zink/zink_clear.c
+++ b/src/gallium/drivers/zink/zink_clear.c
@@ -244,8 +244,6 @@ zink_clear(struct pipe_context *pctx,
clear->scissor = *scissor_state;
for (unsigned i = 0; i < 4; i++)
clamp_color(desc, &clear->color.color, pcolor, i);
- clear->color.srgb = psurf->format != psurf->texture->format &&
- !util_format_is_srgb(psurf->format) && util_format_is_srgb(psurf->texture->format);
if (zink_fb_clear_first_needs_explicit(fb_clear))
ctx->rp_clears_enabled &= ~(PIPE_CLEAR_COLOR0 << i);
else
diff --git a/src/gallium/drivers/zink/zink_clear.h b/src/gallium/drivers/zink/zink_clear.h
index e0a0e1fcbc0..94f5564d8f1 100644
--- a/src/gallium/drivers/zink/zink_clear.h
+++ b/src/gallium/drivers/zink/zink_clear.h
@@ -36,7 +36,6 @@ struct zink_framebuffer_clear_data {
union {
struct {
union pipe_color_union color;
- bool srgb;
} color;
struct {
float depth;
More information about the mesa-commit
mailing list