anv/descriptor_set: Write the state offset in the surface state free list.
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 11 Nov 2016 00:43:35 +0000 (16:43 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 17 Nov 2016 01:07:29 +0000 (17:07 -0800)
When Kristian reworked descriptor set allocation, somehow he forgot to
actually store the offset in the free list.  Somehow, this completely
missed CTS testing until now... This fixes all 2744 of the new
'dEQP-VK.texture.filtering.* tests in the latest CTS.

Cc: "12.0 13.0" <mesa-dev@lists.freedesktop.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/vulkan/anv_descriptor_set.c

index 7d5a78d018c72c47c1e0129004f4396154bdf2f5..88df5456fd11df7b588b83ad059e92d3c93b8742 100644 (file)
@@ -489,6 +489,7 @@ anv_descriptor_set_destroy(struct anv_device *device,
       struct surface_state_free_list_entry *entry =
          set->buffer_views[b].surface_state.map;
       entry->next = pool->surface_state_free_list;
+      entry->offset = set->buffer_views[b].surface_state.offset;
       pool->surface_state_free_list = entry;
    }