From: Jason Ekstrand Date: Wed, 19 Oct 2016 17:15:27 +0000 (-0700) Subject: anv/cmd_buffer: Use the surface state alloc helper in null_surface_state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=858b75563f5ec430fd61c95eccf6781ed9cd6c90;p=mesa.git anv/cmd_buffer: Use the surface state alloc helper in null_surface_state Signed-off-by: Jason Ekstrand Reviewed-by: Topi Pohjolainen --- 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,