<div dir="ltr"><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" class="gmail_attr">On Mon, Jun 3, 2019 at 10:28 PM Vinson Lee <<a href="mailto:vlee@freedesktop.org">vlee@freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">draw-prim-rate.c:415:3: error: initializer element is not a compile-time constant<br>
                ceil(sqrt(0.5 * 1000)),<br>
                ^~~~~~~~~~~~~~~~~~~~~~<br>
<br>
Fixes: 6e1bb1e769d2 ("Add a test that measures primitive rate")<br>
Signed-off-by: Vinson Lee <<a href="mailto:vlee@freedesktop.org" target="_blank">vlee@freedesktop.org</a>><br>
---<br>
 tests/perf/draw-prim-rate.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/tests/perf/draw-prim-rate.c b/tests/perf/draw-prim-rate.c<br>
index 85792b00ea99..c9e4e078cec9 100644<br>
--- a/tests/perf/draw-prim-rate.c<br>
+++ b/tests/perf/draw-prim-rate.c<br>
@@ -410,7 +410,7 @@ piglit_display(void)<br>
                return PIGLIT_PASS;<br>
        }<br>
<br>
-       static const unsigned num_quads_per_dim[] = {<br>
+       const unsigned num_quads_per_dim[] = {<br>
                /* The second number is the approx. number of primitives. */<br>
                ceil(sqrt(0.5 * 1000)),<br>
                ceil(sqrt(0.5 * 2000)),<br>
-- <br>
2.21.0<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org" target="_blank">Piglit@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/piglit" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/piglit</a></blockquote></div>