mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-08 12:28:17 +02:00
ir_to_mesa: Don't dereference a NULL pointer during copy propagation
The ACP may already be NULL, so don't try to make it NULL again. This should fix bugzilla #34119.
This commit is contained in:
parent
a0120e6e0f
commit
3803295fc2
1 changed files with 3 additions and 0 deletions
|
|
@ -2754,6 +2754,9 @@ ir_to_mesa_visitor::copy_propagate(void)
|
|||
*/
|
||||
for (int r = 0; r < this->next_temp; r++) {
|
||||
for (int c = 0; c < 4; c++) {
|
||||
if (!acp[4 * r + c])
|
||||
continue;
|
||||
|
||||
if (acp[4 * r + c]->src_reg[0].file == PROGRAM_OUTPUT)
|
||||
acp[4 * r + c] = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue