asahi: Upload at most the max texture state registers
The rest are bindless now. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24258>
This commit is contained in:

committed by
Marge Bot

parent
274d0d1c82
commit
689d47fe7c
@@ -1980,7 +1980,7 @@ agx_build_pipeline(struct agx_batch *batch, struct agx_compiled_shader *cs,
|
||||
if (nr_textures) {
|
||||
agx_usc_pack(&b, TEXTURE, cfg) {
|
||||
cfg.start = 0;
|
||||
cfg.count = nr_textures;
|
||||
cfg.count = MIN2(nr_textures, AGX_NUM_TEXTURE_STATE_REGS);
|
||||
cfg.buffer = T_tex.gpu;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user