diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/gen8_sf_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_sf_state.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_sf_state.c b/src/mesa/drivers/dri/i965/gen8_sf_state.c index d8eec23..4c13f45 100644 --- a/src/mesa/drivers/dri/i965/gen8_sf_state.c +++ b/src/mesa/drivers/dri/i965/gen8_sf_state.c @@ -21,6 +21,7 @@ * IN THE SOFTWARE. */ +#include "compiler/nir/nir.h" #include "brw_context.h" #include "brw_state.h" #include "brw_defines.h" @@ -94,8 +95,10 @@ upload_sbe(struct brw_context *brw) /* prepare the active component dwords */ int input_index = 0; for (int attr = 0; attr < VARYING_SLOT_MAX; attr++) { - if (!(brw->fragment_program->Base.InputsRead & BITFIELD64_BIT(attr))) + if (!(brw->fragment_program->Base.nir->info.inputs_read & + BITFIELD64_BIT(attr))) { continue; + } assert(input_index < 32); |