intel/compiler: Use nir's info when checking uses_streams.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Nov 2018 22:58:54 +0000 (14:58 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 28 Nov 2018 21:35:29 +0000 (13:35 -0800)
commitf11780779ff8b9449e9fcb55a672f12ef81d7a1a
tree4439027af9b741568f4eb0d49780825864a8dc89
parent199a0353d6a6568982aaf015dc91bdf8db17e88b
intel/compiler: Use nir's info when checking uses_streams.

Vulkan and Gallium don't use Mesa's gl_program data structure, so they
can't poke at 'prog'.  But we can simply use the copy of the shader info
stored with the NIR shader, which is guaranteed to exist.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/compiler/brw_vec4_gs_visitor.cpp