OSDN Git Service

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)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 20 Nov 2019 00:54:04 +0000 (16:54 -0800)
commit79610494f9d6ec925b40f558cd13e8db0d603749
tree3711df4c3e5a3ffd2522097945d5b0e6b9b949a2
parent32aba91c07fd2ab05ca4ce2a05c2806d29e18435
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>
(cherry picked from commit 0f5743429c76b385db9c513102b2010213ffbb8c)
src/freedreno/ir3/ir3_nir_lower_tex_prefetch.c