vk: Allocate samplers from dynamic stream
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Tue, 26 May 2015 18:50:34 +0000 (11:50 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Tue, 26 May 2015 18:50:34 +0000 (11:50 -0700)
src/vulkan/device.c

index 4cdf3e2b8a6ef27ad1b5da27cdde4cc1703fe551..fb190025c7897b00d580dedc2db08cfc9a74f6bc 100644 (file)
@@ -2670,7 +2670,7 @@ flush_descriptor_sets(struct anv_cmd_buffer *cmd_buffer)
          size_t size;
 
          size = layout->stage[s].sampler_count * 16;
-         state = anv_cmd_buffer_alloc_surface_state(cmd_buffer, size, 32);
+         state = anv_state_stream_alloc(&cmd_buffer->dynamic_state_stream, size, 32);
          memcpy(state.map, bindings->descriptors[s].samplers, size);
 
          static const uint32_t sampler_state_opcodes[] = {