Bug 95110 - Some Ogre 2.1 demos doesn't render properly
Summary: Some Ogre 2.1 demos doesn't render properly
Status: RESOLVED NOTOURBUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 11.2
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-24 19:39 UTC by MWATTT
Modified: 2016-05-30 14:44 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Apitrace of "Sample_Hdr" demo (27.68 MB, application/octet-stream)
2016-04-24 19:46 UTC, MWATTT
Details
The demo on Catalyst (good) (413.88 KB, image/png)
2016-04-26 01:32 UTC, MWATTT
Details
The demo on r600g (bad) (231.37 KB, image/png)
2016-04-26 01:37 UTC, MWATTT
Details

Description MWATTT 2016-04-24 19:39:00 UTC
Some Ogre 2.1 demos (for example the "Sample_Hdr" demo) are misrendered with mesa drivers. For the "Sample_Hdr" demo, no shadows are rendered. 

Tested with r600g on JUNIPER XT chip. I also got this bug with LLVMPIPE. i965 on Skylake iGPU seems to have additional problems.

I'll upload an apitrace as well as an image of what should be rendered.
Comment 1 MWATTT 2016-04-24 19:46:16 UTC
Created attachment 123218 [details]
Apitrace of "Sample_Hdr" demo
Comment 2 MWATTT 2016-04-26 01:32:21 UTC
Created attachment 123262 [details]
The demo on Catalyst (good)
Comment 3 MWATTT 2016-04-26 01:37:13 UTC
Created attachment 123263 [details]
The demo on r600g (bad)
Comment 4 Marek Olšák 2016-05-30 14:44:18 UTC
The apitrace contains invalid OpenGL calls, which may work with incorrect drivers, but not with Mesa. This is the list of GL errors:

Mesa: User error: GL_INVALID_ENUM in glTexImage2D(incompatible format = GL_DEPTH_COMPONENT, type = GL_DEPTH_COMPONENT)
Mesa: User error: GL_INVALID_ENUM in glTexImage2D(incompatible format = GL_DEPTH_STENCIL, type = GL_DEPTH_STENCIL)
Mesa: User error: GL_INVALID_OPERATION in glTexImage2D(incompatible format = GL_BGR, type = GL_UNSIGNED_SHORT_5_6_5)
Mesa: User error: GL_INVALID_OPERATION in glTexImage2D(integer/non-integer format mismatch)
Mesa: User error: GL_INVALID_VALUE in glBindAttribLocation(index)
Mesa: User error: GL_INVALID_FRAMEBUFFER_OPERATION in glClear(incomplete framebuffer)
Mesa: User error: GL_INVALID_FRAMEBUFFER_OPERATION in glMultiDrawElementsIndirect(incomplete framebuffer)

The GLSL compiler also detected uninitialized variables in various shaders:

0:249(28): warning: `nNormal' used uninitialized
0:252(14): warning: `material' used uninitialized
0:252(14): warning: `ROUGHNESS' used uninitialized
0:288(54): warning: `diffuseCol' used uninitialized
0:290(37): warning: `specularCol' used uninitialized
etc.


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.