etnaviv: fix alpha test on GC3000
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 17 Jan 2020 09:32:33 +0000 (10:32 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 4 Mar 2020 11:59:47 +0000 (11:59 +0000)
commit83f54e3c54ab43fc7d7946999dc9dda6a93cf67d
tree90bbc315d0c45f023a745d48f4d9f2236194128f
parentf95fa3d1ac0a8dfbaa95db441c2744f7ad942dec
etnaviv: fix alpha test on GC3000

Store ref_value in PE_STENCIL_CONFIG_EXT as done by blob.

Fixes following piglits:
 spec@ext_framebuffer_object@fbo-alphatest-formats
 spec@ext_packed_float@fbo-alphatest-formats
 spec@ext_texture_srgb@fbo-alphatest-formats

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4028>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4028>
src/gallium/drivers/etnaviv/etnaviv_emit.c
src/gallium/drivers/etnaviv/etnaviv_zsa.c
src/gallium/drivers/etnaviv/etnaviv_zsa.h