mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
anv,radv,turnip: Lower TG4 offsets with nir_lower_tex
v2: turn on for turnip as well (Karol Herbst) Reviewed-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
parent
d8a0658d8b
commit
08f804ec0c
3 changed files with 3 additions and 0 deletions
|
|
@ -313,6 +313,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
|
|||
|
||||
static const nir_lower_tex_options tex_options = {
|
||||
.lower_txp = ~0,
|
||||
.lower_tg4_offsets = true,
|
||||
};
|
||||
|
||||
nir_lower_tex(nir, &tex_options);
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ ir3_optimize_nir(struct ir3_shader *shader, nir_shader *s,
|
|||
{
|
||||
struct nir_lower_tex_options tex_options = {
|
||||
.lower_rect = 0,
|
||||
.lower_tg4_offsets = true,
|
||||
};
|
||||
|
||||
if (key) {
|
||||
|
|
|
|||
|
|
@ -683,6 +683,7 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir,
|
|||
.lower_txb_shadow_clamp = true,
|
||||
.lower_txd_shadow_clamp = true,
|
||||
.lower_txd_offset_clamp = true,
|
||||
.lower_tg4_offsets = true,
|
||||
};
|
||||
|
||||
OPT(nir_lower_tex, &tex_options);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue