radeonsi: fix UINT/SINT clamping for 10-bit formats on <= CIK
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 20 Feb 2017 11:07:21 +0000 (12:07 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 21 Feb 2017 09:45:13 +0000 (10:45 +0100)
commit066a117be77fdc2b29c8eafabb4e2c2fa902a18e
treec1df87726ea1b0fbc7c8571042e29a9e280ebde2
parent6a1d9684f4ec1e1eed49bc14749be7b7784277ec
radeonsi: fix UINT/SINT clamping for 10-bit formats on <= CIK

The same PS epilog workaround as for 8-bit integer formats is required,
since the CB doesn't do clamping.

Fixes GL45-CTS.gtf32.GL3Tests.packed_pixels.packed_pixels*.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.h
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state_shaders.c