projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88d6658
)
nv50/ir: fix crash in isUniform for undefined values
author
Karol Herbst
<kherbst@redhat.com>
Sat, 2 Nov 2019 23:57:28 +0000
(
00:57
+0100)
committer
Karol Herbst
<kherbst@redhat.com>
Sun, 3 Nov 2019 00:02:52 +0000
(
01:02
+0100)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
b/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
index
a181a13
..
ae07d96
100644
(file)
--- a/
src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
+++ b/
src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
@@
-274,6
+274,8
@@
LValue::isUniform() const
if (defs.size() > 1)
return false;
Instruction *insn = getInsn();
+ if (!insn)
+ return false;
// let's not try too hard here for now ...
return !insn->srcExists(1) && insn->getSrc(0)->isUniform();
}