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:

committed by
Karol Herbst

parent
d8a0658d8b
commit
08f804ec0c
@@ -313,6 +313,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
|
|||||||
|
|
||||||
static const nir_lower_tex_options tex_options = {
|
static const nir_lower_tex_options tex_options = {
|
||||||
.lower_txp = ~0,
|
.lower_txp = ~0,
|
||||||
|
.lower_tg4_offsets = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
nir_lower_tex(nir, &tex_options);
|
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 = {
|
struct nir_lower_tex_options tex_options = {
|
||||||
.lower_rect = 0,
|
.lower_rect = 0,
|
||||||
|
.lower_tg4_offsets = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (key) {
|
if (key) {
|
||||||
|
@@ -683,6 +683,7 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir,
|
|||||||
.lower_txb_shadow_clamp = true,
|
.lower_txb_shadow_clamp = true,
|
||||||
.lower_txd_shadow_clamp = true,
|
.lower_txd_shadow_clamp = true,
|
||||||
.lower_txd_offset_clamp = true,
|
.lower_txd_offset_clamp = true,
|
||||||
|
.lower_tg4_offsets = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
OPT(nir_lower_tex, &tex_options);
|
OPT(nir_lower_tex, &tex_options);
|
||||||
|
Reference in New Issue
Block a user