Bug 32358

Summary: Shader based HQ OpenGL upscaler fails on Linux, works on Win7 (Intel Core i3)
Product: Mesa Reporter: alanw <alanwww1>
Component: Drivers/DRI/i965Assignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: medium Keywords: NEEDINFO
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
i915 platform: i915 features:
Attachments: Xorg log
Log after MESA_GLSL=dump, INTEL_DEBUG=vs,wm

Description alanw 2010-12-13 13:50:34 UTC
XBMC is one of the most popular open source multi platform Media Center applications. It is easy to test the working of the drivers on different platforms because it has a Linux and a Windows OpenGL build.

It has a movie player which has an OpenGL shader based High Quality upscaler which works very nice when people are watching SD material on a Full HD display. The upscaler works perfectly on Intel HD graphics with Win7 OpenGL drivers, but fails on Linux with some strange horizontal and vertical lines appearing and having the screen moved by one pixel to the right bottom direction. See screeenshots.

Win7 OpenGL

Linux OpenGL

The shader was called Bicubic and the code for the shader is here (convolution-4x4.glsl)


I attached some logs.
Comment 1 alanw 2010-12-13 13:51:21 UTC
Created attachment 41089 [details]
Xorg log
Comment 2 alanw 2010-12-13 13:51:54 UTC
Created attachment 41090 [details]
Comment 3 alanw 2010-12-13 13:52:47 UTC
Created attachment 41091 [details]
Comment 4 Eric Anholt 2010-12-14 10:46:44 UTC
Could you attach the output of running the shader with INTEL_DEBUG=vs,wm MESA_GLSL=dump in the environment?
Comment 5 alanw 2010-12-14 22:17:16 UTC
Hi Eric!
Thanks for the reply !

I found this in XBMC log.

I also attached the standard output log after:

export INTEL_DEBUG=vs,wm
export MESA_GLSL=dump
Comment 6 alanw 2010-12-14 22:18:19 UTC
Created attachment 41136 [details]
Log after MESA_GLSL=dump, INTEL_DEBUG=vs,wm
Comment 7 alanw 2010-12-18 02:52:42 UTC
I made a new test with todays Xorg-Edgers ppa drivers and the problem seem to be solved. All shaders are working prefectly now.  :-)

Now we only have two driver related problems left to have a perfect Media Center hardware with XBMC. I think they are related:

- Available refresh rates does not get detected over HDMI. (I tested it on an Onkyo TX-SR 605 AV receiver and a Samsung full HD LCD display)Only 60Hz is available 50Hz, 24Hz is not showing in the available resolution list on Xorg.log. These resolutions work perfectly with Windows drivers and also work without problems with Linux drivers on other non Intel Hardware.

- The available speaker configurations are not detected over HDMI. Whwn i make a speaker-test -Dhdmi -c6 test. It rans fine without an error, but when any other speaker than front left and rights should work, only silence can be heard. This 8 channel lpcm audio works perfetly with the windows drivers and also on Linux with nonn Intel hardware.
Comment 8 alanw 2010-12-19 11:52:14 UTC
I don't know if it was the new drivers but i have Multichannel LPCM sound perfectly working.

As the main problem is solved you can close this bug. I will open up a new one for refresh rates not get detected.

Thanks, Alan

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.