On 16 April 2012 09:59, Anuj Phogat <span dir="ltr">&lt;<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is the draft version of test case.<br>
<br>
Signed-off-by: Anuj Phogat &lt;<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>&gt;<br>
---<br>
I  was developing this test to verify MSAA with FBO. Test output with MSAA<br>
is expected to differ along polygon edges when compared to rendering without<br>
MSAA. But it seems like no MSAA is happening. Did I miss something while<br>
setting up multisample fbo?<br>
<br>
GPU Info:<br>
OpenGL vendor string: Advanced Micro Devices, Inc.<br>
OpenGL renderer string: AMD Radeon(TM) HD 6480G<br>
OpenGL version string: 4.2.11554 Compatibility Profile Context<br>
OpenGL shading language version string: 4.20<br>
<br>
Software:<br>
Catalyst Version: 12.2<br>
<br>
Test output:<br>
./bin/ext_framebuffer_multisample-turn-on-off -auto<br>
GL_SAMPLES = 0, GL_SAMPLE_BUFFERS = 0, MSAA = 0<br>
GL_SAMPLES = 8, GL_SAMPLE_BUFFERS = 1, MSAA = 1<br>
PIGLIT: {&#39;result&#39;: &#39;pass&#39; }<br></blockquote><div><br>I think you&#39;re setting up the framebuffer correctly.  The reason the pixels are the same is because all of the shapes you are drawing are rectangles that are aligned to pixel boundaries.  To see the effect of MSAA, you either need to draw some rectangles that aren&#39;t aligned to pixel boundaries, or you need to draw an image that has diagonal lines in it.<br>
<br>By the way, I&#39;ve had to write a test of my own to help me in prototyping Sandy Bridge MSAA support.  We should coordinate to make sure we&#39;re not duplicating effort.  Briefly, my test is draws a scene twice, once using the GL implementation&#39;s MSAA feature, and once without MSAA but at very high (16x) resolution.  Then it compares the two images.  Each pixel in the MSAA image corresponds to a 16x16 block in the high resolution image.  By counting how many pixels are lit in the 16x16 block, the test can figure out how bright the corresponding MSAA pixel would be if the antialiasing were perfect.  Then it computes an RMS error between the actual MSAA output and the &quot;perfectly antialiased&quot; reference image.<br>
<br> I&#39;ll try to get my test posted to the Piglit list today or tomorrow.  In the meantime, to give you a better idea of what I&#39;m doing, I&#39;ll attach screenshots.  In the attached png images, the image on the left is rendered with MSAA, and the image on the right is the &quot;perfectly antialiased&quot; reference image.<br>
<br>Paul<br></div></div>