<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Something funny happened with the
indentation, if you could fix this, this is :<br>
<br>
Reviewed-by: Lionel Landwerlin
<a class="moz-txt-link-rfc2396E" href="mailto:lionel.g.landwerlin@intel.com"><lionel.g.landwerlin@intel.com></a><br>
<br>
Thanks!<br>
<br>
-<br>
Lionel<br>
<br>
On 04/05/17 17:34, Grazvydas Ignotas wrote:<br>
</div>
<blockquote
cite="mid:CANOLnOMAH5nJ-kU2OwK4shNg3x2rnoihkLB7SqYGpzBdVM2BaA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div>ping<br>
</div>
Emil: the code this fixes is yours.<br>
<div>
<div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="m_-6887906081085123493gmail_signature"
data-smartmail="gmail_signature">Gražvydas<br>
</div>
</div>
<br>
<div class="gmail_quote">On Tue, May 2, 2017 at 8:17 PM,
Grazvydas Ignotas <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:notasas@gmail.com" target="_blank">notasas@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">drmGetDevices2
takes count and not size. Probably hasn't caused
problems<br>
yet in practice and was missed as setups with more
than 8 DRM devices<br>
are not very common.<br>
<br>
Fixes: b1fb6e8d "anv: do not open random render
node(s)"<br>
Signed-off-by: Grazvydas Ignotas <<a
moz-do-not-send="true"
href="mailto:notasas@gmail.com" target="_blank">notasas@gmail.com</a>><br>
---<br>
src/intel/vulkan/anv_device.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_device.<wbr>c
b/src/intel/vulkan/anv_device.<wbr>c<br>
index 6b3202d..78f133e 100644<br>
--- a/src/intel/vulkan/anv_device.<wbr>c<br>
+++ b/src/intel/vulkan/anv_device.<wbr>c<br>
@@ -492,11 +492,11 @@ anv_enumerate_devices(struct
anv_instance *instance)<br>
VkResult result = VK_ERROR_INCOMPATIBLE_DRIVER;<br>
int max_devices;<br>
<br>
instance->physicalDeviceCount = 0;<br>
<br>
- max_devices = drmGetDevices2(0, devices,
sizeof(devices));<br>
+ max_devices = drmGetDevices2(0, devices,
ARRAY_SIZE(devices));<br>
if (max_devices < 1)<br>
return VK_ERROR_INCOMPATIBLE_DRIVER;<br>
<br>
for (unsigned i = 0; i < (unsigned)max_devices;
i++) {<br>
if (devices[i]->available_nodes & 1
<< DRM_NODE_RENDER &&<br>
<span class="m_-6887906081085123493HOEnZb"><font
color="#888888">--<br>
2.7.4<br>
<br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mesa-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>