mesa: Make gl_program::InputsRead 64 bits.
Make gl_program::InputsRead a 64 bits bitfield. Adapt the intel and radeon driver to handle a 64 bits InputsRead value. Signed-off-by: Mathias Froehlich <Mathias.Froehlich@web.de> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
@@ -802,7 +802,7 @@ srcReg: USED_IDENTIFIER /* temporaryReg | progParamSingle */
|
||||
break;
|
||||
case at_attrib:
|
||||
set_src_reg(& $$, PROGRAM_INPUT, s->attrib_binding);
|
||||
state->prog->InputsRead |= (1U << $$.Base.Index);
|
||||
state->prog->InputsRead |= BITFIELD64_BIT($$.Base.Index);
|
||||
|
||||
if (!validate_inputs(& @1, state)) {
|
||||
YYERROR;
|
||||
@@ -817,7 +817,7 @@ srcReg: USED_IDENTIFIER /* temporaryReg | progParamSingle */
|
||||
| attribBinding
|
||||
{
|
||||
set_src_reg(& $$, PROGRAM_INPUT, $1);
|
||||
state->prog->InputsRead |= (1U << $$.Base.Index);
|
||||
state->prog->InputsRead |= BITFIELD64_BIT($$.Base.Index);
|
||||
|
||||
if (!validate_inputs(& @1, state)) {
|
||||
YYERROR;
|
||||
@@ -2768,7 +2768,7 @@ _mesa_parse_arb_program(struct gl_context *ctx, GLenum target, const GLubyte *st
|
||||
state->prog->NumInstructions++;
|
||||
|
||||
state->prog->NumParameters = state->prog->Parameters->NumParameters;
|
||||
state->prog->NumAttributes = _mesa_bitcount(state->prog->InputsRead);
|
||||
state->prog->NumAttributes = _mesa_bitcount_64(state->prog->InputsRead);
|
||||
|
||||
/*
|
||||
* Initialize native counts to logical counts. The device driver may
|
||||
|
Reference in New Issue
Block a user