diff options
author | Ilia Mirkin <[email protected]> | 2014-12-02 01:00:47 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2014-12-06 18:18:40 -0500 |
commit | 39a7c049d36bf5d18653e0a8b360dc8317f4b8ec (patch) | |
tree | 60f83645608d14e887e70503957f38f8935560d4 /src/gallium/drivers/freedreno/a3xx/fd3_gmem.c | |
parent | 3674c76edf56f5d1a1a6c56d8dc408e3da93c5a9 (diff) |
freedreno/a3xx: output RGBA16_FLOAT from fs for certain outputs
Fixes R11G11B10F rendering, and is required for SRGB format support.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx/fd3_gmem.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_gmem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c index 8edfb8b46d1..68264096866 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c @@ -101,7 +101,9 @@ emit_mrt(struct fd_ringbuffer *ring, unsigned nr_bufs, } OUT_PKT0(ring, REG_A3XX_SP_FS_IMAGE_OUTPUT_REG(i), 1); - OUT_RING(ring, A3XX_SP_FS_IMAGE_OUTPUT_REG_MRTFORMAT(format)); + OUT_RING(ring, COND((i < nr_bufs) && bufs[i], + A3XX_SP_FS_IMAGE_OUTPUT_REG_MRTFORMAT( + fd3_fs_output_format(bufs[i]->format)))); } } |