turnip: Fix unused variable warnings.
authorEric Anholt <eric@anholt.net>
Tue, 26 Nov 2019 19:15:12 +0000 (11:15 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 5 Dec 2019 04:32:15 +0000 (20:32 -0800)
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_descriptor_set.c

index 5e93395dff59967ebc0f19009bab152b50c86ea4..b5da64627ef672d4b5fdea8632bd6c4f3c6f2a96 100644 (file)
@@ -834,8 +834,6 @@ tu6_emit_store_attachment(struct tu_cmd_buffer *cmd,
 static void
 tu6_emit_tile_store(struct tu_cmd_buffer *cmd, struct tu_cs *cs)
 {
-   const struct tu_framebuffer *fb = cmd->state.framebuffer;
-   const struct tu_tiling_config *tiling = &cmd->state.tiling_config;
    const struct tu_subpass *subpass = cmd->state.subpass;
 
    if (false) {
@@ -1118,9 +1116,6 @@ tu6_render_tile(struct tu_cmd_buffer *cmd,
 static void
 tu6_render_end(struct tu_cmd_buffer *cmd, struct tu_cs *cs)
 {
-   const struct tu_subpass *subpass = cmd->state.subpass;
-   const struct tu_framebuffer *fb = cmd->state.framebuffer;
-
    VkResult result = tu_cs_reserve_space(cmd->device, cs, 16);
    if (result != VK_SUCCESS) {
       cmd->record_result = result;
index 4965274aac61dab2a7b4c670fb5a7bdb8f15b777..0998161edc0e5e312e915a092661935206541178 100644 (file)
@@ -678,8 +678,6 @@ static void write_texel_buffer_descriptor(struct tu_device *device,
                                           struct tu_bo **buffer_list,
                                           const VkBufferView _buffer_view)
 {
-   TU_FROM_HANDLE(tu_buffer_view, buffer_view, _buffer_view);
-
    tu_finishme("texel buffer descriptor");
 }