freedreno/ir3: disable texture prefetch for 1d array textures
authorJonathan Marek <jonathan@marek.ca>
Fri, 15 Nov 2019 17:38:28 +0000 (12:38 -0500)
committerJonathan Marek <jonathan@marek.ca>
Sun, 17 Nov 2019 17:01:18 +0000 (17:01 +0000)
commit0f5743429c76b385db9c513102b2010213ffbb8c
tree3a551b70d144a97e7afd1ceb360e5fdfb119e0fd
parentef9635d0bce9383a22bb3a8506da4d55726e5d59
freedreno/ir3: disable texture prefetch for 1d array textures

Prefetch only supports the basic 2D texture case, checking is_array is
needed because 1d array textures pass the coord num_components==2 test.

Fixes: 2a0d45ae ("freedreno/ir3: Add a NIR pass to select tex instructions eligible for pre-fetch")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/freedreno/ir3/ir3_nir_lower_tex_prefetch.c