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:
e3f9c78
)
nir/glsl_to_nir: ignore an instruction's dest if it hasn't any
author
Iago Toral Quiroga
<itoral@igalia.com>
Tue, 19 May 2015 07:02:06 +0000
(09:02 +0200)
committer
Samuel Iglesias Gonsalvez
<siglesias@igalia.com>
Fri, 25 Sep 2015 06:39:22 +0000
(08:39 +0200)
Reviewed-by: Connor Abbott <connor.w.abbott@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/glsl/nir/glsl_to_nir.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/nir/glsl_to_nir.cpp
b/src/glsl/nir/glsl_to_nir.cpp
index
d1e2488
..
f8f3fd8
100644
(file)
--- a/
src/glsl/nir/glsl_to_nir.cpp
+++ b/
src/glsl/nir/glsl_to_nir.cpp
@@
-1036,7
+1036,8
@@
nir_visitor::add_instr(nir_instr *instr, unsigned num_components)
{
nir_dest *dest = get_instr_dest(instr);
- nir_ssa_dest_init(instr, dest, num_components, NULL);
+ if (dest)
+ nir_ssa_dest_init(instr, dest, num_components, NULL);
nir_instr_insert_after_cf_list(this->cf_node_list, instr);
this->result = instr;