OSDN Git Service

nir/lower_vec_to_movs: Pass the shader around directly
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 9 Sep 2015 19:58:58 +0000 (12:58 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Sep 2015 18:13:40 +0000 (11:13 -0700)
commitb7eeced3c724bf5de05290551ced8621ce2c7c52
treee225ff513592ec189bd443eb828ccb14be26267c
parentcadd7dd384b33a779d46bd664f456bed4a21a5b7
nir/lower_vec_to_movs: Pass the shader around directly

Previously, we were passing the shader around, we were just calling it
"mem_ctx".  However, the nir_shader is (and must be for the purposes of
mark-and-sweep) the mem_ctx so we might as well pass it around explicitly.

Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/glsl/nir/nir_lower_vec_to_movs.c