From: Jason Ekstrand Date: Sat, 23 Jan 2016 03:02:55 +0000 (-0800) Subject: anv/pipeline: Add a default L3$ setup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b6c1275d02fd9a20ea627bcf43dc9381e96bc87;p=mesa.git anv/pipeline: Add a default L3$ setup --- diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index 4591dd95fec..fe85e3e164e 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -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;