Bug 111212 - gen_builder_meta.hpp:53:117: error: no matching function for call to ‘cast(llvm::FunctionCallee)’
Summary: gen_builder_meta.hpp:53:117: error: no matching function for call to ‘cast(ll...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/swr (show other bugs)
Version: git
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-24 22:50 UTC by Vinson Lee
Modified: 2019-09-14 06:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2019-07-24 22:50:00 UTC
Build error with llvm-10.0

In file included from ../src/gallium/drivers/swr/rasterizer/jitter/builder.h:161:0,
                 from ../src/gallium/drivers/swr/swr_shader.cpp:35:
src/gallium/drivers/swr/rasterizer/jitter/gen_builder_meta.hpp: In member function ‘llvm::Value* SwrJit::Builder::VGATHERPD(llvm::Value*, llvm::Value*, llvm::Value*, llvm::Value*, llvm::Value*, const llvm::Twine&)’:
src/gallium/drivers/swr/rasterizer/jitter/gen_builder_meta.hpp:53:117: error: no matching function for call to ‘cast(llvm::FunctionCallee)’
     Function* pFunc = cast<Function>(JM()->mpCurrentModule->getOrInsertFunction("meta.intrinsic.VGATHERPD", pFuncTy));
                                                                                                                     ^
Comment 1 Vinson Lee 2019-09-14 06:58:20 UTC
commit 3664a6600eb0efbb4606f0b59730df3088b3b490
Author: Vinson Lee <vlee@freedesktop.org>
Date:   Mon Aug 26 16:16:26 2019 -0700

    swr: Fix build with llvm-9.0 again.
    
    Commit 6f7306c029a7 ("swr/rast: Refactor memory API between rasterizer
    core and swr") unintentionally removed changes for llvm-9.0.
    
    Fixes: 6f7306c029a7 ("swr/rast: Refactor memory API between rasterizer core and swr")
    Fixes: 5dd9ad157005 ("swr/rasterizer: Better implementation of scatter")
    Signed-off-by: Vinson Lee <vlee@freedesktop.org>
    Reviewed-by: Jan Zielinski <jan.zielinski@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.