X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fstate_tracker%2Fst_atom_framebuffer.c;h=fea537c406d70fbe31ad4cb39dd18d92bccaab3c;hb=882ca6dfb0f3d17e0f8bc917307d915ab1718069;hp=15727fa9d808669d5989160e61e410752388a1b2;hpb=b5697c311b6f29dee40b96c48bad3279e3667c1e;p=mesa.git diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index 15727fa9d80..fea537c406d 100644 --- a/src/mesa/state_tracker/st_atom_framebuffer.c +++ b/src/mesa/state_tracker/st_atom_framebuffer.c @@ -43,7 +43,7 @@ #include "cso_cache/cso_context.h" #include "util/u_math.h" #include "util/u_inlines.h" -#include "util/u_format.h" +#include "util/format/u_format.h" #include "util/u_framebuffer.h" #include "main/framebuffer.h" @@ -146,7 +146,7 @@ st_update_framebuffer_state( struct st_context *st ) if (strb) { if (strb->is_rtt || (strb->texture && - _mesa_get_format_color_encoding(strb->Base.Format) == GL_SRGB)) { + _mesa_is_format_srgb(strb->Base.Format))) { /* rendering to a GL texture, may have to update surface */ st_update_renderbuffer_surface(st, strb); }