diff options
author | Marek Olšák <[email protected]> | 2017-01-20 16:00:45 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-01-20 16:02:45 +0100 |
commit | 74f40d15709350241411d79fe76940ffe2d197dc (patch) | |
tree | b4d6e3152dad9f2908125ee53cffa9d00f712a62 /src/gallium/drivers | |
parent | a37cf630b4d1434925b570e13f009e9c3f8f23af (diff) |
Revert "radeonsi: reject invalid vertex element formats"
This reverts commit 9e4d1d8a7c0d60a6975d186944cd870e06f94773.
It broke arb_vertex_type_10f_11f_11f_rev-draw-vertices, which has
first_non_void == -1.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 4a9ca812174..876cbf6a34b 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -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]; |