summaryrefslogtreecommitdiff
path: root/src/asahi
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>2024-05-27 18:19:31 -0400
committerMarge Bot <emma+marge@anholt.net>2024-06-07 16:57:03 +0000
commite5bc9da499490a663ccab94a3a37074056d1bc4e (patch)
tree8870194a9d82971d6bcb1773f98b766968483288 /src/asahi
parenta9a6af50a765b33ca5ece4d7b5caae9fd35e1841 (diff)
asahi: add missing lowerings
not sure how this worked before. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29607>
Diffstat (limited to 'src/asahi')
-rw-r--r--src/asahi/lib/agx_bg_eot.c1
-rw-r--r--src/asahi/lib/agx_nir_lower_tilebuffer.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/asahi/lib/agx_bg_eot.c b/src/asahi/lib/agx_bg_eot.c
index 52cd56d7f59..6c8b9f6c181 100644
--- a/src/asahi/lib/agx_bg_eot.c
+++ b/src/asahi/lib/agx_bg_eot.c
@@ -38,6 +38,7 @@ agx_compile_bg_eot_shader(struct agx_bg_eot_cache *cache, nir_shader *shader,
agx_nir_lower_tilebuffer(shader, tib, NULL, &bindless_base, NULL);
agx_nir_lower_monolithic_msaa(shader, tib->nr_samples);
agx_nir_lower_multisampled_image_store(shader);
+ agx_nir_lower_texture(shader);
nir_shader_intrinsics_pass(
shader, lower_tex_handle_to_u0,
diff --git a/src/asahi/lib/agx_nir_lower_tilebuffer.c b/src/asahi/lib/agx_nir_lower_tilebuffer.c
index 676cc62d381..31c84eae405 100644
--- a/src/asahi/lib/agx_nir_lower_tilebuffer.c
+++ b/src/asahi/lib/agx_nir_lower_tilebuffer.c
@@ -172,7 +172,7 @@ dim_for_rt(nir_builder *b, unsigned nr_samples, nir_def **sample)
*sample = nir_imm_intN_t(b, 0, 16);
return GLSL_SAMPLER_DIM_2D;
} else {
- *sample = nir_load_sample_id(b);
+ *sample = nir_u2u16(b, nir_load_sample_id(b));
b->shader->info.fs.uses_sample_shading = true;
return GLSL_SAMPLER_DIM_MS;
}