radv: Don't set instance count using predication.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 9 Apr 2018 14:53:57 +0000 (16:53 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 9 Apr 2018 21:04:35 +0000 (23:04 +0200)
The packet can sometimes be skipped, but we still think the change takes effect.

This just makes the packet always take effect.

Fixes: ad11fc3571 "radv: don't emit unneeded vertex state."
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105942
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c

index 6cd798dbfc77e9132f818b178680dcc7aedaf86a..cec62f6ac115283888e0df57401fbb73a670a292 100644 (file)
@@ -2958,7 +2958,7 @@ radv_emit_draw_packets(struct radv_cmd_buffer *cmd_buffer,
                }
 
                if (state->last_num_instances != info->instance_count) {
-                       radeon_emit(cs, PKT3(PKT3_NUM_INSTANCES, 0, state->predicating));
+                       radeon_emit(cs, PKT3(PKT3_NUM_INSTANCES, 0, false));
                        radeon_emit(cs, info->instance_count);
                        state->last_num_instances = info->instance_count;
                }