From: Ilia Mirkin Date: Sat, 8 Jul 2017 12:32:32 +0000 (-0400) Subject: a5xx: fix integer texture border colors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4eeb0c403dc66af136428a5d44b74328e4db1e0;p=mesa.git a5xx: fix integer texture border colors Signed-off-by: Ilia Mirkin --- diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_emit.c b/src/gallium/drivers/freedreno/a5xx/fd5_emit.c index 2939aaca868..a018bb69960 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];