mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
Revert "radeonsi: reject invalid vertex element formats"
This reverts commit 9e4d1d8a7c.
It broke arb_vertex_type_10f_11f_11f_rev-draw-vertices, which has
first_non_void == -1.
This commit is contained in:
parent
a37cf630b4
commit
74f40d1570
1 changed files with 0 additions and 5 deletions
|
|
@ -3366,11 +3366,6 @@ static void *si_create_vertex_elements(struct pipe_context *ctx,
|
|||
|
||||
desc = util_format_description(elements[i].src_format);
|
||||
first_non_void = util_format_get_first_non_void_channel(elements[i].src_format);
|
||||
if (first_non_void < 0) {
|
||||
FREE(v);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
data_format = si_translate_buffer_dataformat(ctx->screen, desc, first_non_void);
|
||||
num_format = si_translate_buffer_numformat(ctx->screen, desc, first_non_void);
|
||||
channel = &desc->channel[first_non_void];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue