diff options
author | Jason Ekstrand <[email protected]> | 2019-01-08 17:35:19 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-01-22 10:42:56 -0600 |
commit | b4eae8444e0a7c61bd7013e397e351e3b3965a49 (patch) | |
tree | 099ee313e7fced40def6cdeca9852a4a5efee1af /src/intel/vulkan | |
parent | 610f956fdead37da49ee2857a2261c3dfd8fc3cd (diff) |
anv: Always emit at least one vertex element
This seems to make the simulator happier. The early return wasn't
really protecting anything and the code that follows will happily
initialize the dummy element to STORE_0 and emit it.
Reviewed-by: Alejandro PiƱeiro <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 76766a89258..1bc445eae82 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -105,9 +105,7 @@ emit_vertex_input(struct anv_pipeline *pipeline, __builtin_popcount(elements_double) / 2; const uint32_t total_elems = - elem_count + needs_svgs_elem + vs_prog_data->uses_drawid; - if (total_elems == 0) - return; + MAX2(1, elem_count + needs_svgs_elem + vs_prog_data->uses_drawid); uint32_t *p; |