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

They are not supported by the hardware.
Fixes:
  dEQP-GLES2.functional.vertex_arrays.single_attribute.strides.buffer_0_32_short3_vec4_dynamic_draw_quads_1
  dEQP-GLES2.functional.vertex_arrays.single_attribute.strides.buffer_0_32_short3_vec4_dynamic_draw_quads_256

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9877>
This commit is contained in:
Gert Wollny 2021-03-27 19:17:07 +01:00 committed by Marge Bot
parent acdf1a1234
commit 00a1521529

View file

@ -119,6 +119,15 @@ 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;
}