From 858b75563f5ec430fd61c95eccf6781ed9cd6c90 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 19 Oct 2016 10:15:27 -0700 Subject: anv/cmd_buffer: Use the surface state alloc helper in null_surface_state Signed-off-by: Jason Ekstrand Reviewed-by: Topi Pohjolainen --- src/intel/vulkan/genX_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/intel/vulkan') diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 25dc2567226..93beb4776ee 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -633,7 +633,7 @@ alloc_null_surface_state(struct anv_cmd_buffer *cmd_buffer, struct anv_framebuffer *fb) { struct anv_state state = - anv_state_stream_alloc(&cmd_buffer->surface_state_stream, 64, 64); + anv_cmd_buffer_alloc_surface_state(cmd_buffer); struct GENX(RENDER_SURFACE_STATE) null_ss = { .SurfaceType = SURFTYPE_NULL, -- cgit v1.2.3