Bug 109945

Summary: pan_assemble.c:51:46: error: passing argument 2 of ‘tgsi_to_nir’ from incompatible pointer type [-Werror=incompatible-pointer-types]
Product: Mesa Reporter: Vinson Lee <vlee>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium Keywords: regression
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
i915 platform: i915 features:

Description Vinson Lee 2019-03-09 03:12:01 UTC
../src/gallium/drivers/panfrost/pan_assemble.c: In function ‘panfrost_shader_compile’:
../src/gallium/drivers/panfrost/pan_assemble.c:51:46: error: passing argument 2 of ‘tgsi_to_nir’ from incompatible pointer type [-Werror=incompatible-pointer-types]
                 s = tgsi_to_nir(cso->tokens, &ctx->base.screen);
In file included from ../src/gallium/drivers/panfrost/pan_assemble.c:31:
../src/gallium/auxiliary/nir/tgsi_to_nir.h:28:1: note: expected ‘struct pipe_screen *’ but argument is of type ‘struct pipe_screen **’
 tgsi_to_nir(const void *tgsi_tokens,
Comment 1 Andre Heider 2019-03-11 06:55:33 UTC
Fixed with:

commit d4d29c0455bf8540de3c006dd213ae1ccf2bc361
Author: Eric Engestrom <eric.engestrom@intel.com>
Date:   Sat Mar 9 22:04:21 2019 +0000

    panfrost: fix tgsi_to_nir() call
    Bug: https://bugs.freedesktop.org/show_bug.cgi?id=109945
    Fixes: 7da251fc721360fc28b9 "panfrost: Check in sources for command stream"
    Cc: Alyssa Rosenzweig <alyssa@rosenzweig.io>
    Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.