aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2017-01-15 13:19:47 -0500
committerEmil Velikov <[email protected]>2017-01-24 02:03:15 +0000
commit6aade42111304a8c79fe515bbe3286631bd70d37 (patch)
tree692a8ac9b4c5a2e796387995c242e523484731ec /src/gallium/drivers
parent4dc6ed53c1a8431a818d2f13e60f340d60f80127 (diff)
freedreno/a5xx: srgb fix
Signed-off-by: Rob Clark <[email protected]> Cc: "17.0" <[email protected]> (cherry picked from commit 141a4f86d6b9c0c4dbde511b741576a103f8f7ff)
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_gmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c b/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c
index 19204584619..b80a04fd2d2 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: