[Mesa-dev] [Bug 101360] Assertion failure comparing result of ballotARB
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Jun 9 09:38:14 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=101360
Bug ID: 101360
Summary: Assertion failure comparing result of ballotARB
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: glsl-compiler
Assignee: mesa-dev at lists.freedesktop.org
Reporter: jlegg at feralinteractive.com
QA Contact: intel-3d-bugs at lists.freedesktop.org
Created attachment 131825
--> https://bugs.freedesktop.org/attachment.cgi?id=131825&action=edit
Piglit test reproducing the problem
When comparing a constant to the result of a call to the ballotARB function, or
a variable containing the result, an assert in void
glsl_to_tgsi_visitor::copy_propagate() can fail. If assertions are disabled,
then copy_propagate writes over the end of an allocation, corrupting memory
instead.
The attached patch to piglit adds a test reproducing the problem.
Steps to reproduce:
1) Apply attached patch to piglit
2) Run ./piglit run -t arb_shader_ballot shader results/ballot
The newly added test will crash.
The test crashes with:
state_tracker/st_glsl_to_tgsi.cpp:4936: void
glsl_to_tgsi_visitor::copy_propagate(): Assertion `inst->dst[0].file !=
PROGRAM_TEMPORARY || inst->dst[0].index < this->next_temp' failed.
I'm using mesa ada3c3aa3da5d04bd597014dc1b5d4b028313513 with an AMD RX480.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170609/321f333a/attachment.html>
More information about the mesa-dev
mailing list