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>
(cherry picked from commit 0934467fd9)
This commit is contained in:
Gert Wollny 2021-04-20 23:57:12 +02:00 committed by Eric Engestrom
parent ecba845c0d
commit ac7b6c9dc8
2 changed files with 1 additions and 10 deletions

View file

@ -22,7 +22,7 @@
"description": "Revert \"r600: Don't advertise support for scaled int16 vertex formats\"",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "00a1521529ccb4f7527c6d55a471ef18d1b000d1"
},

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;
}