[Mesa-dev] [PATCH 20/24] i965/cnl: Don't resolve single sampled color rb in case of sRGB formats

Anuj Phogat anuj.phogat at gmail.com
Tue May 16 22:41:54 UTC 2017


On Fri, May 12, 2017 at 4:38 PM, Anuj Phogat <anuj.phogat at gmail.com> wrote:
> As sRGB now supports lossless compression, don't we also need to stop
> resolving single sampled color render buffers for sRGB formats in Gen 10.
>
s/don't we/we. Fixed locally.

> Signed-off-by: Anuj Phogat <anuj.phogat at gmail.com>
> ---
>  src/mesa/drivers/dri/i965/brw_context.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
> index 1247d03..9e19617 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -326,7 +326,7 @@ intel_update_state(struct gl_context * ctx, GLuint new_state)
>      * enabled because otherwise the surface state will be programmed with the
>      * linear equivalent format anyway.
>      */
> -   if (brw->gen >= 9 && ctx->Color.sRGBEnabled) {
> +   if (brw->gen == 9 && ctx->Color.sRGBEnabled) {
>        struct gl_framebuffer *fb = ctx->DrawBuffer;
>        for (int i = 0; i < fb->_NumColorDrawBuffers; i++) {
>           struct gl_renderbuffer *rb = fb->_ColorDrawBuffers[i];
> --
> 2.9.3
>


More information about the mesa-dev mailing list