[Piglit] [PATCH] Add a test of the accuracy of MSAA rendering.
Anuj Phogat
anuj.phogat at gmail.com
Thu Apr 19 09:36:56 PDT 2012
On Thu, Apr 19, 2012 at 9:11 AM, Anuj Phogat <anuj.phogat at gmail.com> wrote:
> On Thu, Apr 19, 2012 at 8:30 PM, Paul Berry <stereotype441 at gmail.com>wrote:
>
>> On 19 April 2012 06:41, Anuj Phogat <anuj.phogat at gmail.com> wrote:
>>
>>> On Thu, Apr 19, 2012 at 12:09 AM, Paul Berry <stereotype441 at gmail.com>wrote:
>>>
>>>> This is the test I've been using to prototype MSAA on the i965
>>>> driver. Unlike the existing EXT_framebuffer_multisample
>>>> tests (which so far mostly check corner cases at the API level),
>>>> this test verifies that correct pixels are rendered when MSAA is
>>>> enabled. It's a bit long for a typical piglit test, since in
>>>> order to verify that the MSAA color, depth, and stencil buffers
>>>> are all configured correctly, it has to render some fairly
>>>> complex scenes.
>>>> ---
>>>>
>>>> This test partially overlaps the functionality of the test Anuj
>>>> sent to the list on Monday ([PATCH] Add test to switch on/off
>>>> MSAA in FBO). Anuj: I'm interested in hearing how my test
>>>> performs on your AMD system.
>>>
>>>
>>> Here is what I get on my AMD system:
>>> ./bin/ext_framebuffer_multisample-accuracy 4 color
>>> Framebuffer not complete
>>> PIGLIT: { 'result' : 'skip' }
>>> similar error with other test_type options.
>>>
>>>
>> Do you also get this result with the "depthstencil" flag? I added that
>> flag so that the test would work on my nVidia test machine, which doesn't
>> seem to support separating the depth and stencil buffers.
>>
>
> Now I don't get "Framebuffer not complete"
> $ ./bin/ext_framebuffer_multisample-accuracy 4 color depthstencil -auto
>
> Pixels that should be unlit
> count = 214644
> Perfect output
>
> Pixels that should be totally lit
> count = 28968
> Perfect output
>
> Pixels that should be partially lit
> count = 18532
> RMS error = 0.260300
> The error threshold for this test is 0.119880
> PIGLIT: {'result': 'fail' }
>
> I get similar RMS error value for all other cases.
>
>>
>>
>>> No such error is observed on SandyBridge. But MSAA was absent as
>>> expected.
>>>
>>> I couldn't get MSAA working on AMD with my test case as well.
>>> I've installed ATI's catalyst drivers (Version: 12.2) on Ubuntu 10.04
>>> Couldn't successfully install catalyst drivers on latest Ubuntu version:
>>> 11.10.
>>>
>>> Executing fglrxinfo outputs:
>>> display: :0 screen: 0
>>> OpenGL vendor string: Advanced Micro Devices, Inc.
>>> OpenGL renderer string: AMD Radeon(TM) HD 6480G
>>> OpenGL version string: 4.2.11554 Compatibility Profile Context
>>>
>>> I'll try updating my system and see if that helps.
>>>
>>
>> I'd also be curious to see the output of glxinfo on your system--this
>> will show which framebuffer configurations the driver claims to support
>> MSAA with.
>>
> Here is my glxinfo output: http://pastebin.com/7YeVMDC2
>
Paul, I figured out the problem with ATI. I had to uncheck "Override
application setting" option under Anti-Aliasing in catalyst contol center.
Now MSAA works as expected.
Thanks
Anuj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20120419/376bb067/attachment-0001.htm>
More information about the Piglit
mailing list