anv/cmd_buffer: Use the surface state alloc helper in null_surface_state
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 19 Oct 2016 17:15:27 +0000 (10:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 16 Nov 2016 18:11:07 +0000 (10:11 -0800)
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/intel/vulkan/genX_cmd_buffer.c

index 25dc256..93beb47 100644 (file)
@@ -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,