radv/gfx10: do not allocate space for the ZPASS_DONE bug
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 18 Jul 2019 13:51:31 +0000 (15:51 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 22 Jul 2019 07:02:35 +0000 (09:02 +0200)
GFX10 isn't affected.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index b6ac14f63a919c4f10b3a43f8ef4b699a7bd50c7..84d627340e9fdc7cc0bada902550d2106dc01739 100644 (file)
@@ -364,12 +364,14 @@ radv_reset_cmd_buffer(struct radv_cmd_buffer *cmd_buffer)
                        radv_buffer_get_va(cmd_buffer->upload.upload_bo);
                cmd_buffer->gfx9_fence_va += fence_offset;
 
-               /* Allocate a buffer for the EOP bug on GFX9. */
-               radv_cmd_buffer_upload_alloc(cmd_buffer, 16 * num_db, 8,
-                                            &eop_bug_offset, &fence_ptr);
-               cmd_buffer->gfx9_eop_bug_va =
-                       radv_buffer_get_va(cmd_buffer->upload.upload_bo);
-               cmd_buffer->gfx9_eop_bug_va += eop_bug_offset;
+               if (cmd_buffer->device->physical_device->rad_info.chip_class == GFX9) {
+                       /* Allocate a buffer for the EOP bug on GFX9. */
+                       radv_cmd_buffer_upload_alloc(cmd_buffer, 16 * num_db, 8,
+                                                    &eop_bug_offset, &fence_ptr);
+                       cmd_buffer->gfx9_eop_bug_va =
+                               radv_buffer_get_va(cmd_buffer->upload.upload_bo);
+                       cmd_buffer->gfx9_eop_bug_va += eop_bug_offset;
+               }
        }
 
        cmd_buffer->status = RADV_CMD_BUFFER_STATUS_INITIAL;