radeonsi: fix border color translation for integer textures
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 23 Sep 2017 12:19:59 +0000 (14:19 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 29 Sep 2017 09:45:08 +0000 (11:45 +0200)
commit797dd12c7b77d68dfda61eb9ff6b8e73721786f6
tree4c903457a84d5c438b05448195025af5f12dd6fd
parent6eb9483912539f0962fd62bc50039c6f768f1621
radeonsi: fix border color translation for integer textures

This fixes the extremely unlikely case that an application uses
0x80000000 or 0x3f800000 as border color for an integer texture and
helps in the also, but perhaps slightly less, unlikely case that 1 is
used as a border color.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c