<div dir="ltr"><div>This is OK.</div><div><br></div><div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 18, 2018 at 3:43 PM Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu">jan.vesely@rutgers.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Fixes assertion failure/crash when running luxmark/luxball on clover.<br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=108272" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=108272</a><br>
CC: <a href="mailto:mesa-stable@lists.freedesktop.org" target="_blank">mesa-stable@lists.freedesktop.org</a><br>
Signed-off-by: Jan Vesely <<a href="mailto:jan.vesely@rutgers.edu" target="_blank">jan.vesely@rutgers.edu</a>><br>
---<br>
This is just a stop gap measure. OpenCL does not limit the number of<br>
global buffers, but we can return CL_MEM_OBJECT_ALLOCATION_FAILURE in<br>
clEnqueueNDRangeKernel. <br>
What would be the preferred way? Add PIPE_CAP to query this? allow<br>
set_global_binding to fail with too many buffers?<br>
<br>
thanks,<br>
Jan<br>
<br>
src/gallium/drivers/radeonsi/si_compute.h | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/gallium/drivers/radeonsi/si_compute.h b/src/gallium/drivers/radeonsi/si_compute.h<br>
index 99b501673c..57c0bde4ac 100644<br>
--- a/src/gallium/drivers/radeonsi/si_compute.h<br>
+++ b/src/gallium/drivers/radeonsi/si_compute.h<br>
@@ -29,7 +29,7 @@<br>
<br>
#include "si_shader.h"<br>
<br>
-#define MAX_GLOBAL_BUFFERS 22<br>
+#define MAX_GLOBAL_BUFFERS 32<br>
<br>
struct si_compute {<br>
struct pipe_reference reference;<br>
-- <br>
2.17.2<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>