ir3: Don't count images in num_samp

The new style reg packers noticed us overflowing SP_xS_CONFIG.num_samp.
Even if we lower image loads to isam, they are using the bindless
descriptors, so no reason to count them here.  Fixes:

  spec@arb_shader_image_load_store@max-images

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36589>
This commit is contained in:
Rob Clark 2025-07-26 14:27:44 -07:00 committed by Marge Bot
parent 4fe255b14d
commit c4ea8375c4

View file

@ -5345,8 +5345,7 @@ emit_instructions(struct ir3_context *ctx)
* it is write-only we don't have to count it, but after lowering derefs
* is too late to compact indices for that.
*/
ctx->so->num_samp =
BITSET_LAST_BIT(ctx->s->info.textures_used) + ctx->s->info.num_images;
ctx->so->num_samp = BITSET_LAST_BIT(ctx->s->info.textures_used);
/* Save off clip+cull information. Note that in OpenGL clip planes may
* be individually enabled/disabled, and some gens handle lowering in