From: Gert Wollny Date: Wed, 6 May 2020 22:11:33 +0000 (+0200) Subject: r600/sfn: lower image derefs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b303540c48c1d47181b241e7d028d0bb2545996c;p=mesa.git r600/sfn: lower image derefs v2: Signal lowering image derefs by using the CAP Signed-off-by: Gert Wollny Part-of: --- diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index 435aa62ad7c..a1a41cc3e5c 100644 --- a/src/gallium/drivers/r600/r600_pipe.c +++ b/src/gallium/drivers/r600/r600_pipe.c @@ -341,6 +341,7 @@ static int r600_get_param(struct pipe_screen* pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_TEXCOORD: return 1; + case PIPE_CAP_NIR_IMAGES_AS_DEREF: case PIPE_CAP_FAKE_SW_MSAA: return 0; diff --git a/src/gallium/drivers/r600/sfn/sfn_nir.cpp b/src/gallium/drivers/r600/sfn/sfn_nir.cpp index 571498a8f4b..8ae92fd09eb 100644 --- a/src/gallium/drivers/r600/sfn/sfn_nir.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_nir.cpp @@ -579,7 +579,6 @@ int r600_shader_from_nir(struct r600_context *rctx, .lower_txp = ~0u, }; NIR_PASS_V(sel->nir, nir_lower_tex, &lower_tex_options); - NIR_PASS_V(sel->nir, r600::r600_nir_lower_txl_txf_array_or_cube); NIR_PASS_V(sel->nir, r600_nir_lower_int_tg4);