zink: delete srgb tracking for clears

no longer used

Acked-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17366>
This commit is contained in:
Mike Blumenkrantz 2022-07-06 10:37:33 -04:00 committed by Marge Bot
parent b0e62adbcc
commit 7754041ed6
2 changed files with 0 additions and 3 deletions

View file

@ -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

View file

@ -36,7 +36,6 @@ struct zink_framebuffer_clear_data {
union {
struct {
union pipe_color_union color;
bool srgb;
} color;
struct {
float depth;