[Mesa-dev] [Bug 106824] glDrawElements: Invalid cast!

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 5 07:36:14 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106824

            Bug ID: 106824
           Summary: glDrawElements: Invalid cast!
           Product: Mesa
           Version: 18.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: Drivers/Gallium/swr
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: milan.jaros at vsb.cz
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 140029
  --> https://bugs.freedesktop.org/attachment.cgi?id=140029&action=edit
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

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180605/8e7ecb6b/attachment.html>


More information about the mesa-dev mailing list