mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 04:50:35 +01:00
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 <jordan.l.justen@intel.com>
This commit is contained in:
parent
f51a5b51ab
commit
6bb4255f8e
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue