Bug 106824 - glDrawElements: Invalid cast!
Summary: glDrawElements: Invalid cast!
Status: RESOLVED WORKSFORME
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/swr (show other bugs)
Version: 18.0
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-05 07:36 UTC by Milan
Modified: 2018-06-22 15:58 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
example of using glDrawElements (1.07 KB, text/plain)
2018-06-05 07:36 UTC, Milan
Details

Description Milan 2018-06-05 07:36:14 UTC
Created attachment 140029 [details]
example of using glDrawElements

The program "test" (see the attachment) crashes with this error:

[login3]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${PWD}/install/mesa1811/lib
[login3]$ export GALLIUM_DRIVER=swr
[login3]$ ml LLVM/4.0.0-GCC-6.3.0-2.27  #or "ml LLVM/5.0.0-GCC-6.3.0-2.27"
[login3]$ g++ hellogl.cpp -o test -lglut -lGL ; ./test

SWR detected AVX2 instruction support (using: libswrAVX2.so).

test: /apps/easybuild/build/LLVM/4.0.0/GCC-6.3.0-2.27/llvm-4.0.0.src/lib/IR/Instructions.cpp:2592: static llvm::CastInst* llvm::CastInst::Create(llvm::Instruction::CastOps, llvm::Value*, llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed.
Aborted (core dumped)

Thank you for your help.
Milan
Comment 1 Alok Hota 2018-06-22 15:58:20 UTC
Resolved over email. I wasn't able to replicate the error, but Milan was able to get up and running with recompiled versions of Mesa and LLVM. It was mentioned that an OpenGL context crash was occurring occasionally with SWR.

@Milan if you are unable to track down what's causing that crash, please feel free to open up a new bug and let me know.


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.