mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 05:00:09 +01:00
r600/sfn: Lower offset in TXF instructions
Closes: #4960 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11639>
This commit is contained in:
parent
4a031a01ba
commit
d1edf3cdf2
1 changed files with 4 additions and 3 deletions
|
|
@ -851,9 +851,10 @@ int r600_shader_from_nir(struct r600_context *rctx,
|
|||
NIR_PASS_V(sel->nir, r600_lower_shared_io);
|
||||
NIR_PASS_V(sel->nir, r600_nir_lower_atomics);
|
||||
|
||||
static const struct nir_lower_tex_options lower_tex_options = {
|
||||
.lower_txp = ~0u,
|
||||
};
|
||||
struct nir_lower_tex_options lower_tex_options;
|
||||
lower_tex_options.lower_txp = ~0u;
|
||||
lower_tex_options.lower_txf_offset = true;
|
||||
|
||||
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::r600_nir_lower_cube_to_2darray);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue