X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fgallium%2Fdrivers%2Fradeonsi%2Fsi_descriptors.c;h=0d1abe19c05252dc8d0a30eed473a8f6c2bcb76c;hp=62bf78ea45a4e3183c92d70725656a4e4d6dbebf;hb=9b75061386ea52bcd1041fb7840e0121d5a883c5;hpb=5fd2cfb71b6ce04af408f366af7189b89dea7a61 diff --git a/src/gallium/drivers/radeonsi/si_descriptors.c b/src/gallium/drivers/radeonsi/si_descriptors.c index 62bf78ea45a..0d1abe19c05 100644 --- a/src/gallium/drivers/radeonsi/si_descriptors.c +++ b/src/gallium/drivers/radeonsi/si_descriptors.c @@ -2805,7 +2805,7 @@ bool si_gfx_resources_check_encrypted(struct si_context *sctx) si_sampler_views_check_encrypted(sctx, &sctx->samplers[i], current_shader[i]->cso->info.base.textures_used); use_encrypted_bo |= si_image_views_check_encrypted(sctx, &sctx->images[i], - current_shader[i]->cso->info.images_declared); + u_bit_consecutive(0, current_shader[i]->cso->info.base.num_images)); } use_encrypted_bo |= si_buffer_resources_check_encrypted(sctx, &sctx->rw_buffers); @@ -2858,7 +2858,7 @@ bool si_compute_resources_check_encrypted(struct si_context *sctx) */ return si_buffer_resources_check_encrypted(sctx, &sctx->const_and_shader_buffers[sh]) || si_sampler_views_check_encrypted(sctx, &sctx->samplers[sh], info->base.textures_used) || - si_image_views_check_encrypted(sctx, &sctx->images[sh], info->images_declared) || + si_image_views_check_encrypted(sctx, &sctx->images[sh], u_bit_consecutive(0, info->base.num_images)) || si_buffer_resources_check_encrypted(sctx, &sctx->rw_buffers); }