Module: Mesa Branch: master Commit: 141a4f86d6b9c0c4dbde511b741576a103f8f7ff URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=141a4f86d6b9c0c4dbde511b741576a103f8f7ff
Author: Rob Clark <[email protected]> Date: Sun Jan 15 13:19:47 2017 -0500 freedreno/a5xx: srgb fix Signed-off-by: Rob Clark <[email protected]> Cc: "17.0" <[email protected]> --- src/gallium/drivers/freedreno/a5xx/fd5_gmem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c b/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c index 1920458..b80a04f 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c @@ -109,7 +109,8 @@ emit_mrt(struct fd_ringbuffer *ring, unsigned nr_bufs, } OUT_PKT4(ring, REG_A5XX_SP_FS_MRT_REG(i), 1); - OUT_RING(ring, A5XX_SP_FS_MRT_REG_COLOR_FORMAT(format)); + OUT_RING(ring, A5XX_SP_FS_MRT_REG_COLOR_FORMAT(format) | + COND(srgb, A5XX_SP_FS_MRT_REG_COLOR_SRGB)); /* when we support UBWC, these would be the system memory * addr/pitch/etc: _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
