void
anv_state_stream_finish(struct anv_state_stream *stream)
{
- const uint32_t block_size = stream->block_pool->block_size;
+ VG(const uint32_t block_size = stream->block_pool->block_size);
struct anv_state_stream_block *next = stream->block;
while (next != NULL) {
struct anv_batch_bo *prev_bbo = NULL;
list_for_each_entry(struct anv_batch_bo, bbo, list, link) {
- struct anv_batch_bo *new_bbo;
+ struct anv_batch_bo *new_bbo = NULL;
result = anv_batch_bo_clone(cmd_buffer, bbo, &new_bbo);
if (result != VK_SUCCESS)
break;
case 9:
result = gen9_init_device_state(device);
break;
+ default:
+ /* Shouldn't get here as we don't create physical devices for any other
+ * gens. */
+ unreachable("unhandled gen");
}
if (result != VK_SUCCESS)
goto fail_fd;
break;
}
case VK_QUERY_TYPE_PIPELINE_STATISTICS:
- /* Not yet implemented */
- break;
+ unreachable("pipeline stats not supported");
case VK_QUERY_TYPE_TIMESTAMP: {
result = slot[firstQuery + i].begin;
break;
}
default:
- assert(!"Invalid query type");
+ unreachable("invalid pool type");
}
if (flags & VK_QUERY_RESULT_64_BIT) {