<div dir="auto">Rb</div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 16, 2017 12:15 AM, "Samuel Iglesias Gonsálvez" <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixes crash in dEQP-VK.ubo.random.all_shared_<wbr>buffer.48 due to a<br>
fragment shader code bigger than 128 kB.<br>
<br>
This patch increases the allocation size limit to 1 MB.<br>
<br>
v2:<br>
- Increase it to 1 MB (Jason)<br>
- Increase device->instruction_block_pool allocation size in<br>
  anv_device.c (Jason)<br>
<br>
Signed-off-by: Samuel Iglesias Gonsálvez <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>><br>
---<br>
 src/intel/vulkan/anv_device.c  | 2 +-<br>
 src/intel/vulkan/anv_private.h | 2 +-<br>
 2 files changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_device.<wbr>c b/src/intel/vulkan/anv_device.<wbr>c<br>
index 6349537d172..f80a36a9400 100644<br>
--- a/src/intel/vulkan/anv_device.<wbr>c<br>
+++ b/src/intel/vulkan/anv_device.<wbr>c<br>
@@ -948,7 +948,7 @@ VkResult anv_CreateDevice(<br>
    anv_state_pool_init(&device-><wbr>dynamic_state_pool,<br>
                        &device->dynamic_state_block_<wbr>pool);<br>
<br>
-   anv_block_pool_init(&device-><wbr>instruction_block_pool, device, 128 * 1024);<br>
+   anv_block_pool_init(&device-><wbr>instruction_block_pool, device, 1024 * 1024);<br>
    anv_state_pool_init(&device-><wbr>instruction_state_pool,<br>
                        &device->instruction_block_<wbr>pool);<br>
<br>
diff --git a/src/intel/vulkan/anv_<wbr>private.h b/src/intel/vulkan/anv_<wbr>private.h<br>
index 17b72368819..75f2bde66a8 100644<br>
--- a/src/intel/vulkan/anv_<wbr>private.h<br>
+++ b/src/intel/vulkan/anv_<wbr>private.h<br>
@@ -388,7 +388,7 @@ struct anv_fixed_size_state_pool {<br>
 };<br>
<br>
 #define ANV_MIN_STATE_SIZE_LOG2 6<br>
-#define ANV_MAX_STATE_SIZE_LOG2 17<br>
+#define ANV_MAX_STATE_SIZE_LOG2 20<br>
<br>
 #define ANV_STATE_BUCKETS (ANV_MAX_STATE_SIZE_LOG2 - ANV_MIN_STATE_SIZE_LOG2 + 1)<br>
<br>
--<br>
2.11.0<br>
<br>
</blockquote></div></div>