anv: Fix misc simple warnings

This commit is contained in:
Kristian Høgsberg Kristensen 2016-02-14 13:20:06 -08:00
parent 08ecd8a8d1
commit 5d72d7b12d
4 changed files with 8 additions and 5 deletions

View file

@ -712,7 +712,7 @@ anv_state_stream_init(struct anv_state_stream *stream,
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) {

View file

@ -355,7 +355,7 @@ anv_batch_bo_list_clone(const struct list_head *list,
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;

View file

@ -854,6 +854,10 @@ VkResult anv_CreateDevice(
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;

View file

@ -133,14 +133,13 @@ VkResult anv_GetQueryPoolResults(
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) {