From 0934467fd91b7c29da171902b7f0eef6baee4ca5 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 20 Apr 2021 23:57:12 +0200 Subject: [PATCH] Revert "r600: Don't advertise support for scaled int16 vertex formats" This reverts commit 00a1521529ccb4f7527c6d55a471ef18d1b000d1. While the commit fixed some GLES cts tests it introduced heavy regressions that made the driver unusable. Closes #4680 Signed-off-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/r600_formats.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/gallium/drivers/r600/r600_formats.h b/src/gallium/drivers/r600/r600_formats.h index 712b057f65a..6c94a24700b 100644 --- a/src/gallium/drivers/r600/r600_formats.h +++ b/src/gallium/drivers/r600/r600_formats.h @@ -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; }