Bug 109945 - pan_assemble.c:51:46: error: passing argument 2 of ‘tgsi_to_nir’ from incompatible pointer type [-Werror=incompatible-pointer-types]
Summary: pan_assemble.c:51:46: error: passing argument 2 of ‘tgsi_to_nir’ from incompa...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2019-03-09 03:12 UTC by Vinson Lee
Modified: 2019-03-11 06:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.