anv/cmd_buffer: Put base_instance in the second component
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Jan 2016 23:44:02 +0000 (15:44 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 26 Jan 2016 23:44:02 +0000 (15:44 -0800)
src/vulkan/gen7_cmd_buffer.c
src/vulkan/gen8_cmd_buffer.c

index 8fae13518489a2b5d6989b224b2101feb244807f..9f66364c6c190945ca6c4816fc6a6522ae2125b4 100644 (file)
@@ -545,7 +545,7 @@ emit_base_vertex_instance(struct anv_cmd_buffer *cmd_buffer,
       anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, 8, 4);
 
    ((uint32_t *)id_state.map)[0] = base_vertex;
-   ((uint32_t *)id_state.map)[0] = base_instance;
+   ((uint32_t *)id_state.map)[1] = base_instance;
 
    if (!cmd_buffer->device->info.has_llc)
       anv_state_clflush(id_state);
index c919c065ca225ccc2d1c5aee4a0d73c267815315..560608fe346a700683f820451edcdfca2379877e 100644 (file)
@@ -476,7 +476,7 @@ emit_base_vertex_instance(struct anv_cmd_buffer *cmd_buffer,
       anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, 8, 4);
 
    ((uint32_t *)id_state.map)[0] = base_vertex;
-   ((uint32_t *)id_state.map)[0] = base_instance;
+   ((uint32_t *)id_state.map)[1] = base_instance;
 
    if (!cmd_buffer->device->info.has_llc)
       anv_state_clflush(id_state);