From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Mon, 26 Jun 2017 12:18:36 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1090660276==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F3C289E0D for ; Mon, 26 Jun 2017 12:18:36 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1090660276== Content-Type: multipart/alternative; boundary="14984795160.DFCaeA58B.13499"; charset="UTF-8" --14984795160.DFCaeA58B.13499 Date: Mon, 26 Jun 2017 12:18:36 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 Bug ID: 101596 Summary: Blender renders black UI elements Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: darkdefende@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 132251 --> https://bugs.freedesktop.org/attachment.cgi?id=3D132251&action=3Dedit glxinfo output It seems like a recent change to llvm or mesa broke blender on radeonsi. It works fine with llvm 4 and mesa 17.1.3. Steps to reproduce: 1. Open the blender default cube scene. 2. Open the "N" panel by pressing N while your mouse cursor is in the 3d vi= ew. 3. Scroll down to the "Shading" tab and check "Matcap" 4. Now UI elements becomes black (and more and more will become black as you use the program) See the attached screenshots I should also point out that it is not only matcaps that triggers this. However, it is the fastest way to trigger this. I have attached the output of glxinfo. BTW, there is also a other long standing problem where you have to use trip= ple buffering in blender with radeonsi or the UI is messed up. I didn't find any bug for this either, but it has been a problem for a long time so I don't k= now if this is known? --=20 You are receiving this mail because: You are the assignee for the bug.= --14984795160.DFCaeA58B.13499 Date: Mon, 26 Jun 2017 12:18:36 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 101596
Summary Blender renders black UI elements
Product Mesa
Version git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter darkdefende@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 132251 [details]
glxinfo output

It seems like a recent change to llvm or mesa broke blender on radeonsi. It
works fine with llvm 4 and mesa 17.1.3.

Steps to reproduce:

1. Open the blender default cube scene.

2. Open the "N" panel by pressing N while your mouse cursor is in=
 the 3d view.

3. Scroll down to the "Shading" tab and check "Matcap"

4. Now UI elements becomes black (and more and more will become black as you
use the program)

See the attached screenshots

I should also point out that it is not only matcaps that triggers this.
However, it is the fastest way to trigger this.

I have attached the output of glxinfo.

BTW, there is also a other long standing problem where you have to use trip=
ple
buffering in blender with radeonsi or the UI is messed up. I didn't find any
bug for this either, but it has been a problem for a long time so I don't k=
now
if this is known?


You are receiving this mail because:
  • You are the assignee for the bug.
= --14984795160.DFCaeA58B.13499-- --===============1090660276== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1090660276==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Mon, 26 Jun 2017 12:19:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1865332011==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 851876E04F for ; Mon, 26 Jun 2017 12:19:02 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1865332011== Content-Type: multipart/alternative; boundary="14984795420.B5caB4.13563"; charset="UTF-8" --14984795420.B5caB4.13563 Date: Mon, 26 Jun 2017 12:19:02 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #1 from Sebastian Parborg --- Created attachment 132252 --> https://bugs.freedesktop.org/attachment.cgi?id=3D132252&action=3Dedit Blender before matcap --=20 You are receiving this mail because: You are the assignee for the bug.= --14984795420.B5caB4.13563 Date: Mon, 26 Jun 2017 12:19:02 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated


You are receiving this mail because:
  • You are the assignee for the bug.
= --14984795420.B5caB4.13563-- --===============1865332011== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1865332011==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Mon, 26 Jun 2017 12:19:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1905958647==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FC4E89819 for ; Mon, 26 Jun 2017 12:19:24 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1905958647== Content-Type: multipart/alternative; boundary="14984795640.d3Dcb8c.13924"; charset="UTF-8" --14984795640.d3Dcb8c.13924 Date: Mon, 26 Jun 2017 12:19:24 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #2 from Sebastian Parborg --- Created attachment 132253 --> https://bugs.freedesktop.org/attachment.cgi?id=3D132253&action=3Dedit blender after matcap --=20 You are receiving this mail because: You are the assignee for the bug.= --14984795640.d3Dcb8c.13924 Date: Mon, 26 Jun 2017 12:19:24 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated


You are receiving this mail because:
  • You are the assignee for the bug.
= --14984795640.d3Dcb8c.13924-- --===============1905958647== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1905958647==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Mon, 26 Jun 2017 12:21:10 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1810722850==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 8CB7789DFD for ; Mon, 26 Jun 2017 12:21:10 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1810722850== Content-Type: multipart/alternative; boundary="14984796700.B7378Da.12581"; charset="UTF-8" --14984796700.B7378Da.12581 Date: Mon, 26 Jun 2017 12:21:10 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 Sebastian Parborg changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86-64 (AMD64) OS|All |Linux (All) --=20 You are receiving this mail because: You are the assignee for the bug.= --14984796700.B7378Da.12581 Date: Mon, 26 Jun 2017 12:21:10 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Sebastian Parborg changed bug 10159= 6
What Removed Added
Hardware Other x86-64 (AMD64)
OS All Linux (All)


You are receiving this mail because:
  • You are the assignee for the bug.
= --14984796700.B7378Da.12581-- --===============1810722850== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1810722850==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Mon, 26 Jun 2017 22:38:22 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0387506941==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id A19F06E05F for ; Mon, 26 Jun 2017 22:38:22 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0387506941== Content-Type: multipart/alternative; boundary="14985167020.bAFD4b.23075"; charset="UTF-8" --14985167020.bAFD4b.23075 Date: Mon, 26 Jun 2017 22:38:22 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #3 from Sebastian Parborg --- I've narrowed it down to this commit: https://cgit.freedesktop.org/mesa/mesa/commit/?id=3D56a28ace35c513ba22d7541= 92127c359c28ed7e5 It seems like that is the one that breaks it. --=20 You are receiving this mail because: You are the assignee for the bug.= --14985167020.bAFD4b.23075 Date: Mon, 26 Jun 2017 22:38:22 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 3 on bug 10159= 6 from Sebastian Parborg
I've narrowed it down to this commit:
https://cgit.freedesktop.org/mesa/mesa/commit=
/?id=3D56a28ace35c513ba22d754192127c359c28ed7e5

It seems like that is the one that breaks it.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14985167020.bAFD4b.23075-- --===============0387506941== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0387506941==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Wed, 05 Jul 2017 03:22:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1309247925==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id AF56A89EEB for ; Wed, 5 Jul 2017 03:22:00 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1309247925== Content-Type: multipart/alternative; boundary="14992249201.7cbEdd3.29226"; charset="UTF-8" --14992249201.7cbEdd3.29226 Date: Wed, 5 Jul 2017 03:22:00 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #4 from Matias N. Goldberg --- +1 I get this error too. This bug is NOT https://bugs.freedesktop.org/show_bug.cgi?id=3D97059 which = gets fixed by either using DRI2 or selecting Triple Buffer in Blender. This error started after I pulled latest git; and a faster way to reproduce= it is to simply click on the Materials pane; where automatically everything st= arts going wrong within Blender. I tried debugging the problem but came out short. My guess was either in the vertex shader's key.clamp_color would become true for the same variant wher= e it used to be false, or that the same would happen in the pixel shader with clamp_color/persample_shading/ati_fs/external (i.e. test if any of st_fp_variant_key members changed but the same variant was being used). However all shaders appear to be using consistent settings, which leaves me puzzled. As Sebastian Parborg, undoing the changes "st_update_fp" fixes the problem. --=20 You are receiving this mail because: You are the assignee for the bug.= --14992249201.7cbEdd3.29226 Date: Wed, 5 Jul 2017 03:22:00 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 4 on bug 10159= 6 from Matias N. Goldberg
+1
I get this error too.

This bug is NOT https://bugs.freedesktop.org/show_bug.c=
gi?id=3D97059 which gets
fixed by either using DRI2 or selecting Triple Buffer in Blender.

This error started after I pulled latest git; and a faster way to reproduce=
 it
is to simply click on the Materials pane; where automatically everything st=
arts
going wrong within Blender.

I tried debugging the problem but came out short. My guess was either in the
vertex shader's key.clamp_color would become true for the same variant wher=
e it
used to be false, or that the same would happen in the pixel shader with
clamp_color/persample_shading/ati_fs/external (i.e. test if any of
st_fp_variant_key members changed but the same variant was being used).

However all shaders appear to be using consistent settings, which leaves me
puzzled.

As Sebastian Parborg, undoing the changes "st_update_fp" fixes th=
e problem.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14992249201.7cbEdd3.29226-- --===============1309247925== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1309247925==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Wed, 05 Jul 2017 03:33:51 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1206546508==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id ABFBF89A4B for ; Wed, 5 Jul 2017 03:33:51 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1206546508== Content-Type: multipart/alternative; boundary="14992256310.2E10F0E.484"; charset="UTF-8" --14992256310.2E10F0E.484 Date: Wed, 5 Jul 2017 03:33:51 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #5 from Matias N. Goldberg --- Mystery solved: When I click the material button, this function is hit: 1 st_get_fp_variant st_program.c 1326 0x7fbb34c5c595=20 2 get_color_fp_variant st_cb_drawpixels.c 963 0x7fbb34c0ae87=20 3 st_DrawPixels st_cb_drawpixels.c 1115 0x7fbb34c0b3ea=20 4 _mesa_DrawPixels drawpix.c 163 0x7fbb3499d954=20 5 ?? 0x55b9c4a159d5=20 6 ?? 0x55b9c4a15d20=20 7 ?? 0x55b9c4a3e15c=20 8 ?? 0x55b9c4a3f956=20 9 ui_draw_but 0x55b9c4a428cb=20 10 UI_block_draw 0x55b9c49f700a=20 11 UI_panels_draw 0x55b9c4a23ede=20 12 ED_region_panels 0x55b9c4b11bbd=20 13 ?? 0x55b9c484050e=20 14 ED_region_do_draw 0x55b9c4b10837=20 15 wm_draw_update 0x55b9c4817a96=20 16 WM_main 0x55b9c4813008=20 17 main 0x55b9c47d015e=20 get_color_fp_variant ends up calling st_get_fp_variant even though st->has_shareable_shaders is set; and st_get_fp_variant ends up creating a = new variant. st_get_fp_variant will create a new variant and add it to the front of the linked list: fpv->next =3D stfp->variants; stfp->variants =3D fpv; Therefore later on st_update_fp thinks only one variant should be there, and tries to use the first one, which is the new one created by _mesa_DrawPixel= s; which is wrong, triggering all the glitches. --=20 You are receiving this mail because: You are the assignee for the bug.= --14992256310.2E10F0E.484 Date: Wed, 5 Jul 2017 03:33:51 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 5 on bug 10159= 6 from Matias N. Goldberg
Mystery solved:

When I click the material button, this function is hit:

1  st_get_fp_variant    st_program.c       1326 0x7fbb34c5c595=20
2  get_color_fp_variant st_cb_drawpixels.c 963  0x7fbb34c0ae87=20
3  st_DrawPixels        st_cb_drawpixels.c 1115 0x7fbb34c0b3ea=20
4  _mesa_DrawPixels     drawpix.c          163  0x7fbb3499d954=20
5  ??                                           0x55b9c4a159d5=20
6  ??                                           0x55b9c4a15d20=20
7  ??                                           0x55b9c4a3e15c=20
8  ??                                           0x55b9c4a3f956=20
9  ui_draw_but                                  0x55b9c4a428cb=20
10 UI_block_draw                                0x55b9c49f700a=20
11 UI_panels_draw                               0x55b9c4a23ede=20
12 ED_region_panels                             0x55b9c4b11bbd=20
13 ??                                           0x55b9c484050e=20
14 ED_region_do_draw                            0x55b9c4b10837=20
15 wm_draw_update                               0x55b9c4817a96=20
16 WM_main                                      0x55b9c4813008=20
17 main                                         0x55b9c47d015e=20

get_color_fp_variant ends up calling st_get_fp_variant even though
st->has_shareable_shaders is set; and st_get_fp_variant ends up creating=
 a new
variant.

st_get_fp_variant will create a new variant and add it to the front of the
linked list:
fpv->next =3D stfp->variants;
stfp->variants =3D fpv;

Therefore later on st_update_fp thinks only one variant should be there, and
tries to use the first one, which is the new one created by _mesa_DrawPixel=
s;
which is wrong, triggering all the glitches.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14992256310.2E10F0E.484-- --===============1206546508== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1206546508==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Wed, 05 Jul 2017 03:36:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1870655638==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 8A1FC89C2A for ; Wed, 5 Jul 2017 03:36:08 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1870655638== Content-Type: multipart/alternative; boundary="14992257680.75eEE.32454"; charset="UTF-8" --14992257680.75eEE.32454 Date: Wed, 5 Jul 2017 03:36:08 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 Michel D=C3=A4nzer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maraeo@gmail.com --- Comment #6 from Michel D=C3=A4nzer --- Marek, any ideas? --=20 You are receiving this mail because: You are the assignee for the bug.= --14992257680.75eEE.32454 Date: Wed, 5 Jul 2017 03:36:08 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated = Michel D=C3=A4nzer changed bug 10159= 6
What Removed Added
CC   maraeo@gmail.com


You are receiving this mail because:
  • You are the assignee for the bug.
= --14992257680.75eEE.32454-- --===============1870655638== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1870655638==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Wed, 05 Jul 2017 03:41:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1906131291==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 715636E121 for ; Wed, 5 Jul 2017 03:41:18 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1906131291== Content-Type: multipart/alternative; boundary="14992260781.CC22b2d1.2293"; charset="UTF-8" --14992260781.CC22b2d1.2293 Date: Wed, 5 Jul 2017 03:41:18 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #7 from Matias N. Goldberg --- As I keep reading the code and getting familiar, everything starts making sense: /** * If a shader can be created when we get its source. * This means it has only 1 variant, not counting glBitmap and * glDrawPixels. */ boolean shader_has_one_variant[MESA_SHADER_STAGES]; The problem is that after glDrawPixels creates its own variant; st_update_fp will end up using glDrawPixels' variant, instead of the non-glDrawPixels on= e. The same problem happens if glBitmap is used. One simple solution would be to add the variant to the end of the linked li= st, but this may affect the performance profile of radeonsi (i.e. assuming variations created last are more likely to be used than variations created first). The performance concerns can be negated by adding the variation to the end = of the linked list ONLY if glDrawPixels or glBitmap is the caller. --=20 You are receiving this mail because: You are the assignee for the bug.= --14992260781.CC22b2d1.2293 Date: Wed, 5 Jul 2017 03:41:18 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 7 on bug 10159= 6 from Matias N. Goldberg
As I keep reading the code and getting familiar, everything st=
arts making
sense:

/**
* If a shader can be created when we get its source.
* This means it has only 1 variant, not counting glBitmap and
* glDrawPixels.
*/
boolean shader_has_one_variant[MESA_SHADER_STAGES];

The problem is that after glDrawPixels creates its own variant; st_update_fp
will end up using glDrawPixels' variant, instead of the non-glDrawPixels on=
e.

The same problem happens if glBitmap is used.

One simple solution would be to add the variant to the end of the linked li=
st,
but this may affect the performance profile of radeonsi (i.e. assuming
variations created last are more likely to be used than variations created
first).
The performance concerns can be negated by adding the variation to the end =
of
the linked list ONLY if glDrawPixels or glBitmap is the caller.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14992260781.CC22b2d1.2293-- --===============1906131291== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1906131291==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Wed, 05 Jul 2017 17:05:47 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1641544552==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id C7F016E4A2 for ; Wed, 5 Jul 2017 17:05:47 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1641544552== Content-Type: multipart/alternative; boundary="14992743472.CA842932D.22152"; charset="UTF-8" --14992743472.CA842932D.22152 Date: Wed, 5 Jul 2017 17:05:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 Matias N. Goldberg changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dark_sylinc@yahoo.com.ar --- Comment #8 from Matias N. Goldberg --- Created attachment 132462 --> https://bugs.freedesktop.org/attachment.cgi?id=3D132462&action=3Dedit Patch to fix bug This patch fixes the problem by correctly handling glDrawPixel & glBitmap variations (both the cases where glDrawPixel was called before or after the standard variation has been generated), and fixes Blender. --=20 You are receiving this mail because: You are the assignee for the bug.= --14992743472.CA842932D.22152 Date: Wed, 5 Jul 2017 17:05:47 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated Matias N. Goldberg changed bug 10159= 6
What Removed Added
CC   dark_sylinc@yahoo.com.ar

Commen= t # 8 on bug 10159= 6 from Matias N. Goldberg
Created attachment 132462 <=
a href=3D"attachment.cgi?id=3D132462&action=3Dedit" title=3D"Patch to f=
ix bug">[details] [review]
Patch to fix bug

This patch fixes the problem by correctly handling glDrawPixel & glBitm=
ap
variations (both the cases where glDrawPixel was called before or after the
standard variation has been generated), and fixes Blender.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14992743472.CA842932D.22152-- --===============1641544552== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1641544552==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Wed, 05 Jul 2017 17:53:10 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1717358114==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 0044C89873 for ; Wed, 5 Jul 2017 17:53:09 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1717358114== Content-Type: multipart/alternative; boundary="14992771890.D27f8aCa0.3707"; charset="UTF-8" --14992771890.D27f8aCa0.3707 Date: Wed, 5 Jul 2017 17:53:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #9 from Sebastian Parborg --- Thanks for fixing it, the patch seems to work nicely for me too. --=20 You are receiving this mail because: You are the assignee for the bug.= --14992771890.D27f8aCa0.3707 Date: Wed, 5 Jul 2017 17:53:09 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 9 on bug 10159= 6 from Sebastian Parborg
Thanks for fixing it, the patch seems to work nicely for me to=
o.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14992771890.D27f8aCa0.3707-- --===============1717358114== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1717358114==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Thu, 06 Jul 2017 00:59:35 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0513093366==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B0526E56B for ; Thu, 6 Jul 2017 00:59:35 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0513093366== Content-Type: multipart/alternative; boundary="14993027751.da18E.18981"; charset="UTF-8" --14993027751.da18E.18981 Date: Thu, 6 Jul 2017 00:59:35 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #10 from Michel D=C3=A4nzer --- Please send the patch to the mesa-dev mailing list for review. --=20 You are receiving this mail because: You are the assignee for the bug.= --14993027751.da18E.18981 Date: Thu, 6 Jul 2017 00:59:35 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 10 on bug 10159= 6 from Michel D=C3=A4nzer
Please send the patch to the mesa-dev mailing list for review.=


You are receiving this mail because:
  • You are the assignee for the bug.
= --14993027751.da18E.18981-- --===============0513093366== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0513093366==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Fri, 07 Jul 2017 23:52:27 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1827044186==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 3655B6E78A for ; Fri, 7 Jul 2017 23:52:27 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1827044186== Content-Type: multipart/alternative; boundary="14994715472.fa9af1AA.31489"; charset="UTF-8" --14994715472.fa9af1AA.31489 Date: Fri, 7 Jul 2017 23:52:27 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 Marek Ol=C5=A1=C3=A1k changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #11 from Marek Ol=C5=A1=C3=A1k --- Pushed the fix as f728435e1f872af3efcd6b9215e8d722d35090cc. Closing. --=20 You are receiving this mail because: You are the assignee for the bug.= --14994715472.fa9af1AA.31489 Date: Fri, 7 Jul 2017 23:52:27 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated = Marek Ol=C5=A1=C3=A1k changed bug 10159= 6
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED

Comme= nt # 11 on bug 10159= 6 from Marek Ol=C5=A1=C3=A1k
Pushed the fix as f728435e1f872af3efcd6b9215e8d722d35090cc. Cl=
osing.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14994715472.fa9af1AA.31489-- --===============1827044186== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1827044186==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101596] Blender renders black UI elements Date: Sat, 08 Jul 2017 02:41:47 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1399846646==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id BB84B6E07E for ; Sat, 8 Jul 2017 02:41:47 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1399846646== Content-Type: multipart/alternative; boundary="14994817072.87823.4783"; charset="UTF-8" --14994817072.87823.4783 Date: Sat, 8 Jul 2017 02:41:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D101596 --- Comment #12 from Matias N. Goldberg --- Thank you for adding this commit despite my futile email! I am getting up to speed with Mesa's patch submission process, but I wouldn= 't have had the time to fully read it until next week and resubmit the patch. Thanks for taking the time to review it and include it! --=20 You are receiving this mail because: You are the assignee for the bug.= --14994817072.87823.4783 Date: Sat, 8 Jul 2017 02:41:47 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 12 on bug 10159= 6 from Matias N. Goldberg
Thank you for adding this commit despite my futile email!

I am getting up to speed with Mesa's patch submission process, but I wouldn=
't
have had the time to fully read it until next week and resubmit the patch.

Thanks for taking the time to review it and include it!


You are receiving this mail because:
  • You are the assignee for the bug.
= --14994817072.87823.4783-- --===============1399846646== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1399846646==--