All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 99349] Failed to build shader (translation from TGSI)
@ 2017-01-10 17:24 bugzilla-daemon
  2017-01-10 17:44 ` bugzilla-daemon
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-01-10 17:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1208 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

            Bug ID: 99349
           Summary: Failed to build shader (translation from TGSI)
           Product: Mesa
           Version: 13.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: balalic.enver@gmail.com
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 128864
  --> https://bugs.freedesktop.org/attachment.cgi?id=128864&action=edit
glxinfo

I'm using a Radeon HD6950, it fails to build a shader when playing "War
Thunder", renders the login screen fine, starts to build shaders and then fails
and spams the following in the console:

EE r600_state_common.c:799 r600_shader_select - Failed to build shader variant
(type=1) -1
EE r600_shader.c:183 r600_pipe_shader_create - translation from TGSI failed !

same thing happens a lof of shaders from shadertoy.com.

OS: OpenSUSE Tumbleweed, glxinfo attached

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2695 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
@ 2017-01-10 17:44 ` bugzilla-daemon
  2017-05-17  6:45 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-01-10 17:44 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 371 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #1 from Enver Balalic <balalic.enver@gmail.com> ---
With the R600_DEBUG=sbsafemath flag the game starts, it still spams the console
with the error. The skybox is not being rendered and an box of pink flickers on
the screen

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1151 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
  2017-01-10 17:44 ` bugzilla-daemon
@ 2017-05-17  6:45 ` bugzilla-daemon
  2017-05-24 13:10 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-17  6:45 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 324 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #2 from Bronson <bronsonmathews@gmail.com> ---
yes ive got this issue also on the new godot engine (3.0 git)

More info here:
https://github.com/godotengine/godot/issues/8774

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1162 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
  2017-01-10 17:44 ` bugzilla-daemon
  2017-05-17  6:45 ` bugzilla-daemon
@ 2017-05-24 13:10 ` bugzilla-daemon
  2017-05-24 14:56 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-24 13:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1175 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #3 from Gert Wollny <gw.fossdev@gmail.com> ---
I've had the same error output when I was playing with the Unreal Editor with
an HD6850  (BARTS) using the latest mesa-git.  

In order to track it down I added some debugging to mesa and could get the 
following trace that leads to the error:

r600/r600_asm.c:615 
  check_and_set_bank_swizzle - Couldn't find a working swizzle

drivers/r600/r600_shader.c:3975 
  tgsi_op2_s - Error in tgsi_op2_s, i = 3, r600_bytecode_add_alu returned  -1

r600/r600_shader.c:3332 
r600_shader_from_tgsi - Failed to build shader at ctx.inst_info->process, 
   chip class: 6, opcode: 7 result: -1

Since I added output for every "return -1" in r600/r600_asm.c I also get a lots
of other messages, but I guess that these are normal. 

Debugging the code I also found  that check_and_set_bank_swizzle exiting with
"Couldn't find a working swizzle" is not necessarily an error, which means that
I'm now a bit lost, because I'm not sure about how continue debugging this
problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1973 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-05-24 13:10 ` bugzilla-daemon
@ 2017-05-24 14:56 ` bugzilla-daemon
  2017-05-25  8:10 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-24 14:56 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 438 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #4 from Gert Wollny <gw.fossdev@gmail.com> ---
The same problem also seems to be discussed in these mails 

http://mesa-dev.freedesktop.narkive.com/cHAXj1eT/bug-50338-radeon-tgsi-takes-more-than-two-cfiles-from-r600-shader

It is very likely that this is actually a duplicated of #50338.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1342 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-05-24 14:56 ` bugzilla-daemon
@ 2017-05-25  8:10 ` bugzilla-daemon
  2017-05-25  9:32 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-25  8:10 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1757 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #5 from Gert Wollny <gw.fossdev@gmail.com> ---
Adding yet more debugging output, and so far it seems that there is only one
operation failing: a multiplication of two operands with a write mask of 0xF
(see log below). 

I also tested gzdoom like the poster I referenced in my last comment, but on my
machine it works fine. 

r600_asm.c:1297 r600_bytecode_add_alu_type - check_and_set_bank_swizzle
returned -1
r600_asm.c:1303 r600_bytecode_add_alu_type -   slot[0]: op: 2, bank_swizzle:0
bank_swizzle_force: 0
r600_asm.c:1303 r600_bytecode_add_alu_type -   slot[1]: op: 2, bank_swizzle:0
bank_swizzle_force: 0
r600_asm.c:1303 r600_bytecode_add_alu_type -   slot[2]: op: 2, bank_swizzle:0
bank_swizzle_force: 0
r600_asm.c:1303 r600_bytecode_add_alu_type -   slot[3]: op: 2, bank_swizzle:0
bank_swizzle_force: 0
r600_asm.c:1305 r600_bytecode_add_alu_type -   slot[4] = 0: 0
r600_shader.c:3979 tgsi_op2_s - Error in tgsi_op2_s, i = 3, lasti = 3,
r600_bytecode_add_alu returned  -1
r600_shader.c:3981 tgsi_op2_s -   op=2, num src registers: 2, write_mask=15
r600_shader.c:3983 tgsi_op2_s -   alu.dst: {sel: 15, chan: 3, clamp: 0, write:
1, rel: 0
r600_shader.c:3986 tgsi_op2_s -   alu.src0: {sel: 160, chan: 3, kc_bank:0
r600_shader.c:3988 tgsi_op2_s -   alu.src1: {sel: 535, chan: 3, kc_bank:0
r600_shader.c:3332 r600_shader_from_tgsi - Failed to build shader at
ctx.inst_info->process, chip class: 6, opcode: 7 result: -1
r600_shader.c:183 r600_pipe_shader_create - translation from TGSI failed !
r600_state_common.c:787 r600_shader_select - Failed to build shader variant
(type=1) -1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2535 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-05-25  8:10 ` bugzilla-daemon
@ 2017-05-25  9:32 ` bugzilla-daemon
  2017-05-26  9:01 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-25  9:32 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 314 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #6 from Gert Wollny <gw.fossdev@gmail.com> ---
The actual instruction failing is 

   MUL TEMP[11], CONST[26], CONST[23]

i.e. the multiplication of two constants.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1089 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-05-25  9:32 ` bugzilla-daemon
@ 2017-05-26  9:01 ` bugzilla-daemon
  2017-05-26  9:03 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-26  9:01 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 3920 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #7 from Gert Wollny <gw.fossdev@gmail.com> ---
Now, just  multiplying two constants/uniforms not necessarily trigger the bug.
With a simple shader program like 

uniform vec4 base_color;
uniform vec4 test;
uniform vec4 test2;
uniform vec4 test3;

void main()
{
 vec4 h1 = base_color * test;
 vec4 h2 = test2 * test3;
 gl_FragColor = h1 * h2;
}

for both const-const multiplications one constant is always addressed via a
GPR, i.e. I get 

  1: MUL TEMP[0], CONST[0], CONST[1]
r600_shader.c:3986 tgsi_op2_s - About to multiply two constants
r600_shader.c:4000 tgsi_op2_s -  ctx->src[0]: 
                  sel:7   // this is a GPR address 
              swizzle:0 1 2 3
                  neg:0
                  abs:0
                  rel:0
              kc_bank:0
               kc_rel:0
                value:0 0 0 0

r600_shader.c:4000 tgsi_op2_s -  ctx->src[1]: 
                  sel:513  // this is a cfile address 
              swizzle:0 1 2 3
                  neg:0
                  abs:0
                  rel:0
              kc_bank:0
               kc_rel:0
                value:0 0 0 0

and then check_vector/reserve_cfile can successfully assign the read ports via
cfile because only 4 values need to be read. 


However, for a more complicated shader I get the following:  

250: MUL TEMP[11], CONST[26], CONST[23]
r600_shader.c:3986 tgsi_op2_s - About to multiply two constants
r600_shader.c:4000 tgsi_op2_s -  ctx->src[0]: 
                  sel:160  // cfile kcache after  translation 
              swizzle:0 1 2 3
                  neg:0
                  abs:0
                  rel:0
              kc_bank:0
               kc_rel:0
                value:0 0 0 0

r600_shader.c:4000 tgsi_op2_s -  ctx->src[1]: 
                  sel:535 // cfile kcache before  translation 
              swizzle:0 1 2 3
                  neg:0
                  abs:0
                  rel:0
              kc_bank:0
               kc_rel:0
                value:0 0 0 0

r600_asm.c:472 check_vector -  bs->hw_cfile_addr:[-1 -1]  bs->hw_cfile_elem:
[-1 -1] bank_swizzle:0  num_src:2
r600_asm.c:494 check_vector -  src 0: sel:160 elem:0
r600_asm.c:423 reserve_cfile -   res=0: bs->hw_cfile_addr:-1
bs->hw_cfile_elem:-1 sel:160 chan:0
r600_asm.c:494 check_vector -  src 1: sel:535 elem:0
r600_asm.c:423 reserve_cfile -   res=0: bs->hw_cfile_addr:160
bs->hw_cfile_elem:0 sel:535 chan:0
r600_asm.c:423 reserve_cfile -   res=1: bs->hw_cfile_addr:-1
bs->hw_cfile_elem:-1 sel:535 chan:0
r600_asm.c:472 check_vector -  bs->hw_cfile_addr:[160 535]  bs->hw_cfile_elem:
[0 0] bank_swizzle:0  num_src:2
r600_asm.c:494 check_vector -  src 0: sel:160 elem:1
r600_asm.c:423 reserve_cfile -   res=0: bs->hw_cfile_addr:160
bs->hw_cfile_elem:0 sel:160 chan:0
r600_asm.c:494 check_vector -  src 1: sel:535 elem:1
r600_asm.c:423 reserve_cfile -   res=0: bs->hw_cfile_addr:160
bs->hw_cfile_elem:0 sel:535 chan:0
r600_asm.c:423 reserve_cfile -   res=1: bs->hw_cfile_addr:535
bs->hw_cfile_elem:0 sel:535 chan:0
r600_asm.c:472 check_vector -  bs->hw_cfile_addr:[160 535]  bs->hw_cfile_elem:
[0 0] bank_swizzle:0  num_src:2
r600_asm.c:494 check_vector -  src 0: sel:160 elem:2
r600_asm.c:423 reserve_cfile -   res=0: bs->hw_cfile_addr:160
bs->hw_cfile_elem:0 sel:160 chan:1
r600_asm.c:423 reserve_cfile -   res=1: bs->hw_cfile_addr:535
bs->hw_cfile_elem:0 sel:160 chan:1
r600_asm.c:436 reserve_cfile - All cfile read ports are used, cannot reference
vector element.

In summary allocating a read port for elem >= 2 fails, because it would mean
reading more than four values in one instruction group, and this is ot possible
according to the AMD Evergreen-Family instruction set manual 4.7.5.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 4776 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (6 preceding siblings ...)
  2017-05-26  9:01 ` bugzilla-daemon
@ 2017-05-26  9:03 ` bugzilla-daemon
  2017-05-26 13:31 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-26  9:03 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 292 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #8 from Gert Wollny <gw.fossdev@gmail.com> ---
The mesa-code with the added debugging output can be found at: 

https://github.com/gerddie/mesa

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1113 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (7 preceding siblings ...)
  2017-05-26  9:03 ` bugzilla-daemon
@ 2017-05-26 13:31 ` bugzilla-daemon
  2017-05-26 20:24 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-26 13:31 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1366 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #9 from Gert Wollny <gw.fossdev@gmail.com> ---
It turns out that in r600_shader.c:tgsi_split_constant the constants should be
moved to the GPR range, but for large shaders this is not sufficient, since the
temporary registers used there may be beyond 127 which is the limit for GPRs. 

tgsi_split_constant doesn't move all constants and if an operator uses the same
constant as source more than once, then one of the instances of the constants
is moved to a new address, and this may even be counter productive. 

Now to fix this bug, a partial workaround is in the repo I've given above, the
patch changes the register handling to reserve a few registers in the low range
and moves constants there if necessary. Note, however, that it also contains
additional debugging output. 

However, for the instruction 

 LRP TEMP[0].xyz, CONST[31].wwww, CONST[31].xyzz, TEMP[0].xyzz

check_and_set_bank_swizzle still fails. (This is, by the way, one such case
where 
tgsi_split_constant moves one of the instances of CONST[31] to another place.) 

I will try to correct  tgsi_split_constant to not move the values around if
they are originally from the same source and see whether this fixes the
problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2141 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (8 preceding siblings ...)
  2017-05-26 13:31 ` bugzilla-daemon
@ 2017-05-26 20:24 ` bugzilla-daemon
  2017-05-29 13:28 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-26 20:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 540 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #10 from Gert Wollny <gw.fossdev@gmail.com> ---
Well, it turns out that the shader simply uses too many registers, and since
this is only tested at the end, at one point the indices of the temporaries
used to store constants are beyond the GPR range, which makes translation from
TGSI fail because it tries to do use two or more cfile addresses in one
instruction, and this is not allowed.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1316 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (9 preceding siblings ...)
  2017-05-26 20:24 ` bugzilla-daemon
@ 2017-05-29 13:28 ` bugzilla-daemon
  2017-06-02 17:55 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-05-29 13:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 509 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #11 from Gert Wollny <gw.fossdev@gmail.com> ---
Created attachment 131567
  --> https://bugs.freedesktop.org/attachment.cgi?id=131567&action=edit
TGSI for failing shader

This is the failing shader. For some reasons 151 GPRs are allocate as TEMP but
only 40 actually appear as source for an operation, the remaining ones are all
only targets and discarded.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1423 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (10 preceding siblings ...)
  2017-05-29 13:28 ` bugzilla-daemon
@ 2017-06-02 17:55 ` bugzilla-daemon
  2017-06-25 22:29 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-06-02 17:55 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 357 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #12 from Gert Wollny <gw.fossdev@gmail.com> ---
Created attachment 131683
  --> https://bugs.freedesktop.org/attachment.cgi?id=131683&action=edit
Patch proposed on mesa-dev to work around too many temporaries

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1434 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (11 preceding siblings ...)
  2017-06-02 17:55 ` bugzilla-daemon
@ 2017-06-25 22:29 ` bugzilla-daemon
  2017-06-26  6:03 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-06-25 22:29 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 578 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #13 from Elia Argentieri <elia.argentieri@openmailbox.org> ---
I tried your patch, but unfortunately it didn't solve my problem with godot
engine... I don't get any error about GPR limits, just this:

EE r600_shader.c:190 r600_pipe_shader_create - translation from TGSI failed !
EE r600_state_common.c:816 r600_shader_select - Failed to build shader variant
(type=1) -1

There must be another bug. Thank you for your effort.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1369 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (12 preceding siblings ...)
  2017-06-25 22:29 ` bugzilla-daemon
@ 2017-06-26  6:03 ` bugzilla-daemon
  2017-06-26 13:41 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-06-26  6:03 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 629 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #14 from Gert Wollny <gw.fossdev@gmail.com> ---
Actually that patch was more of a bad hack. Try this new patch set that goes to
the source of the problem: 

https://patchwork.freedesktop.org/series/26330/

for me it solved this "translation from TGSI" problem with large shaders with
the GpuTest 0.7.0 piano and voloplosion benchmarks. 

Please note that after applying these patches you will have to set the
environment variable MESA_GLSL_TO_TGSI_NEW_MERGE to activate it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1477 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (13 preceding siblings ...)
  2017-06-26  6:03 ` bugzilla-daemon
@ 2017-06-26 13:41 ` bugzilla-daemon
  2017-07-11 23:07 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-06-26 13:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 341 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #15 from Elia Argentieri <elia.argentieri@openmailbox.org> ---
Now it works! I also had to set MESA_GLSL_CACHE_DISABLE to make it work, maybe
it was picking the old shader. Thank you very much.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1132 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (14 preceding siblings ...)
  2017-06-26 13:41 ` bugzilla-daemon
@ 2017-07-11 23:07 ` bugzilla-daemon
  2017-07-16 21:17 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-07-11 23:07 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 269 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #16 from higuita@gmx.net ---
So if the patch works, will it be merged? or is already merged, and if yes, in
what version?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1017 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (15 preceding siblings ...)
  2017-07-11 23:07 ` bugzilla-daemon
@ 2017-07-16 21:17 ` bugzilla-daemon
  2017-09-08  5:56 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-07-16 21:17 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 309 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #17 from Gert Wollny <gw.fossdev@gmail.com> ---
An updated version of the patch set is currently under review: 

https://patchwork.freedesktop.org/series/25594/

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1147 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (16 preceding siblings ...)
  2017-07-16 21:17 ` bugzilla-daemon
@ 2017-09-08  5:56 ` bugzilla-daemon
  2017-09-08 11:05 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-09-08  5:56 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 569 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

Gert Wollny <gw.fossdev@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #18 from Gert Wollny <gw.fossdev@gmail.com> ---
Fix applied and consolidated with 
c4741bbb6fb98f78551f9e42ae570dcc924e0031

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2057 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (17 preceding siblings ...)
  2017-09-08  5:56 ` bugzilla-daemon
@ 2017-09-08 11:05 ` bugzilla-daemon
  2018-03-26 13:13 ` bugzilla-daemon
  2018-03-26 18:26 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2017-09-08 11:05 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 344 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #19 from Emil Velikov <emil.l.velikov@gmail.com> ---
Note that the series adds an extra optimisation pass. As such it's not suitable
for stable. You'll have to use mesa from git until 17.3 is out.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1177 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (18 preceding siblings ...)
  2017-09-08 11:05 ` bugzilla-daemon
@ 2018-03-26 13:13 ` bugzilla-daemon
  2018-03-26 18:26 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-03-26 13:13 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 812 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

mirh <mirh@protonmail.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mirh@protonmail.ch

--- Comment #20 from mirh <mirh@protonmail.ch> ---
http://www.graphicsfuzz.com/benchmark/android-v1.html
I'm still having the same problem with mesa-git and firefox nightly (HD 6310)

r600_shader_from_tgsi - GPR limit exceeded - shader requires 130 registers
EE r600_shader.c:183 r600_pipe_shader_create - translation from TGSI failed !
EE r600_state_common.c:872 r600_shader_select - Failed to build shader variant
(type=1) -12

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2257 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

* [Bug 99349] Failed to build shader (translation from TGSI)
  2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
                   ` (19 preceding siblings ...)
  2018-03-26 13:13 ` bugzilla-daemon
@ 2018-03-26 18:26 ` bugzilla-daemon
  20 siblings, 0 replies; 22+ messages in thread
From: bugzilla-daemon @ 2018-03-26 18:26 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 267 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=99349

--- Comment #21 from mirh <mirh@protonmail.ch> ---
Specific issue was reported in bug 105371. Follows there. 
Sorry for the bother.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1267 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-03-26 18:26 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-10 17:24 [Bug 99349] Failed to build shader (translation from TGSI) bugzilla-daemon
2017-01-10 17:44 ` bugzilla-daemon
2017-05-17  6:45 ` bugzilla-daemon
2017-05-24 13:10 ` bugzilla-daemon
2017-05-24 14:56 ` bugzilla-daemon
2017-05-25  8:10 ` bugzilla-daemon
2017-05-25  9:32 ` bugzilla-daemon
2017-05-26  9:01 ` bugzilla-daemon
2017-05-26  9:03 ` bugzilla-daemon
2017-05-26 13:31 ` bugzilla-daemon
2017-05-26 20:24 ` bugzilla-daemon
2017-05-29 13:28 ` bugzilla-daemon
2017-06-02 17:55 ` bugzilla-daemon
2017-06-25 22:29 ` bugzilla-daemon
2017-06-26  6:03 ` bugzilla-daemon
2017-06-26 13:41 ` bugzilla-daemon
2017-07-11 23:07 ` bugzilla-daemon
2017-07-16 21:17 ` bugzilla-daemon
2017-09-08  5:56 ` bugzilla-daemon
2017-09-08 11:05 ` bugzilla-daemon
2018-03-26 13:13 ` bugzilla-daemon
2018-03-26 18:26 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.