diff options
author | Juan A. Suarez Romero <[email protected]> | 2016-12-14 17:12:24 +0000 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2017-01-12 12:56:56 +0100 |
commit | 6bb4255f8ebb8cc048afe498e11738985d134f8a (patch) | |
tree | 006c1bfa1dad9918dea4306a325a2d299b88125f /src/mesa/drivers/dri/i965 | |
parent | f51a5b51ab92ada4b9f3b1d603f9de60b66e46ce (diff) |
i965: check for dual slot attributes on any gen
Those not supporting 64 bit input vertex attributes will have the
dual_slot value as false.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 9c36d050441..a865f2793d1 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -570,8 +570,7 @@ brw_prepare_vertices(struct brw_context *brw) first - DIV_ROUND_UP(_mesa_bitcount_64(vs_prog_data->double_inputs_read & BITFIELD64_MASK(first)), 2); struct brw_vertex_element *input = &brw->vb.inputs[index]; - input->is_dual_slot = brw->gen >= 8 && - (vs_prog_data->double_inputs_read & BITFIELD64_BIT(first)) != 0; + input->is_dual_slot = (vs_prog_data->double_inputs_read & BITFIELD64_BIT(first)) != 0; vs_inputs &= ~BITFIELD64_BIT(first); if (input->is_dual_slot) vs_inputs &= ~BITFIELD64_BIT(first + 1); |