tgsi: Remove format desc null check

Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17490>
This commit is contained in:
Konstantin Seurer 2022-07-12 14:42:45 +02:00 committed by Marge Bot
parent 927f863364
commit f10b9563dd
2 changed files with 1 additions and 3 deletions

View File

@ -148,7 +148,7 @@ static int str_match_format(const char **pcur)
for (unsigned i = 0; i < PIPE_FORMAT_COUNT; i++) {
const struct util_format_description *desc =
util_format_description(i);
if (desc && str_match_nocase_whole(pcur, desc->name)) {
if (str_match_nocase_whole(pcur, desc->name)) {
return i;
}
}

View File

@ -800,8 +800,6 @@ translate_generic_create(const struct translate_key *key)
const struct util_format_unpack_description *unpack =
util_format_unpack_description(key->element[i].input_format);
assert(format_desc);
tg->attrib[i].type = key->element[i].type;
if (format_desc->channel[0].pure_integer) {