Bug 37075 - objview demo has messed up geometry with r300g
Summary: objview demo has messed up geometry with r300g
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r300 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-10 08:45 UTC by almos
Modified: 2011-06-09 01:53 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
bunny.png (537.87 KB, image/png)
2011-05-10 08:48 UTC, almos
Details
ut2004.jpg (124.27 KB, image/jpeg)
2011-05-27 08:02 UTC, almos
Details
objview debug output.txt (61.18 KB, text/plain)
2011-05-31 05:04 UTC, almos
Details

Description almos 2011-05-10 08:45:21 UTC
See the attached screenshot of the poor bunny. The buddha object is also quite wrong, bobcat is OK, and the right half of the biplane is wrong.

r300g of 7.10.2 and 7.11-dev both produce the same error. 

swrast of 7.10.2 shows no rendering errors, but llvmpipe of 7.11-dev doesn't even open a window (it does print ~5fps to the console though).
Comment 1 almos 2011-05-10 08:48:40 UTC
Created attachment 46555 [details]
bunny.png
Comment 2 almos 2011-05-27 08:02:01 UTC
Created attachment 47231 [details]
ut2004.jpg

I now spotted this phenomenon in ut2004 on the ONS-ArcticStronghold level. Normally this is not visible due to the fog (<Tab>show fog<Enter> turns it off).

It is interesting that only the remote objects have incorrect geometry, never the close ones.
Comment 3 Tom Stellard 2011-05-31 02:27:09 UTC
Could you run the program with RADEON_DEBUG=fp,vp and post the output.
Comment 4 almos 2011-05-31 05:04:53 UTC
Created attachment 47359 [details]
objview debug output.txt

The output of
RADEON_DEBUG=fp,vp ./objview
with mesa 7.11-dev.
Comment 5 Marek Olšák 2011-06-07 16:25:27 UTC
I can't reproduce this on r580. The bunny looks alright here.
Comment 6 almos 2011-06-08 13:45:53 UTC
Maybe it's a hw limitation on r3xx? Perhaps large vertex buffers should be broken down into smaller ones.
Comment 7 Marek Olšák 2011-06-08 16:31:35 UTC
Good point. We do split rendering commands with too many vertices into smaller ones, but the splitting was broken.

Fixed by 578d4539ba72a9f52e0cb3f615bb04bf9407b574. Closing.
Comment 8 almos 2011-06-09 01:53:24 UTC
Fix confirmed. Thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.