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:
parent
927f863364
commit
f10b9563dd
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue