[Mesa-dev] [Bug 92850] Segfault loading War Thunder
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Dec 4 03:36:02 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=92850
--- Comment #46 from haro41 at gmx.de ---
here is the code from ir.h where it fails:
/**
* Determine the number of operands used by an expression
*/
static unsigned int get_num_operands(ir_expression_operation);
/**
* Determine the number of operands used by an expression
*/
unsigned int get_num_operands() const
{
return (this->operation == ir_quadop_vector)
? this->type->vector_elements : get_num_operands(operation);
}
Is it strange enough to fail if compiled inline in this code below?
for (operand = 0; operand < ir->get_num_operands(); operand++) {
this->result.file = PROGRAM_UNDEFINED;
ir->operands[operand]->accept(this);
if (this->result.file == PROGRAM_UNDEFINED) {
printf("Failed to get tree for expression operand:\n");
ir->operands[operand]->print();
printf("\n");
exit(1);
}
op[operand] = this->result;
/* Matrix expression operands should have been broken down to vector
* operations already.
*/
assert(!ir->operands[operand]->type->is_matrix());
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151204/8648ac73/attachment.html>
More information about the mesa-dev
mailing list