hk: fix texture state count
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

default is 256 which is not what we want! perf issue maybe.

Backport-to: 25.1
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35189>
This commit is contained in:
Alyssa Rosenzweig 2025-05-30 08:44:17 -04:00 committed by Marge Bot
parent 01c59030e8
commit 3c5c3d7819

View file

@ -832,6 +832,7 @@ hk_upload_shader(struct hk_device *dev, struct hk_shader *shader)
cfg.preshader_register_count = shader->b.info.nr_preamble_gprs; cfg.preshader_register_count = shader->b.info.nr_preamble_gprs;
cfg.sampler_state_register_count = agx_translate_sampler_state_count( cfg.sampler_state_register_count = agx_translate_sampler_state_count(
shader->b.info.uses_txf ? 1 : 0, false); shader->b.info.uses_txf ? 1 : 0, false);
cfg.texture_state_register_count = 0;
} }
} }