From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 70110] [bisected] regression: assert in r600_bind_sampler_states since 27c054edf0ae92c8c498830e7c7510fa94f5dcfd Date: Fri, 04 Oct 2013 16:49:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1689535344==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id D8C24E694A for ; Fri, 4 Oct 2013 09:49:26 -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 --===============1689535344== Content-Type: multipart/alternative; boundary="1380905366.bfBaFF50.15442"; charset="us-ascii" --1380905366.bfBaFF50.15442 Date: Fri, 4 Oct 2013 16:49:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=70110 --- Comment #1 from Alexandre Demers --- Easy one: under r600_bind_sampler_states(), there is an assert. Since I'm building with --enable-debug, I hit it. if (shader != PIPE_SHADER_VERTEX && shader != PIPE_SHADER_FRAGMENT) { assert(!"Only vertex/fragment sampler are implemented."); return; } I suggest we should/could print out an error message if needed, but it shouldn't be an assert() since we return just after that without doing anything if the shader is not of the supported type. In fact, I tested mesa with the assert commented out and everything was back to the way it used to be, so we really don't need an assert() there. A R600_ERR() seems to do the trick here: if (shader != PIPE_SHADER_VERTEX && shader != PIPE_SHADER_FRAGMENT) { R600_ERR("!Only vertex/fragment sampler are implemented.\n"); return; } -- You are receiving this mail because: You are the assignee for the bug. --1380905366.bfBaFF50.15442 Date: Fri, 4 Oct 2013 16:49:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 1 on bug 70110 from
Easy one: under r600_bind_sampler_states(), there is an assert. Since I'm
building with --enable-debug, I hit it.

    if (shader != PIPE_SHADER_VERTEX &&
        shader != PIPE_SHADER_FRAGMENT) {
        assert(!"Only vertex/fragment sampler are implemented.");
        return;
    }


I suggest we should/could print out an error message if needed, but it
shouldn't be an assert() since we return just after that without doing anything
if the shader is not of the supported type. In fact, I tested mesa with the
assert commented out and everything was back to the way it used to be, so we
really don't need an assert() there. A R600_ERR() seems to do the trick here:

    if (shader != PIPE_SHADER_VERTEX &&
        shader != PIPE_SHADER_FRAGMENT) {
        R600_ERR("!Only vertex/fragment sampler are implemented.\n");
        return;
    }


You are receiving this mail because:
  • You are the assignee for the bug.
--1380905366.bfBaFF50.15442-- --===============1689535344== 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 --===============1689535344==--