anv/meta: Use the dynamic state stream for temporary buffers
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Sep 2015 21:10:33 +0000 (14:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 28 Sep 2015 23:01:01 +0000 (16:01 -0700)
src/vulkan/anv_meta.c

index 30da2fee90f7cee16422f1055fcfef9543899c4e..fb18033c44d29b5981db7320bc1f25c84ea7bec7 100644 (file)
@@ -272,7 +272,7 @@ meta_emit_clear(struct anv_cmd_buffer *cmd_buffer,
    };
 
    size = sizeof(vertex_data) + num_instances * sizeof(*instance_data);
-   state = anv_state_stream_alloc(&cmd_buffer->surface_state_stream, size, 16);
+   state = anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, size, 16);
 
    /* Copy in the vertex and instance data */
    memcpy(state.map, vertex_data, sizeof(vertex_data));
@@ -282,7 +282,7 @@ meta_emit_clear(struct anv_cmd_buffer *cmd_buffer,
    struct anv_buffer vertex_buffer = {
       .device = cmd_buffer->device,
       .size = size,
-      .bo = &device->surface_state_block_pool.bo,
+      .bo = &device->dynamic_state_block_pool.bo,
       .offset = state.offset
    };
 
@@ -669,7 +669,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
    unsigned vb_size = sizeof(struct vue_header) + 3 * sizeof(*vb_data);
 
    struct anv_state vb_state =
-      anv_state_stream_alloc(&cmd_buffer->surface_state_stream, vb_size, 16);
+      anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, vb_size, 16);
    memset(vb_state.map, 0, sizeof(struct vue_header));
    vb_data = vb_state.map + sizeof(struct vue_header);
 
@@ -712,7 +712,7 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer,
    struct anv_buffer vertex_buffer = {
       .device = device,
       .size = vb_size,
-      .bo = &device->surface_state_block_pool.bo,
+      .bo = &device->dynamic_state_block_pool.bo,
       .offset = vb_state.offset,
    };