summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_cmd_buffer.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2018-07-02 12:49:06 -0700
committerJason Ekstrand <[email protected]>2018-07-09 15:37:51 -0700
commit2caf6c039289de1c26ad55c68708edd51f0b8277 (patch)
treeea5e648e458e5d3cfc0ae754b3c18a4c553cc02b /src/intel/vulkan/genX_cmd_buffer.c
parent32f4feb5a0d515c7ec1aaa774cefd8496414d53f (diff)
anv/pipeline: Add a per-VB instance divisor
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 7033e978144..b7ed817d3a0 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -2518,12 +2518,7 @@ genX(cmd_buffer_flush_state)(struct anv_cmd_buffer *cmd_buffer)
.MemoryObjectControlState = GENX(MOCS),
#else
.BufferAccessType = pipeline->vb[vb].instanced ? INSTANCEDATA : VERTEXDATA,
- /* Our implementation of VK_KHR_multiview uses instancing to draw
- * the different views. If the client asks for instancing, we
- * need to use the Instance Data Step Rate to ensure that we
- * repeat the client's per-instance data once for each view.
- */
- .InstanceDataStepRate = anv_subpass_view_count(pipeline->subpass),
+ .InstanceDataStepRate = pipeline->vb[vb].instance_divisor,
.VertexBufferMemoryObjectControlState = GENX(MOCS),
#endif