Mesa (master): a5xx: fix integer texture border colors

Ilia Mirkin imirkin at kemper.freedesktop.org
Sun Jul 9 01:18:09 UTC 2017


Module: Mesa
Branch: master
Commit: a4eeb0c403dc66af136428a5d44b74328e4db1e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4eeb0c403dc66af136428a5d44b74328e4db1e0

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Jul  8 08:32:32 2017 -0400

a5xx: fix integer texture border colors

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/freedreno/a5xx/fd5_emit.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
index 2939aaca86..a018bb6996 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c
@@ -212,10 +212,8 @@ setup_border_colors(struct fd_texture_stateobj *tex, struct bcolor_entry *entrie
 				continue;
 
 			if (desc->channel[c].pure_integer) {
-				float f = bc->i[c];
-
-				e->fp32[j] = fui(f);
-				e->fp16[j] = util_float_to_half(f);
+				e->fp32[j] = bc->ui[c];
+				e->fp16[j] = bc->ui[c];
 				e->ui16[j] = bc->ui[c];
 				e->si16[j] = bc->i[c];
 				e->ui8[j]  = bc->ui[c];




More information about the mesa-commit mailing list