[Mesa-dev] 答复: Re: screen blurred and glxgears segment fault on ubuntu17.10 for arm architecture server with amdgpu(AMD RADEON PRO WX7100)

Lvzhihong (ReJohn) lvzhihong1 at huawei.com
Wed Dec 6 04:18:36 UTC 2017


Hi Michel,
	
	We solve the glxgears segmentation fault problem by add the compile flags: -fsigned-char.
	In arm platform, char variant default to "unsigned-char", that makes problem of glxgears segmentation fault.

	But after we recompile mesa with  -fsigned-char. The screen output still tearing(blurred). the display problem still exist.
	Do you have any Ideas of the different between arm(aarch64) and  x86(amd64)? What may cause the screen tearing?
 

-----邮件原件-----
发件人: Lvzhihong (ReJohn) 
发送时间: 2017年12月6日 10:20
收件人: 'Michel Dänzer' <michel at daenzer.net>
抄送: 'mesa-dev at lists.freedesktop.org' <mesa-dev at lists.freedesktop.org>; Liuchen (Greentea) <greentea.liuchen at huawei.com>; sunnanyong <sunnanyong at huawei.com>; 'alexdeucher at gmail.com' <alexdeucher at gmail.com>
主题: Re: [Mesa-dev] screen blurred and glxgears segment fault on ubuntu17.10 for arm architecture server with amdgpu(AMD RADEON PRO WX7100)

Hi Michel,
	I debug deep into the source code, found out that:

	In si_shader.c file about 7039 line:

                if (key->ps_prolog.color_interp_vgpr_index[i] != -1) {
                        unsigned interp_vgpr = key->ps_prolog.num_input_sgprs +
                                               key->ps_prolog.color_interp_vgpr_index[i];

                        /* Get the (i,j) updated by bc_optimize handling. */
                        interp[0] = LLVMBuildExtractValue(gallivm->builder, ret,
                                                          interp_vgpr, "");
                        interp[1] = LLVMBuildExtractValue(gallivm->builder, ret,
                                                          interp_vgpr + 1, "");
                        interp_ij = lp_build_gather_values(gallivm, interp, 2);
                }

The 'key->ps_prolog.color_interp_vgpr_index[i]',when i=0, the value is '255 \377', when i=1, the value is '0 \000'; I doubt ps_prolog.color_interp_vgpr_index[0] should be '-1',while it's a unsigned variable, so it turns to be 255 ? 

By the way, I do the same test in a x86 server with all configuration the same with the arm server. The glxgears runs well and the screen output is normal. It's queer indeed.

I hope the information can help. 
Looking forward to your reply.

Thanks.

rejohn


-----邮件原件-----
发件人: Lvzhihong (ReJohn)
发送时间: 2017年12月5日 11:09
收件人: 'Michel Dänzer' <michel at daenzer.net>
抄送: mesa-dev at lists.freedesktop.org; Liuchen (Greentea) <greentea.liuchen at huawei.com>; sunnanyong <sunnanyong at huawei.com>
主题: Re: [Mesa-dev] screen blurred and glxgears segment fault on ubuntu17.10 for arm architecture server with amdgpu(AMD RADEON PRO WX7100)

Thanks for your reply.

The attachment is the Xorg log. 
If you need other information, pls let me know.

Thanks.


-----邮件原件-----
发件人: Michel Dänzer [mailto:michel at daenzer.net]
发送时间: 2017年12月5日 1:02
收件人: Lvzhihong (ReJohn) <lvzhihong1 at huawei.com>
抄送: mesa-dev at lists.freedesktop.org; Liuchen (Greentea) <greentea.liuchen at huawei.com>; sunnanyong <sunnanyong at huawei.com>
主题: Re: [Mesa-dev] screen blurred and glxgears segment fault on ubuntu17.10 for arm architecture server with amdgpu(AMD RADEON PRO WX7100)

On 2017-12-04 03:49 AM, Lvzhihong (ReJohn) wrote:
> Hi,all,
> 
>          We met a problem on ubuntu17.10 for arm server with 
> amdgpu(AMD RADEON PRO WX7100),  we use open source driver which are 
> integrated in ubuntu17.10. And the architecture is AArch64-linux-gnu.
> 
>  
> 
>          we install :
> 
>              apt-get install xserver-xorg xinit xfce4 and mesa-utils
> glmark2
> 
>          we start x server :
> 
>               startx
> 
>          and then the monitor shows the screen and the screen is blurred.

Can you share the corresponding Xorg log file?


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list