mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
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:
parent
acdf1a1234
commit
00a1521529
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue