From: Thomas H.P. Andersen Date: Tue, 11 Jul 2023 16:22:30 +0000 (+0200) Subject: tgsi: remove unused tgsi_shader_info.images_load X-Git-Tag: upstream/23.3.3~5431 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c227964f31ccf5a5d8d03ecca55b179e2f33add;p=platform%2Fupstream%2Fmesa.git tgsi: remove unused tgsi_shader_info.images_load Reviewed-by: Charmaine Lee Reviewed-by: Christian Gmeiner Part-of: --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c b/src/gallium/auxiliary/tgsi/tgsi_scan.c index 0d39e41..f522f68 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.c +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c @@ -224,12 +224,7 @@ scan_src_operand(struct tgsi_shader_info *info, info->shader_buffers_atomic |= 1 << src->Register.Index; } } else { - if (src->Register.File == TGSI_FILE_IMAGE) { - if (src->Register.Indirect) - info->images_load = info->images_declared; - else - info->images_load |= 1 << src->Register.Index; - } else if (src->Register.File == TGSI_FILE_BUFFER) { + if (src->Register.File == TGSI_FILE_BUFFER) { if (src->Register.Indirect) info->shader_buffers_load = info->shader_buffers_declared; else diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index c4969fb..79329de 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -115,7 +115,6 @@ struct tgsi_shader_info * Bitmask indicating which declared image is a buffer. */ unsigned images_buffers; - unsigned images_load; /**< bitmask of images using loads */ unsigned images_store; /**< bitmask of images using stores */ unsigned images_atomic; /**< bitmask of images using atomics */ unsigned shader_buffers_declared; /**< bitmask of declared shader buffers */