<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 26, 2018 at 12:58 AM, Samuel Iglesias Gonsálvez <span dir="ltr"><<a href="mailto:siglesias@igalia.com" target="_blank">siglesias@igalia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Samuel Iglesias Gonsálvez <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>><br>
---<br>
src/intel/vulkan/anv_formats.c | 6 +++++-<br>
1 file changed, 5 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_<wbr>formats.c b/src/intel/vulkan/anv_<wbr>formats.c<br>
index 9c52ad5acbd..324797b7f10 100644<br>
--- a/src/intel/vulkan/anv_<wbr>formats.c<br>
+++ b/src/intel/vulkan/anv_<wbr>formats.c<br>
@@ -842,6 +842,10 @@ anv_get_image_format_<wbr>properties(<br>
*/<br>
}<br>
<br>
+ /* Pre-gen9 has a 2 GB limitation of the size in bytes */<br>
+ uint64_t maxResourceSize =<br>
+ devinfo->gen < 9 ? (uint64_t)( 1 << 31 ) : UINT32_MAX;<br></blockquote><div><br></div><div>I think gen9's is actually much larger than UINT32_MAX, isn't it?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
*pImageFormatProperties = (VkImageFormatProperties) {<br>
.maxExtent = maxExtent,<br>
.maxMipLevels = maxMipLevels,<br>
@@ -851,7 +855,7 @@ anv_get_image_format_<wbr>properties(<br>
/* FINISHME: Accurately calculate<br>
* VkImageFormatProperties::<wbr>maxResourceSize.<br>
*/<br>
- .maxResourceSize = UINT32_MAX,<br>
+ .maxResourceSize = maxResourceSize,<br>
};<br>
<br>
if (pYcbcrImageFormatProperties) {<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.14.1<br>
<br>
</font></span></blockquote></div><br></div></div>