i965/nir/vec4: Implement intrinsics that load system values
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 16 Jun 2015 19:36:49 +0000 (21:36 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commite76e8caecd30799500357a45468329f033a93932
tree5c4d69776d6a1d6bcd399d4bec5d62a773769a36
parent662c4c99065381b8e265310d176cfdef6698ca57
i965/nir/vec4: Implement intrinsics that load system values

These include:

nir_intrinsic_load_vertex_id_zero_base
nir_intrinsic_load_base_vertex
nir_intrinsic_load_instance_id

The source register is fetched from the nir_system_values map initialized
during nir_setup_system_values stage.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp