projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafc874
)
anv/gen7: Properly handle VS with VertexID but no vertices
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 10 Nov 2015 19:31:31 +0000
(11:31 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Tue, 10 Nov 2015 19:31:31 +0000
(11:31 -0800)
src/vulkan/gen7_pipeline.c
patch
|
blob
|
history
diff --git
a/src/vulkan/gen7_pipeline.c
b/src/vulkan/gen7_pipeline.c
index 3622071ead29eae885d77b73cb0184d05edc0662..269d9d46ac5847dcda915afac5a69c8a85bb1bae 100644
(file)
--- a/
src/vulkan/gen7_pipeline.c
+++ b/
src/vulkan/gen7_pipeline.c
@@
-39,10
+39,11
@@
gen7_emit_vertex_input(struct anv_pipeline *pipeline,
const uint32_t num_dwords = 1 + element_count * 2;
uint32_t *p;
- if (info->attributeCount > 0) {
- p = anv_batch_emitn(&pipeline->batch, num_dwords,
- GEN7_3DSTATE_VERTEX_ELEMENTS);
- }
+ if (info->attributeCount == 0 && !sgvs)
+ return;
+
+ p = anv_batch_emitn(&pipeline->batch, num_dwords,
+ GEN7_3DSTATE_VERTEX_ELEMENTS);
for (uint32_t i = 0; i < info->attributeCount; i++) {
const VkVertexInputAttributeDescription *desc =