From 6bb4255f8ebb8cc048afe498e11738985d134f8a Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Wed, 14 Dec 2016 17:12:24 +0000 Subject: 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 --- src/mesa/drivers/dri/i965/brw_draw_upload.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mesa') 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); -- cgit v1.2.3