etnaviv: replace translate_clear_color with util_pack_color
authorLucas Stach <dev@lynxeye.de>
Sun, 4 Jun 2017 19:06:31 +0000 (21:06 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 16 Jun 2017 13:26:23 +0000 (15:26 +0200)
commitd6aa2ba2b293f78d9c28922ed3af9077100f3480
tree7643164e0ab75aa72ef4c1745f564ad34799239d
parent6633880e7e0557b3dc4e89e62857bd7b548c93fd
etnaviv: replace translate_clear_color with util_pack_color

This replaces the open coded etnaviv version of the color pack with the
common util_pack_color.

Fixes piglits:
arb_color_buffer_float-clear
fcc-front-buffer-distraction
fbo-clearmipmap

Fixes: c9e8b49b ("etnaviv: gallium driver for Vivante GPUs")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
src/gallium/drivers/etnaviv/etnaviv_translate.h