diff options
author | Jason Ekstrand <[email protected]> | 2018-07-02 12:44:49 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-07-09 15:37:51 -0700 |
commit | 32f4feb5a0d515c7ec1aaa774cefd8496414d53f (patch) | |
tree | e7889aa74e6af2f724d0b901ba4e72df60de36df /src/intel/vulkan/anv_pipeline.c | |
parent | 6db20229ab6f1324a191d0a1b13437e31a9ec9cd (diff) |
anv/pipeline: Use a per-VB struct instead of separate arrays
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 1565fe7a7a3..f0bf80a1cf0 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -1407,7 +1407,7 @@ anv_pipeline_init(struct anv_pipeline *pipeline, const VkVertexInputBindingDescription *desc = &vi_info->pVertexBindingDescriptions[i]; - pipeline->binding_stride[desc->binding] = desc->stride; + pipeline->vb[desc->binding].stride = desc->stride; /* Step rate is programmed per vertex element (attribute), not * binding. Set up a map of which bindings step per instance, for @@ -1415,10 +1415,10 @@ anv_pipeline_init(struct anv_pipeline *pipeline, switch (desc->inputRate) { default: case VK_VERTEX_INPUT_RATE_VERTEX: - pipeline->instancing_enable[desc->binding] = false; + pipeline->vb[desc->binding].instanced = false; break; case VK_VERTEX_INPUT_RATE_INSTANCE: - pipeline->instancing_enable[desc->binding] = true; + pipeline->vb[desc->binding].instanced = true; break; } } |