anv/pipeline: Add a default L3$ setup
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jan 2016 03:02:55 +0000 (19:02 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jan 2016 03:02:55 +0000 (19:02 -0800)
src/vulkan/anv_cmd_buffer.c

index 4591dd95fec3626954dfebe227c2b8737b00828f..fe85e3e164e2b0595601a1f176803279bf47a9ea 100644 (file)
@@ -237,6 +237,9 @@ static VkResult anv_create_cmd_buffer(
    cmd_buffer->level = level;
    cmd_buffer->state.attachments = NULL;
 
+   /* 0 isn't a valid config.  This ensures that we always configure L3$. */
+   cmd_buffer->state.current_l3_config = 0;
+
    result = anv_cmd_buffer_init_batch_bo_chain(cmd_buffer);
    if (result != VK_SUCCESS)
       goto fail;