Revert "r600: Don't advertise support for scaled int16 vertex formats"

This reverts commit 00a1521529.

While the commit fixed some GLES cts tests it introduced heavy regressions
that made the driver unusable.

Closes #4680

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10388>
This commit is contained in:
Gert Wollny
2021-04-20 23:57:12 +02:00
committed by Marge Bot
parent bb56fce8e3
commit 0934467fd9
-9
View File
@@ -119,15 +119,6 @@ static inline bool r600_is_vertex_format_supported(enum pipe_format format)
if (desc->channel[i].size == 8 && desc->nr_channels == 3)
return false;
/* No 16 bit scaled integer formats */
if (desc->channel[i].size == 16) {
if (desc->channel[i].type == UTIL_FORMAT_TYPE_UNSIGNED ||
desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED) {
if (!desc->channel[i].normalized && !desc->channel[i].pure_integer)
return false;
}
}
return true;
}