diff options
author | Timothy Arceri <timothy.arceri@collabora.com> | 2016-10-05 16:45:27 +1100 |
---|---|---|
committer | Timothy Arceri <timothy.arceri@collabora.com> | 2016-10-06 16:04:09 +1100 |
commit | 7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc (patch) | |
tree | a668bb89801de731937da5149495902837fb1d0c /src/mesa/drivers/dri/i965/brw_sf.c | |
parent | 7ef8286487562e1e8678ccc514e4054a682c0c89 (diff) | |
download | external_mesa3d-7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc.tar.gz external_mesa3d-7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc.tar.bz2 external_mesa3d-7627fbd9b0ca5eb39acb4f0a2ce9b03c90931ebc.zip |
i965: get inputs read from nir info
This is a step towards dropping the GLSL IR version of
do_set_program_inouts() in i965 and moving towards native nir support.
This is important because we want to eventually convert to nir and
use its optimisations passes before we can call this GLSL IR pass.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c index 6d8cd74bdf..2090737fd0 100644 --- a/src/mesa/drivers/dri/i965/brw_sf.c +++ b/src/mesa/drivers/dri/i965/brw_sf.c @@ -29,7 +29,7 @@ * Keith Whitwell <keithw@vmware.com> */ - +#include "compiler/nir/nir.h" #include "main/macros.h" #include "main/mtypes.h" #include "main/enums.h" @@ -192,8 +192,11 @@ brw_upload_sf_prog(struct brw_context *brw) if (key.do_point_sprite) { key.point_sprite_coord_replace = ctx->Point.CoordReplace & 0xff; } - if (brw->fragment_program->Base.InputsRead & BITFIELD64_BIT(VARYING_SLOT_PNTC)) + if (brw->fragment_program->Base.nir->info.inputs_read & + BITFIELD64_BIT(VARYING_SLOT_PNTC)) { key.do_point_coord = 1; + } + /* * Window coordinates in a FBO are inverted, which means point * sprite origin must be inverted, too. |