etnaviv: fix incorrect varying interpolation
authorJonathan Marek <jonathan@marek.ca>
Wed, 19 Jun 2019 21:49:47 +0000 (17:49 -0400)
committerJonathan Marek <jonathan@marek.ca>
Sun, 14 Jul 2019 14:34:17 +0000 (10:34 -0400)
commit4e102a6de72667c1177e7c484d72bf1d94d028ca
treeb729d675dcb5d1c086c1d114e9e6e6174530b3e8
parenta9e78a44d1edc39df99bbf71e5e1d8d762438ceb
etnaviv: fix incorrect varying interpolation

This corresponds to what the GC3000 blob does. The USED / UNUSED enums are
wrong, at least for GC2000/GC3000.

Without this the 3rd texture component is not interpolated correctly (flat?)
in the following test (and others):

dEQP-GLES2.functional.texture.mipmap.cube.generate.rgba8888_nicest

Strangely, when the texture is sampled from OpenGL it works correctly,
the problem only shows up for sampling by gallium/blitter. This fixes other
cube map tests which use util_blitter_blit.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_compiler.c