panfrost: Adjust for mismatch between hardware/Gallium in arrays/cube
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 7 Jan 2020 02:22:12 +0000 (21:22 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 7 Jan 2020 07:54:40 +0000 (08:54 +0100)
commit4152d45d38a21f716ddbbebb571ff1e22cfe689d
tree28ad65dff1a03dbffe92e206d8f0cc959d7b3371
parent0b714f3fa377be681f9031c5884e96b277eac102
panfrost: Adjust for mismatch between hardware/Gallium in arrays/cube

The hardware separates face selection and array indexing, it looks like,
whereas Gallium smushes them together with some modulus fun. Let's fix
it so mipmapped 2D arrays work without regressing cubemaps.

Fixes dEQP-GLES3.functional.texture.filtering.2d_array.* among others.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/gallium/drivers/panfrost/pan_context.c