From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 68527] Planetary Annihilation Alpha: translation from TGSI failed ! Date: Sun, 25 Aug 2013 21:07:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2130368280==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 633C1E5C59 for ; Sun, 25 Aug 2013 14:07:46 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2130368280== Content-Type: multipart/alternative; boundary="1377464866.f07CC0.20814"; charset="us-ascii" --1377464866.f07CC0.20814 Date: Sun, 25 Aug 2013 21:07:46 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=68527 --- Comment #7 from Vadim Girlin --- (In reply to comment #4) > I'm also forgot to post full error: > EE r600_shader.c:158 r600_pipe_shader_create - translation from TGSI failed ! > EE r600_state_common.c:754 r600_shader_select - Failed to build shader > variant (type=1) -1 Looks like the shader needs too much registers, it's probably the most frequent reason for such errors. Old backend can't handle it correctly, and I think it's not going to be fixed. LLVM backend should handle it better, so you might want to try it in this case. By the way, there is a check that should print more specific message, but currently it's performed after the compilation because we don't know exact numbers of temp registers used by backend itself until we compile the shader. Probably we might want to implement similar check before the compilation as well - in most cases we can detect the problem just by checking the number of TGSI_inputs + TGSI_outputs + TGSI_temps, otherwise the backend often fails due to register limit in the middle of compilation without providing any explanation. -- You are receiving this mail because: You are the assignee for the bug. --1377464866.f07CC0.20814 Date: Sun, 25 Aug 2013 21:07:46 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 7 on bug 68527 from
(In reply to comment #4)
> I'm also forgot to post full error:
> EE r600_shader.c:158 r600_pipe_shader_create - translation from TGSI failed !
> EE r600_state_common.c:754 r600_shader_select - Failed to build shader
> variant (type=1) -1

Looks like the shader needs too much registers, it's probably the most frequent
reason for such errors. Old backend can't handle it correctly, and I think it's
not going to be fixed. LLVM backend should handle it better, so you might want
to try it in this case.

By the way, there is a check that should print more specific message, but
currently it's performed after the compilation because we don't know exact
numbers of temp registers used by backend itself until we compile the shader.
Probably we might want to implement similar check before the compilation as
well - in most cases we can detect the problem just by checking the number of
TGSI_inputs + TGSI_outputs + TGSI_temps, otherwise the backend often fails due
to register limit in the middle of compilation without providing any
explanation.


You are receiving this mail because:
  • You are the assignee for the bug.
--1377464866.f07CC0.20814-- --===============2130368280== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============2130368280==--