<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 19, 2014 at 2:45 PM, Chris Forbes <span dir="ltr"><<a href="mailto:chrisf@ijw.co.nz" target="_blank">chrisf@ijw.co.nz</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: Chris Forbes <<a href="mailto:chrisf@ijw.co.nz">chrisf@ijw.co.nz</a>><br>
---<br>
tests/spec/arb_copy_image/formats.c | 8 ++++++++<br>
1 file changed, 8 insertions(+)<br>
<br>
diff --git a/tests/spec/arb_copy_image/formats.c b/tests/spec/arb_copy_image/formats.c<br>
index a58580d..92715ba 100644<br>
--- a/tests/spec/arb_copy_image/formats.c<br>
+++ b/tests/spec/arb_copy_image/formats.c<br>
@@ -303,8 +303,16 @@ piglit_init(int argc, char **argv)<br>
piglit_require_extension("GL_EXT_framebuffer_object");<br>
piglit_require_extension("GL_EXT_texture_integer");<br>
if (samples > 1) {<br>
+ int max_samples;<br>
+<br>
piglit_require_extension("GL_ARB_texture_multisample");<br>
piglit_require_extension("GL_ARB_sample_shading");<br>
+<br>
+ glGetIntegerv(GL_MAX_SAMPLES, &max_samples);<br>
+ if (samples > max_samples) {<br>
+ printf("%d samples not supported\n", samples);<br>
+ piglit_report_result(PIGLIT_SKIP);<br>
+ }<br>
}<br>
<br>
if (argc > 1) {<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.5.3<br>
<br>
_______________________________________________<br>
Piglit mailing list<br>
<a href="mailto:Piglit@lists.freedesktop.org">Piglit@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/piglit" target="_blank">http://lists.freedesktop.org/mailman/listinfo/piglit</a><br>
</font></span></blockquote></div><br></div>