From: Jason Ekstrand Date: Tue, 26 Jan 2016 23:44:02 +0000 (-0800) Subject: anv/cmd_buffer: Put base_instance in the second component X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ef0d39cb2c8c2931e6afc56322ceb84a2fe0cbe;p=mesa.git anv/cmd_buffer: Put base_instance in the second component --- diff --git a/src/vulkan/gen7_cmd_buffer.c b/src/vulkan/gen7_cmd_buffer.c index 8fae1351848..9f66364c6c1 100644 --- a/src/vulkan/gen7_cmd_buffer.c +++ b/src/vulkan/gen7_cmd_buffer.c @@ -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); diff --git a/src/vulkan/gen8_cmd_buffer.c b/src/vulkan/gen8_cmd_buffer.c index c919c065ca2..560608fe346 100644 --- a/src/vulkan/gen8_cmd_buffer.c +++ b/src/vulkan/gen8_cmd_buffer.c @@ -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);